/* Creator Studio: Higgsfield's workspace (Cinema Studio shell, Supercomputer composer and chat, image prompt bar,
   apps gallery) with makeithappen's orange in place of their lime. Values from higgsfield.ai's own stylesheets, Oct 2026.
   The project workspace puts the agent's thread on the left and the canvas (Brand, Images, Site, Code, Plan,
   Backers) on the right. */

/* moving between the site's pages cross-fades instead of flashing white */
@view-transition { navigation: auto; }

:root {
  --canvas: #0f1113;
  --shell: #131416;
  --panel: #131517;
  --field: #1c1e20;
  --field-q: #1c1e21;
  --chip: #222222;
  --raised: #23262a;
  --raised-h: #2a2d32;
  --pop: #1b1b1b;
  --sheet: #121212;
  --fg: #f7f7f8;
  --fg-2: #898a8b;
  --fg-q: #828282;
  --fg-dim: #626262;
  --w2: rgba(255, 255, 255, .02);
  --w4: rgba(255, 255, 255, .04);
  --w5: rgba(255, 255, 255, .05);
  --w6: rgba(255, 255, 255, .06);
  --w8: rgba(255, 255, 255, .08);
  --w10: rgba(255, 255, 255, .1);
  --w20: rgba(255, 255, 255, .2);
  --w30: rgba(255, 255, 255, .3);
  --w50: rgba(255, 255, 255, .5);
  --w60: rgba(255, 255, 255, .6);
  --hair: rgba(217, 217, 217, .04);
  --acc: #ff6b2c;
  --acc-2: #ff8a3d;
  --acc-lip: #b8461a;
  --acc-5: rgba(255, 107, 44, .05);
  --acc-15: rgba(255, 107, 44, .15);
  --acc-20: rgba(255, 107, 44, .2);
  --on-acc: #14151a;
  --ink: #1a1a1a;
  --ok: #53c546;
  --bad: #f04a4f;
  --tw: cubic-bezier(.4, 0, .2, 1);
  --out: cubic-bezier(0, 0, .2, 1);
  --out-expo: cubic-bezier(.16, 1, .3, 1);
  --out-quart: cubic-bezier(.22, 1, .36, 1);
  --grotesk: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --raised-q: inset 0 2px 3px rgba(255, 255, 255, .05), 0 4px 24px -8px rgba(0, 0, 0, .15);
  --glass: linear-gradient(148.916deg, var(--w4) 22.6%, var(--w6) 51.3%, var(--w2) 79.9%), rgba(35, 38, 42, .75);
  --side-w: 14.9375rem;
  --chat-w: 25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--shell); color: var(--fg); font: 400 14px/20px "Inter", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; }
svg { display: block; flex: none; }
img { display: block; }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico.s20 { width: 20px; height: 20px; }
.ico.s18 { width: 18px; height: 18px; }
.ico.s14 { width: 14px; height: 14px; }
.ico.s12 { width: 12px; height: 12px; }
.acc { color: var(--acc); }
.muted { color: var(--fg-2); }
.lnk { color: var(--acc); font-weight: 500; text-decoration: underline; text-decoration-color: var(--acc-20); text-underline-offset: 3px; }
.lnk:hover { text-decoration-color: var(--acc); }

