.dome-gallery-island .sphere-root{position:relative;width:100%;height:100%;--radius: 520px;--viewer-pad: 72px;--circ: calc(var(--radius) * 3.14);--rot-y: calc((360deg / var(--segments-x)) / 2);--rot-x: calc((360deg / var(--segments-y)) / 2);--item-width: calc(var(--circ) / var(--segments-x));--item-height: calc(var(--circ) / var(--segments-y))}.dome-gallery-island .sphere-root *{box-sizing:border-box}.dome-gallery-island .sphere,.dome-gallery-island .item,.dome-gallery-island .item__image{transform-style:preserve-3d}.dome-gallery-island .sphere-main{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;background:var(--overlay-blur-color, #120f17)}.dome-gallery-island .stage{width:100%;height:100%;display:grid;place-items:center;perspective:calc(var(--radius) * 2);perspective-origin:50% 50%;contain:layout paint size}.dome-gallery-island .sphere{transform:translateZ(calc(var(--radius) * -1));will-change:transform}.dome-gallery-island .overlay,.dome-gallery-island .overlay--blur{position:absolute;inset:0;margin:auto;z-index:3;pointer-events:none}.dome-gallery-island .overlay{background-image:radial-gradient(rgba(235,235,235,0) 65%,var(--overlay-blur-color, #120F17) 100%)}.dome-gallery-island .overlay--blur{-webkit-mask-image:radial-gradient(rgba(235,235,235,0) 70%,var(--overlay-blur-color, #120F17) 90%);mask-image:radial-gradient(rgba(235,235,235,0) 70%,var(--overlay-blur-color, #120F17) 90%);backdrop-filter:blur(3px)}.dome-gallery-island .item{width:calc(var(--item-width) * var(--item-size-x));height:calc(var(--item-height) * var(--item-size-y));position:absolute;inset:-999px;margin:auto;transform-origin:50% 50%;backface-visibility:hidden;transition:transform .3s;transform:rotateY(calc(var(--rot-y) * (var(--offset-x) + ((var(--item-size-x) - 1) / 2)) + var(--rot-y-delta, 0deg))) rotateX(calc(var(--rot-x) * (var(--offset-y) - ((var(--item-size-y) - 1) / 2)) + var(--rot-x-delta, 0deg))) translateZ(var(--radius))}.dome-gallery-island .item__image{position:absolute;display:block;inset:10px;border-radius:var(--tile-radius, 12px);background:var(--overlay-blur-color, #120f17);overflow:hidden;backface-visibility:hidden;transition:transform .3s;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;pointer-events:auto;-webkit-transform:translateZ(0);transform:translateZ(0)}.dome-gallery-island .item__image:focus{outline:none}.dome-gallery-island .item__image img{width:100%;height:100%;object-fit:cover;pointer-events:none;backface-visibility:hidden;filter:var(--image-filter, none)}.dome-gallery-island .viewer{position:absolute;inset:0;z-index:20;pointer-events:none;display:flex;align-items:center;justify-content:center;padding:var(--viewer-pad)}.dome-gallery-island .viewer .frame{height:100%;aspect-ratio:1;border-radius:var(--enlarge-radius, 32px);display:flex}@media (max-aspect-ratio: 1/1){.dome-gallery-island .viewer .frame{height:auto;width:100%}}.dome-gallery-island .viewer .scrim{position:absolute;inset:0;z-index:10;background:#0006;pointer-events:none;opacity:0;transition:opacity .5s ease;backdrop-filter:blur(3px)}.dome-gallery-island .sphere-root[data-enlarging=true] .viewer .scrim{opacity:1;pointer-events:all}.dome-gallery-island .viewer .enlarge{position:absolute;z-index:30;border-radius:var(--enlarge-radius, 32px);overflow:hidden;transition:transform .5s ease,opacity .5s ease;transform-origin:top left;box-shadow:0 10px 30px #00000059}.dome-gallery-island .viewer .enlarge img{width:100%;height:100%;object-fit:cover;filter:var(--image-filter, none)}.dome-gallery-island .sphere-root .enlarge-closing img{filter:var(--image-filter, none)}.dome-gallery-island .edge-fade{position:absolute;left:0;right:0;height:120px;z-index:5;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--overlay-blur-color, #120F17))}.dome-gallery-island .edge-fade--top{top:0;transform:rotate(180deg)}.dome-gallery-island .edge-fade--bottom{bottom:0}

:root{color-scheme:dark;--bg:#141416;--surface:#1c1c1f;--raised:#262629;--line:#38383d;--text:#f2efe8;--secondary:#b6b4b0;--muted:#98969a;--accent:#ffb86b;--ink:#24190e;--radius:8px;--ease:cubic-bezier(.22,1,.36,1);font-synthesis:none}
.agent-access{max-width:640px;padding-block:64px 80px;min-height:60vh}.agent-access h1{font-size:clamp(28px,5vw,36px);margin-bottom:20px}.agent-access h2{font-size:24px}.agent-access [role=status]{margin-bottom:28px;overflow-wrap:anywhere}.agent-access form{display:grid;gap:18px}.agent-access form>label{display:flex;align-items:flex-start;gap:10px;line-height:1.5;cursor:pointer}.agent-access input[type=checkbox]{width:18px;height:18px;margin:3px 0;flex-shrink:0}.agent-access form>p label{display:grid;gap:8px}.agent-access input[type=number],.agent-access select{width:100%;min-height:44px;padding:8px 12px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--radius)}.agent-actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px}.agent-access [data-agent-list]>p{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-block:20px;border-bottom:1px solid var(--line)}.agent-access [data-agent-list] span{flex:1;min-width:180px;overflow-wrap:anywhere}@media(max-width:600px){.agent-access{padding-block:36px 48px}.agent-access .agent-actions>*{flex:1;justify-content:center}}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#515156 var(--bg)}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 'Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button,a{color:inherit}button:disabled,[aria-disabled=true]{opacity:.5;cursor:wait}a{text-decoration:none;text-underline-offset:4px}img{max-width:100%}svg{flex-shrink:0}
h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500;line-height:1.16;text-wrap:balance}h1,h2{font-family:inherit;font-weight:600;letter-spacing:-.02em}h1{font-size:48px}h2{font-size:32px}h3{font-size:17px}p{color:var(--secondary)}strong{color:var(--text);font-weight:600}code,pre,kbd{font-family:Consolas,'Liberation Mono',monospace}
::selection{background:var(--accent);color:var(--ink)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input,select{accent-color:var(--accent);caret-color:var(--accent)}input::placeholder{color:var(--muted);opacity:1}[hidden]{display:none!important}
.icon{width:18px;height:18px;display:inline-block;vertical-align:middle;stroke-width:1.5}button .icon{pointer-events:none}.wrap{width:min(1120px,calc(100% - 64px));margin-inline:auto}
.site-header{border-bottom:1px solid var(--line)}.header-inner{height:72px;display:flex;align-items:center;gap:40px}.brand{display:inline-flex;align-items:center;gap:12px;font-size:25px;font-weight:600;letter-spacing:-.02em;white-space:nowrap}.brand-mark{width:24px;height:24px;color:var(--accent)}.brand-studio{color:var(--secondary)}.desktop-nav{display:flex;gap:32px;margin-left:auto}.desktop-nav a{color:var(--secondary);font-size:14px}.desktop-nav a:hover,.desktop-nav a[aria-current]{color:var(--text)}.desktop-nav a[aria-current]{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:10px}.header-source{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--secondary)}.header-source:hover{color:var(--text)}.mobile-nav{display:none}
.hero{padding-top:48px;padding-bottom:64px}.hero-copy{text-align:center}.hero h1{font-size:clamp(48px,5vw,64px);line-height:1.1;font-weight:600}.hero-copy p{margin-top:16px;font-size:17px}.hero-copy>.button{margin-top:24px}
.button{min-height:44px;padding:10px 20px;display:inline-flex;justify-content:center;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--radius);font-size:14px;font-weight:600;transition:background .16s var(--ease),border-color .16s var(--ease)}.primary{background:var(--accent);border-color:var(--accent);color:var(--ink)}.primary:hover{background:#ffc88d;border-color:#ffc88d}.secondary{background:var(--raised)}.secondary:hover{background:#323236;border-color:#5b5b61}.text-link{display:inline-flex;align-items:center;gap:8px;font-size:14px}.text-link:hover{color:var(--accent)}
.checker{background-color:#19191c;background-image:conic-gradient(#1d1d20 25%,transparent 0 50%,#1d1d20 0 75%,transparent 0);background-size:32px 32px}
.section{padding-block:48px}.library{border-top:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.search{display:flex;align-items:center;gap:12px;width:288px;min-height:44px;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--muted)}.search:focus-within{border-color:var(--accent)}.search input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:var(--text);font-size:14px}.search kbd{border:1px solid var(--line);border-radius:4px;padding:0 6px;font-size:12px}.filter-bar{display:flex;justify-content:space-between;align-items:start;gap:24px;padding-bottom:16px;border-bottom:1px solid var(--line)}.filter-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.chip{min-height:36px;display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid transparent;border-radius:6px;font-size:13px;color:var(--secondary);white-space:nowrap}.chip:hover{background:var(--raised);color:var(--text)}.chip.selected{border-color:var(--line);background:var(--raised);color:var(--text)}.chip span{color:var(--muted);font-variant-numeric:tabular-nums}.kind-filter{flex-shrink:0}select{background:var(--surface);color:var(--secondary);border:1px solid var(--line);border-radius:6px;padding:8px 12px;min-height:36px;max-width:100%}.kind-filter select{font-size:13px}.more-categories{position:relative}.more-categories>summary{padding:6px 12px;min-height:36px;font-size:13px;color:var(--secondary);border:1px solid transparent;border-radius:6px}.more-categories[open]>summary{background:var(--raised);color:var(--text)}.category-popover{position:absolute;z-index:10;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--line);border-radius:8px;width:336px;padding:12px;display:grid;grid-template-columns:1fr 1fr;box-shadow:0 12px 32px #0005}.category-popover .chip{white-space:normal}.result-count{font-size:12px;margin-block:16px;color:var(--muted);font-variant-numeric:tabular-nums}
.effect-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.effect-card{min-width:0}.card-link{display:block;border-radius:8px}.card-preview{height:168px;position:relative;display:flex;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:border-color .16s var(--ease)}.card-link:hover .card-preview,.card-link:focus-visible .card-preview{border-color:#7a7771}.card-preview img,.card-preview canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.card-play{position:absolute;bottom:8px;right:8px;color:var(--secondary);opacity:0;transition:opacity .16s var(--ease)}.card-link:hover .card-play,.card-link:focus-visible .card-play{opacity:1}.card-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.card-title h3{font-size:15px;font-weight:500}.card-title>.icon{width:16px;color:var(--muted)}.card-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin-top:4px}.library-bottom{text-align:center;padding-bottom:48px}.empty-state{text-align:center;padding:64px 16px}.empty-state h3{margin-top:16px}.empty-state p{margin:12px 0 24px}
.collections-section{border-top:1px solid var(--line)}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.collection-tools{display:flex;align-items:center;gap:24px}.collection-art{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:176px;border:1px solid var(--line);border-radius:8px}.collection-art img,.collection-art canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;object-fit:contain}.collection-caption{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.collection-caption h3{font-size:16px}.collection-caption .icon{color:var(--muted)}.collection-card:hover .collection-art{border-color:#7a7771}.quick-start{border-block:1px solid var(--line);text-align:center;padding-block:48px}.quick-start p{margin:12px 0 16px}.faq{max-width:736px;margin-inline:auto}.faq h2{margin-bottom:24px}.faq details{border-bottom:1px solid var(--line)}.faq summary{padding:20px 0;font-size:15px}.faq details p{padding:0 0 20px;font-size:14px}.faq a{text-decoration:underline}
.site-footer{border-top:1px solid var(--line);margin-top:32px}.footer-top{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:32px}.footer-top .brand{font-size:22px}.footer-top p,.footer-top>a:last-child{font-size:13px;color:var(--secondary)}.footer-bottom{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:20px;color:var(--muted);font-size:12px}.footer-bottom nav{display:flex;flex-wrap:wrap;gap:12px 24px}.footer-bottom a:hover{color:var(--text)}
.breadcrumbs{padding-top:28px;color:var(--muted);font-size:12px}.breadcrumbs ol{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.breadcrumbs li{display:inline-flex;align-items:center;gap:8px}.breadcrumbs .icon{width:12px;height:12px}.breadcrumbs a:hover{color:var(--text)}.page-heading{padding-block:32px}.page-heading p{max-width:64ch;margin-top:12px}.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.detail-heading>.text-link{flex-shrink:0}.detail-title-row{display:flex;align-items:center;gap:16px}.detail-heading h1{font-size:40px}.detail-heading p{font-size:14px}.badge{display:inline-flex;align-items:center;font-size:12px;padding:4px 8px;background:var(--raised);border-radius:4px;color:var(--secondary);white-space:nowrap}
.editor{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.editor-top{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 20px;border-bottom:1px solid var(--line)}.editor-name{display:flex;align-items:center;gap:8px;font-size:14px}.status-dot{width:6px;height:6px;background:var(--accent);display:inline-block}.editor-tabs{display:flex;gap:4px}.editor-tabs button{min-height:36px;border:0;border-radius:6px;padding:8px 12px;background:transparent;color:var(--secondary);font-size:13px}.editor-tabs button:hover{background:var(--raised)}.editor-tabs button[aria-selected=true]{background:var(--raised);color:var(--text)}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 256px}.editor-view{min-width:0}.stage{height:360px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.stage img,.stage canvas{max-width:88%;max-height:312px;width:var(--effect-width,448px);height:auto;object-fit:contain;image-rendering:pixelated}.stage-corner{position:absolute;bottom:16px;left:20px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.stage.preview-light{background:#e2e0db}.stage.preview-light .stage-corner{color:#56545a}.stage.preview-dark{background:#08080a}.transport{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 16px;border-top:1px solid var(--line)}.icon-button{display:inline-flex;justify-content:center;align-items:center;background:transparent;border:0;border-radius:6px;min-width:36px;min-height:36px;padding:8px;color:var(--secondary)}.icon-button:hover{color:var(--text);background:var(--raised)}.transport-time{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.transport select{margin-left:auto;padding:4px 8px;font-size:12px}
.editor-options{padding:24px;border-left:1px solid var(--line)}.option-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.option-heading h3{font-size:15px}.text-button{border:0;padding:0;background:transparent;color:var(--secondary);font-size:12px}.text-button:hover{color:var(--accent)}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{width:28px;height:28px;border:1px solid #ffffff30;border-radius:4px;background:var(--swatch);position:relative;overflow:hidden;cursor:pointer}.swatch input{position:absolute;inset:0;width:100%;height:100%;padding:0;cursor:pointer;opacity:0}.swatch:focus-within{outline:2px solid var(--accent);outline-offset:3px}.select-label{display:block;margin-top:16px}.select-label select{width:100%;font-size:13px}.advanced-settings{border-block:1px solid var(--line);margin-top:24px}.advanced-settings summary{padding-block:16px;font-size:13px;color:var(--secondary)}.editor-facts{margin:0 0 16px;font-size:12px;font-variant-numeric:tabular-nums}.editor-facts>div,.technical-facts>div{display:flex;justify-content:space-between;gap:16px;padding-block:6px}dt{color:var(--muted)}dd{margin:0}.extra-controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:16px}.check-label{display:flex;align-items:center;gap:4px;font-size:13px}.seed-button{display:flex;align-items:center;gap:8px}.export-actions{display:flex;flex-direction:column;gap:8px;margin-top:24px}.export-actions .button{width:100%;padding-inline:12px}.export-actions .secondary{border:0;background:transparent;color:var(--secondary);font-weight:400}.export-actions .secondary:hover{color:var(--text);background:var(--raised)}.export-note{font-size:12px;text-align:center;margin-top:12px}.sheet-panel{height:360px;overflow:auto;padding:24px;text-align:center}.sheet-panel img{max-height:280px;object-fit:contain;image-rendering:pixelated}.sheet-panel p{font-size:12px;padding:12px 0}.code-panel{height:360px;overflow:auto;padding:20px;background:#111113}.code-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.code-panel pre{font-size:12px;line-height:1.6;color:#dfc3a0;overflow:auto;margin:8px 0 16px}.code-panel>a{color:var(--accent);font-size:13px}.detail-help{border-bottom:1px solid var(--line);margin-top:24px}.detail-help summary{padding-block:16px;font-size:14px;color:var(--secondary)}.detail-info{display:grid;grid-template-columns:1fr 1fr;gap:64px;padding-block:16px 32px}.detail-info h2{font-family:inherit;font-size:18px;margin-bottom:16px}.detail-info p,.technical-facts{font-size:14px;margin-bottom:16px}.detail-info a{text-decoration:underline}
.guide-list{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-bottom:48px}.guide-card{padding:32px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.guide-card h2{font-size:28px}.guide-card p{margin:16px 0 24px}.guide-card:hover{border-color:#7a7771}.prose{max-width:736px;margin-inline:auto;padding-block:48px 64px;overflow-wrap:anywhere}.prose h1{font-size:44px;margin-bottom:24px}.prose h2{font-family:inherit;font-size:24px;margin:40px 0 16px}.prose p{margin-bottom:20px}.prose a{color:var(--accent);text-decoration:underline}.prose a.button{text-decoration:none;color:var(--text)}.prose pre{overflow:auto;background:#101012;padding:24px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap}.note{padding:16px;background:var(--raised);border-radius:6px;color:var(--secondary);font-size:13px}.small{font-size:13px}.muted{color:var(--muted)}.eyebrow{display:none}.toast{position:fixed;z-index:100;bottom:24px;left:50%;transform:translate(-50%,8px);opacity:0;pointer-events:none;width:max-content;max-width:calc(100% - 32px);padding:12px 20px;background:#f2efe8;color:#262322;border-radius:8px;font-size:13px;transition:opacity .2s var(--ease),transform .2s var(--ease)}.toast.visible{opacity:1;transform:translate(-50%,0)}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link:focus{position:fixed;z-index:200;left:16px;top:16px;padding:12px 20px;background:var(--accent);color:var(--ink);border-radius:6px}
@media(min-width:1600px){.wrap{width:min(1960px,80%)}.card-preview{height:clamp(168px,13vw,260px)}.collection-art{height:clamp(176px,15vw,300px)}}
@media(max-width:1000px){.filter-bar{flex-wrap:wrap;gap:12px}.effect-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-body{grid-template-columns:minmax(0,1fr) 240px}.editor-options{padding:20px}.detail-heading>.text-link{display:none}}
@media(max-width:700px){
  .wrap{width:calc(100% - 40px)}.header-inner{height:64px;gap:16px;justify-content:space-between}.brand{font-size:22px;gap:8px}.brand-mark{width:20px;height:20px}.desktop-nav,.header-source{display:none}.mobile-nav{position:relative;display:block}.mobile-nav>summary{list-style:none;min-height:40px;display:flex;align-items:center;padding-inline:12px;border:1px solid var(--line);border-radius:6px;font-size:13px}.mobile-nav>summary::-webkit-details-marker{display:none}.mobile-nav nav{position:absolute;z-index:20;top:calc(100% + 12px);right:0;width:192px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px #0005}.mobile-nav nav a{display:block;padding:12px;font-size:14px;border-radius:4px}.mobile-nav nav a:hover{background:var(--raised)}
  .hero{padding-top:40px;padding-bottom:40px}.hero h1{font-size:40px}.hero-copy p{font-size:15px;max-width:280px;margin-inline:auto}.hero-copy>.button{margin-top:20px}
  .section{padding-block:32px}h2{font-size:28px}.section-head{flex-wrap:wrap;gap:16px;margin-bottom:20px}.section-head .search{width:100%}.filter-bar{gap:12px;padding-bottom:12px}.filter-chips{gap:4px}.chip{min-height:40px;padding:8px 12px}.more-categories>summary{min-height:40px;padding:8px 12px}.category-popover{width:min(320px,calc(100vw - 40px));left:0;right:auto}.effect-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.card-preview{height:132px}.card-title h3{font-size:14px}.card-title>.icon{display:none}.card-meta{font-size:11px;gap:4px}.library-bottom{padding-bottom:32px}.collection-grid{grid-template-columns:1fr;gap:24px}.collection-card{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:20px}.collection-art{height:96px}.collection-caption{margin:0}.collection-caption h3{font-size:15px}.quick-start{padding-block:32px}.quick-start p{font-size:14px}.faq summary{padding-block:20px;font-size:14px}.footer-top{flex-wrap:wrap;gap:16px;padding-block:24px}.footer-top p{display:none}.footer-top>a:last-child{font-size:12px}.footer-bottom{flex-direction:column;align-items:start;gap:16px}
  .breadcrumbs{padding-top:20px}.page-heading{padding-block:24px}h1,.detail-heading h1{font-size:36px}.page-heading p{font-size:14px}.detail-title-row{gap:12px}.detail-heading{display:block}.editor-top{padding:8px;justify-content:center;min-height:56px}.editor-name{display:none}.editor-tabs{width:100%;justify-content:center}.editor-tabs button{min-height:40px;flex:1}.editor-body{grid-template-columns:1fr}.stage{height:280px}.stage img,.stage canvas{max-height:232px}.transport{gap:8px;padding:8px}.transport-time{display:none}.editor-options{border-left:0;border-top:1px solid var(--line);padding:20px}.option-heading{margin-bottom:12px}.swatch{width:32px;height:32px}.advanced-settings{margin-top:16px}.export-actions{margin-top:16px}.sheet-panel,.code-panel{height:340px;padding:16px}.detail-info{grid-template-columns:1fr;gap:24px}.guide-list{grid-template-columns:1fr}.guide-card{padding:24px}.prose{padding-block:32px}.prose h1{font-size:36px}.prose pre{padding:16px;font-size:12px}
}
@media(max-width:700px){.filter-chips{position:relative}.more-categories{position:static}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:0s!important;animation:none!important}}

/* Home: the actual asset library is the first-screen demonstration. */
/* The hero uses the user-selected React Bits DomeGallery; controls and catalogue stay native. */
.hero-dome{height:440px;position:relative;isolation:isolate;overflow:hidden;background:var(--bg);margin-bottom:28px;border-bottom:1px solid var(--line)}
.dome-gallery-island{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.dome-gallery-island.is-ready{opacity:1}
.wall-shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,#141416f5 0%,#141416d9 28%,#14141659 64%,#14141633 100%),linear-gradient(0deg,#141416 0%,#14141600 24%,#14141600 80%,#14141680 100%)}
.hero-dome-inner{position:relative;z-index:3;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}
.hero-dome .hero-copy{width:680px;max-width:100%;text-align:center;pointer-events:auto}
.hero-dome h1{font-size:56px;line-height:1.08;letter-spacing:-.03em;font-weight:600}
.hero-dome .hero-copy p{font-size:16px;line-height:1.7;margin:20px 0 0;max-width:none;color:var(--secondary)}
.hero-dome .hero-copy>.button{margin-top:24px}
.hero-dome .dome-gallery-island .sphere-main{background:var(--bg);touch-action:pan-y}
.hero-dome .dome-gallery-island .stage{overflow:visible}
.hero-dome .dome-gallery-island .item__image{inset:6px;background:#1c1c1f;border:1px solid #303035;cursor:default;pointer-events:none;touch-action:auto}
.hero-dome .dome-gallery-island .item__image img,.hero-dome .dome-gallery-island .item__image canvas{max-width:none;max-height:none;width:100%;height:100%;padding:16px;object-fit:contain;image-rendering:pixelated}
.hero-dome .dome-gallery-island .edge-fade{height:60px}
@media(min-width:1001px){.hero-dome{height:clamp(520px,32vw,760px)}.hero-dome .wall-shade{background:radial-gradient(ellipse at 50% 48%,#141416e6 0%,#141416a6 24%,#14141626 58%,#1414160d 100%),linear-gradient(0deg,#141416 0%,#14141600 18%,#14141600 88%,#14141666 100%)}}
@media(max-width:1000px){.hero-dome h1{font-size:48px}}
@media(max-width:700px){
  .hero-dome{height:420px;margin-bottom:24px}
  .hero-dome .hero-copy{max-width:none;width:100%}
  .hero-dome h1{font-size:36px;line-height:1.12;max-width:320px;margin-inline:auto}
  .hero-dome .hero-copy p{font-size:14px;line-height:1.5;margin-top:12px}
  .hero-dome .hero-copy>.button{margin-top:16px}
  .wall-shade{background:radial-gradient(ellipse at 50% 47%,#141416f5 0%,#141416de 36%,#14141659 78%,#14141633 100%),linear-gradient(0deg,#141416 0%,#14141600 22%,#14141600 84%,#14141680 100%)}
  .dome-gallery-island{inset:-24px -160px}
  .hero-dome .dome-gallery-island .item__image img,.hero-dome .dome-gallery-island .item__image canvas{padding:12px}
}
@media(prefers-reduced-motion:reduce){.dome-gallery-island{transition:none}}
.hero-compact{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-block:24px}
.hero-compact .hero-copy{text-align:left;min-width:0}
.hero-compact h1{font-size:40px;line-height:1.15}
.hero-compact .hero-copy p{margin:8px 0 0;font-size:16px;max-width:none}
.hero-compact>.button{flex-shrink:0}
.library-tools{display:flex;align-items:center;gap:12px}
.library-home{padding-top:0;padding-bottom:32px;border-top:0}
.library-home .section-head{margin-bottom:12px}
.library-home .library-tools{width:100%}
.library-home .search{flex:1;width:auto}
.preview-toggle{background:transparent;color:var(--secondary);font-weight:400;min-height:44px}
.preview-toggle:hover{background:var(--raised);color:var(--text)}
.library-home .filter-bar{padding-bottom:8px;align-items:center;gap:16px}
.library-home .result-count{margin:8px 0 12px}
.library-home .effect-grid{gap:20px 24px}
.library-home .card-preview{height:148px}

@media(max-width:1000px) and (min-width:701px){.hero-compact h1{font-size:34px}.hero-compact{gap:24px}.library-home .effect-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.library-home .filter-bar{flex-wrap:nowrap}.library-home .filter-chips{flex-wrap:nowrap;overflow-x:auto;min-width:0}.library-home .chip{flex-shrink:0}}
@media(max-width:700px){
  .hero-compact{align-items:flex-start;flex-direction:column;gap:16px;padding-block:24px}
  .hero-compact h1{font-size:28px;line-height:1.16}
  .hero-compact .hero-copy p{font-size:14px;line-height:1.5;margin:8px 0 0;max-width:none}
  .hero-compact>.button{min-height:40px;padding:8px 16px;font-size:13px}
  .library-home{padding-top:0;padding-bottom:32px}
  .library-home .library-tools{gap:8px}
  .preview-toggle{padding:8px 12px;min-width:44px}
  .preview-toggle span{display:none}
  .library-home .filter-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
  .library-home .filter-chips{flex-wrap:nowrap;overflow-x:auto;min-width:0;gap:4px;padding-bottom:4px}
  .library-home .chip{flex-shrink:0;padding-inline:8px;min-height:36px}
  .library-home .kind-filter select{font-size:12px;padding-inline:8px}
  .library-home .effect-grid{gap:20px 12px}
  .library-home .card-preview{height:120px}
}

@media(min-width:1600px){.library-home .card-preview{height:clamp(180px,13vw,260px)}}

@media(max-width:700px){.library-tools{width:100%;gap:8px}.library-tools .search{flex:1;min-width:0;width:auto}}

.library .chip.selected span{color:inherit}
.library-filters{position:relative;flex-shrink:0}
.library-filters summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius);color:var(--secondary);font-size:14px;list-style:none}
.library-filters summary::-webkit-details-marker{display:none}
.library-filters summary .icon{width:14px;height:14px;transform:rotate(90deg)}
.library-filters[open] summary,.library-filters summary:hover{background:var(--raised);color:var(--text)}
.library-filters[open] summary .icon{transform:rotate(-90deg)}
.library-filter-panel{position:absolute;z-index:10;inset:calc(100% + 8px) 0 auto auto;display:grid;gap:12px;width:min(272px,calc(100vw - 36px));padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.library-filter-panel label{display:grid;gap:4px;font-size:13px;color:var(--secondary)}
.library-filter-panel select{width:100%;font-size:14px}
@media(max-width:700px){
  .page-library .page-heading{padding-block:20px}
  .library:not(.library-home){padding-top:20px}
  .library:not(.library-home) .section-head{gap:12px;margin-bottom:12px}
  .library:not(.library-home) .section-head h2{font-size:24px}
  .library:not(.library-home) .filter-bar{gap:4px;padding-bottom:8px}
  .library:not(.library-home) .filter-chips{flex:1 1 100%}
  .library-tools{position:relative}
  .library-filters{position:static}
  .library .search kbd{display:none}
}
@media(max-width:360px){.library-filters summary{padding-inline:8px}.library-filters summary .icon{display:none}}

/* Match the ResizeObserver radius before hydration, including mobile overscan. */
.hero-dome{container-type:inline-size}
.dome-gallery-island .sphere-root{--radius:clamp(480px,min(80cqw,594px),720px)}
.hero-dome .dome-gallery-island .item__image canvas{position:absolute;inset:0}
@media(min-width:1001px){.dome-gallery-island .sphere-root{--radius:clamp(480px,min(80cqw,calc(clamp(520px,32vw,760px)*1.35)),1200px)}}
@media(max-width:700px){.dome-gallery-island .sphere-root{--radius:clamp(480px,min(calc((100cqw + 320px)*.8),631.8px),720px)}}

/* Detail editors use the available height for artwork, with transport at the bottom. */
@media(min-width:701px){
  .detail-wrap{max-width:1440px}
  .editor-full{--preview-height:clamp(360px,30vw,480px)}
  .editor-full .editor-body{grid-template-columns:minmax(0,1fr) clamp(240px,20vw,288px)}
  .editor-full .editor-view{display:flex;flex-direction:column;min-height:calc(var(--preview-height) + 60px)}
  .editor-full .editor-view>[data-panel]{flex:1;min-height:var(--preview-height);height:auto}
  .editor-full .stage img,.editor-full .stage canvas{position:absolute;inset:24px;width:calc(100% - 48px);height:calc(100% - 48px);max-width:none;max-height:none;object-fit:contain}
  .editor-full .transport{flex:0 0 auto;margin-top:auto}
  .editor-full .editor-options{display:flex;flex-direction:column}
  .editor-full .export-actions{margin-top:auto;padding-top:24px}
  .editor-full .sheet-panel{display:flex;flex-direction:column;align-items:center;justify-content:center}
  .editor-full .sheet-panel img{max-height:calc(var(--preview-height) - 64px)}
}

/* Account access follows the existing workspace typography and controls. */
.account-wrap{max-width:560px;margin:80px auto;min-height:45vh}
.account-panel h1{font-size:clamp(28px,4vw,36px);line-height:1.2;margin:0 0 20px}
.account-status{min-height:48px;line-height:1.6;margin:0 0 24px}
.account-google{width:100%;justify-content:center;gap:12px}
.account-google:disabled{opacity:.55;cursor:wait}
.account-details{margin:0 0 28px;display:grid;gap:20px}
.account-details div{display:grid;gap:6px}
.account-details dt{font-size:14px;opacity:.65}
.account-details dd{margin:0;overflow-wrap:anywhere}
.account-back{display:block;margin-top:32px}
@media(max-width:700px){.account-wrap{margin:48px auto;min-height:50vh}}

.workspace-entry{margin:24px 0;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.workspace-entry p{margin:0}
.my-assets{padding-top:48px;padding-bottom:80px;min-height:60vh}.my-assets-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:32px}.my-assets-heading h1{font-size:36px;line-height:1.2}.my-assets-heading p{color:var(--secondary);margin-top:8px}.my-assets-status{margin:20px 0;color:var(--secondary)}.my-assets-tools{display:flex;align-items:center;gap:24px;margin-bottom:24px;flex-wrap:wrap}.my-assets-tools label:first-child{flex:1;min-width:220px}.my-assets-tools input[type=search],.my-asset input{background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--text);font:inherit;padding:10px 12px;width:100%}.my-assets-tools input[type=checkbox]{accent-color:var(--accent)}.my-assets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.my-asset{border:1px solid var(--line);border-radius:8px;padding:12px;min-width:0}.my-asset-visual{height:150px;display:flex;align-items:center;justify-content:center}.my-asset-visual img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.my-asset-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.my-asset-heading h2{font-size:16px;overflow-wrap:anywhere}.my-asset-heading button{background:none;border:0;color:var(--accent);font-size:24px;cursor:pointer}.my-asset-meta,.my-asset-tags{font-size:13px;color:var(--secondary)}.my-asset details{margin:12px 0}.my-asset summary{cursor:pointer;color:var(--secondary);font-size:13px}.my-asset form{display:grid;gap:10px;padding-top:12px}.my-asset form label{font-size:12px;color:var(--secondary)}.my-asset form input{margin-top:4px}.my-asset .text-link{font-size:13px}@media(max-width:600px){.my-assets{padding-top:28px}.my-assets-heading{align-items:start;flex-direction:column}.my-assets-heading h1{font-size:28px}}

.hero-workspace{margin-left:12px}@media(max-width:600px){.hero-workspace{margin-left:0;margin-top:10px}}

.teams-page{padding-top:48px;padding-bottom:64px;min-height:65vh;max-width:900px}.teams-page h1{font-size:36px}.teams-page h2{font-size:24px;margin-top:28px}.teams-page h3{margin:24px 0 12px}.teams-page p{color:var(--secondary);margin:12px 0}.teams-page form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0}.teams-page label{display:grid;gap:6px;font-size:14px}.teams-page input,.teams-page select{padding:10px 12px;background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:6px;font:inherit}.teams-page article{padding:16px 0;border-bottom:1px solid var(--line)}.team-picker{max-width:360px}#team-invite-link,[data-invite-link]{width:100%}

[data-account-billing]{margin-bottom:28px}
[data-account-billing] h2{margin-bottom:12px}
[data-credit-purchase]{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
[data-credit-purchase] h3{margin-bottom:10px;font-size:18px}
[data-credit-purchase] p{margin:12px 0}
[data-buy-credits],[data-manage-subscription],[data-billing-retry]{margin-top:12px}
[data-checkout-status]:not(:empty){margin-top:12px}
[data-credit-purchase] label{display:block;margin:16px 0 8px}
[data-credit-quantity]{width:100%;padding:12px;background:var(--surface,#202022);color:inherit;border:1px solid #555;border-radius:6px;font:inherit}
.account-billing-help{font-size:14px;line-height:1.6;opacity:.8}

/* Public policy pages and consent links. */
.legal-content ul{padding-left:24px;margin-bottom:24px}.legal-content li{margin-bottom:12px;line-height:1.7}.legal-toc{padding:20px 24px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.legal-toc ul{margin:0;padding-left:20px}.legal-toc li:last-child{margin-bottom:0}.legal-content h2{scroll-margin-top:96px}.account-login-note a{text-decoration:underline;text-underline-offset:3px}

/* Pricing */
.pricing-plans{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:8px auto 0}
.pricing-plan{display:flex;flex-direction:column;gap:14px;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.pricing-plan.is-featured{border-color:var(--accent)}
.pricing-plan h2{font-size:18px;margin:0}
.pricing-amount{font-size:32px;font-weight:700;color:var(--text);margin:0}
.pricing-amount span{font-size:14px;font-weight:500;color:var(--muted)}
.pricing-plan ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;color:var(--secondary);font-size:14px;flex:1}
.pricing-plan .button{align-self:flex-start}
.pricing-table{width:100%;border-collapse:collapse;font-size:14px}
.pricing-table th,.pricing-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.pricing-table th{color:var(--muted);font-weight:600;font-size:12px}
@media (max-width:1040px){.pricing-plans{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.pricing-plans{grid-template-columns:1fr}.pricing-plan{padding:22px}}
.pricing-plan{position:relative}
.pricing-page{max-width:1120px;margin-inline:auto}.pricing-page .page-heading{max-width:736px;margin-inline:auto;text-align:center}.pricing-page .pricing-plans{margin:8px 0 0}.pricing-page .prose{padding-top:40px}
.pricing-table th:not(:first-child),.pricing-table td:not(:first-child){white-space:nowrap;text-align:right}
.account-plans{display:grid;gap:10px;margin:14px 0}
.account-plan{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.account-plan>span{grid-column:1;font-size:13px;color:var(--secondary)}
.account-plan>button,.account-plan>.account-plan-tag{grid-column:2;grid-row:1 / span 2}
.account-plan.is-current{border-color:var(--accent)}
.account-plan.is-chosen{border-color:var(--secondary)}
.account-plan-tag{font-size:12px;font-weight:600;color:var(--accent)}
@media (max-width:520px){.account-plan{grid-template-columns:1fr}.account-plan>button,.account-plan>.account-plan-tag{grid-column:1;grid-row:auto;justify-self:start}}

/* Custom generator guides reuse the article and library styles. */
.create-guide a.button.primary{color:var(--ink)}
.create-guide .card-link{text-decoration:none;color:var(--text)}

/* Workspace: projects | conversation | asset editor. Each zone keeps its own scroll, so nothing in the
   conversation moves the editor and the editor always names the asset it is editing. Tokens: studio.css :root. */
.workspace-page{overflow:hidden}
.workspace-page>.site-header,.workspace-page>.site-footer{display:none}
.workspace-page #main{height:100dvh}
.ws{--side:248px;--panel:0px;--thread:760px;height:100%;display:grid;grid-template-columns:var(--side) minmax(0,1fr) var(--panel);grid-template-areas:'side main panel';background:var(--bg);color:var(--text);transition:grid-template-columns .28s cubic-bezier(.22,1,.36,1)}
.ws[data-sidebar=closed]{--side:0px}
.ws[data-panel=open]{--panel:clamp(400px,34vw,500px)}
.ws ::selection{background:var(--accent);color:var(--ink)}
.ws button,.ws input,.ws textarea,.ws select{font:inherit;color:inherit}
.ws button{border:0;background:none;padding:0;color:var(--secondary);cursor:pointer}
.ws button:hover{color:var(--text)}
.ws button:disabled{cursor:not-allowed;opacity:.5}
.ws svg{width:18px;height:18px;display:block;flex-shrink:0}
.ws summary{list-style:none;cursor:pointer}
.ws summary::-webkit-details-marker{display:none}
.ws :is(button,summary,a,select,input,textarea,canvas):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ws :is(button,summary,select,a){transition:background-color .18s,border-color .18s,color .18s}
.ws [hidden]{display:none!important}
.ws [inert]{opacity:.55}
.ws input[type=range]{accent-color:var(--accent);cursor:pointer;min-width:0}
.ws select{background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:5px 26px 5px 9px;min-height:32px;font-size:12px;max-width:100%}
.ws-icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;flex-shrink:0}
.ws .ws-icon-button:hover{background:var(--raised)}
.ws .ws-icon-button[aria-pressed=true]{color:var(--accent)}
.ws :is(.ws-thread,.ws-panel-body,.ws-project-list,.ws-effect-results){scrollbar-width:thin;scrollbar-color:var(--line) transparent}

/* Projects: each project is one conversation */
.ws-sidebar{grid-area:side;min-width:0;overflow:hidden;display:flex;flex-direction:column;gap:4px;padding:12px 10px;background:#0a0b0c;border-right:1px solid var(--line)}
.ws[data-sidebar=closed] .ws-sidebar{visibility:hidden;border:0;padding:0}
.ws-sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 10px 6px}
.ws-brand{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;letter-spacing:-.03em;white-space:nowrap}
.ws-brand .smith-avatar{width:26px;height:26px}
.ws .ws-new-project{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:6px;color:var(--text);font-size:13px;font-weight:600;white-space:nowrap}
.ws .ws-new-project:hover{background:var(--surface)}
.ws-new-project svg{width:16px;height:16px}
.ws-sidebar-label{padding:16px 10px 6px;font-size:11px;font-weight:600;color:var(--muted)}
.ws-project-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:1px}
.ws .ws-project{display:flex;flex-direction:column;gap:2px;width:100%;padding:8px 10px;border-radius:6px;text-align:left}
.ws .ws-project:hover{background:var(--surface)}
.ws .ws-project[aria-current=true]{background:var(--raised);color:var(--text)}
.ws-project strong{font-size:13px;font-weight:500;color:var(--text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ws-project small{font-size:11px;color:var(--muted);max-width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ws-project[data-running=true] small{white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ws-sidebar-foot{display:flex;flex-direction:column;gap:2px;padding-top:10px;border-top:1px solid var(--line)}
.ws-sidebar-links a{display:flex;align-items:center;gap:10px;min-height:34px;padding:0 10px;border-radius:6px;font-size:13px;color:var(--secondary);white-space:nowrap}
.ws-sidebar-links a:hover{background:var(--surface);color:var(--text)}
.ws-sidebar-links svg{width:16px;height:16px}
.ws-sidebar-account{display:flex;align-items:center;gap:10px;padding:8px 6px 2px;min-width:0}
.ws-account{flex-shrink:0;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--raised);color:var(--accent);font-size:13px;font-weight:600}
.ws-storage{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws .ws-retry-sync{font-size:12px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.ws-scrim{display:none}

/* Conversation */
.ws-main{grid-area:main;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}
.ws-topbar{flex:0 0 52px;display:flex;align-items:center;gap:6px;padding:0 12px}
.ws-sidebar-open{display:none}
.ws[data-sidebar=closed] .ws-sidebar-open{display:inline-flex}
.ws-project-menu{position:relative;min-width:0}
.ws-project-menu>summary{display:flex;align-items:center;gap:6px;min-height:34px;padding:0 8px;border-radius:4px}
.ws-project-menu>summary:hover,.ws-project-menu[open]>summary{background:var(--surface)}
.ws-project-menu h1{font-size:14px;font-weight:600;max-width:min(420px,50vw);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ws-project-menu>summary svg{width:15px;height:15px;color:var(--muted)}
.ws-project-popover{position:absolute;z-index:10;left:0;top:calc(100% + 6px);width:300px;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:14px;box-shadow:0 12px 32px #0005}
.ws-project-popover label{display:block;font-size:12px;color:var(--secondary);margin-bottom:6px}
.ws-project-popover form>div{display:flex;gap:8px}
.ws-project-popover input{flex:1;min-width:0;padding:7px 9px;background:var(--bg);border:1px solid var(--line);border-radius:4px;font-size:13px}
.ws .ws-project-popover form button{padding:0 12px;border-radius:4px;background:var(--accent);color:var(--ink);font-size:12px;font-weight:600}
.ws-topbar-new{margin-left:auto}
.ws-thread{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.ws-thread-inner{width:min(var(--thread),100% - 48px);margin:0 auto;padding:20px 0 32px;display:flex;flex-direction:column;gap:30px}
.ws-messages{display:flex;flex-direction:column;gap:30px}
.ws-messages:empty{display:none}
.ws-turn{display:flex;flex-direction:column;gap:10px;min-width:0;margin:0}
.ws-turn-author{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--secondary)}
.ws-turn-author .smith-avatar{width:22px;height:22px}
.ws-turn-text{font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.ws-turn-user{align-items:flex-end}
.ws-turn-user .ws-turn-text{max-width:min(560px,85%);background:var(--surface);padding:10px 16px;border-radius:18px 18px 4px 18px}
.ws-turn-system .ws-turn-text{font-size:12px;color:var(--muted)}
.ws-turn-error .ws-turn-text{font-size:13px;color:#ffada7}
.ws .ws-source-download{align-self:flex-start;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:4px;font-size:12px}

/* Delivery card: fixed height, so the conversation never reflows when versions change */
.ws-card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);transition:border-color .2s,box-shadow .2s}
.ws-card[data-current]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ws-card[data-flash]{animation:ws-flash 1.1s cubic-bezier(.22,1,.36,1)}
@keyframes ws-flash{0%{box-shadow:0 0 0 1px var(--accent),0 0 0 10px #e9dfc740}100%{box-shadow:0 0 0 1px var(--accent),0 0 0 0 #e9dfc700}}
.ws .ws-card-art{height:124px;border-radius:4px;background-color:var(--canvas);background-image:conic-gradient(#161819 25%,transparent 0 50%,#161819 0 75%,transparent 0);background-size:16px 16px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ws-card-art img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;padding:6px}
.ws .ws-card-art:hover{outline:1px solid #747a7d}
.ws-card-body{display:flex;flex-direction:column;gap:8px;min-width:0;padding:4px 4px 2px 0}
.ws-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.ws-card-head strong{font-size:14px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ws-card-badge{flex-shrink:0;font-size:11px;font-weight:600;color:var(--ink);background:var(--accent);padding:2px 8px;border-radius:10px}
.ws-card-chips{display:flex;flex-wrap:wrap;gap:6px}
.ws .ws-chip{min-height:28px;padding:0 10px;border:1px solid var(--line);border-radius:14px;font-size:12px;font-variant-numeric:tabular-nums;display:inline-flex;align-items:center;gap:5px}
.ws .ws-chip:hover{border-color:#747a7d;color:var(--text)}
.ws .ws-chip[aria-current=true]{background:var(--text);border-color:var(--text);color:var(--ink)}
.ws-chip small{font-size:10px;opacity:.75}
.ws .ws-card-tune{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border-radius:4px;border:1px solid var(--line);color:var(--text);font-size:12px;font-weight:600}
.ws .ws-card-tune:hover{background:var(--raised)}
.ws-card-tune svg{width:16px;height:16px}

/* "Editing" pill: points to the card the editor belongs to while it is out of view */
.ws .ws-editing-pill{position:absolute;left:50%;transform:translateX(-50%);z-index:4;display:inline-flex;align-items:center;gap:8px;min-height:32px;max-width:min(420px,80%);padding:0 14px 0 10px;border:1px solid var(--accent);border-radius:16px;background:#151718f2;color:var(--text);font-size:12px;box-shadow:0 8px 24px #0006}
.ws-editing-pill[data-dir=up]{top:58px}
.ws-editing-pill[data-dir=down]{bottom:calc(var(--compose-h,150px) + 10px)}
.ws-editing-pill span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ws-editing-pill svg{width:15px;height:15px;color:var(--accent)}

/* Empty conversation */
.ws-thread:has([data-workspace-empty]:not([hidden])){flex:0 1 auto;margin-top:auto}
.ws-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.ws-intro-art{width:96px;height:96px;object-fit:contain;image-rendering:pixelated}
.ws-intro h2{font-size:clamp(28px,3vw,36px);font-weight:600;letter-spacing:-.035em;text-wrap:balance}
.ws-intro>p{font-size:15px;line-height:1.65;color:var(--secondary);max-width:46ch}
.ws-prompt-ideas{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ws .ws-prompt-ideas button{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:8px;font-size:13px}
.ws .ws-prompt-ideas button:hover{background:var(--surface);color:var(--text)}
.ws-prompt-ideas svg{width:15px;height:15px}
.ws .ws-prompt-ideas [data-browse-starters]{color:var(--accent)}
.ws-generation-preview [data-generation-frames]{width:min(100%,560px);max-height:240px;object-fit:contain;image-rendering:pixelated;background:var(--canvas);border:1px solid var(--line);border-radius:6px}
.ws-generation-preview figcaption{font-size:12px;color:var(--muted)}

/* Composer */
.ws-compose-area{flex-shrink:0;width:min(var(--thread),100% - 32px);margin:0 auto;padding:4px 0 max(14px,env(safe-area-inset-bottom))}
.ws-compose-area:has([data-prompt-ideas]:not([hidden])){margin-bottom:auto}
.ws-activity{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;margin-bottom:8px;padding:2px 4px 2px 12px;border:1px solid var(--line);border-radius:17px;background:var(--surface);font-size:12px;color:var(--secondary)}
.ws-activity-message{display:flex;align-items:center;gap:10px;min-width:0}
.ws-activity[data-state=error]{color:#ffada7}
.ws-activity[data-state=success]{color:var(--text)}
.ws-activity .ws-icon-button{width:28px;height:28px}
.ws-generation-pixels{display:none;align-items:center;gap:4px;color:var(--accent)}
.ws-activity[data-state=pending] .ws-generation-pixels{display:inline-flex}
.ws-generation-pixels i{width:5px;height:5px;background:currentColor;animation:ws-generate-frame 1.2s steps(1,end) infinite}
.ws-generation-pixels i:nth-child(2){animation-delay:.2s}
.ws-generation-pixels i:nth-child(3){animation-delay:.4s}
@keyframes ws-generate-frame{0%,100%{opacity:.3}30%,60%{opacity:1}}
.ws-reference{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:12px;color:var(--secondary)}
.ws-reference img{width:36px;height:36px;object-fit:contain;border-radius:3px;background:var(--raised)}
.ws-reference span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-composer{display:flex;flex-direction:column;border:1px solid #3b4043;border-radius:20px;background:var(--surface);transition:border-color .2s}
.ws-composer:focus-within{border-color:#8a8f92}
.ws-context{padding:10px 18px 0;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws .ws-composer textarea{resize:none;width:100%;min-height:44px;max-height:180px;padding:8px 18px 2px;border:0;background:transparent;font-size:15px;line-height:1.55;outline:none}
.ws textarea::placeholder{color:var(--muted)}
.ws-composer-bar{display:flex;align-items:center;gap:6px;padding:4px 8px 8px 10px}
.ws-effect-menu{position:relative}
.ws-effect-menu>summary{display:flex;align-items:center;gap:6px;min-height:32px;padding:0 10px 0 8px;border-radius:16px;font-size:12px;color:var(--secondary)}
.ws-effect-menu>summary:hover,.ws-effect-menu[open]>summary{background:var(--raised);color:var(--text)}
.ws-effect-menu>summary svg{width:16px;height:16px}
.ws-effect-popover{position:absolute;z-index:10;left:0;bottom:calc(100% + 8px);width:min(340px,calc(100vw - 40px));background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:14px;box-shadow:0 12px 32px #0005}
.ws-effect-popover label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}
.ws-effect-popover input{width:100%;padding:9px 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;font-size:13px}
.ws-effect-results{display:grid;gap:2px;max-height:min(320px,45vh);overflow:auto;margin-top:8px}
.ws .ws-effect-results button{display:flex;align-items:center;gap:12px;padding:6px 8px;border-radius:4px;font-size:13px;text-align:left}
.ws .ws-effect-results button:hover{background:var(--raised)}
.ws-effect-results img{width:40px;height:32px;object-fit:contain;image-rendering:pixelated;background:var(--canvas)}
.ws-effect-results p{padding:12px;font-size:13px;color:var(--secondary)}
.ws-generation-mode{display:flex}
.ws-generation-mode>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ws-generation-mode select{border-radius:16px;border-color:transparent;background:transparent}
.ws-generation-mode select:hover{background:var(--raised)}
.ws-generation-mode select:disabled{opacity:.6;cursor:wait}
.ws-thinking{align-items:center;gap:2px}
.ws-thinking>label{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:11px;color:var(--muted)}
.ws-thinking select{min-height:44px;padding-inline:8px;font-size:12px}
#ws-thinking-hint{display:none}
.ws-generation-note{display:block;margin:0}
.ws-usage{margin-left:auto;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.ws .ws-send{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);color:var(--ink)}
.ws .ws-send:hover{background:#fff2d8;color:var(--ink)}
.ws .ws-send:disabled{background:var(--raised);color:var(--muted);opacity:1}
.ws-usage:empty+.ws-send{margin-left:auto}
.ws-compose-notes{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 12px;padding:8px 2px 0;font-size:11px;line-height:1.5;color:var(--muted);text-align:center}
.ws-billing-receipt{font-variant-numeric:tabular-nums;color:var(--secondary)}
.ws-credit-warning{flex-basis:100%;padding:8px 10px;border:1px solid #695b42;border-radius:6px;background:#29241b;color:#f0cf92}
.ws-credit-warning a,.ws-agent-availability a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.ws-agent-availability{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding-top:8px;font-size:13px;color:var(--secondary)}
.ws-agent-availability a{display:inline-flex;align-items:center;min-height:36px;font-weight:600}

/* Asset editor panel */
.ws-panel{grid-area:panel;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:var(--surface);border-left:1px solid var(--line)}
.ws[data-panel=closed] .ws-panel{visibility:hidden;border:0;overflow:clip;scrollbar-gutter:auto}
.ws-panel-head{flex-shrink:0;display:flex;align-items:center;gap:10px;min-height:60px;padding:10px 10px 10px 14px;border-bottom:1px solid var(--line)}
.ws-panel-back{display:none}
.ws-panel-thumb{width:40px;height:40px;flex-shrink:0;border-radius:4px;background:var(--canvas);overflow:hidden}
.ws-panel-thumb img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.ws-panel-title{flex:1;min-width:0}
.ws-panel-title h2{font-size:14px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ws-panel-title p{display:flex;gap:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ws-asset-status{color:var(--accent)}
.ws-asset-status:empty{display:none}
.ws-panel-versions{flex-shrink:0;display:flex;gap:6px;overflow-x:auto;padding:10px 14px;border-bottom:1px solid var(--line)}
.ws-panel-versions:empty{display:none}
.ws-panel-body{flex:1;min-height:0;overflow:auto}
.ws-monitor{border-bottom:1px solid var(--line)}
.ws-tabs{display:flex;align-items:center;gap:18px;padding:0 14px}
.ws .ws-tabs button{padding:12px 0 10px;border-bottom:2px solid transparent;font-size:12px;font-weight:600;white-space:nowrap}
.ws .ws-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text)}
.ws-export-facts{margin-left:auto;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ws-stage{position:relative;height:clamp(220px,36vh,400px);overflow:hidden}
.ws-stage[data-background=dark]{background:#090b0c}
.ws-stage[data-background=light]{background:#e7e7e4}
.ws-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:12px}
.ws-preview canvas,.ws-poster{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.ws-preview canvas[data-zoom]{flex-shrink:0;max-width:none;object-fit:fill;margin:auto}
.ws-preview:has(canvas[data-zoom]){justify-content:flex-start;align-items:flex-start}
.ws-sheet{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;overflow:auto}
.ws-sheet img{object-fit:contain;image-rendering:pixelated;max-width:100%;max-height:calc(100% - 35px)}
.ws-sheet p{font-size:12px;color:var(--secondary)}
.ws-preview-loading{position:absolute;inset:0;display:grid;place-items:center;background:#101213cc;font-size:13px;pointer-events:none}
.ws-preview-error{position:absolute;left:12px;right:12px;bottom:12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:4px;font-size:13px}
.ws-preview-error button{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.ws-transport{display:flex;align-items:center;gap:6px;padding:8px 10px 8px 6px;border-top:1px solid var(--line)}
.ws-timeline{flex:1;min-width:60px;height:28px}
.ws-timeline canvas{display:block;width:100%;height:100%;cursor:pointer;border-radius:3px}
.ws-frame-count{min-width:58px;text-align:right;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.ws-transport select{min-height:30px;padding-right:22px}
.ws-timeline-legend{display:flex;align-items:center;gap:6px;padding:0 14px 10px;font-size:11px;color:var(--muted)}
.ws-key{width:10px;height:10px;border-radius:2px;margin-left:8px}
.ws-key:first-child{margin-left:0}
.ws-key-hold{background:#3a3f42}
.ws-key-stop{background:#d9a35b}
.ws-adjustments{display:flex;flex-direction:column}
.ws-group{border:0;margin:0;padding:16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:12px;min-width:0;position:relative}
.ws-group>legend{float:left;width:100%;padding:0;font-size:12px;font-weight:600;color:var(--text);line-height:20px}
.ws-group>legend+*{clear:both}
.ws .ws-group-reset{position:absolute;top:10px;right:10px;width:30px;height:30px}
.ws-group-reset svg{width:15px;height:15px}
.ws-palette>div{display:flex;flex-direction:column;gap:10px}
.ws-color-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ws-color-group-name{flex-basis:100%;font-size:11px;color:var(--muted)}
.ws-palette>div>span{font-size:12px;color:var(--muted);line-height:1.5}
.ws-swatch{display:block;width:26px;height:26px;position:relative;flex-shrink:0}
.ws-swatch::before{content:'';display:block;width:100%;height:100%;background:var(--swatch);border-radius:50%;border:1px solid #f0ede530}
.ws-swatch input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;padding:0;border:0}
.ws-swatch:hover::before{transform:scale(1.08)}
.ws-swatch:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px;border-radius:50%}
.ws-row{display:grid;grid-template-columns:84px minmax(0,1fr) 44px;align-items:center;gap:10px;font-size:12px;color:var(--secondary)}
.ws-row output{text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
.ws-row-select{grid-template-columns:84px minmax(0,1fr)}
.ws-row input:disabled{opacity:.4;cursor:not-allowed}
.ws-timing{display:flex;flex-direction:column;gap:12px}
.ws-motion-actions{display:flex;flex-wrap:wrap;gap:8px}
.ws-color-note{font-size:11px;color:var(--secondary);line-height:1.5;padding:8px 10px;border:1px solid #d9a35b55;border-radius:8px;background:#d9a35b12}
.ws-color-note[hidden]{display:none}
.ws-color-note button{color:var(--accent);text-decoration:underline;text-underline-offset:2px;font-size:11px}
.ws-hue[hidden]{display:none}
.ws-timing-note{font-size:11px;color:var(--muted);line-height:1.5}
.ws-timing-note:empty{display:none}
.ws .ws-flip{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:0 12px;border:1px solid var(--line);border-radius:15px;font-size:12px}
.ws .ws-flip:hover{background:var(--raised)}
.ws .ws-flip[aria-pressed=true]{color:var(--ink);background:var(--accent);border-color:var(--accent)}
.ws-flip svg{width:15px;height:15px}
.ws-parameters label{display:grid;grid-template-columns:84px minmax(0,1fr) 44px;align-items:center;gap:10px;font-size:12px;color:var(--secondary)}
.ws-parameters output{text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
.ws-parts{gap:8px}
.ws-parts-note{font-size:11px;color:var(--muted);line-height:1.5;margin:0}
.ws-part{border:1px solid var(--line);border-radius:6px;background:transparent}
.ws-part>summary{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;font-size:12px;font-weight:600;color:var(--text);cursor:pointer;list-style:none}
.ws-part>summary::-webkit-details-marker{display:none}
.ws-part>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s;flex-shrink:0;opacity:.7}
.ws-part[open]>summary::before{transform:rotate(45deg)}
.ws-part.is-changed>summary::after{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:auto}
.ws-part.is-off>summary{color:var(--muted);text-decoration:line-through}
.ws-part-body{display:flex;flex-direction:column;gap:10px;padding:4px 12px 12px}
.ws-part-body label{display:grid;grid-template-columns:84px minmax(0,1fr) 44px;align-items:center;gap:10px;font-size:12px;color:var(--secondary)}
.ws-part-body output{text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
.ws-part-body .ws-part-switch{display:flex;gap:8px;color:var(--text)}
.ws-part-switch input{width:16px;height:16px;accent-color:var(--accent);margin:0}
.ws .ws-part-reset{align-self:flex-start;font-size:11px;color:var(--secondary);text-decoration:underline;text-underline-offset:2px}
.ws-enhance{gap:6px;font-size:11px;color:var(--muted);border-bottom:0}
.ws .ws-enhance button{min-height:34px;border:1px solid var(--line);border-radius:4px;color:var(--text);font-size:12px;font-weight:600}
.ws .ws-enhance button:hover:not(:disabled){background:var(--raised)}
.ws-panel-foot{flex-shrink:0;display:flex;flex-direction:column;gap:10px;padding:12px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.ws-draft-actions{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text)}
.ws-draft-actions span{margin-right:auto}
.ws .ws-draft-actions button{min-height:30px;padding:0 10px;border:1px solid var(--line);border-radius:4px;font-size:12px;font-weight:600}
.ws .ws-draft-actions .ws-save-version{background:var(--text);border-color:var(--text);color:var(--ink)}
.ws-export-options{display:flex;gap:8px}
.ws-export-options select{flex:1;min-height:38px}
.ws .ws-download{display:flex;gap:8px;align-items:center;justify-content:center;min-height:38px;padding:0 16px;border-radius:4px;background:var(--accent);color:var(--ink);font-size:13px;font-weight:600}
.ws .ws-download:hover:not(:disabled){background:#fff2d8;color:var(--ink)}

/* Builds without accounts: library editing only */
.ws[data-ai=off] :is(.ws-composer textarea,.ws-send,.ws-generation-mode,.ws-usage,.ws-context,.ws-compose-notes,.ws-agent-availability,.ws-enhance,.ws-prompt-ideas [data-example],.ws-account){display:none}
.ws-noscript{padding:24px;background:var(--surface)}

/* Narrow desktops: the editor takes the projects column's place */
@media(max-width:1279px){
  .ws[data-panel=open]{--side:0px}
  .ws[data-panel=open] .ws-sidebar{visibility:hidden;border:0;padding:0}
  .ws[data-panel=open] .ws-sidebar-open{display:inline-flex}
}
/* Tablets and phones: projects become a drawer, the editor a full-screen sheet */
@media(max-width:899px){
  .ws,.ws[data-panel=open]{grid-template-columns:minmax(0,1fr);grid-template-areas:'main'}
  .ws-sidebar,.ws[data-panel=open] .ws-sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:min(300px,86vw);visibility:visible;padding:12px 10px;border-right:1px solid var(--line);transform:translateX(-102%);transition:transform .28s cubic-bezier(.22,1,.36,1)}
  .ws[data-sidebar=drawer] .ws-sidebar{transform:none}
  .ws[data-sidebar=drawer] .ws-scrim{display:block;position:fixed;inset:0;z-index:20;background:#000a}
  .ws-sidebar-open,.ws[data-sidebar=closed] .ws-sidebar-open{display:inline-flex}
  .ws-sidebar [data-sidebar-toggle]{display:none}
  .ws-panel,.ws[data-panel=closed] .ws-panel{position:fixed;inset:0;z-index:25;visibility:visible;border:0;transform:translateY(102%);transition:transform .3s cubic-bezier(.22,1,.36,1)}
  .ws[data-panel=open] .ws-panel{transform:none}
  .ws-panel-back{display:inline-flex}
  .ws-panel-head [data-panel-close]{display:none}
  .ws-thread-inner{width:calc(100% - 28px)}
  .ws-compose-area{width:calc(100% - 20px)}
  .ws .ws-composer textarea{font-size:16px}
}
@media(max-width:560px){
  .ws-card{grid-template-columns:120px minmax(0,1fr);gap:12px}
  .ws .ws-card-art{height:96px}
  .ws-effect-menu>summary span{display:none}
  .ws-intro-art{width:72px;height:72px}
  .ws .ws-prompt-ideas button,.ws-agent-availability a{min-height:44px}
  .ws-turn-text{font-size:14px}
}
@media(max-width:479px){
  .ws-composer-bar{flex-wrap:wrap}
  .ws-composer-bar .ws-send{margin-left:auto;flex-shrink:0}
  .ws-usage{order:1;flex:0 0 100%;margin-left:0;text-align:left;padding:2px 8px 0}
  .ws-usage:empty{display:none}
}
@media(prefers-reduced-motion:reduce){
  .ws,.ws-sidebar,.ws-panel,.ws :is(button,summary,a,select),.ws-composer,.ws-card{transition:none}
  .ws-card[data-flash],.ws-generation-pixels i{animation:none}
}
/* Runs belong to the conversation; the editor stays available beside them. */
.ws-run-card{border:1px solid var(--line);border-radius:8px;padding:16px;margin-block:24px;min-width:0;overflow-wrap:anywhere}
.ws-run-head{position:relative;padding-right:96px;margin-bottom:12px;min-height:32px}
.ws .ws-run-stop{position:absolute;right:0;top:0;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--secondary);font-size:12px;cursor:pointer}
.ws .ws-run-stop:hover{color:var(--text);border-color:var(--secondary)}
.ws .ws-run-stop:disabled{opacity:.5;cursor:default}
.ws-run-card .ws-run-meta{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;margin:0}
.ws-run-card .ws-run-current{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 2px;color:var(--text)}
.ws-run-stop-space{position:absolute;right:0;top:0;width:44px;height:44px}
.ws-run-timeline{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ws-run-timeline li{border-top:1px solid var(--line);padding-top:10px;min-width:0}
.ws-run-card p{margin:0 0 6px}
.ws-run-card li p{font-size:13px;line-height:1.6;color:var(--secondary)}
.ws-run-card summary{min-height:44px;cursor:pointer;display:flex;align-items:center;font-size:12px;color:var(--secondary)}
.ws-run-card summary:hover{color:var(--text)}
.ws-run-timeline li>p{display:inline}
.ws-run-detail{display:inline;margin-inline-start:8px}
.ws-run-card .ws-run-detail>summary{display:inline-flex;min-height:44px;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.ws-run-detail[open]{display:block;margin-inline-start:0}
.ws-run-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;font-size:12px;color:var(--secondary);background:var(--well);padding:12px}
.ws-run-older{margin-bottom:12px}
.ws-live-preview{margin:0;min-width:0;position:relative}
.ws-run-hero{margin-bottom:4px}
.ws-run-steps{margin-top:8px;border-top:1px solid var(--line)}
.ws-run-steps[open]>summary{margin-bottom:8px}
.ws .ws-live-preview>button,.ws .ws-draft-thumb>button{display:block;width:100%;padding:0;min-height:44px;overflow:hidden;border:1px solid var(--line);border-radius:4px}
.ws-draft-viewport{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;height:360px;background-color:var(--well)}
.ws-draft-viewport canvas{flex:none;image-rendering:pixelated;max-width:none;max-height:none}
.ws-draft-viewport img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}
.ws-draft-thumb figcaption{font-size:12px;color:var(--secondary);margin-top:8px}
.ws-run-hero figcaption{display:none}
.ws-draft-thumb{margin:8px 0;max-width:100px}
.ws-draft-thumb .ws-draft-viewport{height:64px;overflow:hidden}
.ws .ws-run-view{min-height:44px;padding:8px 0;color:var(--accent);text-decoration:underline;text-underline-offset:4px;text-align:left}
.ws-run-notice{font-size:12px;line-height:1.6;color:var(--secondary);padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:4px;margin-bottom:8px}
.ws .ws-run-notice button{display:inline-block;min-height:44px;color:var(--accent);text-decoration:underline;text-underline-offset:4px;padding-inline:6px}
.ws-project[data-running=true] small{color:var(--accent)}
.ws .ws-send[aria-disabled=true],.ws [data-enhance][aria-disabled=true]{opacity:.6}
.ws-mobile-run{display:none}
.ws-run-cancel{margin-right:-96px;font-size:13px;color:var(--secondary)}
.ws-run-cancel p{margin:0 0 8px}
.ws .ws-run-cancel button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:4px}
.ws .ws-run-cancel .ws-run-stop{position:static}
.ws .ws-run-keep{margin-left:8px;color:var(--text)}
.ws-draft-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;margin:0;background:#0a0c0d;color:#f0ede5;overflow:hidden;padding:64px 16px 16px}
.ws-draft-dialog::backdrop{background:#0a0c0d}
.ws-draft-dialog>button{position:fixed;top:8px;right:16px;min-height:44px;padding:8px 16px;background:#202325;color:#f0ede5;border:1px solid #747a7d;border-radius:4px;cursor:pointer}
.ws-draft-dialog canvas{display:block;image-rendering:pixelated;margin:auto;max-width:none}
.ws-draft-dialog .ws-draft-viewport{height:100%}
.ws-draft-dialog img{display:block;max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated;margin:auto}
@media(max-width:899px){
  .ws .ws-mobile-run:not([hidden]){display:block;flex-shrink:0;min-height:44px;width:100%;padding:8px 16px;background:var(--accent);color:var(--ink);text-align:left;font-size:13px}
  .ws[data-panel=closed] .ws-panel{visibility:hidden}
  .ws[data-panel=open] .ws-panel{visibility:visible}
  .ws-run-card{padding:14px;margin-block:18px}
  .ws-draft-viewport{height:280px}
  .ws .ws-icon-button,.ws .ws-send,.ws .ws-chip,.ws .ws-card-tune,.ws .ws-part-reset,.ws .ws-new-project,.ws [data-project-rename] button,.ws .ws-motion-actions button,.ws .ws-draft-actions button,.ws .ws-download,.ws .ws-enhance button,.ws .ws-prompt-ideas button,.ws summary,.ws select,.ws input[type=range]{min-height:44px}
  .ws .ws-chip{min-width:44px;justify-content:center}
  .ws .ws-icon-button,.ws .ws-send{min-width:44px}
  .ws-swatch{width:44px;height:44px}
  .ws-swatch::before{width:26px;height:26px;margin:9px}
  .ws-main,.ws-thread,.ws-panel,.ws-run-card{min-width:0}
}

@font-face{font-family:Manrope;src:url('/assets/fonts/manrope.woff2') format('woff2'),url('/assets/fonts/manrope.ttf') format('truetype');font-weight:200 800;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#0d0f10;--surface:#151718;--raised:#202325;--line:#303436;--text:#f0ede5;--secondary:#b8bcbf;--muted:#9bA1a5;--accent:#e9dfc7;--ink:#151718;--canvas:#111314;--canvas-text:#eeeae1;--radius:4px}
body{font-family:Manrope,'Segoe UI',sans-serif;font-size:14px;line-height:1.65}
*{scrollbar-color:#5c6265 var(--bg)}
textarea{font:inherit;caret-color:var(--accent)}
h1,h2,h3{font-weight:700;letter-spacing:-.025em}h1{line-height:1.08}p{line-height:1.65}
.wrap{width:min(1320px,calc(100% - 80px))}
.button{min-height:44px;border-radius:4px;font-size:13px;font-weight:700;padding:10px 18px;gap:10px;transition:background .18s,color .18s,border-color .18s}
.button.primary{background:var(--accent);border-color:var(--accent);color:var(--ink)}.button.primary:hover{background:#fff2d8;border-color:#fff2d8;color:var(--ink)}
.button.secondary{background:var(--surface);color:var(--text);border-color:var(--line)}.button.secondary:hover{background:var(--raised);border-color:#747a7d;color:var(--text)}
.text-link{color:var(--accent);font-weight:600}.text-link:hover{text-decoration:underline}
.smith-avatar{object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.site-header{background:var(--bg);border-bottom:1px solid var(--line)}.header-inner{height:84px;gap:40px}
.brand{font-size:23px;font-weight:600;letter-spacing:-.04em;gap:10px}.brand-studio{color:var(--text)}.brand .smith-avatar{width:40px;height:44px}
.desktop-nav{gap:36px;margin-left:auto;margin-right:20px}.desktop-nav a{font-size:14px;font-weight:600;padding:12px 0;color:var(--secondary)}.desktop-nav a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:9px}.header-account{min-width:100px}
.site-footer{background:var(--surface);border-top:1px solid var(--line);margin-top:0}.footer-top{padding-block:36px}.footer-bottom{padding-block:22px}.footer-top .brand{font-size:22px}.footer-top p{font-size:14px}.footer-bottom nav{flex-wrap:wrap;gap:20px}
/* Library art keeps a dark, neutral ground; form controls use the same neutral palette. */
.checker{background-color:#23222c;background-image:conic-gradient(#ffffff03 25%,transparent 0 50%,#ffffff03 0 75%,transparent 0);background-size:24px 24px}
.card-preview,.collection-art{border-radius:6px}.effect-card .card-title h3{font-weight:700}.effect-card:hover .card-title h3{color:var(--accent)}.card-meta{color:var(--muted)}.editor-tabs button[aria-selected=true]{color:var(--accent)}.stage-corner,.sheet-panel p{color:#d0cbd9}.code-panel,.prose pre{background:#25222f;color:#eeeaf4}.prose pre code{color:inherit}.chip.selected{background:var(--accent);color:var(--ink)}.search{background:var(--surface)}
/* Account */
.account-wrap{max-width:1080px;display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center;margin:68px auto 80px;min-height:520px}.account-welcome{align-self:start;padding-top:24px}.account-welcome>.smith-avatar{width:96px;height:108px;margin-bottom:24px}.account-welcome h2{font-size:46px;line-height:1.15;font-weight:600}.account-welcome>p{font-size:15px;max-width:34ch;margin-top:20px}.account-examples{display:flex;gap:12px;margin-top:30px;margin-bottom:22px}.account-examples img{width:80px;height:80px;object-fit:contain;background:var(--canvas);border-radius:4px;image-rendering:pixelated}.account-panel{padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.account-panel h1{font-size:28px;margin-bottom:12px}.account-status{font-size:13px;min-height:0;margin-bottom:24px}.account-google{background:#fff!important;color:#151718!important;border-color:#fff!important;min-height:48px}.account-google:hover{background:#e9dfc7!important;border-color:#e9dfc7!important}.account-google .icon{width:20px;height:20px}.account-login-note{font-size:12px;line-height:1.7;margin-top:20px}.account-back{margin-top:26px;font-size:12px}.account-panel:has([data-signed-in]:not([hidden])){padding:28px}.account-wrap:has([data-signed-in]:not([hidden])){align-items:start}.account-details{margin-bottom:28px;gap:16px}.account-details dt{opacity:1;font-size:12px}.account-details dd{font-size:14px;font-weight:600}.account-panel [data-account-billing]{border-block:1px solid var(--line);padding-block:24px;margin-bottom:24px}.account-panel [data-account-billing] h2{font-size:20px}.account-panel [data-credit-balance]{font-size:22px;color:var(--accent);font-weight:700}.account-panel [data-subscription-status]{font-size:15px;margin-top:20px}.account-billing-help{opacity:1;font-size:12px;margin-top:10px}.account-panel [data-credit-purchase]>p{font-size:13px;margin-top:10px}.plan-details{margin:16px 0;font-size:12px}.plan-details summary{color:var(--accent);min-height:32px}.account-panel [data-account-billing] .button{margin:4px 3px 4px 0;font-size:12px}.auth-retry{display:block;padding:10px 0;color:var(--accent);text-decoration:underline}.account-panel [data-checkout-status]{font-size:12px;margin-top:10px}
/* Personal assets */
.my-assets{padding-top:44px;min-height:calc(100dvh - 290px)}.my-assets-heading{align-items:center;margin-bottom:32px}.my-assets-heading h1{font-size:38px}.my-assets-heading p{font-size:14px}.assets-navigation{display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:26px;font-size:13px}.assets-navigation>span{font-weight:700;color:var(--accent)}.assets-navigation a{color:var(--secondary);margin-left:auto}.assets-navigation .icon{width:14px}
.my-assets-tools{gap:12px;margin-bottom:18px}.my-assets-tools label:first-child{min-width:200px;flex:1}.my-assets-tools .asset-search{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);padding-left:12px;border-radius:4px;color:var(--muted)}.asset-search input[type=search]{border:0;background:transparent;outline-offset:0}.my-assets-tools select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:4px;min-height:44px;padding:8px 28px 8px 12px;max-width:180px;font-size:13px}.asset-favorites{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;padding-inline:8px}.asset-favorites input{width:16px;height:16px}.assets-result-line{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px;font-size:12px}.assets-result-line button{color:var(--accent);font-size:12px;min-height:32px}.my-assets-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px}.my-asset{border:0;border-radius:0;background:transparent;padding:0}.my-asset-visual{height:200px;border-radius:6px;overflow:hidden;position:relative}.my-asset-visual img{padding:14px}.my-asset-heading{margin-top:14px;gap:8px}.my-asset-heading h2{font-size:15px;line-height:1.4}.my-asset-heading button{min-width:36px;min-height:36px;display:grid;place-items:center}.my-asset-meta{font-size:12px;margin-top:2px}.my-asset-tags{font-size:12px;color:var(--accent);margin-top:4px}.my-asset details{border-bottom:1px solid var(--line);padding-bottom:10px;margin:12px 0}.my-asset summary{font-size:12px;min-height:24px}.my-asset .text-link{font-size:12px}.asset-preview-error{padding:20px;text-align:center;font-size:12px;color:#b8bcbf}.assets-more{display:flex;margin:36px auto 0}.assets-empty,.assets-signin{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:50px 20px 70px}.assets-empty h2,.assets-signin h2{font-size:26px}.assets-empty p,.assets-signin p{max-width:46ch;font-size:14px}.assets-empty .smith-avatar,.assets-signin .smith-avatar{margin-bottom:12px}.assets-signin>.text-link{font-size:12px}.my-assets-status{font-size:13px}






@media(min-width:1600px){.wrap{width:min(1440px,calc(100% - 160px))}}
@media(max-width:1150px){.wrap{width:calc(100% - 48px)}.account-wrap{gap:48px}.account-panel{padding:28px}.account-welcome h2{font-size:40px}}

@media(max-width:700px){.wrap{width:calc(100% - 36px)}.header-inner{height:68px;gap:16px}.brand{font-size:20px;gap:8px}.brand .smith-avatar{width:32px;height:36px}.desktop-nav,.header-account{display:none}.mobile-nav>summary{min-height:40px;border:0;padding:8px;font-size:12px;gap:8px}.mobile-nav>summary .icon{width:14px;transform:rotate(90deg)}.mobile-nav nav{background:var(--surface);box-shadow:0 14px 30px #0008;border:0;border-radius:6px}.mobile-nav nav a{font-size:13px;min-height:44px}
.footer-top{padding-block:26px}.footer-bottom{font-size:12px;gap:20px}.footer-bottom nav{gap:16px}.footer-top>a:last-child{font-size:12px}
.account-wrap{grid-template-columns:1fr;gap:28px;margin-block:30px 44px;min-height:0}.account-welcome{padding:0;display:grid;grid-template-columns:60px 1fr;gap:0 16px;align-items:center}.account-welcome>.smith-avatar{width:58px;height:68px;grid-row:1/3;margin:0}.account-welcome h2{font-size:27px}.account-welcome h2 br{display:none}.account-welcome>p{font-size:12px;margin-top:8px;max-width:none}.account-examples,.account-welcome>.text-link{display:none}.account-panel{padding:26px 22px}.account-panel h1{font-size:25px}.account-panel:has([data-signed-in]:not([hidden])){padding:24px 20px}.account-status{font-size:12px}.account-login-note{font-size:12px}.account-details dd{font-size:13px}
.my-assets{padding-top:30px;padding-bottom:44px}.my-assets-heading{align-items:start;gap:20px;margin-bottom:26px}.my-assets-heading h1{font-size:32px}.my-assets-heading p{font-size:12px}.my-assets-heading .button{font-size:12px}.assets-navigation{margin-bottom:20px;font-size:12px}.my-assets-tools{gap:10px}.my-assets-tools label:first-child{flex:1 0 100%;min-width:0}.my-assets-tools select{font-size:12px;max-width:140px;padding-inline:8px;min-height:40px}.asset-favorites{font-size:12px;padding:0;min-height:40px;margin-left:auto}.my-assets-tools label:last-child{margin-left:auto}.my-assets-tools input[type=search]{font-size:12px;min-height:44px}.my-assets-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.my-asset-visual{height:150px}.my-asset-visual img{padding:6px}.my-asset-heading h2{font-size:12px}.my-asset-heading{gap:2px;margin-top:8px}.my-asset-heading button{min-width:30px}.my-asset-meta,.my-asset-tags{font-size:12px}.my-asset summary{font-size:12px}.my-asset .text-link{font-size:12px}.my-asset-heading svg{width:18px}.assets-empty,.assets-signin{padding:35px 10px 50px}.assets-empty h2,.assets-signin h2{font-size:24px}.assets-empty p,.assets-signin p{font-size:13px}.assets-result-line{font-size:12px}

}



/* Direction C: quiet black surfaces, clear tools and one focused canvas. */
:root{--radius:4px}body{font-size:14px;line-height:1.6}h1,h2,h3{font-weight:600}.button{font-weight:600;border-radius:4px}.header-inner{height:72px}.brand{font-size:21px}.desktop-nav{gap:30px}.site-header,.site-footer{background:var(--bg)}.header-account{min-width:94px}.checker{background-color:#101213;background-image:conic-gradient(#161819 25%,transparent 0 50%,#161819 0 75%,transparent 0);background-size:24px 24px}.category-intro{max-width:68ch;margin-top:14px}.workspace-entry{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.workspace-entry .button{flex-shrink:0}.card-preview,.editor,.collection-card,.collection-art{border-radius:4px}.account-panel{border-radius:6px;background:var(--surface)}.account-welcome h2{font-weight:500}.my-assets-grid{gap:30px 24px}.my-asset-visual{border-radius:3px;border:1px solid var(--line)}.my-asset-heading h2{font-weight:500}.asset-search{border-radius:4px}.my-assets-tools input[type=search]{min-height:44px}.account-login-note{font-size:12px}




@media(max-width:700px){.header-inner{height:64px}.account-login-note{font-size:12px}.my-assets-tools input[type=search]{font-size:16px}}


.prose p,.prose ul,.prose ol{max-width:72ch}
/* The Smith mark is flat brand artwork; only VFX previews use pixel rendering. */
.smith-avatar{image-rendering:auto;aspect-ratio:1;object-fit:contain}
.brand .smith-avatar{width:32px;height:32px}

.account-welcome>.smith-avatar{width:64px;height:64px}



.assets-empty .smith-avatar,.assets-signin .smith-avatar{width:48px;height:48px}
@media(max-width:700px){.brand .smith-avatar{width:28px;height:28px}.account-welcome>.smith-avatar{width:48px;height:48px}}

/* Home keeps the site shell and design tokens scoped to this route. */
.page-home {
  --hp-surface: #181818;
  --hp-panel: #1f1f1f;
  --hp-stage: #000;
  --hp-ink: #f5f2eb;
  --hp-secondary: #ccc8c1;
  --hp-muted: #aaa59d;
  --hp-rule: #313131;
  --hp-outline: #817a6e;
  --hp-accent: #e9dfc7;
  --hp-hover: #fff2d8;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font: 400 16px/24px Manrope, 'Segoe UI', sans-serif;
}

.page-home :focus-visible { outline-color: var(--hp-accent); }
.hp-wrap { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
.hp figure { margin: 0; }
.hp p { text-wrap: pretty; }
.hp-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.hp-caption { color: var(--hp-muted); font-size: 12px; line-height: 16px; }
.hp-body { color: var(--hp-secondary); max-width: 44ch; }

.hp-primary, .hp-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease);
}

.hp-primary { min-height: 48px; background: var(--hp-accent); color: var(--hp-surface); font-weight: 600; }
.hp-primary:hover { background: var(--hp-hover); }
.hp-quiet { background: transparent; color: var(--hp-secondary); font-size: 14px; line-height: 20px; }
.hp-quiet:hover { background: #272727; color: var(--hp-ink); }
.hp-primary:active, .hp-quiet:active { transform: scale(.98); }

.hp-header { position: sticky; top: 0; z-index: 10; border: 0; background: #181818ed; backdrop-filter: blur(16px); }
.hp-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  border-bottom: 1px solid var(--hp-rule);
}

.page-home .brand { gap: 8px; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.04em; width: fit-content; }
.page-home .brand-studio { color: inherit; }
.page-home .brand .smith-avatar { width: 36px; height: 36px; object-fit: contain; }
.hp-nav { display: flex; gap: 32px; }
.hp-nav a, .hp-account { color: var(--hp-secondary); font-size: 14px; line-height: 20px; }
.hp-nav a:hover, .hp-account a:hover { color: var(--hp-hover); }
.hp-header-actions { display: flex; align-items: center; justify-self: end; gap: 16px; white-space: nowrap; }
.hp-account a { display: inline-flex; align-items: center; min-height: 44px; }
.hp-workspace-link { border-color: var(--hp-outline); color: var(--hp-accent); font-weight: 600; }
.hp-workspace-link:hover { color: var(--hp-hover); }
.hp-workspace-link .icon { width: 16px; height: 16px; }
.hp-header .hp-menu { display: none; }

.hp-hero {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: 48px;
  padding-block: 96px;
  min-height: 660px;
}

.hp-hero-copy { display: grid; justify-items: start; gap: 24px; max-width: 680px; }
.hp-hero h1 {
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -.055em;
  background: linear-gradient(90deg, #fff, #9b9b9b);
  background-clip: text;
  color: transparent;
}

.hp-lead { font-size: 18px; line-height: 28px; color: var(--hp-secondary); max-width: 38ch; }
.hp-hero-actions { display: grid; justify-items: start; gap: 12px; margin-top: 8px; }
.hp-hero-art { min-width: 0; }
.hp-hero-stage { aspect-ratio: 360 / 224; }
.hp-hero-stage img, .hp-hero-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.hp-figure-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hp-rule); padding-top: 12px; }
.hp-figure-caption > div { display: grid; gap: 2px; }
.hp-figure-caption a:hover { color: var(--hp-accent); }
.hp-play { white-space: nowrap; padding-right: 0; }
.hp [role=status]:not(:empty) { margin-top: 8px; }

.hp-chapter { padding-block: 96px; border-top: 1px solid var(--hp-rule); }
.hp-chapter h2, .hp-endcap h2 { font-size: 48px; line-height: 48px; letter-spacing: -.055em; font-weight: 600; }
.hp-work { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 96px; align-items: center; scroll-margin-top: 96px; }
.hp-work-copy .hp-body, .hp-export-copy .hp-body { margin-top: 16px; }
.hp-case-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 372px;
  aspect-ratio: 5 / 3;
  background: var(--hp-stage);
  border-radius: 8px;
  overflow: hidden;
}

.hp-case-stage img { width: min(80%, 496px); height: auto; image-rendering: pixelated; }
.hp-case .hp-figure-caption { margin-top: 16px; }
.hp-layer-switch { border-color: var(--hp-outline); flex-shrink: 0; }
.hp-layer-switch[aria-pressed=false] { background: var(--hp-panel); }
.hp-layer-switch[aria-pressed=true] .hp-shards-off,
.hp-layer-switch[aria-pressed=false] .hp-shards-on { display: none; }
.hp-steps { list-style: none; margin: 32px 0 0; padding: 0; }
.hp-steps li { display: grid; gap: 4px; padding-block: 12px; border-top: 1px solid var(--hp-rule); }
.hp-steps p { font-size: 14px; line-height: 20px; color: var(--hp-secondary); }
.hp-steps strong { color: var(--hp-ink); }

.hp-statement { background: var(--hp-panel); text-align: center; padding-block: 96px; }
.hp-statement h2 { max-width: 680px; margin-inline: auto; font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -.055em; }
.hp-statement span { display: inline-block; }
.hp-statement .is-primed span { opacity: .3; }
.hp-statement .is-primed .is-visible { opacity: 1; transition: opacity .7s var(--ease); }

.hp-exports { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: 96px; }
.hp-downloads { display: grid; justify-items: start; margin-top: 24px; }
.hp-downloads a { padding-left: 0; }
.hp-downloads .icon { color: var(--hp-accent); }
.hp-sheet-stage { display: grid; place-items: center; aspect-ratio: 2.6; background: var(--hp-stage); border-radius: 8px; overflow: hidden; }
.hp-sheet-stage img { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.hp-faq { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 96px; }
.hp-questions details { border-top: 1px solid var(--hp-rule); }
.hp-questions details:last-child { border-bottom: 1px solid var(--hp-rule); }
.hp-questions summary { display: flex; list-style: none; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; font-weight: 500; }
.hp-questions summary::-webkit-details-marker, .hp-menu summary::-webkit-details-marker { display: none; }
.hp-questions summary .icon, .hp-menu summary .icon { color: var(--hp-muted); transform: rotate(90deg); transition: transform .5s var(--ease); }
.hp-questions details[open] summary .icon, .hp-menu[open] summary .icon { transform: rotate(-90deg); }
.hp-questions .hp-body { padding-bottom: 16px; max-width: 61ch; }
.hp-questions a { text-decoration: underline; color: var(--hp-accent); }

.hp-endcap { background: #131209; }
.hp-endcap-inner { min-height: 320px; display: flex; align-items: center; justify-content: center; gap: 64px; padding-block: 64px; }
.hp-endcap .smith-avatar { flex: none; object-fit: contain; }
.hp-endcap .hp-primary { margin-top: 24px; }
.page-home .site-footer { margin-top: 0; }
.page-home .site-footer .wrap { width: min(1248px, calc(100% - 96px)); }

.hp-dialog {
  width: min(528px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--hp-outline);
  border-radius: 16px;
  color: var(--hp-ink);
  background: var(--hp-panel);
}

.hp-dialog::backdrop { background: #000b; }
.hp-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hp-dialog-heading h2 { font-size: 24px; line-height: 32px; }
.hp-close-dialog { width: 44px; padding: 0; }
.hp-dialog form { display: grid; gap: 12px; }
.hp-dialog textarea { display: block; width: 100%; min-height: 112px; padding: 12px; border: 1px solid var(--hp-outline); border-radius: 8px; background: var(--hp-surface); color: var(--hp-ink); font: inherit; resize: vertical; }
.hp-dialog textarea::placeholder { color: var(--hp-muted); }
.hp-dialog-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.hp-error { color: #ffb7b1; }

@media (max-width: 1100px) {
  .hp-wrap, .page-home .site-footer .wrap { width: calc(100% - 64px); }
  .hp-header-inner { gap: 16px; }
  .hp-nav { gap: clamp(12px, calc(6vw - 34px), 24px); white-space: nowrap; }
  .hp-work, .hp-exports, .hp-faq { gap: 48px; }
  .hp-hero { min-height: 568px; gap: 32px; }
  .hp-hero h1 { font-size: 48px; line-height: 48px; }
  .hp-case-stage { min-height: 280px; }
}

@media (max-width: 760px) {
  .hp-wrap, .page-home .site-footer .wrap { width: calc(100% - 48px); }
  .hp-header-inner { grid-template-columns: 1fr auto auto; min-height: 72px; gap: 12px; }
  .hp-nav, .hp-account { display: none; }
  .hp-header .hp-menu { display: block; position: static; }
  .hp-menu > summary { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 8px 4px; list-style: none; border: 0; font-size: 14px; color: var(--hp-secondary); }
  .hp-header .hp-menu nav {
    position: absolute;
    inset: 100% 0 auto;
    width: auto;
    min-height: calc(100dvh - 72px);
    padding: 24px;
    background: var(--hp-surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hp-header .hp-menu nav a { display: flex; align-items: center; min-height: 48px; font-size: 20px; line-height: 28px; }
  .hp-hero, .hp-work, .hp-exports, .hp-faq { grid-template-columns: minmax(0, 1fr); }
  .hp-hero { gap: 32px; padding-block: 48px 64px; min-height: 0; }
  .hp-hero-copy { gap: 16px; }
  .hp-hero-stage { width: 100%; max-width: 640px; margin-inline: auto; }
  .hp-hero-actions { margin-top: 0; }
  .hp-chapter { gap: 32px; padding-block: 64px; }
  .hp-work-copy { grid-row: 1; }
  .hp-work { scroll-margin-top: 72px; }
  .hp-case-stage { min-height: 228px; }
  .hp-statement { padding-block: 64px; }
  .hp-statement h2 { font-size: 48px; line-height: 48px; }
}

@media (max-width: 480px) {
  .hp-wrap, .page-home .site-footer .wrap { width: calc(100% - 32px); }
  .hp-header-inner { gap: 8px; }
  .hp-workspace-link .icon, .hp-menu > summary .icon { display: none; }
  .page-home .brand { font-size: 18px; line-height: 28px; }
  .hp-hero h1, .hp-chapter h2, .hp-statement h2, .hp-endcap h2 { font-size: 36px; line-height: 40px; }
  .hp-lead { font-size: 16px; line-height: 24px; }
  .hp-hero-stage { margin-top: -16px; }
  .hp-hero-art figcaption { padding-top: 8px; }
  .hp-endcap-inner { flex-direction: column; align-items: start; gap: 24px; }
  .hp-endcap .smith-avatar { width: 96px; height: 96px; }
  .hp-case-stage { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-statement .is-primed span { opacity: 1; }
}

.agents-guide{max-width:1080px;padding-block:72px 100px}
.agents-intro{max-width:760px;margin-bottom:56px}.agents-intro h1{font-size:clamp(36px,4.5vw,58px);font-weight:600;line-height:1.08;text-wrap:balance;margin:0 0 24px}.agents-intro p{font-size:17px;color:var(--secondary);max-width:66ch}
.agents-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:28px;margin-bottom:24px}.agents-section-head h2{font-size:24px;flex-shrink:0}.agents-section-head p{color:var(--secondary);max-width:48ch}
.agents-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line);gap:8px}.agents-tabs button{min-height:48px;padding:12px 20px;color:var(--secondary);border:0;border-bottom:2px solid transparent;background:transparent;font:inherit;cursor:pointer}.agents-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text)}.agents-tabs button:hover{background:var(--surface)}
.agents-prompt-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:24px 16px}.agents-prompt-head h3{font-size:16px;font-weight:500}.agents-guide pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#0a0c0d;border:1px solid var(--line);border-radius:var(--radius);padding:24px;font-size:13px;line-height:1.8;color:var(--text);font-family:Consolas,'Liberation Mono',Menlo,monospace;margin:0}.agents-guide code{overflow-wrap:anywhere;color:var(--text);background:var(--surface);font-size:.95em}.agents-prompt{max-height:340px;overflow:auto}.agents-commands{margin-top:20px}.agents-commands summary{cursor:pointer;min-height:44px;display:list-item;color:var(--accent);padding-block:10px}.agents-commands p{margin-top:16px;color:var(--secondary)}.agents-guide a{text-underline-offset:4px}.agents-commands a{text-decoration:underline}
.agents-copy-status{min-height:26px;margin:0 0 12px;color:var(--accent)}.agents-setup-note{color:var(--secondary);max-width:72ch;font-size:13px}
.agents-explain{display:grid;grid-template-columns:1fr 1fr;gap:64px;border-top:1px solid var(--line);padding-top:48px;margin-top:56px}.agents-explain h2{font-size:28px;font-weight:600;line-height:1.2;text-wrap:balance;margin:0 0 20px}.agents-explain h3{font-size:18px;font-weight:600;margin:0 0 20px}.agents-explain p{color:var(--secondary);margin:0 0 20px;max-width:70ch}.agents-prices{margin:0 0 20px;font-variant-numeric:tabular-nums}.agents-prices>div{display:flex;justify-content:space-between;gap:20px;padding-block:10px;border-bottom:1px solid var(--line)}.agents-prices dd{margin:0;color:var(--text)}.agents-prices dt{color:var(--secondary)}
.agents-guide :focus-visible{outline:2px solid var(--accent);outline-offset:4px}.agents-guide ::selection{background:var(--accent);color:var(--ink)}.agents-guide button:disabled{opacity:.6;cursor:wait}
@media(max-width:700px){.agents-guide{padding-block:40px 64px}.agents-intro{margin-bottom:36px}.agents-intro p{font-size:16px}.agents-section-head{display:block}.agents-section-head h2{margin-bottom:12px}.agents-tabs{gap:0}.agents-tabs button{padding-inline:12px;flex:1 0 45%}.agents-prompt-head{align-items:flex-start;flex-direction:column;gap:12px}.agents-guide pre{padding:16px;font-size:12px}.agents-explain{grid-template-columns:1fr;gap:28px;padding-top:36px;margin-top:40px}.agents-explain h2{font-size:26px}}

/* The DEV showcase uses its own palette and leaves the rest of the site shell intact. */
.hp-gameplay {
  --page: #101214;
  --text: #f2f5f4;
  --muted: #b0bac1;
  --line: #30373d;
  --line-strong: #48535c;
  --focus: var(--accent);
  --pad: 48px;
  --hp-accent: var(--accent);
  --hp-hover: #fff2d8;
  --hp-surface: var(--page);
  --hp-panel: #192126;
  --hp-secondary: var(--muted);
  --hp-muted: var(--muted);
  --hp-rule: var(--line);
  --hp-outline: var(--line-strong);
  background: var(--page);
  color: var(--text);
}
.hp-header-gameplay { background: #101214f2; --hp-rule: #22282d; --hp-hover: var(--accent); }
.hp-header-gameplay .hp-header-inner { min-height: 64px; }
.hp-header-gameplay .hp-wrap,
.hp-gameplay .hp-wrap { width: min(1200px, calc(100% - 2 * var(--pad, 48px))); }
.hp-gameplay section[id] { scroll-margin-top: 64px; }
.hp-gameplay figure, .hp-gameplay blockquote { margin: 0; }
.hp-gameplay p { color: inherit; }
.hp-gameplay .hp-body { color: var(--muted); }
.hp-gameplay textarea, .hp-gameplay summary { font: inherit; }
.hp-gameplay :focus-visible { outline-color: var(--focus); }
.hp-gameplay ::selection { background: var(--accent); color: var(--ink); }
.hp-gameplay svg { width: 18px; height: 18px; }
.hp-gameplay .hp-icon-caret { rotate: 90deg; }
.hp-gameplay .hp-icon-left { rotate: 180deg; }
.hp-gameplay .motion-icons { display: inline-flex; }
.hp-gameplay [data-motion-icon="play"] .hp-pause-icon,
.hp-gameplay [data-motion-icon="pause"] .hp-play-icon { display: none; }
.hp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .hp-header-gameplay { --pad: 32px; }
}
@media (max-width: 760px) {
  .hp-header-gameplay { --pad: 24px; }
  .hp-header-gameplay .hp-header-inner { min-height: 56px; }
  .hp-gameplay section[id] { scroll-margin-top: 56px; }
}
@media (max-width: 520px) {
  .hp-header-gameplay { --pad: 16px; }
}

.hp-gameplay .hero-actions, .hp-gameplay .connect-actions{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin-top:4px}
.hp-gameplay .hp-action, .hp-gameplay .quiet, .hp-gameplay .text-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;padding:8px 12px;background:transparent;color:var(--text);font-size:14px;line-height:20px;font-weight:650;white-space:nowrap;transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease),transform .3s var(--ease)}
.hp-gameplay .hp-action{background:var(--accent);color:var(--ink);font-size:16px;min-height:48px;padding-inline:16px}
.hp-gameplay .hp-action:hover{background:var(--hp-hover);transform:translateY(-1px)}
.hp-gameplay .hp-action:active, .hp-gameplay .quiet:active{transform:translateY(1px)}
.hp-gameplay .hp-action.small{min-height:38px;font-size:14px;padding:6px 10px}
.hp-gameplay .quiet:hover, .hp-gameplay .text-action:hover{background:var(--raised);color:var(--text)}
.hp-gameplay .text-action{color:var(--muted)}
.hp-gameplay .square{width:44px;padding:0}
.hp-gameplay .spot{position:relative;isolation:isolate;--x:50%;--y:50%;--spot:0}
.hp-gameplay .spot::after{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;pointer-events:none;background:radial-gradient(360px circle at var(--x) var(--y),rgba(255,246,226,.055),transparent 77%);opacity:var(--spot);transition:opacity .45s var(--ease)}
.hp-gameplay .gameplay { padding-block: 72px 80px; }
.hp-gameplay .gameplay-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.72fr);
  grid-template-areas: "intro media" "details media";
  column-gap: clamp(32px, 5.5vw, 80px);
  row-gap: 24px;
}
.hp-gameplay .gameplay-heading, .hp-gameplay .agent-heading {
  display: grid;
  align-content: start;
  gap: 16px;
}
.hp-gameplay .gameplay-heading { grid-area: intro; align-self: end; }
.hp-gameplay .gameplay-heading p, .hp-gameplay .scene-copy p { color: var(--muted); max-width: 37ch; }
.hp-gameplay .game-panel { grid-area: media; align-self: center; min-width: 0; }
.hp-gameplay .scene-copy { grid-area: details; display: grid; align-content: start; gap: 6px; }
.hp-gameplay .scene-copy h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }
.hp-gameplay .scene-copy p { font-size: 14px; }
.hp-gameplay .gameplay-heading h2, .hp-gameplay .editor-copy h2, .hp-gameplay .agent-heading h2, .hp-gameplay .end h2 {
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 650;
}
.hp-gameplay .scene-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0 18px;
}
.hp-gameplay .scene-tabs button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 0 5px;
  background: transparent;
  border: 0;
  box-shadow: inset 0 -2px transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color .3s var(--ease), box-shadow .3s var(--ease);
}
.hp-gameplay .scene-tabs button[aria-selected="true"] {
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.hp-gameplay .scene-tabs button:hover { color: var(--text); }
.hp-gameplay .scene-tabs svg { width: 16px; height: 16px; }
.hp-gameplay .game-scene, .hp-gameplay .agent-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #141b26;
}
.hp-gameplay .game-scene {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.hp-gameplay .game-scene:focus-visible { outline-offset: -4px; }
.hp-gameplay .scene-background, .hp-gameplay #game, .hp-gameplay .agent-stage img, .hp-gameplay #agent-game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.012);
  transition: transform .5s var(--ease);
}
.hp-gameplay .scene-background { user-select: none; }
.hp-gameplay .fight-hud {
  position: absolute;
  inset: 16px 20px auto;
  display: grid;
  grid-template-columns: minmax(56px, 30%) 34px minmax(56px, 30%);
  justify-content: space-between;
  align-items: start;
  pointer-events: none;
}
.hp-gameplay .health {
  display: grid;
  gap: 4px;
  color: #e7f6fa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-shadow: 0 1px 2px #06080d;
}
.hp-gameplay .health > div { height: 9px; padding: 2px; background: #10161c; border: 1px solid #92a4ae; border-radius: 2px; }
.hp-gameplay .health b { display: block; height: 100%; background: #92e8c8; transform-origin: left; transition: transform .2s var(--ease); }
.hp-gameplay .health.enemy { text-align: right; }
.hp-gameplay .health.enemy b { background: #ef997f; transform-origin: right; }
.hp-gameplay .round { text-align: center; color: #eef3f4; background: #111720dd; border: 1px solid #6d7e86; border-radius: 4px; font-size: 13px; font-weight: 750; }
.hp-gameplay .agent-output-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.hp-gameplay .agent-output-caption > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hp-gameplay .agent-output-caption strong {
  font-size: 14px;
  font-weight: 750;
}
.hp-gameplay .agent-output-caption span { font-size: 13px; color: var(--muted); }
.hp-gameplay .scene-controls { display: flex; justify-content: flex-end; margin-top: 4px; }
.hp-gameplay .spot { --shift-x: 0px; --shift-y: 0px; }

.hp-gameplay .editor-band { background: #0f1b22; }
.hp-gameplay .editor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, 1fr);
  grid-template-areas: "preview copy" "preview settings";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 28px;
  align-items: start;
  padding-block: 72px 76px;
}
.hp-gameplay .editor-copy {
  grid-area: copy;
  display: grid;
  gap: 14px;
}
.hp-gameplay .editor-copy p, .hp-gameplay .agent-heading p, .hp-gameplay .end p { color: var(--muted); max-width: 360px; }
.hp-gameplay .preview-column { grid-area: preview; align-self: center; min-width: 0; }
.hp-gameplay .editor-preview {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: clamp(264px, 28vw, 410px);
}
.hp-gameplay .editor-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(#172731 0% 25%, #14222b 0% 50%) 0 / 32px 32px;
  mask-image: radial-gradient(ellipse 57% 62% at 52% 52%, #000 24%, transparent 88%);
}
.hp-gameplay #effect-preview {
  position: relative;
  display: block;
  width: min(580px, 100%);
  height: 100%;
  min-height: 0;
  object-fit: contain;
  image-rendering: pixelated;
}
.hp-gameplay .preview-name {
  position: absolute;
  bottom: 4px;
  left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.hp-gameplay .editor-timeline {
  min-height: 52px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.hp-gameplay .editor-timeline output {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 49px;
}
.hp-gameplay .frame-scrubber { position: relative; min-width: 0; padding-top: 16px; }
.hp-gameplay .frame-scrubber input { display: block; }
.hp-gameplay .impact-marker {
  position: absolute;
  top: 0;
  left: calc(8px + (100% - 16px) * var(--impact-progress));
  translate: -50% 0;
  color: var(--accent);
  font-size: 11px;
  line-height: 12px;
  pointer-events: none;
}
.hp-gameplay .impact-marker::after { content: ""; display: block; width: 1px; height: 8px; margin-inline: auto; background: currentColor; }
.hp-gameplay input[type="range"] { width: 100%; margin: 0; min-height: 32px; accent-color: var(--accent); cursor: ew-resize; }
.hp-gameplay .inspector { grid-area: settings; display: grid; align-content: start; gap: 18px; max-width: 360px; }
.hp-gameplay .inspector-heading, .hp-gameplay .setting > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hp-gameplay .inspector-heading strong, .hp-gameplay .setting label, .hp-gameplay .colors legend { font-size: 14px; font-weight: 700; }
.hp-gameplay .inspector-heading button { font-size: 12px; padding-inline: 6px; color: var(--muted); }
.hp-gameplay .inspector-heading svg { width: 14px; height: 14px; }
.hp-gameplay .colors { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; min-width: 0; border: 0; }
.hp-gameplay .colors legend { padding: 0; margin-bottom: 6px; }
.hp-gameplay .palette-choice, .hp-gameplay .agent-clients label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.hp-gameplay .palette-choice input, .hp-gameplay .agent-clients input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; cursor: pointer; }
.hp-gameplay .palette-choice:has(input:checked), .hp-gameplay .agent-clients label:has(input:checked) { color: var(--accent); background: var(--raised); }
.hp-gameplay .palette-choice:has(input:focus-visible), .hp-gameplay .agent-clients label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.hp-gameplay .palette-choice::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sample); }
.hp-gameplay .ice { --sample: #84dfff; }
.hp-gameplay .ember { --sample: #ffad72; }
.hp-gameplay .arcane { --sample: #ceaeff; }
.hp-gameplay .setting { display: grid; gap: 2px; }
.hp-gameplay .setting output, .hp-gameplay .export-status { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hp-gameplay .export-status:empty, .hp-gameplay #copy-status:empty { display: none; }
.hp-gameplay .editor-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-gameplay .export-menu { position: relative; }
.hp-gameplay .export-menu summary { list-style: none; }
.hp-gameplay .export-menu summary::-webkit-details-marker { display: none; }
.hp-gameplay .export-popover {
  position: absolute;
  z-index: 10;
  left: 0;
  top: calc(100% + 8px);
  min-width: 175px;
  display: grid;
  padding: 6px;
  background: #24323a;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 12px 28px #0008;
}
.hp-gameplay .export-popover button { border: 0; border-radius: 6px; background: transparent; text-align: left; padding: 9px 10px; font-size: 13px; min-height: 44px; }
.hp-gameplay .export-popover button:hover { background: #34474e; }

.hp-gameplay .agent-band { padding-block: 80px 76px; background: var(--page); }
.hp-gameplay .agent-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas: "art heading" "art console" "setup setup";
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 20px;
}
.hp-gameplay .agent-heading { grid-area: heading; align-self: end; }
.hp-gameplay .agent-heading p { max-width: 39ch; }
.hp-gameplay .agent-output { grid-area: art; align-self: center; min-width: 0; }
.hp-gameplay .agent-stage {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101214;
}
.hp-gameplay .agent-output-caption { min-height: 52px; }
.hp-gameplay .agent-output-caption button { border-radius: 999px; }
.hp-gameplay .agent-console { grid-area: console; display: grid; align-content: start; gap: 12px; }
.hp-gameplay .agent-request { display: grid; align-content: start; justify-items: start; gap: 10px; }
.hp-gameplay .prompt-line {
  color: #e9f0f0;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.26;
  letter-spacing: -.04em;
  max-width: 32ch;
}
.hp-gameplay .agent-request button { color: var(--accent); margin-inline-start: -12px; }
.hp-gameplay .agent-flow { align-self: center; }
.hp-gameplay .agent-steps { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.hp-gameplay .agent-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-height: 24px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.hp-gameplay .agent-steps svg { color: var(--accent); width: 16px; height: 16px; }
.hp-gameplay .agent-steps .waiting { opacity: .45; transform: translateX(-3px); }
.hp-gameplay .agent-steps .waiting svg { opacity: 0; }
.hp-gameplay .agent-connect { grid-area: setup; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hp-gameplay .agent-clients { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: -10px; }
.hp-gameplay .connect-actions { justify-content: flex-start; margin-top: 0; }
.hp-gameplay .connect-actions #copy-status { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.hp-gameplay .setup-text { display: block; width: min(760px, 100%); min-height: 128px; background: #1a2227; color: var(--text); padding: 12px; border: 1px solid var(--line); border-radius: 8px; }

.hp-gameplay .end { background: #0c1419; }
.hp-gameplay .end-inner { display: grid; justify-items: center; gap: 14px; text-align: center; padding-block: 40px 76px; }
.hp-gameplay .end-inner canvas { width: min(410px, 95%); height: 170px; object-fit: contain; image-rendering: pixelated; }
.hp-gameplay .end .hp-action { margin-top: 8px; }

@media (max-width: 1050px) {
  .hp-gameplay { --pad: 32px; }
}
@media (max-width: 900px) {
  .hp-gameplay .gameplay-layout, .hp-gameplay .agent-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hp-gameplay .gameplay-layout { grid-template-areas: "intro" "media" "details"; }
  .hp-gameplay .agent-panel { grid-template-areas: "heading" "art" "console" "setup"; }
  .hp-gameplay .gameplay-heading, .hp-gameplay .agent-heading { gap: 12px; }
  .hp-gameplay .scene-controls { position: absolute; right: 8px; bottom: 8px; }
  .hp-gameplay .scene-controls .quiet { background: #101214bd; }
  .hp-gameplay .scene-controls #scene-replay span { display: none; }
  .hp-gameplay .scene-controls #scene-replay { width: 44px; padding: 0; }
}
@media (max-width: 760px) {
  .hp-gameplay { --pad: 24px; }

  .hp-gameplay .gameplay { padding-block: 28px 44px; }
  .hp-gameplay .scene-tabs { gap: clamp(12px, 5vw, 24px); }
  .hp-gameplay .fight-hud { inset: 12px 12px auto; grid-template-columns: minmax(60px, 30%) 28px minmax(60px, 30%); }
  .hp-gameplay .health { font-size: 8px; line-height: 14px; gap: 2px; }
  .hp-gameplay .health > div { height: 6px; padding: 1px; }
  .hp-gameplay .round { font-size: 10px; line-height: 17px; }
  .hp-gameplay .editor-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "preview" "settings"; padding-block: 56px; gap: 22px; }
  .hp-gameplay .editor-preview { height: clamp(180px, 53vw, 312px); }
  .hp-gameplay .inspector { max-width: 100%; }
  .hp-gameplay .agent-band { padding-block: 56px; }

}
@media (max-width: 520px) {
  .hp-gameplay { --pad: 16px; }
  .hp-gameplay .hero-actions, .hp-gameplay .connect-actions { gap: 4px 8px; }
  .hp-gameplay .hero-actions .text-action, .hp-gameplay .connect-actions .text-action { padding-inline: 4px; }
  .hp-gameplay .hp-action { padding-inline: 12px; }
  .hp-gameplay .scene-tabs button { font-size: 12px; }
  .hp-gameplay .scene-tabs svg { width: 13px; height: 13px; }
  .hp-gameplay .agent-output-caption > div:first-child { display: grid; gap: 2px; padding-block: 7px; }
  .hp-gameplay .agent-output-caption > div:first-child span { line-height: 16px; }
  .hp-gameplay .editor-timeline { gap: 8px; }
  .hp-gameplay .end-inner { padding-block: 32px 56px; }
  .hp-gameplay .end-inner canvas { height: 118px; }
}
@media (max-width: 360px) {
  .hp-gameplay .scene-tabs svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-gameplay *, .hp-gameplay *::before, .hp-gameplay *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hp-gameplay .spot::after { display: none; }
  .hp-gameplay .scene-background, .hp-gameplay #game, .hp-gameplay .agent-stage img, .hp-gameplay #agent-game { transform: none; }
}

.hp-gameplay .hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--page);
}
.hp-gameplay .film-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 47vw, 720px);
  padding-block: 64px;
  pointer-events: none;
}
.hp-gameplay .intro {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 540px;
  pointer-events: auto;
}
.hp-gameplay .film-layout h1 {
  max-width: 680px;
  color: var(--text);
  font-size: clamp(45px, 5.3vw, 76px);
  line-height: 1.015;
  padding-bottom: .055em;
  font-weight: 600;
  letter-spacing: -.04em;
}
.hp-gameplay .hero-lead {
  color: var(--muted);
  max-width: 365px;
}
.hp-gameplay .hero-actions { justify-content: flex-start; }
.hp-gameplay .hero-film {
  position: absolute;
  inset: 0 0 0 clamp(0px, 23vw, 400px);
  overflow: hidden;
}
.hp-gameplay .hero-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hp-gameplay .hero-film::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, #101214 0%, #101214fa 8%, #101214d9 20%, #1012145c 37%, transparent 61%),
    linear-gradient(0deg, #101214 0%, #10121440 12%, transparent 28%);
}
.hp-gameplay .hero-film-tools {
  position: absolute;
  z-index: 2;
  right: max(var(--pad), calc((100% - 1200px) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-gameplay .hero-film-tools > span {
  color: #f1f3f4;
  text-shadow: 0 1px 5px #000;
  font-size: 12px;
  line-height: 18px;
}
.hp-gameplay .hero-film-tools button {
  background: #101214b8;
  border-color: #ffffff35;
  border-radius: 999px;
}
.hp-gameplay .hero-film-tools button:hover { background: #20252af0; }

@media (max-width: 760px) {
  .hp-gameplay .film-layout {
    align-items: start;
    min-height: 0;
    padding-block: 40px clamp(235px, 63vw, 430px);
  }
  .hp-gameplay .intro { gap: 14px; }
  .hp-gameplay .film-layout h1 { font-size: clamp(38px, 10.4vw, 58px); }
  .hp-gameplay .hero-lead { max-width: 420px; }
  .hp-gameplay .hero-film {
    inset: auto 0 0;
    height: clamp(270px, 69vw, 475px);
  }
  .hp-gameplay .hero-film video { object-position: center; }
  .hp-gameplay .hero-film::after {
    background: linear-gradient(180deg, #101214 0%, #10121499 15%, transparent 42%, transparent 71%, #101214a0 94%, #101214 100%);
  }
  .hp-gameplay .hero-film-tools { bottom: 14px; }

}
@media (max-width: 520px) {
  .hp-gameplay .film-layout { padding-top: 30px; }
  .hp-gameplay .hero-lead { font-size: 14px; line-height: 22px; }
}

/* Shared navigation and the public creation path. */
.site-header .header-inner { gap: 24px; }
.site-header .brand { flex-shrink: 0; white-space: nowrap; }
.site-header .desktop-nav { gap: 22px; margin-inline: auto 0; white-space: nowrap; }
.site-header .header-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hp-header .hp-nav { gap: 24px; white-space: nowrap; }
.site-header .mobile-nav nav { max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
.site-header .mobile-nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.hp-gameplay .hero-chapters { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 14px; }
.hp-gameplay .hero-chapters a { display: inline-flex; align-items: center; min-height: 44px; color: #ccc8c1; text-decoration: underline; text-underline-offset: 5px; }
.hp-gameplay .hero-chapters a:hover { color: #fff2d8; }
.hp-creation-paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; scroll-margin-top: 88px; }
.hp-creation-paths h2, .hp-how h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.03em; }
.hp-creation-paths .hp-body { margin-block: 24px 16px; max-width: 46ch; }
.hp-generator-links { list-style: none; padding: 0; margin: 0; }
.hp-generator-links li { border-bottom: 1px solid var(--hp-rule); }
.hp-generator-links li:first-child { border-top: 1px solid var(--hp-rule); }
.hp-generator-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; font-weight: 600; }
.hp-generator-links a:hover { color: var(--hp-accent); }
.hp-generator-links small { display: block; margin-top: 6px; color: var(--hp-secondary); font-size: 14px; font-weight: 400; line-height: 1.6; }
.hp-generator-links .icon { flex-shrink: 0; }
.hp-how { scroll-margin-top: 88px; }
.hp-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 40px 0 28px; padding-left: 20px; }
.hp-how li { padding-left: 4px; }
.hp-how li::marker { color: var(--hp-muted); }
.hp-how h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.hp-how p { color: var(--hp-secondary); line-height: 1.7; }
.hp-how a { color: var(--hp-ink); text-decoration: underline; text-underline-offset: 4px; }
.hp-how > .hp-body { max-width: 72ch; }
.generator-index { padding-bottom: 72px; }
.generator-intro { color: var(--secondary); max-width: 74ch; line-height: 1.75; margin-bottom: 36px; }
.generator-list { margin-bottom: 48px; }
.generator-row { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.generator-row:last-child { border-bottom: 1px solid var(--line); }
.generator-preview { display: grid; place-items: center; height: 144px; background: var(--canvas); }
.generator-preview img { width: 100%; height: 100%; max-height: 136px; object-fit: contain; image-rendering: pixelated; }
.generator-row h2 { font-size: 24px; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 12px; }
.generator-row h2 a { display: inline-flex; align-items: center; gap: 12px; }
.generator-row h2 a:hover { color: var(--accent); }
.generator-row p { max-width: 72ch; line-height: 1.7; color: var(--secondary); }
.generator-reference { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 1060px) {
  .site-header .desktop-nav, .site-header .header-account, .hp-header .hp-nav, .hp-header .hp-account { display: none; }
  .site-header .header-inner { gap: 16px; }
  .site-header .header-actions { margin-left: auto; }
  .site-header .mobile-nav { display: block; position: relative; }
  .site-header .mobile-nav > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px; list-style: none; cursor: pointer; }
  .site-header .mobile-nav nav { position: absolute; inset: calc(100% + 12px) 0 auto auto; width: min(320px, calc(100vw - 32px)); min-height: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
  .site-header .mobile-nav nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 16px; line-height: 1.5; }
  .hp-header .hp-header-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  .hp-header .hp-header-actions { grid-column: 2; }
  .hp-header .hp-menu { grid-column: 3; }
  .hp-creation-paths { gap: 40px; }
}
@media (max-width: 760px) {
  .hp-creation-paths, .hp-how ol { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hp-how ol { margin-top: 28px; }
  .hp-creation-paths .hp-body { margin-top: 16px; }
  .generator-row { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; }
  .generator-preview { height: 104px; }
  .generator-row h2 { font-size: 20px; }
  .generator-row h2 .icon { display: none; }
  .generator-row p { font-size: 14px; }
}
@media (max-width: 380px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .header-actions .button { padding-inline: 8px; }
  .site-header .header-actions .icon { display: none; }
  .generator-row { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
}
