:root{font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--ground);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color-scheme:light dark;--ground: #eeeee6;--panel: #f7f7f1;--paper: #fdfcf8;--ink: #303b2b;--muted: #68705f;--line: #d9ddcf;--grid: #d5d9cd;--accent: #485a39;--accent-ink: #fff;--accent-soft: #e7ebdd;--hover: #eceee4;--focus: #a65e35;--error: #993f30;--error-bg: #fff0e9;--sans: Arial, Helvetica, sans-serif;--serif: Georgia, "Times New Roman", serif;--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.38}button{color:inherit}button,a,summary{touch-action:manipulation}button{transition:background-color .15s ease-out,color .15s ease-out}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:4px}::selection{background:var(--accent);color:var(--accent-ink)}input,textarea{caret-color:var(--accent)}*{scrollbar-color:var(--line) var(--ground);scrollbar-width:thin}a{color:inherit;text-underline-offset:4px}button svg{flex-shrink:0}h1,h2,p{margin:0}h2{font-size:14px;font-weight:600;letter-spacing:-.02em}input,textarea,select{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:5px;min-width:0;width:100%;padding:9px 10px;line-height:1.4}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}textarea{resize:vertical;min-height:65px}select{padding-right:22px}.app-header{height:89px;padding:0 32px;display:flex;align-items:center;gap:35px;background:var(--panel);border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:10px;font:27px var(--serif);letter-spacing:-1.1px;text-decoration:none;white-space:nowrap}.wordmark-dot{color:var(--focus)}.brand-symbol{display:grid;place-items:center;width:38px;height:38px}.header-description{font:italic 15px var(--serif);color:var(--muted)}.header-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.button{border:1px solid var(--line);border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 14px;min-height:40px;font-size:12px;font-weight:600;background:var(--panel);white-space:nowrap}.button:hover:not(:disabled){background:var(--hover)}.button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.button.primary:hover:not(:disabled){background:var(--ink)}.button.quiet{background:transparent;border-color:transparent;font-weight:400}.full{width:100%}.workspace{display:grid;grid-template-columns:215px minmax(0,1fr) 254px;min-height:calc(100vh - 220px);max-width:1900px;margin:auto}.tools-panel{padding:27px 20px 24px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.tiny-square{width:5px;height:5px;border:1px solid var(--muted)}.panel-intro{color:var(--muted);font-size:12px;line-height:1.65;margin:9px 0 25px}.tools{display:flex;flex-direction:column;gap:3px}.tool{background:transparent;border:1px solid transparent;border-radius:5px;display:flex;align-items:center;gap:11px;text-align:left;min-height:41px;padding:7px 9px;font-size:12px}.tool>svg{width:25px}.tool:hover{background:var(--hover)}.tool.active{background:var(--accent-soft);border-color:var(--line);color:var(--accent)}.tool.active:before{content:"";width:3px;height:15px;border-radius:3px;background:currentColor;margin-left:-10px;margin-right:7px}.tool-hint{margin-left:auto;font-size:8px;letter-spacing:.06em;color:var(--muted)}.tool-divider{height:1px;background:var(--line);margin:10px 5px}.precise{margin-top:22px;border-top:1px solid var(--line);padding-top:15px}summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);min-height:28px}summary::-webkit-details-marker{display:none}details[open]>summary{color:var(--ink);margin-bottom:10px}details[open]>summary svg{transform:rotate(180deg)}details p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 10px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);margin:12px 0}.field input,.field select,.field textarea{font-size:12px;color:var(--ink)}.device-note{display:flex;gap:9px;padding-top:36px;margin-top:auto;font-size:11px}.device-note strong{font-size:11px;font-weight:500}.device-note p{line-height:1.6;color:var(--muted);margin-top:5px}.device-check{color:var(--accent);padding-top:1px}.file-actions{padding-top:19px;margin-top:20px;border-top:1px solid var(--line);display:grid;gap:3px}.file-actions button{display:flex;gap:9px;align-items:center;border:0;background:transparent;font-size:11px;padding:8px 0;text-align:left;color:var(--muted)}.file-actions button:hover{color:var(--ink)}.drawing-area{min-width:0;padding:29px 27px 22px;align-self:start}.plan-heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:29px;align-items:center}.plan-name{min-width:0;flex:1}.plan-name>input{font:24px var(--serif);padding:0 0 4px;border:0;border-radius:0;background:transparent;width:100%;text-overflow:ellipsis}.save-line{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;min-height:20px;flex-wrap:wrap}.save-dot{width:5px;height:5px;background:#718657;border-radius:50%}.save-dot.failed{background:var(--error)}.sample-label{margin-left:5px;border:1px solid var(--line);padding:2px 5px;border-radius:3px;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.history-actions{display:flex;gap:5px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:32px;background:transparent;border:0;border-radius:4px;padding:0}.icon-button:hover:not(:disabled){background:var(--hover)}.canvas-controls{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin-bottom:12px;gap:8px}.sheet-label{display:flex;align-items:center;gap:7px;min-width:0}.sheet-mark{width:8px;height:10px;border:1px solid var(--muted);display:inline-block}.muted{color:var(--muted)}.zoom-controls{display:flex;align-items:center;gap:3px}.zoom-value{font:10px var(--mono);background:transparent;border:0;min-width:43px;padding:7px 4px;color:var(--muted)}.canvas-scroll{overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:3px;box-shadow:0 5px 16px -12px #34402a40;max-height:75vh}.canvas-sheet{position:relative;background:var(--paper);margin:auto;min-height:400px}.plan-canvas{display:block;width:100%;height:auto;min-height:400px;outline-offset:-3px!important;touch-action:pan-x pan-y}.tool-wall .plan-canvas,.tool-link .plan-canvas,.tool-downlight .plan-canvas,.tool-pendant .plan-canvas,.tool-fan .plan-canvas,.tool-switch .plan-canvas,.tool-dimmer .plan-canvas,.tool-outlet .plan-canvas{cursor:crosshair}.ruler-number{font:10px var(--mono);fill:var(--muted)}.wall-line{stroke:var(--ink);stroke-width:6;stroke-linecap:square;pointer-events:none}.wall-hit{stroke:transparent;stroke-width:20;cursor:pointer}.wall-line.selected{stroke:var(--focus)}.circuit-line{stroke-width:1.8;stroke-dasharray:6 5;fill:none;pointer-events:none}.circuit-line.selected{stroke-width:4}.link-hit{fill:none;stroke:transparent;stroke-width:14;cursor:pointer}.fixture{cursor:pointer}.fixture-target{fill:var(--paper);stroke:none}.fixture-glyph{fill:var(--paper);stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.fixture-label{font:11px var(--sans);font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:3px;stroke-linejoin:round}.selection-ring{stroke:var(--focus);stroke-width:1.5;fill:var(--accent-soft);opacity:0}.fixture.selected .selection-ring,.fixture:focus .selection-ring,.fixture:hover .selection-ring{opacity:1}.note-dot,.wall-anchor{fill:var(--focus)}.wall-preview{stroke:var(--focus);stroke-width:3;stroke-dasharray:7 5}.cursor-cross{stroke:var(--focus);stroke-width:1;opacity:0}.plan-canvas:focus .cursor-cross{opacity:.9}.scale{stroke:var(--muted);fill:none;stroke-width:1}.scale text{fill:var(--muted);stroke:none;font:9px var(--mono)}.drawing-stamp{font:8px var(--sans);letter-spacing:1.6px;fill:var(--muted)}.empty-plan{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:370px;text-align:center;background:var(--paper);padding:25px 20px 20px}.empty-symbol{display:flex;justify-content:center;margin-bottom:18px;color:var(--accent)}.empty-plan h1{font:29px/1.15 var(--serif);letter-spacing:-.8px}.empty-plan p{font-size:12px;color:var(--muted);line-height:1.7;margin:15px 0 22px}.empty-plan .button{font-size:11px;padding:10px 15px}.text-button{display:flex;align-items:center;justify-content:center;gap:10px;background:none;border:0;padding:15px 0 0;font-size:11px;margin:auto;color:var(--muted)}.text-button:hover{color:var(--ink)}.canvas-bottom{font-size:10px;border-bottom:1px solid var(--line);padding:14px 0 17px;display:grid;gap:18px}.mode-instructions{display:flex;align-items:baseline;gap:7px;color:var(--ink);line-height:1.6;min-height:17px}.mode-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--focus);flex-shrink:0}.view-options{display:flex;align-items:center;gap:17px;color:var(--muted)}.view-options label{display:flex;align-items:center;gap:5px;cursor:pointer}.view-options input{width:12px;height:12px;accent-color:var(--accent);margin:0}.grid-size{margin-left:auto;font-family:var(--mono);font-size:9px}.under-canvas{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted);line-height:1.5;padding-top:18px}.under-canvas>span:first-child{font:italic 13px var(--serif)}.details-panel{padding:27px 21px 22px;border-left:1px solid var(--line);background:var(--panel)}.details-panel section+section{margin-top:27px;padding-top:22px;border-top:1px solid var(--line)}.section-description{font-size:10px;line-height:1.6;color:var(--muted);margin:7px 0 13px}.circuits{display:grid;gap:3px}.circuit-row{border-radius:4px;border:1px solid transparent}.circuit-row.active{border-color:var(--line);background:var(--paper)}.circuit-choice{display:flex;gap:8px;align-items:center;padding:11px 9px;width:100%;border:0;background:transparent;text-align:left;min-width:0;font-size:11px}.circuit-choice>span:nth-child(2){flex:1;overflow-wrap:anywhere}.circuit-choice:hover{background:var(--hover)}.circuit-swatch{width:8px;height:8px;border-radius:50%;flex-shrink:0}.circuit-count{font:10px var(--mono);color:var(--muted)}.circuit-edit{margin:8px 0}.color-field{flex-direction:row;align-items:center;justify-content:space-between}.color-field input{width:45px;height:30px;padding:2px;cursor:pointer}.delete-button{display:flex;align-items:center;gap:7px;background:transparent;border:0;padding:8px 0;color:var(--error);font-size:10px}.connect-form{padding-top:5px}.connect-form .button{font-size:10px;padding:10px 5px}.notes-section>textarea{font-size:11px;line-height:1.65;margin-top:12px;padding:12px;min-height:150px}.notes-section .section-description{margin-bottom:0}.symbol-key{display:grid;grid-template-columns:1fr 1fr;gap:10px 7px;margin-top:18px}.symbol-key>div{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}.legend-section .section-description{margin-top:16px;margin-bottom:0}.items-section{margin-top:23px;padding-top:16px;border-top:1px solid var(--line)}.items-section summary span{font-family:var(--mono)}.item-list{display:flex;flex-direction:column;max-height:230px;overflow:auto}.item-list button{border:0;border-radius:3px;background:transparent;padding:9px 5px;text-align:left;font-size:11px}.item-list button:hover{background:var(--hover)}.small-label{font-size:11px;font-weight:500}.inspector-description{font-size:11px;margin-top:12px;line-height:1.6}.inspector{padding-bottom:0}.inspector .panel-heading h2{color:var(--focus)}.live-status{padding:10px 28px 10px 242px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px;line-height:1.6;color:var(--muted);background:var(--panel)}footer{padding:20px 32px 22px;display:flex;align-items:center;gap:38px;color:var(--muted);font-size:10px;line-height:1.7;max-width:1900px;margin:auto}footer p{max-width:730px}footer>div{display:flex;gap:24px;white-space:nowrap;margin-left:auto}footer a:hover{color:var(--ink)}.error-message{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:15px;border:1px solid var(--error);border-radius:4px;background:var(--error-bg);color:var(--error);font-size:12px;line-height:1.6}.error-message p{flex:1}.help-panel{background:var(--panel);border:1px solid var(--line);padding:18px;margin-bottom:20px;font-size:12px;line-height:1.7}.help-panel ol{padding-left:18px}.help-panel li+li{margin-top:7px}.help-panel p{font-size:11px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.workspace{grid-template-columns:235px minmax(0,1fr) 285px}.tools-panel,.details-panel{padding:30px 26px}.drawing-area{padding:30px 36px}.plan-heading{margin-bottom:35px}.canvas-bottom{display:flex;justify-content:space-between}.mode-instructions{max-width:55%}.live-status{padding-left:271px}}@media(max-width:1150px){.app-header{padding:0 22px;gap:15px}.header-description{display:none}.workspace{grid-template-columns:185px minmax(0,1fr) 225px}.tools-panel{padding:25px 14px}.drawing-area{padding:25px 18px}.details-panel{padding:25px 15px}.symbol-key{grid-template-columns:1fr 1fr;gap:8px 3px}.symbol-key>div{font-size:9px;gap:2px}.under-canvas{flex-direction:column;gap:5px}footer{align-items:flex-start;padding:18px 22px}footer>div{flex-direction:column;gap:5px}.live-status{padding-left:203px}}@media(max-width:900px){.workspace{grid-template-columns:170px minmax(0,1fr)}.details-panel{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:25px}.details-panel section+section{margin-top:0;padding-top:0;border-top:0}.details-panel .inspector{grid-column:1/-1;max-width:500px}.legend-section,.items-section{border-top:1px solid var(--line)!important;padding-top:20px!important;margin-top:0}.symbol-key>div{font-size:11px}.canvas-scroll{max-height:600px}.tool{font-size:11px;gap:8px}.tool-hint{display:none}.panel-intro{font-size:11px}.device-note,.device-note strong{font-size:10px}.live-status{padding-left:25px}.drawing-area{padding-bottom:25px}.header-actions{gap:6px}.help-button span{display:none}}@media(max-width:600px){.app-header{height:auto;min-height:77px;padding:15px 16px;flex-wrap:wrap;gap:12px}.wordmark{font-size:25px;gap:5px}.wordmark .brand-symbol{width:30px}.header-actions{gap:5px}.header-actions .button{font-size:11px;padding:9px 10px;gap:6px}.header-actions .help-button{display:none}.header-actions .button.primary{font-size:0;gap:0;width:36px}.header-actions .button.primary svg{width:17px}.header-actions .button.primary span{font-size:0}.header-actions .button.primary:after{content:"PDF";font-size:10px;margin-left:4px}.header-actions .button.primary{width:auto;padding:9px}.workspace{display:flex;flex-direction:column}.tools-panel{padding:15px 16px;border-right:0;border-bottom:1px solid var(--line)}.tools-panel .panel-heading,.panel-intro,.device-note,.file-actions{display:none}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.tool{min-height:37px;justify-content:flex-start;padding:5px 6px;font-size:10px;border:1px solid var(--line);gap:6px}.tool>svg{width:21px;height:21px}.tool.active:before{display:none}.tool-divider,.tool-hint{display:none}.precise{border:0;margin-top:6px;padding-top:0}.precise summary{font-size:10px}.precise[open]{max-width:100%}.precise .two-fields{display:inline-grid;width:50%;padding-right:10px}.precise .button{width:45%}.tools-panel>.small-field{margin:10px 0}.drawing-area{padding:22px 16px 24px;width:100%}.plan-heading{margin-bottom:17px}.plan-name>input{font-size:24px}.save-line{font-size:9px}.history-actions{gap:0}.canvas-controls{margin-bottom:7px}.sheet-label{font-size:9px}.sheet-label .muted{display:none}.canvas-scroll{height:440px;max-height:none}.canvas-sheet{min-width:100%!important;width:100%!important;height:438px;overflow:visible}.plan-canvas{width:640px;height:448px;max-width:none;min-height:0}.empty-plan{position:absolute;left:0;top:50%;transform:translateY(-50%);width:100%;padding:22px 8px}.empty-plan h1{font-size:28px}.canvas-bottom{gap:12px;padding-bottom:15px}.mode-instructions{font-size:10px}.view-options{gap:15px;font-size:9px}.grid-size{font-size:8px}.under-canvas{flex-direction:row;gap:8px;font-size:9px}.under-canvas>span:first-child{font-size:12px;max-width:55%}.under-canvas>span:last-child{text-align:right;max-width:45%}.details-panel{display:block;padding:24px 20px}.details-panel section+section{margin-top:26px;padding-top:23px;border-top:1px solid var(--line)}.details-panel .panel-heading h2,.details-panel h2{font-size:15px}.section-description{font-size:11px}.circuit-choice{font-size:12px;padding:12px}.circuits{gap:5px}.notes-section>textarea{min-height:110px;font-size:12px}.symbol-key{grid-template-columns:repeat(3,1fr);gap:12px 6px}.symbol-key>div{font-size:9px;gap:2px}.items-section{margin-top:26px}.tools-panel .file-actions{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:9px;padding-top:8px}.file-actions button{font-size:10px;padding:8px 0}.live-status{padding:12px 20px;font-size:10px}footer{padding:20px;display:block;font-size:9px}footer>div{flex-direction:row;justify-content:space-between;gap:12px;margin-top:14px}.help-panel,.error-message{font-size:11px}.zoom-controls{display:none}}@media(prefers-color-scheme:dark){:root{--ground: #20271f;--panel: #272f25;--paper: #2e362b;--ink: #e2e6d8;--muted: #b0baa5;--line: #46503f;--grid: #4c5944;--accent: #c1cea7;--accent-ink: #202b19;--accent-soft: #3b4832;--hover: #374131;--focus: #e7ad7b;--error: #f1b4a4;--error-bg: #452f29}.button.primary:hover:not(:disabled){background:#d6dfc1}.circuit-line{filter:brightness(1.6) saturate(.8)}.circuit-swatch{filter:brightness(1.5)}.canvas-scroll{box-shadow:0 5px 16px -12px #0008}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.mobile-help,.mobile-canvas-hint{display:none}@media(max-width:600px){.mobile-help{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:8px 0;color:var(--muted);font-size:10px;min-height:30px}.mobile-canvas-hint{display:block;font-size:10px;color:var(--muted);margin:9px 0 0}}
