/* starhunters — the website's look: one electric-blue page, black rounded widgets on it, white words,
   one orange button for the thing to do next. Figtree everywhere, nothing glows. */
:root {
  --page: #0f3cff; --page-deep: #0b2fd6;
  --ink: #ffffff; --soft: #c9d4ff;
  --widget: #0b0b0b; --widget-2: #161616; --widget-3: #202020; --field: #3a3a3a; --hair: #222222;
  --w-ink: #ffffff; --w-muted: #9a9a9a; --w-text2: #c4c4c4;
  --accent: #f4511e; --accent-soft: rgba(244, 81, 30, 0.16); --accent-line: rgba(244, 81, 30, 0.55);
  --her: #1a4bff; --her-soft: rgba(26, 75, 255, 0.22); --fan: #2a2a2a;
  --online: #3ddc84; --star: #f5c042; --bad: #ff6b6b;
  --edge: clamp(20px, 2.6vw, 48px);
  --font: Figtree, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* the names the page's inline styles use */
  --text: var(--w-ink); --text2: var(--w-text2); --muted: var(--w-muted); --red: var(--bad); --cyan: var(--star); --pink: var(--accent);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14.5px/1.45 var(--font); display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 5px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── the bar: the site's glass capsule, always floating ── */
.top { position: relative; z-index: 2; flex: none; height: 60px; margin: 14px var(--edge) 0; padding: 0 10px 0 22px; display: flex; align-items: center; gap: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.11); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0) 100%); }
.top > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.brand-word::after { content: ".ai"; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink); background: transparent; border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; }
.tab:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.tab.on { background: var(--ink); color: var(--page); }
.tab .avatar { background: rgba(255, 255, 255, 0.18); border: 0; color: var(--ink); } .tab.on .avatar { background: var(--widget); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); flex: none; }
.dot.run { background: var(--online); animation: ring 2.4s ease-in-out infinite; }
.dot.busy { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.dot.warn { background: var(--star); } .dot.bad { background: var(--bad); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); } }
@keyframes pulse { 50% { opacity: 0.35; } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hub-state { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hub-state b { color: var(--ink); font-weight: 700; }
.hub-state.bad { color: #ffc4b3; }

.view { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: auto; }
.grid-bg { background-image: none; }
h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.panel .eyebrow, .total .eyebrow, .card .eyebrow, .col .eyebrow { color: var(--w-muted); }
.mono { font-family: var(--mono); }

/* ── all girls ── */
.models { padding: 32px var(--edge) 48px; min-height: 100%; }
.models-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.models-head p { margin: 6px 0 0; color: var(--soft); font-size: 16px; }
.models-head p a { color: var(--ink); font-weight: 600; }
.totals { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.total { min-width: 136px; padding: 12px 16px 14px; background: var(--widget); color: var(--w-ink); border-radius: 18px; }
.total b { display: block; margin-top: 2px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 18px; }
.card { background: var(--widget); color: var(--w-ink); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.live { box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.35); }
.card-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--widget-3); color: var(--w-ink); font-size: 18px; font-weight: 700; }
.card.live .avatar { box-shadow: 0 0 0 2px var(--online); }
.card-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.plat { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--widget-2); border-radius: 18px; container-type: inline-size; }
.plat-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.plat-top > :not(.plat-name):not(.plat-actions) { grid-column: 1 / -1; }
.plat.off { opacity: 0.55; }
.plat-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; font-size: 14px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border: 1px solid var(--field); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--w-text2); white-space: nowrap; }
.pill.run { border-color: rgba(61, 220, 132, 0.5); color: var(--online); }
.pill.busy { border-color: var(--accent-line); color: #ffb199; }
.pill.warn { border-color: rgba(245, 192, 66, 0.5); color: var(--star); } .pill.bad { border-color: rgba(255, 107, 107, 0.5); color: var(--bad); }
.plat-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 6px; }
.ps { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 10px 11px; overflow: hidden; background: var(--widget); border-radius: 12px; }
.ps b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; } .ps.star b { color: var(--star); }
.ps.star.n6 b { font-size: 18px; } .ps.star.n7 b { font-size: 16px; } .ps.star.n9 b { font-size: 13px; }
@container (max-width: 340px) { .ps { padding: 8px 6px 9px; } .ps b { font-size: 16px; } }
.star-emoji { font-style: normal; font-size: 0.82em; margin-right: 4px; vertical-align: 0.06em; }
.ps span { font-size: 12px; line-height: 1.3; color: var(--w-muted); } .ps i { font-style: normal; white-space: nowrap; }
@container (max-width: 540px) { .ps i.br { display: block; } } .ps i.up { color: var(--w-ink); }
.plat-ai { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--w-muted); white-space: nowrap; }
.plat-ai b { color: var(--w-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.plat-ai i { flex: 1; min-width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.plat-ai u { display: block; height: 100%; background: var(--w-ink); text-decoration: none; }
.plat-ai.near u { background: var(--star); } .plat-ai.full u { background: var(--accent); } .plat-ai.full b { color: #ffb199; }
.plat-note { grid-column: 1 / -1; font-size: 13px; color: var(--star); }
.plat-note.quiet { color: var(--w-muted); font-size: 12.5px; }
.plat-actions { display: flex; gap: 8px; align-items: center; }
.alerts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.plat .alert { padding: 6px 12px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert { padding: 9px 14px; border: 1px solid var(--field); border-radius: 12px; font-size: 13px; color: var(--w-text2); background: var(--widget-2); }
.alert.danger { background: var(--accent-soft); border-color: var(--accent-line); color: #ffd3c6; }
.alert.warn { background: rgba(245, 192, 66, 0.12); border-color: rgba(245, 192, 66, 0.5); color: #ffe6a8; }
.alert.care, .alert.info { background: var(--her-soft); border-color: rgba(26, 75, 255, 0.7); color: var(--soft); }
.card-links { margin-top: auto; display: grid; grid-template-columns: repeat(6, auto); gap: 6px; }
.card-links .btn { min-width: 0; padding: 0 10px; white-space: nowrap; }
@container (max-width: 540px) { .card-links { grid-template-columns: repeat(3, 1fr); } }

/* ── buttons: white says "a button", orange says "this one" ── */
.btn { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #0a0a0a; border: 1px solid transparent; border-radius: 12px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn.go { background: var(--accent); color: var(--ink); }
.btn.go:hover { background: #ff5d2a; }
.btn.ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, 0.28); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.btn.stop { background: transparent; color: #ffb199; border-color: var(--accent-line); }
.btn.stop:hover { background: var(--accent-soft); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(255, 107, 107, 0.5); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.btn.sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }

/* ── her chats: three black widgets side by side ── */
.work { height: 100%; display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; gap: 14px; padding: 14px var(--edge) 16px; }
.col { min-height: 0; display: flex; flex-direction: column; background: var(--widget); color: var(--w-ink); border-radius: 22px; overflow: hidden; }
.col.right { overflow: auto; padding: 16px; gap: 14px; }
.col.right:not(:has(.panel:not([hidden]))) { background: transparent; } /* no chat picked: no empty black box */
.col-head { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--hair); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; height: 38px; background: transparent; color: var(--w-text2); border: 1px solid var(--field); border-radius: 999px; font-size: 13px; font-weight: 600; }
.seg button.on { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.search { width: 100%; height: 44px; padding: 0 16px; background: transparent; color: var(--w-ink); border: 1px solid var(--field); border-radius: 999px; font: 14.5px var(--font); }
.search::placeholder { color: var(--w-muted); }
.search:focus { outline: none; border-color: var(--ink); }
.chatlist { flex: 1; min-height: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.chatrow { width: 100%; min-height: 66px; padding: 8px 10px; display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; border: 0; border-radius: 14px; color: inherit; }
.chatrow:hover { background: var(--widget-2); }
.chatrow.on { background: var(--her); }
.chatrow.on .chat-prev, .chatrow.on .chat-side, .chatrow.on .chat-name small, .chatrow.on .chat-side .tag-star, .chatrow.on .chat-side .tag-warn { color: var(--soft); }
.chatrow .avatar { width: 40px; height: 40px; font-size: 15px; }
.chatrow.human .avatar { box-shadow: 0 0 0 2px var(--accent); } .chatrow.warnrow .avatar { box-shadow: 0 0 0 2px var(--star); }
.chat-main { flex: 1; min-width: 0; }
.chat-name { font-weight: 700; } .chat-name small { font-weight: 400; color: var(--w-muted); margin-left: 6px; }
.chat-prev { font-size: 13px; color: var(--w-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-prev.ai { color: #9db3ff; } .chat-prev.hu { color: #ffb199; }
.chat-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11.5px; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.chat-side .tag-star { color: var(--star); } .chat-side .tag-warn { color: var(--star); } .chat-side .tag-bad { color: var(--bad); }

.convo { min-height: 0; display: flex; flex-direction: column; background: var(--widget); color: var(--w-ink); border-radius: 22px; overflow: hidden; }
.convo-head { height: 64px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.convo-head h2 { margin: 0; font-size: 17px; font-weight: 700; } .convo-head h2 small { font-size: 13px; font-weight: 400; color: var(--w-muted); margin-left: 6px; }
.convo-head .hub-state { color: var(--w-muted); }
.msgs { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 62%; display: flex; flex-direction: column; gap: 4px; }
.msg.in { align-self: flex-start; } .msg.out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; font-size: 15px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; background: var(--fan); border-radius: 14px; border-bottom-left-radius: 4px; }
.msg.out .bubble { background: var(--her); border-radius: 14px; border-bottom-right-radius: 4px; }
.msg.out.human .bubble { background: var(--ink); color: #0a0a0a; }
.meta { font-size: 11.5px; color: var(--w-muted); display: flex; gap: 8px; align-items: center; }
.locked { width: 260px; border-radius: 14px; overflow: hidden; background: var(--widget-2); border: 1px solid var(--field); }
.locked.paid { border-color: var(--star); }
.locked-art { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--widget-3); color: var(--w-text2); font-size: 12px; }
.locked-cap { padding: 9px 12px; font-size: 15px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--field); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--w-text2); }
.badge.paid { background: var(--star); border-color: var(--star); color: #0a0a0a; }
.badge.wait { border-color: rgba(245, 192, 66, 0.5); color: var(--star); }
.convo-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--hair); color: var(--w-text2); font-size: 13px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea.in { flex: 1; min-height: 46px; }
.empty { margin: auto; text-align: center; color: var(--w-muted); max-width: 420px; padding: 40px 20px; }
.empty h2 { font-size: 20px; font-weight: 700; color: var(--w-ink); margin: 0 0 8px; }
.empty a { color: var(--w-ink); font-weight: 600; }
.col.right .btn { width: 100%; }
.panel { padding: 18px; background: var(--widget); color: var(--w-ink); border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.fan-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border: 1px solid var(--field); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--w-text2); }
.chip.pink { background: var(--her); border-color: var(--her); color: var(--ink); } .chip.cyan { border-color: rgba(245, 192, 66, 0.5); color: var(--star); }
.chip.amber { border-color: rgba(245, 192, 66, 0.5); color: var(--star); } .chip.red { border-color: rgba(255, 107, 107, 0.5); color: var(--bad); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px 12px 13px; background: var(--widget-2); color: var(--w-ink); border-radius: 14px; }
.stat span { display: block; font-size: 11.5px; color: var(--w-muted); } .stat b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; } .stat b.cy { color: var(--star); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .kv span { color: var(--w-text2); }

/* ── pages ── */
.page { padding: 32px var(--edge) 48px; min-height: 100%; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .page-head p { flex: 1 1 100%; margin: 0; color: var(--soft); font-size: 15px; max-width: 70ch; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.page .pill { border-color: rgba(255, 255, 255, 0.35); color: var(--ink); } .page .pill.run { border-color: var(--online); color: var(--ink); } .page .pill.warn { border-color: var(--star); color: var(--ink); } .page .pill.bad { border-color: var(--bad); color: #ffd0d0; }
.page > .alert { background: var(--widget); }
.page .panel { gap: 12px; }
.page .panel + .panel { margin-top: 0; }
.page .panel a { color: var(--w-ink); font-weight: 600; }
.log { flex: 1; min-height: 300px; margin: 0; padding: 16px; overflow: auto; background: var(--widget-2); border-radius: 14px; font: 12.5px/1.55 var(--mono); color: var(--w-text2); white-space: pre-wrap; word-break: break-word; }
.log .l-sale { color: var(--star); } .log .l-bad { color: var(--bad); } .log .l-warn { color: var(--star); } .log .l-hub { color: #9db3ff; } .log .l-in { color: var(--w-ink); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles .stat { background: var(--widget); padding: 16px 18px 18px; border-radius: 18px; } .tiles .stat span { font-size: 12.5px; margin-bottom: 4px; } .tiles .stat b { font-size: 24px; letter-spacing: -0.02em; white-space: nowrap; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-head h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 700; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--field); display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: var(--w-muted); }
.step-n.done { background: var(--online); border-color: var(--online); color: #0a0a0a; }
.step-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.live-note { font-size: 12.5px; color: var(--w-muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.err { color: #ffb3a7; font-size: 13px; min-height: 1.3em; white-space: pre-wrap; }
.err.good { color: var(--online); }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: s; color: var(--w-text2); font-size: 13.5px; }
.howto li { display: flex; gap: 10px; align-items: flex-start; }
.howto li::before { counter-increment: s; content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--widget-3); font-size: 11.5px; font-weight: 700; color: var(--w-ink); display: inline-flex; align-items: center; justify-content: center; }
.howto b { color: var(--w-ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--w-text2); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.in { width: 100%; height: 44px; padding: 0 14px; background: var(--widget-2); color: var(--w-ink); border: 1px solid var(--field); border-radius: 12px; font: 15px var(--font); }
.in::placeholder { color: #6f6f6f; }
.in:focus { outline: none; border-color: var(--ink); }
select.in { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
textarea.in { height: auto; min-height: 78px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
.in.code { font-size: 28px; font-weight: 700; letter-spacing: 0.3em; text-align: center; height: 60px; font-variant-numeric: tabular-nums; }
.vrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) 110px auto auto auto; gap: 10px; align-items: center; padding: 8px 12px; background: var(--widget-2); border-radius: 14px; }
.vrow .kind { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--widget-3); border-radius: 50%; }
.vrow .in { height: 36px; font-size: 14px; background: var(--widget); border-radius: 10px; }
.vrow .teaser { font-size: 12.5px; color: var(--w-text2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.vrow .teaser input { accent-color: var(--accent); }
.vrow .tools { display: flex; gap: 4px; }
.vrow .tools .btn { width: 32px; padding: 0; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pack { cursor: pointer; border: 2px solid transparent; padding: 14px 16px 16px; border-radius: 16px; }
.pack:hover { border-color: var(--field); }
.pack.on { border-color: var(--accent); }
.pack b { font-size: 24px; letter-spacing: -0.02em; } .pack b.cy { color: var(--w-ink); } .pack span { font-size: 13px; }
.history { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--w-text2); font-variant-numeric: tabular-nums; }
.history div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--hair); }
details summary.eyebrow { cursor: pointer; list-style: none; } details summary.eyebrow::-webkit-details-marker { display: none; } details summary.eyebrow::before { content: "+ "; } details[open] summary.eyebrow::before { content: "– "; }

/* ── first run and log in: one black widget in the middle of the blue ── */
.auth { max-width: 480px; margin: 64px auto; padding: 0 20px; }
.auth .brand { justify-content: center; margin-bottom: 26px; font-size: 26px; }
.auth .brand-mark { width: 26px; height: 26px; }
.auth .panel { padding: 24px; border-radius: 26px; }
.auth h1 { font-size: 26px; margin: 4px 0 6px; }
.auth p { color: var(--w-text2); margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.auth a:not(.btn) { color: var(--w-ink); font-weight: 600; }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: 14px; }
.auth-foot .site-link { color: var(--ink); opacity: 0.8; text-decoration: none; }
.auth-foot .site-link:hover { opacity: 1; text-decoration: underline; }

/* the 8-bit girl at her PC, part of the blue, behind everything */
.mascot { position: fixed; right: 0; bottom: -6px; width: 360px; z-index: 0; opacity: 0.92; pointer-events: none; animation: mascotFloat 7s ease-in-out infinite; -webkit-mask-image: radial-gradient(ellipse 62% 66% at 56% 58%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 66% at 56% 58%, #000 52%, transparent 100%); }
.mascot.small { width: 220px; opacity: 0.7; }
.mascot-glow { position: absolute; inset: -10% -6% -4%; z-index: -1; filter: blur(18px); animation: mascotGlow 3.2s ease-in-out infinite; background: radial-gradient(ellipse at 30% 34%, rgba(255, 255, 255, 0.28), transparent 50%); }
.mascot-frame { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.mascot-frame.f2 { position: absolute; left: 0; top: 0; opacity: 0; }
.mascot.typing .f1 { animation: mascotA 0.46s steps(1, end) infinite; }
.mascot.typing .f2 { animation: mascotB 0.46s steps(1, end) infinite; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mascotGlow { 50% { opacity: 0.5; } }
@keyframes mascotA { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes mascotB { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: 640px; padding: 12px 18px; background: var(--widget); color: var(--w-ink); border-radius: 14px; box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.toast.show { opacity: 1; }

@media (max-width: 1100px) { .work { grid-template-columns: 280px minmax(0, 1fr); } .col.right { display: none; } .cards { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .top { margin: 10px 16px 0; padding-left: 16px; }
  .work { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(360px, 1fr) auto; padding: 10px 16px 12px; }
  .col.left { max-height: 40vh; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .packs { grid-template-columns: minmax(0, 1fr); }
  .vrow { grid-template-columns: 36px minmax(0, 1fr); } .vrow .teaser, .vrow .tools, .vrow .price, .vrow .v-switch { grid-column: 2; }
  .mascot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mascot, .mascot-glow, .mascot.typing .f1, .mascot.typing .f2, .dot.run, .dot.busy { animation: none; } .btn { transition: none; } }

/* a phone: the bar becomes two rows (name and buttons, then the tabs scrolling sideways); the meter lives on the home page anyway */
@media (max-width: 760px) {
  .top { height: auto; flex-wrap: wrap; gap: 8px 12px; margin: 10px 12px 0; padding: 10px 10px 10px 16px; border-radius: 24px; }
  .nav { order: 3; flex: 1 1 100%; gap: 2px; }
  .hub-state { display: none; }
  .top-right { gap: 6px; }
  .btn.sm { padding: 0 10px; }
  .models, .page { padding-left: 16px; padding-right: 16px; }
  .work { padding-left: 12px; padding-right: 12px; }
}

/* ── her settings, her story, her numbers, the account (the control app's pages, in the site's clothes) ── */
.settings, .story { max-width: 1100px; } .stats { max-width: 1180px; }
.s-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .s-title h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 700; }
.s-rows { display: flex; flex-direction: column; }
.s-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); } .s-rows .s-row:first-child { border-top: 0; }
.s-row > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .s-row b { font-size: 14px; } .s-row small { font-size: 12.5px; line-height: 1.4; color: var(--w-muted); }
.s-range { flex: none; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--w-text2); white-space: nowrap; font-variant-numeric: tabular-nums; } .s-range .in { width: 76px; height: 40px; text-align: center; padding: 0 8px; }
.s-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; padding: 2px; }
.s-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 12px; font: 500 12.5px var(--font); color: var(--w-text2); background: transparent; border: 1px solid var(--field); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.s-chip i { font-style: normal; font-size: 14px; line-height: 1; color: var(--w-muted); } .s-chip:hover { border-color: var(--ink); color: var(--w-ink); } .s-chip input { accent-color: var(--accent); margin: 0; }
.v-switch { flex: none; height: 34px; padding: 0 4px 0 0; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--w-muted); font: 600 12.5px var(--font); white-space: nowrap; cursor: pointer; }
.v-switch i { flex: none; position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--widget-3); border: 1px solid var(--field); transition: background 0.15s, border-color 0.15s; }
.v-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--w-muted); transition: transform 0.15s, background 0.15s; }
.v-switch.on { color: var(--w-ink); } .v-switch.on i { background: var(--online); border-color: var(--online); } .v-switch.on i::after { transform: translateX(14px); background: #0a0a0a; }
.v-switch:hover { transform: none; box-shadow: none; }
.story-grid { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 22px; align-items: start; }
.story-preview { position: relative; width: 225px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--widget); color: var(--w-ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.story-preview.empty { border: 1px dashed rgba(255, 255, 255, 0.45); color: var(--w-muted); padding: 16px; } .story-preview.empty b { color: var(--w-ink); } .story-preview small { font-size: 12px; line-height: 1.4; }
.story-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-preview span { position: absolute; left: 10px; right: 10px; bottom: 16%; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; line-height: 1.3; }
.story-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; background: var(--widget); color: var(--w-ink); border-radius: 22px; }
.story-ideas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.story-idea { padding: 6px 12px; border: 1px solid var(--field); border-radius: 999px; background: transparent; color: var(--w-text2); font-size: 13px; cursor: pointer; text-align: left; }
.story-idea:hover { border-color: var(--ink); color: var(--w-ink); } .story-idea.on { border-color: var(--accent); color: var(--w-ink); background: var(--accent-soft); }
.story-list { display: flex; flex-direction: column; gap: 8px; }
.story-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--widget-2); border-radius: 14px; } .story-item.dim { opacity: 0.6; }
.story-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .story-item small { color: var(--w-muted); font-size: 12.5px; }
.st-period { flex: none; }
.page .seg { flex: none; } .page .seg button { flex: none; height: 36px; padding: 0 14px; border-color: rgba(255, 255, 255, 0.35); color: var(--ink); } .page .seg button.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.st-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--widget); color: var(--w-ink); border-radius: 18px; }
.st-tile span { font-size: 12.5px; color: var(--w-muted); } .st-tile b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.st-tile small { font-size: 12px; color: var(--w-muted); line-height: 1.35; } .st-tile.lead { grid-column: span 2; } .st-tile.lead > b { font-size: 34px; color: var(--star); }
.st-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.st-funnel { display: flex; flex-direction: column; gap: 10px; }
.st-frow { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; align-items: center; gap: 12px; font-size: 13px; }
.st-flabel { color: var(--w-ink); } .st-fpct { color: var(--w-muted); font-size: 12.5px; text-align: right; }
.st-ftrack { display: flex; align-items: center; gap: 8px; min-width: 0; } .st-ftrack i { display: block; height: 18px; min-width: 2px; background: var(--star); border-radius: 0 6px 6px 0; }
.st-ftrack b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-plot { display: flex; gap: 10px; height: 190px; padding-top: 18px; }
.st-yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-bottom: 22px; font-size: 11px; color: var(--w-muted); min-width: 34px; font-variant-numeric: tabular-nums; }
.st-cols { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--field); margin-bottom: 22px; position: relative; }
.st-col { flex: 1; min-width: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.st-col i { display: block; width: 100%; max-width: 24px; min-height: 0; background: var(--star); border-radius: 4px 4px 0 0; }
.st-col:hover { background: rgba(255, 255, 255, 0.05); }
.st-col em { position: absolute; top: 100%; margin-top: 5px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--w-muted); white-space: nowrap; }
.st-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--w-ink); white-space: nowrap; }
.stx-stack { width: 100%; max-width: 26px; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 4px 4px 0 0; overflow: hidden; } .stx-stack i { display: block; min-height: 2px; max-width: none; border-radius: 0; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; } .st-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-muted); padding: 6px 10px 8px 0; }
.st-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--hair); vertical-align: middle; font-variant-numeric: tabular-nums; } .st-table a { font-weight: 600; }
.stx-list { display: flex; flex-direction: column; }
.stx-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); color: var(--w-ink); } .stx-list .stx-row:first-child { border-top: 0; }
.stx-row:hover { text-decoration: none; } .stx-row:hover .stx-who b { color: var(--c); }
.stx-ava { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--widget-3); box-shadow: 0 0 0 2px var(--c); font-size: 17px; font-weight: 700; }
.stx-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .stx-who b { font-size: 15px; font-weight: 700; } .stx-who small { font-size: 12.5px; color: var(--w-muted); }
.stx-bar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--widget-3); overflow: hidden; } .stx-bar u { display: block; height: 100%; background: var(--c); text-decoration: none; }
.stx-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .stx-amt b { font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; } .stx-amt small { font-size: 12px; color: var(--w-muted); }
.g-hint { color: var(--w-muted); font-size: 12.5px; }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } .s-row { flex-direction: column; align-items: flex-start; } .st-frow { grid-template-columns: 110px minmax(0, 1fr); } .st-fpct { display: none; } .st-tile.lead { grid-column: span 1; } }

