/* 镜序 / optical studio — local WebGL artwork, frosted surfaces, complete day/night palettes. */
html[data-theme]{--radius:18px;--glass-blur:18px;--glass-shine:rgba(255,255,255,.1);--accent-rgb:180,169,255;background:var(--bg);color:var(--text);}
html[data-theme=dark]{--bg:#090e1a;--canvas:#0b1220;--surface:rgba(20,29,47,.88);--raised:#1a2640;--border:rgba(170,190,226,.17);--text:#eaf0fc;--muted:#9baac3;--accent:#b7acfa;--on-accent:#1c2444;--green:#86d7bd;--yellow:#e7c58b;--red:#efa9b5;--panel:rgba(21,31,52,.7);--card:rgba(24,36,59,.74);--control:rgba(10,20,37,.65);--subtle:rgba(153,184,229,.07);--glass-edge:rgba(200,220,255,.19);--deep-shadow:0 18px 50px rgba(0,5,19,.28);--elevated-shadow:0 20px 56px rgba(0,6,25,.36);--frost:linear-gradient(135deg,rgba(194,219,255,.08),rgba(173,153,255,.025));--hero-ink:#f0f5ff;}
html[data-theme=light]{--bg:#eaf0f9;--canvas:#edf3fb;--surface:rgba(250,252,255,.9);--raised:#f7faff;--border:rgba(89,121,164,.2);--text:#263b59;--muted:#566b87;--accent:#6d609f;--on-accent:#fff;--green:#367b68;--yellow:#987339;--red:#b35d72;--panel:rgba(250,252,255,.7);--card:rgba(255,255,255,.69);--control:rgba(255,255,255,.82);--subtle:rgba(124,149,188,.09);--glass-edge:rgba(255,255,255,.94);--deep-shadow:0 16px 44px rgba(82,113,156,.11);--elevated-shadow:0 24px 64px rgba(78,108,155,.18);--frost:linear-gradient(135deg,rgba(255,255,255,.96),rgba(232,239,252,.6));--hero-ink:#263d60;--glass-shine:rgba(255,255,255,.9);}
html[data-theme] body{background:transparent;color:var(--text);}
html[data-theme] body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 21% -25%,rgba(117,143,221,.14),transparent 58%),radial-gradient(ellipse at 94% 30%,rgba(135,114,199,.12),transparent 52%),var(--bg);}
html[data-theme=light] body:before{background:radial-gradient(ellipse at 20% -30%,#d2e4fa,transparent 65%),radial-gradient(ellipse at 98% 24%,#e2dcf3,transparent 58%),linear-gradient(135deg,#f3f7fc,#e9eff8 55%,#e7edf9);}
html[data-theme] :is(h1,h2,h3,h4){color:var(--text);}
html[data-theme] :is(.muted,.small.muted,.page-subtitle,.modal-desc,.setting-row p,.parse-panel p,.shot-card-body p,.project-card-content .muted,.export-layout .small,.job-card p,.outline-card p){color:var(--muted);}
html[data-theme] :is(input,textarea,.custom-select>button){background:var(--control);border-color:var(--border);color:var(--text);box-shadow:inset 0 1px 2px rgba(0,5,25,.03);border-radius:11px;}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:.8;}
html[data-theme] :is(input,textarea):focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(159,148,222,.12),inset 0 1px 0 var(--glass-shine);}
html[data-theme] input[type=checkbox],html[data-theme] input[type=radio]{background:var(--control);border-color:var(--border);border-radius:5px;}
html[data-theme] input:checked{background:var(--accent);border-color:var(--accent);}
html[data-theme] input:checked:after{color:var(--on-accent);}
html[data-theme] :is(.btn,.radio-card,.format-card){border-color:var(--border);background:var(--frost);color:var(--text);box-shadow:inset 0 1px 0 var(--glass-shine),0 3px 8px rgba(0,5,20,.025);border-radius:11px;}
html[data-theme] .btn:hover{background:var(--subtle);border-color:rgba(163,161,218,.48);}
html[data-theme] .btn.primary{background:linear-gradient(135deg,#b6b6f1,#a6c7e9);border:1px solid #d0dcff66;color:#243652;box-shadow:inset 0 1px 0 #ffffff6b,0 6px 17px #7194c022;}
html[data-theme=light] .btn.primary{background:linear-gradient(135deg,#7b79b6,#739abb);color:#fff;border-color:#9fafd76b;box-shadow:inset 0 1px 0 #ffffff45,0 7px 17px #879dc52b;}
html[data-theme] .btn.primary:hover{filter:brightness(1.06);}
html[data-theme] .btn.ghost{background:transparent;box-shadow:none;border-color:transparent;color:var(--muted);}
html[data-theme] .btn.danger{color:var(--red);}
html[data-theme] .ib{color:var(--muted);}
html[data-theme] .ib:hover,html[data-theme] .ib.active{color:var(--accent);background:var(--subtle);box-shadow:inset 0 1px 0 var(--glass-shine);}
html[data-theme] .topbar{background:var(--panel);border-bottom:1px solid var(--border);backdrop-filter:blur(22px) saturate(120%);-webkit-backdrop-filter:blur(22px) saturate(120%);box-shadow:0 4px 24px rgba(0,6,22,.035);}
html[data-theme] .brand-symbol{background:linear-gradient(135deg,#bfd5f4,#b8ace2);color:#35466e;border:1px solid #d7e9ff7a;box-shadow:inset 1px 1px 0 #fff8,0 4px 12px #718bc02b;}
html[data-theme] .brand-caption{color:var(--muted);letter-spacing:2.5px;}
html[data-theme] .brand-name{color:var(--text);font-weight:600;}
html[data-theme] :is(.episode,.tag){background:var(--subtle);color:var(--muted);border-color:var(--border);}
html[data-theme] .avatar{background:var(--frost);border:1px solid var(--border);color:var(--accent);box-shadow:inset 0 1px 0 var(--glass-shine);}
html[data-theme] .divider{background:var(--border);}
html[data-theme] .nav{background:var(--panel);border-right-color:var(--border);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}
html[data-theme] .nav-item{color:var(--muted);border:1px solid transparent;}
html[data-theme] .nav-item:hover{background:var(--subtle);color:var(--accent);}
html[data-theme] .nav-item.active{background:var(--frost);border-color:var(--border);color:var(--accent);box-shadow:inset 0 1px 0 var(--glass-shine),0 5px 13px rgba(0,5,20,.05);}
html[data-theme] .nav-item.active:before{height:14px;top:18px;background:var(--accent);}
html[data-theme] .nav-sep{border-color:var(--border);}
html[data-theme] .page{background:transparent;padding-top:34px;}
html[data-theme] .page-head{margin-bottom:27px;}
html[data-theme] .page-head h1{font-weight:550;letter-spacing:-.8px;}
html[data-theme] .eyebrow{color:var(--accent);letter-spacing:2px;}
html[data-theme] .page-subtitle{line-height:1.85;}
html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box,.job-card,.script-editor,.chapters,.parse-panel){position:relative;background:var(--frost),var(--card);border:1px solid var(--border);box-shadow:inset 0 1px 0 var(--glass-edge),var(--deep-shadow);border-radius:18px;}
html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box){transform-style:preserve-3d;transform:perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(var(--depth-lift,0px));transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s,border-color .3s;}
html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box)[data-depth-active=true]{--depth-lift:-3px;will-change:transform;transition:transform .12s linear,box-shadow .3s,border-color .3s;border-color:rgba(166,190,227,.4);box-shadow:inset 0 1px 0 var(--glass-edge),var(--elevated-shadow);}
html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box)::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(420px circle at var(--shine-x,50%) var(--shine-y,50%),rgba(210,232,255,.14),rgba(186,165,238,.04) 35%,transparent 68%);opacity:0;transition:opacity .25s;z-index:4;}
html[data-theme=light] :is(.project-card,.continue-card,.shot-card,.asset-card,.box)::after{background:radial-gradient(420px circle at var(--shine-x,50%) var(--shine-y,50%),#ffffffbf,#e5dfff22 36%,transparent 68%);}
html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box)[data-depth-active=true]::after{opacity:1;}
html[data-theme] .project-card.new-project{background:var(--subtle);border-style:dashed;box-shadow:none;}
html[data-theme] .project-card .cover{background:var(--subtle);height:198px;}
html[data-theme] .project-card .cover>.badge{background:var(--surface);border-color:var(--border);backdrop-filter:blur(12px);}
html[data-theme] .project-card .cover>.cover-word{background:radial-gradient(ellipse at 50% 120%,rgba(139,151,207,.2),transparent);color:var(--accent);font-size:27px;}
html[data-theme] .project-card-content{padding:20px 20px 17px;}
html[data-theme] .project-card-content .card-bottom{border-color:var(--border);color:var(--muted);}
html[data-theme] .continue-card{min-height:264px;}
html[data-theme] .continue-content{background:var(--panel);}
html[data-theme] .continue-content p{color:var(--muted);line-height:1.9;}
html[data-theme] .continue-overlay{color:#f8f5ef;}
html[data-theme] .project-grid{gap:22px;}
html[data-theme] .badge{color:var(--accent);border-color:rgba(150,143,205,.28);background:rgba(156,151,213,.07);}
html[data-theme] .badge.good{color:var(--green);border-color:rgba(91,165,146,.28);background:rgba(100,179,154,.065);}
html[data-theme] .badge.warn{color:var(--yellow);border-color:rgba(192,159,103,.25);background:rgba(192,159,103,.06);}
html[data-theme] .badge.fail{color:var(--red);border-color:rgba(195,113,139,.25);background:rgba(195,113,139,.06);}
html[data-theme] :is(.content-tabs,.shot-card-foot,.editor-head,.editor-foot,.proposal-item,.capability,.setting-row,.export-row,.field-divider,.library-foot){border-color:var(--border);}
html[data-theme] :is(.content-tabs button,.editor-head,.editor-foot,.shot-card-foot,.format-card p,.project-filters,.lib-heading,.lib-card .desc,.library-foot,.section-label){color:var(--muted);}
html[data-theme] .content-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);}
html[data-theme] .shot-cover{background:var(--subtle);}
html[data-theme] .shot-cover .shot-no{color:#eff5ff;background:#172235b8;border:1px solid #ffffff25;}
html[data-theme] .shot-card-body{padding:18px;}
html[data-theme] .shot-card-body h3{font-size:14px;}
html[data-theme] .shot-table{border-color:var(--border);background:var(--card);box-shadow:var(--deep-shadow);}
html[data-theme] .shot-table th{background:var(--subtle);color:var(--muted);}
html[data-theme] .shot-table td{border-color:var(--border);color:var(--text);}
html[data-theme] :is(.script-editor textarea,.editor-head,.editor-foot){background:transparent;color:var(--text);}
html[data-theme] .chapter-link{color:var(--muted);}
html[data-theme] .chapter-link.active{background:var(--subtle);color:var(--accent);}
html[data-theme] .asset-card button{color:var(--text);}
html[data-theme] .asset-card h3{font-size:13px;}
html[data-theme] .job-icon{background:var(--subtle);border-color:var(--border);color:var(--red);}
html[data-theme] .job-icon.good{color:var(--green);}
html[data-theme] .job-details{color:var(--muted);}
html[data-theme] :is(.file-tree,.source-paragraph){background:var(--control);color:var(--muted);border-color:var(--border);}
html[data-theme] .source-paragraph.cited{background:var(--subtle);border-color:var(--accent);}
html[data-theme] .export-range{background:var(--control);border-color:var(--border);}
html[data-theme] .export-range summary{color:var(--accent);}
html[data-theme] .format-card.selected,html[data-theme] .radio-card:has(input:checked){background:var(--subtle);border-color:var(--accent);}
html[data-theme] .switch{background:rgba(132,153,183,.4);box-shadow:inset 0 1px 3px #0c18331a;}
html[data-theme] .switch.on{background:linear-gradient(120deg,#9e95c4,#89adce);}
html[data-theme] .switch:after{background:#f7fbff;box-shadow:0 1px 4px #3a486c35;}
html[data-theme] .empty-state{border-color:var(--border);background:var(--subtle);color:var(--text);}
html[data-theme] .empty-state p{color:var(--muted);}
html[data-theme] .notice,html[data-theme] .ai-box{border-color:var(--border);background:var(--subtle);color:var(--muted);box-shadow:inset 0 1px 0 var(--glass-shine);}
html[data-theme] .ai-box .row{color:var(--accent);}
html[data-theme] .ai-box p{color:var(--muted);}
html[data-theme] dialog{background:var(--surface);border-color:var(--glass-edge);border-radius:22px;box-shadow:var(--elevated-shadow);backdrop-filter:blur(26px) saturate(120%);-webkit-backdrop-filter:blur(26px) saturate(120%);}
html[data-theme] dialog::backdrop{background:rgba(5,12,28,.6);backdrop-filter:blur(10px);}
html[data-theme=light] dialog::backdrop{background:rgba(75,99,139,.23);}
html[data-theme] :is(.modal-head,.modal-foot){border-color:var(--border);background:transparent;}
html[data-theme] .modal-foot{background:var(--subtle);}
html[data-theme] .modal-desc{color:var(--muted);}
html[data-theme] .upload-zone{border-color:var(--border);background:var(--subtle);color:var(--accent);}
html[data-theme] .select-menu{background:var(--raised);border-color:var(--border);box-shadow:var(--elevated-shadow);}
html[data-theme] .select-menu button{color:var(--text);}
html[data-theme] .select-menu button:hover,html[data-theme] .select-menu button:focus{background:var(--subtle);}
html[data-theme] .toast{background:var(--raised);border-color:var(--border);color:var(--text);box-shadow:var(--elevated-shadow);}
html[data-theme] .toast.error{border-color:var(--red);}
html[data-theme] .key-list{color:var(--muted);}
html[data-theme] .key-list kbd{color:var(--accent);}
/* The creation canvas stays an efficient solid compositing surface. No decorative pointer, blur or tilt runs here. */
html[data-theme] .library,html[data-theme] .inspector{background:var(--surface);border-color:var(--border);}
html[data-theme] :is(.panel-head,.panel-section,.inspector-tabs){border-color:var(--border);}
html[data-theme] :is(.inspector-tabs,.inspector>.panel-head){background:var(--surface);backdrop-filter:blur(14px);}
html[data-theme] .inspector-tabs button{color:var(--muted);}
html[data-theme] .inspector-tabs button.active{color:var(--accent);}
html[data-theme] .library-search .segmented{background:var(--control);}
html[data-theme] .segmented button{color:var(--muted);}
html[data-theme] .segmented button.active{background:var(--subtle);color:var(--accent);box-shadow:inset 0 1px 0 var(--glass-shine);}
html[data-theme] .lib-card{background:var(--card);border-color:var(--border);box-shadow:inset 0 1px 0 var(--glass-shine);}
html[data-theme] .lib-card:hover{border-color:var(--accent);}
html[data-theme] .lib-card .title{color:var(--text);}
html[data-theme] .script-card{background:var(--subtle);border-color:rgba(159,148,222,.32);}
html[data-theme] #canvas{background:var(--canvas);}
html[data-theme] .react-flow{background:var(--canvas);--xy-background-color:var(--canvas);--xy-background-color-default:var(--canvas);--xy-attribution-background-color:transparent;--xy-minimap-background-color:var(--surface);--xy-minimap-mask-background-color:rgba(145,168,201,.16);}
html[data-theme] .react-flow__background{opacity:.62;}
html[data-theme=light] .react-flow__background{opacity:.34;}
html[data-theme] #canvas .node{background:color-mix(in srgb,var(--surface) 96%,var(--bg));border-color:var(--border);color:var(--text);box-shadow:0 5px 15px rgba(0,7,22,.08),inset 0 1px 0 var(--glass-shine);backdrop-filter:none!important;}
html[data-theme] #canvas .node.selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(162,147,221,.13),0 6px 22px rgba(0,7,22,.1);}
html[data-theme] #canvas .node.group-node{background:rgba(153,150,210,.035);border-color:rgba(149,137,196,.5);}
html[data-theme] .node-header{border-color:var(--border);color:var(--text);}
html[data-theme] :is(.node-body,.node-tags,.node-header .node-meta,.node-header .tiny-dot,.port-label){color:var(--muted);}
html[data-theme] .node-body .script-line{color:var(--text);}
html[data-theme] .node-tags .pill{background:var(--subtle);color:var(--muted);}
html[data-theme] .react-flow__handle.port{background:var(--surface);border-color:var(--accent);}
html[data-theme] :is(.canvas-toolbar,.zoom-controls,.minimap:not([hidden])){background:var(--surface);border-color:var(--border);box-shadow:inset 0 1px 0 var(--glass-shine),0 8px 25px rgba(0,7,22,.08);backdrop-filter:blur(14px);}
html[data-theme] .zoom-controls span{color:var(--muted);}
html[data-theme] .canvas-hint{color:var(--muted);}
html[data-theme] .canvas-hint kbd{background:var(--subtle);border-color:var(--border);color:var(--muted);}
html[data-theme] .canvas-title{color:var(--muted);}
html[data-theme] .filmstrip{background:var(--surface);border-color:var(--border);}
html[data-theme] .film-card{border-color:var(--border);}
html[data-theme] .film-card.active{border-color:var(--accent);}
html[data-theme] .film-card span{color:#f2f7ff;}
html[data-theme] .ref-chip{background:var(--subtle);border-color:var(--border);color:var(--text);}
html[data-theme] .outline-wrap{background:var(--canvas);}
html[data-theme] .outline-card{background:var(--card);border-color:var(--border);color:var(--text);}
html[data-theme] .mobile-view-tabs{background:var(--surface);border-color:var(--border);}
html[data-theme] .mobile-view-tabs button{color:var(--muted);}
html[data-theme] .mobile-view-tabs button.active{background:var(--subtle);color:var(--accent);}
/* Hero: optical material takes the visual lead; no external texture or video is loaded. */
.spatial-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);align-items:center;min-height:380px;gap:10px;margin:0 0 30px;padding:34px 20px 34px 36px;border:1px solid var(--border);border-radius:26px;background:radial-gradient(ellipse at 87% 45%,rgba(132,163,210,.1),transparent 54%),var(--frost),var(--card);box-shadow:inset 0 1px 0 var(--glass-edge),var(--deep-shadow);overflow:hidden;isolation:isolate;}
.spatial-hero:before{content:'';position:absolute;inset:1px;border-radius:25px;pointer-events:none;border-top:1px solid var(--glass-shine);z-index:1;}
.spatial-hero-copy,.spatial-copy{position:relative;z-index:2;padding:8px 0 8px 2px;min-width:0;}
.spatial-hero .eyebrow{font-size:10px;letter-spacing:3px;margin-bottom:19px;}
.spatial-hero h1,.spatial-hero h2{font-size:clamp(29px,2.6vw,40px);font-weight:500;letter-spacing:-1px;line-height:1.45;color:var(--hero-ink);max-width:580px;}
.spatial-hero h1 em,.spatial-hero h2 em{font-style:normal;color:var(--accent);}
.spatial-hero p{font-size:12px;line-height:2;color:var(--muted);max-width:430px;margin:18px 0 24px;}
.spatial-hero .row{flex-wrap:wrap;gap:10px;}
.spatial-hero .btn{height:42px;padding:0 19px;}
.spatial-art{position:relative;min-height:320px;height:100%;min-width:0;isolation:isolate;outline:none;touch-action:none;cursor:grab;background:radial-gradient(ellipse at 50% 52%,rgba(160,186,227,.055),transparent 65%);}
.spatial-art:focus-visible{outline:1px solid var(--accent);outline-offset:-4px;border-radius:18px;}
.spatial-art[data-scene-dragging=true]{cursor:grabbing;}
.spatial-art:before{content:'MATERIAL STUDY / 01';position:absolute;top:4px;right:15px;font:9px ui-monospace,monospace;letter-spacing:2px;color:var(--muted);opacity:.6;z-index:2;pointer-events:none;}
.spatial-art:after{content:'拖动旋转  ·  点击改变形态';position:absolute;bottom:9px;left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:20px;background:var(--panel);border:1px solid var(--border);color:var(--muted);font-size:9px;letter-spacing:.5px;white-space:nowrap;z-index:2;pointer-events:none;backdrop-filter:blur(8px);}
.spatial-webgl{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;opacity:0;transition:opacity .6s;pointer-events:none;}
.spatial-art[data-scene-status=ready] .spatial-webgl{opacity:1;}
.spatial-art[data-scene-status=fallback]:after{content:'静态光学材质预览 · 当前设备未启用 WebGL';}
.spatial-art[data-scene-status=fallback]{background:radial-gradient(circle at 42% 32%,#ffffffad 0,transparent 6%),radial-gradient(ellipse at 45% 46%,#bedff04d,transparent 38%);}
.spatial-art[data-scene-status=fallback]:before{content:'';position:absolute;inset:22% 25%;border:1px solid #bed4f080;border-radius:47% 53% 43% 57%;background:radial-gradient(circle at 30% 22%,#f6fdffad,transparent 18%),linear-gradient(135deg,#c9e4f052,#627bba24,#e8dfff75);box-shadow:inset 10px 10px 25px #ffffff3d,inset -9px -10px 20px #6a82b54a,0 18px 45px #0b1a3933;}
.spatial-materials{display:flex;align-items:center;gap:7px;margin-top:24px;}
.spatial-materials [data-material]{height:31px;padding:0 11px;border:1px solid var(--border);border-radius:8px;background:var(--control);color:var(--muted);font-size:10px;display:inline-flex;align-items:center;gap:6px;box-shadow:inset 0 1px 0 var(--glass-shine);}
.spatial-materials [data-material]:before{content:'';height:9px;width:9px;border:1px solid rgba(173,206,231,.7);border-radius:45% 55% 55% 45%;background:linear-gradient(135deg,#e0f7ff8c,#91b0d633);box-shadow:inset 1px 1px 2px #ffffff80;}
.spatial-materials [data-material=glass]:before{border-radius:50%;background:transparent;box-shadow:inset 0 0 0 2px #d0c6ed54;}
.spatial-materials [data-material=frost]:before{border-radius:3px;background:linear-gradient(135deg,#e1ecf6a1,#9daec66b);}
.spatial-materials [data-material].active,.spatial-materials [data-material][aria-pressed=true]{color:var(--accent);border-color:rgba(158,150,204,.6);background:var(--subtle);}
.theme-toggle,[data-action=theme-toggle]{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 10px 0 6px;border-radius:10px;border:1px solid var(--border);background:var(--frost);color:var(--muted);box-shadow:inset 0 1px 0 var(--glass-shine);font-size:10px;white-space:nowrap;}
.theme-symbol{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;color:#d4be98;background:rgba(207,187,149,.075);}
html[data-theme=light] .theme-symbol{color:#7a6d9b;background:#b5a4d014;}
.theme-symbol svg{width:16px;height:16px;}
.theme-toggle:hover{border-color:rgba(163,161,218,.6);color:var(--text);}
html[data-theme-changing=true]::view-transition-group(root){animation-duration:0s;}
html[data-theme-changing=true]::view-transition-old(root),html[data-theme-changing=true]::view-transition-new(root){mix-blend-mode:normal;animation:none;opacity:1;}
html[data-theme-changing=true]::view-transition-old(root){z-index:1;}
html[data-theme-changing=true]::view-transition-new(root){z-index:2;animation:theme-liquid-spread .85s cubic-bezier(.2,.6,.25,1) both;}
::view-transition{pointer-events:none;}
@keyframes theme-liquid-spread{from{clip-path:circle(0px at var(--theme-origin-x) var(--theme-origin-y));}to{clip-path:circle(var(--theme-reach) at var(--theme-origin-x) var(--theme-origin-y));}}
.theme-droplet-bloom{position:fixed;height:90px;width:90px;margin:-45px;z-index:99;pointer-events:none;animation:theme-droplet-bloom .85s ease-out both;}
.theme-droplet-bloom i{position:absolute;inset:22px 27px;border:1px solid #eaffffd1;border-radius:67% 33% 57% 43%;transform:rotate(-35deg);background:radial-gradient(circle at 27% 20%,#ffffffed,transparent 25%),linear-gradient(135deg,#d6f7ffac,#83afca2b,#b8dcf09c);box-shadow:inset 3px 4px 7px #ffffffa6,inset -5px -5px 10px #437c9e5c,2px 6px 18px #557e9c40;}
.theme-droplet-bloom b{position:absolute;inset:4px;border:1px solid #d5f4ff8c;border-radius:50%;transform:scaleY(.8);}
@keyframes theme-droplet-bloom{0%{transform:scale(.2);opacity:0;}15%{transform:scale(1);opacity:.9;}65%,100%{transform:scale(5);opacity:0;}}
/* Decorative pointer: native pointer/caret remain; the entire layer never receives input. */
.experience-pointer-layer,.experience-pointer-layer *{pointer-events:none!important;user-select:none!important;}
.experience-pointer-layer{position:fixed;inset:0;overflow:visible;z-index:70;contain:layout style;isolation:isolate;opacity:0;transition:opacity .18s;}
.experience-pointer-layer[data-visible=true]{opacity:1;}
.liquid-cursor-droplet,.liquid-cursor-ring{position:absolute;left:0;top:0;will-change:transform;}
.liquid-cursor-droplet i{position:absolute;width:15px;height:20px;left:-7px;top:-10px;border:1px solid rgba(187,218,243,.68);border-radius:46% 54% 56% 44% / 42% 43% 57% 58%;background:radial-gradient(ellipse at 26% 18%,#e9faff9e,transparent 32%),linear-gradient(145deg,#b7deef20,#9191c90e);box-shadow:inset 1px 2px 3px #e0f2ff45,inset -2px -2px 4px #6c8eac1f,0 2px 7px #1f48791a;transform:rotate(45deg);}
.liquid-cursor-ring:after{content:'';position:absolute;width:3px;height:3px;left:-1.5px;top:-1.5px;border-radius:50%;background:#c6e4f3;box-shadow:0 0 6px #a0d8f54d;}
.experience-pointer-layer[data-hover=true] .liquid-cursor-droplet i{width:25px;height:29px;left:-12px;top:-14px;border-color:#c8e8fbc2;background:radial-gradient(ellipse at 26% 18%,#e9faffab,transparent 32%),linear-gradient(145deg,#b7deef32,#9191c912);}
html[data-theme=light] .liquid-cursor-droplet i{border-color:#718baa8f;background:radial-gradient(ellipse at 25% 20%,#fff9,transparent 35%),linear-gradient(145deg,#b7d9ef30,#baa9d414);}
html[data-theme=light] .liquid-cursor-ring:after{background:#8793b5;}
.liquid-click-ripple{position:absolute;width:46px;height:46px;margin:-23px;border:1px solid #a6cee58c;border-radius:50%;animation:liquid-click .65s ease-out both;}
@keyframes liquid-click{from{transform:scale(.25);opacity:.75;}to{transform:scale(1.65);opacity:0;}}
html[data-motion=reduced] .experience-pointer-layer{display:none;}
html[data-motion=reduced] :is(.project-card,.continue-card,.shot-card,.asset-card,.box){transform:none!important;transition:none!important;}
@media(min-width:1600px){.spatial-hero{min-height:420px;padding:40px 26px 40px 44px;}.spatial-art{min-height:350px;}}
@media(max-width:1199px){.spatial-hero{grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);padding:26px 18px 26px 28px;min-height:350px;}.spatial-hero h1,.spatial-hero h2{font-size:31px;}.spatial-art{min-height:300px;}}
@media(max-width:899px){html[data-theme] .page{padding:24px 18px;}.spatial-hero{grid-template-columns:1fr;padding:25px 24px 0;gap:0;border-radius:22px;}.spatial-hero-copy,.spatial-copy{padding:0;}.spatial-hero h1,.spatial-hero h2{font-size:29px;line-height:1.5;}.spatial-hero p{font-size:12px;margin:16px 0 20px;}.spatial-art{height:270px;min-height:270px;margin-top:8px;}.spatial-art:before{font-size:8px;top:12px;right:0;}.spatial-art:after{bottom:15px;}.spatial-materials{margin-top:20px;}html[data-theme] .top-actions>[data-action=theme-toggle]{display:inline-flex!important;width:34px;padding:0;}[data-action=theme-toggle] .theme-label{display:none;}.theme-symbol{width:22px;height:22px;}html[data-theme] .project-card .cover{height:195px;}html[data-theme] .node-header{font-size:12px;}html[data-theme] .nav{background:var(--surface);}.spatial-hero .btn{height:40px;padding:0 16px;}}
@media(hover:none),(pointer:coarse){.experience-pointer-layer{display:none!important;}.spatial-art{touch-action:pan-y;}}
@media(prefers-reduced-motion:reduce){.experience-pointer-layer,.theme-droplet-bloom{display:none!important;}html[data-theme-changing=true]::view-transition-new(root){animation:none;clip-path:none;}html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box){transform:none!important;transition:none!important;}.spatial-webgl{transition:none;}}
@supports not (backdrop-filter:blur(1px)){html[data-theme] :is(.topbar,.nav,.canvas-toolbar,.zoom-controls,dialog){background:var(--surface);}.spatial-hero,.project-card,.box{background:var(--surface);}}
html[data-theme] :is(.image-caption,.scroll-hint,.inspector-hero .image-caption,.new-project button){color:var(--muted);}
html[data-theme] .node-header>.icon,html[data-theme] .new-project button>.icon{color:var(--accent);}
html[data-theme] .form-error{color:var(--red);}
html[data-theme] .shot-cover .badge{background:var(--surface);backdrop-filter:blur(8px);}
html[data-theme=light] .film-header b,html[data-theme=light] .page-head h1 span{color:var(--accent)!important;}
.spatial-hero{min-height:350px;padding-top:24px;padding-bottom:24px;}
.spatial-art:has(.spatial-object-label):before,.spatial-art:has(.spatial-art-caption):after{display:none;}
.spatial-object-label{position:absolute;top:12px;left:24px;z-index:2;pointer-events:none;font:9px ui-monospace,monospace;letter-spacing:1.6px;color:var(--muted);line-height:1.8;}
.spatial-object-label span{display:block;font-size:8px;opacity:.7;letter-spacing:2.2px;}
.spatial-floating-tag{position:absolute;right:4px;top:44%;z-index:2;pointer-events:none;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel);backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 var(--glass-shine),0 8px 24px rgba(8,22,51,.06);font-size:9px;color:var(--muted);line-height:1.8;}
.spatial-art-caption{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:7px;align-items:center;padding:6px 11px;border:1px solid var(--border);border-radius:20px;background:var(--panel);color:var(--muted);font-size:9px;white-space:nowrap;z-index:2;pointer-events:none;backdrop-filter:blur(8px);}
.spatial-art-caption i{height:4px;width:4px;background:#90cdd6;border-radius:50%;}
.spatial-coordinates{position:absolute;right:24px;bottom:18px;font:8px ui-monospace,monospace;letter-spacing:1px;color:var(--muted);opacity:.5;pointer-events:none;}
.spatial-text-link{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;line-height:1.7;padding:10px 7px;}
.spatial-text-link:hover{color:var(--accent);}
@media(min-width:1600px){.spatial-hero{min-height:390px;}}
@media(max-width:899px){.spatial-hero{padding-top:25px;padding-bottom:0;}.spatial-art{height:285px;min-height:285px;}.spatial-object-label{top:16px;left:0;}.spatial-floating-tag{right:-10px;font-size:8px;padding:8px 10px;}.spatial-coordinates{display:none;}.spatial-art-caption{bottom:12px;}}
html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box,.script-editor,.chapters,.parse-panel){backdrop-filter:blur(14px) saturate(112%);-webkit-backdrop-filter:blur(14px) saturate(112%);}
@supports not (backdrop-filter:blur(1px)){html[data-theme] :is(.project-card,.continue-card,.shot-card,.asset-card,.box,.script-editor,.chapters,.parse-panel){background:var(--surface);}}
.spatial-eyebrow{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:2px;color:var(--muted);line-height:1.7;margin-bottom:15px;}
.live-pip{width:4px;height:4px;border-radius:50%;background:#a5d7de;box-shadow:0 0 8px #b3dfe82b;}
.spatial-hero-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;}
.spatial-materials [data-material]{white-space:nowrap;}
@media(max-width:899px){.topbar .project-title:has(.tag){display:none;}.spatial-materials{gap:6px;}.spatial-materials [data-material]{font-size:9px;padding:0 8px;gap:4px;}.spatial-materials [data-material]>span{font-size:8px;}.spatial-materials [data-material]:before{width:8px;height:8px;}}
.spatial-hero{backdrop-filter:blur(18px) saturate(112%);-webkit-backdrop-filter:blur(18px) saturate(112%);}
html[data-theme=dark] .react-flow__edge-path{stroke:#68758f!important;}
html[data-theme=light] .react-flow__edge-path{stroke:#7589a3!important;}
html[data-theme] .flow-edge-selected .react-flow__edge-path,html[data-theme] .react-flow__connection-path{stroke:var(--accent)!important;}

/* The AI-generated vertical cover keeps its clock face in wide previews. */
.continue-image img{object-position:50% 25%;}.project-card .cover>img{object-position:50% 25%;}
@media(max-width:1199px){html[data-theme] .inspector.open{background:var(--raised);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);}}
