:root{--primary: #9f0052;--primary-light: #d0dc9a;--primary-light-contrast: #1c1c1c;--primary-contrast: #ffffff;--menu-active: #9f0052;--background: #fafaf8;--surface-panel: #ffffff;--card: #ffffff;--surface-subtle: #f1f3f4;--foreground: #1c1c1c;--muted-foreground: #697078;--border: #e7e9eb;--surface-hover: color-mix(in srgb, var(--primary) 7%, var(--surface-panel));--surface-active: color-mix(in srgb, var(--primary) 12%, var(--surface-panel));--danger: #c62828;--success: #2e7d32;--warning: #b26a00;--radius: 10px;--radius-sm: 6px;--radius-control: 10px;--radius-surface: 14px;--shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 5%);--shadow-soft: 0 1px 2px rgb(23 28 33 / 4%), 0 8px 24px rgb(23 28 33 / 4%);--shadow-floating: 0 12px 32px rgb(23 28 33 / 12%);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);--font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;color-scheme:light}:root.dark{--primary: #e879a9;--primary-contrast: #1a1a1a;--background: #1a1a1a;--surface-panel: #212121;--card: #212121;--surface-subtle: #292d30;--foreground: #f3f4f5;--muted-foreground: #aeb4ba;--border: #31363a;--danger: #ef7a7a;--success: #7bc47f;--warning: #f0b25a;--shadow: 0 1px 2px rgb(0 0 0 / 40%);--shadow-soft: 0 1px 2px rgb(0 0 0 / 22%), 0 8px 24px rgb(0 0 0 / 16%);--shadow-floating: 0 16px 40px rgb(0 0 0 / 38%);color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--background);color:var(--foreground);font-family:var(--font-sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:var(--primary)}::selection{background:var(--primary-light);color:var(--primary-light-contrast)}:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 35%,transparent);outline-offset:2px}h1,h2,h3{margin:0;line-height:1.25}h1{font-size:22px;font-weight:650}h2{font-size:16px;font-weight:600}h3{font-size:14px;font-weight:600}.shell{--shell-rail: 56px;--shell-panel: 420px;--shell-brand-height: 3.75rem;--shell-bar-gap: .125rem;--shell-bar-height: 2.5rem;--shell-trigger: 36px;--shell-trigger-top: calc( var(--shell-brand-height) + var(--shell-bar-gap) + (var(--shell-bar-height) - var(--shell-trigger)) / 2 );position:relative;display:flex;height:100vh;height:100dvh;overflow:hidden;background:var(--background)}.shell-rail{flex-shrink:0;width:var(--shell-rail);height:100%;padding:var(--shell-trigger-top) 0 .5rem;background:var(--surface-panel);border-right:1px solid var(--border-subtle, var(--border))}.shell-rail-stack{display:flex;flex-direction:column;align-items:center;gap:.35rem;width:100%}.shell-rail-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--shell-trigger);height:var(--shell-trigger);padding:0;border:none;border-radius:10px;background:transparent;color:var(--text-secondary, var(--muted-foreground));cursor:pointer;transition:background-color .16s ease,color .16s ease}.shell-rail-btn:hover,.shell-rail-btn.active{background:var(--primary-light);color:var(--primary-light-contrast)}.shell-rail-icon{width:18px;height:18px;stroke-width:2.25;transition:transform .28s ease-in-out}.shell-rail-icon--open{transform:rotate(180deg)}.shell-drawer{flex-shrink:0;width:0;height:100%;opacity:0;overflow:hidden;position:relative;z-index:10;transition:width .28s ease-in-out,opacity .28s ease-in-out}.shell-drawer--right{transition-duration:.3s}.shell-drawer.open{width:var(--shell-panel);opacity:1}.shell-drawer>*{visibility:hidden;transition:visibility 0s linear .3s}.shell-drawer.open>*{visibility:visible;transition-delay:0s}.shell-panel{display:flex;flex-direction:column;width:var(--shell-panel);height:100%;background:var(--surface-panel);color:var(--foreground);font-size:.875rem}.shell-panel--left{border-right:1px solid var(--border-subtle, var(--border));box-shadow:var(--shadow-lg)}.shell-panel--right{border-left:1px solid var(--border);box-shadow:0 1px 2px #0000000d}.shell-brand{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-height:var(--shell-brand-height);padding:.375rem 1rem;background:var(--surface-panel)}.shell-brand--left{justify-content:flex-start}.shell-brand--right{justify-content:flex-end}.shell-brand-link{display:inline-flex;align-items:center;color:var(--foreground);text-decoration:none}.shell-brand-link img{height:2.25rem;max-width:12rem;object-fit:contain}.shell-brand-wordmark{font-size:1.5rem;font-weight:700;letter-spacing:.01em}.shell-panel-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-shrink:0;height:var(--shell-bar-height);margin:var(--shell-bar-gap) 1rem;padding:0 1rem;border:none;border-radius:12px;background:var(--primary);color:var(--primary-contrast);font:inherit;text-align:left;cursor:pointer}.shell-panel--right .shell-panel-bar{justify-content:flex-start}.shell-panel-bar-title{flex:1;font-size:1rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-panel-body{display:flex;flex-direction:column;gap:.375rem;flex:1;min-height:0;overflow-y:auto;padding:.5rem 1rem}.shell-row,.shell-subitem{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;border:none;background:transparent;color:var(--foreground);font:inherit;font-size:.875rem;line-height:1.25rem;text-align:left;text-decoration:none;cursor:pointer;transition:background-color .12s ease,color .12s ease}.shell-row{padding:.625rem 1rem;border-radius:12px;font-weight:500}.shell-subitem{padding:.5rem 1rem;border-radius:.5rem;font-weight:400}.shell-row.active,.shell-subitem.active{color:var(--menu-active, var(--primary));font-weight:600}.shell-row:hover,.shell-subitem:hover{background:var(--primary-light);color:var(--primary-light-contrast)}.shell-row.active:hover,.shell-subitem.active:hover{background:color-mix(in oklab,var(--primary-light) 88%,black)}.shell-row-label{display:inline-flex;align-items:center;gap:.5rem;min-width:0}.shell-row-label svg{flex-shrink:0}.shell-subitems{display:flex;flex-direction:column;gap:.125rem;padding:.25rem .375rem .75rem 1.5rem}.shell-account{display:flex;flex-direction:column;gap:2px;padding:.25rem 1rem .5rem;overflow-wrap:anywhere}.shell-account-label{margin-top:8px;font-size:12px;font-weight:600;color:var(--muted-foreground)}.shell-account ul{margin:0;padding-left:18px}.shell-footer{flex-shrink:0;padding:.5rem 1rem .75rem;border-top:1px solid var(--border-subtle, var(--border));color:var(--text-secondary, var(--muted-foreground));font-size:.6875rem;line-height:1.4;text-align:center;opacity:.85}.shell-content{position:relative;flex:1;min-width:0;height:100%;overflow:auto;display:flex;flex-direction:column}.shell-content--tab{padding-right:44px}.shell-edge-tab{position:absolute;top:calc(var(--shell-trigger-top) + var(--shell-trigger) + .5rem);right:0;z-index:30;display:inline-flex;align-items:center;justify-content:center;width:var(--shell-trigger);height:var(--shell-trigger);padding:0;border:none;border-radius:10px 0 0 10px;background:var(--primary);color:var(--primary-contrast);cursor:pointer;transition:filter .16s ease}.shell-edge-tab--assistant{top:calc(var(--shell-trigger-top) + 2 * var(--shell-trigger) + 1rem)}.shell-assistant-host{display:flex;flex-direction:column;flex:1;min-height:0}.shell-edge-tab:hover{filter:brightness(.96)}.shell-edge-tab--inline{position:static;margin-left:auto}.shell-edge-tab--inline+.shell-edge-tab--inline{margin-left:.25rem}.shell-topbar{display:flex;align-items:center;gap:.75rem;flex-shrink:0;min-height:2.75rem;padding:.35rem 0 .35rem .75rem;background:var(--surface-panel);border-bottom:1px solid var(--border-subtle, var(--border))}.shell-topbar-title{font-weight:700}.shell-topbar-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--border-subtle, var(--border));border-radius:10px;background:var(--surface-panel);color:var(--text-secondary, var(--foreground));cursor:pointer}.shell-topbar-btn:hover{background:var(--primary-light);border-color:var(--primary-light);color:var(--primary-light-contrast)}.shell--mobile .shell-drawer{position:absolute;top:0;bottom:0;z-index:50;width:min(var(--shell-panel),100vw);opacity:1;transition:transform .28s ease-in-out}.shell--mobile .shell-drawer--left{left:0;transform:translate(-100%)}.shell--mobile .shell-drawer--right{right:0;transform:translate(100%)}.shell--mobile .shell-drawer.open{transform:none}.shell--mobile .shell-panel{width:min(var(--shell-panel),100vw)}.shell-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;border:none;padding:0;background:#0003;cursor:default;animation:shell-fade .2s ease}@keyframes shell-fade{0%{opacity:0}}.app-main{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:24px 20px 48px}.app-main.wide{max-width:1600px}.app-main.full{max-width:none;padding:0;display:flex;min-height:0}.spacer{flex:1}@media(prefers-reduced-motion:reduce){.shell-drawer,.shell-drawer>*,.shell-rail-icon{transition:none}}.page-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 16px;margin-bottom:20px}.page-head>:first-child{flex:1 1 280px;min-width:0}.page-head p{margin:4px 0 0;color:var(--muted-foreground)}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-surface);box-shadow:var(--shadow-soft);padding:16px}.card+.card{margin-top:16px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.muted{color:var(--muted-foreground)}.small{font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-panel);color:var(--foreground);font:inherit;font-weight:500;cursor:pointer;text-decoration:none;white-space:nowrap}.btn:hover:not(:disabled){background:var(--surface-hover)}.btn:disabled{opacity:.55;cursor:default}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-contrast)}.btn.primary:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 88%,black)}.btn.ghost{border-color:transparent;background:transparent}.btn.danger{color:var(--danger)}.btn.icon{width:34px;padding:0}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:12px;font-weight:600;color:var(--muted-foreground)}.input,select.input,textarea.input{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--input-background, var(--surface-panel));color:var(--foreground);font:inherit}textarea.input{height:auto;min-height:72px;padding:8px 10px;resize:vertical}.input:focus,.btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:1px}.badge{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-subtle);color:var(--muted-foreground)}.badge.ready{color:var(--success);background:color-mix(in srgb,var(--success) 12%,transparent)}.badge.failed{color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,transparent)}.badge.processing{color:var(--warning);background:color-mix(in srgb,var(--warning) 12%,transparent)}.alert{padding:10px 12px;border-radius:var(--radius-sm);border:1px solid color-mix(in srgb,var(--danger) 35%,transparent);background:color-mix(in srgb,var(--danger) 8%,transparent);color:var(--danger)}.alert.info{border-color:var(--border);background:var(--surface-subtle);color:var(--foreground)}.empty{padding:32px;text-align:center;color:var(--muted-foreground);border:1px dashed var(--border);border-radius:var(--radius)}.list{list-style:none;margin:0;padding:0}.list>li{padding:10px 0;border-top:1px solid var(--border)}.list>li:first-child{border-top:0}.project-card{display:block;color:inherit;text-decoration:none;transition:border-color .15s}.project-card:hover{border-color:var(--primary)}.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px;border:1.5px dashed var(--border);border-radius:var(--radius);color:var(--muted-foreground);cursor:pointer;text-align:center}.dropzone.over{border-color:var(--primary);background:var(--surface-hover)}.progress{height:6px;border-radius:999px;background:var(--surface-subtle);overflow:hidden}.progress>div{height:100%;background:var(--primary);transition:width .2s}.kv{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;margin:0}.kv dt{color:var(--muted-foreground)}.kv dd{margin:0}.table{width:100%;border-collapse:collapse}.table td,.table th{text-align:left;padding:4px 0;border-bottom:1px solid var(--border)}.table td:last-child,.table th:last-child{text-align:right}.viewer-layout{display:flex;flex:1;min-height:100%;height:100%}.viewer-canvas{position:relative;flex:1;min-width:0;background:var(--surface-subtle);overflow:hidden}.viewer-canvas>.viewer-host{position:absolute;top:0;right:0;bottom:0;left:0}.viewer-host.tool-measure,.viewer-host.tool-point,.viewer-host.tool-clipPlane,.viewer-host.tool-note{cursor:crosshair}.viewer-labels{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.viewer-label{padding:2px 6px;border-radius:6px;background:#ff6a00;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 1px 3px #00000040}.viewer-dot{width:10px;height:10px;border-radius:50%;background:#ff6a00;border:2px solid #ffffff;box-shadow:0 0 0 1px #0000004d}.viewer-dot-point{background:var(--primary)}.viewer-marker{min-width:22px;height:22px;padding:0 6px;border-radius:11px 11px 11px 2px;background:var(--primary);color:var(--primary-contrast);font-size:12px;font-weight:700;line-height:22px;text-align:center;box-shadow:0 1px 4px #0000004d;pointer-events:auto;cursor:pointer;transform:translate(50%,-50%)}.viewer-marker.resolved{opacity:.55}.viewer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.viewer-overlay>div{pointer-events:auto;padding:12px 16px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-surface);box-shadow:var(--shadow-floating);min-width:260px}.viewer-toolbar{position:absolute;top:10px;left:10px;right:10px;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}.viewer-tool-group{display:flex;gap:2px;padding:3px;background:var(--surface-panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-soft);pointer-events:auto}.viewer-tool{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:9px;background:transparent;color:var(--text-secondary, var(--muted-foreground));cursor:pointer;transition:background-color .12s ease,color .12s ease}.viewer-tool:hover:not(:disabled){background:var(--primary-light);color:var(--primary-light-contrast)}.viewer-tool.active{background:var(--primary);color:var(--primary-contrast)}.viewer-tool:disabled{opacity:.4;cursor:default}.viewer-tool-menu{position:relative}.viewer-menu-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:20;min-width:200px;padding:4px;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-floating)}.viewer-menu-panel button{display:block;width:100%;padding:7px 10px;border:none;border-radius:8px;background:transparent;color:var(--foreground);font:inherit;text-align:left;cursor:pointer}.viewer-menu-panel button:hover:not(:disabled){background:var(--primary-light);color:var(--primary-light-contrast)}.viewer-menu-panel button.active{color:var(--menu-active, var(--primary));font-weight:600}.viewer-menu-panel button:disabled{opacity:.45;cursor:default}.viewer-hint{position:absolute;left:50%;bottom:16px;transform:translate(-50%);padding:6px 12px;border-radius:10px;background:#1c1c1cd1;color:#fff;font-size:13px;pointer-events:none;max-width:calc(100% - 32px);text-align:center}.viewer-windows{position:absolute;top:60px;right:10px;display:flex;flex-direction:column;gap:8px;max-height:calc(100% - 70px);pointer-events:none}.viewer-window{display:flex;flex-direction:column;gap:8px;width:300px;max-height:100%;overflow:auto;padding:10px 12px 12px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-surface);box-shadow:var(--shadow-floating);pointer-events:auto}.viewer-window>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.viewer-window-floating{position:absolute;top:50px;right:0}.viewer-window input[type=range]{width:100%}.viewer-measurements{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}.viewer-origin{margin:0;padding:6px 8px;border-radius:8px;background:var(--surface-subtle);color:var(--muted-foreground)}.viewer-side{display:flex;flex-direction:column;width:360px;flex-shrink:0;min-height:0;background:var(--surface-panel);border-left:1px solid var(--border)}.viewer-side-head{display:flex;flex-direction:column;gap:8px;padding:12px 14px 8px;border-bottom:1px solid var(--border)}.viewer-tabs{display:flex;gap:2px}.viewer-tab{flex:1;display:inline-flex;align-items:center;justify-content:center;height:32px;border:none;border-radius:9px;background:transparent;color:var(--text-secondary, var(--muted-foreground));cursor:pointer}.viewer-tab:hover{background:var(--primary-light);color:var(--primary-light-contrast)}.viewer-tab.active{background:var(--primary);color:var(--primary-contrast)}.viewer-tab-title{margin:0}.viewer-side-body{flex:1;min-height:0;overflow:auto;padding:12px 14px 24px}.viewer-models{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}.viewer-model{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--border);border-radius:12px}.viewer-model-head{display:flex;align-items:center;gap:4px}.viewer-model-title{flex:1;min-width:0;display:flex;flex-direction:column}.viewer-model-info dd{overflow-wrap:anywhere}.viewer-tree{font-size:13px}.viewer-tree ul{margin:0;padding:0;list-style:none}.viewer-tree-model{margin:6px 0 2px;font-weight:600}.viewer-tree-row{display:flex;align-items:center;gap:2px;min-height:26px;border-radius:7px}.viewer-tree-row:hover{background:var(--surface-hover)}.viewer-tree-row.selected{background:var(--primary-light);color:var(--primary-light-contrast)}.viewer-tree-toggle{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex-shrink:0;padding:0;border:none;background:transparent;color:inherit;cursor:pointer}.viewer-tree-toggle:disabled{cursor:default}.viewer-tree-label{flex:1;min-width:0;padding:3px 4px;border:none;background:transparent;color:inherit;font:inherit;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.viewer-tree-actions{display:none;flex-shrink:0}.viewer-tree-row:hover .viewer-tree-actions,.viewer-tree-row.selected .viewer-tree-actions{display:inline-flex}.viewer-tree-actions .btn.icon{width:24px;height:24px}.viewer-search{flex-wrap:nowrap}.viewer-search select{width:116px;flex-shrink:0}.viewer-search input{flex:1;min-width:0}.viewer-search-results{padding:8px;border:1px solid var(--border);border-radius:10px;max-height:280px;overflow:auto}.viewer-filter,.viewer-group{border:1px solid var(--border);border-radius:10px}.viewer-group-head{display:flex;align-items:center;gap:6px;width:100%;padding:7px 8px;border:none;border-radius:10px;background:transparent;color:var(--foreground);font:inherit;font-weight:600;text-align:left;cursor:pointer}.viewer-group-head:hover{background:var(--surface-hover)}.viewer-group-title{flex:1;min-width:0;overflow-wrap:anywhere}.viewer-filter>.stack{padding:4px 8px 8px!important}.viewer-group-body{padding:0 10px 10px}.viewer-element-name{font-size:15px;font-weight:650;overflow-wrap:anywhere}.viewer-props{margin:0;display:flex;flex-direction:column;gap:2px;font-size:13px}.viewer-kv-row{display:grid;grid-template-columns:minmax(96px,40%) 1fr;gap:8px;align-items:start}.viewer-kv-row dt{color:var(--muted-foreground);overflow-wrap:anywhere}.viewer-kv-row dd{margin:0;display:flex;align-items:flex-start;gap:2px;overflow-wrap:anywhere}.viewer-copy{width:20px!important;height:20px!important;margin-left:auto;flex-shrink:0;opacity:0}.viewer-kv-row:hover .viewer-copy,.viewer-copy:focus-visible{opacity:1}.viewer-guid{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.viewer-origin-badge{padding:1px 6px;border-radius:999px;background:var(--surface-subtle);color:var(--muted-foreground);font-size:11px;font-weight:500;white-space:nowrap}.viewer-origin-badge:empty{display:none}.viewer-origin-badge.computed{background:#fff1e6;color:#9a4a00}:root.dark .viewer-origin-badge.computed{background:#3d2a1a;color:#f3b27a}.viewer-subgroup{display:flex;flex-direction:column;gap:4px;padding:6px 0;border-top:1px dashed var(--border)}.viewer-subgroup:first-child{border-top:0}.viewer-computed{margin-top:4px}.viewer-materials li{padding:4px 0}.viewer-legend{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}.viewer-legend button{display:flex;align-items:center;gap:8px;width:100%;padding:5px 6px;border:none;border-radius:8px;background:transparent;color:var(--foreground);font:inherit;font-size:13px;text-align:left;cursor:pointer}.viewer-legend button:hover{background:var(--surface-hover)}.viewer-swatch{width:14px;height:14px;flex-shrink:0;border-radius:4px;border:1px solid rgb(0 0 0 / 15%)}.viewer-legend-label{flex:1;min-width:0;overflow-wrap:anywhere}.viewer-snapshot{width:100%;aspect-ratio:16 / 10;object-fit:cover;border-radius:8px;border:1px solid var(--border);background:var(--surface-subtle)}.viewer-cards{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}.viewer-card{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--border);border-radius:12px}.viewer-card.active{border-color:var(--primary)}.viewer-topic-head{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:none;background:transparent;color:var(--foreground);font:inherit;text-align:left;cursor:pointer}.viewer-topic-thumb{width:64px;height:40px;flex-shrink:0;object-fit:cover;border-radius:6px;border:1px solid var(--border)}.viewer-viewpoint{padding:0;border:none;background:transparent;cursor:pointer}.viewer-viewpoint:disabled{cursor:default}.viewer-comment{padding:6px 8px;border-radius:8px;background:var(--surface-subtle)}.login{display:flex;align-items:center;justify-content:center;min-height:100%;padding:24px}.login .card{width:100%;max-width:420px;padding:28px}.login-logo{max-height:40px;max-width:200px;margin-bottom:16px}.branding-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-option{display:flex;gap:10px;padding:14px;border:1.5px solid var(--border);border-radius:var(--radius);cursor:pointer;background:var(--card)}.mode-option.selected{border-color:var(--primary);background:var(--surface-hover)}.color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px 16px}.color-field{display:flex;align-items:center;gap:8px;position:relative}.color-swatch{width:34px;height:34px;flex-shrink:0;border-radius:var(--radius-sm);border:1px solid var(--border);cursor:pointer}.color-popover{position:absolute;z-index:30;top:40px;left:0;padding:10px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.logo-slot{display:flex;align-items:center;gap:10px}.logo-preview{width:120px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-subtle)}.logo-preview.dark{background:#1a1a1a}.logo-preview img{max-width:108px;max-height:40px}.preview-frame{position:relative;display:grid;grid-template-columns:28px 118px minmax(0,1fr);min-height:240px;border-radius:var(--radius-surface);border:1px solid var(--border);overflow:hidden;background:var(--background);color:var(--foreground);font-family:var(--font-sans);font-size:12px}.preview-rail{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:42px;background:var(--surface-panel);border-right:1px solid var(--border)}.preview-rail span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:7px;color:var(--muted-foreground)}.preview-rail span.active{background:var(--primary-light);color:var(--primary-light-contrast)}.preview-panel{display:flex;flex-direction:column;gap:3px;padding-bottom:8px;background:var(--surface-panel);border-right:1px solid var(--border);box-shadow:var(--shadow-lg)}.preview-brand{display:flex;align-items:center;justify-content:center;height:38px;padding:0 8px}.preview-brand--left{justify-content:flex-start}.preview-brand--right{justify-content:flex-end}.preview-brand img{max-height:22px;max-width:110px;object-fit:contain}.preview-bar{display:flex;align-items:center;justify-content:space-between;height:26px;margin:0 8px 4px;padding:0 8px;border-radius:8px;background:var(--primary);color:var(--primary-contrast);font-weight:500}.preview-row{display:flex;align-items:center;gap:6px;margin:0 8px;padding:6px 8px;border-radius:8px;font-weight:500}.preview-row.active{color:var(--menu-active);font-weight:600}.preview-row.hover{background:var(--primary-light);color:var(--primary-light-contrast)}.preview-frame .preview-body{padding:12px 24px 12px 10px}.preview-frame .card{background:var(--card)}.preview-frame .btn{height:auto;min-height:28px;padding:4px 10px;white-space:normal;text-align:left}.preview-tab{position:absolute;top:70px;right:0;display:inline-flex;align-items:center;justify-content:center;width:16px;height:22px;border-radius:6px 0 0 6px;background:var(--primary);color:var(--primary-contrast)}.swatches{display:flex;gap:4px}.swatches span{width:18px;height:18px;border-radius:4px;border:1px solid var(--border)}.chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--card);color:var(--foreground);font:inherit;font-size:13px;cursor:pointer}.chip.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary-light-contrast);font-weight:600}.chip-count{color:var(--muted-foreground);font-variant-numeric:tabular-nums}.chip.active .chip-count{color:inherit}.match-toolbar .input{width:auto;min-width:140px}.search-field{position:relative;display:flex;align-items:center;flex:1 1 320px;min-width:260px}.search-field>svg{position:absolute;left:10px;color:var(--muted-foreground)}.search-field>.input{width:100%;padding-left:30px}.table-card{padding:0;overflow-x:auto}.match-table th,.match-table td{padding:8px 10px;vertical-align:top;text-align:left}.match-table td:last-child,.match-table th:last-child{text-align:left}.match-table thead th{position:sticky;top:0;background:var(--surface-subtle);font-size:12px;color:var(--muted-foreground);z-index:1}.match-table tbody tr{cursor:default}.match-table tbody tr.focused{outline:2px solid var(--primary);outline-offset:-2px;background:color-mix(in srgb,var(--primary) 5%,transparent)}.match-table tr.detail-row>td{background:var(--surface-subtle)}.match-detail{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;padding:4px 6px 8px}.match-detail h3{margin:0 0 4px}.candidates code,.match-table code,.list code{font-size:12px;background:var(--surface-subtle);padding:1px 4px;border-radius:4px}.kbd{display:inline-flex;min-width:18px;justify-content:center;border:1px solid var(--border);border-radius:4px;font-size:11px;color:var(--muted-foreground)}.confidence{display:inline-flex;align-items:center;gap:6px}.confidence-bar{display:inline-block;width:48px;height:6px;border-radius:3px;background:var(--surface-subtle);overflow:hidden}.confidence-bar>span{display:block;height:100%}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.link-mapping{border-left:3px solid var(--border);padding-left:12px}.table-scroll{overflow-x:auto;max-width:100%}.preview-table th,.preview-table td{white-space:nowrap;padding:4px 8px;text-align:left}@media(max-width:900px){.match-detail,.branding-layout,.mode-switch{grid-template-columns:1fr}.viewer-layout{flex-direction:column;height:auto}.viewer-canvas{min-height:65vh}.viewer-side{width:auto;border-left:0;border-top:1px solid var(--border)}.viewer-windows{left:10px}.viewer-window{width:auto}}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.assistant{display:flex;flex-direction:column;flex:1;min-height:0}.assistant-head{display:flex;flex-direction:column;gap:8px;padding:.5rem 1rem;border-bottom:1px solid var(--border-subtle, var(--border))}.assistant-sessions{flex-wrap:nowrap}.assistant-sessions select{flex:1;min-width:0}.assistant-log{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;overflow-y:auto;padding:.75rem 1rem}.assistant-intro{display:flex;flex-direction:column;gap:8px;color:var(--muted-foreground)}.assistant-intro p{margin:0}.assistant-examples{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.assistant-examples .chip{height:auto;min-height:28px;padding:4px 10px;border-radius:14px;text-align:left}.assistant-msg{display:flex;flex-direction:column;gap:4px;max-width:100%}.assistant-msg--user{align-items:flex-end}.assistant-msg-text{padding:8px 12px;border-radius:12px;background:var(--surface-subtle);white-space:pre-wrap;overflow-wrap:anywhere}.assistant-msg--user .assistant-msg-text{background:var(--primary-light);color:var(--primary-light-contrast)}.assistant-msg-error{margin:0}.assistant-activity{display:flex;align-items:center;gap:8px;color:var(--muted-foreground);font-size:13px}.assistant-input{display:flex;flex-direction:column;gap:6px;padding:.5rem 1rem .75rem;border-top:1px solid var(--border-subtle, var(--border))}.assistant-input textarea{min-height:64px}.assistant-input-foot{justify-content:space-between;flex-wrap:nowrap}.proposal-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--card, var(--surface-panel))}.proposal-card.active{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}.proposal-card--rejected,.proposal-card--superseded{opacity:.7}.proposal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.proposal-status--ready{background:color-mix(in srgb,#f08c00 18%,transparent);color:#a35f00}.proposal-status--accepted{background:color-mix(in srgb,#2e9e4f 18%,transparent);color:#1f7a3a}.proposal-counts{display:flex;flex-wrap:wrap;gap:10px}.proposal-count{display:inline-flex;align-items:center;gap:6px}.proposal-toggle{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;padding:0;border:none;background:none;color:var(--primary);font:inherit;font-size:12px;cursor:pointer}.proposal-changes{display:flex;flex-direction:column;gap:2px;max-height:280px;margin:0;padding:0;overflow-y:auto;list-style:none}.proposal-change{display:flex;align-items:flex-start;gap:8px;width:100%;padding:5px 6px;border:none;border-radius:8px;background:transparent;color:var(--foreground);font:inherit;font-size:13px;text-align:left;cursor:pointer}.proposal-change:hover:not(:disabled){background:var(--surface-hover)}.proposal-change:disabled{cursor:default}.proposal-change .viewer-swatch{margin-top:3px}.proposal-change-body{display:flex;flex-direction:column;gap:2px;min-width:0}.proposal-change-name,.proposal-change-line{overflow-wrap:anywhere}.proposal-change-line{color:var(--muted-foreground)}.proposal-actions .btn{height:30px;padding:0 10px}.proposal-note{margin:0}:root.dark .proposal-status--ready{color:#ffb84d}:root.dark .proposal-status--accepted{color:#6fd38e}.compare-banner{position:absolute;left:50%;bottom:16px;z-index:5;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:10px;max-width:calc(100% - 32px);padding:6px 8px 6px 14px;transform:translate(-50%);border:1px solid var(--border);border-radius:12px;background:var(--surface-panel);box-shadow:var(--shadow-lg, 0 4px 16px rgb(0 0 0 / 15%));font-size:13px}.viewer-canvas:has(.compare-banner) .viewer-hint{bottom:72px}.compare-segment{display:inline-flex;padding:2px;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle)}.compare-segment button{height:28px;padding:0 12px;border:none;border-radius:8px;background:transparent;color:var(--foreground);font:inherit;font-weight:500;cursor:pointer}.compare-segment button.active{background:var(--primary);color:var(--primary-contrast)}.compare-legend{display:inline-flex;gap:10px}.compare-legend-item{display:inline-flex;align-items:center;gap:6px}.compare-btn{height:30px}.compare-btn.icon{width:30px}.compare-error{color:var(--danger)}
