:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e6e9ef;background:#0f1115;font-synthesis:none;text-rendering:optimizeLegibility;font-variant-numeric:tabular-nums;--app-bg: #0f1115;--panel-bg: #181c23;--line: #2a303b;--muted: #98a2b3;--accent: #4c9aff;--warn: #f5a524;--error: #f0616d;--success: #3ecf8e}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{overflow:hidden;min-width:320px;background:var(--app-bg)}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}svg{display:block}.app-shell{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;background:var(--app-bg)}.topbar{z-index:10;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 18px;border-bottom:1px solid var(--line);background:#12151a}.brand,.header-actions{display:flex;align-items:center;min-width:0}.brand{gap:9px}.brand-mark{display:grid;width:25px;height:25px;place-items:center;border:1px solid #3c5e88;border-radius:7px;background:#18283c;color:#83bbff}.brand-mark svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.brand h1{margin:0;font-size:14px;font-weight:640;letter-spacing:.015em;white-space:nowrap}.brand h1 span{color:#aab4c4;font-weight:480}.license-badge{padding:2px 7px;border:1px solid #345842;border-radius:999px;background:#13251c;color:#72d8a1;font-size:10px;font-weight:700;line-height:1.4}.header-actions{gap:9px}.privacy-note{display:flex;align-items:center;gap:6px;margin-right:8px;color:var(--muted);font-size:11px;white-space:nowrap}.privacy-note svg{width:14px;height:14px;fill:none;stroke:#65bb8c;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}.file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid transparent;border-radius:6px;font-size:12px;font-weight:610;cursor:pointer;transition:background-color .14s ease,border-color .14s ease}.button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.button-primary{background:#287bd4;color:#fff}.button-primary:hover{background:#378ee9}.button-secondary{border-color:#39414e;background:#1b2028;color:#d9dee8}.button-secondary:hover,.button-secondary.active{border-color:#54749c;background:#232c38}.button:disabled{cursor:not-allowed;opacity:.48}.samples-wrap{position:relative}.samples-wrap>button{height:34px}.samples-wrap>button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.samples-menu{position:absolute;top:40px;right:0;z-index:30;width:min(330px,calc(100vw - 20px));max-height:min(60vh,450px);overflow:auto;padding:5px;border:1px solid #39414e;border-radius:9px;background:#1b2028;box-shadow:0 14px 44px #0009}.samples-menu button{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:9px 10px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer}.samples-menu button:hover{background:#27313e}.samples-menu button span{font-size:12px;font-weight:650}.samples-menu button small{color:var(--muted);font-size:10px;line-height:1.35}.workspace{position:relative;display:grid;flex:1 1 auto;min-height:0;grid-template-columns:258px minmax(0,1fr) 286px}.side-panel{min-width:0;overflow:auto;border-color:var(--line);background:var(--panel-bg);scrollbar-color:#3a4350 #181c23;scrollbar-width:thin}.left-panel{border-right:1px solid var(--line)}.right-panel{border-left:1px solid var(--line)}.panel-group{padding:15px 13px 16px;border-bottom:1px solid var(--line)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}.panel-heading h2{margin:0;font-size:12px;font-weight:680;letter-spacing:.01em}.panel-heading span{display:block;margin-top:4px;color:var(--muted);font-size:10px}.panel-actions{display:flex;gap:5px}.panel-actions button,.layer-only{min-height:24px;padding:0 6px;border:1px solid #3a4350;border-radius:4px;background:#202630;color:#b9c4d3;font-size:9px;cursor:pointer}.panel-actions button:hover,.layer-only:hover{border-color:#56779f;color:#fff}.layer-list,.count-list,.warning-list{list-style:none;padding:0;margin:0}.layer-row{display:grid;min-height:34px;grid-template-columns:12px minmax(0,1fr) 28px 29px 47px;align-items:center;gap:6px;border-top:1px solid #242a33}.color-chip{width:10px;height:10px;border:1px solid #ffffff40;border-radius:3px}.layer-name{overflow:hidden;color:#d9dee7;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.layer-count{color:var(--muted);font-size:10px;text-align:right}.visibility-toggle{display:grid;width:27px;height:25px;place-items:center;border:1px solid transparent;border-radius:4px;background:transparent;color:#657182;cursor:pointer}.visibility-toggle:hover,.visibility-toggle.is-visible{color:#b8c7db}.visibility-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}.layer-only{white-space:nowrap}.panel-empty{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.layouts-group{padding-top:14px}.layouts-group .panel-heading{margin-bottom:7px}.viewport-shell{position:relative;min-width:0;min-height:0;overflow:hidden;background:#14171c}.cad-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.cad-canvas.tool-measure{cursor:crosshair}.canvas-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:25px;color:#a5afbd;text-align:center;pointer-events:none}.canvas-empty strong{max-width:360px;color:#e3e7ee;font-size:14px;font-weight:590}.canvas-empty>span{max-width:360px;font-size:11px;line-height:1.5}.loading-orbit{display:grid;width:34px;height:34px;place-items:center;border:2px solid #314052;border-top-color:#4c9aff;border-radius:50%;animation:orbit .9s linear infinite}.loading-orbit span{width:7px;height:7px;border-radius:50%;background:var(--accent)}@keyframes orbit{to{transform:rotate(360deg)}}.canvas-file{position:absolute;top:11px;left:12px;display:flex;max-width:calc(100% - 24px);align-items:center;gap:7px;padding:6px 9px;border:1px solid #333b46;border-radius:5px;background:#181c23e8;color:#c8d0dc;font-size:10px;box-shadow:0 2px 9px #0003;pointer-events:none}.stage-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#727d8b}.stage-dot.ready{background:var(--success);box-shadow:0 0 0 3px #3ecf8e23}.canvas-stage{overflow:hidden;margin-left:4px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.canvas-warning{position:absolute;top:52px;left:12px;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #725529;border-radius:5px;background:#2a2113e8;color:#f0bd5c;font-size:10px;pointer-events:none}.canvas-warning svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.measure-hint{position:absolute;top:13px;left:50%;transform:translate(-50%);padding:6px 10px;border:1px solid #70552e;border-radius:5px;background:#251e14ed;color:#f3c36c;font-size:10px;pointer-events:none;white-space:nowrap}.floating-tools{position:absolute;bottom:17px;left:50%;display:flex;align-items:center;gap:3px;padding:5px;transform:translate(-50%);border:1px solid #3b434d;border-radius:9px;background:#1b2028f2;box-shadow:0 8px 25px #0008}.floating-tools button{display:flex;min-width:79px;min-height:38px;align-items:center;justify-content:center;gap:6px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:#c2cbd8;font-size:10px;cursor:pointer}.floating-tools button:hover{background:#272f3a;color:#fff}.floating-tools button.tool-active{border-color:#37639a;background:#1e3550;color:#a8d0ff}.floating-tools button:disabled{cursor:not-allowed;opacity:.4}.floating-tools svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}.measure-result{position:absolute;bottom:72px;left:50%;transform:translate(-50%);padding:6px 10px;border:1px solid #70552e;border-radius:5px;background:#251e14ed;color:#f3c36c;font-size:10px;white-space:nowrap}.property-list,.metric-grid{margin:0}.property-row{display:grid;grid-template-columns:minmax(55px,.7fr) minmax(0,1.3fr);gap:8px;padding:7px 0;border-top:1px solid #252b34}.property-row dt,.metric-cell dt{color:var(--muted);font-size:10px}.property-row dd,.metric-cell dd{overflow-wrap:anywhere;margin:0;color:#dce2eb;font-size:10px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;overflow:hidden;border:1px solid #2c333e;border-radius:6px;background:#2c333e}.metric-cell{min-width:0;min-height:46px;padding:8px;background:#1a1f27}.metric-cell dd{margin-top:4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:590}.subheading{margin:14px 0 6px;color:#bdc6d3;font-size:10px;font-weight:620}.count-list li{display:flex;justify-content:space-between;gap:8px;padding:5px 1px;border-top:1px solid #252b34;color:#cbd3de;font-size:10px}.count-list b{color:#eef2f7;font-weight:600}.warning-item{display:flex;gap:7px;padding:8px 0;border-top:1px solid #3a3022;color:#edc36f;font-size:10px;line-height:1.5}.warning-error{color:#ff8992}.warning-info{color:#9ac8ff}.warning-marker{display:grid;width:16px;height:16px;flex:0 0 auto;place-items:center;border:1px solid currentColor;border-radius:50%;font-size:10px;font-weight:700}.unsupported-note{margin:10px 0 0;color:#a5adba;font-size:10px;line-height:1.5}.status-bar{z-index:12;display:flex;height:26px;flex:0 0 26px;align-items:center;gap:18px;padding:0 12px;border-top:1px solid var(--line);background:#15191f;color:#9da8b8;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px}.status-coordinates{min-width:170px}.status-worker{margin-left:auto;color:#8dc8a6}.error-banner{z-index:40;position:fixed;top:56px;left:50%;display:flex;max-width:min(640px,calc(100vw - 28px));align-items:center;gap:10px;padding:10px 12px;transform:translate(-50%);border:1px solid #794148;border-radius:7px;background:#311d21;color:#ffc6cb;font-size:12px;box-shadow:0 9px 32px #0008}.error-symbol{display:grid;width:18px;height:18px;flex:0 0 auto;place-items:center;border:1px solid var(--error);border-radius:50%;font-weight:750}.error-banner button{width:22px;height:22px;margin-left:auto;border:0;border-radius:4px;background:transparent;color:#ffd8dc;font-size:18px;cursor:pointer}.mobile-sheet{z-index:8;position:fixed;right:0;bottom:26px;left:0;display:flex;height:min(35vh,320px);min-height:220px;flex-direction:column;overflow:hidden;border:1px solid #343c48;border-bottom:0;border-radius:14px 14px 0 0;background:#181c23f7;box-shadow:0 -8px 28px #0005}.sheet-handle{display:grid;height:13px;flex:0 0 13px;place-items:center}.sheet-handle span{width:30px;height:3px;border-radius:3px;background:#525d6a}.mobile-tabs{display:grid;min-height:43px;flex:0 0 43px;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}.mobile-tabs button{position:relative;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:11px;font-weight:580;cursor:pointer}.mobile-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:#e7edf6}.tab-count{display:inline-grid;width:16px;height:16px;margin-left:5px;place-items:center;border-radius:50%;background:#67451a;color:#ffd47f;font-size:9px}.mobile-panel-content{flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#3a4350 #181c23}.mobile-panel-content .panel-group{padding:11px 12px 14px}.mobile-panel-content .panel-heading{margin-bottom:8px}.mobile-panel-content .metric-grid{grid-template-columns:repeat(3,1fr)}.mobile-panel-content .metric-cell{min-height:42px;padding:6px}.mobile-panel-content .panel-group+.panel-group{border-top:1px solid var(--line)}.workspace-mobile{display:block}.workspace-mobile .viewport-shell{position:absolute;inset:0}.workspace-mobile .floating-tools{bottom:calc(min(35vh,320px) + 36px);gap:1px;padding:4px}.workspace-mobile .floating-tools button{min-width:76px;min-height:44px;padding:0 8px}.workspace-mobile .measure-result{bottom:calc(min(35vh,320px) + 90px);max-width:calc(100vw - 24px);overflow:hidden;text-overflow:ellipsis}.workspace-mobile .canvas-file{top:8px}.workspace-mobile .measure-hint{top:47px}.modal-backdrop{z-index:50;position:fixed;inset:0;display:grid;place-items:center;padding:18px;background:#07090dcc}.export-dialog{width:min(470px,100%);padding:21px;border:1px solid #3a4350;border-radius:12px;background:#1b2028;box-shadow:0 20px 70px #000a}.dialog-heading{display:flex;justify-content:space-between;gap:12px}.dialog-kicker{color:#70d39a;font-size:10px;font-weight:680;letter-spacing:.07em;text-transform:uppercase}.dialog-heading h2{margin:5px 0 0;font-size:16px}.dialog-close{display:grid;width:29px;height:29px;place-items:center;border:1px solid #414956;border-radius:6px;background:#232a34;color:#d7deea;font-size:19px;cursor:pointer}.export-dialog>p{color:#abb6c6;font-size:11px;line-height:1.55}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:17px 0}.report-stats div{display:flex;min-height:64px;flex-direction:column;justify-content:center;gap:4px;padding:9px;border:1px solid #333c48;border-radius:7px;background:#171b22}.report-stats b{color:#ebeff5;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px}.report-stats span{color:var(--muted);font-size:9px}.roundtrip-line{padding:9px 10px;border-left:2px solid var(--success);background:#19271f;color:#bde8cd!important}.report-note{color:#929eae!important}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}@media(max-width:899px){.topbar{flex-basis:52px;gap:7px;padding:0 9px}.brand{gap:6px}.brand-mark{width:22px;height:22px}.brand h1{font-size:12px}.header-actions{gap:5px}.privacy-note{display:none}.header-actions .button{min-height:32px;gap:4px;padding:0 7px;font-size:10px}.header-actions .button svg{width:13px;height:13px}.samples-wrap>button svg{width:11px}.license-badge{display:none}.status-bar{gap:10px;padding:0 8px;font-size:8px}.status-coordinates{min-width:126px}.status-worker{display:none}.canvas-empty{padding:18px}.canvas-empty strong{font-size:12px}.canvas-empty>span{font-size:10px}.error-banner{top:58px;font-size:11px}}@media(max-width:390px){.brand h1 span{display:none}.header-actions .button-primary{width:auto;min-width:92px;white-space:nowrap}.floating-tools button{min-width:70px;font-size:9px}.status-bar{gap:7px}.status-coordinates{min-width:110px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