/* ================================================================== workspace shell (2.4) */
.frame { display: flex; gap: 4px; height: 100vh; height: 100dvh; padding: 4px; }
.side { position: relative; display: flex; flex-direction: column; flex: none; width: var(--side-w); min-height: 0; transition: width .2s var(--tw); }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.side-scroll::-webkit-scrollbar { display: none; }
.side-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; height: 52px; padding: 8px; background: var(--shell); }
.side-head::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 64px; background: linear-gradient(var(--shell), transparent); opacity: 0; pointer-events: none; transition: opacity .2s; }
.side.scrolled .side-head::after { opacity: 1; }
.space { flex: 1; min-width: 0; }
.space-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 8px 0 6px; border-radius: 12px; background: var(--w5); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: background .15s; }
.space-btn:hover { background: var(--w8); }
.space-btn b { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.space-btn .ico { width: 10px; height: 10px; color: var(--w50); }
.logo-key { position: relative; display: block; flex: none; width: 24px; height: 24px; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.logo-key img { width: 100%; height: 100%; }
.space.open .space-btn { background: var(--w10); }
/* the app switcher opens under its button, over the nav (the sticky head is its containing block) */
.space-menu { position: absolute; z-index: 40; top: calc(100% - 4px); left: 8px; right: 8px; display: flex; flex-direction: column; gap: 1px; padding: 5px; border-radius: 12px; background: var(--field); box-shadow: 0 0 0 1px var(--w8), 0 16px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: 50% 0; visibility: hidden; pointer-events: none; transition: opacity .16s var(--out), transform .16s var(--out), visibility 0s .16s; }
.space.open .space-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .16s var(--out), transform .16s var(--out); }
.space-menu > a, .space-menu > button, .space-menu > .sm-off { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 8px; border-radius: 8px; color: rgba(255, 255, 255, .82); font-weight: 500; text-align: left; white-space: nowrap; transition: background .12s, color .12s; }
.space-menu > a:hover, .space-menu > button:hover, .space-menu > a:focus-visible, .space-menu > button:focus-visible { background: var(--w8); color: #fff; outline: none; }
.space-menu > .sm-off { color: var(--fg-q); cursor: default; }
.space-menu img { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.space-menu hr, .help-pop hr { height: 1px; margin: 4px 2px; border: 0; background: var(--w8); }
.icon-btn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--w5); color: var(--fg-q); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--w10); color: #fff; }
.icon-btn.sm { width: 24px; height: 24px; border-radius: 8px; background: none; }
.icon-btn.sm:hover { background: var(--w5); }
.icon-btn.ghostbtn { width: 32px; height: 32px; border-radius: 8px; background: none; }
.icon-btn.ghostbtn:hover { background: var(--w5); }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.nav-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 6px; border-radius: 12px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.nav-row:hover { background: var(--w5); transition: none; }
.nav-row.on { background: var(--w5); }
.nav-row .count.lk { display: grid; place-items: center; padding: 3px 5px; }
.nav-row .count.lk .ico { width: 11px; height: 11px; }
button.nav-row { width: 100%; text-align: left; }
.nav-row .count { margin-left: auto; padding: 0 6px; border-radius: 6px; background: var(--w5); color: var(--fg-q); font-size: 12px; line-height: 18px; }
.gtile { position: relative; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 4px 2px rgba(0, 0, 0, .08), inset 0 2px 4px rgba(255, 255, 255, .24); border: 1px solid rgba(197, 197, 197, .24); }
.gtile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .2), transparent); mix-blend-mode: overlay; }
.gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .32), transparent 60%); mix-blend-mode: hard-light; opacity: .5; }
.gtile svg { position: relative; z-index: 1; width: 14px; height: 14px; color: #fff; opacity: .88; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gtile.lg { width: 56px; height: 56px; border-radius: 16px; }
.gtile.lg svg { width: 26px; height: 26px; }
.g-home { --g1: #222221; --g2: #3b3c3a; }
.g-apps { --g1: #ff9a4d; --g2: #c4400f; }
.g-assets { --g1: #4188be; --g2: #0e2772; }
.g-img { --g1: #ff9a4d; --g2: #c4400f; }
.g-brand { --g1: #f06ba8; --g2: #8e1d57; }
.g-plan { --g1: #59c48a; --g2: #145c39; }
.g-page { --g1: #9b7bf2; --g2: #3d2391; }
.g-code { --g1: #4188be; --g2: #0e2772; }
.g-camp { --g1: #f5c04a; --g2: #9a5b07; }
.g-log { --g1: #7a7d82; --g2: #34363a; }
.group-h { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 8px 0 14px; margin-top: 8px; color: var(--fg-q); font-size: 12px; line-height: 16px; }
.group-h div { display: flex; gap: 2px; }
.proj-row { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 6px; border-radius: 12px; font-size: 14px; line-height: 16px; font-weight: 500; transition: background .15s; }
.proj-row:hover { background: var(--w5); transition: none; }
.proj-row.on { background: var(--w5); }
.proj-row.new { color: var(--fg-q); }
.proj-row .thumb { flex: none; width: 24px; height: 24px; border-radius: 8px; object-fit: cover; background: var(--w5); }
.proj-row .plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--w5); color: var(--fg-q); }
.proj-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { flex: none; width: 6px; height: 6px; margin-left: auto; margin-right: 4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(83, 197, 70, .15); }
.letter { display: grid; place-items: center; background: var(--c, #2a2d32); color: #fff; font-family: var(--grotesk); font-style: normal; font-weight: 700; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--w10); }
.proj-row .letter { font-size: 12px; }
.side-note { padding: 6px 10px 10px 14px; color: var(--fg-dim); font-size: 12px; line-height: 17px; }
.side-foot { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 8px; }
.promo { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--w5); background: linear-gradient(180deg, var(--w4) 0%, rgba(255, 255, 255, .12) 100%); }
.promo .eyebrow { color: var(--fg-q); font-size: 12px; line-height: 16px; }
.promo b { display: block; margin-top: 2px; padding-right: 18px; font-weight: 500; letter-spacing: .1px; }
.promo .x { position: absolute; top: 10px; right: 10px; color: var(--fg-q); }
.promo .x:hover { color: #fff; }
.fan { position: relative; height: 64px; }
.fan img { position: absolute; top: 4px; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; object-position: 50% 12%; border: 2px solid rgba(255, 255, 255, .3); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); background: linear-gradient(160deg, #2b2e33, #17181b); }
.fan img:nth-child(1) { left: 22px; transform: rotate(-10deg); background: linear-gradient(160deg, #ffd9c2, #ffb48a); }
.fan img:nth-child(2) { left: 70px; transform: rotate(4deg); z-index: 2; background: linear-gradient(160deg, #2b2e33, #17181b); }
.fan img:nth-child(3) { left: 118px; transform: rotate(-3deg); background: linear-gradient(160deg, #f4f1ec, #d9d2c6); }
.btn-white { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; line-height: 16px; font-weight: 500; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); transition: filter .15s; }
.btn-white:hover { filter: brightness(.9); }
.foot-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 8px; border-radius: 10px; color: #fff; font-weight: 500; text-align: left; transition: background .15s; }
.foot-row:hover { background: var(--w5); }
.foot-row img { width: 20px; height: 20px; border-radius: 6px; }
.foot-row .gtile { width: 20px; height: 20px; border-radius: 6px; }
.foot-row .gtile svg { width: 12px; height: 12px; }
.foot-row em { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--acc-20); color: var(--acc); font-size: 10px; line-height: 12px; font-style: normal; font-weight: 700; letter-spacing: .1px; }
.foot-row em.bal { padding: 2px 8px; border-radius: 99px; background: var(--w5); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-bar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 10px; background: var(--acc); color: var(--on-acc); font-weight: 500; box-shadow: inset 0 -2px 0 var(--acc-lip); transition: filter .15s; }
.wallet-bar:hover { filter: brightness(.9); }
.wallet-bar.half { background: var(--acc-15); color: var(--acc); box-shadow: none; }
.wallet-bar.connected { background: var(--w5); color: #fff; box-shadow: none; font-family: var(--mono); font-size: 13px; }
.wallet-bar .net { padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .18); font-family: "Inter", sans-serif; font-size: 10px; line-height: 14px; font-style: normal; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.wallet-bar.half .net, .wallet-bar.connected .net { background: rgba(240, 182, 94, .14); color: #f0b65e; }
.side.collapsed { width: 3.25rem; }
.side.collapsed .space, .side.collapsed .nav-row span, .side.collapsed .nav-row .count, .side.collapsed .group-h, .side.collapsed .proj-row span, .side.collapsed .live-dot, .side.collapsed .side-note, .side.collapsed .side-foot { display: none; }
.side.collapsed .side-head { padding: 8px 8px; }
/* collapsed: the footer keeps its icons, so the way back to the landing and the Board stays one click away */
.side.collapsed .side-foot { display: flex; padding: 4px 8px 8px; }
.side.collapsed .promo, .side.collapsed .foot-row em, .side.collapsed .wallet-bar span, .side.collapsed .wallet-bar .net { display: none; }
.side.collapsed .foot-row, .side.collapsed .wallet-bar { justify-content: center; gap: 0; padding: 0; font-size: 0; }

/* main panel */
.main { position: relative; flex: 1; min-width: 0; border-radius: 16px; border: 1px solid var(--w5); background: var(--canvas); overflow: hidden; }
.main::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(23.93% 26.98% at 100% 0%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 73.08%, transparent 100%),
  radial-gradient(34.93% 41.39% at 92.71% 106.14%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 73.08%, transparent 100%),
  radial-gradient(31.57% 33.97% at -2.15% 107.04%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 73.08%, transparent 100%),
  radial-gradient(39.39% 24% at -13.58% 35.4%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 73.08%, transparent 99.97%); }
.scroller { position: relative; height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--w10) transparent; }
.scroller.ws-mode { overflow: hidden; }
.scroller.ws-mode > #view { height: 100%; }
.view { min-height: 100%; animation: view-in .34s var(--out-expo) both; }
.view.wsv { height: 100%; display: flex; flex-direction: column; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* top of the panel: crumb + glass tabs + actions */
.ptop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; height: 56px; padding: 0 12px 0 16px; background: linear-gradient(var(--canvas) 60%, transparent); }
.wsv .ptop { position: relative; background: var(--canvas); border-bottom: 1px solid var(--w5); }
.crumb { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--fg-2); }
.crumb b { color: #fff; font-weight: 500; white-space: nowrap; }
.crumb .sep { font-size: 13px; }
.crumb img, .crumb .ctile { flex: none; width: 20px; height: 20px; border-radius: 6px; object-fit: cover; font-size: 11px; }
.pname { max-width: 220px; overflow: hidden; padding: 2px 6px; margin: 0 -2px; border-radius: 6px; color: #fff; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; transition: background .15s; }
.pname:hover { background: var(--w5); }
.tabs { display: flex; gap: 6px; }
.tab { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--w30); font-size: 14px; line-height: 16px; font-weight: 500; white-space: nowrap; transition: color .2s var(--tw); }
.tab:hover { color: rgba(255, 255, 255, .7); }
.tab.on { color: #fff; border-color: var(--w5); background: var(--glass); box-shadow: 0 2px 4px -.5px rgba(0, 0, 0, .12), inset 0 2px 3px var(--w5); }
.tab.mchat { display: none; }
.ptop-r { display: flex; align-items: center; gap: 8px; }
.tag-preview { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--acc-15); color: var(--acc); font-size: 12px; font-weight: 600; white-space: nowrap; }
.btn-tert { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 6px 12px; border-radius: 8px; background: var(--w10); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); color: #fff; font-size: 14px; line-height: 16px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.btn-tert:hover { background: rgba(255, 255, 255, .14); }
.btn-tert.sm, .btn-acc.sm { height: 28px; padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.btn-tert.danger { color: #ff8d90; }
.btn-tert.danger:hover { background: rgba(240, 74, 79, .14); }
.btn-acc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 6px 12px 8px; border-radius: 8px; background: radial-gradient(in oklab, #ff9a5c 40%, var(--acc) 100%); color: var(--on-acc); font-size: 14px; line-height: 16px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -3px 0 var(--acc-lip); transition: filter .15s; }
.btn-acc:hover { filter: brightness(.9); }
.btn-acc:active { filter: brightness(.75); }
.btn-acc.sm { padding: 4px 10px 6px; box-shadow: inset 0 -2px 0 var(--acc-lip); }
.btn-acc.danger { background: #e2474c; color: #fff; box-shadow: inset 0 -3px 0 #9d2226; }
.btn-acc .ico, .btn-tert .ico { width: 15px; height: 15px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 8px; border-radius: 8px; border: 1px solid var(--w5); background: var(--glass); box-shadow: inset 0 2px 3px var(--w5); font-weight: 600; font-variant-numeric: tabular-nums; transition: filter .15s; }
.cchip:hover { filter: brightness(1.15); }
.cchip .glyph { color: var(--acc); fill: var(--acc); stroke: none; }
.cchip span { color: var(--fg-2); font-weight: 500; }

/* ================================================================== home: agent composer (6) */
.home { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(40px, 9svh, 110px) 24px 64px; }
.hero-key { display: block; flex: none; width: 44px; height: 44px; border-radius: 13px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 1px var(--w10); }
.hero-key img { width: 100%; height: 100%; }
.hero-key.sm { width: 36px; height: 36px; border-radius: 11px; }
.home h1 { font-family: var(--grotesk); font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.7px; text-transform: uppercase; text-align: center; background: linear-gradient(180deg, #fff 14%, rgba(255, 255, 255, .55) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .sub { max-width: 560px; margin-top: -12px; color: var(--fg-2); font-size: 14px; text-align: center; text-wrap: balance; }
.composer { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 672px; min-height: 7.3125rem; padding: 16px; border-radius: 20px; background: var(--field-q); box-shadow: inset 0 0 0 1px var(--w5); transition: box-shadow .2s; }
.composer:focus-within { box-shadow: inset 0 0 0 1px var(--w10), 0 0 0 4px var(--acc-5); }
.editor { position: relative; flex: 1; min-height: 40px; }
.editor textarea { display: block; width: 100%; min-height: 44px; max-height: 168px; padding: 0; border: 0; outline: none; resize: none; background: none; color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; caret-color: var(--acc); }
.typer { position: absolute; top: 0; left: 0; right: 0; overflow: hidden; color: var(--fg-q); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.typer::after { content: ""; display: inline-block; width: 1px; height: 18px; margin-left: 1px; vertical-align: -4px; background: var(--acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor.has .typer { display: none; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crow > div { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sq32 { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--w10); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); transition: background .15s; }
.sq32:hover { background: rgba(255, 255, 255, .14); }
.modelset { display: flex; align-items: center; gap: 6px; height: 32px; padding: 4px 8px; border-radius: 10px; font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.modelset:hover { background: var(--w5); }
.modelset .glyph { color: var(--acc); }
.modelset .pill { padding: 2px 6px; border-radius: 99px; background: var(--acc-5); color: var(--acc); }
.agent-mode { display: flex; align-items: center; gap: 6px; height: 32px; padding: 4px 12px 4px 8px; border-radius: 10px; color: var(--w50); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.agent-mode:hover { background: var(--w5); color: rgba(255, 255, 255, .8); }
.agent-mode.on { color: #fff; }
.send { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--acc); color: var(--on-acc); box-shadow: inset 0 -2px 0 var(--acc-lip); transition: filter .15s, opacity .15s; }
.send:hover { filter: brightness(.9); }
.send:disabled { cursor: not-allowed; }
.send:disabled svg { opacity: .45; }
.send.busy { background: var(--w10); color: #fff; box-shadow: none; }
.send.busy svg { opacity: .8; animation: pulse-q 1.2s ease-in-out infinite; }
@keyframes pulse-q { 50% { opacity: .35; } }
.composer.sm { min-height: 0; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(28, 30, 33, .96); box-shadow: inset 0 0 0 1px var(--w5), 0 12px 32px rgba(0, 0, 0, .35); }
.composer.sm .editor { min-height: 24px; }
.composer.sm .editor textarea { min-height: 24px; }
.ctx { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: -12px; }
.ghost { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 99px; font-size: 12px; line-height: 24px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.ghost:hover { background: var(--w5); }
.ghost img { width: 16px; height: 16px; border-radius: 5px; object-fit: cover; }
.ghost .gl { display: block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.ghost .ico { color: var(--fg-q); }
.offline { display: flex; align-items: center; gap: 8px; max-width: 672px; padding: 8px 12px; border-radius: 10px; background: var(--w4); color: var(--fg-2); font-size: 12px; line-height: 17px; }
.offline i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #e8a33d; box-shadow: 0 0 0 3px rgba(232, 163, 61, .15); }
.offline.sm { margin: 0 2px 8px; padding: 6px 10px; }
.home-sec { width: 100%; max-width: 1180px; margin-top: 24px; }
.hs-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hs-h h2 { font-family: var(--grotesk); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.6px; text-transform: uppercase; }
.see-all { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 8px; color: var(--fg-2); font-weight: 600; transition: color .15s, background .15s; }
.see-all:hover { color: #fff; background: var(--w5); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--hair); text-align: left; transition: background .15s, border-color .15s; }
.pcard:hover { background: var(--field); border-color: var(--w5); }
.pc-media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--raised); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.pcard:hover .pc-media img { transform: scale(1.02); }
.pc-media .letter { width: 100%; height: 100%; font-size: 44px; }
.pc-media .badge { position: absolute; top: 8px; left: 8px; }
.pc-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px 4px; }
.pc-body b { overflow: hidden; font-size: 15px; line-height: 21px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pc-body small { color: var(--fg-2); font-size: 12px; }
.pc-counts { margin-top: 6px; color: var(--fg-q); font-size: 12px; }
.pcard.add { align-items: center; justify-content: center; gap: 4px; min-height: 200px; border: 1px dashed var(--w8); background: transparent; color: var(--fg-2); }
.pcard.add:hover { background: var(--w2); color: #fff; }
.pcard.add .plus { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--w5); }
.pcard.add b { color: #fff; font-weight: 600; }
.pcard.add small { font-size: 12px; }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--hair); text-align: left; transition: background .15s, border-color .15s; }
.cap:hover { background: var(--field); border-color: var(--w5); }
.cap .gtile { width: 32px; height: 32px; margin-bottom: 4px; border-radius: 10px; }
.cap .gtile svg { width: 16px; height: 16px; }
.cap b { font-size: 15px; font-weight: 600; }
.cap small { color: var(--fg-2); font-size: 13px; line-height: 18px; }
.caps-note { margin-top: 14px; color: var(--fg-q); font-size: 12px; text-align: center; }

/* ================================================================== the project workspace */
.ws { display: flex; flex: 1; min-height: 0; }
.chat { position: relative; display: flex; flex-direction: column; flex: none; width: var(--chat-w); min-height: 0; border-right: 1px solid var(--w5); background: linear-gradient(180deg, rgba(19, 20, 22, .6), rgba(15, 17, 19, 0)); }
.ws.nochat .chat { display: none; }
.msgs { display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; overflow-y: auto; padding: 20px 16px 16px; scrollbar-width: thin; scrollbar-color: var(--w10) transparent; }
.chat-dock { flex: none; padding: 8px 12px 12px; }
.canvas { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.canvas-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--w10) transparent; }
.tabpane { padding: 4px 20px 40px; animation: view-in .3s var(--out-expo) both; }
.tabpane.gen { padding-bottom: 220px; }
.tab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 0 16px; }
.tab-head h2 { font-family: var(--grotesk); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.8px; text-transform: uppercase; }
.tab-head p { color: var(--fg-2); font-size: 13px; }
.th-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.empty-tab { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 460px; margin: clamp(24px, 8vh, 80px) auto 0; padding: 0 16px; text-align: center; }
.empty-tab .gtile { margin-bottom: 8px; }
.empty-tab h3 { font-family: var(--grotesk); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.5px; text-transform: uppercase; }
.empty-tab p { color: var(--fg-2); line-height: 21px; text-wrap: pretty; }
.et-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.et-acts .btn-acc, .et-acts .btn-tert { height: 40px; padding: 0 16px; border-radius: 10px; }
.loading-ws { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 18vh; color: var(--fg-2); }
.loading-ws .hero-key { animation: key-float 2s ease-in-out infinite; }

/* ---------------------------------------------------------------- the agent's thread */
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 4px; }
.intro h3 { margin-top: 6px; font-family: var(--grotesk); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.4px; text-transform: uppercase; }
.intro > p { color: var(--fg-2); line-height: 21px; }
.starters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ghost.st { height: 30px; padding: 0 12px; background: var(--w5); border: 1px solid var(--w5); }
.ghost.st:hover { background: var(--w8); }
.brief { width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--w4); }
.brief small { color: var(--fg-q); font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.brief p { margin-top: 2px; color: rgba(255, 255, 255, .85); line-height: 20px; white-space: pre-wrap; }
.msg { display: flex; gap: 10px; animation: msg-in .3s var(--out-expo) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.me { justify-content: flex-end; }
.bubble-me { max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--raised); font-weight: 500; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .who { flex: none; width: 26px; height: 26px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--w10); }
.msg .who img { width: 100%; height: 100%; }
.answer-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; color: rgba(255, 255, 255, .88); line-height: 21px; }
.md { overflow-wrap: anywhere; }
.md > * + * { margin-top: 8px; }
.md h4 { margin-top: 12px; color: #fff; font-size: 14px; font-weight: 700; }
.md b { color: #fff; font-weight: 600; }
.md ul, .md ol { margin-bottom: 0; padding-left: 20px; }
.md li + li { margin-top: 3px; }
.md li::marker { color: var(--fg-q); }
.md code { padding: 1px 5px; border-radius: 5px; background: var(--w8); font-family: var(--mono); font-size: 12px; }
.md pre { margin: 8px 0 0; padding: 10px 12px; overflow-x: auto; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--w5); }
.md pre code { padding: 0; background: none; font-size: 12px; line-height: 18px; }
.md a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.mdt { overflow-x: auto; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--w5); }
.mdt table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mdt th, .mdt td { padding: 7px 10px; text-align: left; border-top: 1px solid var(--w5); }
.mdt tr:first-child th { border-top: 0; color: var(--fg-q); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; background: var(--w2); }
.thinking { display: inline-flex; width: max-content; color: transparent; font-weight: 500; background: linear-gradient(90deg, var(--fg-q) 0%, var(--fg-q) 40%, #fff 50%, var(--fg-q) 60%, var(--fg-q) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 1.6s linear infinite; }
.thinking::after { content: "…"; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.m-err { padding: 8px 10px; border-radius: 10px; background: rgba(240, 74, 79, .1); color: #ff9a9d; font-size: 13px; }
.m-note { color: var(--fg-q); font-size: 12px; }
.msg-meta { display: flex; align-items: center; gap: 6px; color: var(--fg-dim); font-size: 11px; font-weight: 500; }
.msg-meta .glyph { width: 11px; height: 11px; color: var(--fg-dim); }
.msg-meta span::before { content: "·"; margin-right: 6px; }
.tcard { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px 8px 8px; border-radius: 12px; border: 1px solid var(--w5); background: var(--glass); box-shadow: inset 0 2px 3px var(--w4); text-align: left; transition: border-color .15s, filter .15s; animation: msg-in .3s var(--out-expo) both; }
.tcard:hover { border-color: var(--w10); filter: brightness(1.1); }
.tcard .gtile { width: 30px; height: 30px; border-radius: 9px; }
.tcard .gtile svg { width: 15px; height: 15px; }
.tc-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tc-t b { overflow: hidden; color: #fff; font-size: 13px; line-height: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tc-t small { overflow: hidden; color: var(--fg-2); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tc-img { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px var(--w10); }
.tc-c { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--w5); color: var(--fg-2); font-size: 11px; line-height: 16px; font-style: normal; font-weight: 600; white-space: nowrap; }
.tc-c.paid { background: var(--acc-15); color: var(--acc); }
.tc-spin { flex: none; width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; border: 2px solid var(--w10); border-top-color: var(--acc); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tcard.run .tc-t b { color: transparent; background: linear-gradient(90deg, #fff 0%, #fff 35%, var(--acc-2) 50%, #fff 65%, #fff 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 1.8s linear infinite; }
.tcard.bad { border-color: rgba(240, 74, 79, .2); }
.tcard.bad .tc-t small { color: #ff9a9d; }

/* ---------------------------------------------------------------- brand */
.brand { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.card { border-radius: 16px; background: var(--panel); border: 1px solid var(--hair); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 12px 16px 10px; color: var(--fg-dim); font-size: 14px; line-height: 16px; font-weight: 500; }
.card-h > span:last-child:not(:first-child) { font-size: 12px; text-align: right; }
.stack-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bboard { margin: 0 8px 8px; padding: clamp(20px, 4vw, 40px); border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.bb-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 180px; }
.bb-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.bb-name { max-width: 100%; color: var(--fg); font-size: clamp(36px, 4.6vw, 68px); line-height: .95; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bb-tag { max-width: 520px; color: var(--fg); opacity: .72; font-size: 16px; line-height: 22px; }
.bb-strip { display: flex; height: 64px; margin-top: 28px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.bb-strip i { flex: 1; }
.bb-strip i:first-child { flex: 1.6; }
.bb-type { display: flex; align-items: flex-end; gap: 20px; margin-top: 24px; }
.bb-type span { flex: none; color: var(--ac); font-size: 84px; line-height: .8; font-weight: 700; }
.bb-type p { max-width: 420px; color: var(--fg); opacity: .8; font-size: 14px; line-height: 21px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; padding: 0 12px 12px; }
.sw { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.sw i { aspect-ratio: 1.3; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px var(--w10); transition: transform .2s var(--out-expo); }
.sw:hover i { transform: translateY(-2px); }
.sw b { overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sw small { color: var(--fg-2); font-size: 11px; font-family: var(--mono); }
.sw em { color: var(--fg-dim); font-size: 11px; font-style: normal; }
.typo { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 16px; }
.typo .big { overflow: hidden; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -1px; text-overflow: ellipsis; white-space: nowrap; }
.typo p { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 22px; }
.typo small { color: var(--fg-2); }
.voice { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.voice p { color: rgba(255, 255, 255, .85); line-height: 21px; }
.vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vrow small { width: 44px; color: var(--fg-q); font-size: 12px; }
.vchip { padding: 2px 8px; border-radius: 99px; font-size: 12px; line-height: 18px; }
.vchip.ok { background: rgba(83, 197, 70, .12); color: #8fe285; }
.vchip.no { background: rgba(240, 74, 79, .1); color: #ff9a9d; text-decoration: line-through; text-decoration-color: rgba(255, 154, 157, .5); }
.logo-box { padding: 0 12px 12px; }
.logo-box img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #f6f5f2; cursor: zoom-in; }
.logo-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 12px; border: 1px dashed var(--w8); color: var(--fg-2); text-align: center; }
.logo-empty div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.why { padding: 0 16px 16px; color: rgba(255, 255, 255, .85); line-height: 21px; }

/* ---------------------------------------------------------------- images */
.gen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 8px 4px 16px; }
.gen-head h2 { font-family: var(--grotesk); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.8px; text-transform: uppercase; }
.gen-head p { color: var(--fg-2); font-size: 14px; }
.gen { position: relative; min-height: 100%; padding: 0 16px 64px; }
.size-slider { display: flex; align-items: center; gap: 10px; color: var(--fg-q); }
.size-slider input { width: 120px; accent-color: #fff; }
.masonry { columns: var(--cols, 4) 200px; column-gap: 12px; }
.shot { position: relative; display: block; width: 100%; margin: 0 0 12px; border-radius: 12px; overflow: hidden; break-inside: avoid; background: var(--field-q); cursor: zoom-in; transition: transform .15s cubic-bezier(.23, 1, .32, 1); }
.shot:active { transform: scale(.98); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.shot:hover img { transform: scale(1.02); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .3) 0%, transparent 50%, rgba(0, 0, 0, .5) 100%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot-acts { position: absolute; z-index: 2; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity .2s; }
.shot:hover .shot-acts, .shot:focus-within .shot-acts { opacity: 1; }
.round28 { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--w10); background: rgba(0, 0, 0, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), inset 0 2px 3px var(--w5); color: #fff; }
.round28:hover { background: rgba(0, 0, 0, .3); }
.shot-meta { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; opacity: 0; transition: opacity .2s; font-size: 12px; line-height: 16px; font-weight: 500; }
.shot:hover .shot-meta, .shot:focus-within .shot-meta { opacity: 1; }
.shot-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-meta em { flex: none; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, .4); font-style: normal; text-transform: capitalize; }
.shot.pending, .shot.sk { display: grid; place-items: center; cursor: default; background: linear-gradient(110deg, var(--field) 30%, var(--raised) 50%, var(--field) 70%) 0 0 / 250% 100%; animation: sk 1.4s linear infinite; }
.shot.sk { aspect-ratio: 1; }
.shot.pending span { color: var(--fg-2); font-size: 12px; font-weight: 600; }
.shot.pending span::after { content: "…"; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* floating prompt bar (3.2) */
.pbar { position: absolute; z-index: 30; left: calc(50% - 24px); bottom: 16px; width: calc(100% - 80px); max-width: 1000px; padding: 2px; border-radius: 26px; transform: translateX(-50%); background: linear-gradient(115deg, rgba(36, 43, 50, .12) 27.54%, rgba(219, 219, 219, .12) 85.5%), rgba(15, 17, 19, .96); box-shadow: 0 16px 48px rgba(0, 0, 0, .45); animation: bar-in .4s var(--out-expo) both; }
@keyframes bar-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.pform { display: flex; gap: 12px; padding: 18px; border-radius: 24px; border: 1px solid var(--acc-5); -webkit-backdrop-filter: blur(10.45px); backdrop-filter: blur(10.45px); }
.pleft { flex: 1; min-width: 0; }
.pprompt { position: relative; margin-bottom: 8px; }
.pprompt textarea { display: block; width: 100%; min-height: 40px; max-height: 112px; padding: 0; border: 0; outline: none; resize: none; background: none; color: #fff; font-size: 14px; line-height: 20px; caret-color: var(--acc); }
.pprompt textarea::placeholder { color: var(--w60); }
.pctrls { display: flex; align-items: center; gap: 8px; height: 40px; min-width: 0; }
.attach { display: flex; align-items: center; flex: none; height: 40px; border-radius: 12px; overflow: hidden; background: var(--chip); border: 1px solid var(--acc-5); }
.attach button { display: grid; place-items: center; width: 40px; height: 38px; transition: background .2s var(--tw); }
.attach button:hover { background: var(--w10); }
.attach button:active { background: var(--w20); }
.attach i { width: 1px; height: 16px; background: var(--w10); }
.chip { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 40px; padding: 10px 12px; border-radius: 12px; background: var(--chip); border: 1px solid var(--acc-5); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; transition: background .2s var(--tw); }
.chip .ico { color: var(--w60); }
.chip.model { gap: 0; padding: 0 12px; }
.chip.model .glyph { color: var(--acc); }
.chip.model span { padding: 0 4px; }
.chip.model .chev { transform: rotate(-90deg); color: var(--w60); transition: color .2s; }
.chip.model:hover .chev { color: var(--acc); }
.chip.open { background: #2a2a2a; }
.chips-scroll { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.stepper { display: flex; align-items: center; flex: none; height: 40px; padding: 0 6px; border-radius: 12px; background: var(--chip); border: 1px solid var(--acc-5); }
.stepper button { display: grid; place-items: center; width: 24px; height: 24px; color: var(--fg-2); transition: color .2s; }
.stepper button:hover:not(:disabled) { color: #fff; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper b { width: 32px; text-align: center; font-weight: 600; }
.stepper small { color: var(--w60); font-size: 14px; margin-left: -10px; margin-right: 4px; }
.gen-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 144px; height: 84px; padding: 0 10px; border-radius: 12px; background: var(--acc); border: 1px solid var(--acc); color: var(--on-acc); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); transition: background .2s var(--tw); }
.gen-btn:hover { background: rgba(255, 107, 44, .8); }
.gen-btn b { font-size: 16px; line-height: 24px; font-weight: 600; }
.gen-btn span { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.gen-btn span .glyph { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.gen-btn.off { background: var(--w10); border-color: var(--w10); color: #fff; box-shadow: none; }
.gen-btn.off span { color: var(--fg-2); font-weight: 500; }
.refs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.refs small { color: var(--fg-q); font-size: 12px; }
.ref { position: relative; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--acc-20); }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref button { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .15s; }
.ref:hover button { opacity: 1; }
.ref button .ico { width: 14px; height: 14px; }

/* pickers (3.3) */
.picker { position: fixed; z-index: 100000; display: flex; flex-direction: column; border-radius: 12px; background: var(--pop); border: 1px solid var(--acc-5); padding: 32px 4px 8px; animation: fade-scale-in .2s var(--out-quart) both; }
.picker::before { content: attr(data-title); position: absolute; top: 0; left: 0; right: 0; padding: 10px 12px 0; color: var(--w60); font-size: 14px; line-height: 20px; }
@keyframes fade-scale-in { from { opacity: 0; transform: scale(.95); transform-origin: 0 100%; } to { opacity: 1; transform: none; transform-origin: 0 100%; } }
.popt { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 6px; border-radius: 6px; text-align: left; transition: background .2s; }
.popt:hover, .popt.on { background: var(--w8); }
.popt .ab { display: grid; place-items: center; width: 32px; height: 36px; }
.popt .ab i { display: block; border: 1.5px solid #fff; border-radius: 3px; }
.popt .lb { flex: 1; padding: 8px; }
.popt .ck { color: var(--w60); opacity: 0; }
.popt.on .ck { opacity: 1; }
.mpicker { position: fixed; z-index: 100000; width: 25rem; max-width: calc(100vw - 16px); max-height: min(40rem, calc(100vh - 32px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: rgba(28, 30, 32, .95); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); border: 1px solid var(--hair); animation: popover-in-up .2s ease both; }
@keyframes popover-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mpicker::before, .mpicker::after { content: ""; position: absolute; left: 10%; width: 80%; height: 120px; border-radius: 317px; background: rgba(255, 140, 80, .14); filter: blur(50px); pointer-events: none; }
.mpicker::before { top: -90px; }
.mpicker::after { bottom: -90px; }
.msearch { display: flex; align-items: center; gap: 8px; height: 42px; padding: 2px 10px; border-bottom: 1px solid var(--hair); color: var(--fg-2); }
.msearch input { flex: 1; border: 0; outline: none; background: none; font-size: 14px; }
.mlist { overflow-y: auto; padding: 0 12px 12px; }
.mhead { display: flex; align-items: center; gap: 6px; padding: 8px 0; color: var(--fg-2); font-size: 12px; line-height: 18px; font-weight: 500; }
.mfoot { padding: 0 4px 4px; color: var(--fg-q); font-size: 12px; line-height: 17px; }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 12px 6px 6px; border-radius: 12px; text-align: left; transition: background .2s; }
.mrow:hover, .mrow.on { background: var(--w5); }
.mrow .mt { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--w5); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .03); color: var(--fg-2); }
.mrow.on .mt { color: var(--acc); }
.mrow b { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; font-weight: 500; }
.mrow small { display: block; margin-top: 2px; color: var(--fg-2); font-size: 10px; line-height: 14px; }
.mrow .ok { margin-left: auto; color: var(--acc); opacity: 0; }
.mrow.on .ok { opacity: 1; }
.badge { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--acc); color: var(--on-acc); font-family: var(--grotesk); font-size: 10px; line-height: 16px; font-weight: 700; text-transform: uppercase; transform: skewX(-12deg); }
.badge.blue { background: linear-gradient(90deg, #3259b4 0%, #3c8cff 50%, #00c8d2 75%, #78c9e6 100%); color: #fff; padding: 0 6px; }
.badge.live { height: 20px; padding: 0 7px; background: var(--ok); color: #0c1a0a; transform: none; }
.badge.ex { position: absolute; top: 8px; right: 8px; height: 20px; padding: 0 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .2px; text-transform: none; transform: none; }
.elements { position: fixed; z-index: 100000; width: 300px; max-height: min(420px, calc(100vh - 32px)); overflow-y: auto; padding: 8px; border-radius: 12px; background: rgba(35, 38, 42, .92); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: 0 0 0 1px var(--w5), 0 12px 32px rgba(0, 0, 0, .4); animation: popover-in-up .18s var(--out-expo) both; }
.elements > p { padding: 4px 8px 8px; color: var(--fg-q); font-size: 12px; line-height: 17px; }
.el { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 8px; border-radius: 8px; text-align: left; font-weight: 500; transition: background .15s; }
.el:hover { background: var(--w5); }
.el.on { background: var(--acc-15); }
.el img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.el small { margin-left: auto; color: var(--fg-q); font-size: 12px; font-weight: 400; text-transform: capitalize; }

/* ---------------------------------------------------------------- site and code */
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--field); }
.seg button { flex: 1; height: 34px; padding: 0 12px; border-radius: 10px; color: var(--fg-2); font-weight: 500; transition: color .2s, background .2s; }
.seg button:hover { color: #fff; }
.seg button.on { background: var(--raised); color: #fff; box-shadow: inset 0 2px 3px var(--w5); }
.seg.sm { padding: 2px; border-radius: 10px; }
.seg.sm button { height: 28px; border-radius: 8px; font-size: 13px; }
.seg.icons button { display: grid; place-items: center; width: 32px; padding: 0; }
.pub-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: rgba(83, 197, 70, .08); color: #9ce394; }
.pub-row a { flex: 1; min-width: 0; overflow: hidden; color: #fff; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.pub-row a:hover { text-decoration: underline; }
.site-grid, .code-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: start; }
.files { position: sticky; top: 0; padding-bottom: 6px; }
.frows { display: flex; flex-direction: column; gap: 1px; padding: 0 6px; max-height: calc(100vh - 230px); overflow-y: auto; }
.frow { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; color: var(--fg-2); font-family: var(--mono); font-size: 12px; text-align: left; transition: background .15s, color .15s; }
.frow:hover { background: var(--w5); color: #fff; }
.frow.on { background: var(--w8); color: #fff; }
.frow.in { padding-left: 22px; }
.frow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow small { flex: none; color: var(--fg-dim); font-family: "Inter", sans-serif; font-size: 11px; }
.frow-dir { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; color: var(--fg-q); font-family: var(--mono); font-size: 12px; }
.frow-dir .ico { width: 13px; height: 13px; }
.site-main { min-width: 0; }
.site-bar { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 10px; }
.code-main .site-bar { margin: 0; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--w5); }
.sb-path { display: flex; align-items: baseline; gap: 10px; min-width: 0; overflow: hidden; color: #fff; font-family: var(--mono); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.sb-path small { color: var(--fg-dim); font-family: "Inter", sans-serif; font-size: 12px; }
.sb-r { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.browser { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--w8), 0 18px 40px rgba(0, 0, 0, .35); transition: width .3s var(--out-expo); }
.browser.mobile { width: 390px; max-width: 100%; margin: 0 auto; border-radius: 28px; box-shadow: 0 0 0 8px #1e2023, 0 0 0 9px var(--w10), 0 24px 48px rgba(0, 0, 0, .4); }
.br-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #24272b; }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--w10); }
.br-bar span { flex: 1; min-width: 0; margin: 0 8px; overflow: hidden; color: var(--fg-2); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.browser iframe { display: block; width: 100%; height: max(460px, calc(100vh - 356px)); border: 0; background: #fff; }
.browser.mobile .br-bar { justify-content: center; }
.browser.mobile .br-bar i { display: none; }
.browser.mobile iframe { height: min(760px, calc(100vh - 356px)); }
.editor-pane textarea { display: block; width: 100%; height: max(420px, calc(100vh - 330px)); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--w8); outline: none; resize: vertical; background: #0c0d0f; color: #e9e9ec; font: 12.5px/1.65 var(--mono); tab-size: 2; white-space: pre; overflow-wrap: normal; overflow: auto; }
.editor-pane textarea:focus { border-color: var(--acc-20); box-shadow: 0 0 0 3px var(--acc-5); }
.code-main { min-width: 0; overflow: hidden; }
.code-main .editor-pane { padding: 10px; }
.code-main .editor-pane textarea { height: max(420px, calc(100vh - 340px)); }
.viewer { max-height: max(420px, calc(100vh - 290px)); overflow: auto; background: #0c0d0f; border-radius: 0 0 16px 16px; }
.lines { margin: 0; padding: 12px 0; font: 12.5px/1.65 var(--mono); color: #e1e1e4; }
.ln { display: block; padding-right: 16px; white-space: pre; }
.ln:hover { background: var(--w2); }
.ln i { display: inline-block; width: 52px; padding-right: 16px; color: #4a4c52; font-style: normal; text-align: right; user-select: none; }
.viewer .loading { padding: 18px; color: var(--fg-2); }

/* ---------------------------------------------------------------- plan */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th { padding: 9px 14px; color: var(--fg-q); font-size: 11px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .3px; background: var(--w2); }
.ptable td { padding: 10px 14px; border-top: 1px solid var(--w5); vertical-align: top; }
.ptable td.dim { color: var(--fg-2); }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable tr.total td { font-weight: 600; color: #fff; background: var(--w2); }
.card > .ptable { border-radius: 0 0 16px 16px; overflow: hidden; }
.est { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; background: rgba(232, 163, 61, .12); color: #f0b65e; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.mss { display: flex; flex-direction: column; padding: 0 16px 14px; }
.ms { position: relative; display: flex; gap: 12px; padding: 8px 0 12px; }
.ms + .ms::before { content: ""; position: absolute; left: 5px; top: -12px; height: 20px; width: 1px; background: var(--w10); }
.ms-dot { flex: none; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--w20); }
.ms.done .ms-dot { border-color: var(--ok); background: var(--ok); }
.ms > div { flex: 1; min-width: 0; }
.ms b { display: block; font-weight: 600; }
.ms small { color: var(--fg-2); font-size: 12px; }
.ms em { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #fff; font-size: 13px; font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms em span { color: var(--fg-q); font-size: 11px; text-transform: capitalize; }
.notes { padding: 0 16px 16px; color: rgba(255, 255, 255, .85); line-height: 21px; }
.lcard .card-h { padding-right: 10px; }
.lc-acts { display: flex; gap: 6px; }
.lc-empty { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; color: var(--fg-2); line-height: 21px; }
.lc-empty b { color: #fff; font-weight: 600; }
.lc-empty div { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-note { padding: 0 16px 16px; color: var(--fg-2); line-height: 20px; overflow-wrap: anywhere; }
.lc-note small { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; }
.lc-body { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.lc-state { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-q); }
.st-dot.s-active { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-15); }
.st-dot.s-funded, .st-dot.s-delivering, .st-dot.s-completed { background: var(--ok); box-shadow: 0 0 0 3px rgba(83, 197, 70, .15); }
.st-dot.s-failed, .st-dot.s-undelivered, .st-dot.s-disputed { background: #e8a33d; }
.lc-num b { font-family: var(--grotesk); font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.6px; }
.lc-num span { display: block; color: var(--fg-2); font-size: 13px; }
.progress { height: 6px; border-radius: 6px; background: var(--w10); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: var(--acc); transition: width .6s var(--out-expo); }
.lc-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.lc-split div { padding: 8px 10px; border-radius: 10px; background: var(--w4); }
.lc-split small { display: block; color: var(--fg-q); font-size: 11px; }
.lc-split b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cov { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.cov-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; align-items: center; gap: 10px; font-size: 13px; }
.cov-row span { overflow: hidden; color: var(--fg-2); text-overflow: ellipsis; white-space: nowrap; }
.cov-bar { height: 5px; border-radius: 5px; background: var(--w10); overflow: hidden; }
.cov-bar i { display: block; height: 100%; background: var(--ok); }
.cov-row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.blog { display: flex; flex-direction: column; padding: 0 8px 8px; }
.bl-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; transition: background .15s; }
.bl-row:hover { background: var(--w4); }
.bl-row .gtile { width: 26px; height: 26px; }
.bl-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bl-t b { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bl-t b a:hover { text-decoration: underline; }
.bl-t small { overflow: hidden; color: var(--fg-q); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bl-row em { flex: none; color: var(--fg-2); font-size: 12px; font-style: normal; font-weight: 500; }

/* ---------------------------------------------------------------- campaign */
.camp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.cform { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; }
.cform > .fld, .cform > .fld-row, .cform > .cf-acts { margin: 0 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { color: var(--fg-2); font-size: 12px; font-weight: 500; }
.fld > span small { margin-left: 4px; color: var(--fg-dim); font-weight: 400; }
.fld input, .fld select, .fld textarea, .rw input, .rw textarea, .crow2 input, .prow2 input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--w5); outline: none; background: var(--field); color: #fff; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.fld textarea, .rw textarea { height: auto; padding: 10px 12px; line-height: 20px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .rw input:focus, .rw textarea:focus, .crow2 input:focus, .prow2 input:focus { border-color: var(--acc-20); box-shadow: 0 0 0 3px var(--acc-5); }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23898a8b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.fld input[type=date] { color-scheme: dark; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld-row.three { grid-template-columns: 1fr 1fr 1.3fr; }
.covers { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.cov-pick { flex: none; width: 76px; height: 52px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--w10); opacity: .7; transition: opacity .15s, box-shadow .15s; }
.cov-pick:hover { opacity: 1; }
.cov-pick.on { opacity: 1; box-shadow: 0 0 0 2px var(--acc); }
.cov-pick img { width: 100%; height: 100%; object-fit: cover; }
.rewards { display: flex; flex-direction: column; gap: 8px; }
.rw { display: grid; grid-template-columns: minmax(0, 1.6fr) 90px 80px minmax(0, 1.2fr) 28px; gap: 6px; padding: 8px; border-radius: 12px; background: var(--w2); box-shadow: inset 0 0 0 1px var(--w5); }
.rw textarea { grid-column: 1 / -2; }
.rw .icon-btn { align-self: center; }
.cf-acts { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.cf-acts .btn-acc, .cf-acts .btn-tert { height: 40px; padding: 0 16px; border-radius: 10px; }
.cprev { display: flex; flex-direction: column; margin: 0 8px 8px; border-radius: 12px; overflow: hidden; background: var(--field); }
.cp-media { aspect-ratio: 16 / 9; background: var(--raised); }
.cp-media img { width: 100%; height: 100%; object-fit: cover; }
.cp-media i { display: grid; place-items: center; height: 100%; color: var(--fg-dim); }
.cp-media i .ico { width: 28px; height: 28px; }
.cp-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.cp-body > b { font-size: 16px; font-weight: 600; }
.cp-body > small { color: var(--fg-q); font-size: 12px; }
.cp-body > p { margin: 4px 0 8px; color: var(--fg-2); font-size: 13px; line-height: 19px; }
.cp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--fg-2); font-size: 12px; }
.cp-meta b { color: #fff; }
.howto { margin: 0; padding: 0 16px 16px 34px; color: var(--fg-2); line-height: 21px; }
.howto li + li { margin-top: 6px; }

/* ================================================================== apps gallery (7) */
.apps { max-width: 1248px; margin: 0 auto; padding: 24px 24px 64px; }
.apps-hero h1 { font-family: var(--grotesk); font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -.643px; text-transform: uppercase; }
.apps-hero h1 span { display: block; color: var(--acc); margin-bottom: 16px; }
.apps-hero p { color: var(--w60); }
.afilter { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.asearch { display: flex; align-items: center; gap: 8px; width: 237px; max-width: 320px; height: 44px; padding: 12px; border-radius: 12px; background: var(--w4); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); color: var(--w60); }
.asearch input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: #fff; }
.asearch input::placeholder { color: var(--w60); }
.atabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.atab { flex: none; height: 36px; padding: 0 16px; border-radius: 10px; color: var(--w60); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background .2s, color .2s; }
.atab:hover { color: #fff; }
.atab.on { background: #2e3031; color: #fff; }
.asec { margin-top: 32px; }
.asec-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.asec-h h2 { font-family: var(--grotesk); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.56px; text-transform: uppercase; }
.asec-h p { color: var(--w60); }
.agrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.app { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid transparent; box-shadow: inset 2px 2px 2px var(--w2); transition: all .2s; }
.app:hover { background: var(--field); border-color: var(--hair); }
.app-media { position: relative; aspect-ratio: 235 / 227; margin: 1px 1px 0; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--raised); }
.app-media > img { width: 100%; height: 100%; object-fit: cover; }
.app-media .badge.tag { position: absolute; left: 8px; bottom: 8px; height: 18px; font-size: 14px; line-height: 18px; padding: 0 6px; transform: skewX(-10deg); }
.app-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 16px; }
.app-body b { display: block; font-size: 16px; line-height: 24px; font-weight: 600; }
.app-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--w60); }
.try { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 8px 16px 10px; border-radius: 12px; background: #fff; color: var(--panel); font-weight: 600; box-shadow: 10px 34px 24px rgba(0, 0, 0, .15), inset 0 1px 0 #e6e6e6, inset 0 -2px 0 #c1c1c1, inset 0 -3px 0 #c1c1c1, 3px 7px 5px rgba(0, 0, 0, .25), 1px 3px 4px rgba(0, 0, 0, .43), 0 1px 2px rgba(0, 0, 0, .49); transition: filter .2s, opacity .2s; }
.try:hover { opacity: .9; filter: brightness(.8); }
.try:active { filter: brightness(.6); }
.try svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.prompt-chip { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 100%; padding: 16px; background: linear-gradient(160deg, #1d2024, #121417); color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 18px; }
.prompt-chip em { color: var(--acc); font-style: normal; font-weight: 600; }
.prompt-chip.doc span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--w4); }
.prompt-chip.doc span i { flex: 1; max-width: 40%; height: 6px; margin-left: auto; border-radius: 6px; background: var(--w10); order: 2; }
.prompt-chip.code-doc { gap: 2px; font: 12px/1.7 var(--mono); }
.prompt-chip.code-doc em { margin-bottom: 8px; font-family: "Inter", sans-serif; }
.prompt-chip.code-doc code { white-space: pre; color: #d9d9dc; }
.prompt-chip.code-doc .k { color: var(--acc-2); }
.mini-site { position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px; background: linear-gradient(160deg, #1d2024, #121417); }
.mini-site .ms-bar { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 8px 8px 0 0; background: #2a2d31; }
.mini-site .ms-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--w20); }
.mini-site .ms-bar span { margin-left: 6px; color: var(--fg-2); font-size: 9px; }
.mini-site > img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 0 0 8px 8px; }
.mini-site .badge.ex { top: 22px; right: 22px; }

/* ================================================================== modals: gate (2.6), credits, sheet, lightbox */
.gate, .sheet { position: fixed; inset: 0; z-index: 3001; display: grid; place-items: center; padding: 2rem; background: rgba(0, 0, 0, .8); opacity: 0; pointer-events: none; transition: opacity .22s var(--out); }
.gate.open, .sheet.open { opacity: 1; pointer-events: auto; }
.gate-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(70rem, 100%); height: min(42rem, calc(100dvh - 4rem)); border-radius: 24px; overflow: hidden; background: var(--panel); border: 1px solid var(--hair); box-shadow: inset 0 0 32px rgba(0, 0, 0, .2); transform: scale(.95); transition: transform .22s var(--out); }
.gate.open .gate-box, .sheet.open .sheet-box { transform: none; }
.gate-media { position: relative; margin: 12px; border-radius: 12px; overflow: hidden; background: #000; }
.gate-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.gate-media img.on { opacity: 1; }
.gate-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .8)); }
.gate-copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.glass-tag { width: max-content; padding: 4px 8px; border-radius: 8px; background: var(--w10); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 10px; line-height: 14px; font-weight: 600; }
.gate-copy h3 { font-family: var(--grotesk); font-size: 40px; line-height: 40px; font-weight: 700; letter-spacing: -1.6px; text-transform: uppercase; }
.gate-copy p { color: rgba(255, 255, 255, .75); }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.segs button { display: flex; flex-direction: column; gap: 6px; color: var(--w50); font-size: 11px; text-align: left; }
.segs button i { display: block; height: 3px; border-radius: 3px; background: var(--w20); overflow: hidden; }
.segs button i::after { content: ""; display: block; height: 100%; width: 0; background: #fff; }
.segs button.on { color: #fff; }
.segs button.on i::after { width: 100%; transition: width 4s linear; }
.segs button.done i::after { width: 100%; }
.gate-right { display: flex; flex-direction: column; justify-content: safe center; gap: 12px; padding: 40px 56px; overflow-y: auto; }
.gate-right > * { flex-shrink: 0; }
.gate-right .logo-key { width: 40px; height: 40px; border-radius: 12px; }
.gate-right h3 { margin-top: 12px; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.6px; }
.wallets { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.gate-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 12px; border: 1px solid var(--w10); font-weight: 600; transition: background .15s; }
.gate-row:hover { background: var(--w5); }
.gate-row img, .gate-row > .ico { width: 22px; height: 22px; border-radius: 6px; }
.gate-row.dim { color: var(--fg-2); font-weight: 500; }
.gate-row .ext .ico { width: 14px; height: 14px; color: var(--fg-q); }
.gate-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-row.social { background: #fff; border-color: #fff; color: #0f1113; }
.gate-row.social:hover { background: #ececec; }
.gate-row.social[data-social="twitter"] { background: #000; border-color: var(--w10); color: #fff; }
.gate-row.social[data-social="twitter"]:hover { background: #151515; }
.gate-row.social img { width: 18px; height: 18px; border-radius: 0; }
.gate-more-h { margin-top: 4px; color: var(--fg-2); font-size: 12px; font-weight: 500; }
.gate-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gate-tile { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--w10); color: var(--fg-2); font-size: 12px; font-weight: 500; text-align: center; transition: background .15s; }
.gate-tile:hover { background: var(--w5); color: var(--fg); }
.gate-tile img, .gate-tile > .ico { flex: none; width: 22px; height: 22px; border-radius: 6px; }
.gate-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-q); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--w10); }
.cont { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 12px; background: var(--w10); color: var(--w50); font-weight: 600; transition: background .15s, color .15s, filter .15s; }
.cont.ready { background: var(--acc); color: var(--on-acc); box-shadow: inset 0 -3px 0 var(--acc-lip); }
.cont.ready:hover { filter: brightness(.92); }
.cont:disabled { cursor: not-allowed; }
.wallets .lnk { align-self: center; font-size: 13px; }
.fine { color: var(--fg-q); font-size: 12px; line-height: 17px; }
.fine.ok { color: var(--ok); }
.fine.err { color: #ff8d90; }
.fine.real { color: #f0b65e; }
.gate-x { position: absolute; z-index: 3; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; background: var(--w5); border: 1px solid var(--w4); transition: background .15s; }
.gate-x:hover { background: var(--w10); }
/* credits */
.cbox { grid-template-columns: 1fr 1.05fr; width: min(60rem, 100%); height: auto; max-height: calc(100dvh - 4rem); }
.cleft { margin: 12px; border-radius: 14px; overflow-y: auto; background: radial-gradient(120% 70% at 0% 0%, rgba(255, 107, 44, .12), transparent 60%), var(--field); }
.cl-in { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.cl-in .logo-key { width: 40px; height: 40px; border-radius: 12px; }
.cl-in h3 { font-family: var(--grotesk); font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.8px; text-transform: uppercase; }
.costs { display: flex; flex-direction: column; padding: 4px 0; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.costs div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; }
.costs div + div { border-top: 1px solid var(--w5); }
.costs span { color: var(--fg-2); }
.costs b { font-weight: 600; }
.costs small { padding: 8px 14px 6px; color: var(--fg-q); font-size: 12px; line-height: 17px; }
.perks { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--w5); scroll-margin: 20px; }
.pk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--w5); }
.pk span { display: flex; flex-direction: column; font-weight: 600; }
.pk span small { color: var(--fg-q); font-size: 12px; font-weight: 400; }
.pk b { font-weight: 600; }
.pk em { width: 100%; color: var(--fg-q); font-size: 12px; font-style: normal; }
.cright { display: flex; flex-direction: column; overflow-y: auto; }
.cr-in { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 100%; padding: 40px 40px 32px; }
.cr-in .bal small { display: block; color: var(--fg-q); font-size: 12px; }
.cr-in .bal b { font-family: var(--grotesk); font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.cr-in .bal span { margin-left: 8px; color: var(--fg-2); }
.need { padding: 8px 12px; border-radius: 10px; background: var(--acc-15); color: var(--acc); font-weight: 500; }
.funds { padding: 12px 14px; border-radius: 12px; background: var(--w4); color: var(--fg-2); font-size: 13px; line-height: 19px; }
.funds b { display: block; margin-bottom: 2px; color: #fff; font-size: 14px; }
.funds.on { background: rgba(83, 197, 70, .08); box-shadow: inset 0 0 0 1px rgba(83, 197, 70, .2); }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--w8); background: var(--w2); text-align: left; transition: border-color .15s, background .15s; }
.pack:hover { border-color: var(--w20); }
.pack.on { border-color: var(--acc); background: var(--acc-5); box-shadow: inset 0 0 0 1px var(--acc); }
.pack b { font-family: var(--grotesk); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pack span { color: var(--fg-2); font-size: 12px; }
.pack em { margin-top: 6px; font-style: normal; font-weight: 600; }
.pack small { position: absolute; top: 10px; right: 10px; padding: 1px 6px; border-radius: 6px; background: rgba(83, 197, 70, .14); color: #8fe285; font-size: 11px; font-weight: 600; }
/* sheet: forms */
.sheet { z-index: 3002; }
.sheet-box { position: relative; display: flex; flex-direction: column; gap: 12px; width: min(40rem, 100%); max-height: calc(100dvh - 4rem); overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--hair); box-shadow: 0 24px 64px rgba(0, 0, 0, .5); transform: scale(.96); transition: transform .22s var(--out); }
.sheet-box h3 { padding-right: 40px; font-family: var(--grotesk); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.5px; text-transform: uppercase; }
.sh-form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.sh-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.sh-acts.split { justify-content: space-between; }
.sh-acts span { display: flex; gap: 8px; }
.sh-acts .btn-acc, .sh-acts .btn-tert { height: 40px; padding: 0 16px; border-radius: 10px; }
.crow2 { display: grid; grid-template-columns: 40px 96px 1fr 1fr 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
.crow2 input[type=color] { height: 40px; padding: 3px; border-radius: 10px; cursor: pointer; }
.crow2 input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.crow2 input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.crow2 [data-c=hex] { font-family: var(--mono); font-size: 13px; }
.prow2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 100px 52px 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
.prow2.ms2 { grid-template-columns: minmax(0, 1.6fr) 110px 100px 56px 28px; padding: 6px; border-radius: 12px; background: var(--w2); }
.prow2 .wide { grid-column: 1 / -2; }
.est-t { display: flex; align-items: center; gap: 4px; color: var(--fg-2); font-size: 12px; }
.est-t input { width: 14px; height: 14px; accent-color: var(--acc); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pick { aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--w10); transition: box-shadow .15s, transform .15s; }
.pick:hover { box-shadow: 0 0 0 2px var(--acc); transform: translateY(-1px); }
.pick img { width: 100%; height: 100%; object-fit: cover; }
/* lightbox and toast */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 48px; background: rgba(0, 0, 0, .86); opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: min(1100px, 100%); max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 190px); margin: 0 auto; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; color: rgba(255, 255, 255, .8); }
.lightbox figcaption p { max-width: 560px; font-size: 13px; line-height: 19px; }
.lb-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; z-index: 4000; left: 16px; bottom: 16px; width: 22.5rem; max-width: calc(100vw - 32px); padding: 12px 14px; border-radius: 12px; background: var(--field); box-shadow: 0 0 0 1px var(--w5), 0 12px 32px rgba(0, 0, 0, .4); transform: translateX(-30rem); visibility: hidden; transition: transform .3s cubic-bezier(.11, 1, .4, 1), visibility 0s .3s; pointer-events: none; }
.toast.on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.11, 1, .4, 1); }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--fg-2); font-size: 13px; }

/* ================================================================== the lock: the Studio opens for funded campaigns */
.side-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 8px 8px; padding: 10px 12px; border-radius: 12px; background: var(--w4); color: var(--fg-2); font-size: 12px; line-height: 17px; }
.side-lock > .ico { width: 14px; height: 14px; color: var(--acc); }
.side-lock .lnk { font-size: 12px; }
.lock-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--w5); color: var(--fg-2); font-size: 12px; font-weight: 600; }
.lock-tag .ico { width: 13px; height: 13px; }
.modelset .tt { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modelset .glyph.ico { color: var(--acc); }
.hero-key.lockkey { position: relative; overflow: visible; }
.hero-key.lockkey img { border-radius: 13px; }
.hero-key.lockkey i { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--acc); color: var(--on-acc); box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 -2px 0 var(--acc-lip); }
.hero-key.lockkey i .ico { width: 13px; height: 13px; stroke-width: 1.8; }
.lockhome h1 { max-width: 760px; }
.lockcard { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 672px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--w4), var(--w2)); box-shadow: inset 0 0 0 1px var(--w6); text-align: left; }
.lockcard.loading .lk-h b { color: transparent; background: linear-gradient(90deg, var(--fg-q) 0%, var(--fg-q) 40%, #fff 50%, var(--fg-q) 60%, var(--fg-q) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 1.6s linear infinite; }
.lk-h { display: flex; align-items: center; gap: 10px; }
.lk-h b { font-size: 15px; line-height: 21px; font-weight: 600; }
.lk-ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--acc-15); color: var(--acc); }
.lk-ico .ico { width: 14px; height: 14px; }
.lockcard .progress { height: 8px; }
.lk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.lockcard > p { color: var(--fg-2); line-height: 20px; }
.lk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.lk-acts .btn-acc, .lk-acts .btn-tert { height: 36px; padding: 0 14px; border-radius: 10px; }
.lk-acts .ico { width: 15px; height: 15px; }
.gate.locked .gate-right .wallets { margin-top: 6px; }
.gate.locked .lockcard { max-width: none; }
.hs-note { color: var(--fg-q); font-size: 12px; }
.unlocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.unl { display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--hair); text-align: left; transition: background .15s, border-color .15s; }
.unl:hover { background: var(--field); border-color: var(--w5); }
.unl-media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--raised); }
.unl-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.unl:hover .unl-media > img { transform: scale(1.02); }
.unl-media .prompt-chip, .unl-media .mini-site { height: 100%; }
.unl-b { display: flex; gap: 10px; padding: 12px 6px 4px; }
.unl-b .gtile { width: 28px; height: 28px; margin-top: 2px; }
.unl-b b { display: block; font-size: 15px; font-weight: 600; }
.unl-b small { display: block; color: var(--fg-2); font-size: 13px; line-height: 18px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps3 li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--hair); }
.steps3 span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 9px; background: var(--acc-15); color: var(--acc); font-family: var(--grotesk); font-weight: 700; }
.steps3 b { font-size: 15px; font-weight: 600; }
.steps3 p { color: var(--fg-2); font-size: 13px; line-height: 19px; }
.fcard { display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--hair); }
.fcard .pc-media .badge { left: 8px; top: 8px; }
.fc-money { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.fc-money span { padding: 8px 10px; border-radius: 10px; background: var(--w4); }
.fc-money small { display: block; color: var(--fg-q); font-size: 11px; }
.fc-money b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-go { width: 100%; height: 38px; margin-top: 10px; border-radius: 10px; }
.try .lk { width: 14px; height: 14px; }
.try:has(.lk) { background: var(--w10); color: #fff; box-shadow: none; }
.cpage { height: 32px; }
/* Backers */
.upform { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; }
.upform > .fld, .upform > .cf-acts { margin: 0 16px; }
.ups { display: flex; flex-direction: column; padding: 0 8px 8px; }
.up { padding: 10px 8px 12px; border-top: 1px solid var(--w5); }
.up:first-child { border-top: 0; }
.up-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.up-h b { font-weight: 600; }
.up-h small { display: flex; align-items: center; gap: 8px; flex: none; color: var(--fg-q); font-size: 12px; }
.up-h em { padding: 1px 7px; border-radius: 6px; background: var(--acc-15); color: var(--acc); font-size: 11px; font-style: normal; font-weight: 600; }
.up p { margin-top: 4px; color: var(--fg-2); font-size: 13px; line-height: 19px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chk { display: flex; flex-direction: column; padding: 0 8px 8px; }
.chk-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.chk-row:hover { background: var(--w4); }
.chk-row input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ok); }
.chk-row b { display: block; font-weight: 600; }
.chk-row small { display: block; color: var(--fg-2); font-size: 12px; line-height: 17px; }
.chk-row.done b { color: var(--fg-2); text-decoration: line-through; text-decoration-color: var(--w30); }
.prow2.ck2 { grid-template-columns: minmax(0, 1fr) 84px 28px; padding: 6px; border-radius: 12px; background: var(--w2); }
.prow2.ck2 textarea { width: 100%; min-width: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--w5); outline: none; background: var(--field); color: #fff; font-size: 14px; line-height: 20px; resize: vertical; }
.tgts { display: flex; flex-direction: column; gap: 6px; }
.tgt { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--w8); text-align: left; transition: background .15s, border-color .15s; }
.tgt:hover { background: var(--w4); }
.tgt.on { border-color: var(--acc); background: var(--acc-5); }
.tgt img, .tgt .letter { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; font-size: 18px; }
.tgt span { flex: 1; min-width: 0; }
.tgt b { display: block; font-weight: 600; }
.tgt small { color: var(--fg-2); font-size: 12px; }
.tgt .ck { color: var(--acc); }
.soon { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--w8); color: var(--fg-2); font-size: 10px; line-height: 14px; font-style: normal; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; }
.foot-row em.bal.empty { display: none; }
.side.locked .group-h div { display: none; }
button.lock-tag { transition: background .15s, color .15s; }
button.lock-tag:hover { background: var(--w8); color: #fff; }
.help { position: fixed; z-index: 990; right: 16px; bottom: 16px; }
.help-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--field); box-shadow: 0 0 0 1px var(--w8), 0 8px 24px rgba(0, 0, 0, .45); color: var(--fg-q); font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.help-btn:hover, .help.open .help-btn { background: var(--raised); color: #fff; }
.help-pop { position: absolute; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 1px; width: 268px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 5px; border-radius: 12px; background: var(--field); box-shadow: 0 0 0 1px var(--w8), 0 16px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(4px) scale(.98); transform-origin: 100% 100%; visibility: hidden; pointer-events: none; transition: opacity .16s var(--out), transform .16s var(--out), visibility 0s .16s; scrollbar-width: thin; scrollbar-color: var(--w10) transparent; }
.help.open .help-pop { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .16s var(--out), transform .16s var(--out); }
.help-pop > a, .help-pop > button, .help-pop > .hp-off { display: flex; flex: none; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border-radius: 8px; color: rgba(255, 255, 255, .82); font-weight: 500; text-align: left; white-space: nowrap; transition: background .12s, color .12s; }
.help-pop > a:hover, .help-pop > button:hover, .help-pop > a:focus-visible, .help-pop > button:focus-visible { background: var(--w8); color: #fff; outline: none; }
.help-pop > a span, .help-pop > button span { margin-left: auto; color: var(--fg-dim); font-size: 12px; font-weight: 400; }
.help-pop > .hp-off { color: var(--fg-q); cursor: default; }
.help-pop .soon { margin-left: auto; }
.hp-h { padding: 6px 8px 3px; color: var(--fg-dim); font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }

/* ================================================================== responsive (11) */
.mtop { display: none; }
.scrim { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .24s; }
@media (max-width: 1280px) { :root { --chat-w: 22rem; } .brand, .plan-grid, .camp-grid { grid-template-columns: 1fr; } .caps, .unlocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pname { max-width: 140px; } }
@media (max-width: 1000px) { :root { --chat-w: 20rem; } .site-grid, .code-grid { grid-template-columns: 1fr; } .files { position: static; } .frows { max-height: 180px; } .ptop .crumb > span:last-child, .ptop .crumb > .sep { display: none; } .cbox { grid-template-columns: 1fr; } .cleft { display: none; } }
@media (min-width: 768px) and (max-width: 900px) { .wsv .ptop .btn-acc { display: none; } }
@media (max-width: 767px) {
  body { overflow: auto; background: #080809; }
  .frame { display: block; height: auto; padding: 0; }
  .mtop { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 6px 10px; background: #080809; }
  .mtop .menu { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--fg-q); }
  .mtop-l, .mtop-r { display: flex; align-items: center; gap: 2px; }
  .mtop-r { gap: 8px; }
  .mtop .wm { position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; transform: translateX(-50%); }
  .mback { display: flex; align-items: center; gap: 1px; height: 32px; padding: 0 6px 0 2px; border-radius: 8px; color: var(--fg-q); }
  .mback img { width: 20px; height: 20px; border-radius: 6px; }
  .mtop .menu:active, .mback:active { background: var(--w8); }
  .mhelp { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--w8); color: #fff; font-size: 13px; font-weight: 600; }
  .help { top: 60px; right: 8px; bottom: auto; }
  .help-btn { display: none; }
  .help-pop { top: 0; bottom: auto; width: min(300px, calc(100vw - 16px)); max-height: calc(100dvh - 76px); transform: translateY(-4px) scale(.98); transform-origin: 100% 0; }
  .help-pop > a, .help-pop > button, .help-pop > .hp-off { height: 42px; font-size: 15px; }
  .space-menu > a, .space-menu > button, .space-menu > .sm-off { height: 44px; font-size: 15px; }
  .mtop .up { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 99px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .25)), var(--acc); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; }
  .mtop .up .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
  .mtop .up.locked { background: var(--w8); color: #fff; }
  .mtop .up.locked .ico { fill: none; stroke: currentColor; }
  .side { position: fixed; z-index: 1000; top: 0; bottom: 0; left: 0; width: 342px; max-width: 88vw; background: #0b0b0b; transform: translateX(-100%); transition: transform .25s var(--out-quart); }
  .side.collapsed { width: 342px; }
  .side.collapsed .space, .side.collapsed .nav-row span, .side.collapsed .group-h, .side.collapsed .proj-row span, .side.collapsed .side-foot { display: flex; }
  body.drawer .side { transform: none; }
  body.drawer .scrim { opacity: 1; pointer-events: auto; }
  .side-head { background: #0b0b0b; }
  #collapse { display: none; }
  .nav-row, .proj-row { height: 52px; padding: 6px 10px 6px 4px; font-size: 16px; }
  .nav-row .gtile, .proj-row .thumb, .proj-row .plus { width: 32px; height: 32px; }
  .main { border: 0; border-radius: 0; overflow: visible; background: #080809; }
  .main::before { display: none; }
  .scroller, .scroller.ws-mode { height: auto; overflow: visible; }
  .view.wsv { height: auto; display: block; }
  .ptop, .wsv .ptop { position: sticky; top: 56px; height: auto; padding: 4px 12px 10px; background: #080809; border: 0; flex-direction: column; align-items: stretch; gap: 0; }
  .ptop .tabs { display: flex; gap: 6px; margin: 0 -12px; padding: 0 32px 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 32px), transparent); }
  .ptop .tabs::-webkit-scrollbar { display: none; }
  .ptop .tab { flex: none; min-height: 33px; padding: 9px 14px; border-radius: 17px; font-size: 12px; line-height: 15px; background: var(--w5); color: #fff; border: 0; }
  .ptop .tab.on { background: #fff; color: #131517; box-shadow: none; }
  .tab.mchat { display: flex; }
  .ptop-r, .crumb { display: none; }
  .home { padding: 24px 16px 48px; gap: 18px; }
  .home h1 { font-size: 24px; line-height: 28px; }
  .composer { border-radius: 24px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .13), inset -1px -1px 0 var(--w10), 0 2px 8px rgba(0, 0, 0, .16); }
  .composer.sm { border-radius: 22px; background: rgba(30, 32, 35, .97); }
  .editor textarea, .typer { font-size: 16px; line-height: 24px; }
  .agent-mode span, .modelset .pill, .composer.sm .modelset { display: none; }
  .caps, .unlocks, .steps3 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; gap: 8px; }
  .lockcard { padding: 14px; }
  .modelset .tt { max-width: 120px; }
  .pcard.add { min-height: 160px; }
  .ws { display: block; }
  .ws[data-mtab=chat] .canvas, .ws[data-mtab=canvas] .chat { display: none; }
  .ws.nochat .chat { display: flex; }
  .ws[data-mtab=canvas].nochat .chat { display: none; }
  .chat { width: auto; border: 0; background: none; }
  .msgs { overflow: visible; padding: 8px 14px 180px; }
  .chat-dock { position: fixed; z-index: 30; left: 8px; right: 8px; bottom: 8px; padding: 0; }
  .canvas-scroll { overflow: visible; }
  .tabpane { padding: 0 12px 40px; }
  .tabpane.gen { padding-bottom: 230px; }
  .tab-head { flex-wrap: wrap; align-items: flex-start; padding-top: 8px; }
  .th-acts { justify-content: flex-start; }
  .size-slider { display: none; }
  .masonry { columns: 2; column-gap: 6px; }
  .shot { margin-bottom: 6px; border-radius: 8px; }
  .shot-acts, .shot-meta { opacity: 1; }
  .gen { padding: 0 10px 64px; }
  .pbar { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; transform: none; border-radius: 26px; animation: none; }
  .pform { flex-direction: column; padding: 12px; gap: 10px; }
  .pctrls { overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .pctrls::-webkit-scrollbar { display: none; }
  .pctrls .chips-scroll { flex: none; overflow: visible; }
  .gen-btn { width: 100%; height: 48px; flex-direction: row; gap: 10px; border-radius: 99px; }
  .chip, .attach, .stepper { height: 36px; }
  .bboard { padding: 20px; }
  .bb-type span { font-size: 60px; }
  .browser iframe { height: 70vh; }
  .browser.mobile { border-radius: 20px; }
  .editor-pane textarea, .code-main .editor-pane textarea { height: 60vh; }
  .viewer { max-height: 70vh; }
  .fld-row, .fld-row.three { grid-template-columns: 1fr; }
  .rw { grid-template-columns: 1fr 1fr 28px; }
  .rw input[data-r=title], .rw input[data-r=delivery] { grid-column: 1 / 3; }
  .rw textarea { grid-column: 1 / 3; }
  .rw .icon-btn { grid-row: 1; grid-column: 3; }
  .lc-split { grid-template-columns: 1fr 1fr; }
  .apps { padding: 12px 16px 48px; }
  .apps-hero h1 { font-size: 40px; line-height: 40px; }
  .afilter { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .asearch { width: 100%; max-width: none; }
  .agrid { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .app { flex: none; width: 248px; }
  .gate, .sheet { padding: 0; place-items: end stretch; }
  .gate-box { grid-template-columns: 1fr; height: auto; max-height: 92dvh; border-radius: 24px 24px 0 0; overflow-y: auto; transform: translateY(100%); }
  .gate-media { height: 200px; margin: 8px; }
  .gate-social { grid-template-columns: 1fr; }
  .gate-more { grid-template-columns: 1fr 1fr; }
  .gate-copy h3 { font-size: 26px; line-height: 28px; }
  .segs { display: none; }
  .gate-right { padding: 16px 20px 28px; overflow: visible; }
  .gate-right h3 { font-size: 24px; line-height: 30px; margin-top: 4px; }
  .gate-right .logo-key { display: none; }
  .cmodal .gate-box { max-height: 92dvh; }
  .cr-in { padding: 24px 20px 28px; }
  .cr-in .bal b { font-size: 40px; line-height: 44px; }
  .sheet-box { width: 100%; max-height: 92dvh; padding: 22px 18px 26px; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .crow2 { grid-template-columns: 40px 1fr 1fr 28px; }
  .crow2 [data-c=role] { display: none; }
  .prow2, .prow2.ms2 { grid-template-columns: 1fr 90px 28px; }
  .prow2 [data-b=detail], .prow2 .est-t { display: none; }
  .prow2.ms2 [data-m=when], .prow2.ms2 .est-t { display: none; }
  .prow2.ms2 .wide { grid-column: 1 / -1; }
  .lightbox { padding: 16px; }
  .lightbox figcaption { flex-direction: column; }
  .lb-acts { justify-content: flex-start; }
  .picker, .mpicker, .elements { left: 8px !important; right: 8px; bottom: 8px !important; top: auto !important; width: auto; max-width: none; border-radius: 24px; background: var(--sheet); animation: sheet-up .24s var(--out-expo) both; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  [data-chat-toggle] { display: none; }
  .toast { bottom: auto; top: 64px; left: 8px; right: 8px; width: auto; transform: translateY(calc(-100% - 72px)); }
}

/* micro-motion */
.nav-row:hover .gtile, .proj-row:hover .thumb, .proj-row:hover .plus, .cap:hover .gtile, .el:hover img, .space-btn:hover .logo-key, .foot-row:hover img, .foot-row:hover .gtile, .gate-row:hover img, .tcard:hover .gtile { animation: ic-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
.send:not(:disabled):not(.busy):hover svg { animation: nudge-u .45s ease; }
.gen-btn:hover span svg, .chip.model:hover .glyph, .modelset:hover .glyph { animation: spin-q .6s cubic-bezier(.34, 1.56, .64, 1); }
.try:hover svg, .see-all:hover { animation: nudge-r .45s ease; }
.hero-key { animation: key-float 6s ease-in-out infinite; }
.attach button:hover svg, .sq32:hover svg { animation: spin-q .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes ic-pop { 0% { transform: none; } 40% { transform: scale(1.14) rotate(-8deg); } 70% { transform: scale(.96) rotate(3deg); } 100% { transform: none; } }
@keyframes nudge-u { 50% { transform: translateY(-3px); } }
@keyframes nudge-r { 50% { transform: translateX(3px); } }
@keyframes spin-q { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@keyframes key-float { 50% { transform: translateY(-5px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .thinking, .tcard.run .tc-t b { animation: none !important; color: var(--fg-2); background: none; }
}
