@import "tailwindcss";
@import "tw-animate-css";
@import "../vendor/shadcn-tailwind-4.13.0.css";
:root{--background:#fff;--foreground:#263b49;--card:#fff;--card-foreground:#263b49;--popover:#fff;--popover-foreground:#263b49;--primary:#256459;--primary-foreground:#fff;--secondary:#edf2f5;--secondary-foreground:#263b49;--muted:#edf2f5;--muted-foreground:#607482;--accent:#e5f1ed;--accent-foreground:#256459;--destructive:#b63d3d;--border:#dce4e9;--input:#dce4e9;--ring:#256459;--radius:.45rem;--sidebar:#fff;--sidebar-foreground:#263b49;--sidebar-primary:#256459;--sidebar-primary-foreground:#fff;--sidebar-accent:#e5f1ed;--sidebar-accent-foreground:#256459;--sidebar-border:#dce4e9;--sidebar-ring:#256459}
@theme inline{--color-background:var(--background);--color-foreground:var(--foreground);--color-primary:var(--primary);--color-primary-foreground:var(--primary-foreground);--color-secondary:var(--secondary);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-destructive:var(--destructive);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--radius-lg:var(--radius)}
*{box-sizing:border-box}body{margin:0;color:var(--foreground);font-family:'Segoe UI',sans-serif;font-size:16px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:2px solid #258574;outline-offset:3px}.workspace{height:100dvh;display:flex;flex-direction:column}.topbar{height:72px;flex-shrink:0;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--border);padding:0 26px}.brand{font-size:23px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:8px}.brand svg{background:#256459;color:white;padding:7px;width:36px;height:38px;border-radius:8px}.topbar>span{flex:1;color:#6d7e88;font-size:14px}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;border:1px solid var(--border);border-radius:6px;background:white;font-size:14px;font-weight:500}button svg{width:18px;height:18px}button:hover{background:#f0f5f4}.work{display:flex;flex:1;min-height:0}.left{width:240px;flex-shrink:0;border-right:1px solid var(--border);padding:24px 16px}.left button{width:100%;justify-content:flex-start;margin:4px 0}.left h3{display:flex;align-items:center;gap:10px}.active{background:#e5f1ed!important;color:#256459!important}.center{flex:1;min-width:0;display:flex;flex-direction:column}.planbar{display:flex;align-items:center;gap:18px;padding:18px 24px}.planbar span{font-size:14px;color:#6d7e88}h1{font-size:22px;font-weight:650}h2{font-size:15px;font-weight:650;margin:0 0 22px;display:flex;gap:8px;align-items:center}h3{font-size:15px;font-weight:600;margin:20px 0 10px}p{font-size:14px;line-height:1.6;color:#6d7e88}.toolbar{display:flex;gap:7px;padding:8px 20px;border-block:1px solid var(--border);flex-wrap:wrap}.canvas{flex:1;min-height:300px;background:#f4f7f9;overflow:hidden}.canvas svg{width:100%;height:100%;min-height:400px;display:block}.right{width:260px;flex-shrink:0;padding:24px 20px;border-left:1px solid var(--border)}@media(max-width:1000px){.right{display:none}.left{width:210px}}@media(max-width:640px){.left{display:none}.topbar{gap:12px;padding:0 12px}.topbar>span{display:none}.planbar{padding:14px}.toolbar{padding:8px}.canvas svg{min-height:350px}}

.project-title{flex:1;min-width:0}.project-title input{width:100%;border:0;padding:0;font-weight:600;background:transparent;font-size:15px}.project-title span{display:block;font-size:12px;color:#788b94;margin-top:2px}.primary{background:#256459;color:white;border-color:#256459}.primary:hover{background:#1c544a}.iconbutton{padding:8px;border:0;background:transparent;flex-shrink:0}.leftwrap{width:240px;flex-shrink:0;border-right:1px solid var(--border);background:white}.leftwrap [data-slot=sidebar-wrapper]{min-height:100%;height:100%;width:100%}.left{padding:24px 14px;border:0;height:100%}.left [data-slot=sidebar-content]{gap:0}.left h2{margin:0 0 20px 8px}.left button{border:0;padding:10px 9px;margin:2px 0;background:transparent;font-size:14px}.left .building{font-weight:650}.building.chosen{color:#256459}.building>span{margin-left:auto;font-size:12px;color:#718791;background:#edf3f4;padding:0 6px;border-radius:4px}.building-group{margin-top:12px}.floors{margin-left:13px;border-left:1px solid #dce4e9;padding-left:10px}.floors button{padding:9px 8px}.floors button>span{flex:1;text-align:left}.floors small{font-size:12px;color:#7b8c94}.floors svg{width:15px}.left .textbutton{color:#73868f;font-size:13px}.left .add-building{border:1px dashed #cdd9de;margin:22px 0}.layers{border-top:1px solid var(--border);padding:22px 8px}.layers h2{margin-left:0}.layers label{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:18px 0;gap:8px}.layers [role=switch]{width:30px;padding:0;border:0;height:18px;min-height:0}.layers [role=switch][data-state=checked]{background:#256459}.side-note{display:flex;gap:10px;padding:18px 8px;margin-top:auto;color:#758b94}.side-note svg{flex-shrink:0}.side-note p{font-size:12px;margin:0}.side-heading{display:flex;justify-content:space-between}.planbar{justify-content:space-between;min-height:94px}.breadcrumb{font-size:12px;color:#8597a1;margin-bottom:4px}.breadcrumb span{margin:0 7px}.view-tabs{border:1px solid #dde5e9;background:#f5f8f9;padding:4px;height:40px!important}.view-tabs button{border:0;box-shadow:none;padding:8px 12px;font-size:14px}.view-tabs button[data-state=active]{background:#fff;color:#256459;box-shadow:0 1px 4px #273d4c12}.toolbar{gap:4px;padding:10px 16px;flex-shrink:0;background:white}.toolbar button{border:0;padding:8px 9px}.toolbar-spacer{flex:1}.contextbar{display:flex;gap:20px;align-items:end;padding:10px 20px;background:#fbfcfc;border-bottom:1px solid var(--border);flex-wrap:wrap}.contextbar .field{margin:0;min-width:160px}.contextbar .field>span{font-size:12px}.canvas{position:relative;min-height:250px}.canvas svg{min-height:0;user-select:none}.canvas-caption{position:absolute;bottom:20px;left:20px;max-width:calc(100% - 180px);font-size:12px;color:#748894;background:#f4f7f9e6;padding:5px 8px;pointer-events:none}.zoom{position:absolute;bottom:20px;right:20px;display:flex;background:white;border:1px solid #dce4e9;border-radius:6px;box-shadow:0 2px 7px #30475709}.zoom button{border:0;background:transparent;font-size:12px;padding:7px 9px}.zoom svg{width:15px;height:15px}.statusbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:34px;padding:8px 20px;border-top:1px solid var(--border);font-size:12px;color:#7a8c96}.right{overflow-y:auto;width:270px;background:#fff;padding:26px 20px}.right h2{padding-bottom:20px;border-bottom:1px solid var(--border)}.field{display:block;margin:14px 0}.field>span{display:block;font-size:13px;color:#6b808d;margin-bottom:7px}.field input,input:not([type=file]){font-family:inherit;color:inherit}.field input{width:100%;border:1px solid var(--border);background:#fff;border-radius:5px;padding:9px 10px;font-size:14px;min-width:0}.field [data-slot=select-trigger]{width:100%;height:38px;font-size:14px;justify-content:space-between}.field [data-slot=select-value]{overflow:hidden;text-overflow:ellipsis}.pair{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.pair .field{min-width:0}.pair .field>span{font-size:12px}.right p{font-size:13px;margin-top:20px}.right button.danger{width:100%;color:#b34444;margin-top:24px;border-color:#efd7d7}.statline{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf1f3;font-size:13px}.statline span{color:#70848f}.statline b{font-weight:600}.selected-title{font-size:18px;font-weight:650;margin-bottom:20px}.metric{font-size:28px;color:#256459;margin-top:20px}.metric small{display:block;font-size:12px;color:#738993}.legend{border-top:1px solid var(--border);margin-top:30px;padding-top:6px}.legend h3{font-size:13px}.legend>div{display:flex;gap:9px;align-items:center;font-size:12px;color:#70838e;margin:12px 0}.legend i{height:8px;width:8px;border-radius:2px}.dash,.solid{width:16px;border-top:2px dashed #d48c49}.solid{border-top:2px solid #598bb5}.board-view{overflow:auto;flex:1;padding:28px;background:#f4f7f9}.board-heading,.circuit-heading{display:flex;gap:16px;align-items:center;justify-content:space-between}.board-heading h2{font-size:19px;margin:0}.board-heading p{margin-top:5px}.cabinet{border:1px solid #ced9df;background:#e6edf1;border-radius:9px;padding:20px 18px 10px;margin:24px 0 36px;box-shadow:inset 0 0 0 6px #eef3f6;overflow:auto}.din-row{margin:0 0 20px;min-width:600px}.din-row>span{display:block;font-size:12px;color:#6e828e;margin:0 0 8px}.rail{position:relative;display:grid;grid-template-columns:repeat(18,minmax(0,1fr));gap:2px;min-height:104px;background:linear-gradient(to bottom,#d7e1e7 42%,#a4b6c1 42%,#a4b6c1 52%,#d7e1e7 52%);padding:8px 3px}.slot{background:#f4f7f8b3;border:1px dashed #c5d1d9;min-width:0}.slot small{display:block;text-align:center;font-size:10px;color:#96a6b0;margin-top:2px}.module{z-index:1;display:flex;flex-direction:column;border:1px solid #b7c5ce;border-radius:3px;background:white;padding:5px 2px;gap:3px;min-width:0;overflow:hidden;box-shadow:1px 2px 3px #2c475322}.module.selected{outline:2px solid #256459;outline-offset:1px}.module small{font-size:9px;letter-spacing:0;color:#7b8b96}.module b{font-size:11px;line-height:1}.module i{display:block;width:12px;height:19px;background:#344957;border-radius:2px;border-top:5px solid #5a7584}.module span{font-size:9px;line-height:1.25;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.circuit-heading h2{font-size:18px;margin:0}.circuit-heading{margin-bottom:18px}[data-slot=table-container]{background:white;border:1px solid var(--border);border-radius:7px}table{font-size:13px}thead{background:#f6f9fa}th{color:#6e838f}table input{padding:7px 6px;border:1px solid transparent;border-radius:4px;width:100%;min-width:110px;max-width:190px;background:transparent;font-size:13px}table input:focus{border-color:#96b5a8;background:#fff}table .field{margin:0}table .field>span{display:none}table .field [data-slot=select-trigger]{border:0;height:32px;min-width:55px;font-size:13px}table .protection{display:flex;align-items:center;gap:2px}.protection input{min-width:40px;width:43px;padding:4px}.board-note{font-size:12px;max-width:800px;margin-top:18px}.error-banner{display:flex;justify-content:center;align-items:center;gap:12px;font-size:12px;padding:6px 16px;background:#fff6e7;color:#8e661f}.error-banner button{font-size:12px;padding:3px 8px}.warning{color:#a36623!important}.mobile-toggle,.inspector-toggle,.inspector-close{display:none}.inspector-close{float:right}.leftwrap .mobile-toggle{width:auto}.left [data-slot=sidebar-content]{overflow-y:auto}.topbar{gap:18px}.topbar .brand{margin-right:20px}[data-slot=dialog-content]{border-radius:10px}[data-slot=dialog-content] form>button{margin-top:12px}.board-view h2 svg{width:18px}
@media(max-width:1250px){.leftwrap{width:220px}.leftwrap [data-slot=sidebar]{width:220px!important}.right{width:235px;padding:22px 16px}.toolbar button span{display:none}.topbar .brand{margin-right:5px}.planbar{padding:16px}.view-tabs button{padding:7px 8px;font-size:13px}}
@media(max-width:1050px){.right{display:none}.inspector-toggle{display:inline-flex}.right.opened{display:block;position:absolute;right:0;top:72px;bottom:0;z-index:30;width:290px;box-shadow:-8px 0 24px #273f4b19}.inspector-close{display:inline-flex}.leftwrap{width:210px}.leftwrap [data-slot=sidebar]{width:210px!important}.view-tabs button{font-size:12px}.board-view{padding:18px}}
@media(max-width:760px){.leftwrap{display:none}.leftwrap.opened{display:block;position:absolute;top:72px;left:0;bottom:0;z-index:40;width:250px;box-shadow:8px 0 24px #273f4b19}.leftwrap.opened [data-slot=sidebar]{width:250px!important;display:flex!important}.mobile-toggle{display:inline-flex}.brand{font-size:19px}.brand svg{width:30px;height:32px;padding:6px}.topbar{gap:7px;padding:0 10px}.topbar .project-title{display:none}.topbar .brand{flex:1}.export-button{font-size:0;gap:0;padding:8px}.export-button svg{width:18px}.planbar{padding:12px;min-height:90px;gap:8px;flex-wrap:wrap}.planbar h1{font-size:20px}.breadcrumb{font-size:12px}.view-tabs button{padding:7px}.view-tabs button svg{display:none}.toolbar{padding:8px}.toolbar button{padding:8px}.contextbar{padding:8px;gap:8px}.contextbar .field{min-width:140px;flex:1}.contextbar .field>span{font-size:12px}.canvas-caption{font-size:12px;left:8px;bottom:60px;max-width:95%}.zoom{right:12px;bottom:14px}.canvas{min-height:320px}.statusbar{padding:8px 12px}.board-heading{align-items:flex-start;flex-direction:column}.board-heading h2{font-size:17px}.board-view{padding:16px}.error-banner{font-size:12px}.board-heading p{font-size:12px}.topbar .primary{padding:9px}.layers [role=switch]{width:30px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.din-row{min-width:540px}.module small,.module b,.module span{font-size:12px}.module span{padding-top:3px}.slot small{font-size:12px}.board-view .field>span{font-size:14px}button[data-slot=dialog-close]{font-size:14px}
:root{--plan-bg:#f4f7f9;--plan-room:#fff;--plan-selection:#e9f3ef;--plan-wall:#425663;--plot-fill:#edf4ef}
.plot-editor,.plot-main{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.plot-body{display:flex;flex:1;min-height:0}.plot-inspector{width:270px;flex-shrink:0;padding:24px 20px;overflow-y:auto;border-left:1px solid var(--border);background:var(--background)}.plot-inspector h2{padding-bottom:18px;border-bottom:1px solid var(--border)}.plot-inspector .danger{margin-top:22px;color:var(--destructive)}.plot-inspector p{font-size:12px;margin:12px 0}.plot-main .canvas-caption{max-width:calc(100% - 40px)}.plot-properties-toggle{display:none}.bend-row{display:flex;gap:7px;align-items:center}.bend-row .field{min-width:0}.bend-row button{padding:6px}.length-details{margin:22px 0;padding-top:12px;border-top:1px solid var(--border)}.length-details>div{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:12px 0}.length-details b{white-space:nowrap}.length-details .length-total{border-top:1px solid var(--border);padding-top:12px;font-size:14px;color:var(--primary)}.length-details p{font-size:12px}.topbar{gap:12px}.topbar .brand{margin-right:4px}.plot-editor .contextbar{gap:10px}.plot-editor .contextbar .field{min-width:140px;max-width:240px;flex:1}
[data-theme=dark]{color-scheme:dark;--background:#17222c;--foreground:#e0e9ef;--card:#17222c;--card-foreground:#e0e9ef;--popover:#202f3a;--popover-foreground:#e0e9ef;--primary:#75c5ae;--primary-foreground:#112d25;--secondary:#243540;--secondary-foreground:#e0e9ef;--muted:#243540;--muted-foreground:#a3b6c3;--accent:#28463f;--accent-foreground:#91d5c1;--border:#354753;--input:#354753;--ring:#75c5ae;--sidebar:#17222c;--sidebar-foreground:#e0e9ef;--sidebar-accent:#28463f;--sidebar-accent-foreground:#91d5c1;--sidebar-border:#354753;--plan-bg:#111c25;--plan-room:#223440;--plan-selection:#294a43;--plan-wall:#819aa8;--plot-fill:#182e2c;--destructive:#ed9696}
body{background:var(--background)}button,.leftwrap,.toolbar,.right,.field input,[data-slot=table-container],.zoom{background:var(--background)}button:hover{background:var(--secondary)}.canvas,.board-view{background:var(--plan-bg)}.active{background:var(--accent)!important;color:var(--accent-foreground)!important}.contextbar,thead,.view-tabs{background:var(--muted)}.view-tabs button[data-state=active]{background:var(--background);color:var(--primary)}.canvas-caption{background:var(--plan-bg);color:var(--muted-foreground)}.field>span,p,.right p,.breadcrumb,.planbar span,.statline span,.legend>div,.project-title span,.statusbar,.side-note{color:var(--muted-foreground)}.statline{border-color:var(--border)}.building.chosen,.metric{color:var(--primary)}.primary{background:#256459;color:white}.primary:hover{background:#1c544a}
[data-theme=dark] .cabinet{background:#233440;box-shadow:inset 0 0 0 6px #2b3e4b;border-color:#4b626f}[data-theme=dark] .rail{background:linear-gradient(to bottom,#304754 42%,#597481 42%,#597481 52%,#304754 52%)}[data-theme=dark] .slot{background:#253944b3;border-color:#47606d}[data-theme=dark] .module{background:#334956;border-color:#6b8795}[data-theme=dark] .module small,[data-theme=dark] .slot small,[data-theme=dark] .din-row>span{color:#bed0da}[data-theme=dark] .building>span{background:#2c414e;color:#bed0da}[data-theme=dark] table input:focus{background:var(--background)}[data-theme=dark] .error-banner{background:#463621;color:#ecd1a2}
@media(max-width:1250px){.plot-inspector{width:240px;padding:20px 16px}.topbar .export-button{font-size:0;gap:0}.topbar .export-button svg{width:18px}}
@media(max-width:1050px){.plot-inspector{display:none}.plot-properties-toggle{display:inline-flex}.plot-inspector.opened{display:block;position:absolute;right:0;top:72px;bottom:0;width:290px;z-index:30;box-shadow:-8px 0 24px #0003}.plot-inspector>.iconbutton{float:right}.topbar .pdf-button{font-size:0;gap:0}.topbar .pdf-button svg{width:18px}}
@media(max-width:760px){.topbar{gap:3px}.topbar .iconbutton{padding:7px}.topbar .pdf-button{padding:8px}.topbar .brand{font-size:17px}.topbar .brand svg{width:26px}.plot-editor .toolbar{gap:0}.plot-editor .toolbar button{font-size:12px;padding:8px 6px}.plot-main .canvas-caption{max-width:95%;bottom:15px}.plot-inspector .pair{gap:0 12px}}
.auth-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid var(--border);border-radius:6px;font-size:14px;text-decoration:none}.auth-link svg{width:18px;height:18px}.secondary-auth{border:0;color:var(--muted-foreground)}.account-identity,.database-state{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--border);border-radius:7px;min-width:0}.account-identity>svg,.database-state>svg{flex-shrink:0;width:22px;color:var(--primary)}.account-identity div,.database-state div{min-width:0}.account-identity span,.database-state span{display:block;font-size:13px;color:var(--muted-foreground);overflow-wrap:anywhere}.account-identity strong,.database-state b{font-size:15px;overflow-wrap:anywhere}.legacy-banner{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 20px;background:var(--accent);color:var(--accent-foreground);font-size:13px}.legacy-banner button{font-size:12px;padding:5px 8px}.topbar .project-title{min-width:120px}.topbar .pdf-button,.account-button{white-space:nowrap}
@media(max-width:1250px){.account-button span{display:none}.account-button{padding:8px}.topbar .pdf-button span{display:none}.topbar .pdf-button{gap:0;padding:8px}}
@media(max-width:760px){.topbar .primary{font-size:0;gap:0;padding:8px}.topbar .primary svg{width:18px}.topbar .brand{flex:1;margin:0;gap:4px}.topbar .project-title{min-width:0}.legacy-banner{flex-wrap:wrap;padding:8px 12px;gap:5px}.account-button{padding:7px}.legacy-banner span{flex:1;min-width:160px}}
.loading-plan{position:fixed;inset:0;z-index:100;background:var(--background);display:grid;place-items:center;color:var(--muted-foreground);font-size:16px}