/* a click on a word must never leave the browser's blinking caret behind (it sat in the brand); the fields keep theirs */
html { caret-color: transparent; }
input, textarea, select, [contenteditable] { caret-color: auto; }
.brand, .top, .nav, .eyebrow, .tab, .btn, .pill, .chip, .badge, h1, h2 { -webkit-user-select: none; user-select: none; }

/* ── the look switch: both looks declare the same transitions, so when one stylesheet replaces the other the colours
   and the corners glide to their new values instead of snapping ── */
body, .top, .brand, .card, .plat, .ps, .total, .panel, .stat, .col, .convo, .convo-head, .convo-foot, .bubble, .locked, .vrow, .st-tile, .story-item, .log, .alert, .hub-state, .meta, .eyebrow, h1, h2 { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, border-radius 0.45s ease; }
.tab, .btn, .pill, .chip, .badge, .chatrow, .in, .search, .seg button, .dot, .avatar, .v-switch i { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.45s ease, transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) { body, .top, .brand, .card, .plat, .ps, .total, .panel, .stat, .col, .convo, .bubble, .tab, .btn, .pill, .chip, .in, .chatrow { transition: none; } }

/* ── the easy setup: a checklist with one step open, the next thing to do in a line, the five types ── */
.next-line { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.next-line:empty { display: none; }
.step .step-head { cursor: pointer; }
.step .step-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.chev { flex: none; width: 9px; height: 9px; margin: 0 6px 4px 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: 0.55; transition: transform 0.2s ease; }
.step.open .chev { transform: rotate(45deg); margin-bottom: 0; }
.step:not(.open) .step-body { display: none; }
.step-why { margin: 0; color: var(--w-text2); font-size: 13.5px; line-height: 1.5; max-width: 80ch; }
.money .step-head { cursor: default; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.type { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left; background: var(--widget-2); border: 2px solid transparent; border-radius: 14px; color: var(--w-text2); cursor: pointer; font: inherit; }
.type b { color: var(--w-ink); font-size: 14px; } .type small { font-size: 12.5px; line-height: 1.4; }
.type:hover { border-color: var(--field); } .type.on { border-color: var(--accent); color: var(--w-ink); }
@media (max-width: 760px) { .step .step-head { flex-wrap: wrap; } .step .step-head h2 { flex: 1 1 auto; } .step .live-note { flex: 1 1 100%; order: 4; padding-left: 40px; } .step .chev { order: 3; margin-left: auto; } }

/* ── pictures from this device: the drop zone ── */
.drop { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px dashed rgba(255, 255, 255, 0.45); border-radius: 14px; cursor: pointer; color: var(--w-text2); }
.drop b { color: var(--w-ink); font-size: 14px; } .drop small { font-size: 12.5px; line-height: 1.45; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--ink); background: rgba(255, 255, 255, 0.06); outline: none; }

/* the same place for everything in both looks: the brand and the totals take a fixed width, so a wider typeface in
   the night look cannot push the tabs or the totals sideways */
.brand { width: 200px; flex: none; }
.auth .brand { width: auto; }
.total { width: 172px; min-width: 0; }

/* ── phones: the app as a control panel in one hand. Nothing here touches screens wider than the limits ── */
.only-phone { display: none; }
.c-back { flex: none; }
@media (max-width: 1100px) {
  /* the fan panel (pause her, send a picture, let her write) is a sheet that rises over the chat */
  .c-fanbtn { display: inline-flex; margin-left: auto; }
  .work.show-fan .col.right { display: flex; position: fixed; left: 8px; right: 8px; bottom: 0; max-height: 86%; z-index: 40; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45); }
  .work.show-fan::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 39; }
  .work.show-fan #c-fanclose { display: inline-flex; align-self: flex-end; }
  .convo-head .hub-state { display: none; }
}
@media (max-width: 900px) {
  /* one column at a time: the list, or the chat you picked */
  .work { grid-template-rows: minmax(0, 1fr); }
  .col.left { max-height: none; }
  .work:not(.has-chat) .convo { display: none; }
  .work.has-chat .col.left { display: none; }
  #c-back { display: inline-flex; }
  .convo-head { height: auto; min-height: 56px; padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .convo-head h2 { font-size: 16px; }
  .msgs { padding: 14px 12px; } .msg { max-width: 86%; }
  .convo-foot { padding: 10px 10px 12px; }
}
@media (max-width: 760px) {
  .brand { width: auto; font-size: 17px; } .brand-mark { width: 18px; height: 18px; }
  .top { padding: 8px 8px 8px 14px; gap: 6px 10px; }
  .top-right .btn.sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; }
  .nav { gap: 2px; padding: 2px 0; }
  .nav.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .tab { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .in, .search, select.in, textarea.in { font-size: 16px; } /* under 16 px, iPhones zoom into the field */
  .tiles { gap: 8px; } .tiles .stat { padding: 12px 14px 14px; } .tiles .stat b { white-space: normal; font-size: 20px; }
  .money .step-head h2 { flex: 1 1 auto; } .money .live-note { flex: 1 1 100%; order: 3; }
  .st-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .page-head .btn.sm { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .fan-name { font-size: 22px; }
}
@media (max-width: 420px) { .plat-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
