@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--bg:#f5f4ee;--panel:#fafaf6;--ink:#273c32;--muted:#657167;--line:#d6dacf;--accent:#627441;--soft:#e8eddf;--radius:10px;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,summary{touch-action:manipulation}button,summary{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:3px}button{color:inherit}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input[type=range]:focus-visible{outline-offset:7px}.skip{position:absolute;left:16px;top:-60px;z-index:10;background:var(--panel);padding:12px}.skip:focus{top:10px}
header,main,footer{max-width:1680px;margin:auto}header{height:60px;padding:0 28px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-size:28px;font-weight:700;letter-spacing:-1.5px}.brand span{color:var(--accent);padding-left:5px}nav{display:flex;gap:20px;align-items:center;font-size:12px;color:var(--muted)}nav [aria-current]{color:var(--ink);font-weight:600}main{padding:0 28px}.intro{display:flex;justify-content:space-between;align-items:center;padding:20px 0}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:500;margin:0}h1{font-size:44px;line-height:1.1;letter-spacing:-2px;font-weight:500;margin:8px 0 0}h1 em{font-family:'Instrument Serif',Georgia,serif;font-weight:400;color:var(--accent)}.lede{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.source-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.source-options{display:flex;gap:3px;background:var(--soft);padding:4px;border-radius:8px}.source-options button,#video-play{display:flex;align-items:center;gap:7px;border:0;border-radius:5px;background:transparent;padding:9px 12px;font-size:12px}.source-options button[aria-pressed=true]{background:var(--panel);box-shadow:0 1px 5px #24331115}#source-note{font-size:11px;color:var(--muted)}#video-play{margin-left:auto;background:var(--soft)}select{width:100%;padding:9px 32px 9px 10px;border:1px solid var(--line);border-radius:6px;background-color:var(--bg);color:var(--ink);font-size:12px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23657167' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.source-bar select{max-width:280px;width:auto}
.lab{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}.lab>*{min-width:0}.stage-shell{position:sticky;top:16px;height:calc(100dvh - 222px);min-height:340px;max-height:1000px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#183a45}.stage{position:absolute;inset:0;outline-offset:-5px}.stage img,.stage video,.stage iframe{width:100%;height:100%;object-fit:cover;display:block;border:0}.stage iframe{position:absolute;inset:0}.stage.comparing img,.stage.comparing video{opacity:1!important}.stage-top,.stage-bottom{position:absolute;left:20px;right:20px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;color:white;pointer-events:none;text-shadow:0 1px 5px #0008}.stage-top{top:20px;font-size:10px;letter-spacing:.7px;line-height:1.6}#effect-label{max-width:75%}.live{font-size:9px;white-space:nowrap}.live i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#d5f6a0;margin-right:6px}.stage-bottom{bottom:20px;font-size:11px}.stage-bottom button{pointer-events:auto;color:white;padding:9px 14px;border:1px solid #ffffff70;border-radius:25px;background:#17323280;backdrop-filter:blur(12px)}.stage-shell:has(iframe) .stage-bottom button{pointer-events:none}
aside{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px;max-height:calc(100dvh - 222px);min-height:340px;overflow:auto;scrollbar-width:thin;scroll-padding:12px}.stack-heading{display:flex;align-items:center;justify-content:space-between}.stack-heading h2{font-size:22px;font-weight:500;letter-spacing:-.7px;margin:5px 0}.stack-heading .eyebrow{font-size:9px}#layer-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.stack-help{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 0 12px}#layers{font-size:12px;color:var(--muted)}.layer-row{display:flex;align-items:center;gap:1px;padding:4px;border:1px solid var(--line);border-radius:6px;margin-bottom:5px;background:var(--bg)}.layer-row.selected{border-color:var(--accent);background:var(--soft)}.layer-row button{border:0;background:transparent;min-width:28px;min-height:30px;padding:5px;border-radius:4px;font-size:12px}.layer-row .layer-select{flex:1;text-align:left;font-size:11px;min-width:0}.layer-row button:hover{background:#fff9}.layer-row:has([aria-label^=Bypass][aria-pressed=true]) .layer-select{text-decoration:line-through;color:var(--muted)}.stack-tools{display:flex;justify-content:flex-end;gap:6px;margin:9px 0}.stack-tools button{padding:6px 10px;border:1px solid var(--line);background:transparent;border-radius:5px;font-size:11px}
details{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:500;list-style:none;min-height:28px}summary::-webkit-details-marker{display:none}summary span{color:var(--muted)}details[open]>summary{margin-bottom:10px}.catalog-hint{font-size:10px;color:var(--muted);margin:0 0 10px}.catalog-tools{display:flex;gap:6px}.catalog-tools input{width:65%;min-width:0;padding:9px;border:1px solid var(--line);border-radius:5px;background:var(--panel);font-size:11px;color:var(--ink)}.catalog-tools select{width:35%;font-size:11px}.effects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px;max-height:250px;overflow:auto;scrollbar-width:thin}.effect{padding:3px;border:1px solid var(--line);border-radius:5px;background:var(--bg);text-align:left}.effect:hover,.effect.previewing{border-color:var(--accent);background:var(--soft)}.effect.previewing{box-shadow:inset 0 0 0 1px var(--accent)}.thumb{height:42px;overflow:hidden;border-radius:3px;background:#183a45}.thumb img{width:100%;height:100%;object-fit:cover}.effect-title{display:block;padding:5px 2px;font-size:10px;letter-spacing:-.2px}.effect-title small{display:none}#no-effects{font-size:12px;color:var(--muted)}.inspector h2{font:400 27px 'Instrument Serif',Georgia,serif;margin:4px 0}#description{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 0 12px}aside label{display:flex;justify-content:space-between;align-items:center;margin:15px 0 9px;font-size:11px}output{color:var(--muted);font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:4px;accent-color:var(--accent);display:block;margin:14px 0}aside select{font-size:12px}.actions{display:flex;gap:7px;margin-top:15px}.actions button{flex:1;padding:9px 6px;border:1px solid var(--line);border-radius:5px;background:transparent;font-size:11px}.private{font-size:10px;text-align:center;color:var(--muted);margin:12px 0 0}#status{font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:0}
.export-section{margin:20px 0 25px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.export-section>summary span{font-size:10px}.integration{display:grid;grid-template-columns:1fr 1.5fr;gap:30px;padding-top:15px}.integration h2{font-size:26px;font-weight:500;letter-spacing:-1px}.integration p:not(.eyebrow){font-size:13px;line-height:1.8;color:var(--muted)}.integration a{font-size:12px}.code-block{padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--soft);min-width:0}.code-block>div{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px}.code-block button{border:0;background:transparent;font-size:12px;padding:5px}pre{font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}footer{padding:20px 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted)}footer div{display:flex;gap:20px}
@media(max-width:1000px){.lab{grid-template-columns:minmax(0,1fr) 320px;gap:12px}main{padding:0 18px}header{padding:0 18px}.intro h1{font-size:38px}.lede{font-size:11px}aside{padding:12px}#source-note{display:none}.stage-bottom #hint{display:none}}
@media(max-width:680px){header{height:56px}nav{gap:12px;font-size:11px}nav .docs-link{display:none}.intro{padding:18px 0}.intro h1{font-size:34px}.lede{display:none}.source-bar{gap:6px}.source-bar select{max-width:180px}.lab{grid-template-columns:1fr}.stage-shell{height:35dvh;min-height:220px;max-height:340px;top:0;z-index:2}aside{max-height:none;padding:16px}.stage-top{font-size:9px;top:14px;left:16px;right:16px}.stage-bottom{bottom:14px;left:16px;right:16px}.live{display:none}.effects{grid-template-columns:repeat(4,minmax(0,1fr))}.layer-row button{min-height:34px;min-width:30px}.integration{grid-template-columns:1fr}footer{flex-direction:column;padding:20px 18px}}
@media(forced-colors:active){select{appearance:auto;background-image:none}.effect.previewing,.layer-row.selected{outline:2px solid Highlight}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

/* Match Materia’s 16px round-cap layer icons. */
.layer-row button:not(.layer-select){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.layer-row svg,.inspector summary svg{display:block;flex-shrink:0;pointer-events:none}
