/* Compact single-room editor. Bulk edit and calculation engines are unaffected. */
#editor .catalog-result-label{font-size:10px;font-weight:600;color:#536d85;background:#f4f7fb;margin:0;padding:7px 10px;border-bottom:1px solid #dce5ef}
#editor .type-matches strong{font-size:12px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
#editor .catalog-reference-card{padding:12px;margin-top:10px;border:1px solid #d8e3ee;border-radius:9px;background:#fff;min-width:0;overflow-wrap:anywhere}
#editor .catalog-reference-card h4{font-size:14px;margin:0 0 8px;line-height:1.45}#editor .catalog-reference-card>p{font-size:11px;line-height:1.5}
#editor .catalog-reference-card .reference-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#editor .catalog-reference-card .reference-values>div{padding:8px}#editor .catalog-reference-card .reference-values strong{font-size:12px;line-height:1.5}#editor .catalog-reference-card .reference-values span{font-size:10px}
#editor .catalog-reference-card .check{font-size:11px;margin-top:12px;align-items:flex-start}#editor .catalog-reference-card .check input{flex:none}#editor .catalog-reference-card .reference-actions{gap:6px}#editor .catalog-reference-card .reference-actions button{font-size:11px;padding:7px 9px}
#editor #catalogMessage:empty{display:none}#editor .catalog-reference-card .reference-explanation{padding:10px;font-size:11px}#editor .catalog-reference-card .reference-explanation :is(p,dt,dd){font-size:11px}
body #editor{width:min(1220px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;overflow:hidden}
#editor #roomForm{display:flex;flex-direction:column;max-height:calc(100dvh - 30px);margin:0;min-height:0}
#editor>.dialog-head,#editor #roomForm>.dialog-head{padding:16px 22px;border-bottom:1px solid #dce5ef;flex:none;gap:16px}
#editor .dialog-head h2{margin:0;font-size:18px}#editor .room-card-body{padding:16px 22px;overflow:auto;min-height:0;flex:1}
#editor .room-identity{display:grid;grid-template-columns:120px minmax(0,1fr) 140px;gap:14px;align-items:end}
#editor .room-properties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}
#editor .room-choice{position:relative;min-width:0}#editor .room-choice>label{display:block;font-size:11px;line-height:1.4;margin:0 0 7px;color:#536d85}
#editor .room-choice-control{position:relative;min-width:0}#editor .room-choice-control>input{width:100%;min-width:0;box-sizing:border-box;padding-right:34px!important}
#editor .room-choice-toggle{position:absolute;right:2px;top:2px;bottom:2px;width:30px;min-width:0!important;padding:0!important;border:0!important;border-radius:6px;background:transparent!important;box-shadow:none!important;color:#536d85;display:grid;place-items:center}
#editor .room-choice-toggle:hover{color:#185ac4;background:#eef4ff!important}#editor .room-choice-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;pointer-events:none}
#editor .room-choice-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;overflow:auto;overscroll-behavior:contain;border:1px solid #c5d6ec;border-radius:9px;background:#fff;box-shadow:0 7px 24px #223b6024;padding:4px;box-sizing:border-box}
#editor .room-choice-list[hidden]{display:none}#editor .room-choice-list.above{top:auto;bottom:calc(100% + 4px)}
#editor .room-choice-list [role=option]{padding:9px 10px;font-size:12px;line-height:1.4;border-radius:5px;cursor:pointer;color:#29445e;overflow-wrap:anywhere}
#editor .room-choice-list [role=option]:hover,#editor .room-choice-list [aria-selected=true]{background:#edf4ff;color:#1959bd}#editor .room-choice-list .room-choice-create{color:#1959bd;font-weight:600;border-bottom:1px solid #e3ebf5;border-radius:5px 5px 0 0;margin-bottom:3px}
#editor .room-choice-empty{font-size:11px;line-height:1.5;color:#60758e;padding:8px;margin:0}#editor .room-model-info{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;color:#60758e;margin:-7px 0 16px}
#editor .room-model-info button{font-size:11px;min-height:0;padding:2px 0;border:0;background:transparent;text-decoration:underline;color:#235c9f}
#editor .room-geometry{display:grid;grid-template-columns:150px 150px minmax(0,1fr);gap:14px;margin:12px 0 18px}
#editor .people-input{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}#editor .people-input>.grid{margin:0;gap:10px;grid-template-columns:1fr 1fr}#editor #peopleComputed{grid-column:1/-1;margin:0}
#editor .room-calc-layout{display:grid;grid-template-columns:minmax(290px,.8fr) minmax(0,1.2fr);gap:22px;align-items:start;margin-bottom:18px}
#editor .room-rule-picker{min-width:0;padding-right:20px;border-right:1px solid #dce5ef}#editor .room-calc-layout h3{font-size:14px;line-height:1.4;margin:0 0 12px}
#editor #quickCatalog .room-catalog{padding:0;margin:0;background:transparent;border:0;border-radius:0}#editor .catalog-search{margin-top:7px;gap:8px}#editor .catalog-search button{padding:7px 10px}
#editor .type-matches{max-height:230px;box-shadow:none}#editor .type-matches button{padding:9px 10px}#editor .type-matches small{font-size:10px;line-height:1.5}
#editor #catalogNorms .norm-card{padding:0;margin:8px 0;background:#fff;border:1px solid #d8e3ee;overflow:hidden}#editor #catalogNorms .norm-card>summary{padding:11px 12px;font-size:12px;line-height:1.45;margin:0;cursor:pointer}#editor #catalogNorms .norm-card>summary strong{font-weight:600}#editor #catalogNorms .norm-card>summary small{display:block;font-size:11px;color:#536d85;margin:4px 0 0 15px}#editor .norm-card[open]>summary{border-bottom:1px solid #dce5ef;background:#f7faff}#editor .norm-card-body{padding:12px}#editor .norm-card-body p{font-size:12px;line-height:1.5}#editor .norm-card-body .check{font-size:12px}#editor .catalog-about{font-size:11px;color:#60758e;margin-top:12px}#editor .catalog-about>summary{font-size:11px}#editor .norm-state p:not(.error){display:none}
#editor .balance-picker{margin:0 0 8px}#editor .balance-picker legend{font-size:11px;margin-bottom:6px}#editor .balance-options{gap:6px}#editor .balance-option{padding:7px 4px}#editor .balance-symbol{font-size:15px}#editor .balance-caption{font-size:10px;line-height:1.2}#editor .balance-picker+.hint{font-size:11px;line-height:1.4;margin:5px 0 10px}
#editor .room-flow-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#editor .room-flow-pair:has(>.rule-box:only-child){grid-template-columns:1fr}#editor .room-flow-pair .rule-box{margin:0;padding:12px;min-width:0;background:#f9fbfe}#editor .room-flow-pair .rule-box>.grid{grid-template-columns:1fr;margin-top:10px!important;gap:10px}#editor .room-flow-pair .rule-box>.hint{font-size:11px;line-height:1.5}#editor .room-flow-pair .rule-box>h3{font-size:13px;margin-bottom:10px}
#editor .room-fold{margin:0;border-top:1px solid #dce5ef;padding:0}#editor .room-fold>summary{display:list-item;padding:12px 0;line-height:1.4;font-size:13px;margin:0;cursor:pointer}#editor .room-fold>summary small{font-size:11px;color:#6c8098;font-weight:400;margin-left:9px;overflow-wrap:anywhere}#editor .room-fold[open]{padding-bottom:14px}#editor .room-fold[open]>summary{margin-bottom:8px}#editor .room-local-content{border:0;background:transparent;padding:0;margin:0}#editor #roomProjectLinks>.rule-box{margin:0;background:transparent;padding:0;border:0}
#editor #roomForm>.room-card-footer{position:static;bottom:auto;margin:0;padding:14px 22px;border-top:1px solid #dce5ef;background:#fff;align-items:center;justify-content:space-between;gap:16px;flex:none}
#editor #draftSummary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:12px;min-width:0}#editor #draftSummary strong{font-size:18px;margin-left:3px;font-variant-numeric:tabular-nums}#editor #draftSummary>small{font-size:11px;color:#60758e}#editor .room-card-buttons{display:flex;gap:8px;flex:none}#editor #roomError:empty{display:none}
#editor :is(.room-identity,.room-geometry) label{margin:0}#editor .tvik-ui-caption{min-height:0!important;font-size:11px;line-height:1.4;align-items:center}#editor input,#editor select{font-size:13px}#editor .reference-saved{margin:0 0 8px}#editor .local-row{padding:12px 0}
@media(max-width:950px){#editor .room-calc-layout{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:16px}#editor .room-rule-picker{padding-right:15px}#editor .room-flow-pair{grid-template-columns:1fr}#editor .room-geometry{grid-template-columns:120px 120px minmax(0,1fr)}}
@media(max-width:720px){body #editor{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#editor #roomForm{max-height:calc(100dvh - 18px)}#editor .room-calc-layout{grid-template-columns:1fr}#editor .room-rule-picker{padding:0 0 14px;border-right:0;border-bottom:1px solid #dce5ef}#editor .room-identity{grid-template-columns:90px 1fr}#editor .room-identity>:nth-child(2){grid-column:1/-1;grid-row:1}#editor .room-properties{grid-template-columns:1fr 1fr}#editor .room-properties>:last-child{grid-column:1/-1}#editor .room-geometry{grid-template-columns:1fr 1fr}#editor .room-geometry>.people-input{grid-column:1/-1}#editor .room-card-body{padding:14px}#editor #roomForm>.room-card-footer{padding:12px 14px;align-items:stretch;flex-direction:column;gap:10px}#editor .room-card-buttons{justify-content:flex-end}#editor .room-fold>summary small{display:block;margin:4px 0 0 14px}}
