.mc-shell{margin-top:20px;color:#183c56}.mc-method-heading{margin-top:28px}.mc-progress{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.mc-progress span{background:#edf3f7;color:#4b6576;border-radius:8px;padding:10px 16px;font-weight:650;font-size:13px}.mc-progress .current{background:#185d8e;color:white}.mc-shell h2{font-size:24px;margin:6px 0 14px}.mc-shell h3{margin:28px 0 12px}.mc-kicker{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:#357da6}.mc-shell label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#274b62}.mc-shell input,.mc-shell select,.mc-shell textarea{width:100%;min-width:0;box-sizing:border-box;min-height:42px;background:white;border:1px solid #bccfdd;border-radius:7px;color:#183c56;padding:9px 10px;font:inherit}.mc-shell input:focus,.mc-shell select:focus,.mc-shell textarea:focus{outline:2px solid #247bb3;outline-offset:2px}.mc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mc-fields button{align-self:end}.mc-toolbar,.mc-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.mc-actions{justify-content:flex-start;margin:16px 0}.mc-types{display:grid;gap:12px;margin-bottom:14px}.mc-type-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;align-items:end;gap:12px;padding:16px;border-radius:10px;background:#f4f8fb}.mc-type-row:has(label:nth-child(3):last-of-type){grid-template-columns:2fr 1fr 1fr auto}.mc-floorbar{display:flex;gap:18px;align-items:end;flex-wrap:wrap;background:#f0f6fa;padding:18px;border-radius:12px}.mc-floorbar>label{min-width:min(100%,180px);flex:1}.mc-new-floor{flex:0 0 auto}.mc-new-floor[open]{flex:1 0 100%;border-top:1px solid #c5d9e7;padding-top:14px}.mc-new-floor summary{cursor:pointer;min-height:42px;box-sizing:border-box;padding:10px 14px;border:1px solid #bccfdd;border-radius:7px;background:#fff;color:#183c56;font-weight:650;width:fit-content}.mc-new-floor form{display:flex;gap:12px;align-items:end;margin-top:12px}.mc-new-floor form label{flex:1;min-width:0}.mc-plan{background-color:#f5f8fb;background-image:radial-gradient(#b8cbd8 .8px,transparent .8px);background-size:18px 18px;border:1px solid #d2e0e9;border-radius:14px;min-height:300px;overflow:auto}.mc-plan svg{display:block;width:100%;min-width:400px;max-height:540px;padding:20px;box-sizing:border-box}.mc-plan g[role=button]{cursor:pointer}.mc-plan g[role=button]:hover polygon,.mc-plan g[role=button]:focus polygon{stroke:#087cbb;stroke-width:.08}.mc-empty{display:grid;place-content:center;text-align:center;min-height:220px;color:#627d8f;padding:20px}.mc-empty span{font-size:48px;color:#7eabba}.mc-empty h3{margin:12px 0}.mc-roomlist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.mc-roomlist button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:18px;border:1px solid #c5d9e7;background:#fff;color:#254b63;border-radius:10px}.mc-roomlist small{color:#637988}.mc-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:26px}.mc-form{min-width:0}.mc-part,.mc-opening{border:1px solid #c4d7e4;border-radius:10px;padding:18px;margin:16px 0;background:#fbfdff;min-width:0}.mc-part legend,.mc-opening legend{font-weight:700;color:#20577c;padding:0 7px}.mc-shapes{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.mc-shapes button{display:flex;gap:8px;align-items:center;padding:10px;background:#f0f7fb;color:#1c5579;border-color:#c4dbe9;font-size:12px}.mc-shapes svg{width:30px;height:25px;fill:#bfddeb;stroke:#316b8d;stroke-width:.05}.mc-preview-sticky{position:sticky;top:20px;padding:22px;border-radius:14px;border:1px solid #c5dce9;background:#f1f8fc}.mc-room-svg{display:block;width:100%;height:280px;margin:18px 0}.mc-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #cbdee9;padding:18px 0;gap:12px}.mc-total strong{font-size:24px;color:#185d8e}.mc-save{width:100%;margin-top:12px}.mc-shell button.primary{background:#175d91;color:#fff;border-color:#175d91}.mc-shell button:disabled{opacity:.5;cursor:not-allowed}.mc-shell .mc-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:14px 0}.mc-check input{width:18px;min-height:18px}.mc-shell details{margin:20px 0;padding:15px;background:#f4f8fb;border-radius:10px}.mc-shell summary{font-weight:650;cursor:pointer}.mc-shell details .mc-fields{margin-top:15px}#mcStatus:not(:empty){padding:12px 16px;background:#eaf6ef;border-radius:8px;color:#285943}#mcStatus.error,#mcGeometryError:not(:empty){background:#fff1e8;color:#874323;padding:12px;border-radius:8px}.mc-incoming{padding:12px;background:#edf3f7;border-radius:8px}.mc-legacy button{margin:4px}.mc-shell button{min-height:40px}.mc-shell .note{font-size:13px;line-height:1.6;color:#526f83}.mc-form>label{margin-top:20px}
@media(max-width:1100px){.mc-workspace{grid-template-columns:1fr}.mc-preview-column{grid-row:1}.mc-preview-sticky{position:static}.mc-room-svg{height:220px}.mc-type-row,.mc-type-row:has(label:nth-child(3):last-of-type){grid-template-columns:repeat(2,minmax(0,1fr))}.mc-roomlist{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mc-fields{grid-template-columns:1fr}.mc-floorbar form{flex-direction:column;align-items:stretch;width:100%}.mc-roomlist{grid-template-columns:1fr}.mc-shell{padding:16px!important}.mc-progress span{padding:8px;font-size:11px}.mc-type-row,.mc-type-row:has(label:nth-child(3):last-of-type){grid-template-columns:1fr}.mc-plan svg{min-width:320px}.mc-shapes button{flex:1 1 40%}}

.mc-shell label,.mc-shell input,.mc-shell select,.mc-shell textarea,.mc-shell button{font-size:14px;line-height:1.45;font-family:inherit}.mc-shell .mc-standard{padding:18px;border:1px solid #d1e0ea;border-radius:12px;margin:0 0 12px;background:#f8fbfd}.mc-standard>label{max-width:420px}.mc-standard legend{font-size:15px;font-weight:650}.mc-standard .mc-fields{margin-top:12px}.mc-transom{margin:14px 0;border:1px solid #cfdee7;border-radius:8px;padding:12px}.mc-standard .mc-check{align-self:center}.mc-shell .mc-check input{width:18px;height:18px;min-height:0}.mc-standard .note{font-size:13px}.mc-shell .mc-types{display:block}
/* Keep the preview beside the guided form on tablets as well as desktops. */
.panel.mc-shell{overflow:visible}.mc-workspace{grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr);align-items:start}.mc-preview-column{grid-row:auto;position:sticky;top:16px}.mc-preview-sticky{position:static;padding:16px}.mc-room-svg{height:min(34vh,300px)}.mc-step-actions{margin-top:28px;justify-content:space-between}.mc-counter{display:grid;grid-template-columns:48px minmax(40px,1fr) 48px;gap:8px}.mc-counter button{font-size:22px;min-height:48px}.mc-counter input{text-align:center}.mc-help{padding:14px;border-radius:8px;background:#e7f3fb}#mcRoom{scroll-margin-top:16px}
@media(max-width:650px){.mc-workspace{grid-template-columns:minmax(0,1fr)}.mc-preview-column{grid-row:1;top:0;z-index:5}.mc-preview-sticky{padding:10px}.mc-room-svg{height:140px;margin:4px 0}.mc-total{padding:6px 0}.mc-total strong{font-size:20px}.mc-preview-sticky .mc-kicker{display:none}}
/* Dedicated manual capture workspace: the form scrolls, the plan remains visible. */
.rc-manual-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.rc-manual-heading h2{font-size:30px;margin:4px 0}.rc-guidance{margin-top:20px}.rc-guidance li{margin:12px 0;line-height:1.55}.rc-ack{display:flex!important;align-items:center;gap:10px;margin:20px 0}.rc-ack input{width:20px;height:20px}.rc-manual-heading+#rcManual .mc-shell{margin-top:0}.mc-plan{height:58vh;min-height:300px;max-height:700px;position:relative;overscroll-behavior:contain}.mc-plan svg.mc-floor-svg{display:block;min-width:0;max-height:none;padding:8px;touch-action:none;user-select:none}.mc-plan [data-plan-room]{cursor:grab;touch-action:none}.mc-plan [data-plan-room]:active{cursor:grabbing}.mc-plan [data-plan-room]:focus polygon{stroke:#006aa6;stroke-width:.09}.mc-plan-actions{justify-content:flex-start}.mc-plan-actions label{margin-left:auto;min-width:100px}.mc-selection{padding:14px 16px;background:#eef6fb;border:1px solid #c8dfef;border-radius:10px;margin-top:14px}.mc-selection p{font-size:14px;margin:8px 0 12px}.mc-selection button{min-height:42px}.mc-preview-column{position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow:auto}.mc-preview-sticky .mc-room-svg{height:23vh;min-height:130px;margin:8px 0}.mc-overview{padding:10px!important;margin:10px 0 0!important}.mc-overview .mc-plan{height:27vh;min-height:130px;margin-top:8px}.mc-overview svg{pointer-events:none}.mc-plan-error{padding:20px;color:#93451e}.mc-preview-sticky #mcGeometryError:empty{display:none}
@media(min-width:900px){.rc-manual-heading+#rcManual .mc-workspace{grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr)}.mc-workspace .mc-form{max-height:calc(100dvh - 200px);overflow-y:auto;padding-right:10px;overscroll-behavior:contain}.mc-step-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;margin-bottom:0;z-index:2}}
@media(max-width:650px){.rc-manual-heading{align-items:flex-start}.rc-manual-heading h2{font-size:25px}.mc-plan{height:52vh;min-height:250px}.mc-preview-column{max-height:37vh;background:white}.mc-preview-sticky .mc-room-svg{height:13vh;min-height:85px}.mc-overview .mc-plan{height:16vh;min-height:90px}.mc-overview .mc-floor-svg{height:16vh!important}.mc-plan-actions button{font-size:12px;padding:8px}.mc-plan-actions label{margin-left:0}}

/* The dedicated room mask replaces the redundant page introduction. */
main:has(#roomCapture:not([hidden]) .rc-manual-heading)>.intro{display:none}
.rc-manual-heading{margin:12px 0}.rc-manual-heading .mc-kicker{margin:0 0 4px}
.rc-manual-heading+#rcManual .mc-shell{padding:20px}
.rc-manual-heading+#rcManual .mc-progress{margin-bottom:12px}
#mcStatus:empty{display:none}
.mc-plan-actions{position:sticky;top:0;background:#fff;z-index:3;padding:8px 0}

.mc-without-plan #mcFloorPlan,.mc-without-plan .mc-plan-actions,.mc-without-plan #mcPlanSelection,.mc-without-plan [data-plan-action="move"],.mc-without-plan .mc-overview{display:none}.mc-without-plan #mcFloorPlan+.note{display:none}


.rc-manual-heading{margin:6px 0 10px;gap:10px}
.rc-manual-heading h2{font-size:20px;margin:2px 0}
.rc-manual-heading .mc-kicker{font-size:11px;margin:0}
.mc-progress{margin-bottom:10px;gap:5px}
.mc-shell .mc-progress button{padding:6px 10px;min-height:34px;font-size:13px;background:#edf3f7;color:#294a62;border:1px solid transparent}
.mc-progress button[aria-current="step"],.mc-floor-buttons button[aria-pressed="true"]{background:#185d8e;color:#fff;border-color:#185d8e}
.mc-floorbar{padding:0;background:transparent;gap:8px;align-items:center}
.mc-floor-buttons{display:flex;flex-wrap:wrap;gap:8px}
.mc-floor-buttons:empty{display:none}
.mc-floor-buttons button{min-height:42px}
.mc-new-floor[open]{padding:10px 12px;border:1px solid #d1e0ea;border-radius:8px;background:#f4f8fb}
.mc-area-reference{padding:12px 14px;margin-bottom:12px;background:#edf5fa;border-radius:8px}
.mc-area-reference p{margin:4px 0 0}


.mc-shell .mc-workspace{grid-template-columns:minmax(0,1fr) minmax(150px,24%);gap:16px}
.mc-shell .mc-workspace .mc-preview-column{min-width:0}
.mc-shell .mc-room-svg{height:15vh;max-height:140px;min-height:60px}
.mc-shell .mc-overview .mc-floor-svg{height:14vh!important}
.mc-shell .mc-step-actions{position:sticky;bottom:0;padding:8px 0;background:white;z-index:2}
.mc-shell .mc-workspace:has(#mcRoomPreview:empty) .mc-preview-sticky>.mc-kicker{display:none}
@media(max-width:640px){.mc-shell .mc-workspace{grid-template-columns:1fr}.mc-shell .mc-preview-column{max-height:none}}

#roomCapture .rc-start{max-width:none}
#roomCapture .rc-method-title{margin:16px 0 10px}
#roomCapture .rc-method{min-height:0;gap:8px;padding:16px}
#roomCapture .rc-method[aria-pressed=true]{padding:15px}
#roomCapture #rcSelectionHint{margin:8px 0}
#roomDataEdit .ce-room-data-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}
#roomDataEdit .ce-room-data-heading label{display:grid;gap:6px;flex:1 1 18rem;min-width:0}
#roomDataEdit .ce-room-data-heading select{width:100%;min-width:0}
#roomDataEdit [data-room-data-status]:empty{display:none}
#roomDataEdit .ce-record-scroll{max-height:70vh}
#roomDataEdit .rb-history-entry td{overflow-wrap:anywhere;vertical-align:top}
#rcManual .mc-roomlist{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;margin-top:10px}
#rcManual .mc-roomlist button{gap:4px;padding:12px 14px}
#rcManual .mc-without-plan .mc-preview-column{position:static}
@media(min-width:760px){
 #rcManual .mc-without-plan .mc-workspace{grid-template-columns:minmax(0,1fr) minmax(160px,18%)}
 #rcManual .mc-fields:has(>label:nth-child(3)){grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
}
