*{box-sizing:border-box}body{margin:0;font:14px Inter,system-ui,sans-serif;color:#25342e;background:#f5f6f3}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #e0e5df;background:white;border-radius:7px;padding:9px 12px;color:inherit}button:hover{background:#edf2e9}button.active{background:#e8efe3;color:#426538;border-color:#cbd9c3}.primary{background:#486741;color:white;border-color:#486741}.primary:hover{background:#365331}header{height:76px;background:white;border-bottom:1px solid #dfe4dc;display:flex;align-items:center;gap:16px;padding:0 24px}.brand{font-size:27px;color:#486741;display:flex;align-items:center;gap:10px}.brand span{font-size:19px;font-weight:750}.brand small{font-size:9px;letter-spacing:1.4px;color:#879181;max-width:90px;margin-left:12px}header input{margin-left:35px;border:0;background:transparent;font-weight:600;width:160px}#saveStatus{margin-left:auto;color:#7b8678;font-size:12px}.layout{display:grid;grid-template-columns:246px minmax(300px,1fr) 280px;height:calc(100dvh - 76px)}aside{padding:26px 20px;background:#fff;border-right:1px solid #e0e5df;overflow:auto;position:relative}.eyebrow,.sectiontitle{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#8b9487}h2{font-size:20px;letter-spacing:-.5px;margin:10px 0}p.muted{font-size:12px;color:#8b9487;line-height:1.6}.upload{width:100%;margin:18px 0;background:#f7f9f5;border-style:dashed;height:54px;padding:8px 5px;line-height:16px;font-weight:600}.upload small{display:block;font-weight:400;color:#91988b;margin-top:0;font-size:11px;line-height:12px}.opacity{font-size:11px;color:#798574;display:block}.opacity input{width:100%;accent-color:#58774b;margin-top:10px}.sectiontitle{margin:25px 0 12px;display:flex;align-items:center;justify-content:space-between}.sectiontitle button{padding:0 7px;font-size:20px;border:0}#tools button{width:100%;text-align:left;border-color:transparent;margin:3px 0}kbd{float:right;font:10px monospace;background:#f1f3ef;padding:3px 5px;border-radius:3px;color:#8c9686}.symbolrow{display:flex;gap:4px;margin:6px 0}.symbolrow>button:first-child{flex:1;text-align:left;border-color:transparent;display:flex;gap:12px;align-items:center}.symbolrow>button:last-child{border:0;padding:6px;color:#899482}.symbolicon{font-size:21px;line-height:24px}.tip{margin-top:28px;background:#f6f7f1;border-radius:8px;padding:15px;font-size:11px;line-height:1.7;color:#7b8571}.tip b{color:#596b4e}.sidebarbottom{margin-top:30px;font-size:10px;color:#91998b}.dot{display:inline-block;width:6px;height:6px;background:#79a466;border-radius:50%}main{display:flex;flex-direction:column;min-width:0}.canvasbar{height:64px;background:#fcfdfb;border-bottom:1px solid #e0e5df;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:10px}.canvasbar b{font-size:13px}.canvasbar span#counts{display:block;font-size:10px;color:#919989;margin-top:4px}.canvasbar button{padding:5px 9px;background:transparent;border-color:transparent}.canvasbar #zoomLabel{font-size:11px}#workspace{position:relative;flex:1;overflow:hidden;background:#f4f5f0;background-image:radial-gradient(#d9dfd2 1px,transparent 1px);background-size:20px 20px}canvas{width:100%;height:100%;display:block;touch-action:none}#empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;width:90%;pointer-events:none}#empty>span{font-size:55px;color:#b8c5ac}#empty h1{font-size:26px;font-weight:600;letter-spacing:-1px}#empty p{font-size:13px;color:#88917f;line-height:1.8}#empty button{pointer-events:auto;margin-top:12px}#hint{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#fffdf5e8;border:1px solid #e6e8dc;border-radius:7px;padding:10px 16px;font-size:10px;color:#859078;white-space:nowrap;pointer-events:none}footer{height:36px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 17px;font-size:10px;color:#92998c}.right{border-left:1px solid #e0e5df;border-right:0;padding:20px 18px}.tabs{display:flex;border-bottom:1px solid #e5e9e0;gap:12px;margin-bottom:25px}.tabs button{border:0;border-radius:0;padding:8px 0 14px;background:white;font-size:12px;color:#8b9581}.tabs button.active{color:#486741;border-bottom:2px solid #486741}.total{background:#f2f5ed;border:1px solid #e2e8db;border-radius:10px;padding:18px;margin-bottom:24px}.total strong{font-size:32px;display:block;color:#486741}.total span{font-size:11px;color:#89957d}.roomcard{padding:14px 0;border-bottom:1px solid #e7eadf}.roomcard b{font-size:12px}.roomcard small{display:block;color:#8b9482;font-size:11px;margin-top:9px;line-height:1.8}.emptytext{color:#969e8b;line-height:1.8;font-size:12px}label{display:block;font-size:12px;margin:15px 0}label input:not([type=range]),label select{width:100%;display:block;margin-top:7px;border:1px solid #dce3d6;border-radius:5px;padding:9px;background:white}dialog{border:1px solid #dce3d6;border-radius:14px;padding:26px;width:360px;box-shadow:0 20px 80px #23351e25}dialog::backdrop{background:#1f332740}.dialogbuttons{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.delete{color:#b45442;margin-top:15px}#properties button{margin-right:5px;margin-bottom:5px}@media(max-width:1050px){.layout{grid-template-columns:205px minmax(250px,1fr) 225px}aside{padding:18px 14px}.brand small{display:none}header{gap:8px;padding:0 14px}header input{margin-left:10px;width:100px}#hint{white-space:normal;width:85%;text-align:center}}@media(max-width:750px){.layout{grid-template-columns:170px 1fr}.right{grid-column:1/-1;max-height:260px}header{flex-wrap:wrap;height:auto;min-height:76px;padding:12px}.brand{font-size:20px}.brand span{font-size:15px}#saveStatus{display:none}.layout{height:calc(100dvh - 100px);grid-template-rows:minmax(400px,1fr) auto}footer span:last-child{display:none}.canvasbar{padding:8px}#hint{font-size:9px}}
#symbolDialog{width:760px;max-width:95vw;max-height:92dvh;overflow:auto}.editorlayout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px}.editorlayout section{min-width:0}.coordinatefields{display:flex;gap:10px}.coordinatefields label{width:50%}.editorbuttons{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}.editorbuttons button{font-size:11px;padding:7px 9px}#symbolEditor,#symbolPreview{width:100%;height:auto;border:1px solid #dde5d5;border-radius:7px;display:block}#symbolEditor{cursor:crosshair;touch-action:none}#symbolError{color:#b45442;font-size:12px}.symbolicon{width:32px;height:32px;flex-shrink:0}.symbolrow>button:first-child{min-width:0;overflow-wrap:anywhere}@media(max-width:650px){.editorlayout{grid-template-columns:1fr}.editorlayout section:first-child{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.editorlayout section:first-child>p{grid-column:1/-1}}

.linklist{display:flex;flex-direction:column;gap:5px;margin-top:10px}.linklist button{font-size:11px;text-align:left;padding:6px}#properties [data-linked]{display:block;width:100%;font-size:11px;text-align:left}#properties [data-linked] small{display:block;color:#89957d;margin-top:4px}

#symbols [data-type]{cursor:grab;touch-action:none;user-select:none}#symbols [data-type]:active{cursor:grabbing}.menu-dragging,.menu-dragging *{cursor:grabbing!important;user-select:none}#workspace.drop-ready{box-shadow:inset 0 0 0 2px #7b9a62} .menu-dragging #empty{visibility:hidden}

label.checkline{display:flex;align-items:center;gap:9px;font-weight:600}label.checkline input[type=checkbox]{width:auto;display:inline-block;margin:0;accent-color:#486741}

#pdfAreaStatus{font-size:10px;color:#387baa} .canvasbar>div:last-child{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:2px}@media(max-width:1100px){#pdfAreaStatus{display:none}.canvasbar{height:auto;min-height:64px}}

#calibratePlan{width:100%;font-size:12px}#calibrationDialog{max-width:95vw}#calibrationError{color:#b45442;font-size:12px}#scaleStatus{font-size:11px}#referenceCm{font-size:18px}.roomcard [data-fixture]{font-size:12px;padding:6px 9px;text-align:left}

/* Label combobox uses the same border, spacing and palette as other fields. */
.labelpicker{position:relative;margin:-8px 0 15px}
.labelpicker-field{display:flex;align-items:stretch;background:#fff;border:1px solid #dce3d6;border-radius:5px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.labelpicker-field:focus-within{border-color:#789568;box-shadow:0 0 0 3px #48674114}
.labelpicker-field input{min-width:0;flex:1;width:0;margin:0;border:0;border-radius:0;padding:9px;background:transparent;color:#25342e;outline:none}
.labelpicker-field input::placeholder{color:#929b89}
#properties .labelpicker-field button{flex:0 0 34px;margin:0;padding:0;border:0;border-left:1px solid #e5e9e0;border-radius:0;background:#f7f9f5;color:#7b8972;display:grid;place-items:center}
#properties .labelpicker-field button:hover,#properties .labelpicker-field button[aria-expanded="true"]{background:#e8efe3;color:#426538}
.labelpicker-field button:focus-visible{outline:2px solid #789568;outline-offset:-3px}
.labelpicker-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:100;max-height:210px;overflow:auto;border:1px solid #d8e2d1;border-radius:7px;background:#fff;padding:4px;box-shadow:0 8px 24px #25342e26}
.labelpicker-options[hidden]{display:none}
#properties .labelpicker-options button{display:block;width:100%;margin:0;text-align:left;border:0;padding:8px 9px;border-radius:4px;overflow-wrap:anywhere;font-size:13px}
.labelpicker-options p{padding:3px 7px;margin:4px 0}

#openingError{color:#b45442;font-size:12px;line-height:1.5}.roomcard [data-opening]{font-size:12px;padding:6px 9px}

/* Shared vector icons for the plan tools. */
#tools button,#calibratePlan,#openScaleSettings{display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:44px}
.tool-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:8px;background:#f2f5ed;color:#7a8c6d;transition:background .15s,color .15s}
.tool-icon svg{display:block}
.tool-name{flex:1;min-width:0;text-align:left}
#tools button kbd{float:none;margin-left:auto;flex-shrink:0}
#tools button:hover .tool-icon,#calibratePlan:hover .tool-icon,#openScaleSettings:hover .tool-icon{background:#e4ecd9;color:#486741}
#tools button.active .tool-icon{background:#486741;color:#fff}
#tools button:focus-visible,#calibratePlan:focus-visible,#openScaleSettings:focus-visible{outline:2px solid #789568;outline-offset:2px}
@media(max-width:1050px){#tools button,#calibratePlan,#openScaleSettings{gap:7px;padding:7px 6px;font-size:12px}.tool-icon{width:28px;height:28px;flex-basis:28px}}

.symbol-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}.symbol-order{display:flex;flex-direction:column;gap:2px}.symbol-actions button{border:0;padding:5px;color:#899482}.symbol-order button{padding:0 5px;min-width:22px;line-height:20px;font-size:13px}.symbol-order button:disabled{opacity:.25;cursor:default;background:transparent}.symbol-actions button:focus-visible{outline:2px solid #789568;outline-offset:1px}

.symbol-scale-control{display:flex;align-items:center;gap:10px}.symbol-scale-control input{min-width:0;flex:1;accent-color:#58774b}.symbol-scale-control output{min-width:36px;text-align:right;font-size:12px;font-weight:600}.symbol-scale-number{width:80px;border:1px solid #dce3d6;border-radius:5px;padding:7px;margin-top:8px}.symbol-scale-reset{font-size:11px;padding:7px;margin-left:5px}

.settings-button{width:100%;text-align:left;margin:14px 0 5px}.wall-options{padding:0 10px 8px 40px;border-left:3px solid #789568;margin:0 0 8px 10px}.wall-options[hidden]{display:none}.wall-options label{margin:7px 0}.wall-options p{margin-bottom:0}#scaleSettingsDialog{width:420px;max-width:95vw}#scaleSettingsDialog h3{font-size:14px;margin:22px 0 8px}#scaleSettingsDialog #calibratePlan{justify-content:center}#newProjectDialog{width:420px;max-width:95vw}.library-defaults{width:100%;font-size:11px;margin-top:10px}.empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}#defaultSymbolsStatus:empty{display:none}

.symbol-category-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;font-weight:600;margin:3px 0}.symbol-category-toggle small{font-weight:400;opacity:.7}.symbol-category>div[hidden]{display:none}

.symbol-category-toggle{gap:9px;text-align:left;padding:8px}
.symbol-category-name{flex:1}
.symbol-category-chevron{flex:0 0 16px;transition:transform .15s}
.symbol-category-toggle[aria-expanded="true"] .symbol-category-chevron{transform:rotate(90deg)}
.symbol-category-toggle:hover .tool-icon{background:#e4ecd9;color:#486741}
.symbol-category-toggle[aria-expanded="true"] .tool-icon{background:#486741;color:#fff}

#deleteSymbol:disabled{opacity:.45;cursor:not-allowed}#deleteSymbol[hidden],#deleteSymbolHint[hidden]{display:none}

/* A generous swatch makes the selected color readable in every color picker. */
label input[type="color"]{height:33px;padding:5px;cursor:pointer}
input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
input[type="color"]::-webkit-color-swatch{border:1px solid #c7cfc1;border-radius:3px}
input[type="color"]::-moz-color-swatch{border:1px solid #c7cfc1;border-radius:3px}

.stack-layout-preview{padding:12px;margin:-5px 0 10px;background:#f6f8f2;border:1px solid #e0e5da;border-radius:8px;overflow:auto;max-height:240px}
.stack-layout-grid{display:grid;gap:5px;width:max-content;margin:0 auto}
.stack-layout-cell{display:block;width:28px;height:28px;border:2px solid #789568;border-radius:3px;background:#e8efe3}

.stack-layout-cell{display:grid;place-items:center;color:#486741}
.stack-layout-cell svg{display:block;width:24px;height:24px}
.layout-appearance-preview{display:flex;align-items:center;margin:-4px 0 12px}
#layoutAppearanceSettings[hidden]{display:none}

/* pluglo.dev brand */
.brand{gap:11px;flex-shrink:0}
.brand-mark{display:block;flex-shrink:0;box-shadow:0 3px 10px #3d5b3914;border-radius:12px}
.brand-copy{display:flex;flex-direction:column;gap:4px}
.brand .brand-name{font-size:25px;line-height:1;letter-spacing:-1.1px;font-weight:750}
.brand .brand-domain,.brand-domain{color:#8a9c7a;font-weight:450}
.brand .brand-domain{font-size:inherit}
.brand small{max-width:none;margin:0;font-size:9px;letter-spacing:0;line-height:1.4;color:#7b8678}
header input{margin-left:8px;min-width:80px}
#empty .empty-mark{display:block;margin:0 auto 18px;border-radius:22px;box-shadow:0 8px 24px #3d5b391a}
#empty h1{font-size:38px;font-weight:750;margin:0 0 12px;letter-spacing:-1.6px;color:#486741}
#empty .brand-tagline{font-size:20px;font-weight:500;line-height:1.45;letter-spacing:-.4px;color:#52664a;margin:0 0 16px}
@media(max-width:1050px){header{gap:10px;padding:0 16px}.brand small{display:none}.brand .brand-name{font-size:21px}.brand-mark{width:36px;height:36px}header input{margin-left:0;width:115px}}

/* Language menu shares the label picker palette and floating-list treatment. */
.language-picker{position:relative;flex:0 0 auto;width:74px}
#languageSelect{display:flex;align-items:stretch;justify-content:space-between;width:100%;min-height:36px;padding:0;overflow:hidden;border:1px solid #dce3d6;border-radius:7px;background:#fff;color:#486741;font-size:12px;transition:border-color .15s,box-shadow .15s}
#languageValue{display:grid;place-items:center;flex:1;padding:8px 10px;font-weight:600}
.language-chevron{display:grid;place-items:center;flex:0 0 27px;border-left:1px solid #e5e9e0;background:#f7f9f5;color:#7b8972}
#languageSelect:hover .language-chevron,#languageSelect[aria-expanded="true"] .language-chevron{background:#e8efe3;color:#426538}
#languageSelect:focus-visible,#languageSelect[aria-expanded="true"]{outline:none;border-color:#789568;box-shadow:0 0 0 3px #48674114}
.language-chevron svg{transition:transform .15s}
#languageSelect[aria-expanded="true"] svg{transform:rotate(180deg)}
.language-options{position:absolute;top:calc(100% + 5px);right:0;width:100%;z-index:150;padding:4px;border:1px solid #d8e2d1;border-radius:7px;background:#fff;box-shadow:0 8px 24px #25342e26}
.language-options[hidden]{display:none}
.language-options button{display:block;width:100%;padding:8px 9px;border:0;border-radius:4px;text-align:left;font-size:12px}
.language-options button[aria-selected="true"]{background:#e8efe3;color:#426538;font-weight:600}
.language-options button:hover,.language-options button:focus{outline:none;background:#edf2e9;color:#426538}

.summary-dialog-actions{display:grid;gap:8px;margin-top:24px}.summary-dialog-actions button{text-align:left}.summary-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 48px)}.summary-dialog-content{max-height:calc(100dvh - 210px);overflow:auto;overflow-wrap:anywhere}.summary-dialog-content .sectiontitle{margin-top:16px}.summary-dialog-content .roomcard button{max-width:100%;white-space:normal;text-align:left}

.connection-button small{display:block;color:#89957d;font-size:11px;margin-top:9px;line-height:1.8}#properties .connection-button{display:block;width:100%;font-size:11px;text-align:left}#properties .connection-button small{margin-top:9px}

.dimension-card{border:1px solid #dce3d6;border-radius:8px;background:#f8faf6;padding:10px;margin:10px 0}
.dimension-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:600;color:#64745d}
#properties .dimension-card-heading .delete{margin:0;padding:3px 5px;font-size:11px;color:#b42318;border-color:#efc6c1;background:#fff5f4}
#properties .dimension-card-heading .delete:hover{background:#ffe5e2;border-color:#d88980}
.dimension-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.dimension-fields label{min-width:0;margin:8px 0 0;font-size:11px}
.dimension-fields label input{min-width:0;padding:7px;margin-top:5px}

#symbolEditorTools [data-mode="erase"]{display:inline-flex;align-items:center;justify-content:center;color:#b42318;border-color:#efc6c1;background:#fff5f4}
#symbolEditorTools [data-mode="erase"]:hover{background:#ffe5e2;border-color:#d88980}
#symbolEditorTools [data-mode="erase"].active{background:#ffe5e2;border-color:#b42318;box-shadow:inset 0 0 0 1px #b42318}

.visibility-controls{border:0;padding:0;margin:14px 0 12px;min-width:0}.visibility-controls legend{padding:0;font-size:10px;font-weight:700;letter-spacing:1px;color:#8b9487}.visibility-options{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:5px}.visibility-options label{display:flex;align-items:center;gap:4px;margin:0;min-height:24px;font-size:11px;color:#798574;cursor:pointer}.visibility-options label input[type=checkbox]{display:inline-block;width:13px;height:13px;padding:0;margin:0;accent-color:#58774b;flex-shrink:0}

.symbol-rotation{display:flex;align-items:flex-end;gap:6px;margin:10px 0;flex-wrap:wrap}.symbol-rotation label{flex:1 1 150px;margin:0}.symbol-rotation input{padding:6px!important}.symbol-rotation button{font-size:11px;padding:7px 9px}

#pdfOptionsDialog{width:460px;max-width:95vw;max-height:92dvh;overflow:auto}#pdfOptionsDialog fieldset{border:1px solid #e0e5df;border-radius:7px;margin:14px 0;padding:6px 12px}#pdfOptionsDialog legend{font-size:11px;color:#798574;padding:0 5px}#pdfOptionsDialog .checkline{font-weight:400;margin:9px 0}#pdfOptionsError{color:#b45442;font-size:12px}
