:root{--bg: #e9edf4;--panel: #ffffff;--ink: #12202f;--muted: #65758b;--line: #d8e0ea;--accent: #2563eb;--radius: 14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{min-width:320px}button{font:inherit}.app{height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:24px;padding:14px 20px;background:#ffffffeb;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:1}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{flex:none;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#22d3ee);box-shadow:0 6px 16px #2563eb47;position:relative}.brand-mark:after{content:"";position:absolute;top:8px;right:8px;bottom:8px;left:8px;border:2px solid rgba(255,255,255,.9);border-radius:3px;border-bottom-width:5px}.brand-mark.large{width:46px;height:46px;border-radius:13px;margin-bottom:6px}h1{margin:0;font-size:15px;letter-spacing:-.01em}.home-name{margin:2px 0 0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stats{display:flex;gap:10px;margin-left:auto}.stat{background:#f4f7fb;border:1px solid var(--line);border-radius:9px;padding:6px 10px;min-width:64px;text-align:center}.stat-value{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.stat-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.status{display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.status .dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.status.online .dot{background:#10b981;box-shadow:0 0 0 4px #10b98126}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:14px}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 30px #0f233c0f;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:#fcfdff}.panel-head h2{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:#334155}.panel-head span{font-size:11px;color:var(--muted);white-space:nowrap}.plan-view{position:relative;flex:1;min-height:0;background:#fafbfd}.plan-view svg{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.plan-view.drawing svg{cursor:crosshair}.plan-view.panning svg{cursor:grabbing}.plan-zoom{position:absolute;right:12px;bottom:10px;display:flex;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#ffffffeb;box-shadow:0 2px 8px #0f233c14;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.plan-zoom button{min-width:32px;padding:5px 9px;border:0;background:transparent;color:#334155;font-size:12px;font-weight:600;cursor:pointer}.plan-zoom button+button{border-left:1px solid var(--line)}.plan-zoom button:hover{background:#eef4ff}.plan-hint{position:absolute;left:12px;bottom:10px;max-width:calc(100% - 24px);padding:5px 9px;border:1px solid var(--line);border-radius:7px;background:#ffffffe6;color:var(--muted);font-size:11px;line-height:1.35;pointer-events:none;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.plan-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);background:#f8fafc}.tool-group,.history-group{display:flex;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.plan-toolbar button{padding:6px 10px;border:0;background:transparent;color:#334155;font-size:12px;font-weight:500;cursor:pointer}.plan-toolbar button+button{border-left:1px solid var(--line)}.plan-toolbar button:hover:not(:disabled){background:#eef4ff}.plan-toolbar button.active{background:var(--accent);color:#fff}.plan-toolbar button:disabled{color:#a7b3c3;cursor:default}.selection-info{flex:1;min-width:120px;overflow:hidden;color:var(--muted);font-size:12px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.delete-selection{border:1px solid #fecaca!important;border-radius:8px;background:#fff;color:#b91c1c!important}.delete-selection:hover:not(:disabled){background:#fef2f2!important}.delete-selection:disabled{color:#d4a5a5!important;border-color:#f3dada!important}.three-view{position:relative;flex:1;min-height:0;background:#0d121a}.three-view canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%}.empty-state{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none}.empty-state p{margin:0;text-align:center;line-height:1.6;font-size:13px;color:var(--muted)}.banner{margin:14px 14px 0;padding:10px 14px;border-radius:10px;border:1px solid #fecaca;background:#fef2f2;color:#b91c1c;font-size:13px}.screen{min-height:100%;display:grid;place-items:center;padding:24px}.screen-card{display:flex;flex-direction:column;align-items:center;gap:10px;width:min(440px,100%);padding:36px 30px;text-align:center;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 50px #0f233c1f}.screen-card h1{font-size:20px}.screen-card .hint{margin:0;font-size:13px;color:var(--muted);line-height:1.6}.error-text{margin:0;font-size:13px;color:#b91c1c;overflow-wrap:anywhere}.screen-card button{margin-top:8px;padding:8px 18px;border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:600;cursor:pointer}.screen-card button:hover{background:#1d4ed8}code{background:#eef2f8;padding:2px 5px;border-radius:5px;font-size:.92em}@media(max-width:900px){.workspace{grid-template-columns:1fr;grid-template-rows:minmax(280px,1fr) minmax(280px,1fr);overflow:auto}.stats{display:none}.topbar{gap:12px}.selection-info{display:none}}.actions{display:flex;align-items:center;gap:8px;flex:none}.open-button,.save-button{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#1e293b;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 1px 2px #0f233c0a;transition:background .15s ease,border-color .15s ease}.open-button:hover:not(:disabled){background:#f7faff;border-color:#b9c8dc}.save-button{border-color:var(--accent);background:var(--accent);color:#fff}.save-button:hover:not(:disabled){border-color:#1d4ed8;background:#1d4ed8}.open-button:disabled,.save-button:disabled{opacity:.6;cursor:progress}.file-input{display:none}.import-notice{margin:14px 14px 0;padding:10px 14px;border-radius:11px;border:1px solid;font-size:13px;line-height:1.5}.import-notice.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.import-notice.warning{border-color:#fde68a;background:#fffbeb;color:#92400e}.import-notice-row{display:flex;align-items:flex-start;gap:12px}.import-notice-title{flex:1;font-weight:600}.notice-close{flex:none;padding:0 2px;border:0;background:transparent;color:inherit;font-size:18px;line-height:1;cursor:pointer;opacity:.7}.notice-close:hover{opacity:1}.import-warnings{margin-top:6px}.import-warnings summary{cursor:pointer;font-size:12px;opacity:.85;-webkit-user-select:none;user-select:none}.import-warnings ul{margin:8px 0 2px;padding-left:20px}.import-warnings li+li{margin-top:4px}.drop-overlay{position:fixed;top:16px;right:16px;bottom:16px;left:16px;z-index:40;display:grid;place-items:center;border:2px dashed #93c5fd;border-radius:18px;background:#dbeafed1;color:#1e3a8a;font-size:16px;font-weight:600;pointer-events:none;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.import-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#0f172a80;color:#f8fafc;font-size:14px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.spinner{width:30px;height:30px;border:3px solid rgba(248,250,252,.25);border-top-color:#f8fafc;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:640px){.open-button span,.save-button span{display:none}.open-button,.save-button{padding:8px 10px}.import-notice{margin:10px 10px 0}}.nav-back{display:inline-flex;flex:none;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#334155;font-size:12px;font-weight:600;cursor:pointer}.nav-back:hover{background:#f2f6fc;border-color:#b9c8dc}.ghost-button{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#334155;font-size:12px;font-weight:600;cursor:pointer}.ghost-button:hover{background:#f2f6fc;border-color:#b9c8dc}.account{display:flex;flex:none;align-items:center;gap:8px}.account-name{max-width:130px;overflow:hidden;color:var(--muted);font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.mode-badge{margin-left:8px;padding:2px 7px;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:10px;font-weight:600;letter-spacing:.02em;vertical-align:middle}.screen-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.screen-card .screen-actions button{margin-top:0}.screen-card button.secondary{border:1px solid #b9c8dc;background:#fff;color:#1d4ed8}.screen-card button.secondary:hover{background:#f2f6fc}.boot-row{display:flex;align-items:center;gap:12px}.spinner.dark{width:18px;height:18px;border-width:2px;border-color:#dbe3ef;border-top-color:var(--accent)}.auth-page{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);min-height:100%}.auth-aside{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:56px;color:#eff6ff;background:radial-gradient(900px 500px at 10% 10%,rgba(34,211,238,.25),transparent 60%),radial-gradient(700px 500px at 90% 90%,rgba(37,99,235,.5),transparent 60%),#0b1220}.auth-aside h1{color:#fff;font-size:28px;letter-spacing:-.02em}.auth-tagline{max-width:430px;margin:0;color:#c7d7ee;font-size:16px;line-height:1.6}.auth-points{display:flex;flex-direction:column;gap:10px;margin:8px 0 0;padding:0;color:#b8cae4;font-size:13px;list-style:none}.auth-points li:before{content:"";display:inline-block;width:8px;height:8px;margin-right:10px;border-radius:50%;background:#38bdf8;box-shadow:0 0 0 4px #38bdf829}.auth-main{display:grid;place-items:center;padding:40px 24px;background:var(--bg)}.auth-card{display:flex;flex-direction:column;gap:14px;width:min(420px,100%);padding:34px 32px;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px #0f233c1f}.auth-heading h2{margin:0;font-size:23px;letter-spacing:-.02em}.auth-heading p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.field{display:flex;flex-direction:column;gap:6px;color:#334155;font-size:12px;font-weight:600}.field input,.create-project input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:9px;outline:none;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:400}.field input:focus,.create-project input:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2563eb21}.primary-button{padding:10px 16px;border:0;border-radius:9px;background:var(--accent);box-shadow:0 8px 20px #2563eb38;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.primary-button:hover:not(:disabled){background:#1d4ed8}.primary-button:disabled{opacity:.65;cursor:progress}.form-error{padding:9px 12px;border:1px solid #fecaca;border-radius:9px;background:#fef2f2;color:#b91c1c;font-size:13px;line-height:1.45}.auth-switch{margin:2px 0 0;color:var(--muted);font-size:13px;text-align:center}.link-button{padding:0;border:0;background:none;color:var(--accent);font:inherit;font-weight:600;cursor:pointer}.link-button:hover{text-decoration:underline}.dashboard{display:flex;flex-direction:column;min-height:100%}.dashboard-header{display:flex;align-items:center;gap:16px;padding:14px 28px;background:#ffffffeb;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.dashboard-user{display:flex;align-items:center;gap:12px;margin-left:auto}.dashboard-main{width:min(1120px,100%);margin:0 auto;padding:32px 24px 56px}.dashboard-title{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.dashboard-title h2{margin:0;font-size:26px;letter-spacing:-.025em}.dashboard-title p{margin:6px 0 0;color:var(--muted);font-size:13px}.create-project{display:flex;align-items:center;gap:8px}.create-project input{width:220px}.dashboard-error{margin-bottom:18px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.project-card{position:relative;display:flex;align-items:stretch;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 26px #0f233c0d;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.project-card:hover{border-color:#b8c9e2;box-shadow:0 14px 34px #0f233c1a;transform:translateY(-1px)}.project-open{display:flex;flex:1;align-items:center;gap:13px;min-width:0;padding:18px 46px 18px 18px;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer}.project-icon{display:grid;flex:none;place-items:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#eff6ff,#e0f2fe);color:#2563eb}.project-text{display:flex;flex-direction:column;gap:4px;min-width:0}.project-name{overflow:hidden;font-size:15px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.project-meta{color:var(--muted);font-size:11.5px}.project-chevron{margin-left:auto;color:#94a3b8;font-size:16px}.project-delete{position:absolute;top:10px;right:10px;padding:4px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#94a3b8;font-size:11px;font-weight:600;cursor:pointer}.project-delete:hover:not(:disabled){border-color:#fecaca;background:#fef2f2;color:#b91c1c}.project-delete:disabled{cursor:progress}.project-card.skeleton{height:82px;background:linear-gradient(100deg,#f4f7fb 20%,#e9eef6,#f4f7fb 60%);background-size:200% 100%;box-shadow:none;animation:shimmer 1.2s linear infinite}@keyframes shimmer{to{background-position:-200% 0}}.empty-projects{display:flex;flex-direction:column;align-items:center;gap:8px;padding:64px 24px;background:var(--panel);border:1px dashed #c8d4e4;border-radius:16px;text-align:center}.empty-icon{display:grid;place-items:center;width:76px;height:76px;margin-bottom:6px;border-radius:22px;background:linear-gradient(135deg,#eff6ff,#e0f2fe);color:#2563eb}.empty-projects h3{margin:0;font-size:18px}.empty-projects p{max-width:420px;margin:0;color:var(--muted);font-size:13px;line-height:1.6}@media(max-width:960px){.auth-page{grid-template-columns:1fr}.auth-aside{padding:34px 24px}.auth-points{display:none}.topbar{flex-wrap:wrap;gap:10px 12px}.account-name{display:none}.dashboard-title{align-items:stretch}.create-project{width:100%}.create-project input{flex:1;width:auto}}@media(max-width:640px){.auth-aside{padding:28px 20px}.auth-aside h1{font-size:22px}.auth-tagline{font-size:14px}.auth-main{padding:20px 14px 34px}.auth-card{padding:24px 20px}.dashboard-header{padding:12px 14px}.dashboard-main{padding:22px 14px 40px}.nav-back span:last-child{display:none}}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 320px}.properties-panel{min-height:0}.properties-body{display:flex;flex:1;flex-direction:column;gap:18px;min-height:0;padding:14px;overflow:auto}.property-group{display:flex;flex-direction:column;gap:9px}.property-group h3{margin:0;color:#475569;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.property-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.property-field{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:11px;font-weight:600}.property-field>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.property-field input{width:100%;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:8px;outline:none;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:400}.property-field input:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2563eb21}.property-input-wrap{display:flex;align-items:center;gap:6px}.property-unit{flex:none;color:var(--muted);font-size:11px;font-weight:500}.property-readout{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px dashed #e8edf5;color:var(--muted);font-size:12px}.property-readout strong{overflow:hidden;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.color-field-row{display:flex;align-items:center;gap:8px}.color-field-row input[type=color]{flex:none;width:42px;height:32px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}.color-field-row .color-text{flex:1;min-width:0;padding:7px 8px;border:1px solid var(--line);border-radius:7px;outline:none;background:#fff;color:var(--ink);font:inherit;font-size:12px}.color-field-row .color-text:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2563eb21}.default-button{flex:none;padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#475569;font-size:11px;font-weight:600;cursor:pointer}.default-button:hover:not(:disabled){background:#f2f6fc;border-color:#b9c8dc}.default-button:disabled{opacity:.45;cursor:default}.properties-hint{margin:0;color:var(--muted);font-size:11.5px;line-height:1.55}@media(max-width:1280px){.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(280px,1fr) minmax(220px,auto);overflow:auto}.properties-panel{grid-column:1 / -1;min-height:240px;max-height:360px}}@media(max-width:900px){.workspace{grid-template-columns:1fr;grid-template-rows:minmax(280px,1fr) minmax(280px,1fr) auto}.properties-panel{grid-column:auto;max-height:none}.properties-body{overflow:visible}}@media(max-width:1200px){.topbar{gap:14px}.stats{display:none}}@media(max-width:1280px){.properties-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:14px 24px}.properties-hint{grid-column:1 / -1}}@media(max-width:900px){.properties-body{grid-template-columns:1fr}}
