/* Swift reference and shared product tokens: docs/brand-guidelines.md. */
:root, :root[data-look] {
  --bg: #080808; --panel: #121212; --surface: #191919;
  --ink: #f5f5f5; --muted: #a1a1a1; --faint: #858585;
  --line: rgba(255, 255, 255, .12); --ring: #ff8a34; --chip: #202020;
  --green: #ff8a34; --green-ink: #120b05; --bad: #ff9c8b; --bar: #393939;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafafa; --panel: #f1f1f1; --surface: #fff;
  --ink: #141414; --muted: #626262; --faint: #707070;
  --line: rgba(0, 0, 0, .13); --ring: #b54708; --chip: #ececec;
  --green: #b54708; --green-ink: #fff; --bad: #b42318; --bar: #d4d4d4;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.err { color: var(--bad); font-size: 14px; margin: 10px 0 0; }
.err.center { text-align: center; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 21px; letter-spacing: -0.03em; }
.logo { color: var(--ink); --brand-outer: #f5efe6; --brand-inner: #fb923c; }
.brand-lockup { display: block; flex: none; max-width: 100%; height: auto; }
.brandpair { display: flex; align-items: center; gap: 18px; min-width: 0; }
.powered { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.powered .tel-lockup { display: block; height: 16px; width: auto; color: var(--ink); }
.powered:hover { color: var(--ink); }
.powered:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 3px; border-radius: 4px; }
.side .powered { margin: 10px 0 0; }
.creator-brand > .powered { margin-right: auto; }
@media (max-width: 640px) { .powered { font-size: 11px; gap: 5px; } .powered .tel-lockup { height: 14px; } .brandpair { flex-direction: column; align-items: flex-start; gap: 2px; } }
.brand-outer { fill: var(--brand-outer); }
.brand-inner { fill: var(--brand-inner); }
:root[data-theme="light"] .logo { --brand-outer: #c2410c; --brand-inner: #c2410c; }
.creator-left > .logo { margin-bottom: 18px; }
.bvideo-page > .logo { margin-top: 24px; }

/* ---------- Swift front page ---------- */
#front { isolation: isolate; }
#front::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(ellipse at 86% 5%, #ffffff0b, transparent 44%),
    linear-gradient(137deg, transparent 8%, #ffffff08 20%, #ffffff03 23%, transparent 23.5%, #ffffff07 24%, transparent 25%); }
.nav { max-width: 1200px; margin: 0 auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.nav .logo { font-size: 18px; font-weight: 600; }
.nav nav a { text-decoration: none; font-size: 13px; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.hero { position: relative; padding: 76px 32px 0; }
.hero-in { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pill { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.pill b { color: var(--green); font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
h1 { font-weight: 700; font-size: clamp(40px, 6vw, 82px); line-height: 1.05; letter-spacing: -.065em; margin: 0; text-align: center; }
h1 .l1, h1 .l2 { display: block; }
.green { color: var(--green); }
.sub { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 26px 0 32px; max-width: 840px; text-align: left; }
.field { position: relative; width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 24px #0002; border-radius: 999px; padding: 7px 7px 7px 24px; }
.field:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 16%, transparent); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: 14px; }
.field input::placeholder { color: var(--muted); }
.field .go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: var(--green-ink);
  display: grid; place-items: center; cursor: pointer; transition: filter .2s; }
.field .go:hover { filter: brightness(1.15); }
.field .go:disabled { opacity: .65; cursor: progress; }
.chips { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin: 17px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.chip::before { content: ""; width: 9px; height: 5px; border-bottom: 1.5px solid var(--green); border-left: 1.5px solid var(--green); transform: rotate(-45deg); margin-top: -3px; }
.under { margin: 16px 0 0; font-size: 14px; }
.under a { text-decoration: none; }
.under a:hover { text-decoration: underline; }
.fine { color: var(--faint); font-size: 13px; margin: 10px 0 0; max-width: 520px; text-align: left; }

/* The preview and the rows are drawn only from the chosen example's page (docs/creators.md, "The front page"). */
#front h1 { font-size: clamp(40px, 4.9vw, 68px); line-height: 1.02; }
#front .sub { max-width: 960px; }
.showcase { max-width: 1120px; margin: 64px auto 0; padding: 14px; border: 1px solid var(--line); border-radius: 24px;
  background: #0e0e0e; box-shadow: 0 40px 120px #0009; }
.fp-shot { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: 16px;
  background: var(--panel); border: 1px solid #ffffff0f; text-align: left; }
.fp-shot.one { grid-template-columns: minmax(0, 1fr); }
.fp-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fp-chan { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fp-chan img { border-radius: 50%; }
.fp-chan span { color: var(--muted); font-size: 13px; }
.fp-card { background: var(--surface); border: 1px solid #ffffff12; border-radius: 16px; padding: 18px; min-width: 0; }
.fp-moves { align-self: start; }
.fp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-lab { font-size: 12px; color: var(--muted); }
.fp-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fp-key i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--green); }
.fp-key i.fp-dont { border-top: 2px dashed var(--faint); margin-left: 8px; }
.fp-big { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fp-big span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.fp-card .bbranch { display: block; width: 100%; height: 120px; margin-top: 10px; overflow: visible; }
.fp-card .bbranch path { fill: none; vector-effect: non-scaling-stroke; }
.fp-card .bbranch-now { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fp-card .bbranch-past { stroke: var(--ink); stroke-width: 2; }
.fp-card .bbranch-dont { stroke: var(--faint); stroke-width: 2; stroke-dasharray: 5 5; }
.fp-card .bbranch-do { stroke: var(--green); stroke-width: 2.5; }
.fp-idea { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 8px; margin: 0 -8px;
  border-top: 1px solid #ffffff0f; border-radius: 12px; transition: background .2s; }
.fp-idea:hover { background: #ffffff08; }
.fp-idea img { transition: transform .35s ease; }
.fp-idea:hover img { transform: scale(1.05); }
.fp-row + .fp-idea, .fp-pic .fp-idea:first-child { border-top: 0; }
.fp-idea img, .fp-thumb { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; display: block; background: var(--bar); }
.fp-card, .fp-pic, .fp-steps li, .exchip { transition: border-color .2s, background .2s; }
.fp-card:hover, .fp-pic:hover, .fp-steps li:hover { border-color: #ffffff2b; }
.fp-in { animation: fp-rise .45s ease-out both; }
.fp-card .bbranch-do { animation: fp-draw 1s .15s ease-out both; }
@keyframes fp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fp-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.fp-idea b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.fp-num { color: var(--green); font-weight: 700; font-size: 15px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-num small { display: block; color: var(--faint); font-weight: 500; font-size: 11px; }
.fp-h { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.fp-move { padding: 12px 10px; margin: 0 -10px; border-top: 1px solid #ffffff0f; border-radius: 12px; cursor: pointer; transition: background .2s; }
.fp-move:hover, .fp-move.on { background: #ffffff08; }
.fp-move:hover + .fp-move, .fp-move.on + .fp-move { border-top-color: transparent; }
.fp-h + .fp-move { border-top: 0; }
.fp-kind { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fp-mt { margin: 4px 0 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.fp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-chips span { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.fp-chips span.on { border-color: color-mix(in srgb, var(--green) 50%, transparent); color: var(--green); }
.fp-move .banswer { display: flex; gap: 6px; }
.fp-move .bans { position: relative; width: 32px; height: 32px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.fp-move .bans .anico { width: 16px; height: 16px; }
.fp-move .bans:hover { color: var(--ink); border-color: var(--muted); }
.fp-move .bans-do { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.fp-move .bans-do:hover, .fp-move .bans-do[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.fp-move .bans[aria-pressed="true"]:not(.bans-do) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fp-move [data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: var(--ink); color: var(--bg); font: 600 12px var(--sans); white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s, transform .12s, visibility 0s .12s; z-index: 5; }
.fp-move [data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .fp-move [data-tip]:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .12s .3s, transform .12s .3s, visibility 0s .3s; }
}
.fp-open { display: inline-block; margin: 14px 8px 4px; font-size: 13px; color: var(--muted); text-decoration: none; }
.fp-open:hover { color: var(--ink); }
.exchip { cursor: pointer; color: var(--ink); font: inherit; font-size: 14px; }
.exchip[aria-selected="true"] { border-color: var(--ring); }

.fp-sec { max-width: 1200px; margin: 0 auto; padding: 140px 40px 0; scroll-margin-top: 32px; }
.fp-sec h2, .fp-end h2 { font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; margin: 0; max-width: 14em; }
.fp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin: 72px 0 0; }
.fp-feature.flip .fp-pic { order: 2; }
.fp-pic { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; min-height: 300px; padding: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; }
.fp-txt h3 { font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; letter-spacing: -.04em; margin: 0; }
.fp-txt p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 16px 0 0; max-width: 27em; text-align: left; }
.fp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.fp-cell { background: var(--surface); border: 1px solid #ffffff12; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fp-cell b { color: var(--green); font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.fp-typed { margin: 0 0 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-chat p { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.5; max-width: 86%; }
.fp-chat p.me { align-self: flex-end; background: #232323; border-radius: 14px 14px 4px 14px; animation: fp-rise .35s ease-out both; }
.fp-chat p.it { background: var(--surface); border: 1px solid #ffffff12; border-radius: 14px 14px 14px 4px; color: #d6d6d6;
  animation: fp-rise .4s 1.3s ease-out both; }
.fp-chat .dots { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; background: var(--surface); border-radius: 14px;
  overflow: hidden; animation: fp-gone .25s 1.15s forwards; }
.fp-chat .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: fp-dot 1s infinite; }
.fp-chat .dots i:nth-child(2) { animation-delay: .15s; }
.fp-chat .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fp-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes fp-gone { to { opacity: 0; height: 0; padding-top: 0; padding-bottom: 0; margin: -6px 0; } }
.fp-chat i { display: block; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid #ffffff12; }
.fp-chat i.me { align-self: flex-end; width: 62%; background: #232323; border-radius: 14px 14px 4px 14px; }
.fp-chat i.it { width: 86%; height: 76px; border-radius: 14px 14px 14px 4px; }
.fp-chat i.short { width: 54%; height: 44px; }
.fp-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fp-steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.fp-steps .n { font: 13px var(--mono); color: var(--green); }
.fp-steps h3 { margin: 14px 0 0; font-size: 22px; letter-spacing: -.02em; font-weight: 700; }
.fp-steps p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.fp-end { max-width: 1120px; margin: 140px auto 0; padding: 72px 40px; border-radius: 28px; border: 1px solid var(--line); text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%), var(--panel); }
.fp-end h2 { max-width: none; }
.fp-end .field { margin: 32px auto 0; }
.picture-shape { padding: 20px; opacity: .8; }
.picture-shape i { display: block; height: 14px; margin: 20px 0; width: 85%; border-radius: 6px; background: var(--bar); }
.picture-shape i:nth-child(2) { width: 65%; }
.picture-shape i:nth-child(3) { width: 48%; background: var(--green); }
.picture-shape i:nth-child(4) { width: 32%; }
.foot { max-width: 1120px; margin: 96px auto 0; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .made { display: inline-flex; align-items: center; gap: 7px; }
.foot .made .tel-lockup { display: block; height: 14px; width: auto; color: var(--ink); }
@media (max-width: 760px) {
  .nav { padding: 20px; margin: 0 4px; }
  .nav .logo { font-size: 16px; }
  .hero { padding: 48px 16px 0; }
  .hero-in { align-items: flex-start; text-align: left; }
  #front h1 { font-size: clamp(36px, 10vw, 46px); letter-spacing: -.05em; text-align: left; }
  .sub { font-size: 15px; margin: 20px 0 24px; text-align: left; }
  .chips { justify-content: flex-start; }
  .field { padding-left: 17px; }
  .field input { font-size: 16px; }
  .field input::placeholder { font-size: 12px; }
  .pill { font-size: 11px; margin-bottom: 20px; }
  .showcase { margin: 40px 12px 0; padding: 8px; border-radius: 18px; }
  .fp-shot { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .fp-idea { grid-template-columns: 88px minmax(0, 1fr); }
  .fp-idea img, .fp-idea .fp-thumb { width: 88px; height: 50px; }
  .fp-idea .fp-num { grid-column: 2; text-align: left; }
  .fp-sec { padding: 88px 16px 0; }
  .fp-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; }
  .fp-feature.flip .fp-pic { order: 0; }
  .fp-pic { min-height: 0; padding: 18px; border-radius: 20px; }
  .fp-txt p { font-size: 16px; }
  .fp-steps { grid-template-columns: minmax(0, 1fr); }
  .fp-end { margin: 88px 16px 0; padding: 48px 20px; text-align: left; }
  .fp-end .field { margin-left: 0; }
  .foot { margin: 64px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-in, .fp-card .bbranch-do, .fp-chat p.me, .fp-chat p.it, .fp-chat .dots i { animation: none; }
  .fp-chat .dots { display: none; }
  .fp-card, .fp-pic, .fp-steps li, .exchip, .fp-idea, .fp-idea img, .fp-move, .fp-move .bans { transition: none; }
  .fp-idea:hover img { transform: none; }
}

/* ---------- the page (explee's workspace) ---------- */
.app { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 14px 14px 32px; background: var(--panel); }
.side .logo { padding: 2px 0 14px; border-bottom: 1px solid var(--line); width: 100%; }
.log { list-style: none; margin: 14px 0 0; padding: 0; font: 12.5px/1.9 var(--mono); color: var(--muted); }
.log li::before { content: "\2713  "; color: var(--green); }
.log li.now::before { content: "\203a  "; color: var(--ink); }
.log li.now { color: var(--ink); }
.log li.now::after { content: ""; display: inline-block; width: 7px; height: 13px; background: var(--ink); margin-left: 3px;
  vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chan { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.chan img { border-radius: 50%; background: var(--line); }
.chan span { color: var(--muted); }
.group { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.label .count { color: var(--faint); }
.label .new { margin-left: auto; text-transform: none; letter-spacing: 0; font: 500 12.5px var(--sans); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.rows, .recent { list-style: none; margin: 0; padding: 0; }
.rows button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px 8px; margin: 0 0 6px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.rows button.on { border-color: var(--ring); box-shadow: 0 0 0 1px var(--ring); }
.rows .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.rows .bar { grid-column: 1 / -1; height: 2px; background: transparent; }
.rows .bar i { display: block; height: 2px; width: calc(var(--w, 0) * 100%); background: var(--muted); border-radius: 2px; transition: width .6s ease; }
.rows .top .bar i { background: var(--green); }
.rows .dim { color: var(--faint); }
.recent li { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--chip); margin: 0 0 4px; }
.recent .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .v { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.record { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }

.main { min-width: 0; }
.cta { background: var(--green); color: var(--green-ink); border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cta:disabled { opacity: .6; cursor: progress; }
.cta.big { padding: 12px 22px; margin-top: 6px; }

.steps { list-style: none; display: flex; align-items: center; margin: 0; padding: 28px 36px 8px; }
.steps li { display: flex; align-items: center; flex: 1; min-width: 0; }
.steps li:last-child { flex: none; }
.steps .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center;
  font: 600 11.5px/1 var(--sans); color: var(--muted); }
.steps .done .dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps .line { flex: 1; height: 1px; background: var(--line); margin: 0 10px; min-width: 12px; }
.steps .curpill { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.steps .curpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.stage { padding: 36px 20px 64px; display: flex; flex-direction: column; align-items: center; }
.card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; }
.card-h { font-weight: 400; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 16px; }
.ask label { display: block; font-size: 13.5px; font-weight: 500; margin: 0 0 6px; }
.field.small { max-width: none; margin: 0 0 16px; padding-left: 14px; }
.field.small input { padding: 10px 0; }
.pair { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin: 0 0 16px; }
.pair input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }

.fc .head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fc .ttl { font-weight: 500; font-size: 16px; margin: 0; }
.fc .num { font-size: 56px; line-height: 1; letter-spacing: -0.03em; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.fc .num.dim { color: var(--muted); }
.fc .state { color: var(--muted); font-size: 14px; margin: 0; }
.fc .state b { color: var(--ink); font-weight: 600; }
.fc .who { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font: 12.5px/1.6 var(--mono); }
.fc .who li { margin: 0 0 8px; color: var(--muted); }
.fc .who li b { color: var(--ink); font-weight: 500; }
.fc .who li.wait::before { content: "\203a  "; color: var(--ink); }
.fc .who li.done::before { content: "\2713  "; color: var(--green); }
.fc .why { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--muted); padding-left: 2.2ch; }
.fc .foot-row { margin: 14px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.pubform { display: flex; gap: 8px; margin: 12px 0 0; }
.pubform input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.above { color: var(--green); font-weight: 600; }
.below { color: var(--bad); font-weight: 600; }


@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .main { order: -1; }
  .side { border-right: 0; border-top: 1px solid var(--line); }
  .steps { padding: 18px 16px 0; }
  .steps li:not(.cur) { display: none; }
  .steps li.cur .line { display: none; }
  .stage { padding: 18px 12px 48px; }
  .fc .num { font-size: 44px; }
  .pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .log li.now::after { animation: none; }
  .rows .bar i { transition: none; }
}

/* ---------- the analysis flow (docs/creators.md section 1, "The page") ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--chip); }
.banner .b1 { margin: 0; font-weight: 600; font-size: 17px; }
.banner .b2 { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.stepsrow { display: flex; align-items: center; gap: 24px; padding: 22px 28px 0; flex-wrap: wrap; }
.stepsrow .steps { flex: 1 1 420px; padding: 0; }
.tour-result { color: var(--green); padding: 12px 4px; font-weight: 600; text-underline-offset: 4px; }
.steps .stepbtn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.steps .stepbtn:disabled { cursor: default; }
.steps .stepbtn.dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center;
  font: 600 11.5px/1 var(--sans); color: var(--muted); flex: none; }
.steps .done .stepbtn.dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps .stepbtn.curpill { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.steps .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.next { color: var(--muted); font-size: 13px; }
.next .label { margin: 0 0 6px; }
.next div { display: flex; gap: 18px; }
.next span { display: inline-flex; align-items: center; gap: 6px; }
.next i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--faint); display: grid; place-items: center;
  font-size: 11px; font-weight: 600; }
.working { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.stage { gap: 14px; }
.stage > .card, .stage > .ideas, .stage > .evaluate { width: 100%; max-width: 820px; }
.card.waiting { max-width: 560px; }
.card.waiting .now::after { content: ""; display: inline-block; width: 7px; height: 13px; background: var(--ink); margin-left: 3px;
  vertical-align: -2px; animation: blink 1s steps(2) infinite; }

.nums { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nums li { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 14px; }
.nums b { font-weight: 600; }
.cta.wide { display: block; text-align: center; text-decoration: none; }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.ok { margin: 0 0 4px; font-size: 14px; color: var(--green); font-weight: 600; }
.note { margin: 0 0 10px; font-size: 13.5px; }

/* the step 1 card */
.found .fhead { display: flex; align-items: center; gap: 12px; }
.found img { border-radius: 50%; }
.found .fwho { flex: 1; min-width: 0; }
.found .fname { margin: 0; font-weight: 600; }
.fsub { margin: 0; color: var(--muted); font-size: 14px; }
.badge { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.found .fdesc { color: var(--muted); margin: 14px 0 0; }
.minigraph { margin: 16px 0 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

/* graphs */
.graphcard { padding: 18px 20px; }
.ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gtitle { font-weight: 500; font-size: 16px; }
.gbig { font-size: 30px; letter-spacing: -0.03em; }
.gsub { color: var(--muted); font-size: 14px; }
.gfoot { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
svg.graph { display: block; margin-top: 8px; overflow: visible; }
svg.graph .axis, svg.dist .axis { stroke: var(--line); }
svg.graph .split { stroke: var(--line); stroke-dasharray: 3 3; }
svg.graph .bar { fill: var(--bar); }
svg.graph .dot { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
svg.graph .dot.hi { stroke: var(--green); stroke-width: 2.2; }
svg.graph .est { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 6 4; }
svg.graph .estdot { fill: var(--green); }
svg.graph .hist { fill: none; stroke: var(--ink); stroke-width: 2; }
svg.graph .histfill { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
svg.graph .now { fill: var(--ink); }
svg .tick { fill: var(--muted); font: 12px var(--sans); }
svg .val { fill: var(--ink); font: 500 12px var(--sans); }

/* distributions */
svg.dist { display: block; }
svg.dist .b90 { fill: color-mix(in srgb, var(--green) 15%, transparent); }
svg.dist .b50 { fill: color-mix(in srgb, var(--green) 34%, transparent); }
svg.dist .curve { fill: none; stroke: var(--green); stroke-width: 2; }
svg.dist .mid { stroke: var(--ink); stroke-width: 1.4; }
svg.dist .midlabel { fill: var(--ink); font: 600 12.5px var(--sans); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.legend .k50 { background: color-mix(in srgb, var(--green) 45%, transparent); }
.legend .k90 { background: color-mix(in srgb, var(--green) 18%, transparent); }

/* step 3: idea cards */
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card.idea { padding: 18px; }
.card.idea.top { border-color: var(--ring); box-shadow: 0 0 0 1px var(--ring); }
.ihead { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ititle { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.inum { font-size: 26px; letter-spacing: -0.02em; white-space: nowrap; }
.inum.dim { color: var(--muted); }
.iwhy { margin: 8px 0 6px; font-size: 14px; color: var(--muted); }
.irange { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }

/* step 4: the resting screen (C) */
.evaluate { display: flex; flex-direction: column; align-items: center; }
.evaluate .eh { font-weight: 400; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 22px; text-align: center; }
.field.big { max-width: 640px; }
.more { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.more label { display: flex; align-items: center; gap: 6px; }
.more input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.more #minutes { width: 70px; }
.lhead { width: 100%; max-width: 760px; display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 10px; }
.lhead .lt { font-size: 22px; letter-spacing: -0.02em; }
.rank { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 760px; }
.rrow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin-bottom: 8px; font: inherit; color: inherit; }
button.rrow { cursor: pointer; }
.rrow .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .v { font-size: 22px; letter-spacing: -0.02em; grid-row: span 2; }
.rrow .bar { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.rrow .bar i { display: block; height: 4px; border-radius: 2px; width: calc(var(--w, 0) * 100%); background: var(--muted); transition: width .6s ease; }
.rrow.top .bar i { background: var(--green); }
.rrow.dim { color: var(--muted); }
.side .rrow { padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; font-size: 14px; }
.side .rrow .v { font-size: 14px; font-weight: 600; }
.side .rrow .bar, .side .rrow .bar i { height: 2px; }
.detail { width: 100%; max-width: 640px; margin-top: 26px; }
.detail .dtitle { margin: 10px 0 0; font-weight: 600; font-size: 17px; }
.detail .dnum { margin: 14px 0 0; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.detail .dnum.dim { color: var(--muted); }
.detail .dsub, .detail .drank, .detail .dstate { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.detail .dstate b { color: var(--ink); }
.detail svg.dist { margin-top: 14px; }
.detail .fl { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail .frow { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.detail .frow b { color: var(--ink); }
.pic-t { margin: 0 0 6px; font-weight: 500; }
@media (max-width: 860px) {
  .ideas { grid-template-columns: minmax(0, 1fr); }
  .stepsrow { padding: 16px 14px 0; }
  .next { display: none; }
  .detail .dnum { font-size: 44px; }
}
.nums small { color: var(--muted); font-size: 12.5px; }
.tag { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius: 6px; padding: 3px 6px; vertical-align: 2px; }

/* the deeper run (docs/creators.md section 3b, "The run") */
.summary { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.simside { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.simside li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 13px; }
.fdesc.strong { color: var(--ink); font-size: 16px; }
.facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding-left: 18px; }
.facts li { margin: 0 0 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; }
.topics .label { margin: 0 6px 0 0; }
.topics .chip { font-size: 13.5px; padding: 3px 10px; }
.card.similar { padding: 18px 20px; }
.simgrid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.simgrid li { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.simgrid a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.simgrid img { border-radius: 50%; flex: none; }
.simgrid .sname { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simgrid .ssubs { color: var(--muted); font-size: 13px; white-space: nowrap; }
.simgrid .swhy { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.near li { background: var(--chip); }
.card.metric .ititle { font-size: 18px; }
svg.graph .band { fill: color-mix(in srgb, var(--green) 18%, transparent); }
svg.graph .median { fill: none; stroke: var(--green); stroke-width: 2.2; }
svg.graph .hdot { fill: var(--ink); }
svg.graph .hdot.est { fill: var(--bar); }
.card.waiting { max-width: 640px; }
.log.inline { margin: 0 0 16px; }
.howcard { border-top: 1px solid var(--line); padding-top: 14px; }
.howcard p { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 860px) {
  .simgrid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
.steps li.cur { flex: 0 1 auto; }
.steps li.cur + li, .steps li { min-width: 0; }
.steps li.cur .line { flex: 1 1 24px; min-width: 24px; }
.steps li:has(+ li.cur) { flex: 1 1 0; }
svg.graph .hdot.est { fill: color-mix(in srgb, var(--ink) 30%, transparent); stroke: none; }
svg.graph .hdot { stroke: none; }
.examples { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 12px; max-width: 100%; }
.examples > span { color: var(--muted); }
.examples #example-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 600px) {
  .examples { display: block; width: 100%; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--bar) transparent; }
  .examples > span { display: block; text-align: left; margin-bottom: 12px; }
  .examples #example-chips { width: max-content; flex-wrap: nowrap; justify-content: flex-start; }
}
.exchip { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; }
.exchip:hover { border-color: var(--ring); }
.exchip img { border-radius: 50%; }

/* Legacy look parameters inherit the selected Swift direction. */
:root[data-look] .label, :root[data-look] .log, :root[data-look] .working { font-family: var(--mono); }

/* search suggestions under the field (section 1, "Search") */
.field { position: relative; }
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); z-index: 5; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(17,17,22,.22); text-align: left;
  max-height: min(360px, 50dvh, var(--suggest-space, 360px)); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.suggest.above { top: auto; bottom: calc(100% + 8px); }
.suggest li.in { animation: sgin .28s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes sgin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.suggest .looking { padding: 12px 10px 16px; margin: 4px; border-radius: 8px; cursor: progress; overflow: hidden; position: relative;
  color: var(--muted); font-size: 13px;
  background: var(--chip); }
.suggest .looking::after { content: ""; position: absolute; bottom: 0; height: 2px; width: 30%; background: var(--green);
  animation: sglook 1s ease-in-out infinite; }
@keyframes sglook { from { left: -30%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .suggest li.in, .suggest .looking::after { animation: none; } }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: var(--chip); }
.suggest img, .suggest .ini { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.suggest .ini { display: grid; place-items: center; background: var(--chip); color: var(--muted); font-weight: 600; }
.suggest .sgt { display: flex; flex-direction: column; min-width: 0; }
.suggest .sgt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sgt small { color: var(--muted); font-size: 12.5px; }
.field[aria-busy="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.field[aria-busy="true"] .go { opacity: 1; cursor: progress; }
.field[aria-busy="true"] .go svg { display: none; }
.field[aria-busy="true"] .go::after { content: ""; display: block; width: 18px; height: 18px; margin: auto;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: opening-spin .85s linear infinite; }
.start-status { width: 100%; max-width: 480px; margin-top: 16px; padding: 16px; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: left;
  animation: sgin .22s ease-out both; }
.opening-mark { width: 44px; height: 44px; flex: none; position: relative; display: grid; place-items: center;
  background: var(--chip); border-radius: 50%; }
.opening-mark::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--line);
  border-top-color: var(--green); border-radius: 50%; animation: opening-spin 1.5s linear infinite; }
.opening-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.opening-initial { font-family: var(--display, var(--sans)); font-size: 22px; color: var(--green); }
.opening-words { min-width: 0; display: grid; gap: 2px; }
.opening-words b { font-size: 14px; font-weight: 500; }
.opening-words > span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.invite label { font-size: 14px; font-weight: 500; }
.invite-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; }
.invite-row:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 16%, transparent); }
.invite-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; outline: none; font-size: 16px; color: inherit; }
.invite-row input::placeholder { color: var(--muted); }
.invite-go { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--green);
  color: var(--green-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.invite-go:disabled { opacity: .65; cursor: progress; }
.invite-go:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.invite .err { margin: 0; }
@keyframes opening-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .start-status, .opening-mark::after, .field[aria-busy="true"] .go::after { animation: none; }
}
.privacy { max-width: 680px; margin: 0 auto; padding: 48px 16px; }
.privacy p { color: var(--muted); }
.privacy p b { color: var(--ink); }
.admin h2 { font-size: 16px; margin: 28px 0 2px; }
.admin ul { list-style: none; padding: 0; margin: 8px 0; }
.admin li, .admin-acting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line, rgba(127,127,127,.2)); }
.admin form { margin: 0; }
.admin-invite { display: flex; gap: 8px; margin: 10px 0; }
.admin-invite input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line, rgba(127,127,127,.35)); background: none; color: var(--ink); }
.admin-made { display: grid; gap: 4px; margin: 10px 0; }
.admin-made b { font-size: 20px; letter-spacing: .02em; }
.admin-made span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.admin button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line, rgba(127,127,127,.35)); background: none; color: var(--ink); cursor: pointer; white-space: nowrap; }

/* ---------- motion (section 1, "The page"): parts fade and rise in turn, charts draw, numbers count ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 25%, transparent); } }
.rise { opacity: 0; animation: rise .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .35s); }
.pop { opacity: 0; animation: pop .45s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.6s + var(--i, 0) * .12s); }
svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) .5s forwards; }
svg .fade { opacity: 0; animation: fadein 1s ease 1.2s forwards; }
svg .pop { animation-delay: calc(1.4s + var(--i, 0) * .15s); transform-box: fill-box; transform-origin: center; }
svg.graph .bar { transform-box: fill-box; transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.log li.in { animation: rise .35s ease both; }
.steps .curpill .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.steps .curpill::before { display: none; }
.still .rise, .still .pop, .still svg .draw, .still svg .fade, .still svg .pop, .still svg.graph .bar { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .rise, .pop, svg .draw, svg .fade, svg .pop, svg.graph .bar, .log li.in, .steps .curpill .pdot { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
}
.bigcount { font: 600 44px/1 var(--mono); letter-spacing: -0.03em; color: var(--ink); margin: 6px 0 2px; }
.bigcap { margin: 0 0 12px; color: var(--muted); }

/* ---------- the dashboard ---------- */
.dash { max-width: 1120px; margin: 0 auto; padding: 32px 20px 64px; }
.dtop { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 10px 32px; align-items: start; }
.did { display: flex; gap: 16px; align-items: center; grid-column: 1; }
.did img { border-radius: 50%; }
.dname { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-align: left; }
.dsum { grid-column: 1; font-size: 18px; margin: 8px 0 0; max-width: 46em; }
.dmeta { grid-column: 1; color: var(--muted); }
.dmeta p { margin: 4px 0 10px; }
.dmeta b { color: var(--ink); font-weight: 600; }
.dan { grid-column: 2; grid-row: 1 / span 3; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.dan .cta { display: block; text-align: center; text-decoration: none; }
.dsec { margin: 44px 0 0; }
.dh { font-size: 26px; margin: 0 0 14px; letter-spacing: -0.02em; text-align: left; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dgrid.two { align-items: start; }
.dstack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gtitle.sub { margin: 16px 0 8px; text-align: left; }
.dash .card { max-width: none; }
.dstack .simgrid a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.dstack .simgrid img { grid-row: span 2; }
.dstack .simgrid .ssubs { grid-column: 2; font-size: 12px; }
.dstack .simgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dstack .near li { white-space: normal; }
.dstack .near .t { white-space: normal; }
.gright { display: inline-flex; align-items: baseline; gap: 6px; }
.gnow { font: 600 24px/1 var(--mono); }
.gfoot.strong { color: var(--ink); font-weight: 500; }
.works { margin: 10px 0 0; padding-left: 18px; }
.works li { margin: 0 0 8px; }
.dash .evaluate { align-items: stretch; }
.dash .evaluate .eh { font-size: clamp(26px, 3.4vw, 36px); text-align: left; margin: 0 0 16px; }
.dash .field.big { max-width: none; }
@media (max-width: 860px) {
  .dtop { grid-template-columns: minmax(0, 1fr); }
  .dan { grid-column: 1; grid-row: auto; }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .dstack .simgrid { grid-template-columns: minmax(0, 1fr); }
  .dash .recent li { flex-wrap: wrap; }
  .dash .recent .t { white-space: normal; flex-basis: 100%; }
}

/* ---------- Telarchy's number chart (telarchy-app src/style.css, .mchart / .nchart) ---------- */
.mchart { position: relative; margin-top: 8px; }
.mchart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.mchart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 1 4; }
.mchart-ylabel, .mchart-xlabel { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.mchart-ylabel { text-anchor: end; }
.mchart-xlabel { text-anchor: middle; }
.nchart-future { fill: var(--panel); }
.nchart-now { stroke: var(--muted); stroke-width: 1; }
.nchart-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 1.1s ease-out .15s both; }
.nchart-dot { fill: var(--ink); animation: fadein .4s ease-out 1.1s both; }
.nchart-call-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 5 4; }
svg .nchart-call-line.draw { stroke-dasharray: 1; }
.nchart-band { fill: color-mix(in srgb, var(--green) 12%, transparent); }
.nchart-marker line { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .55; }
.nchart-marker circle { fill: var(--green); stroke: var(--bg); stroke-width: 2; }
.nchart-marker text { fill: var(--green); font-family: var(--mono); font-size: 10px; font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 3.5px; }
.mchart-cross line { stroke: var(--bar); stroke-width: 1; }
.mchart-cross-mkt { fill: var(--green); stroke: var(--bg); stroke-width: 1.5; }
.mchart-cross-dot { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; }
.mchart-tip { position: absolute; top: 6px; transform: translateX(10px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: .4rem .6rem; font-size: .72rem; color: var(--muted); pointer-events: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(23, 23, 28, .06);
  animation: fadein .15s ease-out both; }
.mchart-tip.is-right { transform: translateX(calc(-100% - 10px)); }
.mchart-tip-date { font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.mchart-tip-v { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.mchart-tip-v--mkt { color: var(--green); }
.still .nchart-line, .still .nchart-dot { animation: none; stroke-dasharray: none; }

/* ---------- the channel and video pages (docs/workspaces.md, "The look") ---------- */
.dash.ws { max-width: none; padding: 0; }
.ws .wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; box-sizing: border-box; }
.cid { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.showall { display: block; margin: 16px auto 0; min-height: 44px; font-weight: 600; }
.vsec { padding: 52px 0 80px; }
.vsec .dh, .ws .dh { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.025em; }
.vform { display: flex; gap: 10px; margin: 20px 0 14px; }
.vfield { flex: 1; min-width: 0; box-sizing: border-box; height: 50px; border-radius: 999px; border: 1.5px solid var(--ink); padding: 0 20px; font: 16px var(--sans); background: var(--surface); color: var(--ink); }
.vform .cta { height: 50px; padding: 0 22px; white-space: nowrap; background: var(--green); color: var(--green-ink); border: 0; border-radius: 999px; font: 600 15px var(--sans); cursor: pointer; }
.vlist, .slist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vrow { display: grid; grid-template-columns: 132px minmax(0, 1fr) 120px 96px; gap: 18px; align-items: center; padding: 12px 14px; border-radius: 16px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.vrow:hover { background: var(--surface); border-color: var(--line); }
.vlist li:first-child .vrow.suggested { background: color-mix(in srgb, var(--green) 7%, var(--surface)); border-color: var(--green); }
.vthumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.vthumb.sugg, .vbig.sugg { box-sizing: border-box; padding: 8px; display: flex; align-items: flex-end; background: linear-gradient(135deg, #292524, #57534e); }
.vlist li:first-child .vthumb.sugg { background: linear-gradient(135deg, #b45309, #f59e0b); }
.vthumb.sugg span { font: 700 11px/1.15 var(--display); color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vmid { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vt { font-size: 15px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vchip { font: 600 11px var(--sans); border-radius: 999px; padding: 3px 9px; background: var(--chip); color: var(--muted); }
.vchip.suggested, .vchip.latest { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.vnum, .vex { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.vnum b { font-size: 22px; }
.vex b { font-size: 15px; }
.vnum b.hot, .vex b.hot { color: var(--green); }
.vnum .lbl, .vex .lbl { font-size: 12px; color: var(--muted); }
.wait { display: inline-flex; gap: 4px; padding: 8px 0; }
.wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .35; animation: waitdot 1.2s infinite; }
.wait i:nth-child(2) { animation-delay: .2s; } .wait i:nth-child(3) { animation-delay: .4s; }
@keyframes waitdot { 50% { opacity: 1; } }
.vnav { background: #17171c; padding: 14px 48px; }
.vback { display: inline-flex; align-items: center; gap: 10px; color: #fbf3e4; text-decoration: none; font: 500 14px var(--sans); }
.vback::before { content: "\2039"; font-size: 22px; line-height: 1; color: #f59e0b; }
.vback img { width: 26px; height: 26px; border-radius: 50%; }
.vtop { display: flex; gap: 26px; align-items: center; padding: 36px 0 0; }
.vbig { width: 240px; flex: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; }
.vbig.sugg { background: linear-gradient(135deg, #b45309, #f59e0b); }
.vbig.sugg { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 16px 18px; }
.vbig.sugg b { font-size: 44px; color: #fff; line-height: 1; }
.vbig.sugg span { font: 500 13px var(--sans); color: rgba(255, 255, 255, .85); margin-top: 6px; }
.vbig.sugg .wait i { background: #fff; }
.vtitle { min-width: 0; }
.vtitle .dname, :root[data-look] .vtitle .dname { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.vstats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.vstats div { display: flex; flex-direction: column; }
.vstats b { font-size: 22px; }
.vstats .lbl { font-size: 12px; color: var(--muted); }
.vcard { margin-top: 28px; padding: 24px 26px 14px; max-width: none; }
.vcard .gtitle { margin: 0 0 6px; }
.ws .dsec { margin: 44px 0 80px; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.srow .st { font-size: 15px; font-weight: 500; min-width: 0; }
.srow b { font-size: 20px; }
.srow.best { border-color: var(--green); background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.srow.best b { color: var(--green); }
@media (max-width: 720px) {
  .ws .wrap { padding: 0 16px; }
  .vrow { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 10px 8px; }
  .vrow .vex { grid-column: 2 / 4; flex-direction: row; justify-content: flex-start; gap: 8px; align-items: baseline; }
  .vrow .vex:empty { display: none; }
  .vt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .vnum b { font-size: 17px; }
  .vform .cta { padding: 0 16px; }
  .vnav { padding: 12px 16px; }
  .vtop { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 20px; }
  .vbig { width: 100%; }
  .vcard { padding: 16px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wait i { animation: none; }
  .wait i { opacity: .7; }
}

/* ---------- Telarchy's workspace charts, ported (telarchy-app src/style.css: .smc, .pubws-multiples, .mchart-*, .nchart-*) ---------- */
.chead.light { padding: 34px 0 8px; }
.cid { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cav { width: 52px; height: 52px; border-radius: 50%; }
.cname, :root[data-look] .cname { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.025em; margin: 0; color: var(--ink); line-height: 1.05; }
.can { margin-left: auto; font-size: 13px; color: var(--muted); }
.cnote { margin: 10px 0 0; color: var(--green); font-size: 14px; }
.ws .pubws-multiples { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem 1.4rem; margin-top: 1.4rem; }
.ws .smc { margin: 0; padding-top: 0.5rem; border-top: 1px solid var(--line); animation: dmv-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ws .pubws-multiples > .smc:nth-child(2) { animation-delay: 0.09s; }
.ws .pubws-multiples > .smc:nth-child(3) { animation-delay: 0.18s; }
.ws .pubws-multiples > .smc:nth-child(4) { animation-delay: 0.27s; }
.ws .smc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.ws .smc-name { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws .smc-change { white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.ws a.smc-connect { color: var(--green); font-weight: 600; text-decoration: none; }
.ws a.smc-connect:hover { text-decoration: underline; }
.ws .mchart { position: relative; margin: 0.3rem 0 0; }
.ws .mchart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.ws .mchart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 1 4; animation: mchart-appear 0.5s ease-out 0.1s both; }
.ws .mchart-ylabel, .ws .mchart-xlabel { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.ws .mchart-ylabel { text-anchor: end; }
.ws .mchart-xlabel { text-anchor: middle; }
.ws .nchart-future { fill: var(--panel); transform-box: fill-box; transform-origin: left center; animation: dmv-sweep 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.ws .nchart-now { stroke: var(--muted); stroke-width: 1; }
.ws .nchart-open { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.6; }
.ws .nchart-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: none; animation: mchart-appear 0.6s ease-out 0.15s both; }
.ws .nchart-dot { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: dmv-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) 0.9s both; }
.ws .nchart-empty { fill: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ws .nchart-future-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ws .nchart-future-line--call { stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 0.012 0.01; opacity: 0.85; animation: mchart-appear 0.6s ease-out 1s both; }
.ws .nchart-marker line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.6; transform-box: fill-box; transform-origin: center bottom; animation: dmv-grow-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both; }
.ws .nchart-marker.is-selected line { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: 1; }
.ws .nchart-marker circle { fill: var(--green); opacity: 1; stroke: var(--bg); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: dmv-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s both; }
.ws .nchart-marker.is-selected circle { animation-delay: 1.35s; }
.ws .nchart-date-chip rect { fill: var(--green); }
.ws .nchart-date-chip text { fill: var(--bg); font-weight: 600; }
.ws .mchart-cross line { stroke: var(--bar); stroke-width: 1; }
.ws .mchart-cross-mkt { fill: var(--green); stroke: var(--bg); stroke-width: 1.5; }
.ws .mchart-cross-dot { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; }
.ws .mchart-tip { position: absolute; top: 6px; transform: translateX(10px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.6rem; font-size: 0.72rem; color: var(--muted); pointer-events: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(23, 23, 28, 0.06); }
.ws .mchart-tip.is-right { transform: translateX(calc(-100% - 10px)); }
.ws .mchart-tip-date { font-weight: 600; color: var(--ink); margin-bottom: 0.15rem; }
.ws .mchart-tip-v { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.ws .mchart-tip-v--mkt { color: var(--ink); }
@keyframes mchart-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmv-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dmv-sweep { from { transform: scaleX(0); } to { transform: none; } }
@keyframes dmv-pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes dmv-grow-up { from { transform: scaleY(0); } to { transform: none; } }
@media (max-width: 700px) { .ws .pubws-multiples { grid-template-columns: minmax(0, 1fr); } .can { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ws .smc, .ws .mchart-grid, .ws .nchart-future, .ws .nchart-line, .ws .nchart-dot, .ws .nchart-future-line--call, .ws .nchart-marker line, .ws .nchart-marker circle { animation: none; }
}
.still .smc, .still .mchart-grid, .still .nchart-future, .still .nchart-line, .still .nchart-dot, .still .nchart-future-line--call, .still .nchart-marker line, .still .nchart-marker circle { animation: none; }
.vnav { background: transparent; border-bottom: 1px solid var(--line); }
.vback { color: var(--ink); }
.vcard .mchart { margin-top: 0.2rem; }
.vback::before { color: var(--green); }

/* a distribution book's ranges (docs/workspaces.md, "Distributions") */
.nchart-band90 { fill: rgba(180, 83, 9, .14); }
.nchart-band50 { fill: rgba(180, 83, 9, .32); }
.vrange { white-space: nowrap; }

/* ---------- the channel and video pages, design B (docs/workspaces.md, "The look") ---------- */
.dash.ws, .creator-shell, body:has(.dash.ws:not([hidden])), body:has(.creator-shell:not([hidden])) {
  --b-bg: var(--bg); --b-card: var(--panel); --b-line: var(--line); --b-ink: var(--ink);
  --b-text: var(--ink); --b-sub: var(--muted); --b-acc: var(--green); --b-error: var(--bad);
  --b-band: color-mix(in srgb, var(--green) 18%, var(--panel)); --b-ph: var(--surface); --b-dash: var(--bar);
  background: var(--b-bg); color: var(--b-text); font-family: var(--sans);
}
.dash.ws { min-height: 100vh; }
body:has(.dash.ws:not([hidden])), body:has(.creator-shell:not([hidden])) { background: var(--bg); }
.ws .bpage { max-width: 1240px; margin: 0 auto; padding: 0 56px 80px; box-sizing: border-box; container-type: inline-size; }
.ws .blbl { font-size: 14px; font-weight: 500; color: var(--b-sub); margin: 0; }
.ws .bhead { display: flex; align-items: center; gap: 18px; padding: 36px 0 8px; flex-wrap: wrap; }
.ws .bav { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--b-line); }
.ws .bname, .ws .bh2, .ws .bvtitle { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; color: var(--b-ink); margin: 0; line-height: 1.05; }
.ws .bname { font-size: clamp(34px, 5vw, 52px); }
.ws .bhead .blbl { margin-top: 6px; font-size: 15px; }
.ws .bhead .can { margin-left: auto; font-size: 14px; color: var(--b-sub); }

.ws .bformbox { margin: 28px 0 0; }
.ws .bform { display: flex; gap: 10px; }
.tour-result:focus-visible { outline: 3px solid var(--b-acc, var(--green)); outline-offset: 3px; }
.ws .bh2[id] { scroll-margin-top: 24px; }
.ws .bfield { flex: 1; min-width: 0; box-sizing: border-box; height: 64px; padding: 0 26px; border: 1.5px solid var(--b-ink); border-radius: 999px;
  background: var(--b-card); color: var(--b-ink); font: 500 20px "Inter", system-ui, sans-serif; }
.ws .bfield::placeholder { color: var(--b-sub); }
.ws .bfield:focus { outline: 3px solid color-mix(in srgb, var(--b-acc) 35%, transparent); outline-offset: 2px; }
.ws .bbtn { height: 64px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--b-acc); color: #fff; font: 600 17px "Inter", system-ui, sans-serif;
  cursor: pointer; white-space: nowrap; }
.ws .bbtn:hover { filter: brightness(0.92); }
.ws .bbtn:disabled { opacity: 0.6; cursor: default; }
.ws .bform.small .bfield { height: 50px; font-size: 16px; padding: 0 20px; }
.ws .bform.small .bbtn { height: 50px; font-size: 15px; padding: 0 22px; }
.ws .err { color: var(--bad); font-size: 14px; margin: 8px 0 0 22px; }

/* the forecast queue under the title field (docs/workspaces.md, "The forecast queue") */
.ws .bqueue { margin-top: 20px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 18px; padding: 6px 0; }
.ws .bqhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 22px 10px; }
.ws .bqh { margin: 0; font: 700 17px "Inter", system-ui, sans-serif; color: var(--b-ink); }
.ws .bqcount { font-size: 13px; color: var(--b-sub); white-space: nowrap; }
.ws .bqlist { list-style: none; margin: 0; padding: 0; }
.ws .bqrow { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid color-mix(in srgb, var(--b-line) 65%, transparent); }
.ws a.bqrow:hover .bqt { text-decoration: underline; text-underline-offset: 3px; }
.ws a.bqrow:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.ws .bqrow.priced { border: 1px solid var(--b-acc); border-radius: 14px; margin: 4px 8px; padding: 13px 14px; }
.ws .bqtxt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ws .bqt { font-size: 15px; font-weight: 600; color: var(--b-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws .bqstate { flex: none; font-size: 13px; font-weight: 600; color: var(--b-ink); background: var(--chip); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.ws .bqrow.run .bqstate { color: var(--b-acc); }
.ws .bqrow.nope .bqt, .ws .bqrow.nope .bqstate { color: var(--b-sub); }
.ws .bqbar { position: relative; display: block; width: 140px; height: 3px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.ws .bqbar i { position: absolute; top: 0; left: 0; width: 40%; height: 3px; border-radius: 3px;
  background: color-mix(in srgb, var(--b-ink) 18%, var(--b-card)); animation: bqslide 1.6s ease-in-out infinite; }
@keyframes bqslide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ws .bqrun { display: flex; align-items: center; gap: 10px; }
.ws .bqdots { display: flex; gap: 6px; }
.ws .bqdot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--b-ink) 18%, var(--b-card)); }
.ws .bqdot.on, .ws .bqdot.pulse { background: var(--b-acc); }
.ws .bqdot.pulse { animation: bqpulse 1.2s ease-in-out infinite; }
@keyframes bqpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ws .bqans { font-size: 13px; color: var(--b-sub); }
@media (prefers-reduced-motion: reduce) { .ws .bqbar i, .ws .bqdot.pulse { animation: none; } }

.ws .bcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
@container (min-width: 761px) and (max-width: 1100px) {
  .ws .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ws .bcard { background: var(--b-card); border: 1px solid var(--b-line); border-radius: 20px; padding: 22px 24px; animation: dmv-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s); }
.ws .bcard.locked { border: 1.5px dashed var(--b-dash); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.ws .bcname { font: 600 16px "Inter", system-ui, sans-serif; color: var(--b-ink); margin: 0; }
.ws .bnow { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.ws .bbig { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.ws .brow { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--b-line); }
.ws .bacc { color: var(--b-acc); font-weight: 700; font-variant-numeric: tabular-nums; }
.ws .brow .bacc { font-size: 17px; }
.ws .bbar { position: relative; display: block; height: 14px; }
.ws .bbar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--b-line); }
.ws .bband { position: absolute; top: 3px; height: 8px; border-radius: 8px; background: var(--b-band); }
.ws .bmark { position: absolute; top: 0; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--b-acc); }

/* Suggestions | Grow your channel, then Doing, the log, the Today line and Your videos (docs/workspaces.md, "The look") */
.ws .bcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; margin-top: 56px; }
.ws .bcols > .bgrow { margin-top: 0; }
.ws .bdoing { margin-top: 48px; }
.ws .bchecked-sum { margin: -8px 0 20px; color: var(--muted); }
.ws .bchecked-row { display: block; margin-top: 4px; }
.ws .blist.bdo, .ws .bpast > .blist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.ws .brange { line-height: 1.5; }
.ws .bh2 { font-size: 34px; margin-bottom: 22px; }
.ws .btoday { position: relative; height: 2px; margin: 56px 0 44px; background: var(--b-ink); border-radius: 2px; }
.ws .btoday span { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--b-ink); color: var(--b-bg);
  font: 700 12px "Inter", system-ui, sans-serif; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ws .blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ws .brv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--b-text); text-decoration: none; border-radius: 12px; }
.ws a.brv:hover .bt { text-decoration: underline; text-underline-offset: 3px; }
.ws a.brv:focus-visible { outline: 3px solid var(--b-acc); outline-offset: 4px; }
.ws .bthumb, .ws .bbigthumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--b-ph); }
.ws .bbigthumb { border-radius: 18px; }
.ws .brt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws .bt { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--b-ink); }
.ws .bnums { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; font-size: 14px; color: var(--b-sub); font-weight: 500; }
.ws .bnums b { font-size: 18px; font-weight: 700; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.ws .bnums b.bacc { color: var(--b-acc); }
.ws .showall { display: block; margin: 18px 0 0; padding: 0; font-size: 15px; text-align: left; }
/* The three answers at a suggestion's end as icons, their words in a tip on hover or focus; "I'll do this" in the
   accent, the pressed one filled (docs/creators.md, "Answering a suggestion"). */
.ws .bcol { container-type: inline-size; }
.ws .blist li.brateable { display: flex; flex-direction: column; gap: 10px; }
.ws .blist li.brateable > .banswer { margin-left: 164px; }
@container (min-width: 620px) {
  .ws .bcol .blist li.brateable { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
  .ws .bcol .blist li.brateable > .banswer { margin-left: 0; }
}
.ws .banswer { display: flex; gap: 6px; }
.ws .bans, .ws .bico-btn { position: relative; flex: none; width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--b-sub); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.ws .bans .anico, .ws .bico-btn .anico { width: 20px; height: 20px; }
.ws .bans:hover, .ws .bico-btn:hover { color: var(--ink); border-color: var(--muted); }
.ws .bans:focus-visible, .ws .bico-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ws .bans-do { color: var(--b-acc); border-color: color-mix(in srgb, var(--b-acc) 50%, transparent); }
.ws .bans-do:hover, .ws .bans-do[aria-pressed="true"] { background: var(--b-acc); border-color: var(--b-acc); color: var(--green-ink); }
.ws .bans[aria-pressed="true"]:not(.bans-do) { background: var(--b-ink); border-color: var(--b-ink); color: var(--b-bg); }
.ws .bico-btn { border-color: transparent; }
.ws [data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: var(--b-ink); color: var(--b-bg); font: 600 12px var(--sans); white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s, transform .12s, visibility 0s .12s; z-index: 5; }
.ws [data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .ws [data-tip]:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .12s .3s, transform .12s .3s, visibility 0s .3s; }
}
/* "Later and not for me": a link, then one line per answer */
.ws .blog { margin-top: 28px; }
.ws .blogtoggle { min-height: 44px; padding: 0; font-weight: 600; font-size: 15px; color: var(--b-sub); text-decoration: none; }
.ws .blogtoggle:hover { color: var(--ink); }
.ws .blogrows { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--b-line); }
.ws .blogrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 40px; gap: 14px; align-items: center; padding: 4px 0;
  border-bottom: 1px solid var(--b-line); font-size: 14px; }
.ws .blogicon { position: relative; display: inline-flex; color: var(--b-sub); }
.ws .blogtitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--b-text); text-decoration: none;
  text-align: left; padding: 0; font: inherit; }
.ws a.blogtitle:hover, .ws button.blogtitle:hover { text-decoration: underline; text-underline-offset: 3px; }
.ws .blogdate { color: var(--b-sub); font-variant-numeric: tabular-nums; }
/* on a screen without hover: what a press did, and "Undo" */
.ws .bundo { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 50; max-width: 480px; margin: 0 auto; display: flex;
  align-items: center; gap: 10px; padding: 4px 4px 4px 16px; border-radius: 16px; background: var(--b-ink); color: var(--b-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.ws .bundo-what { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws .bundo-undo { flex: none; min-height: 44px; padding: 0 14px; font-weight: 700; color: var(--b-acc); text-decoration: none; }
.ws .blist li.off .brv { opacity: .55; }
.ws .bh2.brated { font-size: 22px; }
/* A chosen suggestion's effect on the metric cards (docs/creators.md, "Effects"): the strip above them, "if not"
   struck through beside "if you do this", a grey mark where the number was. */
.ws .beffect { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 10px 14px 10px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--b-acc) 45%, transparent); }
.ws .beffect + .bcards { margin-top: 14px; }
.ws .beffect-lbl { flex: none; font: 500 12px var(--mono); color: var(--b-acc); text-transform: uppercase; letter-spacing: .06em; }
.ws .beffect-t { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--b-ink); }
.ws .beffect .linkbtn { flex: none; min-height: 36px; padding: 0 12px; color: var(--b-sub); text-decoration: none; font-weight: 600; font-size: 14px; }
.ws .beffect .linkbtn:hover { color: var(--b-ink); }
.ws .bvals { display: inline-flex; align-items: baseline; gap: 8px; }
.ws .bwithout { font-size: 13px; color: var(--faint); text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); font-variant-numeric: tabular-nums; }
.ws .bghost { position: absolute; top: 2px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: var(--faint); }
/* a suggestion row chosen by its text; its thumbnail still opens its page */
.ws .bpick { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: pointer; border-radius: 8px; }
.ws .bpick:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
.ws a.bthumblink { display: block; border-radius: 10px; }
.ws a.bthumblink:focus-visible { outline: 3px solid var(--b-acc); outline-offset: 3px; }
.ws .blist li.chosen .brv { box-shadow: 0 0 0 1.5px var(--b-acc); }
.ws .beffline { font-size: 13.5px; color: var(--b-sub); }
.ws .bitem { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws .bitem > .beffline.bpick { display: inline-block; align-self: flex-start; margin: 6px 0 0 164px; text-decoration: underline dotted; text-underline-offset: 3px; }
.ws .bitem > .beffline.bpick:hover, .ws .bitem > .beffline.bpick[aria-pressed="true"] { color: var(--b-acc); }
.ws .bcheck { font-size: 13px; color: var(--b-sub); }
.ws .bcheck b { color: var(--b-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ws .breal { margin-left: 6px; color: var(--b-ink); font-weight: 700; }
/* "Grow your channel": Rank by, then each move as a card (docs/creators.md, "Moves") */
.ws .bgrow { margin-top: 48px; }
.ws .bgrow-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ws .bgrow-head .bh2 { flex: 1; margin: 0; font-size: 22px; }
.ws .bsegs { display: flex; gap: 6px; flex-wrap: wrap; }
.ws .bseg { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--b-sub);
  font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; }
.ws .bseg:hover { color: var(--b-ink); }
.ws .bseg:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ws .bseg[aria-pressed="true"] { background: var(--surface); color: var(--b-ink); border-color: var(--muted); }
.ws li.bmove { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--b-card); border: 1px solid var(--b-line); }
.ws li.bmove.chosen { border-color: var(--b-acc); }
.ws li.bmove.off { opacity: .6; }
.ws .bmovehead { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: pointer; border-radius: 8px; }
.ws .bmovehead:hover .bt { color: var(--b-acc); }
.ws .bmovehead:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
.ws .bkind { font: 500 12px var(--mono); color: var(--b-sub); text-transform: uppercase; letter-spacing: .06em; }
.ws li.bmove .bt { font-size: 16px; line-height: 1.35; }
.ws li.bmove .bwhy { margin: 0; }
.ws .bchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws .bchipdate { margin-right: 4px; font-size: 12px; color: var(--b-sub); }
.ws .bestimate { margin: 4px 0 0; font-size: 12px; color: var(--b-sub); }
.ws .bchip { padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.ws .bchip b { font-weight: 700; }
.ws .bchip.on { background: color-mix(in srgb, var(--b-acc) 16%, transparent); color: var(--b-acc); }
.ws .bactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ws .bopen { font-weight: 600; font-size: 14px; color: var(--b-sub); }
.ws .bopen:hover { color: var(--b-ink); }
/* a move opened: both branches of every metric, then why and how */
.ws .bmove-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.ws .bmove-box { display: flex; flex-direction: column; gap: 20px; padding: 24px 28px 28px; }
.ws .bmove-box .bchart-top { margin: 0; align-items: flex-start; }
.ws .bmove-name { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws .bmove-title { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--b-ink); }
.ws .bmove-key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--b-sub); }
.ws .bmove-key span { display: inline-flex; align-items: center; gap: 8px; }
.ws .bkey-do { width: 22px; height: 3px; border-radius: 2px; background: var(--b-acc); }
.ws .bkey-dont { width: 22px; height: 0; border-top: 2px dashed var(--faint); }
.ws .bmcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ws .bmcard { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 16px; border: 1px solid var(--b-line); background: var(--b-bg); min-width: 0; }
.ws .bmhead-line { display: flex; align-items: baseline; gap: 10px; }
.ws .bmhead-line .bcname { flex: 1; }
.ws .bmtoday b { font-size: 20px; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.ws .bbranch { display: block; width: 100%; height: 120px; overflow: visible; }
.ws .bbranch path { fill: none; vector-effect: non-scaling-stroke; }
.ws .bbranch-now { stroke: var(--b-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ws .bbranch-past { stroke: var(--b-ink); stroke-width: 2; }
.ws .bbranch-dont { stroke: var(--faint); stroke-width: 2; stroke-dasharray: 5 5; }
.ws .bbranch-do { stroke: var(--b-acc); stroke-width: 2.5; }
.ws .bmhead, .ws .bmrow { display: grid; grid-template-columns: 1.1fr 1fr 1fr .8fr; gap: 8px; align-items: baseline; }
.ws .bmhead { font-size: 12px; color: var(--b-sub); }
.ws .bmrow { font-size: 14px; }
.ws .bmrow .bacc { font-size: 17px; }
.ws .bmdont { color: var(--b-sub); font-variant-numeric: tabular-nums; }
.ws .bdiff { color: var(--b-acc); font-weight: 600; font-variant-numeric: tabular-nums; }
.ws .bmwhy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ws .bmwhy h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--b-ink); }
.ws .bmwhy p, .ws .bmwhy ol { margin: 0; font-size: 15px; line-height: 1.6; color: var(--b-sub); max-width: 560px; }
.ws .bmwhy ol { padding-left: 22px; }
/* the video page's ideas */
.ws .bideas-box { margin-top: 40px; }
.ws .bideas-box .dh2 { margin: 0 0 16px; }
.ws .bideas-box .bbrain { margin-top: 18px; }
@media (max-width: 760px) {
  .ws .beffect { margin-top: 20px; padding: 8px 8px 8px 14px; gap: 10px; flex-wrap: wrap; }
  .ws .beffect-t { flex-basis: 100%; order: 2; font-size: 14px; }
  .ws .beffect .linkbtn { margin-left: auto; }
  .ws .bgrow { margin-top: 36px; }
  .ws .bsegs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .ws li.bmove { padding: 14px; border-radius: 16px; }
  .ws .bans, .ws .bico-btn { width: 44px; height: 44px; }
  .ws .bmove-box { padding: 18px 16px 20px; }
  .ws .bmcards, .ws .bmwhy { grid-template-columns: minmax(0, 1fr); }
}
.ws .bnow.none { height: 12px; }
/* the metric's small chart beside its name, and its full chart in a dialog (docs/workspaces.md, "The look") */
.ws .bchead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ws .bspark { flex: none; width: 120px; height: 44px; padding: 0; border: 1px solid var(--b-line); border-radius: 8px; background: none; cursor: pointer; overflow: hidden;
  transition: border-color .2s; }
.ws .bspark:hover { border-color: var(--b-acc); }
.ws .bspark:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ws .bspark-svg { display: block; width: 100%; height: 100%; }
.ws .bspark-ahead { fill: var(--b-ink); opacity: .04; }
.ws .bspark-now { stroke: var(--b-sub); stroke-width: 1; stroke-dasharray: 2 2; opacity: .7; }
.ws .bspark-band { fill: var(--b-acc); opacity: .16; }
.ws .bspark-past { fill: none; stroke: var(--b-ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ws .bspark-future { fill: none; stroke: var(--b-acc); stroke-width: 1.6; stroke-dasharray: 3 3; stroke-linejoin: round; stroke-linecap: round; }
.ws .bchart-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--b-line); border-radius: 20px; background: var(--b-card); color: var(--b-ink); }
.ws .bchart-dialog::backdrop { background: #000a; }
.ws .bchart-box { padding: 20px 24px 24px; }
.ws .bchart-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ws .bchart-body { position: relative; }

.ws .bnav { padding: 26px 0 18px; font-size: 15px; color: var(--b-sub); }
.ws .bnav a { color: var(--b-acc); text-decoration: none; font-weight: 600; }
.ws .bnav a:hover { text-decoration: underline; }
.ws .bhero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ws .bpage, .ws .bpage h1, .ws .bpage h2 { text-align: left; }
.ws .bvtitle { font-size: clamp(28px, 3.6vw, 44px); }
.ws .bheadnum { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.ws .bhuge { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; color: var(--b-acc); font-variant-numeric: tabular-nums; line-height: 1.05; }
.ws .bweek { margin: 10px 0 0; font-size: 16px; color: var(--b-sub); font-weight: 500; }
.ws .bweek b { font-size: 20px; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.ws .bstats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; }
.ws .bstats div { display: flex; flex-direction: column; gap: 2px; }
.ws .bstats b { font-size: 22px; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.ws .bchart { margin-top: 24px; }
.ws .bsec { margin: 48px 0 0; }
.ws .btr { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 16px; }
.ws .btr.best { border: 1.5px solid var(--b-acc); }
.ws .btr b { font-size: 22px; color: var(--b-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws .btr.best b { color: var(--b-acc); }

/* Video details: identity and real readings first, dated forecasts and title comparison together. */
.ws .bvideo-page .bnav { padding: 28px 0 24px; font-size: 14px; }
.ws .bvideo-page .bhero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ws .bvideo-page .bheropic { position: relative; min-width: 0; }
.ws .bvideo-page .bbigthumb { height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--b-line); box-sizing: border-box; }
.ws .bvideo-page div.bbigthumb { height: auto; }
.ws .bvideo-page .bvtitle { font-size: clamp(26px, 2.25vw, 34px); line-height: 1.16; overflow-wrap: anywhere; text-wrap: pretty; }
.ws .bvideo-page .bherot { min-width: 0; }
.ws .bthumbnail-link { display: block; border-radius: 18px; color: var(--b-ink); }
.ws .bvideo-title-link { color: inherit; text-decoration: none; }
.ws .bvideo-title-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ws .bexternal { display: inline-block; margin-left: 8px; color: var(--b-acc); font: 500 20px "Inter", system-ui, sans-serif; }
.ws .bthumbnail-link:focus-visible, .ws .bvideo-title-link:focus-visible { outline: 3px solid var(--b-acc); outline-offset: 4px; }
.ws .bwatch { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 9px; align-items: center; padding: 10px 15px;
  color: var(--ink); background: var(--surface); border-radius: 999px; box-shadow: 0 2px 12px #0002; text-decoration: none; font: 600 14px "Inter", system-ui, sans-serif; }
.ws .bwatch::before { content: ""; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.ws .bthumbnail-link:hover .bwatch { background: var(--chip); }
.ws .bthumbtools { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.ws .bthumbtool { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #f4f4f4;
  background: rgba(10, 10, 10, .72); }
.ws .bthumbtool:hover { background: rgba(10, 10, 10, .9); }
.ws .bthumbtool:focus-visible { outline: 3px solid var(--b-acc); outline-offset: 2px; }
.ws .bthumbtool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ws .bvideo-page .bstats { margin-top: 22px; gap: 12px 24px; align-items: baseline; }
.ws .bvideo-page .bstats b { font-size: 18px; }
.ws .bvideo-page .bstats .bobserved b { font-size: 30px; line-height: 1.05; }
.ws .bforecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--b-line); }
.ws .bforecast-grid > div { display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.ws .bforecast-grid dd { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.ws .bforecast-grid dt { font-size: 13px; min-height: 2.5em; }
.ws .bvideo-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 32px; }
.ws .bvideo-work > .bcard { margin: 0; min-width: 0; padding: 24px; }
.ws .bchart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ws .bchart-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--b-sub); }
.ws .bchart-key span { display: inline-flex; align-items: center; gap: 6px; }
.ws .bchart-key span::before { content: ""; width: 15px; border-top: 2px solid var(--b-ink); }
.ws .bchart-key .bkey-forecast::before { border-top: 2px dashed var(--b-acc); }
.ws .bchart-readout { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--b-line); }
.ws .bchart-readout dt { font-size: 12px; }
.ws .bchart-readout dd { margin: 5px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws .bchart-readout dd.binterval { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--b-sub); }
.ws .bvideo-page .bchart { --green: var(--b-acc); --ink: var(--b-ink); --bg: var(--b-card); --panel: var(--b-bg); --line: var(--b-line); --muted: var(--b-sub); }
.ws .bvideo-page .mchart-ylabel, .ws .bvideo-page .mchart-xlabel { font-size: 13px; }
.ws .bvideo-page .bidea { margin-top: 32px; max-width: 900px; }

@media (max-width: 980px) {
  .ws .bvideo-page .bhero { gap: 24px; }
  .ws .bvideo-work { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .ws .bpage { padding: 0 16px 60px; }
  .ws .bqueue { border-radius: 16px; padding: 4px 0; }
  .ws .bqhead { padding: 12px 16px 8px; }
  .ws .bqh { font-size: 16px; }
  .ws .bqrow { gap: 12px; padding: 12px 16px; }
  .ws .bqrow.priced { margin: 4px 6px; padding: 11px 10px; }
  .ws .bqt { font-size: 14px; }
  .ws .bqstate { font-size: 12px; padding: 6px 10px; }
  .ws .bqbar { width: 110px; }
  .ws .bav { width: 56px; height: 56px; }
  .ws .bfield { height: 54px; font-size: 17px; padding: 0 18px; }
  .ws .bbtn { height: 54px; padding: 0 18px; font-size: 15px; }
  .ws .bcols, .ws .blist.bdo, .ws .bpast > .blist { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ws .bcols { margin-top: 40px; gap: 36px; }
  .ws .blist li.brateable > .banswer { margin-left: 132px; }
  .ws .blogrow { grid-template-columns: 24px minmax(0, 1fr) 44px; }
  .ws .blogdate { display: none; }
  .ws .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ws .bcards > .bcard:not(.locked) { grid-column: 1 / -1; }
  .ws .bcards > .locked { padding: 18px 14px; gap: 12px; }
  .ws .btoday { margin: 36px 0 32px; }
  .ws .bh2 { font-size: 28px; margin-bottom: 16px; }
  .ws .brv { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .ws .bitem > .beffline.bpick { margin-left: 132px; }
  .ws .bhero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ws .bhuge { font-size: 44px; }
  .ws .bvideo-page .bnav { padding: 22px 0 18px; }
  .ws .bvideo-page .bhero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ws .bvideo-page .bvtitle { font-size: 26px; }
  .ws .bvideo-page .bstats { margin-top: 18px; gap: 12px 22px; }
  .ws .bvideo-work { margin-top: 24px; gap: 20px; }
  .ws .bvideo-work > .bcard { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ws .bcard { animation: none; } }
.dash.still .bcard { animation: none; }          /* a quiet redraw never replays the cards' entrance */

/* ---------- the run's drawings (docs/creators.md section 1, "The run"; design A, 2026-10-23) ---------- */
.card.runviz { max-width: 640px; }
.runviz .ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.runviz .gsub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
svg.rv { display: block; width: 100%; height: auto; overflow: visible; }
.rv .rvgrid { stroke: var(--line); stroke-dasharray: 2 4; }
.rv .rvaxis { font: 11px var(--mono); fill: var(--muted); }
.rv .rvlab { font: 500 12px var(--sans); fill: var(--ink); }
.rv .rvtitle { font: 500 13px var(--sans); fill: var(--ink); }
.rv .rvnum { font: 600 13px var(--mono); fill: var(--green); opacity: 0; animation: fadein .5s ease forwards; }
.rv .rvlab, .rv .rvmed { opacity: 0; animation: fadein .6s ease forwards; }
.rv .rvaxis { opacity: 1; }
.rv .rvdot { fill: var(--green); opacity: 0; transform-box: fill-box; transform-origin: center; animation: rvpop .5s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes rvpop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.4); } 100% { opacity: .85; transform: none; } }
.rv .rvmed { stroke: var(--ink); stroke-dasharray: 5 4; }
.rv .rvme { fill: var(--ink); }
.rv .rvnode { fill: none; stroke: var(--muted); stroke-dasharray: 3 3; opacity: 0; animation: fadein .4s ease forwards; }
.rv .rvnode.on { fill: color-mix(in srgb, var(--green) 18%, transparent); stroke: var(--green); stroke-dasharray: none; }
.rv .rvlink { stroke: var(--green); stroke-width: 2; }
.rv .rvhist { fill: var(--muted); }
.rv .rvband { fill: color-mix(in srgb, var(--green) 14%, transparent); opacity: 0; animation: fadein 1s ease 1.4s forwards; }
.rv .rvline { fill: none; stroke: var(--green); stroke-width: 2.5; }
.rv .rvopen { stroke: var(--muted); stroke-dasharray: 3 4; }
.rv .rvtrack { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.rv .rvbet { fill: var(--green); }
.rvfoot { margin: 10px 0 0; font: 13px var(--mono); color: var(--ink); }
.rvwho { margin: 0; color: var(--muted); }
.rvwho b { color: var(--ink); font-weight: 600; }
.rvbars { display: flex; flex-direction: column; gap: 12px; }
.rvdrafts { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.rvdraft { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rvdraft.new { animation: sgin .35s ease-out both; }
@media (prefers-reduced-motion: reduce) { .rvdraft.new { animation: none; } }
.ideasviz .rvbars { gap: 16px; }
.rvrow { display: flex; flex-direction: column; gap: 4px; }
.rvrt { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.rvname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; }
.rvn { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.rvpic { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.rvtrackh { position: relative; height: 10px; }
.rvtrackh i { display: block; height: 10px; border-radius: 5px; background: var(--green); transform-origin: left center;
  animation: rvgrow .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rvgrow { from { transform: scaleX(0); } to { transform: none; } }
.rvrow.med .rvname, .rvrow.med .rvn { color: var(--muted); font-weight: 400; }
.rvrow.med i { background: var(--muted); }
.rvrow.me .rvname { font-weight: 600; }
.rvrow.me i { background: var(--ink); }
.similar .rvrow:not(.me):not(.near) i { opacity: .55; }
.rvrow.near i { background: var(--ink); height: 8px; }
.rvmeta { font-size: 12.5px; color: var(--muted); }
.rvtrackh .rvo { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed var(--muted); }
.rvtrackh .rvb { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--surface);
  border: 1.5px solid var(--ink); }
.rvrow.top i { background: var(--green); }
.ideasviz .rvrow:not(.top) i { opacity: .6; }
.rvkey { display: flex; gap: 18px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.rvkey .ko::before { content: ""; display: inline-block; width: 0; height: 12px; border-left: 1.5px dashed var(--muted); margin-right: 6px; vertical-align: -2px; }
.rvkey .kb::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 6px; }
.rvstrip .label, .rvbars .label { margin: 6px 0 4px; }
.still .rv .rvdot, .still .rv .rvlab, .still .rv .rvmed, .still .rv .rvnode, .still .rv .rvband, .still .rv .rvnum, .still .rvtrackh i {
  animation: none; opacity: 1; transform: none; }
.still .rv .rvdot { opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .rv .rvdot, .rv .rvlab, .rv .rvmed, .rv .rvnode, .rv .rvband, .rv .rvnum, .rvtrackh i { animation: none !important; opacity: 1; transform: none; }
}

.runviz .rvsub { margin: -4px 0 8px; font-size: 13.5px; color: var(--muted); }
.rv .rvwait { font: 12px var(--mono); fill: var(--muted); animation: rvblink 1.4s ease-in-out infinite; }
@keyframes rvblink { 50% { opacity: .35; } }
.rv .rvmark circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.rv .rvmark .rvmarkn { font: 600 9px var(--mono); fill: var(--ink); }
.rv .rvmark { opacity: 0; animation: fadein .4s ease forwards; }
.rvfeed { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font: 12.5px/1.8 var(--mono); color: var(--muted); }
.rvfeed li:first-child { color: var(--ink); }
.rvfeed li:first-child::before { content: "\203a  "; color: var(--green); }
.still .rv .rvmark { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rv .rvmark, .rv .rvwait { animation: none; opacity: 1; } }

/* a suggestion's tile while its thumbnail is made (docs/workspaces.md, "Thumbnails") */
.ws .sugg { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ws .sugg .tstate { position: relative; z-index: 1; font: 12px var(--mono); color: var(--muted); padding: 0 8px; }
.ws .sugg.making .tstate { color: var(--ink); }
.ws .sugg.making::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--green) 22%, transparent) 50%, transparent 80%);
  animation: tsheen 1.8s ease-in-out infinite; }
@keyframes tsheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ws .sugg.making::after { animation: none; transform: none; opacity: .4; } }
.ws .bday1, .ws .bday1 b { color: var(--muted); font-weight: 500; }
.rvfilm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.rvframe { margin: 0; opacity: 0; animation: rvpop .45s cubic-bezier(.2, .8, .2, 1) forwards; }
.rvframe img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--chip); }
.rvframe figcaption { font: 600 12px var(--mono); color: var(--ink); margin-top: 3px; }
.still .rvframe { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rvframe { animation: none; opacity: 1; } }
.ws .bwhy { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws .bidea { max-width: 760px; margin: 40px 0 0; }
.ws .bidea .dh2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 28px 0 10px; }
.ws .bideap { margin: 0; font-size: 17px; line-height: 1.6; }
.ws .bhow { margin: 0; padding-left: 1.4em; font-size: 16px; line-height: 1.6; }
.ws .bhow li { margin: 0 0 6px; padding-left: 4px; }
.ws .bhow li::marker { color: var(--green); font-weight: 700; }
/* YouTube Analytics: the header button, the locked cards and the one-time dialog (docs/workspaces.md, "The look") */
.ws .bhead { flex-wrap: wrap; }
.ws .bfrom { margin: auto 0 10px; color: var(--b-sub); font-size: 14px; }
.rvrow.waiting .rvn { color: var(--muted); font-weight: 500; animation: rvblink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .rvrow.waiting .rvn { animation: none; } }
.notebox { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.notebox textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink); resize: vertical; }
.notebox .cta { align-self: flex-start; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Shared creator knowledge and contextual conversation. */
.creator-shell[hidden], .creator-shell [hidden] { display: none !important; }
.creator-left { min-width: 0; }
.creator-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ck-button, .ck-tab { font: inherit; font-size: 13px; cursor: pointer; padding: 8px 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.creator-nav button { background: transparent; border-color: transparent; color: var(--muted); }
.creator-nav .selected { background: var(--panel); border-color: var(--line); color: var(--ink); }
.creator-board .dash { width: 100%; max-width: none; margin: 0; padding: 0; }
.creator-board .wrap.bpage { width: 100%; max-width: none; padding: 0; margin: 0; }
.creator-channel .bhead, .creator-channel .dtop { margin-top: 0; margin-bottom: 20px; }
.ck-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0; text-align: left; }
.ck-label { display: block; color: var(--muted); font-size: 10px; letter-spacing: .075em; text-transform: uppercase; margin: 12px 0 7px; }
.ck-message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin: 0; }
.ck-message a { color: var(--green); }
.creator-knowledge textarea { font: inherit; font-size: 13px; color: var(--ink); background: var(--panel); width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 14px; resize: vertical; box-sizing: border-box; line-height: 1.65; }
.creator-knowledge textarea::placeholder { color: var(--muted); opacity: 1; }
.creator-shell .err { color: var(--bad); }
.creator-shell .creator-knowledge h1 { font-family: var(--sans); font-size: clamp(27px, 3vw, 36px); font-weight: 400; letter-spacing: -.035em; line-height: 1.15; margin: 10px 0 16px; text-align: left; }
.creator-knowledge h2 { font-size: 16px; font-weight: 500; text-align: left; margin: 0 0 16px; }
.ck-heading { margin-bottom: 22px; }
.ck-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.ck-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 0; color: var(--muted); }
.ck-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }
.ck-tools { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin: 16px 0; }
.ck-history { max-width: 65%; font-size: 12px; color: var(--muted); }
.ck-history summary { cursor: pointer; padding: 8px; }
.ck-revisions { display: grid; gap: 5px; max-height: 220px; overflow-y: auto; }
.ck-revisions button { text-align: left; font-size: 11px; }
.ck-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 16px 0; }
.creator-knowledge textarea { min-height: 190px; background: var(--bg); }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.ck-actions .ck-hint { flex: 1 1 180px; }
.ck-actions .cta { font-size: 12px; }
.ck-observed { font: inherit; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow-y: auto; color: var(--muted); }
.ck-banner button { margin: 8px 8px 0 0; }
.ck-proposal .ck-button { font-size: 11px; }
.ck-banner { border: 1px solid var(--line); border-left: 2px solid var(--green); border-radius: 8px; padding: 12px; margin: 16px 0; font-size: 12px; }
@media (max-width: 800px) { .ck-card { padding: 18px; } .ck-history { max-width: 55%; } .creator-nav { gap: 0; } }

/* The knowledge base, direction A "Dossier" (docs/creators.md, "What the knowledge base shows"): the board's grammar. */
.kb-read { margin: 14px 0 0; font: 12px var(--mono); color: var(--faint); text-align: left; }
.kb-shelf { margin-top: 48px; }
.kb-shelf:first-of-type { margin-top: 28px; }
.creator-knowledge .kb-shelf h3 { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-align: left; text-wrap: balance; }
.kb-rule { margin: 0 0 16px; color: var(--muted); font-size: 14px; text-align: left; }
.kb-box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 6px 24px; }
.kb-empty { margin: 0; padding: 16px 0; color: var(--faint); font-size: 13px; text-align: left; }
.kb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); transition: opacity .2s; }
.kb-box > :first-child { border-top: 0; }
.kb-row.excluded > :not(.kb-switch) { opacity: .4; }
.kb-row:has(.kb-transcript) { align-items: start; }
.kb-main { min-width: 0; margin: 0; text-align: left; }
.kb-title { display: block; margin: 0; font-weight: 500; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; text-align: left; }
a.kb-title:hover { color: var(--green); }
.kb-sub { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.kb-num { font: 500 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-pill { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--surface); color: var(--muted); white-space: nowrap; justify-self: end; }
.kb-pill.hot { background: var(--green); color: var(--green-ink); }
.kb-title .kb-pill { margin-right: 8px; vertical-align: 1px; }
.kb-switch { position: relative; width: 30px; height: 18px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--bar); cursor: pointer; justify-self: end; }
.kb-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: left .15s, background .15s; }
.kb-switch[aria-checked="true"] { background: var(--green); }
.kb-switch[aria-checked="true"]::after { left: 14px; background: #fff; }
.kb-switch:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.kb-switch:disabled { cursor: default; opacity: .5; }
.kb-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.kb-avatar-big { width: 48px; height: 48px; }
.kb-letter { display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.kb-channel { padding: 18px 0; display: grid; gap: 18px; }
.kb-channel-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kb-channel-who p { margin: 0; }
.kb-big { font-size: 18px; font-weight: 600; letter-spacing: -.01em; text-align: left; }
.kb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kb-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); min-width: 0; }
.kb-stat-n { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kb-stat-l { font-size: 12px; color: var(--muted); }
.kb-about { padding: 18px 0; }
.kb-lead { margin: 0 0 12px; font-size: 17px; line-height: 1.55; max-width: 62ch; text-align: left; }
.kb-key { color: var(--ink); }
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.kb-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.kb-point .kb-main { display: grid; grid-template-columns: 28px minmax(0, 1fr); line-height: 1.5; }
.kb-point:not(:first-child) { grid-template-columns: minmax(0, 1fr); }
/* How viewers find you: its label, then its values wrapping under one another ("What the knowledge base shows"). */
.kb-fact { grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
.kb-fact .kb-main { line-height: 1.5; overflow-wrap: anywhere; }
.kb-line { display: block; }
.kb-desc { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; text-align: left; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kb-spark { display: block; width: 120px; height: 18px; margin-top: 6px; }
.kb-transcript { margin-top: 8px; max-height: 320px; overflow-y: auto; padding-right: 8px; font-size: 13px; line-height: 1.55; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.kb-transcript p { margin: 0 0 8px; }
.kb-chart { display: block; width: 100%; height: 72px; }
.kb-spark svg, .kb-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kb-spark polyline, .kb-chart polyline { fill: none; stroke: var(--green); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.kb-growth { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.kb-growth .kb-main { display: flex; justify-content: space-between; margin: 0; }
.kb-shelf > .kb-more { margin: 10px 0 0 24px; }
.kb-n { font: 600 12px var(--mono); color: var(--green); padding-top: 2px; }
.kb-video { grid-template-columns: 120px minmax(0, 1fr) auto auto auto; }
.kb-thumb { display: block; width: 120px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--surface); }
.kb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-rank { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; }
.kb-rank .kb-track { grid-column: 1 / 3; grid-row: 2; }
.kb-rank .kb-why { grid-column: 1 / 3; grid-row: 3; margin: 0; font-size: 12px; color: var(--muted); text-align: left; }
.kb-rank .kb-switch { grid-column: 3; grid-row: 1; }
.kb-rank.me .kb-num { grid-column: 2 / 4; }
.kb-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
a.kb-who:hover .kb-name { color: var(--green); }
.kb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-rank.me .kb-name { font-weight: 600; }
.kb-track { display: block; height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.kb-track i { display: block; height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--green) 70%, var(--panel)); }
.kb-rank.me .kb-track i { background: var(--ink); }
.kb-comments { align-items: start; padding: 16px 0; }
.kb-comments blockquote { margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--bar); color: var(--ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; text-align: left; }
.kb-more { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kb-notes h3 { margin-bottom: 14px !important; }
.kb-notes textarea { min-height: 120px; }
.kb-attr { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.kb-attr label { font-weight: 500; font-size: 14px; line-height: 1.5; }
.creator-knowledge .kb-attr textarea { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; resize: none; field-sizing: content; line-height: 1.5; font-size: 14px; }
.creator-knowledge .kb-attr textarea::placeholder { color: var(--faint); }
.creator-knowledge .kb-attr textarea:focus { outline: none; box-shadow: none; }
.kb-attr:focus-within label { color: var(--green); }
.kb-example { margin: 2px 0 0; font-size: 12px; color: var(--faint); text-align: left; }
@media (max-width: 800px) {
  .kb-box { padding: 4px 16px; }
  .kb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-video { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 6px 12px; }
  .kb-video .kb-thumb { width: 96px; grid-row: 1 / 3; align-self: start; }
  .kb-fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .kb-video .kb-main { grid-column: 2; grid-row: 1; }
  .kb-video > .kb-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .kb-video .kb-switch { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .kb-video .kb-num { display: none; }
  .kb-video .kb-title { font-size: 13px; }
  .kb-attr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Swift product surfaces: the existing board, analysis, knowledge and chat flows. */
.logo .g1, .logo .g2, .logo .g3 { fill: var(--ink); }
.logo .gg { fill: var(--green); }
.app { grid-template-columns: 280px minmax(0, 1fr); }
.side { padding: 24px 20px 36px; }
.side .logo { font-size: 18px; padding-bottom: 24px; }
.stage { padding-top: 48px; }
.card { background: var(--panel); border-radius: 20px; padding: 28px; }
.card-h, .gtitle, .ititle, .dtitle, .fname { font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; }
.cta { border-radius: 999px; padding: 11px 20px; transition: filter .2s; }
.cta:hover { filter: brightness(1.12); }
.stepsrow { padding-top: 28px; }
.steps .curpill { border-color: var(--line); background: var(--surface); }
.ws .bhead { padding-top: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--b-line); }
.ws .bname, .ws .bh2, .ws .bvtitle { letter-spacing: -.05em; font-weight: 600; line-height: 1.12; }
.ws .bname { font-size: clamp(32px, 4vw, 44px); }
.ws .bh2 { font-size: 28px; }
.ws .bav { width: 60px; height: 60px; }
.ws .bfield { background: var(--surface); border-color: var(--line); border-radius: 999px; font-family: var(--sans); }
.ws .bfield:focus { border-color: var(--ring); }
.ws .bbtn { border-radius: 999px; color: var(--green-ink); background: var(--green); }
.ws .bfmt { display: flex; align-items: center; gap: 2px; height: 64px; box-sizing: border-box; padding: 5px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--surface); flex: none; }
.ws .bfmt button { height: 100%; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--b-sub);
  font: 600 15px var(--sans); cursor: pointer; }
.ws .bfmt button[aria-pressed="true"] { background: var(--b-ink); color: var(--b-card); }
.ws .bfmt button:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
.ws .btag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--b-sub); }
@media (max-width: 560px) {
  .ws .bform { flex-wrap: wrap; }
  .ws .bform .bfield { flex-basis: 100%; }
  .ws .bfmt { height: 54px; }
  .ws .bform .bbtn { flex: 1; }
}
.ws .bcard { border-radius: 20px; background: var(--b-card); }
.ws .bcols { margin-top: 48px; }
.ws .btoday { background: var(--b-line); }
.ws .btoday span { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.ws .brv { padding: 10px; margin: -10px; transition: background .2s; }
.ws a.brv:hover { background: var(--surface); }
.ws .btr { background: var(--surface); }
.creator-nav { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.creator-nav .selected { border-radius: 999px; background: var(--surface); }
.creator-shell .creator-knowledge h1 { font-weight: 600; }
.ck-card { border-radius: 20px; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 24px 16px 48px; }
  .card { padding: 22px; }
}
@media (max-width: 800px) {
  .ws .bhead { gap: 14px; padding-top: 16px; }
  .ws .bname { font-size: 32px; }
}

.ck-forecast-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; text-align: left; }
.ck-forecast-status p { margin: 0; }

/* Connected channel switcher, shared by channel and video pages. */
.creator-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.creator-brand > .logo { margin-bottom: 0; }
.channel-accounts { position: relative; flex: 0 0 auto; font-family: var(--sans); text-align: left; z-index: 20; }
.channel-accounts > summary { list-style: none; cursor: pointer; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); background: var(--panel); }
.channel-accounts > summary::-webkit-details-marker { display: none; }
.channel-accounts > summary:focus-visible, .channel-accounts button:focus-visible, .channel-accounts a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); padding: 10px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 35px #0004; }
.account-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.account-row img { border-radius: 50%; flex: 0 0 28px; }
.account-identity { flex: 1; min-width: 0; }
.account-select, .account-remove { font: inherit; cursor: pointer; color: var(--ink); border: 0; background: transparent; padding: 4px 0; text-align: left; }
.account-select { font-size: 13px; overflow-wrap: anywhere; }
.account-current { display: block; color: var(--muted); font-size: 11px; }
.account-remove { padding: 8px; font-size: 18px; color: var(--muted); }
.account-connect { display: block; box-sizing: border-box; width: 100%; margin: 10px 0 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: 500 13px var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.account-connect:disabled { color: var(--muted); cursor: default; }
.account-empty, .account-limit, .account-error { font: 12px/1.5 var(--sans); color: var(--muted); margin: 8px 4px; text-align: left; }
.account-error:empty { display: none; }
.account-error { color: var(--bad); position: absolute; top: 100%; right: 0; width: 250px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }

.run-accounts { display: flex; justify-content: flex-end; padding: 18px 24px 0; }

/* The chat panel (docs/creators.md, "The chat panel"): docked to the right edge, foldable to a rail, a sheet on a phone. */
.creator-shell { display: block; width: auto; margin: 0; padding: 24px 432px 60px 40px; box-sizing: border-box; text-align: left; }
.creator-shell.chat-folded { padding-right: 104px; }
.creator-left { max-width: 1480px; margin: 0 auto; }
.creator-chat { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; z-index: 20; box-sizing: border-box;
  display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); }
.creator-shell.chat-folded .creator-chat { display: none; }
.creator-chat-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.creator-chat-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; text-align: left; }
.ck-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: transparent;
  border: 1px solid var(--line); color: var(--muted); cursor: pointer; padding: 0; }
.ck-icon:hover { color: var(--ink); }
.ck-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.creator-chat-close, .creator-chat-bar { display: none; }
.creator-chat-rail { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 64px; height: auto; border-radius: 0;
  border: 0; border-left: 1px solid var(--line); background: var(--panel); place-items: start center; padding-top: 18px; z-index: 20; }
.creator-chat-rail svg { width: 20px; height: 20px; }
.creator-chat-rail::after { content: ""; position: absolute; top: 16px; right: 18px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--panel); opacity: 0; }
.creator-chat-rail.unread::after { opacity: 1; }
.creator-shell.chat-folded .creator-chat-rail { display: grid; }
.creator-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ck-message { font-size: 14px; line-height: 1.55; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-message.user { align-self: flex-end; max-width: 85%; }
.ck-message.user .ck-message-text { background: var(--surface); border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.ck-message a { color: var(--green); }
.ck-steps { display: flex; flex-direction: column; gap: 6px; font: 12px var(--mono); color: var(--muted); }
.ck-steps summary { cursor: pointer; list-style: none; }
.ck-steps summary::-webkit-details-marker { display: none; }
.ck-steps[open] summary { margin-bottom: 2px; }
.ck-step { display: flex; align-items: center; gap: 8px; margin: 0; }
.ck-step-mark { width: 12px; height: 12px; flex: none; box-sizing: border-box; border-radius: 50%; }
.ck-step.done .ck-step-mark { border: 0; background: none; position: relative; }
.ck-step.done .ck-step-mark::before { content: "✓"; color: var(--green); font-size: 12px; line-height: 12px; position: absolute; }
.ck-step.live .ck-step-mark { border: 2px solid var(--green); border-right-color: transparent; animation: ckspin .9s linear infinite; }
.ck-step.live span:last-child { color: var(--ink); }
@keyframes ckspin { to { transform: rotate(360deg); } }
.ck-answer { display: flex; flex-direction: column; gap: 8px; }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-message a.ck-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.ck-message a.ck-chip:hover { color: var(--ink); }
.ck-message a.ck-ref { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.ck-message a.ck-ref:hover { border-color: var(--green); }
.ck-ref-num { color: var(--green); font-weight: 500; }
.ck-title, .ck-proposal { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ck-title-text { margin: 0; font-size: 14px; font-weight: 500; }
.ck-title .cta, .ck-proposal .ck-button { align-self: flex-start; font-size: 13px; }
.ck-title .err:empty { display: none; }
.ck-proposal { font-size: 12px; }
.ck-proposal .ck-observed { background: var(--surface); border-radius: 8px; padding: 10px 12px; color: var(--ink); max-height: 220px; }
.creator-chat > .ck-hint { margin: 0 20px 8px; }
.creator-composer { padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.creator-composer-box { display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 6px 6px 16px; }
.creator-composer-box:focus-within { border-color: var(--ring); }
.creator-composer textarea { flex: 1; resize: none; background: transparent; border: 0; outline: 0; color: var(--ink);
  font: 14px/1.5 var(--sans); padding: 7px 0; max-height: 160px; min-height: 0; box-sizing: border-box; }
.creator-composer textarea::placeholder { color: var(--muted); opacity: 1; }
.creator-send { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--green); color: var(--green-ink); cursor: pointer; padding: 0; }
.creator-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.creator-send:disabled { opacity: .4; cursor: default; }
.creator-chat :focus-visible, .creator-chat-rail:focus-visible, .creator-chat-bar:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (max-width: 800px) {
  .creator-shell, .creator-shell.chat-folded { padding: 16px 16px 88px; }
  .creator-chat, .creator-shell.chat-folded .creator-chat { display: none; top: 12vh; width: auto; left: 0; border-left: 0;
    border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); }
  .creator-shell.chat-open .creator-chat { display: flex; }
  .creator-shell.chat-folded .creator-chat-rail { display: none; }
  .creator-chat-fold { display: none; }
  .creator-chat-close { display: grid; width: 44px; height: 44px; }
  .creator-chat-bar { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 19; font: inherit; font-size: 15px;
    font-weight: 500; padding: 14px 18px; min-height: 48px; border-radius: 999px; text-align: left; cursor: pointer;
    background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
  .creator-shell.chat-open .creator-chat-bar { display: none; }
  .creator-send { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ck-step.live .ck-step-mark { animation: none; } }

/* Analytics as icons (docs/workspaces.md, "The look"). */
.anico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.anbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer; list-style: none;
  color: var(--green-ink); background: var(--green); border: 1px solid transparent; text-decoration: none; }
.anbtn::-webkit-details-marker { display: none; }
.anbtn:hover { filter: brightness(1.08); }
.anbtn:focus-visible, .anlock:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ws .bhead > .anbtn { margin-left: auto; }
.anlock { margin: auto 0 4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
a.anlock:hover { color: var(--green); border-color: var(--green); }
.dan:has(> .anbtn:only-child) { background: none; border: 0; padding: 0; }

/* Text fields show focus once, in their own shape (docs/brand-guidelines.md). */
input:focus-visible, textarea:focus-visible, .ws .bfield:focus { outline: none; }
.ws .bfield:focus, .creator-knowledge textarea:focus, .notebox textarea:focus {
  border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent); }
.creator-composer textarea:focus { outline: none; box-shadow: none; }
.creator-composer-box { transition: border-color .15s, box-shadow .15s; }
.creator-composer-box:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent); }
@media (prefers-reduced-motion: reduce) { .creator-composer-box { transition: none; } }

/* Top right: Channels, then the feedback icon whose form opens under it (docs/workspaces.md, "The look"). */
.creator-brand { justify-content: flex-start; }
.creator-brand > .logo { margin-right: auto; }
.creator-feedback-spot { position: relative; }
.creator-feedback-icon { width: 40px; height: 40px; border-radius: 50%; }
.creator-feedback-icon svg { width: 18px; height: 18px; }
.creator-feedback-icon[aria-expanded="true"] { color: var(--ink); border-color: var(--ring); }
.creator-feedback-spot .creator-feedback { position: absolute; right: 0; top: 48px; z-index: 30; width: min(340px, calc(100vw - 32px));
  box-sizing: border-box; margin: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.account-disconnect { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-top: 1px solid var(--line);
  width: 100%; text-align: left; padding: 10px 2px 2px; margin-top: 6px; cursor: pointer; }
.account-disconnect:hover { color: var(--ink); }

/* Google sign-in (docs/creators.md, "Google accounts") */
.account-user { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.account-name { display: block; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.account-email { display: block; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.account-view-only { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.account-signout { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 0; white-space: nowrap; }
.account-signout:hover { color: var(--ink); }
.account-admin { font-size: 12px; color: var(--muted); padding: 6px 0; white-space: nowrap; }
.account-signin { display: block; box-sizing: border-box; width: 100%; padding: 9px 12px; border-radius: 10px; background: var(--green); color: var(--green-ink); font: 600 13px var(--sans); text-decoration: none; text-align: left; }
.ck-signin { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 20px 16px; }
.creator-knowledge .ck-signin { margin: 16px 0; }
.ck-signin .cta { text-decoration: none; }
.ck-signin[hidden] { display: none; }
.signin-dialog { max-width: min(360px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); text-align: left; }
.signin-dialog::backdrop { background: #0008; }
.signin-why { margin: 0 0 16px; font: 15px/1.5 var(--sans); }
.signin-actions { display: flex; align-items: center; gap: 16px; }
.signin-actions .cta { text-decoration: none; }

/* Chat turns with pictures (docs/creators.md, "Pictures"). */
.ck-message { flex-direction: row; align-items: flex-start; gap: 10px; }
.ck-message.user { flex-direction: row-reverse; max-width: 88%; }
.ck-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-message.user .ck-body { align-items: flex-end; }
.ck-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; box-sizing: border-box; }
.ck-avatar-bot { display: grid; place-items: center; background: var(--green); }
.ck-avatar-bot svg { width: 16px; height: 16px; }
.ck-avatar-user { display: grid; place-items: center; object-fit: cover; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 12px; font-weight: 600; }
.creator-chat-head .ck-avatar { width: 32px; height: 32px; }
.creator-chat-head .ck-avatar-bot svg { width: 18px; height: 18px; }
.bbrain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; }
.bbrain .cta:disabled { cursor: default; }
.bbrain .berr { flex-basis: 100%; margin: 0; }

/* The plans (docs/creators.md, section 1b). */
.plan-mark { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: none;
  color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; }
.plan-mark:not(.plan-paid) { border-color: var(--green); color: var(--green); }
.plan-mark:hover { filter: brightness(1.08); }
.plan-mark:focus-visible, .plan-upgrade:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ws .bhead > .plan-mark { margin-left: auto; }
.ws .bhead > .anbtn + .plan-mark { margin-left: 12px; }
.plan-dialog { max-width: min(560px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--ink); text-align: left; }
.plan-dialog::backdrop { background: #0008; }
.plan-title { margin: 0 0 8px; font: 600 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.plan-dialog p { margin: 0 0 12px; font: 15px/1.5 var(--sans); }
.plan-price { font-weight: 600; }
.plan-lines { margin: 0 0 12px; padding-left: 18px; font: 15px/1.6 var(--sans); }
.plan-terms { color: var(--muted); }
.plan-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.plan-error:empty { display: none; }
.plan-error { margin: 12px 0 0; color: var(--bad); }
.plan-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 12px; }
.plan-tier { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.plan-tier h3 { margin: 0 0 4px; font: 600 16px/1.2 var(--sans); }
.plan-tier .plan-lines { font-size: 14px; }
@media (max-width: 520px) { .plan-tiers { grid-template-columns: 1fr; } }

/* Powered by Telarchy sits right after the Feedglade logo; the rest of the brand row stays pushed right (docs/brand.md). */
.creator-brand > .logo:has(+ .powered) { margin-right: 0; }
@media (max-width: 640px) {
  .creator-brand { flex-wrap: wrap; row-gap: 2px; }
  .creator-brand > .logo:has(+ .powered) { margin-right: auto; }
  .creator-brand > .powered { order: 9; flex-basis: 100%; margin: 0; }
}

/* Ideas under a recent video (docs/creators.md, "Ideas for your recent videos") */
.ws .brecent { margin: 8px 0 0; display: grid; gap: 6px; }
.ws .brecent .bidea-row { padding: 8px 12px; gap: 4px; }
.ws .brecent .bkind { font-size: 11px; }
.ws .brecent .bt { font-size: 14px; line-height: 1.35; }
.ws .brecent-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ws .brecent-foot .bchips { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ws .brecent-foot .bchip { padding: 3px 8px; font-size: 12px; }
.ws .brecent-foot .bactions { margin: 0; }
.ws .brecent-foot .bans { width: 30px; height: 30px; }
@media (max-width: 720px) { .ws .brecent { margin-left: 0; } }

/* the small link to a move's proposal on Telarchy (docs/creators.md, "Moves on Telarchy") */
.btele { display: inline-flex; align-items: center; margin-left: 6px; color: var(--muted, #888); opacity: .7; vertical-align: middle; }
.btele:hover, .btele:focus-visible { opacity: 1; color: var(--ink, inherit); }

/* never a blank page: the frame while a page loads (docs/creators.md, "The page") */
.boot { max-width: 960px; margin: 0 auto; padding: 28px 16px; color: var(--ink); }
.boot .logo { display: inline-block; margin-bottom: 28px; }
.boothead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 22px; }
.bootpic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.bootline { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.bootph { height: 112px; margin-top: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  animation: bootpulse 1.4s ease-in-out infinite; }
.bootph:nth-child(odd) { height: 72px; }
@keyframes bootpulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bootph { animation: none; } }

/* what a suggested video could be about: its premise and outline keep their line breaks (docs/workspaces.md) */
.babout { white-space: pre-line; }
/* "A question for you" (docs/creators.md 3b, "Questions for you"): above Suggestions, left aligned */
.ws .bq { margin-top: 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: left; }
.ws .bq-lbl { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--green); }
.ws .bq-text { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.ws .bq-why { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ws .bq-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ws .bq-field { box-sizing: border-box; width: 100%; min-height: 64px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); resize: vertical; }
.ws .bq-field:focus { outline: none; border-color: var(--ring); }
.ws .bq-acts { display: flex; align-items: center; gap: 16px; }
.ws .bq-answer { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green); color: var(--green-ink);
  font: 600 15px var(--sans); cursor: pointer; }
.ws .bq-answer:disabled, .ws .bq-skip:disabled { opacity: .6; cursor: default; }
.ws .bq-skip { font-size: 14px; color: var(--muted); }
.ws .bq-saved { margin: 48px 0 0; font-size: 14px; color: var(--muted); }
.ws .bq-saved + .bq { margin-top: 12px; }
@media (max-width: 560px) {
  .ws .bq { margin-top: 36px; padding: 18px 16px; }
  .ws .bq-text { font-size: 18px; }
}

/* The account page (docs/creators.md, 1b "Your account"). */
.account-link { font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 6px 0; }
.account-link:hover { color: var(--ink); }
.acct { max-width: 720px; margin: 24px auto 64px; text-align: left; }
.acct-title { margin: 0 0 8px; font: 700 28px/1.2 var(--sans); letter-spacing: -0.01em; }
.acct-who { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.acct-id { display: flex; flex-direction: column; min-width: 0; }
.acct-name { font-weight: 600; overflow-wrap: anywhere; }
.acct-email { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.acct-sec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.acct-sec h2 { margin: 0 0 12px; font: 600 18px/1.3 var(--sans); }
.acct-sec h3 { margin: 20px 0 8px; font: 600 14px/1.3 var(--sans); color: var(--muted); }
.acct-channel, .acct-plan-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.acct-channel + .acct-channel { border-top: 1px solid var(--line); }
.acct-channel img { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.acct-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.acct-channel-name { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.acct-channel-name:hover { text-decoration: underline; }
.acct-plan { font-size: 14px; }
.acct-when, .acct-empty { font-size: 13px; color: var(--muted); }
.acct-empty { margin: 0 0 12px; }
.acct-invoice { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; font-size: 14px; }
.acct-invoice + .acct-invoice { border-top: 1px solid var(--line); }
.acct-date { color: var(--muted); }
.acct-amount { font-variant-numeric: tabular-nums; }
.acct-invoice a { color: var(--ink); }
.acct-error { color: var(--red, #e5484d); font-size: 14px; }
@media (max-width: 560px) {
  .acct { margin-top: 12px; }
}

/* your own decision (docs/creators.md, "Your own decision") */
.bown { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; padding: 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); }
.bown-l { font-weight: 600; font-size: 15px; }
.bown-row { display: flex; gap: 10px; }
.bown-in { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; }
.bown-go { flex: none; white-space: nowrap; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--green); color: var(--green-ink);
  font: inherit; font-weight: 700; cursor: pointer; }
.bown-wait { color: var(--muted); }
/* Editing what an idea could be about (docs/workspaces.md) */
.baboutedit { margin-top: 8px; }
.baboutfield { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
  min-height: 180px; text-align: left; }
.babout-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.breforecast { margin-top: 6px; }


/* The web research, after the page is up (docs/creators.md, "Web research, after the page is up"). */
.webside { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.webside[hidden] { display: none; }
.webside .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none;
  animation: pulse 1.6s ease-in-out infinite; }
.webcard { max-width: none; margin: 14px 0 4px; animation: rise .35s ease both; }
.webcard .ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.webcard .gsub { font: 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.wbar { height: 3px; margin: 12px 0 6px; border-radius: 2px; background: var(--bar); overflow: hidden; }
.wbar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); background: var(--green); transition: width .9s ease; }
svg.wmap { display: block; width: 100%; height: auto; overflow: visible; margin: 4px 0 6px; }
.wmap .wme { fill: var(--ink); }
.wmap .wlink { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 1; animation: draw .7s ease both; }
.wmap .wnode { transform-box: fill-box; transform-origin: center; animation: rvpop .5s cubic-bezier(.2, .8, .2, 1) .35s both; }
.wmap .wnode circle { fill: var(--ink); }
.wmap .wnode.wsearch circle { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.wmap .wnode.wopen circle { fill: var(--green); }
.wmap .wnode text { font: 500 12.5px var(--sans); fill: var(--muted); }
.wknown { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.wknown.wfade { animation: fadein .6s ease both; }
.webcard .wlog { margin-top: 8px; }
.webcard.ending { animation: wend .4s ease 5.6s forwards; }
@keyframes wend { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .webcard, .wmap .wlink, .wmap .wnode, .wknown.wfade, .webside .pdot { animation: none !important; opacity: 1; transform: none; }
}
.stage > .bootph { width: 100%; max-width: 560px; height: 280px; margin: 0; }

/* Your growth: the change over the span and the span's dates (docs/creators.md) */
.kb-change { margin-left: 8px; color: var(--muted); font-size: 13px; }
.kb-axis { display: flex; justify-content: space-between; margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* The recording card (docs/analytics.md): small, bottom corner, never in the way. */
.fg-consent { position: fixed; z-index: 50; right: 16px; bottom: 16px; max-width: 320px; padding: 14px 16px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35); text-align: left; font-size: 14px; line-height: 1.45; }
.fg-consent p { margin: 0 0 10px; }
.fg-consent-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 640px) { .fg-consent { left: 16px; right: 16px; max-width: none; } }
