/* Topaz prototype — fixed 1200×760 canvas scaled by demo.js.
   Tokens taken from the shipping apps: desktop (Gigapixel 8, Video 7, Photo) and Topaz for Web. */
@font-face { font-family: "Inter"; src: url("../../../assets/fonts/Inter-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --p: #FF2156;            /* product accent, set per app */
  --blue: #3F93FF;         /* desktop primary (Render / Export) */
  --wblue: #0E7CFF;        /* web primary (Upload, Log in) */
  --coral: #FF7756;        /* web: selected workflow + send */
  --lime: #B5F23D;         /* Photo-family: Autopilot */
  /* desktop greys */
  --d-bg: #111111; --d-bar: #1B1B1B; --d-bar2: #161616; --d-line: #0A0A0A;
  --d-panel: #232323; --d-field: #2D2D2D; --d-field-2: #383838; --d-sep: #2E2E2E;
  /* web greys */
  --w-bg: #171717; --w-card: #212121; --w-line: #2B2B2B; --w-chip: #353535;
  --ink: #F2F2F2; --ink-2: #A9A9A9; --ink-3: #6F6F6F;
  --ok: #3DDC84; --warn: #FFB020;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--d-bg); }
body { font-family: var(--font); color: var(--ink); font-size: 12px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg.i { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sp { flex: 1; }

#stage { position: absolute; top: 0; left: 0; width: 1200px; height: 760px; transform-origin: 0 0; overflow: hidden; background: var(--d-bg); }
.app { position: absolute; inset: 0; display: flex; animation: fade .35s ease; }
.app--desktop { flex-direction: column; }

/* ---------- shared bits ---------- */
.btn { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 8px; font-weight: 500; font-size: 12.5px; white-space: nowrap; transition: background-color .15s, filter .15s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--dark { background: var(--d-field); color: var(--ink); }
.btn--dark:hover { background: var(--d-field-2); }
.btn--block { width: 100%; }
.btn--sm { height: 28px; padding: 0 11px; font-size: 11.5px; }
.avatar { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8aa0b8, #5c6b7d); font-size: 9.5px; font-weight: 700; color: #fff; flex: none; }
.avatar em { position: absolute; right: -8px; bottom: -4px; font-style: normal; font-size: 8.5px; font-weight: 700; padding: 0 4px; height: 13px; line-height: 13px; border-radius: 7px; background: var(--wblue); box-shadow: 0 0 0 2px var(--d-bar); }
.appicon { width: 16px; height: 16px; flex: none; display: block; }
.appicon svg { width: 100%; height: 100%; display: block; }
.seg { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--d-field); }
.seg button { height: 26px; padding: 0 12px; border-radius: 5px; color: var(--ink-2); font-size: 12px; flex: 1; transition: color .15s, background-color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--d-field-2); color: var(--ink); }
.tog { width: 30px; height: 17px; border-radius: 9px; background: #3a3a3a; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #9a9a9a; transition: transform .2s, background-color .2s; }
.tog[aria-checked="true"] { background: var(--p); }
.tog[aria-checked="true"]::after { transform: translateX(13px); background: #111; }

/* ================= DESKTOP ================= */
.tbar { height: 38px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--d-bar); border-bottom: 1px solid var(--d-line); position: relative; }
.lights { display: flex; gap: 7px; margin-right: 8px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.tbar b { font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.tbar__sep { width: 1px; height: 16px; background: #333; margin: 0 4px; }
.tbar__file { color: var(--ink); font-size: 11.5px; }
.tbar__mid { position: absolute; left: 50%; top: 0; height: 38px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; }
.tbar__ver { margin-left: auto; color: var(--ink-3); font-size: 11px; padding: 0 12px; height: 38px; display: flex; align-items: center; border-left: 1px solid var(--d-line); }
.tbar__dim { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 0 12px; height: 38px; justify-content: center; border-left: 1px solid var(--d-line); }
.tbar__dim small { color: var(--ink-3); font-size: 9.5px; }
.tbar__dim b { color: var(--ink); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.trial { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,176,32,.12); color: #ffcf73; font-weight: 600; font-size: 10.5px; }
.trial i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.trial:hover { background: rgba(255,176,32,.2); }
.trial + .tbar__ver { margin-left: 10px; }
.ib { width: 30px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-2); }
.ib:hover { background: #262626; color: var(--ink); }
.ib[aria-pressed="true"] { background: #2E2E2E; color: var(--ink); }
.ib svg { width: 15px; height: 15px; }

/* video: open-file tabs + enhancement summary */
.vtabs { flex: none; display: flex; flex-direction: column; background: var(--d-bar2); border-bottom: 1px solid var(--d-line); }
.vtabs__row { height: 30px; display: flex; align-items: stretch; padding-left: 8px; }
.vtab { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--ink-3); font-size: 11px; border-right: 1px solid #222; }
.vtab.is-on { color: var(--ink); background: var(--d-bar); box-shadow: inset 0 -2px 0 var(--blue); }
.vtab svg { width: 12px; height: 12px; }
.vtab .ib { width: 18px; height: 18px; margin-right: -6px; }
.vtabs__sum { height: 26px; display: flex; align-items: center; gap: 18px; padding: 0 14px; font-size: 10.5px; color: var(--ink); border-top: 1px solid #1f1f1f; }
.vtabs__sum span { color: var(--ink-3); margin-right: 4px; }

.dbody { flex: 1; min-height: 0; display: flex; }
.canvas { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--d-bg); }
.vwrap { position: relative; flex: 1; min-height: 0; margin: 44px 22px 14px; display: flex; align-items: center; justify-content: center; }
.view { position: relative; overflow: hidden; background: #0b0b0b; }
.view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.split { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px); cursor: ew-resize; z-index: 2; }
.split i { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.split i::before, .split i::after { content: ""; position: absolute; top: 10px; border: 4px solid transparent; }
.split i::before { left: 3px; border-right-color: #111; } .split i::after { right: 3px; border-left-color: #111; }
.vlabel { position: absolute; top: 10px; z-index: 3; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.6); font-size: 10px; font-weight: 500; backdrop-filter: blur(6px); }
.vlabel--l { left: 10px; } .vlabel--r { right: 10px; }
.zoomtag { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; padding: 5px 11px; border-radius: 6px; background: rgba(0,0,0,.72); font-size: 11px; font-weight: 500; backdrop-filter: blur(6px); white-space: nowrap; animation: fade .3s ease; }
.zoomtag b { color: var(--p); font-weight: 600; }
.prev { position: absolute; z-index: 2; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 0 0 9999px rgba(0,0,0,.18); pointer-events: none; transition: all .3s; }
.prev.is-busy span { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%) 0 0 / 220% 100%; animation: shimmer 1.2s linear infinite; }
.hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 6px; background: rgba(28,28,28,.92); color: var(--ink); font-size: 11px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.hint:empty { display: none; }
.hint b { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.hint .spin { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #555; border-top-color: var(--ink); animation: spin .8s linear infinite; }

.dfoot { flex: none; display: flex; flex-direction: column; }
.pbar, .bbar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.pbar { background: var(--d-bar2); border-top: 1px solid var(--d-line); color: var(--ink-2); font-size: 11px; }
.pbar .seg { background: #222; }
.pbar .seg button { height: 22px; padding: 0 11px; font-size: 11px; flex: none; }
.pbar__clear { color: var(--ink-3); font-size: 11px; padding: 0 8px; height: 26px; border-radius: 5px; background: #1f1f1f; }
.pbar__full { height: 26px; padding: 0 10px; border-radius: 6px; background: #262626; color: var(--ink); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.pbar__full em { font-style: normal; color: var(--ink-3); }
.pbar__full:hover { background: #2f2f2f; }
.bbar { background: var(--d-bar); border-top: 1px solid var(--d-line); }
.tb { height: 28px; padding: 0 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11.5px; }
.tb:hover { background: #262626; }
.tb svg { width: 15px; height: 15px; }
.vsep { width: 1px; height: 18px; background: #333; margin: 0 2px; }
.views { display: flex; gap: 2px; }
.zoom { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.zoom .rng { width: 64px; height: 3px; border-radius: 2px; background: #3a3a3a; position: relative; }
.zoom .rng i { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: #ddd; border-radius: 2px; transition: width .3s; }
.zoom .rng i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.zoom svg { width: 12px; height: 12px; }
.zsel { display: flex; gap: 1px; margin-left: 4px; }
.zsel button { height: 24px; padding: 0 7px; border-radius: 5px; color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.zsel button[aria-pressed="true"] { color: var(--ink); background: #2E2E2E; font-weight: 600; }
.zsel button:hover { color: var(--ink); }
/* video transport + timeline */
.transport { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--d-bar2); border-top: 1px solid var(--d-line); }
.transport .tc { font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 120px; }
.transport__c { display: flex; gap: 4px; margin: 0 auto; }
.transport__c .ib svg { width: 13px; height: 13px; }
.transport__r { width: 120px; display: flex; justify-content: flex-end; }
.tl { height: 92px; background: #141414; border-top: 1px solid var(--d-line); padding: 6px 10px 8px; position: relative; }
.tl__ruler { height: 16px; background: repeating-linear-gradient(90deg, #444 0 1px, transparent 1px 24px) 0 100% / 100% 6px no-repeat, repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 120px) 0 100% / 100% 10px no-repeat; position: relative; }
.tl__frames { margin-top: 8px; height: 48px; border-radius: 4px; display: flex; overflow: hidden; box-shadow: inset 0 0 0 1px #333; }
.tl__frames i { flex: 1; background-size: cover; background-position: center; border-right: 1px solid #000; }
.tl__sel { position: absolute; top: 30px; height: 48px; left: 22%; width: 10%; background: rgba(63,147,255,.22); box-shadow: inset 0 0 0 1px var(--blue); }
.tl__head { position: absolute; top: 6px; bottom: 8px; left: 27%; width: 2px; background: var(--blue); }
.tl__head::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 2px 2px 5px 5px; background: var(--blue); }
.bbar__r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.bbar__r .tb { color: var(--ink-2); }

/* ---------- floating right panel ---------- */
.panel { width: 300px; flex: none; margin: 10px 10px 10px 0; border-radius: 10px; background: var(--d-panel); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 0 1px #2a2a2a; }
.nav { position: relative; height: 128px; flex: none; background: #1a1a1a center / contain no-repeat; }
.nav__box { position: absolute; border: 1.5px solid #fff; border-radius: 1px; }
.pbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.sec { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.sec + .sec { border-top: 1px solid var(--d-sep); }
.sec__h { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.sec__h b { font-size: 13px; font-weight: 600; }
.sec__h .ib { width: 24px; height: 24px; }
.sec__h small { color: var(--ink-3); font-size: 11px; }
.seg--full { display: flex; width: 100%; }
.field { height: 32px; border-radius: 7px; background: var(--d-field); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: var(--ink-2); font-size: 11.5px; }
.field b { color: var(--ink); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.field b small { color: var(--ink-2); font-size: 10.5px; font-weight: 400; margin-left: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rowlbl { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.rowlbl em { font-size: 11px; color: var(--ink-3); }
.auto { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px; background: color-mix(in srgb, var(--p) 16%, transparent); color: var(--p); font-size: 10px; font-weight: 600; }
.auto svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mtile { position: relative; text-align: left; padding: 8px 9px; border-radius: 7px; background: var(--d-field); transition: background-color .15s, box-shadow .15s; }
.mtile:hover { background: var(--d-field-2); }
.mtile b { display: block; font-size: 11.5px; font-weight: 500; }
.mtile small { display: block; color: var(--ink-3); font-size: 10px; margin-top: 1px; }
.mtile[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #fff; background: #333; }
.mtile .new { position: absolute; top: 7px; right: 7px; font-size: 8px; font-weight: 700; letter-spacing: .04em; color: #111; background: var(--p); padding: 1px 4px; border-radius: 3px; }
.pfoot { flex: none; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--d-sep); }
.pfoot__row { display: flex; gap: 8px; }
.pfoot__row .btn { flex: 1; }
.pfoot__note { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 10.5px; }
.pfoot__note b { color: var(--ink-2); font-weight: 500; }
.btn--split { justify-content: flex-start; }
.btn--split svg:last-child { margin-left: auto; }
/* video presets */
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ptile { position: relative; height: 40px; border-radius: 6px; background: #171717; box-shadow: inset 0 0 0 1px #333; font-size: 11px; color: var(--ink); }
.ptile:hover { background: #1d1d1d; }
.ptile[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #fff; }
.ptile[aria-pressed="true"]::after { content: "···"; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 12px; border-radius: 4px 0 6px 0; background: #fff; color: #111; font-size: 9px; line-height: 9px; font-weight: 800; }
.tune { display: flex; align-items: center; gap: 12px; padding: 4px 6px; font-size: 12px; }
.tune .rng { flex: 1; height: 2px; background: #444; position: relative; }
.tune .rng i { position: absolute; top: -5px; left: 30%; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: #232323; }
.tune .rng::before { content: ""; position: absolute; left: 32%; width: 18%; top: 0; bottom: 0; background: #fff; }
.tune b { font-weight: 500; width: 26px; text-align: right; }
.trow { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-top: 1px solid var(--d-sep); color: var(--ink-2); font-size: 12px; }
.trow.is-on { color: var(--ink); }
/* photo family */
.ap { background: #000; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.ap__h { display: flex; align-items: center; gap: 7px; color: var(--lime); font-weight: 500; font-size: 12px; }
.ap__h svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.ap__h .tog { margin-left: auto; --p: var(--lime); }
.ap__st { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 12px; }
.ap__st i { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.ap__st i svg { width: 9px; height: 9px; color: #000; stroke-width: 2.6; }
.ap__add { height: 32px; border-radius: 6px; box-shadow: inset 0 0 0 1px #3a3a3a; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11.5px; margin: 0 22px; }
.flist { display: flex; flex-direction: column; }
.frow { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--d-sep); text-align: left; width: 100%; }
.frow > svg { width: 16px; height: 16px; color: var(--ink-2); }
.frow b { display: block; font-weight: 500; font-size: 12px; }
.frow em { display: block; color: var(--ink-3); font-size: 11px; }
.frow em.is-live { color: var(--lime); }
.frow .done { width: 16px; height: 16px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.frow .done svg { width: 10px; height: 10px; color: #000; stroke-width: 2.6; }
.frow .spin16 { width: 15px; height: 15px; border-radius: 50%; border: 1.6px solid #444; border-top-color: #ddd; animation: spin .8s linear infinite; }
.fcard { margin: 0; padding: 12px 14px 14px; background: #1b1b1b; border-top: 1px solid var(--d-sep); display: flex; flex-direction: column; gap: 9px; }
.fcard__h { display: flex; align-items: center; gap: 12px; }
.fcard__h > svg { width: 18px; height: 18px; color: var(--ink-2); }
.fcard__h b { display: block; font-weight: 500; font-size: 12.5px; }
.fcard__h em { display: block; color: var(--ink-2); font-size: 11px; }
.fcard__h .ib { width: 22px; height: 22px; }
.fsel { display: flex; height: 30px; border-radius: 6px; background: #000; box-shadow: inset 0 0 0 1px #333; align-items: center; padding-left: 10px; font-size: 12px; }
.fsel svg { margin-left: auto; margin-right: 8px; width: 12px; height: 12px; }
.fsel span { width: 32px; height: 100%; display: grid; place-items: center; background: #2E2E2E; border-radius: 0 6px 6px 0; }
.fsel span svg { margin: 0; }
.fcard .seg { background: #000; }
.fnum { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 12px; }
.fnum b { width: 110px; height: 30px; border-radius: 6px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: var(--ink); font-weight: 500; }
.fnum b svg { color: var(--ink-3); }
.freset { color: var(--lime); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; align-self: flex-start; }
.preset { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--ink); font-size: 12px; border-top: 1px solid var(--d-sep); }

/* ================= WEB ================= */
.app--web { background: var(--w-bg); }
.wrail { width: 60px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 14px; background: var(--w-bg); border-right: 1px solid #222; }
.wrail__b { width: 46px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); position: relative; }
.wrail__b:hover { color: var(--ink); background: #1e1e1e; }
.wrail__b.is-on { background: var(--w-card); color: var(--ink); }
.wrail__b.is-on::before { content: ""; position: absolute; left: -7px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--wblue); }
.wrail__b svg { width: 17px; height: 17px; }
.wrail__logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: inset 0 0 0 1px #333; }
.wrail__logo svg { width: 18px; height: 18px; stroke-width: 1.8; }
.wmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wtop { height: 54px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 22px; border-bottom: 1px solid #222; position: relative; }
.wtop__t { font-size: 15px; font-weight: 600; }
.wseg { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.wseg button { height: 28px; padding: 0 12px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 11.5px; box-shadow: inset 0 0 0 1px transparent; }
.wseg button svg { width: 13px; height: 13px; }
.wseg button[aria-pressed="true"] { background: var(--w-line); color: var(--ink); box-shadow: inset 0 0 0 1px var(--w-chip); }
.credits { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 100px; background: var(--w-card); box-shadow: inset 0 0 0 1px var(--w-line); font-size: 11px; color: var(--ink-2); transition: box-shadow .3s; }
.credits__bar { width: 54px; height: 4px; border-radius: 2px; background: #3a3a3a; overflow: hidden; }
.credits__bar i { display: block; height: 100%; width: 70%; background: var(--ink); border-radius: 2px; transition: width .6s, background-color .3s; }
.credits b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.credits.is-near { box-shadow: inset 0 0 0 1px rgba(255,176,32,.55); }
.credits.is-near .credits__bar i { background: var(--warn); }
.wbody { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.whome { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 30px; }
.wh1 { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.wh1 i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(140deg, #6B8CFF, #8A5CF6); box-shadow: 4px -4px 0 -1px rgba(150,170,255,.35); }
.wh1 i.is-video { background: linear-gradient(140deg, #FF5A7A, #E8455C); box-shadow: 4px -4px 0 -1px rgba(255,140,160,.35); }
.wh1 i svg { width: 16px; height: 16px; color: #fff; stroke-width: 1.8; }
.chips { position: relative; display: flex; gap: 8px; margin-top: 26px; }
.chip { height: 32px; padding: 0 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; background: var(--w-card); box-shadow: inset 0 0 0 1px var(--w-line); font-size: 12px; color: var(--ink); white-space: nowrap; transition: background-color .15s, box-shadow .15s; }
.chip:hover { background: #262626; }
.chip svg { width: 13px; height: 13px; }
.chip[aria-pressed="true"] { min-width: 150px; justify-content: center; background: linear-gradient(0deg, rgba(0,0,0,.44), rgba(0,0,0,.44)), var(--coral); box-shadow: inset 0 0 0 1px var(--coral), inset 0 0 22px rgba(255,255,255,.1), 0 7px 15px rgba(255,119,86,.18); }
.more { position: absolute; right: 0; top: 40px; z-index: 20; width: 270px; padding: 8px; border-radius: 12px; background: #1c1c1c; box-shadow: 0 0 0 1px #2e2e2e, 0 20px 40px rgba(0,0,0,.5); animation: pop .2s ease; }
.more__s { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px #333; color: var(--ink-3); font-size: 11.5px; margin-bottom: 6px; }
.more__l { max-height: 250px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.more__l button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; text-align: left; }
.more__l button:hover { background: #262626; }
.more__l svg { width: 13px; height: 13px; color: var(--ink-2); }
.more__l b { display: block; font-weight: 500; font-size: 11.5px; }
.more__l small { display: block; color: var(--ink-3); font-size: 10px; }
.more__l em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.more__l em svg { width: 10px; height: 10px; }
/* composer */
.comp { position: relative; width: 640px; margin-top: 14px; border-radius: 16px; background: var(--w-card); }
.comp__drop { height: 252px; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(75% 56% at 50% 50%, rgba(33,33,33,.6) 0%, #212121 100%), radial-gradient(circle, #3a3a3a .8px, transparent 1.2px) 0 0 / 12px 12px; color: var(--ink-2); font-size: 11.5px; }
.stack { position: relative; width: 150px; height: 82px; }
.stack img { position: absolute; top: 6px; width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.stack img:nth-child(1) { left: 6px; transform: rotate(-12deg); top: 18px; }
.stack img:nth-child(2) { left: 46px; width: 60px; height: 60px; top: 0; z-index: 2; }
.stack img:nth-child(3) { left: 92px; transform: rotate(14deg); top: 16px; }
.wup { height: 36px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--wblue); color: #F2F2F2; font-weight: 600; font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.wup:hover { filter: brightness(1.08); }
.assets { height: 252px; border-radius: 16px 16px 0 0; padding: 18px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; background: radial-gradient(circle, #2c2c2c .8px, transparent 1.2px) 0 0 / 12px 12px; }
.asset { position: relative; width: 92px; height: 92px; border-radius: 10px; background: #111 center / cover; box-shadow: 0 0 0 1px #333; animation: pop .3s ease both; }
.asset .ib { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
.asset .ib svg { width: 10px; height: 10px; }
.asset--add { display: grid; place-items: center; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px #3a3a3a; }
.asset--more { display: grid; place-items: center; font-weight: 600; font-size: 14px; background: #2a2a2a; }
.comp__foot { height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.sc { height: 30px; padding: 0 11px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; background: var(--w-chip); color: var(--ink); font-size: 11.5px; white-space: nowrap; }
.sc svg { width: 13px; height: 13px; color: var(--ink-2); }
.sc:hover { background: #3d3d3d; }
.sc--model { min-width: 116px; }
.send { width: 38px; height: 38px; border-radius: 50%; margin-left: auto; display: grid; place-items: center; background: linear-gradient(0deg, rgba(0,0,0,.44), rgba(0,0,0,.44)), var(--coral); box-shadow: inset 0 0 0 1px var(--coral); color: #fff; transition: box-shadow .3s, filter .2s; }
.send svg { width: 15px; height: 15px; stroke-width: 1.8; }
.send.is-ready { background: var(--coral); box-shadow: 0 0 40px rgba(255,119,86,.55); }
.send.is-ready:hover { filter: brightness(1.08); }
.mpop { position: absolute; left: 50px; bottom: 50px; z-index: 20; padding: 10px 12px 12px; border-radius: 12px; background: #1c1c1c; box-shadow: 0 0 0 1px #2e2e2e, 0 16px 34px rgba(0,0,0,.5); animation: pop .2s ease; }
.mpop p { font-size: 11px; color: var(--ink-2); margin-bottom: 8px; }
.mpop div { display: flex; padding: 2px; border-radius: 8px; background: #2a2a2a; }
.mpop button { height: 28px; padding: 0 11px; border-radius: 6px; font-size: 11px; color: var(--ink-2); }
.mpop button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(0deg, rgba(0,0,0,.44), rgba(0,0,0,.44)), var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.limit { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 16px 16px 0 0; background: #2a2116; border-bottom: 1px solid rgba(255,176,32,.25); color: #ffd58a; font-size: 11.5px; animation: slide .3s ease; }
.limit svg { color: var(--warn); }
.limit b { color: #fff; font-weight: 600; }
.limit .wup { height: 28px; padding: 0 12px; border-radius: 9px; font-size: 11px; margin-left: auto; }
.limit__later { color: #ffd58a; font-size: 11px; padding: 0 6px; }
.comp.has-limit .comp__drop, .comp.has-limit .assets { border-radius: 0; }
/* thread: results above, compact composer docked below */
.wthread { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 18px 0 16px; gap: 12px; }
.wthread .comp { margin-top: 0; }
.wthread .comp__drop, .wthread .assets { display: none; }
.req { width: 740px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 11.5px; }
.req .chip { height: 26px; padding: 0 10px; font-size: 11px; min-width: 0; }
.req .thumbs { display: flex; margin-left: 4px; }
.req .thumbs i { width: 24px; height: 24px; border-radius: 6px; background: #111 center / cover; box-shadow: 0 0 0 2px var(--w-bg); margin-left: -6px; }
.rcard { width: 740px; flex: 1; min-height: 0; border-radius: 16px; background: var(--w-card); display: flex; flex-direction: column; overflow: hidden; }
.rcard__h { height: 46px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--w-line); font-size: 12px; }
.rcard__h small { color: var(--ink-3); font-size: 11px; }
.rcard__h .zsel button { color: var(--ink-2); }
.rcard__h .zsel button[aria-pressed="true"] { background: var(--w-chip); }
.dl { height: 30px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; background: var(--wblue); color: #fff; font-weight: 600; font-size: 11.5px; }
.dl[disabled] { background: #2c2c2c; color: var(--ink-3); cursor: default; }
.rview { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.talk { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(23,23,23,.55); backdrop-filter: blur(6px); animation: fade .25s ease; }
.talk__card { width: 360px; padding: 18px 18px 16px; border-radius: 14px; background: rgba(28,28,28,.94); box-shadow: 0 0 0 1px #333, 0 20px 50px rgba(0,0,0,.5); }
.talk__top { display: flex; align-items: center; gap: 10px; }
.talk__top b { font-size: 13px; font-weight: 600; }
.talk__top em { margin-left: auto; font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.talk__bar { height: 3px; border-radius: 2px; background: #333; margin: 12px 0; overflow: hidden; }
.talk__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), #ffb199); border-radius: 2px; }
.talk__log { list-style: none; display: flex; flex-direction: column; gap: 5px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: var(--ink-3); min-height: 84px; }
.talk__log li { animation: fade .3s ease; }
.talk__log li::before { content: "✓ "; color: var(--ok); }
.talk__log li.is-now { color: var(--ink); }
.talk__log li.is-now::before { content: "› "; color: var(--coral); }
.orb { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 0deg, var(--coral), #ffb199, #6B8CFF, var(--coral)); animation: spin 1.4s linear infinite; -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px); mask: radial-gradient(circle, transparent 6px, #000 7px); }
.bgrid { flex: 1; min-height: 0; padding: 14px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.tile { position: relative; border-radius: 10px; background: #111 center / cover no-repeat; overflow: hidden; animation: pop .35s ease both; }
.tile .st { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.66); font-size: 10px; font-weight: 500; backdrop-filter: blur(4px); }
.tile .st i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.tile .st i b { display: block; height: 100%; width: 0; background: var(--coral); transition: width .45s linear; }
.tile.is-run::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%) 0 0 / 220% 100%; animation: shimmer 1.2s linear infinite; }
.tile.is-done .st { color: var(--ok); }
.btalk { flex: none; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-top: 1px solid var(--w-line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: var(--ink-2); }
.btalk .orb { width: 14px; height: 14px; -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px); mask: radial-gradient(circle, transparent 4px, #000 5px); }

/* ================= overlays ================= */
.scrim { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); animation: fade .25s ease; }
.modal { width: 640px; border-radius: 14px; background: #1E1E1E; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px #2e2e2e; padding: 22px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.modal--wide { width: 720px; }
.modal__h { display: flex; align-items: center; gap: 10px; }
.modal__h .appicon { width: 26px; height: 26px; }
.modal h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.modal > p { color: var(--ink-2); margin-top: 6px; font-size: 12.5px; }
.modal__x { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.modal__x:hover { background: #2e2e2e; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.sample { text-align: left; border-radius: 10px; overflow: hidden; background: #262626; box-shadow: 0 0 0 1px #2e2e2e; transition: box-shadow .2s, background-color .2s; }
.sample:hover { background: #2c2c2c; box-shadow: 0 0 0 1.5px #fff; }
.sample img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sample div { padding: 9px 11px 11px; }
.sample b { display: block; font-size: 12px; font-weight: 500; }
.sample small { color: var(--ink-3); font-size: 10.5px; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--ink-3); font-size: 11.5px; }
.plans__tabs { margin-top: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.plan { position: relative; padding: 16px; border-radius: 10px; background: #262626; box-shadow: 0 0 0 1px #2e2e2e; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s; }
.plan:hover { box-shadow: 0 0 0 1px #555; }
.plan[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--blue); }
.plan .tag { position: absolute; top: -9px; right: 12px; font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--blue); color: #fff; }
.plan b { font-size: 12.5px; font-weight: 600; }
.plan .price { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan .price small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.plan ul { list-style: none; color: var(--ink-2); font-size: 11px; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.plan ul li::before { content: "✓  "; color: var(--ok); }
.coach { position: absolute; z-index: 45; width: 250px; padding: 14px; border-radius: 10px; background: #f5f6f8; color: #111; box-shadow: 0 18px 40px rgba(0,0,0,.55); animation: pop .3s cubic-bezier(.2,.8,.2,1.2); }
.coach::before { content: ""; position: absolute; top: 18px; right: -6px; width: 12px; height: 12px; background: #f5f6f8; transform: rotate(45deg); }
.coach--right::before { right: auto; left: -6px; }
.coach small { color: #6b6f78; font-weight: 600; font-size: 10.5px; }
.coach b { display: block; margin-top: 4px; font-size: 13px; }
.coach p { margin-top: 4px; color: #4a4e57; font-size: 11.5px; line-height: 1.45; }
.coach .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.coach .dotsx { display: flex; gap: 4px; }
.coach .dotsx i { width: 6px; height: 6px; border-radius: 50%; background: #c9ccd2; }
.coach .dotsx i.on { background: #111; }
.coach .btn--primary { height: 26px; font-size: 11.5px; }
.ring { position: absolute; z-index: 44; border-radius: 9px; box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; transition: all .3s; }
.toasts { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #f5f6f8; color: #111; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: rise .3s ease; }
.toast svg { color: #1f9d55; }

/* ================= demo chrome ================= */
.family { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(12,12,12,.92); box-shadow: inset 0 0 0 1px #333, 0 10px 30px rgba(0,0,0,.5); }
.family button { height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; font-size: 11px; }
.family button i { width: 8px; height: 8px; border-radius: 3px; }
.family__web i { background: #F2F2F2; }
.family button[aria-pressed="true"] { background: #2E2E2E; color: var(--ink); }
.is-ambient .family, .no-family .family { display: none; }
.app--web:not([hidden]) ~ .family { top: auto; bottom: 12px; }
.demo-controls { position: absolute; right: 326px; bottom: 98px; z-index: 80; display: flex; gap: 6px; }
.is-web .demo-controls { right: 18px; bottom: 18px; }
.demo-btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 8px 22px rgba(63,147,255,.4); }
.demo-btn svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.demo-stop { width: 32px; height: 32px; border-radius: 50%; background: #2E2E2E; display: grid; place-items: center; color: var(--ink-2); }
.caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 64px; z-index: 80; max-width: 560px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #f5f6f8; color: #111; font-weight: 600; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: rise .3s ease; }
.caption b { color: #6b6f78; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.is-ambient .caption, .is-ambient .toasts { display: none; }
.cursor { position: absolute; z-index: 90; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transition: transform 1s cubic-bezier(.45,0,.2,1); }
.is-ambient .cursor { transition-duration: 1.35s; }
.cursor__hand { width: 22px; height: 22px; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); transform-origin: 40% 10%; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; opacity: .95; }
.cursor.is-idle .cursor__hand { transform: scale(.4); opacity: 0; }
.cursor.is-press .cursor__hand { transform: scale(.86); }
.cursor__ripple { position: absolute; left: 7px; top: 1px; }
.cursor__ripple::before { content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); background: rgba(255,255,255,.18); transform: scale(0); opacity: 0; }
.cursor.is-click .cursor__ripple::before { animation: ripple .6s ease-out; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes ripple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
