:root{--background:0 0% 100%;--foreground:240 10% 3.9%;--card:0 0% 100%;--card-foreground:240 10% 3.9%;--primary:240 5.9% 10%;--primary-foreground:0 0% 98%;--secondary:240 4.8% 95.9%;--secondary-foreground:240 5.9% 10%;--muted:240 4.8% 95.9%;--muted-foreground:240 3.8% 46.1%;--accent:240 4.8% 95.9%;--accent-foreground:240 5.9% 10%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:240 5.9% 90%;--input:240 5.9% 90%;--ring:240 5.9% 10%;--radius:0.5rem;--canvas-bg:#fafafa;--canvas-grid:rgba(9,9,11,0.06)}html.dark{--background:240 10% 3.9%;--foreground:0 0% 98%;--card:240 10% 3.9%;--card-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:240 5.9% 10%;--secondary:240 3.7% 15.9%;--secondary-foreground:0 0% 98%;--muted:240 3.7% 15.9%;--muted-foreground:240 5% 64.9%;--accent:240 3.7% 15.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 48%;--destructive-foreground:0 0% 98%;--border:240 3.7% 15.9%;--input:240 3.7% 15.9%;--ring:240 4.9% 83.9%;--canvas-bg:#09090b;--canvas-grid:rgba(255,255,255,0.06)}*,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;background:hsl(var(--background));color:hsl(var(--foreground));font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow:hidden}.tabular{font-variant-numeric:tabular-nums}.shell{display:grid;grid-template-columns:380px 1fr;height:100vh;width:100vw;overflow:hidden}.sidebar{background:hsl(var(--card));border-right:1px solid hsl(var(--border));display:flex;flex-direction:column;height:100vh;min-height:0;overflow:hidden}.sidebar-header{height:52px;padding:0 16px;border-bottom:1px solid hsl(var(--border));display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.sidebar-top-tabs{padding:12px 16px;border-bottom:1px solid hsl(var(--border));flex-shrink:0;background:hsl(var(--card))}.brand{display:flex;align-items:center;gap:8px}.brand-title{margin:0;font-size:14px;font-weight:600;letter-spacing:-0.01em;color:hsl(var(--foreground))}.sidebar-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 20px;display:flex;flex-direction:column;gap:8px}.sidebar-body::-webkit-scrollbar,.scroll-inner::-webkit-scrollbar{width:6px}.sidebar-body::-webkit-scrollbar-thumb,.scroll-inner::-webkit-scrollbar-thumb{background:hsl(var(--border));border-radius:9999px}.sidebar-body::-webkit-scrollbar-track,.scroll-inner::-webkit-scrollbar-track{background:transparent}.sidebar-footer{padding:12px 16px 14px;border-top:1px solid hsl(var(--border));background:hsl(var(--card));display:flex;flex-direction:column;gap:8px;flex-shrink:0}.tabs-list{display:grid;grid-template-columns:repeat(3,1fr);background:hsl(var(--muted));padding:3px;border-radius:var(--radius);gap:2px}.tabs-list.cols-2{grid-template-columns:repeat(2,1fr)}.sidebar-top-row{display:flex;align-items:center;gap:8px}.sidebar-top-row .tabs-list{flex:1 1 auto;min-width:0}.door-toggle-pill{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;height:34px;padding:0 10px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--muted-foreground));font-size:12px;font-weight:500;cursor:pointer;user-select:none;flex-shrink:0;white-space:nowrap;transition:border-color 0.15s ease,background-color 0.15s ease,color 0.15s ease}.door-toggle-pill:hover{border-color:hsl(var(--foreground) / 0.25);color:hsl(var(--foreground))}.door-toggle-pill.active{border-color:hsl(var(--foreground) / 0.35);background:hsl(var(--secondary));color:hsl(var(--foreground))}.bracket-drag-handle{cursor:ns-resize}.bracket-drag-handle .bh-ring{fill:transparent;stroke:#0284c7;stroke-opacity:0;transition:stroke-opacity 0.12s ease,fill 0.12s ease}.bracket-drag-handle:hover .bh-ring,.bracket-drag-handle.active .bh-ring{fill:rgba(2,132,199,0.14);stroke-opacity:0.92}html.dark .bracket-drag-handle .bh-ring{stroke:#38bdf8}html.dark .bracket-drag-handle:hover .bh-ring,html.dark .bracket-drag-handle.active .bh-ring{fill:rgba(56,189,248,0.2)}.cutout-drag-handle{cursor:move}.cutout-drag-handle .cut-hit{fill:transparent;stroke:#0284c7;stroke-opacity:0;transition:stroke-opacity 0.12s ease,fill 0.12s ease}.cutout-drag-handle .cut-cross{stroke:#0284c7;stroke-opacity:0;pointer-events:none;transition:stroke-opacity 0.12s ease}.cutout-drag-handle:hover .cut-hit,.cutout-drag-handle.active .cut-hit{fill:rgba(2,132,199,0.13);stroke-opacity:0.92}.cutout-drag-handle:hover .cut-cross,.cutout-drag-handle.active .cut-cross{stroke-opacity:0.85}html.dark .cutout-drag-handle .cut-hit,html.dark .cutout-drag-handle .cut-cross{stroke:#38bdf8}html.dark .cutout-drag-handle:hover .cut-hit,html.dark .cutout-drag-handle.active .cut-hit{fill:rgba(56,189,248,0.18)}.slot-drag-handle{cursor:ns-resize}.slot-drag-handle .slot-hit{fill:transparent;stroke:#0284c7;stroke-opacity:0;transition:stroke-opacity 0.12s ease,fill 0.12s ease}.slot-drag-handle .slot-grip{stroke:#0284c7;stroke-opacity:0;pointer-events:none;transition:stroke-opacity 0.12s ease}.slot-drag-handle:hover .slot-hit,.slot-drag-handle.active .slot-hit{fill:rgba(2,132,199,0.12);stroke-opacity:0.9}.slot-drag-handle:hover .slot-grip,.slot-drag-handle.active .slot-grip{stroke-opacity:0.85}html.dark .slot-drag-handle .slot-hit,html.dark .slot-drag-handle .slot-grip{stroke:#38bdf8}html.dark .slot-drag-handle:hover .slot-hit,html.dark .slot-drag-handle.active .slot-hit{fill:rgba(56,189,248,0.18)}.ear-drag-handle{cursor:ns-resize}.ear-drag-handle .ear-hit{fill:transparent;stroke:#0284c7;stroke-opacity:0;transition:stroke-opacity 0.12s ease,fill 0.12s ease}.ear-drag-handle .ear-grip{stroke:#0284c7;stroke-opacity:0;pointer-events:none;transition:stroke-opacity 0.12s ease}.ear-drag-handle:hover .ear-hit,.ear-drag-handle.active .ear-hit{fill:rgba(2,132,199,0.12);stroke-opacity:0.9}.ear-drag-handle:hover .ear-grip,.ear-drag-handle.active .ear-grip{stroke-opacity:0.85}html.dark .ear-drag-handle .ear-hit,html.dark .ear-drag-handle .ear-grip{stroke:#38bdf8}html.dark .ear-drag-handle:hover .ear-hit,html.dark .ear-drag-handle.active .ear-hit{fill:rgba(56,189,248,0.18)}.drawingno-drag-handle{cursor:ew-resize}.drawingno-drag-handle .dno-hit{fill:transparent;stroke:#0284c7;stroke-opacity:0;transition:stroke-opacity 0.12s ease,fill 0.12s ease}.drawingno-drag-handle:hover .dno-hit,.drawingno-drag-handle.active .dno-hit{fill:rgba(2,132,199,0.14);stroke-opacity:0.92}html.dark .drawingno-drag-handle .dno-hit{stroke:#38bdf8}html.dark .drawingno-drag-handle:hover .dno-hit,html.dark .drawingno-drag-handle.active .dno-hit{fill:rgba(56,189,248,0.2)}.text-size-btn.active{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}.cutout-resize-handle .corner-dot,.slot-resize-handle .corner-dot,.door-resize-handle .corner-dot{fill:#ffffff;stroke:#0284c7;opacity:0.72;transition:opacity 0.12s ease,fill 0.12s ease}.cutout-resize-handle:hover .corner-dot,.cutout-resize-handle.active .corner-dot,.slot-resize-handle:hover .corner-dot,.slot-resize-handle.active .corner-dot,.door-resize-handle:hover .corner-dot,.door-resize-handle.active .corner-dot{fill:#0284c7;opacity:1}html.dark .cutout-resize-handle .corner-dot,html.dark .slot-resize-handle .corner-dot,html.dark .door-resize-handle .corner-dot{fill:#09090b;stroke:#38bdf8}html.dark .cutout-resize-handle:hover .corner-dot,html.dark .cutout-resize-handle.active .corner-dot,html.dark .slot-resize-handle:hover .corner-dot,html.dark .slot-resize-handle.active .corner-dot,html.dark .door-resize-handle:hover .corner-dot,html.dark .door-resize-handle.active .corner-dot{fill:#38bdf8;opacity:1}.door-drag-handle{cursor:move}.door-drag-handle .door-hit{fill:transparent;stroke:#0284c7;stroke-opacity:0;transition:stroke-opacity 0.12s ease,fill 0.12s ease}.door-drag-handle .door-cross{stroke:#0284c7;stroke-opacity:0;pointer-events:none;transition:stroke-opacity 0.12s ease}.door-drag-handle:hover .door-hit,.door-drag-handle.active .door-hit{fill:rgba(2,132,199,0.1);stroke-opacity:0.88}.door-drag-handle:hover .door-cross,.door-drag-handle.active .door-cross{stroke-opacity:0.82}html.dark .door-drag-handle .door-hit,html.dark .door-drag-handle .door-cross{stroke:#38bdf8}html.dark .door-drag-handle:hover .door-hit,html.dark .door-drag-handle.active .door-hit{fill:rgba(56,189,248,0.15)}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.cursor-nwse{cursor:nwse-resize}.cursor-nesw{cursor:nesw-resize}.face-grid.cols-2{grid-template-columns:repeat(2,1fr)}.info-banner{padding:8px 10px;border-radius:calc(var(--radius) - 2px);background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));font-size:11.5px;line-height:1.45;border:1px solid hsl(var(--border))}.info-banner.warn{background:rgba(2,132,199,0.08);border-color:rgba(2,132,199,0.35);color:#0369a1}html.dark .info-banner.warn{background:rgba(56,189,248,0.12);border-color:rgba(56,189,248,0.35);color:#7dd3fc}.door-3d-hud{position:absolute;right:14px;bottom:12px;padding:6px 12px;border-radius:9999px;background:hsl(var(--card) / 0.9);backdrop-filter:blur(8px);border:1px solid hsl(var(--border));font-size:12px;color:hsl(var(--foreground));display:none;align-items:center;gap:8px;box-shadow:0 2px 10px rgba(0,0,0,0.08)}.door-3d-hud input[type="range"]{width:110px;accent-color:hsl(var(--primary));cursor:pointer}.tab-trigger{appearance:none;border:none;background:transparent;color:hsl(var(--muted-foreground));font-family:inherit;font-size:12px;font-weight:500;height:28px;border-radius:calc(var(--radius) - 2px);cursor:pointer;transition:all 0.15s ease}.tab-trigger:hover:not(:disabled){color:hsl(var(--foreground))}.tab-trigger.active{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px rgba(0,0,0,0.06)}.tab-trigger:disabled{opacity:0.45;cursor:not-allowed}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.grid-spec{display:grid;grid-template-columns:1.08fr 1fr;gap:6px}.grid-spec .tab-trigger{font-size:11.5px;padding:0 4px;white-space:nowrap;gap:4px}.grid-spec .color-dot{width:8px;height:8px}.field{display:flex;flex-direction:column;gap:5px}.label{font-size:11.5px;font-weight:500;color:hsl(var(--muted-foreground));line-height:1.1}.input,.select{height:32px;width:100%;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--input));background:hsl(var(--background));color:hsl(var(--foreground));padding:0 9px;font-size:12.5px;font-family:inherit;font-variant-numeric:tabular-nums;outline:none;transition:border-color 0.15s,box-shadow 0.15s;box-shadow:0 1px 2px rgba(0,0,0,0.025)}.input-sm{height:28px;padding:0 7px;font-size:12px}.input:focus-visible,.select:focus-visible{border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--background)),0 0 0 3.5px hsl(var(--ring) / 0.25)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:calc(var(--radius) - 2px);font-family:inherit;font-size:13px;font-weight:500;height:36px;padding:0 14px;cursor:pointer;border:1px solid transparent;transition:background-color 0.15s,color 0.15s,border-color 0.15s,opacity 0.15s;white-space:nowrap;outline:none}.btn:focus-visible{box-shadow:0 0 0 2px hsl(var(--background)),0 0 0 4px hsl(var(--ring) / 0.35)}.btn:disabled{pointer-events:none;opacity:0.5}.btn-primary{background:hsl(var(--primary));color:hsl(var(--primary-foreground));box-shadow:0 1px 2px rgba(0,0,0,0.08)}.btn-primary:hover{opacity:0.9}.btn-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.btn-secondary:hover{opacity:0.88}.btn-outline{background:hsl(var(--background));color:hsl(var(--foreground));border-color:hsl(var(--input));box-shadow:0 1px 2px rgba(0,0,0,0.025)}.btn-outline:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.btn-ghost{background:transparent;color:hsl(var(--muted-foreground))}.btn-ghost:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.btn-sm{height:30px;padding:0 10px;font-size:12px}.btn-xs{height:24px;padding:0 7px;font-size:11px;border-radius:5px}.btn-icon{height:30px;width:30px;padding:0}.preset-row{display:flex;gap:6px;flex-wrap:wrap}.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn-row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.pitch-presets{display:inline-flex;gap:4px}.pitch-btn.active{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}.color-dot{width:10px;height:10px;border-radius:9999px;display:inline-block;flex-shrink:0;border:1px solid rgba(128,128,128,0.35)}.color-dot.cream{background:#f3efe6}.color-dot.gunmetal{background:#3c3f45}.tab-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px}.face-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.face-card{display:flex;align-items:center;justify-content:space-between;padding:8px 9px;border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--background));cursor:pointer;user-select:none;transition:border-color 0.15s,background-color 0.15s}.face-card:hover{background:hsl(var(--muted) / 0.45)}.face-card span.face-name{font-size:12px;font-weight:500}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;user-select:none}.switch-inline{display:inline-flex;align-items:center;gap:7px;cursor:pointer;user-select:none;font-size:12px;color:hsl(var(--foreground));font-weight:500}.switch{position:relative;width:32px;height:18px;flex-shrink:0}.switch input{opacity:0;width:0;height:0;position:absolute}.switch-track{position:absolute;inset:0;border-radius:9999px;background:hsl(var(--input));transition:background-color 0.15s ease}.switch-thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px rgba(0,0,0,0.18);transition:transform 0.15s ease}.switch input:checked + .switch-track{background:hsl(var(--primary))}.switch input:checked + .switch-track .switch-thumb{transform:translateX(14px)}.switch input:focus-visible + .switch-track{box-shadow:0 0 0 2px hsl(var(--background)),0 0 0 4px hsl(var(--ring) / 0.35)}.accordion{flex-shrink:0;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));transition:border-color 0.15s}.accordion[open]{border-color:hsl(var(--foreground) / 0.22)}.accordion summary{padding:10px 12px;font-size:12.5px;font-weight:500;color:hsl(var(--foreground));cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;user-select:none;border-radius:var(--radius);transition:background-color 0.15s}.accordion[open] summary{border-bottom-left-radius:0;border-bottom-right-radius:0}.accordion summary:hover{background:hsl(var(--muted) / 0.55)}.accordion summary::-webkit-details-marker{display:none}.summary-left{display:flex;align-items:center;gap:7px;min-width:0}.summary-right{display:flex;align-items:center;gap:6px;flex-shrink:0}.summary-pill{display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 7px;border-radius:9999px;background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));font-size:11px;font-weight:500;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accordion .chev{color:hsl(var(--muted-foreground));transition:transform 0.18s ease}.accordion[open] .chev{transform:rotate(180deg)}.accordion-content{padding:12px;border-top:1px solid hsl(var(--border));display:flex;flex-direction:column;gap:10px}.scroll-inner{max-height:240px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding-right:2px}.accordion-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding-top:4px;border-top:1px solid hsl(var(--border) / 0.7)}.item-card{flex-shrink:0;border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--muted) / 0.35);padding:8px 10px;display:flex;flex-direction:column;gap:7px}.item-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.item-card-title{font-size:11.5px;font-weight:600;color:hsl(var(--foreground))}.empty-state{text-align:center;padding:12px 8px;font-size:12px;color:hsl(var(--muted-foreground));border:1px dashed hsl(var(--border));border-radius:calc(var(--radius) - 2px)}.field-note{font-size:11px;line-height:1.45;color:hsl(var(--muted-foreground))}.alert{display:none;padding:8px 10px;border-radius:calc(var(--radius) - 2px);font-size:12px;line-height:1.45;border:1px solid hsl(var(--destructive) / 0.45);background:hsl(var(--destructive) / 0.08);color:hsl(var(--destructive))}.alert.show{display:block}.workspace{display:flex;flex-direction:column;background:var(--canvas-bg);overflow:hidden;position:relative;min-width:0}.toolbar{height:52px;padding:0 12px;background:hsl(var(--card));border-bottom:1px solid hsl(var(--border));display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;overflow-x:auto;overflow-y:hidden}.toolbar::-webkit-scrollbar{height:0}.toolbar-group{display:flex;align-items:center;gap:8px;flex-shrink:0}.view-switcher{width:156px;flex-shrink:0}.btn-group{display:inline-flex;align-items:center;border:1px solid hsl(var(--input));border-radius:calc(var(--radius) - 2px);background:hsl(var(--background));overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,0.025)}.btn-group button{border:none;border-radius:0;box-shadow:none;height:30px;background:transparent;color:hsl(var(--foreground));cursor:pointer;padding:0 9px;font-size:12px;font-weight:500;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;transition:background-color 0.15s,color 0.15s}.btn-group button:hover{background:hsl(var(--accent))}.btn-group button.active{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.btn-group button + button{border-left:1px solid hsl(var(--border))}.viewport{flex:1;position:relative;overflow:hidden;cursor:grab;user-select:none;background-color:var(--canvas-bg);background-image:radial-gradient(var(--canvas-grid) 1px,transparent 1px);background-size:20px 20px}.viewport.dragging{cursor:grabbing}.viewport.mode-3d{background-image:none;background:radial-gradient(circle at 50% 36%,#ddd8cf 0%,#c6c0b5 66%,#afa89c 100%)}.viewport.mode-3d[data-bg3d="slate"]{background:radial-gradient(circle at 50% 36%,#c6d0dc 0%,#aab7c7 66%,#8e9db0 100%)}.viewport.mode-3d[data-bg3d="dark"]{background:radial-gradient(circle at 50% 36%,#2d333e 0%,#1d2129 68%,#12151b 100%)}html.dark .viewport.mode-3d:not([data-bg3d="studio"]):not([data-bg3d="slate"]){background:radial-gradient(circle at 50% 36%,#2d333e 0%,#1d2129 68%,#12151b 100%)}#cadSvg{width:100%;height:100%;display:block;transform-origin:0 0;will-change:transform}#view2dWrap{contain:layout style paint}#view3dWrap{position:absolute;inset:0;display:none}#cad3dCanvas,#cad3dOverlay{position:absolute;inset:0;width:100%;height:100%;display:block}#cad3dOverlay{pointer-events:none}.hud-3d-badge{position:absolute;left:14px;bottom:12px;padding:5px 10px;border-radius:9999px;background:hsl(var(--card) / 0.85);backdrop-filter:blur(8px);border:1px solid hsl(var(--border));font-size:11.5px;color:hsl(var(--muted-foreground));pointer-events:none;display:flex;align-items:center;gap:8px}.hud-3d-badge strong{color:hsl(var(--foreground));font-weight:500}.statusbar{height:36px;padding:0 18px;background:hsl(var(--card));border-top:1px solid hsl(var(--border));display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:hsl(var(--muted-foreground));flex-shrink:0}.stat-row{display:flex;align-items:center;gap:16px;overflow-x:auto;white-space:nowrap}.stat-row strong{color:hsl(var(--foreground));font-weight:500}#statusRight{white-space:nowrap;flex-shrink:0}svg.icon{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}svg.icon-xs{width:13px;height:13px}.zdz-topbar-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--background));font-size:12px;color:hsl(var(--foreground));white-space:nowrap}.zdz-topbar-pill strong{color:#0284c7;font-weight:700}.dark .zdz-topbar-pill strong{color:#38bdf8}.zdz-role-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:0.02em}.zdz-role-badge.sales{background:rgba(2,132,199,0.12);color:#0369a1;border:1px solid rgba(2,132,199,0.3)}.zdz-role-badge.factory{background:rgba(234,88,12,0.12);color:#c2410c;border:1px solid rgba(234,88,12,0.3)}.dark .zdz-role-badge.sales{background:rgba(56,189,248,0.15);color:#7dd3fc}.dark .zdz-role-badge.factory{background:rgba(251,146,60,0.16);color:#fdba74}.zdz-modal-backdrop{position:fixed;inset:0;z-index:9000;background:rgba(9,9,11,0.56);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:18px}.zdz-modal{width:100%;max-width:560px;max-height:90vh;overflow-y:auto;background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:14px;box-shadow:0 24px 64px rgba(0,0,0,0.28);padding:20px 22px;display:flex;flex-direction:column;gap:14px}.zdz-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.zdz-modal-header h3{font-size:17px;font-weight:700}.zdz-modal-sub{font-size:12px;color:hsl(var(--muted-foreground));margin-top:3px}.zdz-wallet-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 14px;border-radius:10px;background:hsl(var(--muted));border:1px solid hsl(var(--border))}.zdz-big-pts{font-size:22px;margin:0 8px;color:#0284c7}.dark .zdz-big-pts{color:#38bdf8}.zdz-muted{font-size:12px;color:hsl(var(--muted-foreground))}.zdz-tag{display:inline-block;font-size:11px;padding:2px 7px;border-radius:999px;background:hsl(var(--background));border:1px solid hsl(var(--border))}.zdz-qq-box{display:flex;align-items:center;gap:8px;font-size:12.5px}.zdz-pkg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}@media (max-width:600px){.zdz-pkg-grid{grid-template-columns:1fr}}.zdz-pkg-card{border:1px solid hsl(var(--border));border-radius:10px;padding:12px 14px;background:hsl(var(--background));display:flex;flex-direction:column;gap:6px}.zdz-pkg-card.featured{border-color:#0284c7;box-shadow:0 0 0 1px rgba(2,132,199,0.25)}.zdz-pkg-top{display:flex;align-items:center;justify-content:space-between}.zdz-pkg-name{font-weight:700;font-size:14px}.zdz-pkg-badge{font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(2,132,199,0.12);color:#0284c7}.zdz-pkg-price{font-size:21px;color:hsl(var(--foreground))}.zdz-pkg-price del{font-size:12px;color:hsl(var(--muted-foreground));margin-left:6px;font-weight:400}.zdz-pkg-meta{font-size:11.5px;color:hsl(var(--muted-foreground));line-height:1.55}.zdz-redeem-box{padding:12px 14px;border-radius:10px;border:1px dashed hsl(var(--border));background:hsl(var(--muted) / 0.45)}.zdz-inline-msg{font-size:12px;margin-top:6px;min-height:16px}.zdz-inline-msg.ok{color:#16a34a;font-weight:600}.zdz-inline-msg.err{color:#dc2626;font-weight:600}.zdz-logs-wrap{border-top:1px solid hsl(var(--border));padding-top:10px}.zdz-logs-title{font-size:12.5px;font-weight:600;margin-bottom:6px}.zdz-logs-list{max-height:170px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.zdz-log-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;font-size:11.5px;padding:6px 8px;border-radius:6px;background:hsl(var(--muted) / 0.55)}.zdz-log-delta{font-weight:700}.zdz-log-delta.pos{color:#16a34a}.zdz-log-delta.neg{color:#ea580c}.zdz-log-time{color:hsl(var(--muted-foreground));font-size:11px}.sales-3d-gate{position:absolute;inset:0;z-index:25;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 50% 40%,rgba(234,238,245,0.92),rgba(207,215,229,0.96));backdrop-filter:blur(6px)}.dark .sales-3d-gate{background:radial-gradient(circle at 50% 40%,rgba(24,26,33,0.94),rgba(11,12,16,0.97))}.sales-gate-card{max-width:430px;width:100%;text-align:center;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:16px;padding:26px 24px;box-shadow:0 20px 50px rgba(0,0,0,0.16);display:flex;flex-direction:column;align-items:center;gap:12px}.sales-gate-card h3{font-size:18px;font-weight:700}.sales-gate-card p{font-size:13px;color:hsl(var(--muted-foreground));line-height:1.6}.sales-gate-price{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:rgba(2,132,199,0.12);color:#0284c7;font-size:12.5px;font-weight:700}.dark .sales-gate-price{background:rgba(56,189,248,0.15);color:#7dd3fc}#schematicSvg{width:100%;height:100%;display:block;user-select:none}.sch-panel-bg{stroke:hsl(var(--border));stroke-width:1.6}.sch-title{font-size:13px;font-weight:700;fill:hsl(var(--foreground))}.sch-sub{font-size:11px;fill:hsl(var(--muted-foreground))}.sch-dim{font-size:11px;font-weight:600;fill:#0284c7}.dark .sch-dim{fill:#38bdf8}.sch-drag{cursor:move}.sch-drag-ns{cursor:ns-resize}.sch-corner{fill:#fff;stroke:#0284c7;stroke-width:1.8}.sch-corner:hover{fill:#0284c7}.sch-badge-tip{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:6px 14px;border-radius:999px;font-size:12px;background:hsl(var(--card) / 0.92);border:1px solid hsl(var(--border));color:hsl(var(--muted-foreground));pointer-events:none;z-index:12}.order-code-box{display:inline-flex;align-items:center;gap:6px}.order-code-input{width:158px;height:28px;padding:0 8px;border-radius:6px;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));font-size:12px;font-family:monospace;text-transform:uppercase}#cadSvg{shape-rendering:optimizeSpeed}.drag-ghost-shape{fill:rgba(2,132,199,0.14);stroke:#0284c7;stroke-dasharray:5 3;pointer-events:none}.dark .drag-ghost-shape{fill:rgba(56,189,248,0.18);stroke:#38bdf8}.drag-live-hud{position:fixed;z-index:9500;pointer-events:none;display:none;padding:5px 10px;border-radius:8px;font-size:12px;font-weight:600;background:rgba(15,23,42,0.92);color:#f8fafc;box-shadow:0 6px 20px rgba(0,0,0,0.24);white-space:nowrap;border:1px solid rgba(56,189,248,0.4)}.smart-parse-box{display:flex;flex-direction:column;gap:5px;padding:8px 9px;border-radius:8px;background:rgba(2,132,199,0.06);border:1px dashed rgba(2,132,199,0.32)}.dark .smart-parse-box{background:rgba(56,189,248,0.08);border-color:rgba(56,189,248,0.32)}.smart-parse-row{display:flex;gap:5px;align-items:center}.smart-parse-hint{font-size:11px;color:#0369a1;line-height:1.45;display:none}.dark .smart-parse-hint{color:#7dd3fc}.smart-parse-hint.show{display:block}.adv-subpanel{border:1px dashed hsl(var(--border));border-radius:8px;background:hsl(var(--muted) / 0.35);padding:0}.adv-subpanel > summary{padding:7px 10px;font-size:11.5px;font-weight:600;color:hsl(var(--muted-foreground));cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;user-select:none}.adv-subpanel > summary::-webkit-details-marker{display:none}.adv-subpanel > summary::after{content:"展开 ▾";font-size:11px;opacity:0.75}.adv-subpanel[open] > summary::after{content:"收起 ▴"}.adv-subpanel-body{padding:2px 10px 10px;display:flex;flex-direction:column;gap:9px}.sales-step-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:8px;background:hsl(var(--muted) / 0.65);border:1px solid hsl(var(--border))}.sales-step-item{display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:600;padding:4px 4px;border-radius:6px;color:hsl(var(--muted-foreground));white-space:nowrap}.sales-step-item.active{background:hsl(var(--background));color:#0284c7;box-shadow:0 1px 2px rgba(0,0,0,0.08)}.dark .sales-step-item.active{color:#38bdf8}.sales-step-item.done{color:#15803d}.dark .sales-step-item.done{color:#4ade80}.geom-fix-row{display:none;align-items:center;justify-content:space-between;gap:8px;padding:6px 9px;border-radius:8px;background:rgba(234,88,12,0.10);border:1px solid rgba(234,88,12,0.30);font-size:11.5px;color:#c2410c}.dark .geom-fix-row{color:#fdba74;background:rgba(251,146,60,0.12)}.geom-fix-row.show{display:flex}.panel-label-2d{font-weight:700;letter-spacing:2px;pointer-events:none;user-select:none;fill:hsl(var(--foreground));opacity:0.13}.btn-link{appearance:none;border:none;background:transparent;padding:0;margin:0;font-family:inherit;font-size:11px;font-weight:600;color:#0284c7;cursor:pointer;text-decoration:none}.btn-link:hover{text-decoration:underline}html.dark .btn-link{color:#38bdf8}#view2dWrap,#view3dWrap,#cadSvg,#cad3dCanvas{touch-action:none}.mobile-bottom-nav{display:none}@media (max-width:900px){html,body{height:100dvh;overflow:hidden}.shell{display:block;width:100vw;height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px));overflow:hidden}.sidebar{width:100%;height:100%;border-right:none;display:flex}.workspace{width:100%;height:100%;display:none}body.mobile-pane-preview .sidebar{display:none}body.mobile-pane-preview .workspace{display:flex}.sidebar-header{height:48px;padding:0 10px;gap:6px}.sidebar-header .brand-title{font-size:13px;white-space:nowrap}.sidebar-top-tabs{padding:8px 10px}.sidebar-body{padding:10px 10px 18px;-webkit-overflow-scrolling:touch}.sidebar-footer{padding:10px 10px 12px;gap:6px}.input,.select{height:36px;font-size:14px}.input-sm{height:34px;font-size:13.5px}.btn{min-height:38px}.btn-sm{min-height:34px}.toolbar{height:auto;min-height:46px;padding:6px 10px;gap:6px;-webkit-overflow-scrolling:touch}.view-switcher{width:auto;min-width:160px}.statusbar{height:auto;min-height:32px;padding:4px 10px;gap:8px;font-size:11px}#statusRight{display:none}.sch-badge-tip{display:none}.hud-3d-badge{left:10px;bottom:10px;font-size:11px;padding:4px 8px}.door-3d-hud{left:10px;right:10px;bottom:42px;justify-content:space-between;flex-wrap:wrap;border-radius:12px;padding:6px 10px;gap:6px}.door-3d-hud input[type="range"]{flex:1;min-width:80px}.sales-3d-gate{padding:14px}.sales-gate-card{padding:18px 16px}.zdz-modal-backdrop{padding:10px;align-items:flex-end}.zdz-modal{max-height:88dvh;padding:16px 14px;border-radius:14px 14px 10px 10px}.zdz-log-row{grid-template-columns:1fr auto}.zdz-log-time{grid-column:1 / -1}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));background:hsl(var(--card));border-top:1px solid hsl(var(--border));box-shadow:0 -4px 16px rgba(0,0,0,0.08)}.mobile-bottom-nav.cols-2{grid-template-columns:repeat(2,1fr)}.mobile-nav-btn{appearance:none;border:none;background:transparent;color:hsl(var(--muted-foreground));font-family:inherit;font-size:11.5px;font-weight:600;height:44px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;transition:background-color 0.15s,color 0.15s}.mobile-nav-btn.active{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}}@media (max-width:480px){.grid-spec{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,1fr)}.sidebar-header .btn-xs{padding:0 5px;font-size:10.5px}}