:root{font-family:Microsoft YaHei UI,Noto Sans SC,system-ui,sans-serif;color:#ece8dc;background:#11110f;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #11110f;--surface: #181815;--surface-2: #20201c;--surface-3: #292821;--border: #3b3931;--border-soft: #2c2b26;--text: #ece8dc;--muted: #9b978b;--subtle: #6f6b62;--gold: #f1b657;--green: #63d8a0;--blue: #6bc8f5;--danger: #f18a72;--highlight-selected: #55f4d6;--highlight-related: #ffc95f;--highlight-casting: #fff4bd}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}body{min-width:320px;background:var(--bg)}button,input,select,textarea{font:inherit}button{color:inherit}.app-shell{display:grid;grid-template-columns:var(--left-sidebar-width, 326px) minmax(360px,1fr) var(--right-sidebar-width, 304px);grid-template-rows:58px minmax(0,1fr) 54px;width:100%;height:100%;background:var(--bg)}.topbar{grid-column:1 / -1;display:grid;grid-template-columns:var(--left-sidebar-width, 326px) 1fr auto;align-items:center;min-width:0;background:#171714;border-bottom:1px solid var(--border);z-index:20}.brand-block{display:flex;align-items:center;gap:11px;height:100%;padding:0 16px;border-right:1px solid var(--border)}.brand-block>.icon-button,.mobile-panel-title,.toolbar .icon-button:last-child{display:none}.brand-mark{position:relative;width:28px;height:28px;flex:0 0 28px}.brand-mark span{position:absolute;inset:3px;border:1px solid var(--gold);border-radius:50%}.brand-mark span:nth-child(2){inset:8px 1px;transform:rotate(58deg)}.brand-mark span:nth-child(3){inset:8px 1px;transform:rotate(-58deg)}.brand-block h1{margin:0;color:#fff9e8;font-family:SimSun,"Noto Serif SC",serif;font-size:18px;font-weight:700;line-height:1.1;letter-spacing:0}.brand-block p{margin:4px 0 0;color:var(--subtle);font-family:Consolas,monospace;font-size:9px;line-height:1;letter-spacing:0}.compile-state{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;color:var(--muted);font-size:12px}.compile-state code{overflow:hidden;color:#c9c2ae;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--green);box-shadow:0 0 8px #63d8a08c}.toolbar{display:flex;align-items:center;gap:4px;padding:0 12px}.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:4px;cursor:pointer}.icon-button:hover,.icon-button.is-active{color:#fff9e9;background:var(--surface-3);border-color:var(--border)}.icon-button.is-active{border-color:color-mix(in srgb,var(--highlight-selected) 66%,var(--border));box-shadow:inset 0 -2px var(--highlight-selected)}.side-panel{position:relative;min-height:0;background:var(--surface);z-index:10}.left-panel{grid-column:1;grid-row:2;display:grid;grid-template-rows:minmax(0,.35fr) 20px minmax(0,.65fr);border-right:1px solid var(--border)}.pane-resizer{position:relative;z-index:20;display:grid;place-items:center;min-height:20px;color:#777166;background:#151512;border-top:1px solid #302f29;border-bottom:1px solid #302f29;outline:0;cursor:row-resize;touch-action:none}.pane-resizer:before{position:absolute;right:0;left:0;height:3px;content:"";background:transparent;transition:background .12s ease,box-shadow .12s ease}.pane-resizer svg{width:28px;height:14px;padding:1px 3px;background:#23221e;border:1px solid #3b3931;border-radius:3px}.pane-resizer:hover,.pane-resizer:focus-visible{color:var(--highlight-selected)}.pane-resizer:hover:before,.pane-resizer:focus-visible:before{background:var(--highlight-selected);box-shadow:0 0 9px color-mix(in srgb,var(--highlight-selected) 52%,transparent)}body.is-resizing-left-panes{cursor:row-resize;-webkit-user-select:none;user-select:none}body.is-resizing-sidebars{cursor:col-resize;-webkit-user-select:none;user-select:none}.side-resizer{position:absolute;top:0;bottom:0;z-index:35;display:grid;place-items:center;width:10px;color:#777166;background:transparent;outline:0;cursor:col-resize;touch-action:none}.side-resizer:before{position:absolute;top:0;bottom:0;left:4px;width:1px;content:"";background:transparent}.side-resizer:hover,.side-resizer:focus-visible{color:var(--highlight-selected);background:color-mix(in srgb,var(--highlight-selected) 5%,transparent)}.side-resizer:hover:before,.side-resizer:focus-visible:before{background:var(--highlight-selected);box-shadow:0 0 8px color-mix(in srgb,var(--highlight-selected) 46%,transparent)}.side-resizer-left{right:-5px}.side-resizer-right{left:-5px}.right-panel{grid-column:3;grid-row:2;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid var(--border)}.right-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#504c41 transparent}.panel-scroll{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#504c41 transparent}.panel-section{padding:14px 16px 16px;border-bottom:1px solid var(--border-soft)}.section-heading{display:flex;align-items:center;gap:7px;min-height:22px;margin-bottom:11px;color:#c8c1b0}.section-heading h2{margin:0;font-size:12px;font-weight:650}.section-heading .count{margin-left:auto;color:var(--subtle);font-family:Consolas,monospace;font-size:10px}.field{display:grid;gap:6px;min-width:0;margin-bottom:10px}.field>span,.field>label,.slider-field>span{color:var(--muted);font-size:11px}.field input,.field select,.field textarea{width:100%;height:32px;min-width:0;padding:0 9px;color:var(--text);background:#121210;border:1px solid var(--border);border-radius:3px;outline:none}.field textarea{min-height:76px;padding:8px 9px;line-height:1.55;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#aa8a54;box-shadow:0 0 0 2px #f1b6571a}.field input:disabled,.field select:disabled{color:#67645d;background:#171714;cursor:not-allowed}.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.field-row.three-columns{grid-template-columns:minmax(0,1.35fr) minmax(0,.72fr) minmax(0,.85fr)}.compact-field input,.compact-field select{font-family:Consolas,Microsoft YaHei UI,sans-serif;font-size:12px}.color-proof{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:9px;min-height:42px;margin:-2px 0 10px;padding:7px 8px;background:#121210;border:1px solid var(--border-soft)}.color-proof-swatch{width:22px;height:22px;border:1px solid rgba(255,255,255,.42);border-radius:50%}.color-proof div{display:grid;gap:2px;min-width:0}.color-proof strong{color:#d9d2c0;font-size:10px}.color-proof small{overflow:hidden;color:var(--subtle);font-family:Consolas,Microsoft YaHei UI,sans-serif;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.affinity-proof{display:flex;flex-wrap:wrap}.affinity-proof>div{flex:1 1 150px}.affinity-channel-editor{display:grid;gap:6px;margin-bottom:10px;padding-block:3px 8px;border-block:1px solid var(--border-soft)}.affinity-channel-row{display:grid;grid-template-columns:22px minmax(64px,.75fr) minmax(82px,1fr) 54px 28px;align-items:end;gap:5px}.affinity-channel-row .color-proof-swatch{align-self:center;width:18px;height:18px}.affinity-channel-row label{display:grid;gap:3px;min-width:0;color:var(--subtle);font-size:8px}.affinity-channel-row select,.affinity-channel-row input{width:100%;min-width:0;height:28px;padding:4px 5px;color:var(--text);background:#131311;border:1px solid var(--border-soft)}.affinity-channel-row .icon-button{width:28px;height:28px}.inline-add{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;color:#d9d2c0;background:#191816;border:1px solid var(--border-soft)}.source-line{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:8px;color:var(--subtle);font-size:9px}.source-line span{padding:2px 5px;color:#bfe7d3;background:#1d2b24;border:1px solid #304b3c;border-radius:2px}.source-line p{margin:2px 0 0;line-height:1.5}.quantity-editor+.quantity-editor{margin-top:14px;padding-top:14px;border-top:1px solid var(--border-soft)}.quantity-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.quantity-heading strong{color:#d6cfbd;font-size:10px}.known-toggle{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:9px}.known-toggle input{accent-color:var(--gold)}.quantity-readout{display:flex;align-items:baseline;justify-content:space-between;min-height:34px;margin-bottom:9px;padding:8px 9px;background:#101814;border-left:2px solid var(--green)}.quantity-readout.is-unknown{background:#211b18;border-left-color:var(--danger)}.quantity-readout code{color:#dff5e9;font-family:Consolas,monospace;font-size:11px}.quantity-readout.is-unknown code{color:#e9b5a3}.quantity-readout span{color:var(--subtle);font-size:9px}.quantity-meta{display:flex;flex-wrap:wrap;gap:4px 9px;margin-top:-2px;color:var(--subtle);font-size:8px}.slider-field{display:grid;grid-template-columns:70px 1fr 32px;align-items:center;gap:8px;min-height:28px}.slider-field input,.phase-control input{width:100%;accent-color:var(--gold)}.slider-field output,.phase-control output{color:#d9c48f;font-family:Consolas,monospace;font-size:11px;text-align:right}.structure-tree{min-height:0;padding:13px 10px 14px;overflow:auto;border-top:1px solid var(--border)}.structure-tree .section-heading{padding:0 6px}.structure-tree .section-heading .icon-button{width:24px;height:24px;margin-left:3px}.tree-drag-note{display:flex;align-items:center;gap:5px;margin:-2px 6px 9px;padding:6px 7px;color:#b6aa8d;font-size:8px;line-height:1.45;background:#25221b;border-left:2px solid #9d8150}.tree-group+.tree-group{margin-top:12px}.tree-label{display:flex;align-items:center;gap:6px;padding:5px 7px;color:var(--subtle);font-size:10px;text-transform:uppercase}.tree-axis-header{display:grid;grid-template-columns:minmax(0,1fr) 26px 26px;align-items:center;min-height:30px;margin-bottom:3px;border:1px solid transparent}.tree-axis-header.is-selected{background:color-mix(in srgb,var(--highlight-selected) 11%,#181815);border-color:color-mix(in srgb,var(--highlight-selected) 78%,#3b3931);box-shadow:inset 3px 0 var(--highlight-selected),0 0 10px color-mix(in srgb,var(--highlight-selected) 14%,transparent)}.tree-axis-header.is-related-highlight{background:color-mix(in srgb,var(--highlight-related) 10%,#181815);border-color:color-mix(in srgb,var(--highlight-related) 78%,#3b3931);box-shadow:inset 3px 0 var(--highlight-related)}.tree-axis-header>button:first-child{display:flex;align-items:center;gap:6px;min-width:0;height:28px;padding:0 7px;color:var(--subtle);font-size:9px;text-align:left;background:transparent;border:0;cursor:pointer}.tree-axis-header>button:first-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-axis-header .icon-button{width:24px;height:24px}.serial-group{margin-left:15px;padding-left:8px;border-left:1px solid #48443a}.tree-node{display:grid;grid-template-columns:8px 13px minmax(0,1fr) auto 13px;align-items:center;gap:8px;width:100%;min-height:29px;padding:4px 6px;color:#aca79a;text-align:left;background:transparent;border:1px solid transparent;border-radius:3px;cursor:pointer}.tree-node-row.is-draggable .tree-node{cursor:grab}.tree-node-row.is-dragging{opacity:.35}.tree-node-row.is-hidden-tier .tree-node{opacity:.38}.layer-grip{color:#bba578}.tree-node-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center}.tree-node-row>.icon-button{width:24px;height:24px;opacity:.45}.tree-node-row:hover>.icon-button,.tree-node-row:focus-within>.icon-button{opacity:1}.tree-node span:nth-child(3){overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.tree-node:hover,.tree-node.is-selected{color:#f4edda;background:#25231e}.tree-node.is-selected{color:#fff;background:color-mix(in srgb,var(--highlight-selected) 13%,#181815);border-color:var(--highlight-selected);box-shadow:inset 3px 0 var(--highlight-selected),0 0 10px color-mix(in srgb,var(--highlight-selected) 15%,transparent)}.tree-node-row.is-axis-group-highlight .tree-node:not(.is-selected){color:#f1ead8;background:color-mix(in srgb,var(--highlight-related) 6%,#181815);border-color:color-mix(in srgb,var(--highlight-related) 36%,#3b3931);box-shadow:inset 2px 0 color-mix(in srgb,var(--highlight-related) 66%,#3b3931)}.tree-node-row.is-related-highlight .tree-node:not(.is-selected){color:#fff;background:color-mix(in srgb,var(--highlight-related) 12%,#181815);border-color:var(--highlight-related);box-shadow:inset 3px 0 var(--highlight-related),0 0 8px color-mix(in srgb,var(--highlight-related) 15%,transparent)}.ring-swatch{display:inline-block;width:7px;height:7px;border-radius:50%;box-shadow:0 0 6px currentColor}.ring-swatch.large{width:22px;height:22px}.viewport{position:relative;grid-column:2;grid-row:2;min-width:0;min-height:0;overflow:hidden;background:var(--bg)}.viewport canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.viewport-title{position:absolute;top:18px;left:20px;pointer-events:none}.viewport-title span{color:var(--gold);font-family:Consolas,Microsoft YaHei UI,sans-serif;font-size:10px}.viewport-title h2{margin:5px 0 0;color:#fff9e9;font-family:SimSun,"Noto Serif SC",serif;font-size:23px;font-weight:700;letter-spacing:0;text-shadow:0 2px 18px #000}.axis-key{position:absolute;top:20px;right:58px;display:flex;align-items:center;gap:5px;color:#817c70;font-family:Consolas,monospace;font-size:9px;pointer-events:none}.axis-key i{display:block;width:12px;height:2px;margin-left:5px;background:var(--gold)}.axis-key .axis-x{background:#8b7ae8}.view-switcher{position:absolute;top:64px;left:20px;display:flex;padding:2px;background:#141411db;border:1px solid var(--border);border-radius:4px}.view-switcher button{display:flex;align-items:center;gap:5px;height:26px;padding:0 8px;color:var(--muted);font-size:10px;background:transparent;border:0;border-radius:2px;cursor:pointer}.view-switcher button.is-active{color:#fff;background:color-mix(in srgb,var(--highlight-selected) 13%,#25231e);box-shadow:inset 0 -2px var(--highlight-selected)}.view-presets{position:absolute;top:104px;left:20px;display:flex;padding:2px;background:#141411db;border:1px solid var(--border);border-radius:4px}.view-presets button{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 7px;color:var(--subtle);font-size:9px;background:transparent;border:0;border-radius:2px;cursor:pointer}.view-presets button.is-active{color:#fff;background:color-mix(in srgb,var(--highlight-selected) 13%,#25231e);box-shadow:inset 0 -2px var(--highlight-selected)}.tier-visibility{position:absolute;top:137px;left:20px;display:flex;gap:2px;padding:2px;background:#141411db;border:1px solid var(--border);border-radius:4px}.tier-visibility button{display:flex;align-items:center;gap:4px;height:24px;padding:0 6px;color:#716d65;font-size:9px;background:transparent;border:1px solid transparent;border-radius:2px;cursor:pointer}.tier-visibility button.is-active{color:#e9e1cf;background:#292721}.tier-visibility button.is-active.tier-core{border-color:#9b7c46}.tier-visibility button.is-active.tier-safeguard{border-color:#4f7f84}.tier-visibility button.is-active.tier-redundant{border-color:#756b87}.viewport-actions{position:absolute;top:14px;right:14px;z-index:8}.viewport-actions .icon-button{width:30px;height:30px;color:#aaa496;background:#141411db;border-color:var(--border)}.view-presets .projection-toggle{margin-left:2px;color:#9eb8b4;border-left:1px solid #3d3b34}.app-shell.is-immersive{grid-template-columns:1fr;grid-template-rows:1fr}.app-shell.is-immersive>.topbar,.app-shell.is-immersive>.side-panel,.app-shell.is-immersive>.timeline{display:none}.app-shell.is-immersive>.viewport,.viewport:fullscreen{grid-column:1;grid-row:1;width:100%;height:100%;background:var(--bg)}.viewport:fullscreen .viewport-actions,.viewport.is-immersive .viewport-actions{top:18px;right:18px}.phase-control{position:relative;z-index:2;display:grid;flex:none;gap:7px;width:100%;padding:9px 10px;color:#c7c1b1;font-size:10px;background:#141411e0;border:0;border-bottom:1px solid var(--border)}.phase-control>header{display:grid;grid-template-columns:minmax(0,1fr) auto 24px 24px;align-items:center;gap:6px}.phase-control>header>span{color:#d8d1c1;font-size:9px}.phase-control>header>code{color:#7e978e;font-size:8px}.phase-control .icon-button{width:24px;height:24px}.phase-plane-tabs{display:flex;gap:3px;overflow-x:auto;scrollbar-width:thin}.phase-plane-tabs button{display:grid;flex:1 0 40px;gap:1px;min-height:30px;padding:3px 5px;color:#7e8380;font:8px Consolas,monospace;background:#151815;border:1px solid #363b36;cursor:pointer}.phase-plane-tabs button small{color:#666f6b;font-size:7px}.phase-plane-tabs button.is-active{color:#b9f3df;background:#1b3028;border-color:#4e9d83}.phase-plane-tabs button.is-active small{color:#83bbaa}.phase-plane-tabs button.is-hidden{opacity:.5;border-style:dashed}.phase-control>label{display:grid;grid-template-columns:74px minmax(0,1fr) 44px;align-items:center;gap:7px}.phase-control>label>span{color:#8e9189;font-size:8px}.phase-control>small{color:#6f736e;font-size:7px;line-height:1.35}.phase-plane-actions{display:grid;grid-template-columns:minmax(0,1fr) 24px 24px 24px;align-items:center;gap:6px}.phase-plane-actions>span{color:#8eaaa1;font:8px Consolas,monospace}.phase-plane-actions .icon-button.is-active{color:#99eed1;background:#1b3028;border-color:#4e9d83}.phase-control .phase-manual-input{width:42px;height:23px;padding:0 3px;color:#f0dda1;font:9px Consolas,monospace;text-align:right;background:#10130f;border:1px solid #6d6649}.phase-control output{cursor:text;-webkit-user-select:none;user-select:none}.phase-control output:focus-visible{outline:1px solid #c8ad5d;outline-offset:2px}.scene-facts{position:absolute;bottom:18px;left:20px;display:flex;max-width:calc(100% - 40px);background:#11110fd1;border:1px solid #34322c}.scene-facts>div{display:grid;gap:3px;min-width:92px;padding:8px 12px;border-right:1px solid #34322c}.scene-facts>div:last-child{border-right:0}.scene-facts span{color:var(--subtle);font-size:9px}.scene-facts strong{overflow:hidden;color:#d8d2c2;font-family:Consolas,Microsoft YaHei UI,sans-serif;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.measurement-hud{position:relative;z-index:2;display:grid;flex:none;width:100%;color:#d9d3c3;background:#0f110ff0;border:0;border-bottom:1px solid #3d4139;box-shadow:none;scrollbar-color:#4c5148 transparent;scrollbar-width:thin;transition:width .16s ease,max-height .18s ease}.measurement-hud.is-collapsed{width:100%;max-height:44px;overflow:hidden}.measurement-hud.is-expanded{width:100%;max-height:min(66vh,720px);overflow-x:hidden;overflow-y:auto}.measurement-hud>*{min-width:0}.measurement-hud>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 11px;background:#1a1d19;border-bottom:1px solid #353a33}.measurement-title{display:flex;align-items:center;gap:8px;min-width:0;color:#78dfc1}.measurement-title>span{display:grid;min-width:0;gap:2px}.measurement-hud>header strong{color:#f0eadb;font-size:11px}.measurement-hud>header small{color:#817f76;font-size:8px}.measurement-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.measurement-head-actions{display:flex;flex:none;align-items:center;gap:6px}.measurement-head-actions .icon-button{width:24px;height:24px;border-color:#4b5148}.measurement-status{display:inline-flex;align-items:center;min-height:20px;padding:0 6px;font-size:8px;border:1px solid #555}.measurement-status.pass{color:#72e0bb;border-color:#397865;background:#14271f}.measurement-status.partial{color:#efc46e;border-color:#7a6335;background:#2a2416}.measurement-status.unknown{color:#b7b2a7;border-color:#58554d;background:#25231f}.measurement-status.fail{color:#ff8580;border-color:#87433f;background:#2c1817}.measurement-total{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #343730}.measurement-total>div{display:grid;gap:3px;min-width:0;padding:7px 6px;border-right:1px solid #343730}.measurement-total>div:last-child{border-right:0}.measurement-total span{color:#807e75;font-size:8px}.measurement-total strong{overflow:hidden;color:#dcebe2;font:10px Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.measurement-layer-list{display:grid;gap:1px;padding:6px;background:#30342e;border-bottom:1px solid #343730}.measurement-layer-list button{--layer-color: #69d9bb;display:grid;grid-template-columns:22px minmax(38px,1fr) 50px 43px;align-items:center;gap:4px;min-height:27px;padding:4px 5px;color:#bcb7aa;text-align:left;background:#171a16;border:0;border-left:2px solid color-mix(in srgb,var(--layer-color) 74%,transparent);cursor:pointer}.measurement-layer-list button:hover{background:#20251f;box-shadow:inset 2px 0 var(--layer-color)}.measurement-layer-list button>span{display:flex;align-items:center;gap:5px;color:#f0d691;font:9px Consolas,monospace}.measurement-layer-list button>span>i{width:7px;height:7px;flex:none;background:var(--layer-color);box-shadow:0 0 8px color-mix(in srgb,var(--layer-color) 62%,transparent)}.measurement-layer-list button>i{height:5px;overflow:hidden;background:#29312d}.measurement-layer-list button>i>b{display:block;height:100%;min-width:2px;background:var(--layer-color);box-shadow:0 0 7px var(--layer-color)}.measurement-layer-list code{color:#94cbb9;font-size:8px}.measurement-layer-list code,.measurement-layer-list button>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.measurement-layer-list button>strong{color:#e4dfd2;font:9px Consolas,monospace;font-weight:500;text-align:right}.measurement-layer-list em{grid-column:2 / -1;overflow:hidden;color:#777f78;font-size:8px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.mana-allocation-editor,.mana-palette-editor{display:grid;min-width:0;gap:7px;padding:8px;background:#171916;border-bottom:1px solid #343730}.mana-allocation-editor>header,.mana-palette-editor>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px}.mana-allocation-editor>header>div{display:grid;gap:2px}.mana-allocation-editor>header strong,.mana-palette-editor>header strong{color:#e1dbcc;font-size:9px}.mana-allocation-editor>header small,.mana-palette-editor>header small{color:#797970;font-size:8px;line-height:1.35}.mana-allocation-editor>header>button{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 7px;color:#c7b982;font-size:8px;background:#1d211d;border:1px solid #45483f;cursor:pointer}.mana-allocation-mode{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#343730}.mana-allocation-mode button{min-height:25px;color:#85847b;font-size:8px;background:#1b1d1a;border:0;cursor:pointer}.mana-allocation-mode button.is-active{color:#72e0bb;background:#203129;box-shadow:inset 0 -2px #61cfad}.mana-allocation-sync{display:grid;grid-template-columns:auto auto auto minmax(0,1fr);align-items:center;gap:6px;min-height:26px;padding:0 8px;color:#b6b2a7;font-size:8px;background:#1a211c;border:1px solid #35443a}.mana-allocation-sync strong{color:#73dabb;font-size:12px;font-weight:500}.mana-allocation-sync small{overflow:hidden;color:#738078;font-size:8px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.mana-formula-row{display:grid;grid-template-columns:minmax(0,1fr) 26px;align-items:center;gap:5px}.mana-formula-row code{grid-column:1 / -1;overflow-wrap:anywhere;color:#7bcbb2;font-size:8px}.mana-formula-row input{min-width:0;height:27px;padding:0 7px;color:#ded8ca;font:9px Consolas,monospace;background:#10120f;border:1px solid #3d4139}.mana-formula-row input:read-only{color:#85837a;border-color:#30342e}.mana-formula-error{margin:0;padding:5px 7px;color:#efa49c;font-size:8px;line-height:1.45;background:#291817;border-left:2px solid #d96b63}.mana-curve-editor{display:grid;gap:4px;padding:6px;background:#10120f;border:1px solid #30342e}.mana-curve-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) 24px 24px;align-items:center;gap:5px}.mana-curve-toolbar>span{color:#d7d0c0;font-size:8px}.mana-curve-toolbar>small{overflow:hidden;color:#73766f;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.mana-curve-toolbar .icon-button,.mana-formula-row .icon-button,.mana-target-list .icon-button,.mana-target-add .icon-button{width:24px;height:24px}.mana-axis-scale{display:grid;grid-template-columns:auto 24px 64px 24px auto;align-items:center;gap:4px}.mana-axis-scale>span{color:#858b84;font-size:8px}.mana-axis-scale .icon-button{width:24px;height:24px}.mana-axis-scale input{width:64px;height:24px;padding:0 5px;color:#d9d4c8;font:8px Consolas,monospace;background:#11140f;border:1px solid #3d443c}.mana-axis-scale>button:not(.icon-button){min-height:24px;padding:0 7px;color:#a9b5ac;font-size:8px;background:#1b211c;border:1px solid #3c473f;cursor:pointer}.mana-curve-editor svg{width:100%;height:176px;touch-action:none;background:#121713}.mana-curve-editor svg line{stroke:#2c342f;stroke-width:1}.mana-curve-editor svg text{fill:#737a72;font:9.5px Consolas,monospace;pointer-events:none}.mana-curve-editor svg .mana-axis-title{fill:#99b5aa;font-size:10.5px}.mana-smooth-curve{fill:none;stroke:#71ddbd;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.mana-curve-editor svg .mana-target-sample line{stroke-width:1;stroke-dasharray:2 4;opacity:.34}.mana-curve-editor svg .mana-target-sample circle{stroke:#11130f;stroke-width:1.4;opacity:.94}.mana-curve-editor svg .mana-target-sample text{fill:#aeb4aa;font-size:9px}.mana-curve-editor svg .mana-target-sample rect{fill:transparent;cursor:pointer}.mana-curve-editor svg .mana-target-sample:focus{outline:none}.mana-curve-editor svg .mana-target-sample:focus circle{stroke:#fff;stroke-width:2}.mana-curve-editor svg .mana-target-sample.is-selected line{stroke-width:2;opacity:.86}.mana-curve-editor svg .mana-target-sample.is-selected circle{stroke:#fff;stroke-width:2.4;filter:drop-shadow(0 0 4px #fff3bd)}.mana-curve-editor svg .mana-curve-anchor{fill:#e8d79e;stroke:#171916;stroke-width:2;cursor:move}.mana-curve-editor svg .mana-curve-anchor:focus{outline:none;fill:#fff;stroke:#62d8b5}.mana-target-position{display:grid;grid-template-columns:42px minmax(0,1fr) 52px 24px;align-items:center;gap:6px;padding:6px;background:#1a201b;border:1px solid #4a5148}.mana-target-position span{color:#e8d593;font:8px Consolas,monospace}.mana-target-position input[type=range]{width:100%;accent-color:#70d9b9}.mana-target-position input[type=number]{width:52px;height:24px;padding:0 4px;color:#dfe9df;font:8px Consolas,monospace;background:#10130f;border:1px solid #414840}.mana-budget-target-list{display:grid;max-height:194px;overflow:auto;border:1px solid #30342e;scrollbar-width:thin}.mana-budget-target-row{display:grid;grid-template-columns:minmax(86px,.78fr) minmax(92px,1.22fr) 42px 26px;align-items:center;gap:7px;min-height:46px;padding:5px 4px 5px 7px;background:#151815;border-bottom:1px solid #292d28;cursor:pointer}.mana-budget-target-row:last-child{border-bottom:0}.mana-budget-target-row:hover{background:#1c211d}.mana-budget-target-row:focus-visible{outline:1px solid var(--layer-color);outline-offset:-2px}.mana-budget-target-row.is-editing-x{background:#25261f;box-shadow:inset 2px 0 #d8bd68}.mana-target-label{display:flex;min-width:0;align-items:center;gap:5px;color:#ead68f;font:8px Consolas,monospace}.mana-target-label>i{width:7px;height:7px;flex:none;background:var(--layer-color);box-shadow:0 0 7px color-mix(in srgb,var(--layer-color) 62%,transparent)}.mana-target-label>b{overflow:hidden;color:#aaa79e;font:8px sans-serif;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.mana-target-bar{display:grid;min-width:0;gap:3px}.mana-target-bar>i{height:6px;overflow:hidden;background:#29312d}.mana-target-bar>i>b{display:block;height:100%;min-width:2px;background:var(--layer-color);box-shadow:0 0 7px var(--layer-color)}.mana-target-bar>small{overflow:hidden;color:#848a83;font:7px Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.mana-budget-target-row>code{color:#8ed1b9;font-size:8px;text-align:right}.mana-target-delete{display:grid;place-items:center}.mana-target-delete .icon-button{width:24px;height:24px}.mana-target-add{display:grid;grid-template-columns:minmax(0,1fr) 26px;gap:6px}.mana-target-add select{min-width:0;height:26px;padding:0 6px;color:#c8c2b5;font-size:8px;background:#11130f;border:1px solid #3b3e37}.mana-palette-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.mana-palette-presets button{display:grid;gap:5px;min-width:0;padding:6px;color:#a7a398;font-size:8px;background:#11130f;border:1px solid #373b34;cursor:pointer}.mana-palette-presets button:hover{color:#e6dfcf;border-color:#697167}.mana-palette-presets button span{display:grid;grid-template-columns:repeat(6,1fr);height:6px}.mana-custom-colors{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.mana-custom-colors label{display:grid;justify-items:center;gap:3px;color:#7f817a;font-size:7px}.mana-custom-colors input{width:100%;min-width:0;height:20px;padding:1px;background:#10120f;border:1px solid #363a34;cursor:pointer}.measurement-flow-summary{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 6px;padding:8px;border-bottom:1px solid #343730}.measurement-flow-summary span{color:#74dabb;font-size:8px}.measurement-flow-summary strong{color:#d6d0c1;font-size:8px;font-weight:500;line-height:1.45}.measurement-flow-summary small{grid-column:2;color:#7e7b72;font-size:8px;line-height:1.45}.measurement-validation-grid{display:grid;grid-template-columns:1fr;gap:1px;background:#343730}.measurement-validation-grid article{display:grid;align-content:start;gap:5px;min-width:0;padding:9px 10px;background:#171916}.measurement-validation-grid article>header{display:flex;align-items:center;justify-content:space-between;gap:7px}.measurement-validation-grid article>header strong{overflow:hidden;color:#e3ddcf;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.measurement-validation-grid p{margin:0;color:#a8d6c8;font:8px Consolas,monospace}.measurement-validation-grid small,.measurement-validation-grid em{color:#858279;font-size:8px;font-style:normal;line-height:1.45}.measurement-validation-grid em{color:#c4a665}.panel-header{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:0 16px;color:#9e9788;border-bottom:1px solid var(--border)}.panel-header>div{display:grid;gap:3px}.panel-header.is-collapsed{min-height:46px}.panel-header .panel-header-actions{display:flex;align-items:center;gap:7px}.panel-header-actions .icon-button{width:25px;height:25px}.panel-header span{color:var(--subtle);font-family:Consolas,monospace;font-size:9px}.panel-header strong{color:#e4decd;font-size:12px}.inspector-content{min-width:0}.logic-chain{padding:14px 12px 12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.logic-chain .section-heading{margin:0 4px 10px}.logic-chain.is-collapsed{padding-top:9px;padding-bottom:9px}.logic-chain.is-collapsed .section-heading{margin-bottom:0}.logic-chain-steps{display:grid;gap:5px}.logic-step{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:8px;background:#1c1d1a;border:1px solid #34352e}.logic-step>span{display:grid;place-items:center;width:24px;height:24px;color:#e0c47e;font:9px Consolas,monospace;background:#2b281f;border:1px solid #554b36}.logic-step>div{min-width:0}.logic-step strong{color:#ddd6c6;font-size:9px}.logic-step p{margin:3px 0 0;color:#969186;font-size:8px;line-height:1.55;overflow-wrap:anywhere}.logic-step>svg{position:absolute;right:50%;bottom:-10px;z-index:1;color:#8b7a55;transform:rotate(90deg) translateY(-50%)}.casting-logic-chain{padding:13px 12px;background:#151916;border-top:1px solid #334038;border-bottom:1px solid #334038}.casting-logic-chain.is-collapsed{padding-top:9px;padding-bottom:9px}.casting-logic-chain>.section-heading{margin:0 2px 10px}.casting-logic-chain.is-collapsed>.section-heading{margin-bottom:0}.casting-state{margin-left:auto;color:#898579;font:8px Consolas,monospace}.casting-state.is-running{color:#8be0b6;text-shadow:0 0 8px rgba(99,216,160,.35)}.casting-state.is-previewing{color:var(--highlight-casting)}.casting-state.is-ended{color:#7d766b}.casting-logic-chain .collapsible-actions{margin-left:0}.casting-proof{margin:-2px 2px 10px;color:#817e74;font-size:8px;line-height:1.5}.casting-stage-list{display:grid;gap:4px}.casting-stage-list>button{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;min-width:0;padding:7px 8px 9px;color:#a29e92;text-align:left;background:#191c19;border:1px solid #30352f;cursor:pointer;overflow:hidden}.casting-stage-list>button>span{display:grid;place-items:center;width:24px;height:24px;color:#9c8b61;font:8px Consolas,monospace;border:1px solid #4b4433}.casting-stage-list>button>div{display:grid;gap:3px;min-width:0}.casting-stage-list strong{color:#d4cfc1;font-size:9px}.casting-stage-list small{overflow:hidden;color:#77746c;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.casting-stage-list>button>i{position:absolute;right:0;bottom:0;left:0;height:2px;background:var(--highlight-casting);transform:scaleX(var(--stage-progress, 0));transform-origin:left}.casting-stage-list>button.is-complete{background:#18221d;border-color:#30493b}.casting-stage-list>button.is-active{color:#fff;background:color-mix(in srgb,var(--highlight-casting) 10%,#171b18);border-color:color-mix(in srgb,var(--highlight-casting) 72%,#334038);box-shadow:inset 3px 0 var(--highlight-casting),0 0 12px color-mix(in srgb,var(--highlight-casting) 12%,transparent)}.casting-stage-detail{display:grid;gap:7px;margin-top:8px;padding:9px;background:#121613;border:1px solid #2f3d34}.casting-stage-detail>p{margin:0 0 2px;color:#a9b7ac;font-size:8px;line-height:1.55}.casting-stage-detail>div:not(.casting-ring-list){display:grid;grid-template-columns:38px minmax(0,1fr);gap:7px}.casting-stage-detail span{color:#6f8175;font-size:8px}.casting-stage-detail strong{color:#c8d6cc;font-size:8px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.casting-ring-list{display:grid;gap:5px;padding-top:4px;border-top:1px solid #263129}.casting-ring-list>div{display:flex;flex-wrap:wrap;gap:4px}.casting-ring-list button{display:inline-flex;align-items:center;gap:4px;min-width:0;padding:3px 5px;color:#c7d2ca;font-size:7px;text-align:left;background:#1b211d;border:1px solid #35433a;cursor:pointer}.casting-ring-list button.is-active{color:#fff8dc;background:color-mix(in srgb,var(--highlight-casting) 13%,#1b211d);border-color:color-mix(in srgb,var(--highlight-casting) 72%,#35433a);box-shadow:inset 2px 0 var(--highlight-casting),0 0 7px color-mix(in srgb,var(--highlight-casting) 12%,transparent)}.casting-ring-list button i{width:5px;height:5px;flex:0 0 5px;border-radius:50%;box-shadow:0 0 5px currentColor}.inspector-primary .eyebrow{margin-bottom:8px;color:var(--gold);font-family:Consolas,monospace;font-size:9px}.inspector-primary h2{margin:0 0 9px;color:#fff6de;font-family:SimSun,"Noto Serif SC",serif;font-size:18px}.inspector-primary p{margin:0;color:#aaa597;font-size:11px;line-height:1.75}.inspector-primary{border-left:3px solid var(--highlight-selected);box-shadow:inset 12px 0 22px -20px var(--highlight-selected)}.property-list>div:not(.section-heading){display:grid;grid-template-columns:74px minmax(0,1fr);align-items:start;gap:8px;min-height:32px;padding:8px 0;border-bottom:1px solid #292823}.property-list>div:last-child{border-bottom:0}.property-list span{color:var(--subtle);font-size:10px}.property-list code,.property-list strong{overflow-wrap:anywhere;color:#cfc8b8;font-family:Consolas,Microsoft YaHei UI,sans-serif;font-size:10px;font-weight:500}.perimeter-edit-field>div{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.perimeter-edit-field>div>code{min-width:0}.perimeter-edit-field button{display:inline-flex;align-items:center;gap:4px;min-height:24px;flex:none;padding:0 7px;color:#d8c89e;font-size:9px;background:#25231d;border:1px solid #514b3f;cursor:pointer}.perimeter-edit-field button:hover,.perimeter-edit-field button:focus-visible{color:#fff5dc;border-color:var(--highlight-selected);outline:0}.relation-link{display:flex;align-items:center;gap:6px;min-width:0;padding:5px 6px;color:#cfc8b8;text-align:left;background:#1c1c19;border:1px solid #37352f;border-radius:3px;cursor:pointer}.relation-link:hover{color:#f4ead1;border-color:#72654b}.relation-link.is-highlighted{color:#fff;background:color-mix(in srgb,var(--highlight-related) 13%,#181815);border-color:var(--highlight-related);box-shadow:0 0 9px color-mix(in srgb,var(--highlight-related) 18%,transparent)}.relation-link>span{overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}.axis-relation-field{position:relative;z-index:4}.axis-relation-control{position:relative;min-width:0}.axis-relation-control>.relation-link{width:100%}.axis-ring-menu{position:absolute;top:calc(100% + 5px);right:0;left:0;z-index:30;overflow:hidden;background:#171714;border:1px solid #70603f;border-radius:4px;box-shadow:0 10px 28px #0000007a,0 0 0 1px color-mix(in srgb,var(--highlight-related) 10%,transparent)}.axis-ring-menu>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:#211e16;border-bottom:1px solid #403a2b}.axis-ring-menu>header>div:first-child{display:grid;min-width:0;gap:2px}.axis-ring-menu>header strong{color:#f2ddb0;font-size:11px}.axis-ring-menu>header small{overflow:hidden;color:#938974;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.axis-ring-list{display:grid;max-height:174px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#75613b #171714;scrollbar-width:thin}.axis-ring-list>button{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:31px;padding:5px 8px;color:#cfc8b8;text-align:left;background:#171714;border:0;border-bottom:1px solid #292822;cursor:pointer}.axis-ring-list>button:last-child{border-bottom:0}.axis-ring-list>button:hover{color:#f4ead1;background:#252219}.axis-ring-list>button>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.axis-ring-list>button>code{overflow:hidden;max-width:72px;color:#777064;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.axis-ring-list>button.is-current{box-shadow:inset 2px 0 var(--highlight-selected)}.axis-ring-list>button.is-focused{color:#fff;background:color-mix(in srgb,var(--highlight-related) 13%,#181815);box-shadow:inset 3px 0 var(--highlight-related)}.parent-ring-link{display:grid;grid-template-columns:minmax(0,1fr) auto}.parent-ring-link small{color:#817a6c;font-family:Consolas,monospace;font-size:7px}.relation-root{padding:5px 0}.rationale-block p,.source-reference{margin:0 0 10px;color:#aaa497;font-size:10px;line-height:1.65}.rationale-block>span{display:block;margin-top:9px;color:var(--subtle);font-size:9px}.rationale-block ul{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 0;padding:0;list-style:none}.rationale-block li{padding:3px 5px;color:#bcdacb;font-size:9px;background:#18241e;border:1px solid #2b4436;border-radius:2px}.rationale-block code{display:block;margin-top:5px;color:#c7c0af;font-family:Consolas,monospace;font-size:9px;line-height:1.5;overflow-wrap:anywhere}.glyph-row{display:grid;gap:3px;padding:8px 0;border-top:1px solid #292823}.glyph-row code{color:#e0c991;font-family:Consolas,monospace;font-size:9px;overflow-wrap:anywhere}.glyph-row span{color:#bbb4a4;font-size:9px}.glyph-row small{color:var(--subtle);font-size:8px}.surface-lanes{margin-bottom:10px;border-top:1px solid #292823}.surface-lanes>div:not(.lane-row){display:grid;grid-template-columns:72px minmax(0,1fr);gap:7px;padding:6px 0;color:var(--subtle);font-size:8px;border-bottom:1px solid #292823}.surface-lanes code{color:#bcae8e;font-family:Consolas,monospace;font-size:8px;overflow-wrap:anywhere}.lane-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:4px 7px;padding:7px 0;border-bottom:1px solid #292823}.lane-row strong{color:#7bc2d0;font:8px Consolas,monospace}.lane-row span{color:#aaa497;font-size:8px;line-height:1.5;overflow-wrap:anywhere}.lane-row code{grid-column:2;color:#6e8d91}.confidence.text{color:var(--green)}.confidence.inferred{color:var(--blue)}.confidence.unresolved{color:var(--danger)}.attribute-required{color:#ff9c8f!important}.attribute-none{color:#c7c0b0!important}.layout-editor .section-heading>button{margin-left:auto;padding:3px 6px;color:var(--muted);font-size:9px;background:transparent;border:1px solid var(--border);border-radius:2px;cursor:pointer}.collapsible-inspector-panel>.section-heading{margin-bottom:11px}.collapsible-inspector-panel.is-collapsed{padding-top:9px;padding-bottom:9px}.collapsible-inspector-panel.is-collapsed>.section-heading{margin-bottom:0}.collapsible-heading{display:flex!important;grid-template-columns:none!important;width:100%}.collapsible-actions{display:flex;align-items:center;gap:5px;margin-left:auto}.collapsible-actions .icon-button{width:24px;height:24px;margin:0}.layout-editor .layout-reset{padding:3px 6px;color:var(--muted);font-size:9px;background:transparent;border:1px solid var(--border);border-radius:2px;cursor:pointer}.asset-rationale{margin:2px 0 10px;color:var(--subtle);font-size:9px;line-height:1.55}.danger-button{display:flex;align-items:center;gap:6px;padding:6px 8px;color:#efad9a;font-size:9px;background:#2b1d19;border:1px solid #5b3329;border-radius:3px;cursor:pointer}.binding-row{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:10px;min-height:42px}.binding-row div{display:grid;gap:2px}.binding-row strong{color:#c9c2b1;font-size:10px}.binding-row small{color:var(--subtle);font-size:9px}.material-sample{width:22px;height:22px;background:#6d6960;border:1px solid #bab2a0;box-shadow:inset 4px 4px #8b867a;transform:rotate(45deg) scale(.72)}.empty-inspector{display:grid;place-items:center;gap:8px;min-height:220px;padding:24px;color:var(--subtle);text-align:center}.empty-inspector p{margin:0;font-size:11px}.warning{margin:12px;padding:10px;color:#d5b39d;font-size:10px;line-height:1.55;background:#29211c;border-left:2px solid var(--danger)}.validation-card{margin:12px;padding:12px;color:#d8d2c4;background:#20211d;border:1px solid #4d5043;border-left:2px solid #b8a458}.validation-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.status-card-heading>div{display:flex;align-items:center;gap:6px}.status-card-heading .icon-button{width:24px;height:24px}.validation-card.is-collapsed,.analysis-card.is-collapsed,.audit-card.is-collapsed{padding-top:8px;padding-bottom:8px}.validation-card span,.validation-card h3{margin:0;color:var(--subtle);font-size:9px;font-weight:600;text-transform:uppercase}.validation-card strong{color:#e1bc72;font:600 10px/1.2 var(--mono)}.validation-card p,.validation-card li{font-size:10px;line-height:1.65}.validation-card ul{margin:6px 0 0;padding-left:16px}.analysis-card{margin:0 12px 12px;padding:11px 12px;color:#d8d2c4;background:#181f20;border:1px solid #39494b;border-left:2px solid var(--blue)}.analysis-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.audit-card>.status-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.audit-card.is-collapsed>.status-card-heading{margin-bottom:0}.audit-card>.status-card-heading span{color:var(--subtle);font-size:9px;font-weight:600;text-transform:uppercase}.audit-card>.status-card-heading strong{color:#e1bc72;font:600 10px/1.2 Consolas,monospace}.analysis-card>div:first-child span,.analysis-card>div:first-child strong{color:#a9cbd2;font-size:9px}.analysis-card p{margin:8px 0;color:var(--muted);font-size:9px}.analysis-card>div:last-child{display:grid;gap:5px}.analysis-card>div:last-child span{display:grid;grid-template-columns:90px minmax(0,1fr);gap:7px;color:#bdb7aa;font-size:9px}.analysis-card code{overflow:hidden;color:#80c4d2;font-family:Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.audit-card{margin:0 12px 12px;padding:11px 12px;background:#1d1c19;border:1px solid #464237;border-left:2px solid #c29c5d}.audit-heading{display:flex;justify-content:space-between;gap:8px;color:var(--subtle);font-size:9px}.audit-heading strong{color:#e0bd78;font-size:9px}.audit-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:9px 0;background:#37342d;border:1px solid #37342d}.audit-status span{display:grid;gap:3px;padding:6px;color:var(--subtle);font-size:8px;background:#171714}.audit-status strong{overflow:hidden;color:#d1c8b5;font:8px Consolas,monospace;text-overflow:ellipsis}.checksum-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin-bottom:9px}.checksum-list span{display:grid;gap:2px;color:#a8a194;font:8px Consolas,monospace}.checksum-list code{color:#6caebc}.kernel-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:7px 0;border-top:1px solid #302e28}.kernel-row span,.kernel-row strong,.kernel-row small{font-size:8px}.kernel-row span{color:#c6bfaf}.kernel-row strong{color:var(--green)}.kernel-row.unknown strong{color:var(--danger)}.kernel-row small{grid-column:1 / -1;color:var(--subtle);line-height:1.45}.generator-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px}.generator-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;background:#050504bd;border:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.generator-dialog{position:relative;z-index:1;display:grid;grid-template-rows:58px minmax(0,1fr) 58px;width:min(880px,96vw);max-height:min(680px,92vh);overflow:hidden;background:#191916;border:1px solid #555044;border-radius:6px;box-shadow:0 22px 70px #0000009e}.generator-dialog>header,.generator-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border-bottom:1px solid var(--border)}.generator-dialog>header>div{display:flex;align-items:center;gap:10px}.generator-dialog>header>div>div{display:grid;gap:3px}.generator-dialog header strong{color:#fff5dc;font-size:13px}.generator-dialog header small,.generator-dialog>footer>span{color:var(--subtle);font-size:9px}.generator-dialog>footer{border-top:1px solid var(--border);border-bottom:0}.settings-dialog{position:relative;z-index:1;display:grid;grid-template-rows:58px minmax(0,1fr) 58px;width:min(620px,94vw);max-height:min(660px,92vh);overflow:hidden;background:#191916;border:1px solid #555044;border-radius:6px;box-shadow:0 22px 70px #0000009e}.settings-dialog>header,.settings-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px}.settings-dialog>header{border-bottom:1px solid var(--border)}.settings-dialog>header>div{display:flex;align-items:center;gap:10px}.settings-dialog>header>div>div{display:grid;gap:3px}.settings-dialog>header strong{color:#fff5dc;font-size:13px}.settings-dialog>header small{color:var(--subtle);font-size:9px}.export-dialog{position:relative;z-index:1;display:grid;grid-template-rows:58px minmax(0,1fr);width:min(620px,94vw);max-height:min(680px,92vh);overflow:hidden;background:#191916;border:1px solid #555044;border-radius:6px;box-shadow:0 22px 70px #0000009e}.export-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border-bottom:1px solid var(--border)}.export-dialog>header>div{display:flex;align-items:center;gap:10px}.export-dialog>header>div>div{display:grid;gap:3px}.export-dialog>header strong{color:#fff5dc;font-size:13px}.export-dialog>header small{color:var(--subtle);font-size:9px}.export-body{min-height:0;padding:18px;overflow-y:auto;scrollbar-color:#504c41 transparent;scrollbar-width:thin}.export-background-options{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 13px;background:#151512;border:1px solid #33312a;border-radius:5px}.export-background-options>div:first-child{display:grid;gap:4px}.export-background-options strong{color:#ddd5c2;font-size:10px}.export-background-options small{color:var(--subtle);font-size:8px}.export-background-options [role=radiogroup]{display:flex;border:1px solid #403d35;border-radius:4px;overflow:hidden}.export-background-options label{position:relative;min-width:82px;padding:8px 10px;color:#969084;font-size:9px;text-align:center;background:#1b1b18;border-right:1px solid #403d35;cursor:pointer}.export-background-options label:last-child{border-right:0}.export-background-options label.is-active{color:#fff4d7;background:#302a20;box-shadow:inset 0 -2px var(--gold)}.export-background-options input{position:absolute;opacity:0}.export-option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.export-option-list>button{display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:9px;min-height:74px;padding:11px 12px;color:#c8c0ad;text-align:left;background:#171714;border:1px solid #39362f;border-radius:5px;cursor:pointer}.export-option-list>button:hover,.export-option-list>button:focus-visible{color:#fff4d7;background:#211f19;border-color:#756747}.export-option-list>button:disabled{cursor:wait;opacity:.5}.export-option-list>button>span{display:grid;gap:5px;min-width:0}.export-option-list strong{font-size:10px}.export-option-list small{color:var(--subtle);font-size:8px;line-height:1.45}.export-status{min-height:18px;margin:12px 2px 0;color:#8f9b91;font-size:8px;line-height:1.5}.export-status.is-error{color:#e49b8f}.local-library-confirm-layer{position:fixed;inset:0;z-index:4;display:grid;place-items:center;padding:24px}.local-library-confirm-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;background:#050504d1;border:0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.local-library-confirm{position:relative;z-index:1;display:grid;grid-template-rows:58px minmax(0,1fr) 58px;width:min(540px,94vw);max-height:min(620px,92vh);overflow:hidden;color:#c9c1af;background:#191916;border:1px solid #69604a;border-radius:6px;box-shadow:0 26px 80px #000000b8}.local-library-confirm>header,.local-library-confirm>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px}.local-library-confirm>header{border-bottom:1px solid var(--border)}.local-library-confirm>header>div{display:flex;align-items:center;gap:10px}.local-library-confirm>header>div>div{display:grid;gap:3px}.local-library-confirm>header strong{color:#fff5dc;font-size:13px}.local-library-confirm>header small{color:var(--subtle);font-size:9px}.local-library-confirm-body{min-height:0;padding:20px 22px;overflow-y:auto;font-size:10px;line-height:1.75;scrollbar-color:#504c41 transparent;scrollbar-width:thin}.local-library-confirm-body>strong{color:#efe4c9;font-size:12px}.local-library-confirm-body p{margin:9px 0 0}.local-library-confirm-body ul{display:grid;gap:5px;margin:12px 0 0;padding-left:18px;color:#aaa293}.local-library-confirm-warning{padding-top:10px;color:#d5bd75;border-top:1px solid #3c382e}.local-library-confirm-warning strong{color:#f2d481}.local-library-confirm>footer{justify-content:flex-end;border-top:1px solid var(--border)}.local-library-confirm>footer button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:31px;padding:0 13px;color:#aca596;font-size:9px;background:#20201c;border:1px solid #454137;border-radius:4px;cursor:pointer}.local-library-confirm>footer button:hover,.local-library-confirm>footer button:focus-visible{color:#fff4d7;border-color:#756747}.local-library-confirm>footer .primary-action{color:#17150f;background:#d2b866;border-color:#e4cb78}.settings-body{min-height:0;padding:18px;overflow-y:auto;scrollbar-color:#504c41 transparent;scrollbar-width:thin}.settings-body>section{padding:15px;background:#151512;border:1px solid #33312a;border-radius:5px}.settings-body>section+section{margin-top:12px}.settings-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.settings-section-title strong{color:#ded6c3;font-size:11px}.settings-section-title code{color:var(--subtle);font-size:9px}.highlight-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.highlight-palette-grid>button{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:9px;min-height:42px;padding:6px 9px;color:#bdb6a6;text-align:left;background:#1d1d19;border:1px solid #3b3931;border-radius:4px;cursor:pointer}.highlight-palette-grid>button:hover{color:#f2ead8;border-color:#706a5c}.highlight-palette-grid>button.is-active{color:#fff;background:color-mix(in srgb,var(--highlight-selected) 8%,#1d1d19);border-color:var(--highlight-selected);box-shadow:inset 3px 0 var(--highlight-selected)}.highlight-palette-grid>button>span{display:flex;align-items:center}.highlight-palette-grid i{width:20px;height:20px;border:2px solid #191916;border-radius:50%;box-shadow:0 0 0 1px #4a473e}.highlight-palette-grid i+i{margin-left:-6px}.highlight-palette-grid strong{overflow:hidden;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.highlight-color-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.highlight-color-fields>label{display:grid;gap:6px;padding:8px 9px;color:var(--subtle);font-size:9px;background:#1b1b18;border:1px solid #33312a;border-radius:4px}.highlight-color-fields>label>div{display:flex;align-items:center;gap:8px}.highlight-color-fields input[type=color]{width:32px;height:26px;padding:2px;background:#11110f;border:1px solid #4b483e;border-radius:3px;cursor:pointer}.highlight-color-fields code{color:#d6cebb;font-size:9px}.pane-layout-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #403d35;border-radius:4px;overflow:hidden}.pane-ratio-control{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:9px;margin-bottom:10px;color:var(--subtle);font-size:8px}.pane-ratio-control input{width:100%;accent-color:var(--highlight-selected);cursor:ew-resize}.pane-layout-presets>button{min-height:34px;padding:0 7px;color:#9f998c;font-size:10px;background:#1b1b18;border:0;border-right:1px solid #403d35;cursor:pointer}.pane-layout-presets>button:last-child{border-right:0}.pane-layout-presets>button:hover,.pane-layout-presets>button.is-active{color:#fff;background:color-mix(in srgb,var(--highlight-selected) 11%,#1b1b18)}.pane-layout-presets>button.is-active{box-shadow:inset 0 -2px var(--highlight-selected)}.sidebar-width-controls{display:grid;gap:10px}.sidebar-width-controls label{display:grid;grid-template-columns:78px minmax(100px,1fr) 46px;align-items:center;gap:8px;color:#9f998c;font-size:8px}.sidebar-width-controls input{width:100%;accent-color:var(--highlight-selected);cursor:ew-resize}.sidebar-width-controls output{color:#d3c8ae;font:8px Consolas,monospace;text-align:right}.settings-dialog>footer{border-top:1px solid var(--border)}.settings-dialog>footer>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 12px;color:#bbb4a4;font-size:10px;background:#24231e;border:1px solid #49453b;border-radius:4px;cursor:pointer}.settings-dialog>footer>button:hover{color:#fff5dc;border-color:#756b57}.generator-submit{display:flex;align-items:center;gap:12px}.generator-submit>label{display:flex;align-items:center;gap:6px;color:#c9c1af;font-size:8px;white-space:nowrap;cursor:pointer}.generator-submit>label.is-disabled{color:#777269;cursor:not-allowed}.generator-submit input,.library-settings input,.asset-alias-row>input{accent-color:var(--highlight-selected)}.generator-body{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(310px,.92fr);min-height:0;overflow:auto}.generator-input,.parse-preview{padding:18px}.generator-input{border-right:1px solid var(--border)}.generator-input textarea{min-height:260px;font-size:13px;line-height:1.8}.generator-json-dropzone{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;margin-top:10px;padding:10px;color:#9fa89f;background:#131713;border:1px dashed #4d5a50;transition:border-color .12s ease,background .12s ease}.generator-json-dropzone.is-dragging{color:#e9deb0;background:#20281f;border-color:#d2b85e}.generator-json-dropzone>div{display:grid;min-width:0;gap:2px}.generator-json-dropzone strong{color:#d9d4c7;font-size:9px}.generator-json-dropzone small{color:#777d76;font-size:8px;line-height:1.45}.generator-json-dropzone button{min-height:27px;padding:0 8px;color:#d9c67e;font-size:8px;background:#22251f;border:1px solid #555747;cursor:pointer}.generator-json-error{margin:7px 0 0;padding:7px 8px;color:#efaaa2;font-size:9px;line-height:1.45;background:#2b1917;border-left:2px solid #d26d63}.generator-json-error.is-success{color:#a9d8c4;background:#14231d;border-left-color:#62b99b}.example-list{display:flex;gap:6px;margin-top:10px}.example-list button{height:28px;padding:0 9px;color:#c8c0ad;font-size:10px;background:#25231e;border:1px solid #454137;border-radius:3px;cursor:pointer}.example-list button:hover{color:#fff3d4;border-color:#806b45}.parse-preview{min-width:0;background:#151513}.parse-summary{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--border-soft)}.parse-summary .affinity-swatches{display:flex;flex-wrap:wrap;gap:2px}.parse-summary .affinity-swatches .color-proof-swatch{width:18px;height:18px}.parse-summary>div{display:grid;gap:4px}.parse-summary strong{color:#f5eddb;font-size:15px}.parse-summary small{color:var(--muted);font-size:9px}.parse-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:12px 0;background:var(--border-soft);border:1px solid var(--border-soft)}.parse-metrics span{display:grid;gap:3px;padding:7px;color:var(--subtle);font-size:8px;background:#191916}.parse-metrics strong{overflow:hidden;color:#d6ceba;font-family:Consolas,Microsoft YaHei UI,sans-serif;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.parse-actions h3,.parse-evidence h3{margin:14px 0 7px;color:#a9a294;font-size:9px}.parse-actions>div{display:grid;grid-template-columns:minmax(90px,1fr) 72px;gap:4px 8px;padding:7px 0;border-top:1px solid #292823}.parse-actions code{overflow:hidden;color:#e1bd73;font:9px Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.parse-actions span{color:#d0c9b7;font-size:9px;text-align:right}.parse-actions small{grid-column:1 / -1;color:var(--subtle);font-size:8px}.parse-actions p{color:var(--subtle);font-size:9px;line-height:1.55}.parse-evidence{display:flex;flex-wrap:wrap;gap:5px}.parse-evidence h3{width:100%}.parse-evidence span{padding:4px 5px;color:#bdb7aa;font-size:8px;background:#20201c;border:1px solid #37352e;border-radius:2px}.parse-evidence code{margin-right:5px;color:#75bfd0;font:8px Consolas,monospace}.parse-warnings{display:grid;gap:5px;margin-top:12px;padding:9px;color:#d0ae98;font-size:8px;line-height:1.55;background:#29211c;border-left:2px solid var(--danger)}.primary-action{display:flex;align-items:center;gap:7px;height:34px;padding:0 13px;color:#211a0d;font-size:11px;font-weight:700;background:#e8b65f;border:1px solid #ffd68c;border-radius:4px;cursor:pointer}.primary-action:disabled{opacity:.45;cursor:not-allowed}.comparison-picker-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px}.comparison-picker-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;background:#040403b8;border:0;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.comparison-picker{position:relative;z-index:1;display:grid;grid-template-rows:56px 52px minmax(0,1fr);width:min(520px,94vw);max-height:min(650px,88vh);overflow:hidden;background:#191916;border:1px solid #575145;border-radius:6px;box-shadow:0 22px 70px #0000009e}.comparison-picker>header{display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;border-bottom:1px solid var(--border)}.comparison-picker>header>div:first-child{display:flex;align-items:center;gap:9px}.comparison-picker>header>div:first-child>div{display:grid;gap:2px}.comparison-picker header strong{color:#f4eddb;font-size:12px}.comparison-picker header small{color:var(--subtle);font-size:9px}.comparison-search{display:flex;align-items:center;gap:8px;margin:9px 12px;padding:0 10px;color:#827d71;background:#121210;border:1px solid #3e3b34}.comparison-search:focus-within{border-color:var(--highlight-selected)}.comparison-search input{width:100%;min-width:0;height:32px;color:#eee7d7;background:transparent;border:0;outline:0}.comparison-record-list{min-height:0;padding:6px 12px 14px;overflow:auto}.comparison-record-list>button{display:grid;grid-template-columns:26px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;min-height:54px;padding:7px 10px;text-align:left;background:#171714;border:1px solid transparent;border-bottom-color:#302e28;cursor:pointer}.comparison-record-list>button:hover,.comparison-record-list>button:focus-visible{background:#22211c;border-color:#595246;outline:0}.comparison-record-list>button>span:nth-child(2){display:grid;gap:4px;min-width:0}.comparison-record-list strong{overflow:hidden;color:#f0eadb;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.comparison-record-list small{overflow:hidden;color:#8c887f;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.comparison-record-list>p{color:#8c887f;font-size:11px;text-align:center}.comparison-window{position:fixed;display:grid;grid-template-rows:44px minmax(0,1fr);min-width:280px;min-height:220px;overflow:hidden;resize:both;background:#0c0d0c;border:1px solid #5c5548;border-radius:5px;box-shadow:0 14px 42px #00000094}.comparison-window.is-view-linked{border-color:color-mix(in srgb,var(--highlight-selected) 72%,#5c5548);box-shadow:0 14px 42px #0000009e,0 0 0 1px color-mix(in srgb,var(--highlight-selected) 30%,transparent)}.comparison-window-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 7px 0 9px;background:#1a1a16;border-bottom:1px solid #454139;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.comparison-window-header>div{display:flex;align-items:center;min-width:0}.comparison-window-header>div:first-child{gap:6px}.comparison-window-header>div:first-child>span{display:grid;gap:1px;min-width:0}.comparison-window-header strong{overflow:hidden;color:#f2ebd9;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.comparison-window-header small{overflow:hidden;color:#817d73;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.comparison-window-header>div:last-child{gap:2px;flex:none}.comparison-window-header .icon-button{width:28px;height:28px}.comparison-canvas{position:relative;min-width:0;min-height:0;overflow:hidden;background:#080908}.comparison-canvas canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.comparison-view-controls{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;gap:2px;padding:3px;background:#141411e6;border:1px solid #474239}.comparison-view-controls>button:not(.icon-button){width:25px;height:24px;padding:0;color:#918b7e;font-size:9px;background:transparent;border:1px solid transparent;cursor:pointer}.comparison-view-controls>button:not(.icon-button):hover,.comparison-view-controls>button:not(.icon-button).is-active{color:#fff5dc;background:#343129;border-color:#625b4c}.comparison-view-controls .icon-button{width:25px;height:24px}.comparison-link-status{position:absolute;top:8px;left:8px;display:flex;align-items:center;gap:4px;padding:4px 6px;color:var(--highlight-selected);font-size:8px;background:#0c1210db;border:1px solid color-mix(in srgb,var(--highlight-selected) 48%,#3f433d);pointer-events:none}body.is-moving-comparison-window,body.is-moving-comparison-window *{cursor:move!important;-webkit-user-select:none!important;user-select:none!important}.library-overlay{position:fixed;inset:58px 0 54px;z-index:80;pointer-events:none}.library-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;background:#00000075;border:0;pointer-events:auto}.library-panel{position:relative;z-index:2;display:grid;grid-template-rows:58px 46px minmax(0,1fr);width:min(590px,94vw);height:100%;background:#191916;border-right:1px solid #4b473c;box-shadow:16px 0 38px #0000006b;pointer-events:auto}.library-panel>header{display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;border-bottom:1px solid var(--border)}.library-panel>header>div{display:flex;align-items:center;gap:9px}.library-panel header div div{display:grid;gap:2px}.library-panel header strong{color:#f4eddb;font-size:13px}.library-panel header small{color:var(--subtle);font-size:9px}.library-scroll{min-height:0;overflow:auto}.library-search{display:grid;grid-template-columns:18px minmax(0,1fr) 104px auto 28px;align-items:center;gap:7px;padding:7px 12px 7px 16px;background:#151512;border-bottom:1px solid var(--border)}.library-search>svg{color:#777166}.library-search input,.library-search select{min-width:0;height:30px;padding:0 8px;color:#ded6c3;font-size:9px;background:#0f0f0d;border:1px solid #403d35;border-radius:3px;outline:0}.library-search input:focus,.library-search select:focus{border-color:var(--highlight-selected)}.library-search>span{color:#918a7c;font:8px Consolas,monospace;white-space:nowrap}.library-search .icon-button{width:28px;height:28px}.library-search-empty{display:grid;justify-items:center;gap:5px;padding:24px 16px;color:#777166;text-align:center;border-bottom:1px solid var(--border-soft)}.library-search-empty strong{color:#c7bfad;font-size:10px}.library-search-empty small{color:var(--subtle);font-size:8px}.builtin-migration-notice{margin:-6px 17px 12px;padding:8px 9px;color:#b8a77e;font-size:8px;line-height:1.5;background:#211f19;border:1px solid #494230}.library-settings{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 17px;background:#20201c;border-bottom:1px solid var(--border-soft)}.library-settings>div,.library-settings>label{display:flex;align-items:center;gap:8px}.library-settings>div>div{display:grid;gap:2px}.library-settings strong{color:#ded7c6;font-size:10px}.library-settings small,.library-settings label{color:var(--subtle);font-size:8px}.library-section{padding:15px 10px;border-bottom:1px solid var(--border-soft)}.library-section h3{display:flex;justify-content:space-between;margin:0 7px 9px;color:#a7a194;font-size:10px;font-weight:600}.library-section h3 span{color:var(--subtle);font-family:Consolas,monospace}.library-item{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;min-height:52px;border:1px solid transparent}.library-item.is-current{background:#25231e;border-color:#4d4638}.library-item>button:first-child{display:grid;grid-template-columns:9px minmax(0,1fr) 16px;align-items:center;gap:9px;min-width:0;height:50px;padding:6px 8px;color:inherit;text-align:left;background:transparent;border:0;cursor:pointer}.library-item>button:first-child:hover{background:#23221d}.library-item>button div{display:grid;gap:4px;min-width:0}.library-item strong,.library-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-item strong{color:#e7e0ce;font-size:11px}.library-item small{color:var(--subtle);font-size:9px}.library-empty{margin:0;padding:12px 8px;color:var(--subtle);font-size:10px}.component-asset-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:start;gap:9px;padding:10px 7px;border-top:1px solid var(--border-soft)}.component-asset-item[draggable=true]{cursor:grab}.component-asset-item[title]{transition:background .12s ease,border-color .12s ease}.component-asset-item[title]:hover{background:#1d1d19}.component-asset-item.is-dragging{opacity:.36}.component-asset-item>div{display:grid;gap:3px;min-width:0}.component-asset-item strong{color:#ded7c6;font-size:10px}.component-asset-item code{color:#bcae8e;font-family:Consolas,monospace;font-size:8px;overflow-wrap:anywhere}.component-asset-item small{color:var(--subtle);font-size:8px;line-height:1.45}.asset-group-library{padding-right:0;padding-left:0}.asset-group-toolbar{display:grid;gap:9px;padding:0 17px 13px}.asset-group-toolbar>div:first-child{display:grid;gap:3px}.asset-group-toolbar h3{margin:0}.asset-group-toolbar small{color:var(--subtle);font-size:8px}.asset-group-create{display:grid;grid-template-columns:minmax(120px,1fr) 112px 30px;gap:6px}.asset-group-create input,.asset-group-create select,.asset-group>header select,.asset-item-actions select{min-width:0;height:29px;padding:0 7px;color:#d8d0bd;font-size:9px;background:#171714;border:1px solid #47443b;border-radius:3px;outline:0}.asset-group-create input:focus,.asset-group-create select:focus,.asset-group>header select:focus,.asset-item-actions select:focus{border-color:var(--highlight-selected)}.asset-group-create .icon-button{width:29px;height:29px;border-color:#47443b}.asset-group{border-top:1px solid #3a382f;transition:background .12s ease,box-shadow .12s ease}.asset-group.is-drop-target{background:color-mix(in srgb,var(--highlight-selected) 7%,#191916);box-shadow:inset 4px 0 var(--highlight-selected)}.asset-group>header{display:grid;grid-template-columns:minmax(0,1fr) 118px;align-items:center;gap:10px;min-height:55px;padding:8px 17px;background:#20201c;border-bottom:1px solid #302f29}.asset-group>header>div{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:7px;min-width:0}.asset-group>header strong{color:#e5ddca;font-size:10px}.asset-group>header span{color:var(--highlight-selected);font-family:Consolas,monospace;font-size:8px}.asset-group>header small{grid-column:1 / -1;overflow:hidden;color:#817c72;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.asset-group-empty{margin:0;padding:13px 17px;color:#6f6b62;font-size:9px;border-bottom:1px dashed #302f29}.asset-group .component-asset-item{padding-right:17px;padding-left:17px}.asset-item-actions{display:grid;justify-items:end;gap:6px;width:112px;color:#777166}.asset-item-actions .icon-button{width:27px;height:25px;border-color:#403d35}.asset-item-actions select{width:112px}.asset-item-actions>svg{justify-self:center}.asset-aliases{margin-top:4px;border-top:1px solid #302f29}.component-preview-overlay{position:fixed;inset:58px 0 54px;z-index:90;display:grid;place-items:center;pointer-events:auto}.component-preview-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;background:#0000008a;border:0}.component-preview-window{position:relative;z-index:1;display:grid;grid-template-rows:52px 250px minmax(0,1fr);width:min(520px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 140px));overflow:hidden;background:#191916;border:1px solid #575143;border-radius:5px;box-shadow:0 22px 68px #00000094}.component-preview-window>header{display:flex;align-items:center;justify-content:space-between;padding:0 11px 0 15px;background:#20201c;border-bottom:1px solid #454138}.component-preview-window>header>div{display:flex;align-items:center;gap:9px}.component-preview-window>header span{display:grid;gap:2px}.component-preview-window>header strong{color:#eee6d3;font-size:11px}.component-preview-window>header small{color:#8c8578;font:8px Consolas,monospace}.component-preview-stage{position:relative;min-height:0;background:#10100e;border-bottom:1px solid #37342d}.component-preview-stage canvas{display:block;width:100%!important;height:100%!important}.component-preview-stage>span{position:absolute;right:8px;bottom:7px;padding:4px 6px;color:#8f887a;font-size:8px;background:#11110fdb;border:1px solid #3c3931;pointer-events:none}.component-preview-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;min-height:0;overflow-y:auto;background:#353229}.component-preview-details>div{display:grid;align-content:start;gap:4px;padding:10px 12px;background:#181815}.component-preview-details>div.is-wide{grid-column:1 / -1}.component-preview-details span{color:#777166;font-size:8px}.component-preview-details strong,.component-preview-details code{color:#d8d0bd;font-size:9px;font-weight:500}.component-preview-details p{margin:0;color:#aaa294;font-size:8px;line-height:1.55}.asset-aliases>summary{display:flex;align-items:center;justify-content:space-between;padding:6px 0 3px;color:#aaa394;font-size:8px;cursor:pointer}.asset-alias-body{display:grid;gap:5px;padding:5px 0 3px}.canonical-phrase{padding:5px 6px;background:#20201c;border-left:2px solid #625b4c}.alias-empty{padding:4px 0}.asset-alias-row{display:grid;grid-template-columns:15px minmax(0,1fr) 28px 28px;align-items:center;gap:5px;min-height:31px}.asset-alias-row.is-disabled{opacity:.55}.asset-alias-row>div{display:grid;gap:2px;min-width:0}.asset-alias-row span{overflow:hidden;color:#d8d0bd;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.alias-edit-input,.asset-alias-add input{min-width:0;height:27px;padding:0 7px;color:#e5ddca;font-size:9px;background:#171714;border:1px solid #48443a;border-radius:2px;outline:none}.alias-edit-input:focus,.asset-alias-add input:focus{border-color:#9c7e45}.asset-alias-add{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:6px;margin-top:3px}.asset-policy{padding:3px 4px;font-size:8px;text-align:center;border:1px solid var(--border);border-radius:2px}.asset-policy.required{color:#ffb2a7;background:#2b1d1a;border-color:#684038}.asset-policy.none{color:#c6c0b2;background:#23221e}.tree-node{grid-template-columns:8px 14px minmax(0,1fr) auto 13px}.tree-node>span:nth-of-type(3){overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.asset-origin-mark{display:grid;place-items:center;width:14px;height:14px;color:#7ed8d2}.generated-asset-symbol{filter:drop-shadow(0 0 4px rgba(126,216,210,.55))}.tier-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:16px;padding:0 4px;font-style:normal;font-size:8px;border:1px solid #49463d;border-radius:2px}.tier-badge.core,.tier-text.core{color:#f0c878}.tier-badge.safeguard,.tier-text.safeguard{color:#82c9d1}.tier-badge.redundant,.tier-text.redundant{color:#aaa397}.tree-node-row.tier-safeguard{border-left:1px solid rgba(130,201,209,.3)}.tree-node-row.tier-redundant{opacity:.8}.asset-origin.synthesized{color:#7ed8d2}.asset-origin.library{color:#c4bda9}.asset-origin.user{color:#d8a8ee}.asset-reuse-score{color:#7ed8d2}.layout-editor .field input[type=range]{width:100%;accent-color:#d9b768}.layout-editor .field output{color:#d7c89f;font:9px var(--mono)}.quantity-track-explainer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin:8px 0;padding:9px;background:#151d1d;border:1px solid #354849}.quantity-track-explainer>strong,.quantity-track-explainer>code{grid-column:1 / -1;color:#a9d8d5;font-size:9px}.quantity-track-explainer>span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:8px}.quantity-track-explainer .track{display:inline-block;width:20px;height:3px;background:#76c8c4}.quantity-track-explainer .track.exponent{background:#8fcbff}.quantity-track-explainer .track.unit{background:#d6f7f4}.quantity-track-explainer .track.status{background:#6ff0b1}.quantity-track-explainer .track.status.defaulted{background:#f0bd68}.quantity-track-explainer .track.status.unknown{background:repeating-linear-gradient(90deg,#f17878 0 3px,transparent 3px 6px)}.quantity-track-explainer .track.checksum{background:#f7e4a7}.clarify-action{display:inline-flex;align-items:center;gap:6px;margin-top:9px;padding:6px 8px;color:#e5d3a7;font-size:9px;background:#2a271f;border:1px solid #5a503d;border-radius:3px;cursor:pointer}.drag-hint{position:absolute;right:18px;bottom:94px;display:flex;align-items:center;gap:6px;padding:7px 9px;color:#e8dbbb;font-size:9px;background:#1e1c17eb;border:1px solid #665a43;border-radius:3px;pointer-events:none}.parse-actions>div.is-synthesized{position:relative;padding-left:18px;border-left:1px solid #4c8e8a}.parse-actions>div.is-synthesized>svg{position:absolute;top:9px;left:2px;color:#7ed8d2}.parse-actions>div.is-reused{position:relative;padding-left:18px;border-left:1px solid #69a99f}.parse-actions>div.is-reused>svg{position:absolute;top:9px;left:2px;color:#7ed8d2}.description-analysis{display:grid;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid #3d3a31}.analysis-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.analysis-title h3{margin:0;color:#d8c28e;font-size:10px}.analysis-title span{color:var(--subtle);font-size:8px}.clause-analysis{display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px 8px;padding:8px;background:#1b1b18;border-left:2px solid #4f746f}.clause-analysis.is-unresolved{border-left-color:#9a7044}.clause-analysis.is-exclusion{border-left-color:#76515a}.clause-analysis>code{color:#75bfd0;font:8px Consolas,monospace}.clause-analysis>p{margin:0;color:#d6ceba;font-size:9px;line-height:1.55}.clause-analysis>div,.semantic-source{grid-column:2}.clause-analysis>div{display:flex;flex-wrap:wrap;gap:4px}.clause-analysis>div>span{padding:3px 5px;color:#aaa396;font-size:8px;background:#24231f;border:1px solid #34322c}.clause-analysis>div>.action-tag{color:#e1bd73}.clause-analysis>div>.asset-match-tag{color:#7ed8d2;border-color:#356662}.clause-analysis>div>.excluded-tag{color:#d49ca7}.clause-analysis>div>.unresolved-tag{color:#e0b878}.semantic-source{color:#718f89;font-size:8px;line-height:1.45}.action-correction-panel{margin-top:14px;border:1px solid #494238;background:#191815}.action-correction-panel>button{display:grid;grid-template-columns:18px minmax(0,1fr) 16px;align-items:center;gap:7px;width:100%;padding:9px;color:#d8c28e;text-align:left;background:#211f1a;border:0;cursor:pointer}.action-correction-panel>button>span{display:grid;gap:2px}.action-correction-panel>button strong{font-size:10px}.action-correction-panel>button small{color:var(--subtle);font-size:8px}.action-correction-panel>button>svg:last-child{transition:transform .12s ease}.action-correction-panel>button.is-open>svg:last-child{transform:rotate(90deg)}.action-correction-list{max-height:330px;padding:0 9px;overflow:auto}.clarification-options .correction-reset{display:inline-flex;align-items:center;gap:4px;color:#c6a6a0;border-color:#684d49}.clarification-panel{margin-top:14px;padding-top:12px;border-top:1px solid #3d3a31}.clarification-panel>h3{display:flex;align-items:center;gap:6px;margin:0;color:#d8c28e;font-size:10px}.clarification-panel>p{margin:5px 0 10px;color:var(--subtle);font-size:8px}.clarification-question{display:grid;gap:5px;padding:9px 0;border-top:1px solid #292823}.clarification-question>strong{color:#ded7c7;font-size:9px}.clarification-question>small{color:var(--subtle);font-size:8px;line-height:1.45}.clarification-question>div{display:flex;flex-wrap:wrap;gap:5px}.clarification-question button{padding:5px 7px;color:#bbb4a4;font-size:8px;background:#22211d;border:1px solid #403d35;border-radius:2px;cursor:pointer}.clarification-question button.is-selected{color:#fff;background:color-mix(in srgb,var(--highlight-selected) 13%,#22211d);border-color:var(--highlight-selected)}.clarification-options .manual-asset-toggle{display:grid;place-items:center;width:27px;min-width:27px;padding:0}.clarification-question>.manual-asset-search{display:grid;gap:7px;padding:8px;background:#1d1d19;border:1px solid #3b3931}.manual-asset-search>label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:6px;color:#9b9485}.manual-asset-search input{min-width:0;height:28px;padding:0 8px;color:#e8dfca;font-size:9px;background:#151512;border:1px solid #4a463b;border-radius:2px;outline:none}.manual-asset-search input:focus{border-color:#9c7e45}.clarification-question .manual-asset-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:190px;overflow:auto}.manual-asset-results>button{display:grid;gap:2px;min-width:0;text-align:left}.manual-asset-results>button:disabled{opacity:.42;cursor:not-allowed}.manual-asset-results span,.manual-asset-results code,.manual-asset-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-asset-results span{color:#ddd4c0;font-size:9px}.manual-asset-results code,.manual-asset-results small{color:var(--subtle);font-size:7px}.clarification-question>.clarification-selection{padding:6px 7px;color:#cfc7b7;background:#24231e;border-left:2px solid var(--highlight-selected)}.clarification-selection b{color:#f0dfb7;font-weight:600}.component-asset-item strong{display:flex;align-items:center;justify-content:space-between;gap:8px}.generated-library-symbol{display:grid;place-items:center;width:28px;height:28px;color:#7ed8d2;background:#172523;border:1px solid #355d59}.synthesized-assets{border-left:2px solid #4c8e8a}.asset-register-action{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 8px;color:#cde8e5;background:#182725;border:1px solid #3d6965;border-radius:3px;font-size:9px;white-space:nowrap}.asset-register-action:hover:not(:disabled){background:#203633;border-color:#58948e}.asset-register-action:disabled{color:#777f7c;background:#1b1d1c;border-color:#333735}.asset-register-action.is-danger{color:#e0b6ae;background:#2a1c1a;border-color:#67413b}.asset-register-action.is-danger:hover{color:#f0cec7;background:#3a2421;border-color:#925c52}.timeline{grid-column:1 / -1;grid-row:3;display:grid;grid-template-columns:70px minmax(150px,220px) minmax(140px,1fr) auto minmax(176px,auto);align-items:center;gap:12px;padding:0 15px;background:#171714;border-top:1px solid var(--border);z-index:20}.timeline-controls{display:flex;align-items:center;gap:7px}.timeline-play,.timeline-stop{display:grid;place-items:center;width:28px;height:28px;color:#f6e9ca;background:#2c2922;border:1px solid #4b463a;border-radius:50%;cursor:pointer}.timeline-stop{width:25px;height:25px;color:#aaa397;background:#211f1b;border-radius:4px}.timeline-stop:hover,.timeline-stop:focus-visible{color:var(--highlight-casting);border-color:var(--highlight-casting)}.timeline-track{position:relative;height:16px}.timeline-track>input{position:absolute;inset:0;z-index:3;width:100%;height:16px;margin:0;cursor:pointer;opacity:0}.timeline-track:focus-within:before{height:2px;background:color-mix(in srgb,var(--highlight-casting) 72%,#47443c);box-shadow:0 0 8px color-mix(in srgb,var(--highlight-casting) 38%,transparent)}.timeline-track:before{position:absolute;top:7px;right:0;left:0;height:1px;content:"";background:#47443c}.timeline-track span{position:absolute;top:5px;left:0;height:5px;background:var(--highlight-casting);transform-origin:left}.timeline-track i{position:absolute;top:3px;width:9px;height:9px;background:var(--highlight-casting);border-radius:50%;box-shadow:0 0 10px #ffe9b5a6;transform:translate(-50%)}.timeline-track i.is-hidden{display:none}.timeline-track>button{position:absolute;top:4px;width:7px;height:7px;padding:0;background:#686257;border:1px solid #171714;border-radius:50%;cursor:pointer;transform:translate(-50%);z-index:4}.timeline-track>button.is-active{background:var(--highlight-casting);box-shadow:0 0 7px color-mix(in srgb,var(--highlight-casting) 60%,transparent)}.timeline-readout{display:grid;gap:2px;min-width:0}.timeline-readout strong,.timeline-readout small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-readout strong{color:#ddd3bd;font-size:9px}.timeline-readout small{color:#777268;font-size:8px}.playback-speed{display:flex;padding:2px;background:#121210;border:1px solid #38362f}.playback-speed button{min-width:34px;height:23px;padding:0 5px;color:#817d73;font:8px Consolas,monospace;background:transparent;border:0;cursor:pointer}.playback-speed button.is-active{color:#fff4d7;background:#302a20;box-shadow:inset 0 -2px var(--gold)}.timeline-dynamics{display:grid;grid-template-columns:auto auto;gap:2px 10px;min-width:0;color:#777d73;font:8px Consolas,monospace}.timeline-dynamics span{white-space:nowrap}.timeline-dynamics strong{grid-column:1 / -1;overflow:hidden;color:var(--highlight-casting);font-size:8px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.app-shell.is-ring-editing{grid-template-columns:1fr}.app-shell.is-ring-editing>.left-panel,.app-shell.is-ring-editing>.right-panel,.app-shell.is-ring-editing>.timeline{display:none}.app-shell.is-ring-editing>.viewport{grid-column:1;grid-row:2 / 4}.app-shell.is-ring-editing .viewport>canvas{width:calc(100% - 440px)!important}.app-shell.is-ring-editing .viewport-title,.app-shell.is-ring-editing .axis-key,.app-shell.is-ring-editing .viewport-actions,.app-shell.is-ring-editing .view-switcher,.app-shell.is-ring-editing .view-presets,.app-shell.is-ring-editing .tier-visibility,.app-shell.is-ring-editing .drag-hint,.app-shell.is-ring-editing .phase-control,.app-shell.is-ring-editing .scene-facts{display:none}.ring-editor-panel{position:absolute;z-index:12;top:0;right:0;bottom:0;display:grid;grid-template-rows:58px minmax(0,1fr) 62px;width:440px;background:#181815;border-left:1px solid #49463d;box-shadow:-18px 0 50px #00000052}.ring-editor-panel>header,.ring-editor-panel>footer{display:flex;align-items:center;gap:9px;padding:0 15px;background:#1d1d19;border-bottom:1px solid var(--border)}.ring-editor-panel>header{justify-content:space-between}.ring-editor-panel>header>div{display:grid;gap:3px}.ring-editor-panel>header strong{color:#fff4d7;font-size:12px}.ring-editor-panel>header small,.ring-editor-panel>footer span{color:var(--subtle);font-size:8px}.ring-editor-panel>header button{display:grid;place-items:center;width:30px;height:30px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:3px;cursor:pointer}.ring-editor-panel>header button:hover{color:#fff;border-color:var(--border)}.ring-editor-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-color:#504c41 transparent;scrollbar-width:thin}.ring-editor-section{padding:14px 15px 16px;border-bottom:1px solid var(--border-soft)}.ring-editor-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.ring-editor-section-title strong{color:#ded6c3;font-size:11px}.ring-editor-section-title small{color:var(--subtle);font-size:8px}.ring-editor-semantic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid #34322b;border-radius:3px;background:#34322b}.ring-editor-semantic-grid>div{display:grid;gap:4px;min-width:0;padding:8px;background:#151512}.ring-editor-semantic-grid span{color:var(--subtle);font-size:8px}.ring-editor-semantic-grid code,.ring-editor-semantic-grid strong{overflow:hidden;color:#d4ccb9;font-size:9px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ring-editor-attachment{display:grid;gap:4px;margin:9px 0 0;color:#9f9888;font-size:8px;line-height:1.5}.ring-editor-attachment strong{color:#cec5b1;font-weight:600}.ring-form-description{display:flex;gap:7px;margin:9px 0 0;color:#948e80;font-size:8px;line-height:1.45}.ring-form-description strong{flex:none;color:#d5c9aa;font-weight:600}.ring-editor-section-title button,.texture-editor-actions button,.ring-editor-panel>footer button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:0 9px;color:#c8c0ad;font-size:9px;background:#22211c;border:1px solid #464238;border-radius:3px;cursor:pointer}.ring-editor-section-title button:hover,.texture-editor-actions button:hover,.ring-editor-panel>footer button:hover{color:#fff5db;border-color:#7d6b47}.texture-editor-actions button:disabled{cursor:default;opacity:.38}.ring-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ring-editor-grid label,.ring-description-field,.texture-library-select{display:grid;gap:5px;min-width:0}.ring-editor-grid label>span,.ring-description-field>span,.texture-library-select>span,.texture-parameters label>span{color:var(--muted);font-size:9px}.ring-editor-grid input,.ring-editor-grid select,.ring-description-field textarea,.texture-library-select select,.texture-library-select input,.texture-parameters input[type=number]{width:100%;min-width:0;height:31px;padding:0 8px;color:var(--text);background:#11110f;border:1px solid #3d3a32;border-radius:3px;outline:none}.ring-editor-grid input:focus,.ring-editor-grid select:focus,.ring-description-field textarea:focus,.texture-library-select select:focus,.texture-library-select input:focus,.texture-parameters input:focus{border-color:var(--highlight-selected)}.ring-color-field{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:7px}.ring-color-field input[type=color]{height:31px;padding:3px}.ring-color-field code{color:#cfc5ae;font-size:9px}.ring-description-field{margin-top:11px}.ring-description-field textarea{height:76px;padding:8px;line-height:1.55;resize:vertical}.texture-library-select{margin-bottom:10px}.texture-dropzone{display:grid;place-items:center;min-height:88px;padding:12px;color:#a9a292;text-align:center;background:#131310;border:1px dashed #565044;border-radius:4px;cursor:pointer}.texture-dropzone:hover{color:#e9ddc3;border-color:var(--highlight-selected)}.texture-dropzone strong{margin-top:5px;font-size:9px}.texture-dropzone small{margin-top:4px;color:var(--subtle);font-size:8px}.texture-dropzone input{position:absolute;width:1px;height:1px;opacity:0}.texture-parameters{display:grid;gap:9px;margin-top:11px}.texture-parameters label:not(.texture-warp-toggle){display:grid;grid-template-columns:76px minmax(0,1fr) 40px;align-items:center;gap:7px}.texture-parameters output{color:#d7c89f;font:9px Consolas,monospace}.texture-parameters input[type=range]{width:100%;accent-color:var(--highlight-selected)}.texture-warp-toggle{display:flex;align-items:center;gap:7px;color:#c9c1ae;font-size:9px}.texture-warp-toggle input{accent-color:var(--highlight-selected)}.texture-crop-meta{display:flex;gap:7px;margin:10px 0 7px}.texture-crop-meta span{padding:4px 6px;color:#878176;font-size:8px;background:#20201c;border:1px solid #34322b}.texture-crop-meta strong{color:#d8c68f;font-family:Consolas,monospace}.texture-crop-canvas{display:block;width:100%;aspect-ratio:640 / 300;background:#11110f;border:1px solid #403d35;border-radius:3px;cursor:grab;touch-action:none}.texture-crop-canvas:active{cursor:grabbing}.texture-editor-message{min-height:16px;margin:7px 0;color:#8fa99f;font-size:8px;line-height:1.5}.texture-editor-actions{display:flex;flex-wrap:wrap;gap:6px}.texture-editor-actions .primary-action,.ring-editor-panel>footer .primary-action{color:#14231e;background:var(--highlight-selected);border-color:var(--highlight-selected)}.ring-editor-panel>footer{justify-content:flex-end;border-top:1px solid var(--border);border-bottom:0}.ring-editor-panel>footer span{margin-right:auto;line-height:1.35}.texture-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 16px 16px}.texture-library-item{display:grid;grid-template-columns:72px minmax(0,1fr) 58px;align-items:center;gap:8px;min-width:0;padding:8px;background:#171714;border:1px solid #35332c;border-radius:4px}.texture-library-item img{width:72px;height:42px;object-fit:cover;background:#0f0f0d;border:1px solid #454138}.texture-library-item>div{display:grid;gap:3px;min-width:0}.texture-library-item strong,.texture-library-item code,.texture-library-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texture-library-item strong{color:#dfd7c5;font-size:9px}.texture-library-item code{color:#84c9c4;font-size:8px}.texture-library-item small{color:var(--subtle);font-size:8px}.texture-library-item>.texture-library-actions{display:flex;justify-content:flex-end;gap:3px}.texture-library-actions .icon-button{width:27px;height:27px;border-color:#403d35}@media(max-width:1100px){.app-shell{grid-template-columns:min(var(--left-sidebar-width, 294px),32vw) minmax(340px,1fr) min(var(--right-sidebar-width, 276px),30vw)}.topbar{grid-template-columns:min(var(--left-sidebar-width, 294px),32vw) 1fr auto}.panel-section{padding-right:12px;padding-left:12px}}@media(max-width:820px){.app-shell{display:grid;grid-template-columns:1fr;grid-template-rows:54px minmax(0,1fr) 48px}.app-shell.is-ring-editing{grid-template-rows:54px minmax(0,1fr)}.app-shell.is-ring-editing>.viewport{grid-row:2}.app-shell.is-ring-editing .viewport>canvas{width:100%!important;height:42%!important}.ring-editor-panel{top:42%;width:100%;border-top:1px solid #49463d;border-left:0;box-shadow:0 -16px 42px #00000061}.texture-library-grid{grid-template-columns:1fr}.topbar{grid-template-columns:minmax(0,1fr) auto}.brand-block{min-width:0;padding:0 9px;border-right:0}.brand-block>.icon-button,.toolbar .icon-button:last-child,.mobile-panel-title{display:grid}.brand-mark{display:none}.brand-block h1{font-size:16px}.brand-block p,.compile-state,.toolbar .icon-button:nth-child(2),.toolbar .icon-button:nth-child(3),.toolbar .icon-button:nth-child(5),.toolbar .icon-button:nth-child(7){display:none}.toolbar{padding-right:8px}.viewport{grid-column:1;grid-row:2}.comparison-window{min-width:250px;min-height:200px}.comparison-picker-overlay{padding:10px}.side-panel{position:fixed;top:54px;bottom:48px;width:min(88vw,340px);transition:transform .18s ease-out;box-shadow:0 12px 30px #0000006b;z-index:40}.left-panel{left:0;grid-template-rows:45px minmax(280px,1fr) minmax(200px,.8fr)!important;transform:translate(-102%)}.pane-resizer,.side-resizer{display:none}.right-panel{right:0;transform:translate(102%)}.side-panel.is-open{transform:translate(0)}.mobile-panel-title{display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:0 10px 0 15px;border-bottom:1px solid var(--border)}.mobile-panel-title strong{font-size:12px}.panel-header{display:none}.viewport-title{top:14px;left:13px}.viewport-title h2{font-size:20px}.view-switcher{top:62px;left:13px}.view-presets{top:101px;left:13px}.axis-key{display:none}.viewport-actions{top:11px;right:11px}.phase-control{right:12px;bottom:72px;width:min(320px,calc(100% - 24px))}.scene-facts{right:12px;bottom:14px;left:12px;max-width:none}.scene-facts>div{min-width:0;flex:1;padding:7px 8px}.measurement-hud{right:12px;bottom:12px;left:12px;width:auto}.measurement-hud.is-collapsed{width:auto;max-height:44px}.measurement-hud.is-expanded{width:auto;max-height:76%}.measurement-layer-list button{grid-template-columns:22px minmax(64px,1fr) 54px 42px}.measurement-validation-grid{grid-template-columns:1fr}.timeline{grid-column:1;grid-row:3;grid-template-columns:64px minmax(0,1fr) auto;gap:8px;padding:0 10px}.timeline-readout,.timeline-dynamics{display:none}.library-overlay{inset:54px 0 48px}.asset-group>header{grid-template-columns:1fr;gap:6px}.asset-group>header select{width:100%}.asset-group .component-asset-item{grid-template-columns:38px minmax(0,1fr)}.asset-item-actions{grid-column:2;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;justify-items:stretch;width:100%}.asset-item-actions select{width:100%}.generator-overlay{padding:10px}.generator-dialog,.settings-dialog{grid-template-rows:52px minmax(0,1fr) 58px;width:100%;max-height:calc(100vh - 20px)}.export-dialog{grid-template-rows:52px minmax(0,1fr);width:100%;max-height:calc(100vh - 20px)}.local-library-confirm-layer{padding:10px}.local-library-confirm{grid-template-rows:52px minmax(0,1fr) auto;width:100%;max-height:calc(100vh - 20px)}.local-library-confirm>footer{padding:10px 12px}.local-library-confirm>footer button{min-height:34px}.export-body{padding:12px}.export-background-options{align-items:stretch;flex-direction:column}.export-background-options [role=radiogroup],.export-option-list{grid-template-columns:1fr;width:100%}.export-background-options label{flex:1}.settings-body{padding:12px}.highlight-palette-grid,.highlight-color-fields{grid-template-columns:1fr}.generator-body{display:block}.generator-input,.parse-preview{padding:14px}.generator-input{border-right:0;border-bottom:1px solid var(--border)}.generator-input textarea{min-height:150px}.parse-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.generator-dialog>footer>span{display:none}.generator-dialog>footer{justify-content:flex-end}}@media(max-width:420px){.toolbar{gap:0}.view-switcher button{padding:0 7px}.scene-facts>div:nth-child(2){display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
