@font-face{font-family:Jost;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b8c37bb59076c047-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Jost;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/5bbac197f803cc34-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Jost;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/9dd75fadc5b3df29-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Jost;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b8c37bb59076c047-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Jost;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/5bbac197f803cc34-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Jost;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/9dd75fadc5b3df29-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Jost Fallback;src:local("Arial");ascent-override:111.45%;descent-override:39.06%;line-gap-override:0.00%;size-adjust:96.01%}.__className_775998{font-family:Jost,Jost Fallback;font-style:normal}.__variable_775998{--font-jost:"Jost","Jost Fallback"}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/58f386aa6b1a2a92-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/82179190dde1591d-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/dc4d8d7cae82600c-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/11c4c3cba9a7e226-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d51fd126416ee4c8-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/cdec7fa3927eb560-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/ef4d5661765d0e49-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f198ae9a2620d439-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a850a10de48942a7-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bfede01fd09039d8-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/36bf3e92c0d6f837-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/af5dd2b5d3f396f3-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/73cb51aac9c97f90-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/279bb7a1be217873-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9754fd1e347c437b-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/c67326d545bf0a00-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/549c72aca63c3e8a-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d9a2293b6b8212a5-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono Fallback;src:local("Arial");ascent-override:76.16%;descent-override:20.43%;line-gap-override:0.00%;size-adjust:134.59%}.__className_214d7e{font-family:IBM Plex Mono,IBM Plex Mono Fallback;font-style:normal}.__variable_214d7e{--font-plex-mono:"IBM Plex Mono","IBM Plex Mono Fallback"}@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/5ece437c7024c161-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9cc5b37ab1350db7-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:"Instrument Serif Fallback";src:local("Times New Roman");ascent-override:117.94%;descent-override:36.93%;line-gap-override:0.00%;size-adjust:83.94%}.__className_64b68a{font-family:"Instrument Serif","Instrument Serif Fallback";font-weight:400;font-style:italic}.__variable_64b68a{--font-instrument:"Instrument Serif","Instrument Serif Fallback"}:root{--ink:#0a0e1f;--royal:#0b1546;--surface:#151b38;--surface-2:#1b2246;--surface-3:#232b55;--line:rgba(169,187,255,0.12);--line-strong:rgba(169,187,255,0.24);--cobalt:#5b7cff;--cobalt-deep:#3a55d6;--pale:#a9bbff;--ice:#e6ecff;--paper:#eef2ff;--magenta:#ff4fa3;--spark:#ffd23f;--heading:#eef2ff;--body:#c9d3f5;--dim:#8f9bc4;--r-card:28px;--r-md:16px;--r-sm:12px;--font-display:var(--font-jost),system-ui,sans-serif;--font-mono:var(--font-plex-mono),ui-monospace,monospace;--font-serif:var(--font-instrument),Georgia,serif;color-scheme:dark}*{box-sizing:border-box}body,html{margin:0;padding:0}body{background:var(--ink);color:var(--body);font-family:var(--font-display);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh}a{color:inherit}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}::selection{background:var(--cobalt);color:var(--ink)}.eyebrow{font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}.eyebrow.accent{color:var(--magenta)}.mono{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;font-size:11px}.serif{font-family:var(--font-serif);font-style:italic;font-weight:400}.h-display{font-family:var(--font-display);font-weight:500;color:var(--heading);letter-spacing:-.02em;line-height:1.02;margin:0}.dot{color:var(--magenta)}.muted{color:var(--dim)}.topbar{position:-webkit-sticky;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px;padding:0 28px;background:rgba(10,14,31,.92);border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.topbar .lockup{height:26px;display:block}.nav{display:flex;gap:6px;align-items:center}.nav a,.nav button{font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;padding:9px 16px;border-radius:999px;border:1px solid transparent;background:none;color:var(--dim);text-decoration:none;transition:color .15s,background .15s,border-color .15s;white-space:nowrap}.nav a.active,.nav a:hover,.nav button:hover{color:var(--heading);border-color:var(--line-strong)}.btn,.nav a.active{background:var(--surface-2)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;border:1px solid var(--line-strong);color:var(--heading);padding:10px 18px;font-weight:500;font-size:14px;transition:background .15s,border-color .15s,transform .05s;text-decoration:none;white-space:nowrap}.btn:hover:not(:disabled){background:var(--surface-3);border-color:var(--pale)}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.45}.btn.primary{background:var(--cobalt);border-color:var(--cobalt);color:var(--ink)}.btn.primary:hover:not(:disabled){background:var(--pale);border-color:var(--pale)}.btn.ghost{background:transparent}.btn.small{padding:7px 13px;font-size:13px}.btn.danger:hover:not(:disabled){border-color:var(--spark);color:var(--spark)}.btn-generate{width:100%;border:none;border-radius:20px;padding:18px 22px;background:var(--magenta);color:var(--ink);font-family:var(--font-display);font-weight:500;font-size:18px;letter-spacing:-.01em;display:flex;align-items:center;justify-content:space-between;transition:transform .06s,filter .15s}.btn-generate:hover:not(:disabled){filter:brightness(1.06)}.btn-generate:active:not(:disabled){transform:translateY(1px)}.btn-generate:disabled{background:var(--surface-3);color:var(--dim)}.btn-generate .arrow{font-size:13px;letter-spacing:.16em}.btn-generate .arrow,.pill{font-family:var(--font-mono)}.pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;padding:4px 10px;border-radius:999px;white-space:nowrap;border:1px solid var(--line-strong);color:var(--pale)}.pill.solid{background:var(--cobalt);border-color:var(--cobalt);color:var(--ink)}.pill.pale{background:var(--pale);border-color:var(--pale);color:var(--ink)}.pill.spark{background:var(--spark);border-color:var(--spark);color:var(--ink)}.pill.ice{background:var(--ice);border-color:var(--ice);color:var(--ink)}.input,.textarea{width:100%;background:var(--ink);border:1px solid var(--line-strong);border-radius:var(--r-sm);padding:12px 14px;color:var(--heading);outline:none;transition:border-color .15s}.input:focus,.textarea:focus{border-color:var(--cobalt)}.textarea{resize:vertical;min-height:120px;line-height:1.55}.input::placeholder,.textarea::placeholder{color:#5d6894}.seg{display:flex;flex-wrap:wrap;gap:6px}.seg button{font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.1em;padding:8px 12px;border-radius:999px;border:1px solid var(--line-strong);background:transparent;color:var(--body);transition:all .12s}.seg button:hover:not(:disabled){border-color:var(--pale);color:var(--heading)}.seg button.on{background:var(--ice);border-color:var(--ice);color:var(--ink)}.seg button:disabled{opacity:.35}.toggle{position:relative;width:42px;height:24px;border-radius:999px;border:none;background:var(--surface-3);transition:background .15s;flex:none;padding:0}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--dim);transition:transform .15s,background .15s}.toggle.on{background:var(--cobalt)}.toggle.on:after{transform:translateX(18px);background:var(--ink)}.studio{display:grid;grid-template-columns:420px minmax(0,1fr);grid-gap:28px;gap:28px;padding:28px;max-width:1680px;margin:0 auto}.composer{position:-webkit-sticky;position:sticky;top:96px;align-self:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:22px;gap:20px;max-height:calc(100vh - 124px);overflow-y:auto;scrollbar-width:thin}.composer,.field{display:flex;flex-direction:column}.field{gap:10px}.field-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.modes{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.mode-btn{text-align:left;padding:12px 14px;border-radius:var(--r-md);border:1px solid var(--line-strong);background:var(--ink);transition:all .12s;display:flex;flex-direction:column;gap:2px}.mode-btn .mono{color:var(--dim);font-size:10px}.mode-btn .label{color:var(--heading);font-weight:500;font-size:14px}.mode-btn:hover{border-color:var(--pale)}.mode-btn.on{background:var(--cobalt);border-color:var(--cobalt)}.mode-btn.on .label,.mode-btn.on .mono{color:var(--ink)}.model-picker{position:relative}.model-current{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-md);border:1px solid var(--line-strong);background:var(--ink)}.model-current:hover{border-color:var(--pale)}.model-glyph{width:38px;height:38px;border-radius:12px;flex:none;display:grid;place-items:center;font-family:var(--font-mono);font-weight:600;font-size:12px;color:var(--ink);letter-spacing:.04em}.model-glyph.Wan{background:var(--cobalt)}.model-glyph.Seedance{background:var(--pale)}.model-glyph.Seedream{background:var(--ice)}.model-meta{flex:1 1;min-width:0}.model-name{color:var(--heading);font-weight:500;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.model-tag{color:var(--dim);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chev{color:var(--dim);font-family:var(--font-mono)}.model-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:var(--surface-2);border:1px solid var(--line-strong);border-radius:var(--r-md);padding:6px;display:flex;flex-direction:column;gap:2px;box-shadow:0 18px 40px rgba(0,0,0,.45);max-height:380px;overflow-y:auto}.model-option{display:flex;gap:12px;align-items:center;text-align:left;width:100%;border:none;background:transparent;padding:10px;border-radius:12px}.model-option.on,.model-option:hover{background:var(--surface-3)}.drops{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.drop{position:relative;aspect-ratio:4/3;border-radius:var(--r-md);border:1.5px dashed var(--line-strong);background:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--dim);text-align:center;padding:10px;overflow:hidden;transition:border-color .15s,background .15s}.drop.over,.drop:hover{border-color:var(--cobalt);background:rgba(91,124,255,.06)}.drop input{opacity:0;cursor:pointer}.drop img,.drop input{position:absolute;inset:0}.drop img{width:100%;height:100%;object-fit:cover}.drop .remove{top:8px;right:8px;border:none;border-radius:999px;background:rgba(10,14,31,.85);color:var(--heading);width:28px;height:28px;font-size:14px}.drop .remove,.drop .tag{position:absolute;z-index:2}.drop .tag{left:8px;bottom:8px}.drop .plus{font-size:26px;line-height:1;color:var(--pale);font-weight:300}.prompt-wrap{position:relative}.prompt-count{position:absolute;right:12px;bottom:10px;color:#5d6894;font-family:var(--font-mono);font-size:10px}.settings-row{gap:12px}.settings-row,details.advanced summary{display:flex;align-items:center;justify-content:space-between}details.advanced summary{cursor:pointer;list-style:none}details.advanced summary::-webkit-details-marker{display:none}details.advanced[open] summary .chev{transform:rotate(180deg)}details.advanced .inner{display:flex;flex-direction:column;gap:12px;padding-top:12px}.estimate{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px 14px;border-radius:var(--r-md);background:var(--ink);border:1px solid var(--line)}.estimate .cost{font-family:var(--font-mono);color:var(--heading);font-size:14px;letter-spacing:.04em}.estimate .route{font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;color:var(--dim);text-transform:uppercase}.notice{padding:12px 14px;border-radius:var(--r-md);background:rgba(255,210,63,.08);border:1px solid rgba(255,210,63,.35);color:var(--paper);font-size:13px}.error-text,.notice a{color:var(--spark)}.error-text{font-size:13px}.gallery{min-width:0;display:flex;flex-direction:column;gap:22px}.gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.gallery-head h1{font-size:52px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));grid-gap:16px;gap:16px}.card{position:relative;border-radius:24px;overflow:hidden;background:var(--surface);border:1px solid var(--line);cursor:pointer;transition:border-color .15s,transform .15s;display:flex;flex-direction:column}.card:hover{border-color:var(--line-strong);transform:translateY(-2px)}.card .media{position:relative;aspect-ratio:var(--ar,1);background:var(--ink);overflow:hidden}.card .media img,.card .media video{width:100%;height:100%;object-fit:cover;display:block}.card .meta{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}.card .meta .row{display:flex;align-items:center;justify-content:space-between;gap:8px}.card .prompt{color:var(--body);font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}.card .kind-badge{position:absolute;top:10px;left:10px;z-index:2}.working{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:16px;background:repeating-linear-gradient(-45deg,rgba(91,124,255,.1) 0 14px,rgba(91,124,255,.03) 14px 28px);background-size:200% 200%;animation:stripes 2.4s linear infinite}@keyframes stripes{0%{background-position:0 0}to{background-position:80px 0}}.working .peaks{position:absolute;top:50%;left:50%;width:64px;transform:translate(-50%,-60%);opacity:.9}.working .peaks path{animation:rise 1.8s ease-in-out infinite}.working .peaks path:nth-child(2){animation-delay:.2s}.working .peaks path:nth-child(3){animation-delay:.4s}@keyframes rise{0%,to{opacity:.25}50%{opacity:1}}.bar{height:6px;background:var(--surface-3);overflow:hidden}.bar,.bar>span{border-radius:999px}.bar>span{display:block;height:100%;background:var(--cobalt);transition:width .6s}.bar.indeterminate>span{width:35%;animation:slide 1.4s ease-in-out infinite}@keyframes slide{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}.failed-box{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:46px 18px 18px;background:var(--surface-2)}.failed-box p{margin:0;font-size:13px;color:var(--body);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.viewer .notice{overflow-wrap:anywhere}.composer-footer{position:-webkit-sticky;position:sticky;bottom:0;z-index:5;margin:0 -22px -22px;padding:14px 22px 22px;background:var(--surface);border-top:1px solid var(--line);gap:12px}.composer-footer,.empty{display:flex;flex-direction:column}.empty{position:relative;overflow:hidden;border-radius:var(--r-card);background:var(--royal);min-height:460px;padding:48px;justify-content:flex-end;gap:14px}.empty .big-peak{position:absolute;right:-60px;top:-40px;width:520px;opacity:.9}.empty h2{font-size:56px;position:relative}.empty .serif{font-size:26px;color:var(--pale);position:relative}.load-more{padding:8px 0 32px}.load-more,.overlay{display:flex;justify-content:center}.overlay{position:fixed;inset:0;z-index:50;background:rgba(7,9,26,.88);align-items:center;padding:24px}.viewer{width:min(1280px,100%);max-height:calc(100vh - 48px);display:grid;grid-template-columns:minmax(0,1fr) 340px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-card);overflow:hidden}.viewer .stage{background:var(--ink);display:flex;align-items:center;justify-content:center;min-height:320px}.viewer .stage img,.viewer .stage video{max-height:calc(100vh - 50px);display:block}.viewer .side{padding:22px;display:flex;flex-direction:column;gap:16px}.viewer .side .prompt-full{color:var(--heading);white-space:pre-wrap;word-break:break-word}.kv{display:grid;grid-template-columns:auto 1fr;grid-gap:8px 14px;gap:8px 14px;font-size:13px}.kv dt{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);padding-top:2px}.kv dd{margin:0;color:var(--heading)}.actions{display:flex;flex-wrap:wrap;gap:8px}.close-x{position:fixed;top:18px;right:18px;z-index:51;width:42px;height:42px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--heading);font-size:18px}.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.auth .brand-side{position:relative;overflow:hidden;background:var(--royal);padding:56px;display:flex;flex-direction:column;justify-content:space-between}.auth .brand-side .big-peak{position:absolute;right:-120px;bottom:-80px;width:640px}.auth .brand-side h1{font-size:64px;position:relative;max-width:520px}.auth .brand-side .serif{font-size:28px;color:var(--pale);position:relative}.auth .form-side{display:flex;align-items:center;justify-content:center;padding:40px 24px}.auth form{width:min(400px,100%);display:flex;flex-direction:column;gap:16px}.auth form h2{font-size:36px}.admin{max-width:1240px;margin:0 auto;padding:36px 28px 72px;display:flex;flex-direction:column;gap:36px}.admin h1{font-size:56px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.section-head h2{font-size:30px}.provider-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));grid-gap:16px;gap:16px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:24px;display:flex;flex-direction:column;gap:16px}.panel.royal{background:var(--royal)}.panel h3{margin:0;font-size:24px;font-weight:500;color:var(--heading)}.panel p{margin:0}.provider-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.stat-row{display:flex;gap:24px;flex-wrap:wrap}.stat .v{font-family:var(--font-mono);color:var(--heading);font-size:20px;letter-spacing:.02em}.key-row{display:flex;gap:8px}.key-row .input{font-family:var(--font-mono);font-size:13px}.test-msg{font-size:13px}.test-msg.ok{color:var(--pale)}.test-msg.bad{color:var(--spark)}.routes{display:flex;flex-direction:column;gap:10px}.route-row{display:grid;grid-template-columns:240px minmax(0,1fr);grid-gap:16px;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px 18px}.route-chain{flex-wrap:wrap}.route-chain,.route-chip{display:flex;gap:8px;align-items:center}.route-chip{padding:6px 8px 6px 12px;border-radius:999px;border:1px solid var(--line-strong);background:var(--ink)}.route-chip.off{opacity:.45}.route-chip .n{font-family:var(--font-mono);font-size:10px;color:var(--dim)}.route-chip .name{color:var(--heading);font-size:14px}.icon-btn{width:26px;height:26px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--body);font-size:12px;display:grid;place-items:center;padding:0}.icon-btn:hover:not(:disabled){border-color:var(--pale);color:var(--heading)}.icon-btn:disabled{opacity:.3}.arrow-sep{color:var(--dim);font-family:var(--font-mono);font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:60;background:var(--surface-2);border:1px solid var(--line-strong);color:var(--heading);padding:12px 18px;border-radius:999px;font-size:14px;max-width:calc(100vw - 32px);box-shadow:0 12px 30px rgba(0,0,0,.4)}.toast.bad{border-color:var(--spark)}@media (max-width:1100px){.studio{grid-template-columns:1fr;padding:16px;gap:20px}.composer{position:static;max-height:none}.viewer{overflow-y:auto}.route-row,.viewer{grid-template-columns:1fr}}@media (max-width:760px){.topbar{padding:0 16px;height:60px}.topbar .lockup{height:20px}.nav a,.nav button{padding:8px 10px;letter-spacing:.1em}.admin h1,.gallery-head h1{font-size:40px}.empty{padding:28px;min-height:360px}.empty h2{font-size:40px}.auth{grid-template-columns:1fr}.auth .brand-side{min-height:260px;padding:28px}.auth .brand-side h1{font-size:42px}.auth .brand-side .big-peak{width:380px;right:-90px;bottom:-60px}.admin{padding:24px 16px 56px}.provider-grid{grid-template-columns:1fr}.grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.overlay{padding:0}.viewer{border-radius:0;max-height:100vh;height:100vh}}.ref-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.ref{position:relative;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;border:1px solid var(--line-strong);background:var(--ink)}.ref img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.ref .tag{position:absolute;left:6px;bottom:6px;z-index:2;font-size:9px;padding:3px 7px}.ref .move,.ref .remove{position:absolute;top:6px;z-index:2;border:none;border-radius:999px;background:rgba(10,14,31,.85);color:var(--heading);width:24px;height:24px;font-size:12px;padding:0}.ref .remove{right:6px}.ref .move{left:6px}.drop.ref-add{aspect-ratio:1;border-radius:var(--r-sm);padding:6px}.drop.ref-add .mono{font-size:10px}.hint{font-size:12px;color:var(--dim);line-height:1.45}.seg.small button{padding:5px 9px;font-size:9.5px}.dash-filters,.strategy-all{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.stat-tiles{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:12px;gap:12px}.stat-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:20px 22px;display:flex;flex-direction:column;gap:6px}.stat-tile .v{font-family:var(--font-display);font-size:34px;font-weight:500;color:var(--heading);line-height:1.1}.small-print{font-size:12px;margin:-12px 0 0}.swatch{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}.chart-panel{display:flex;flex-direction:column;gap:16px}.chart-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}.chart-head h3{margin:6px 0 0}.chart-head h3 .muted{font-size:14px;font-weight:400}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--body)}.legend-item{display:inline-flex;align-items:center;gap:8px}.chart-wrap{position:relative;width:100%;min-height:220px}.chart-wrap svg{display:block;overflow:visible}.chart-wrap rect[tabindex]:focus{outline:none}.grid-line{stroke:var(--line);stroke-width:1}.base-line{stroke:var(--line-strong);stroke-width:1}.axis-text{fill:var(--dim);font-family:var(--font-mono);font-size:10px}.chart-empty{position:absolute;inset:0 0 26px 52px;display:grid;place-items:center;font-size:11px;pointer-events:none}.chart-tip{position:absolute;top:4px;transform:translateX(-50%);pointer-events:none;z-index:3;background:var(--ink);border:1px solid var(--line-strong);border-radius:var(--r-sm);padding:10px 12px;min-width:170px;display:flex;flex-direction:column;gap:4px;font-size:12px}.chart-tip .mono{font-size:10px}.tip-total{font-size:18px;color:var(--heading);font-weight:500}.tip-row{display:flex;align-items:center;gap:8px;color:var(--body)}.tip-row strong{color:var(--heading);font-weight:500;min-width:48px}.tip-key{width:12px;height:2px;border-radius:1px;flex:none}.table-view summary{cursor:pointer;font-size:11px;color:var(--pale);letter-spacing:.08em}.table-view table{width:100%;border-collapse:collapse;margin-top:10px;font-size:13px}.table-view td,.table-view th{text-align:right;padding:6px 8px;border-bottom:1px solid var(--line)}.table-view td:first-child,.table-view th:first-child{text-align:left}.table-view th{font-family:var(--font-mono);font-size:10px;color:var(--dim);font-weight:600;letter-spacing:.08em}.model-bars{display:flex;flex-direction:column;gap:10px}.model-bar{display:grid;grid-template-columns:150px 1fr 72px 64px;align-items:center;grid-gap:12px;gap:12px;font-size:14px}.model-bar .name{color:var(--heading)}.model-bar .track{height:12px;background:var(--surface-2);border-radius:0 4px 4px 0;overflow:hidden}.model-bar .fill{display:block;height:100%;background:#5b7cff;border-radius:0 4px 4px 0}.model-bar .val{color:var(--heading);text-align:right;font-size:12px}.model-bar .jobs{font-size:10px}@media (max-width:900px){.stat-tiles{grid-template-columns:1fr 1fr}.model-bar{grid-template-columns:110px 1fr 64px}.model-bar .jobs{display:none}}.presets .preset-row{display:flex;flex-direction:column;gap:6px}.link-btn,.presets .seg button{text-transform:uppercase}.link-btn{background:none;border:none;padding:0;color:var(--pale);font-size:10px;letter-spacing:.1em;cursor:pointer}.link-btn:hover{color:var(--heading)}.alerts{display:flex;flex-direction:column;gap:10px}.alert{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line-strong)}.alert.critical{border-color:var(--spark)}.alert strong{color:var(--heading);font-weight:500}.alert p{margin:4px 0;font-size:13px;color:var(--body)}.alert .mono{font-size:10px}.backup-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:12px}.backup-list li{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.backup-list .mono{font-size:11px;color:var(--body)}.dot-status{width:8px;height:8px;border-radius:50%;background:var(--dim);flex:none;align-self:center}.dot-status.ok{background:var(--cobalt)}.dot-status.failed{background:var(--spark)}.progress-info{position:relative;width:min(86%,260px);display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center}.progress-stage{color:var(--heading);font-size:11px}.progress-info .bar{width:100%;height:8px}.progress-meta{font-size:10px;color:var(--pale);letter-spacing:.06em}.working{align-items:center}.working:has(.progress-info) .peaks{top:30%;width:46px}.viewer{height:min(920px,calc(100vh - 48px));grid-template-rows:minmax(0,1fr)}.viewer .stage{min-height:0;height:100%;overflow:hidden;padding:12px}.viewer .stage img,.viewer .stage video{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.viewer .side{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}.viewer .side .prompt-full{flex:none}@media (max-width:900px){.viewer{height:auto;max-height:calc(100vh - 32px);grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);overflow-y:auto}.viewer .stage{height:auto;max-height:55vh}.viewer .side{height:auto;overflow:visible}}.skeleton{display:grid;grid-gap:24px;gap:24px;padding:18px 28px}.skeleton.video{grid-template-columns:380px minmax(0,1fr)}.sk-panel{height:calc(100vh - 110px);border-radius:var(--r-card);background:var(--surface)}.sk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));grid-gap:12px;gap:12px;align-content:start}.sk-card{aspect-ratio:1;border-radius:var(--r-md);background:var(--surface);animation:sk 1.2s ease-in-out infinite alternate}@keyframes sk{0%{opacity:.45}to{opacity:.85}}@media (max-width:1100px){.skeleton.video{grid-template-columns:1fr}.sk-panel{height:240px}}.staged{position:relative;display:grid;place-items:center}.staged,.staged>img{width:100%;height:100%}.staged>img{grid-area:1/1;object-fit:contain}.staged-low{filter:blur(2px)}.staged-full{opacity:0;transition:opacity .25s}.staged-full.ready{opacity:1}.staged-note{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--pale);background:rgba(10,14,31,.8);padding:4px 10px;border-radius:999px}.topbar-left{display:flex;align-items:center;gap:22px}.nav-main a{font-size:12px;padding:9px 18px}.nav-main a.active{background:var(--cobalt);border-color:var(--cobalt);color:var(--ink)}.img-studio{position:relative;min-height:calc(100vh - 68px)}.ctl{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 13px;border-radius:var(--r-sm);border:1px solid transparent;background:var(--surface-2);color:var(--heading);font-size:14px;font-weight:500;white-space:nowrap;transition:background .12s,border-color .12s}.ctl:hover:not(:disabled){background:var(--surface-3)}.ctl.on{border-color:var(--cobalt)}.ctl.icon{width:38px;padding:0;justify-content:center;font-size:18px;font-weight:400;background:transparent}.ctl .chev{color:var(--dim);font-size:16px}.ctl-group{display:inline-flex;align-items:center;background:var(--surface-2);border-radius:var(--r-sm)}.ctl-sep{width:1px;height:18px;background:var(--line-strong)}.ctl.stepper{gap:2px;padding:0 4px}.ctl.stepper button{width:28px;height:28px;border:none;border-radius:8px;background:none;color:var(--body);font-size:16px}.ctl.stepper button:hover:not(:disabled){background:var(--surface-3);color:var(--heading)}.ctl.stepper button:disabled{opacity:.35}.ctl.stepper span{min-width:36px;text-align:center;color:var(--dim);font-family:var(--font-mono);font-size:13px}.ctl.stepper strong{color:var(--heading);font-weight:600}.mini-glyph{width:22px;height:22px;border-radius:7px;display:inline-grid;place-items:center;flex:none;font-family:var(--font-mono);font-size:9px;font-weight:600;color:var(--ink);background:var(--pale)}.mini-glyph.Seedream{background:var(--ice)}.mini-glyph.Wan{background:var(--cobalt)}.icon-round{width:34px;height:34px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--heading);display:grid;place-items:center;font-size:13px;flex:none}.icon-round:hover{background:var(--surface-3)}.pop-anchor{position:relative;display:inline-flex}.pop{position:absolute;z-index:40;min-width:230px;max-width:min(380px,92vw);padding:6px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-md);display:flex;flex-direction:column;gap:1px}.pop-up{bottom:calc(100% + 10px)}.pop-down{top:calc(100% + 8px)}.pop-start{left:0}.pop-end{right:0}.pop-title{padding:8px 10px 4px;font-family:var(--font-mono);font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}.pop-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:none;border-radius:10px;background:none;color:var(--heading);text-align:left;font-size:14px}.pop-item.on,.pop-item:hover:not(:disabled){background:var(--surface-2)}.pop-item:disabled{opacity:.4}.pop-icon{color:var(--pale);display:inline-flex;flex:none}.pop-text{display:flex;flex-direction:column;gap:1px;flex:1 1;min-width:0}.pop-label{display:flex;align-items:center;gap:8px;font-weight:500}.pop-label .pill{font-size:8.5px;padding:2px 6px}.pop-hint{font-size:12px;color:var(--dim);line-height:1.35}.pop-check{color:var(--cobalt);font-size:14px}.pop-search{margin:4px 4px 2px;width:calc(100% - 8px);height:38px}.pop-scroll{max-height:340px;overflow-y:auto;display:flex;flex-direction:column;gap:1px}.pop-models{width:360px}.pop-looks{max-height:420px;overflow-y:auto}.pop-back{border:none;background:none;color:var(--pale);text-align:left;padding:8px 10px;font-family:var(--font-mono);font-size:11px;letter-spacing:.1em}.pop-clear{margin:6px 4px 2px;border:1px solid var(--line-strong);background:none;color:var(--body);border-radius:10px;padding:8px;font-size:13px}.toggle-row{cursor:default}.toggle-row:hover{background:none!important}.size-slider{display:flex;align-items:center;gap:10px;padding:6px 10px 10px}.size-slider input{flex:1 1;accent-color:var(--cobalt)}.gal{padding:18px 28px 230px;display:flex;flex-direction:column;gap:18px}.gal-bar{display:flex;justify-content:flex-end;gap:8px;position:-webkit-sticky;position:sticky;top:80px;z-index:15}.gal-group{display:flex;flex-direction:column;gap:12px}.gal-day{margin:8px 0 0}.gal-grid.masonry{columns:var(--card-w) auto;column-gap:12px}.gal-grid.masonry .icard{page-break-inside:avoid;break-inside:avoid;margin-bottom:12px}.gal-grid.square{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--card-w),1fr));grid-gap:12px;gap:12px}.gal .empty{margin-top:10px}.icard{position:relative;border-radius:var(--r-md);overflow:hidden;background:var(--surface);border:1px solid var(--line)}.icard-media{position:relative;aspect-ratio:var(--ar,1);cursor:zoom-in;background:var(--ink)}.icard-media img{width:100%;height:100%;object-fit:cover;display:block}.icard .failed-box,.icard .working,.icard-media img{position:absolute;inset:0}.icard-actions{position:absolute;z-index:3;display:flex;gap:6px;opacity:0;transition:opacity .12s}.icard:focus-within .icard-actions,.icard:hover .icard-actions{opacity:1}.icard-actions.top{top:10px;right:10px;flex-direction:column}.icard-actions.bottom{left:10px;right:10px;bottom:10px;flex-wrap:wrap}.act{min-width:34px;height:34px;padding:0 10px;border-radius:999px;border:none;background:rgba(10,14,31,.82);color:var(--heading);font-size:15px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.act:hover{background:var(--ink)}.act.liked{color:var(--magenta)}.act.wide{font-size:12px;font-weight:500;gap:4px}.act-more{position:relative}.act-menu{position:absolute;right:calc(100% + 6px);top:0;min-width:130px;padding:4px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-sm);display:flex;flex-direction:column}.act-menu button{border:none;background:none;color:var(--heading);text-align:left;padding:8px 10px;border-radius:8px;font-size:13px}.act-menu button:hover{background:var(--surface-2)}.act-menu button.danger{color:var(--spark)}@media (hover:none){.icard-actions{opacity:1}}.bar-wrap{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:30;width:min(1040px,calc(100vw - 32px))}.bar-wrap,.pbar{display:flex;flex-direction:column;gap:10px}.pbar{background:var(--surface);border:1px solid var(--line-strong);border-radius:22px;padding:14px 14px 12px 18px}.pbar-refs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pref{position:relative;width:58px;height:58px;border-radius:12px;overflow:hidden;border:1px solid var(--line-strong);flex:none}.pref.is-el{border-color:var(--cobalt)}.pref img{width:100%;height:100%;object-fit:cover;display:block}.pref .remove{position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;border:none;padding:0;background:rgba(10,14,31,.85);color:var(--heading);font-size:10px;opacity:0;transition:opacity .12s}.pref .remove:focus-visible,.pref:hover .remove{opacity:1}.pref-tag{position:absolute;left:0;right:0;bottom:0;padding:2px 4px;font-size:8.5px;background:rgba(10,14,31,.85);color:var(--ice);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pref-warn{font-size:12px;color:var(--spark)}.pbar-main{display:flex;gap:14px;align-items:stretch}.pbar-left{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:10px}.ptext-wrap{position:relative}.ptext{width:100%;resize:none;border:none;background:none;outline:none;color:var(--heading);font-size:16px;line-height:1.5;min-height:48px;max-height:180px;padding:2px 0;field-sizing:content}.ptext::placeholder{color:#5d6894}.pbar-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pbar-note{font-size:12px;color:var(--spark)}.pbar-note a{color:var(--pale)}.gen-btn{flex:none;width:150px;border:none;border-radius:16px;background:var(--magenta);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;transition:transform .08s,filter .12s}.gen-btn:hover:not(:disabled){filter:brightness(1.06)}.gen-btn:active:not(:disabled){transform:translateY(1px)}.gen-btn:disabled{background:var(--surface-3);color:var(--dim)}.gen-label{font-family:var(--font-mono);font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.gen-price{font-size:13px;opacity:.85}.mention-list{position:absolute;left:0;bottom:calc(100% + 8px);z-index:45;min-width:260px;padding:4px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-sm);display:flex;flex-direction:column}.mention-list button{display:flex;align-items:center;gap:10px;border:none;background:none;color:var(--heading);padding:6px 8px;border-radius:8px;text-align:left;font-size:14px}.mention-list button:first-child,.mention-list button:hover{background:var(--surface-2)}.mention-list img{width:28px;height:28px;border-radius:7px;object-fit:cover}.picker{background:var(--surface);border:1px solid var(--line-strong);border-radius:22px;height:min(560px,calc(100vh - 300px));display:flex;flex-direction:column;overflow:hidden}.picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px 10px 14px;border-bottom:1px solid var(--line)}.picker-tabs{display:flex;gap:4px;flex-wrap:wrap}.picker-tabs button{border:none;background:none;color:var(--dim);padding:8px 14px;border-radius:999px;font-size:14px;font-weight:500}.picker-tabs button:hover{color:var(--heading)}.picker-tabs button.on{background:var(--ice);color:var(--ink)}.picker-body{flex:1 1;overflow-y:auto;padding:14px}.lib{min-height:100%;border-radius:var(--r-md)}.lib.over{outline:2px dashed var(--cobalt);outline-offset:-4px}.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));grid-gap:10px;gap:10px}.lib-tile{position:relative;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;padding:0;border:2px solid transparent;background:var(--ink);cursor:pointer}.lib-tile img{width:100%;height:100%;object-fit:cover;display:block}.lib-tile:hover{border-color:var(--line-strong)}.lib-tile.on{border-color:var(--cobalt)}.lib-check{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;background:var(--cobalt);color:var(--ink);display:grid;place-items:center;font-size:12px;font-weight:700}.upload-tile{border:1.5px dashed var(--line-strong);background:var(--surface-2);color:var(--heading);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:500}.upload-tile .mono{font-size:9px}.upload-tile input{position:absolute;inset:0;opacity:0;cursor:pointer}.up-icon{width:36px;height:36px;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font-size:18px;color:var(--pale)}.lib-empty{margin:14px 2px 0;font-size:13px}.el-tab{display:grid;grid-template-columns:170px 1fr;grid-gap:14px;gap:14px;min-height:100%}.el-cats{display:flex;flex-direction:column;gap:2px}.el-cats button{display:flex;justify-content:space-between;align-items:center;border:none;background:none;color:var(--body);padding:9px 12px;border-radius:10px;font-size:14px;text-align:left}.el-cats button.on,.el-cats button:hover{background:var(--surface-2)}.el-cats button.on{color:var(--heading)}.el-cats .mono{font-size:10px}.el-main{display:flex;flex-direction:column;gap:10px;min-width:0}.el-search{height:38px}.el-tile{cursor:default}.el-pick{position:absolute;inset:0;border:none;padding:0;background:none;cursor:pointer}.el-meta{position:absolute;left:0;right:0;bottom:0;padding:6px 8px 7px;display:flex;flex-direction:column;background:rgba(10,14,31,.86);text-align:left}.el-name{color:var(--heading);font-size:13px;font-weight:500}.el-meta .mono{font-size:10px;color:var(--pale)}.el-count{left:6px;border-radius:999px;padding:2px 7px;font-size:10px}.el-count,.el-edit{position:absolute;top:6px;background:rgba(10,14,31,.85);color:var(--heading)}.el-edit{right:6px;z-index:2;width:26px;height:26px;border-radius:50%;border:none;font-size:12px;opacity:0;transition:opacity .12s}.el-tile.on .el-edit{right:34px}.el-edit:focus-visible,.el-tile:hover .el-edit{opacity:1}.el-dialog{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 48px);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-card);display:flex;flex-direction:column;overflow:hidden}.el-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.el-dialog-head h3{margin:0;font-size:20px;font-weight:500;color:var(--heading)}.el-dialog-body{display:grid;grid-template-columns:1fr 340px;min-height:0;flex:1 1;overflow-y:auto}.el-drop{padding:22px;display:flex;flex-direction:column;gap:14px;justify-content:center;border-right:1px solid var(--line)}.el-drop.over{background:rgba(91,124,255,.06)}.el-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:10px;gap:10px}.el-image{position:relative;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;border:1px solid var(--line-strong)}.el-image img{width:100%;height:100%;object-fit:cover}.el-image .remove{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;border:none;background:rgba(10,14,31,.85);color:var(--heading);font-size:12px}.el-add{position:relative;min-height:220px;border:1.5px dashed var(--line-strong);border-radius:var(--r-md);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--heading);text-align:center;padding:20px}.el-images+.el-add{min-height:120px}.el-add .mono{font-size:10px}.el-add input{position:absolute;inset:0;opacity:0;cursor:pointer}.el-form{padding:22px;display:flex;flex-direction:column;gap:14px}.el-form select.input{height:42px}.handle-input{display:flex;align-items:center;gap:0;background:var(--ink);border:1px solid var(--line-strong);border-radius:var(--r-sm);padding-left:12px}.handle-input span{color:var(--pale);font-family:var(--font-mono)}.handle-input .input{border:none;background:none;padding-left:4px}.el-dialog-foot{display:flex;gap:10px;align-items:center;padding:14px 22px;border-top:1px solid var(--line)}@media (max-width:760px){.topbar{padding:0 14px}.topbar-left{gap:10px}.topbar .lockup{height:20px}.nav a,.nav button{padding:8px 10px;letter-spacing:.1em}.gal{padding:14px 12px 300px}.pbar-main{flex-direction:column}.gen-btn{width:100%;flex-direction:row;gap:12px;padding:14px}.el-tab{grid-template-columns:1fr}.el-cats{flex-direction:row;overflow-x:auto}.el-dialog-body{grid-template-columns:1fr}.el-drop{border-right:none;border-bottom:1px solid var(--line)}}.tile-del{position:absolute;bottom:6px;right:6px;z-index:2;width:28px;height:28px;border-radius:50%;border:none;background:rgba(10,14,31,.88);color:var(--heading);font-size:13px;opacity:0;transition:opacity .12s}.tile-del:hover{background:var(--ink);color:var(--spark)}.lib-tile:hover .tile-del,.tile-del:focus-visible{opacity:1}@media (hover:none){.tile-del{opacity:1}}.icard-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.icard-play{position:absolute;left:10px;top:10px;z-index:2;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:rgba(10,14,31,.82);color:var(--heading);transition:opacity .12s;pointer-events:none}.icard:hover .icard-play{opacity:0}.nav a.balance-chip{display:inline-flex;align-items:center;gap:8px;margin-right:6px;border-color:var(--line-strong);background:var(--surface);color:var(--body)}.balance-chip .bc-value{color:var(--heading);font-size:12px;letter-spacing:.06em}.nav a.balance-chip.low{border-color:var(--spark)}.balance-chip.low .bc-value{color:var(--spark)}@media (max-width:760px){.balance-chip .bc-name{display:none}}.vid-studio{display:grid;grid-template-columns:380px minmax(0,1fr);grid-gap:24px;gap:24px;align-items:start;padding:18px 28px 48px;position:relative}.vpanel{position:relative;z-index:25;display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card)}.vtabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:0 4px}.vtabs button{background:none;color:var(--dim);padding:10px 6px 12px;margin-right:10px;font-size:15px;font-weight:500;border:none;border-bottom:2px solid transparent}.vtabs button.on{color:var(--heading);border-bottom-color:var(--cobalt)}.vbox{background:var(--ink);border:1px solid var(--line);border-radius:var(--r-md);padding:12px}.vrefs{min-height:150px}.vrefs,.vrefs-empty{display:flex;flex-direction:column;justify-content:center}.vrefs-empty{border:1.5px dashed var(--line-strong);border-radius:var(--r-sm);background:none;color:var(--heading);align-items:center;gap:6px;padding:22px 12px;text-align:center}.vrefs-empty:hover{border-color:var(--cobalt);background:rgba(91,124,255,.06)}.vrefs-empty strong{font-weight:500;font-size:15px}.vrefs-empty .muted{font-size:12px}.vref-tiles{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.vref,.vref-add{position:relative;width:72px;height:72px;border-radius:14px;flex:none}.vref-add{border:1px solid var(--line-strong);background:var(--surface-2);color:var(--pale);font-size:22px}.vref-add:hover{background:var(--surface-3)}.vref{border:2px solid var(--line-strong)}.vref.end,.vref.start{border-color:var(--cobalt)}.vref img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block}.vref .remove{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:none;padding:0;background:var(--ink);color:var(--heading);font-size:10px;border:1px solid var(--line-strong);opacity:0;transition:opacity .12s}.vref .remove:focus-visible,.vref:hover .remove{opacity:1}.vref-role{position:absolute;left:4px;right:4px;bottom:4px;border:none;border-radius:8px;padding:2px 0;background:rgba(10,14,31,.86);color:var(--heading);font-size:10px;font-weight:600;text-align:center;font-family:var(--font-mono);letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vref-role.static{color:var(--pale)}.vref-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:140px;padding:4px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-sm);display:flex;flex-direction:column}.vref-menu button{border:none;background:none;color:var(--heading);text-align:left;padding:8px 10px;border-radius:8px;font-size:13px}.vref-menu button:hover:not(:disabled){background:var(--surface-2)}.vref-menu button.on{color:var(--cobalt)}.vref-menu button:disabled{opacity:.35}.vrefs-mode{margin:10px 0 0;text-align:center;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}.vprompt{display:flex;flex-direction:column;gap:8px}.vlabel{font-weight:500}.vlabel,.vtext{color:var(--heading);font-size:15px}.vtext{width:100%;min-height:96px;max-height:220px;resize:vertical;border:none;background:none;outline:none;line-height:1.5;padding:0}.vtext::placeholder{color:#5d6894}.vprompt-row{display:flex;gap:6px;align-items:center}.vprompt-row .prompt-count{position:static;margin-left:auto}.chip{height:30px;padding:0 11px;border-radius:9px;border:1px solid transparent;background:var(--surface-2);color:var(--heading);font-size:13px;font-weight:500}.chip:hover{background:var(--surface-3)}.chip.on{border-color:var(--cobalt)}.mention-list.down{bottom:auto;top:calc(100% + 6px)}.vcell{position:relative;width:100%;text-align:left;display:flex;flex-direction:column;gap:2px;padding:10px 30px 10px 12px;border-radius:var(--r-md);border:1px solid var(--line);background:var(--ink);color:var(--heading)}.vcell:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface-2)}.vcell.on{border-color:var(--cobalt)}.vcell:disabled{cursor:default;opacity:.7}.vcell-k{font-size:12px;color:var(--dim)}.vcell-v{font-size:15px;font-weight:500;display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vcell-v .pill{font-size:8.5px;padding:2px 6px}.vcell .chev{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--dim)}.vgrid .pop-anchor,.vpanel>.pop-anchor{display:block}.vgrid{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.pop-right{top:0}.pop-right,.vgrid .pop-anchor:nth-child(2n) .pop-right{left:calc(100% + 12px)}.dur-value{padding:0 10px;font-size:22px;font-weight:500;color:var(--heading)}.dur-slider{margin:8px 10px 0;accent-color:var(--cobalt)}.dur-ticks{display:flex;justify-content:space-between;padding:2px 10px 10px;font-size:10px;color:var(--dim)}.pop-advanced{width:300px}.adv-fields{display:flex;flex-direction:column;gap:10px;padding:0 6px 8px}.model-chips{display:inline-flex;flex-wrap:wrap;gap:4px;margin-top:3px}.mchip{font-family:var(--font-mono);font-size:9.5px;padding:1px 6px;border-radius:6px;background:var(--surface-2);color:var(--body)}.vnote{font-size:12px;color:var(--spark);padding:0 4px;line-height:1.45}.vnote a{color:var(--pale)}.gen-btn.vgen{width:100%;flex-direction:row;justify-content:center;gap:14px;padding:16px;min-height:58px}.vgen .gen-label{font-size:14px}.vpicker{position:absolute;left:calc(380px + 28px + 24px);top:18px;z-index:35;width:min(880px,calc(100vw - 460px))}.vgallery{padding-top:6px}@media (max-width:1100px){.vid-studio{grid-template-columns:1fr;padding:14px}.vpicker{position:fixed;left:12px;right:12px;top:80px;width:auto}.pop-right{left:0;top:calc(100% + 8px)}}.vcount{cursor:default;padding-right:12px}.vcount:hover{background:var(--ink)!important;border-color:var(--line)!important}.stepper-inline{display:flex;align-items:center;gap:6px}.stepper-inline button{width:26px;height:26px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--heading);font-size:15px;line-height:1;padding:0}.stepper-inline button:disabled{opacity:.35}.stepper-inline strong{min-width:10px;text-align:center}.vgallery{min-width:0;display:flex;flex-direction:column;gap:4px}.vgallery .gal{padding:0 0 48px;gap:14px}.vgallery .gal-bar{top:80px;margin-top:-54px}.vgallery-head{padding-right:230px}@media (max-width:1100px){.vgallery .gal-bar{margin-top:0}.vgallery-head{padding-right:0}}