/* Kite: one stylesheet for the site, the client portal and the studio.
   Palette and "pressed" surfaces carried over from the Paper Kite marketing site. */

@font-face { font-family: "Gasoek One"; src: url("/fonts/gasoek-one/gasoek-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans/geist-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: oklch(0.21 0.012 60);
  --ink-2: oklch(0.32 0.012 60);
  --cream: oklch(0.975 0.01 85);
  --paper: oklch(0.955 0.013 82);
  --card: oklch(1 0 0);
  --muted: oklch(0.47 0.015 60);
  --faint: oklch(0.62 0.012 65);
  --border: oklch(0.88 0.015 75);
  --border-2: oklch(0.92 0.012 78);
  --edge: oklch(0.21 0.012 60 / 85%);
  --cobalt: oklch(0.885 0.055 255);
  --cobalt-deep: oklch(0.42 0.13 262);
  --tangerine: oklch(0.8 0.13 62);
  --tangerine-edge: oklch(0.6 0.15 50);
  --mint: oklch(0.92 0.07 160);
  --mint-edge: oklch(0.5 0.1 160);
  --butter: oklch(0.95 0.08 95);
  --butter-edge: oklch(0.55 0.11 85);
  --rose: oklch(0.91 0.06 10);
  --rose-edge: oklch(0.55 0.15 15);
  --sky: oklch(0.92 0.05 230);
  --sky-edge: oklch(0.5 0.1 240);
  --radius: 0.75rem;
  --radius-lg: 1.1rem;
  --shadow: 0 1px 2px oklch(0.21 0.012 60 / 6%), 0 8px 24px -12px oklch(0.21 0.012 60 / 18%);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; flex: none; vertical-align: -0.2em; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cobalt-deep); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.lead { font-size: 18px; color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- layout helpers ---------- */
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 10px); }
.row.wrap-ok { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: var(--gap, 16px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card.pad { padding: 18px; }
.pressed { border: 1px solid var(--edge); box-shadow: 0 2.5px 0 0 var(--edge); }
.pressed-lg { border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); }
.tone-mint { background: var(--mint); } .tone-butter { background: var(--butter); } .tone-rose { background: var(--rose); } .tone-sky { background: var(--sky); } .tone-cobalt { background: var(--cobalt); } .tone-tangerine { background: var(--tangerine); } .tone-paper { background: var(--paper); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--edge); box-shadow: 0 2.5px 0 0 var(--edge); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(2px); box-shadow: 0 0.5px 0 0 var(--edge); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--tangerine); }
.btn-primary:hover { background: oklch(0.83 0.13 65); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); }
.btn-mint { background: var(--mint); }
.btn-ghost { border-color: transparent; box-shadow: none; background: transparent; }
.btn-ghost:hover { background: oklch(0.21 0.012 60 / 6%); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.link { color: var(--cobalt-deep); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- pills & badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill.plain::before { display: none; }
.st-review { background: var(--butter); color: oklch(0.42 0.1 80); }
.st-changes { background: var(--rose); color: var(--rose-edge); }
.st-approved { background: var(--mint); color: var(--mint-edge); }
.st-scheduled { background: var(--sky); color: var(--sky-edge); }
.st-published { background: oklch(0.93 0.03 262); color: var(--cobalt-deep); }
.st-making { background: var(--paper); color: var(--muted); }
.st-failed { background: oklch(0.88 0.09 25); color: oklch(0.45 0.17 25); }
.st-missed { background: oklch(0.88 0.09 25); color: oklch(0.45 0.17 25); }
.st-removed, .st-paused { background: var(--paper); color: var(--muted); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tangerine); color: var(--ink); font-size: 12px; font-weight: 700; border: 1px solid var(--edge); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--paper); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.demo-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--butter); border: 1px solid var(--edge); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- channel icons ---------- */
.ch { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--cream); flex: none; }
.ch svg { margin: 0; vertical-align: 0; }
.ch svg { width: 58%; height: 58%; }
.ch-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.ch-tiktok { background: #000; color: #fff; }
.ch-gmb { background: #fff; color: #4285f4; box-shadow: inset 0 0 0 1px var(--border); }
.ch-facebook { background: transparent; color: #0866ff; }
.ch.ch-facebook svg, .ch.ch-youtube svg { width: 100% !important; height: 100% !important; }
.ch-youtube { background: transparent; color: #ff0000; }
.ch-linkedin { background: #0a66c2; color: #fff; }
.chs { display: inline-flex; gap: 4px; }

/* ---------- workspace avatar ---------- */
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-family: var(--serif); font-size: 24px; line-height: 1; flex: none; border: 1px solid var(--edge); padding-top: 2px; }
.avatar.sm { width: 30px; height: 30px; font-size: 17px; border-radius: 9px; }
.avatar.lg { width: 56px; height: 56px; font-size: 32px; border-radius: 16px; }

/* ---------- demo strip ---------- */
.demo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; padding: 7px 16px; background: var(--ink); color: var(--cream); font-size: 13px; text-align: center; }
.demo-strip a { color: var(--tangerine); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .demo-strip { font-size: 12px; } .demo-strip a + a { display: none; } }
.demo-strip a:hover { text-decoration: underline; }

/* =========================================================
   App shell (portal + studio)
   ========================================================= */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; border-right: 1px solid var(--border); background: var(--paper); overflow-y: auto; }
.side-ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--border); text-decoration: none; }
.side-ws > svg { width: 34px; height: 34px; }
.side-ws b { display: block; font-size: 15px; line-height: 1.2; }
.side-ws div span { display: block; font-size: 12.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.nav a:hover { background: oklch(0.21 0.012 60 / 5%); }
.nav a.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; }
.nav a.on svg { color: var(--ink); }
.nav a .badge { margin-left: auto; }
.nav-label { padding: 12px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); text-decoration: none; }
.side-foot svg { width: 22px; height: 22px; }
.main { min-width: 0; padding: 28px clamp(16px, 4vw, 44px) 64px; }
.main-inner { max-width: 1080px; margin-inline: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.section-head h2 { font-size: 18px; font-weight: 650; }
.topbar { display: none; }
.tabbar { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: oklch(0.975 0.01 85 / 88%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-2); }
  .topbar b { font-size: 15px; line-height: 1.2; }
  .topbar div span { display: block; font-size: 12px; color: var(--muted); }
  .topbar > svg { width: 28px; height: 28px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; background: var(--card); border: 1px solid var(--edge); box-shadow: 0 3px 0 0 var(--edge), var(--shadow); border-radius: 22px; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 5px; border-radius: 16px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--ink); background: var(--paper); }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .page-head { margin-bottom: 16px; }
  .section-head { margin-top: 24px; }
}

/* ---------- KPI tiles ---------- */
.kpi { padding: 16px 16px 14px; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: var(--font); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-size: clamp(28px, 4vw, 38px); line-height: 1; margin-top: 10px; }
.kpi-foot { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.delta { font-weight: 700; }
.delta.up { color: var(--mint-edge); }
.delta.down { color: var(--rose-edge); }

/* =========================================================
   Post previews
   ========================================================= */
.frame { position: relative; overflow: hidden; background: #0d0b0a; border-radius: 14px; isolation: isolate; }
.frame-tiktok { aspect-ratio: 9 / 16; }
.frame-instagram, .frame-facebook { aspect-ratio: 4 / 5; }
.frame-gmb, .frame-wide { aspect-ratio: 4 / 3; }
.frame-square { aspect-ratio: 1; }
.frame > img, .frame > video, .frame .slides img { width: 100%; height: 100%; object-fit: cover; }
.frame .slides { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.frame .slides::-webkit-scrollbar { display: none; }
.frame .slides img { flex: 0 0 100%; scroll-snap-align: center; }
.frame .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; z-index: 2; pointer-events: none; }
.frame .dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.45; }
.frame .dots i.on { opacity: 1; }
.frame .count { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 12px; font-weight: 600; }
.frame .empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: oklch(0.8 0.01 80); font-size: 14px; text-align: center; padding: 20px; background: repeating-linear-gradient(135deg, #1a1714 0 12px, #1f1b18 12px 24px); }
.frame .empty svg { width: 28px; height: 28px; margin: 0 auto; opacity: 0.8; }
.frame .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.frame .play span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgb(255 255 255 / 88%); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 35%); }
.frame .play svg { width: 24px; height: 24px; margin-left: 3px; }
.frame.playing .play { opacity: 0; }
.frame .tt-ui { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 50px 54px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / 62%)); color: #fff; font-size: 12.5px; line-height: 1.35; pointer-events: none; }
.frame .tt-ui b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.frame .tt-rail { position: absolute; right: 8px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: center; color: #fff; pointer-events: none; }
.frame .tt-rail svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 40%)); }
.frame .tt-rail i { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; }
.frame .ai-tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 11px; font-weight: 600; }

.ig-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.ig-head .avatar { width: 30px; height: 30px; font-size: 16px; border-radius: 50%; }
.ig-actions { display: flex; gap: 14px; padding: 10px 12px 2px; }
.ig-actions svg { width: 23px; height: 23px; }
.ig-actions .save { margin-left: auto; }

.post { overflow: hidden; }
.post-cap { padding: 12px 14px 0; font-size: 14.5px; line-height: 1.45; white-space: pre-line; }
.post-cap b { font-weight: 650; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px 14px; color: var(--muted); font-size: 13px; }
.post-meta svg { width: 15px; height: 15px; }
.gmb-card { padding: 12px 14px 0; }
.gmb-card .gmb-btn { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: #1a73e8; font-size: 13.5px; font-weight: 600; }

/* =========================================================
   Portal pages
   ========================================================= */
.hello { margin-bottom: 18px; }
.hello h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; }
.hello p { color: var(--muted); margin-top: 4px; }

.action-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border-radius: 22px; background: var(--butter); border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); text-decoration: none; }
.action-card h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.action-card p { color: var(--ink-2); margin-top: 6px; }
.action-card .thumbs { display: flex; }
.action-card .thumbs img { width: 62px; height: 84px; object-fit: cover; border-radius: 10px; border: 2px solid var(--butter); margin-left: -18px; box-shadow: 0 4px 10px rgb(0 0 0 / 18%); }
.action-card .thumbs img:first-child { margin-left: 0; transform: rotate(-5deg); }
.action-card .thumbs img:nth-child(2) { transform: rotate(2deg); }
.action-card .thumbs img:nth-child(3) { transform: rotate(6deg); }
.action-card.calm { background: var(--mint); }
@media (max-width: 560px) { .action-card { grid-template-columns: 1fr; } .action-card .thumbs { order: -1; } }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-2); text-decoration: none; }
.list-item:first-child { border-top: 0; }
.list-item .thumb { width: 46px; height: 58px; border-radius: 9px; object-fit: cover; flex: none; background: var(--paper); }
.list-item .thumb.blank { display: grid; place-items: center; color: var(--faint); }
.list-item .thumb.blank svg { width: 18px; height: 18px; }
.list-item .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.list-item .s { font-size: 13px; color: var(--muted); margin-top: 2px; }

.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan-list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--tangerine-edge); }

.upload-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: var(--sky); border: 1px solid var(--edge); }
.upload-card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--card); border: 1px solid var(--edge); flex: none; }
.upload-card .icon svg { width: 22px; height: 22px; }

/* notices: a post that needs its owner, with the reason */
.notices { display: flex; flex-direction: column; gap: 8px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); font-size: 14.5px; line-height: 1.35; text-decoration: none; color: var(--ink); }
.notice > span { flex: 1; min-width: 0; }
.notice svg { width: 17px; height: 17px; }
.notice > svg:last-child { color: var(--faint); }
.notice.bad { background: oklch(0.955 0.03 25); border-color: oklch(0.55 0.17 25 / 30%); }
.notice.bad > svg:first-child { color: oklch(0.5 0.17 25); }
.notice.wait { background: var(--butter); border-color: oklch(0.55 0.11 85 / 35%); }
.notice:hover { border-color: var(--edge); }

/* one post */
.post-state { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--border); font-size: 14.5px; }
.post-state svg { margin-top: 2px; }
.post-state.ok { background: var(--sky); border-color: oklch(0.5 0.1 240 / 25%); }
.post-state.wait { background: var(--butter); border-color: oklch(0.55 0.11 85 / 35%); }
.post-state.bad { background: oklch(0.955 0.03 25); border-color: oklch(0.55 0.17 25 / 30%); }
.post-page { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.post-view .frame { margin: 0; }
.post-form .post-cap { white-space: pre-wrap; }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.review-edit { display: block; text-align: center; padding: 0 14px 14px; }
.suggest-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 2px; padding: 9px 11px; border-radius: 12px; background: var(--paper); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.suggest-line svg { width: 16px; height: 16px; margin-top: 2px; color: var(--tangerine-edge); }
.suggest-line button { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13.5px; }
.pick-photos.many { flex-wrap: wrap; overflow: visible; }
.connect-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.connect-box p { flex: 1; min-width: 240px; }
@media (max-width: 820px) { .post-page { grid-template-columns: 1fr; } .post-view { max-width: 340px; } }

/* the week: what the studio planned, waiting for the owner's yes */
.week-card { padding: 20px; border-radius: 22px; background: var(--butter); border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); }
.week-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.week-head h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.week-head p { color: var(--ink-2); margin-top: 6px; max-width: 46em; }
.week-posts { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.week-post { flex: none; width: 148px; display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--edge); text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.week-post img, .week-post .blank { width: 100%; height: 132px; border-radius: 9px; object-fit: cover; background: var(--paper); }
.week-post .blank { display: grid; place-items: center; color: var(--faint); }
.week-post .t { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.week-post .ch { width: 17px; height: 17px; border-radius: 5px; }
.week-post .ch svg { width: 10px; height: 10px; }
.week-card.planning { background: var(--sky); }
.spinner { display: inline-block; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%; border: 2.5px solid var(--sky-edge); border-top-color: transparent; vertical-align: -1px; animation: spin 0.8s linear infinite; }

/* the kick-off: one question at a time, then what was understood */
.kickoff { max-width: 680px; }
.kick-progress { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; margin-bottom: 18px; }
.kick-progress i { display: block; height: 100%; background: var(--tangerine); border-radius: 999px; transition: width 0.25s ease; }
.kick-step + .kick-step { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-2); }
.kickoff.js .kick-step { display: none; margin: 0; padding: 0; border: 0; }
.kickoff.js .kick-step.on { display: block; }
.kick-step h2 { font-size: clamp(21px, 2.8vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; }
.kick-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.kick-review { max-width: 680px; }
.kick-review h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.kick-review h3 { font-size: 17px; margin: 18px 0 2px; }
.kick-review .field { margin-top: 14px; }
.fact-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.fact-row { display: flex; align-items: center; gap: 10px; }
.fact-row input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--ink); }
.fact-row:has(input[type="checkbox"]:checked) .input { border-color: var(--mint-edge); background: oklch(0.975 0.03 160); }

/* getting started, and the brand kit's lists */
.setup ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.setup li a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.setup li a > span:nth-child(2) { flex: 1; min-width: 0; }
.setup li a > svg { color: var(--faint); }
.setup .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; }
.setup li.done .tick { background: var(--mint); border-color: var(--mint-edge); color: var(--mint-edge); }
.setup li.done .tick svg { width: 13px; height: 13px; }
.setup li.done b { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--border); }
.setup li.done .small { display: none; }
.setup-bar { width: 120px; height: 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); overflow: hidden; flex: none; }
.setup-bar i { display: block; height: 100%; background: var(--mint-edge); }
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.facts li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-2); font-size: 15px; line-height: 1.35; }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts .x { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--faint); cursor: pointer; flex: none; }
.facts .x:hover { background: var(--paper); color: var(--ink); }
.facts .x svg { width: 15px; height: 15px; }
.color { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.color input { width: 38px; height: 38px; padding: 2px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.review-note svg { width: 15px; height: 15px; vertical-align: -0.15em; }
.weekly { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; background: var(--paper); }
.weekly .grow { min-width: 260px; }
.weekly svg { width: 14px; height: 14px; }
.weekly-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weekly-actions .select { width: auto; min-height: 38px; padding: 4px 10px; display: inline-block; }
.system { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 22px; }
.system > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.system > div .small { grid-column: 1 / -1; }

/* review */
.review-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-progress .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); overflow: hidden; }
.review-progress .bar i { display: block; height: 100%; background: var(--tangerine); border-radius: 999px; transition: width 0.35s ease; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.review-card { display: flex; flex-direction: column; transition: transform 0.35s ease, opacity 0.35s ease; }
.review-card.leaving { opacity: 0; transform: translateY(-10px) scale(0.97); }
.review-card .frame { margin: 0 12px; }
.review-card .post-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 14px 10px; }
.review-card .post-head b { font-size: 15px; }
.review-why { margin: 12px 14px 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }
.review-why svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tangerine-edge); }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; margin-top: auto; }
.change-box { display: none; padding: 0 14px 14px; }
.review-card.asking .change-box { display: block; }
.review-card.asking .review-actions { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { min-height: 32px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; }
.chip:hover { border-color: var(--edge); }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.review-note { margin: 12px 14px 0; padding: 10px 12px; border-radius: 12px; background: var(--rose); font-size: 13.5px; }
.done { text-align: center; padding: 48px 20px; }
.done .big { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; background: var(--mint); border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); }
.done .big svg { width: 36px; height: 36px; }
.done h2 { font-size: 26px; font-weight: 700; }
.done p { color: var(--muted); margin-top: 6px; }

/* calendar: week grid (desktop) and list (phone) */
.cal-week { margin-bottom: 8px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head b { font-size: 17px; }
.tgrid { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); grid-template-rows: 54px calc(var(--hours) * var(--hour) + 20px); border: 1px solid var(--border); border-radius: 18px; background: var(--card); overflow: hidden; }
.tg-corner { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 8px 8px 0; border-bottom: 1px solid var(--border); font-size: 10.5px; color: var(--faint); font-weight: 600; }
.tg-head { position: relative; display: flex; align-items: baseline; gap: 6px; padding: 14px 10px 0; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border-2); font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tg-head b { font-size: 19px; color: var(--ink); letter-spacing: 0; }
.tg-head.today b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 10px; background: var(--tangerine); border: 1px solid var(--edge); }
.tg-add { position: absolute; right: 8px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--faint); text-decoration: none; }
.tg-add:hover { background: var(--paper); color: var(--ink); }
.tg-add svg { width: 15px; height: 15px; }
.tg-gutter { position: relative; margin-top: 10px; }
.tg-gutter span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.tg-day { position: relative; margin-top: 10px; border-left: 1px solid var(--border-2); background-image: repeating-linear-gradient(to bottom, var(--border-2) 0 1px, transparent 1px calc(var(--hour) * 2)), repeating-linear-gradient(to bottom, oklch(0.21 0.012 60 / 3.5%) 0 1px, transparent 1px var(--hour)); }
.tg-day.past { background-color: oklch(0.975 0.006 85); }
.tg-day.today { background-color: oklch(0.985 0.02 70); }
.tg-now { position: absolute; z-index: 3; left: 0; right: 0; height: 2px; background: var(--tangerine-edge); }
.tg-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine-edge); }
.tg-ev { position: absolute; z-index: 2; height: calc(var(--hour) * 1.8 - 4px); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; padding: 6px 7px 6px 8px; border-radius: 10px; background: var(--sky); border: 1px solid oklch(0.5 0.1 240 / 22%); box-shadow: inset 3px 0 0 var(--sky-edge); overflow: hidden; text-decoration: none; color: var(--ink); font-size: 11px; line-height: 1.2; }
.tg-ev:hover { border-color: var(--edge); z-index: 4; }
.tg-ev img, .tg-ev .blank { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; background: var(--paper); }
.tg-ev .blank { display: grid; place-items: center; color: var(--faint); }
.tg-ev .t { font-weight: 700; color: var(--sky-edge); font-variant-numeric: tabular-nums; }
.tg-ev b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 3px; font-size: 12px; }
.tg-ev .ch { width: 15px; height: 15px; border-radius: 4px; }
.tg-ev .ch svg { width: 9px; height: 9px; }
.tg-ev[data-st="approved"] { background: var(--mint); border-color: oklch(0.5 0.1 160 / 25%); box-shadow: inset 3px 0 0 var(--mint-edge); }
.tg-ev[data-st="approved"] .t { color: var(--mint-edge); }
.tg-ev[data-st="review"], .tg-ev[data-st="changes"] { background: var(--butter); border-color: oklch(0.55 0.11 85 / 30%); box-shadow: inset 3px 0 0 oklch(0.7 0.12 80); }
.tg-ev[data-st="review"] .t, .tg-ev[data-st="changes"] .t { color: oklch(0.42 0.1 80); }
.tg-ev[data-st="published"] { background: oklch(0.95 0.025 262); border-color: oklch(0.42 0.13 262 / 20%); box-shadow: inset 3px 0 0 var(--cobalt-deep); }
.tg-ev[data-st="published"] .t { color: var(--cobalt-deep); }
.tg-ev[data-st="making"], .tg-ev[data-st="paused"] { background: var(--paper); border-color: var(--border); box-shadow: inset 3px 0 0 var(--faint); }
.tg-ev[data-st="paused"] .t, .tg-ev[data-st="making"] .t { color: var(--muted); }
.tg-ev[data-st="failed"], .tg-ev[data-st="missed"] { background: oklch(0.95 0.035 25); border-color: oklch(0.55 0.17 25 / 28%); box-shadow: inset 3px 0 0 oklch(0.55 0.17 25); }
.tg-ev[data-st="failed"] .t, .tg-ev[data-st="missed"] .t { color: oklch(0.45 0.17 25); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-list .week-strip, .cal-list > .section-head:first-of-type { display: none; }
@media (max-width: 900px) { .cal-week { display: none; } .cal-list .week-strip { display: grid; } .cal-list > .section-head:first-of-type { display: flex; } }

/* create */
.create-form .label { display: block; margin-bottom: 6px; }
.create-form .choice > span { gap: 6px; }
.create-form .choice .ch { width: 18px; height: 18px; border-radius: 5px; }
.create-form .choice .ch svg { width: 11px; height: 11px; }
.pick-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pick { position: relative; flex: none; width: 74px; height: 92px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--paper); }
.pick input { position: absolute; opacity: 0; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick.auto span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; font-size: 11.5px; font-weight: 650; text-align: center; padding: 6px; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: 0 2px 0 0 var(--edge); }
.pick:has(input:focus-visible) { outline: 2px solid var(--cobalt-deep); outline-offset: 2px; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.draft { overflow: hidden; display: flex; flex-direction: column; }
.draft > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.draft-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.draft-title { min-height: 40px; font-weight: 650; }
.draft-why { font-size: 13.5px; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.draft-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-checks span { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.draft-checks .ok { background: var(--mint); color: var(--mint-edge); }
.draft-checks .warn { background: var(--rose); color: var(--rose-edge); }
.create-card { background: var(--butter); }
@media (max-width: 900px) {
  .tabbar a.tab-main svg { width: 24px; height: 24px; padding: 3px; border-radius: 9px; background: var(--tangerine); border: 1px solid var(--edge); color: var(--ink); box-sizing: content-box; margin-top: -3px; }
}

/* calendar */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.week-strip a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); text-decoration: none; }
.week-strip a.today { border-color: var(--edge); box-shadow: 0 2.5px 0 0 var(--edge); background: var(--tangerine); }
.week-strip a small { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.week-strip a.today small { color: var(--ink); }
.week-strip a b { font-size: 18px; line-height: 1.1; }
.week-strip .dots { display: flex; gap: 3px; height: 6px; }
.week-strip .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-edge); }
.week-strip .dots i.p { background: var(--cobalt-deep); }
.week-strip .dots i.r { background: oklch(0.7 0.12 80); }
.day { margin-top: 22px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.day-head h3 { font-size: 16px; font-weight: 650; }
.day-head .today-badge { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tangerine-edge); }
.slot { display: grid; grid-template-columns: 54px 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); text-decoration: none; margin-bottom: 8px; }
.slot .time { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.slot img, .slot .blank { width: 52px; height: 64px; border-radius: 9px; object-fit: cover; background: var(--paper); }
.slot .blank { display: grid; place-items: center; color: var(--faint); }
.slot .t { font-weight: 600; line-height: 1.3; }
.slot .s { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.slot .ch { width: 20px; height: 20px; border-radius: 6px; }
.slot .ch svg { width: 12px; height: 12px; }
@media (max-width: 560px) { .slot { grid-template-columns: 44px 46px minmax(0, 1fr); } .slot .pill { grid-column: 3; justify-self: start; } .slot img, .slot .blank { width: 46px; height: 58px; } }
.empty-day { padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--border); color: var(--faint); font-size: 14px; }

/* results */
.chart { padding: 18px 18px 12px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 10px; height: 190px; margin-top: 18px; }
.bars .b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .b i { display: block; width: 100%; max-width: 54px; border-radius: 10px 10px 4px 4px; background: var(--cobalt); border: 1px solid var(--edge); min-height: 4px; }
.bars .b.now i { background: var(--tangerine); }
.bars .b span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bars .b em { font-style: normal; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.top-post { display: grid; grid-template-columns: 30px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border-2); }
.top-post:first-child { border-top: 0; }
.top-post .rank { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--faint); text-align: center; }
.top-post img, .top-post .blank { width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--paper); }
.top-post .v { text-align: right; }
.top-post .v b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.top-post .v span { font-size: 12px; color: var(--muted); }
.split-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.split-row .track { height: 12px; border-radius: 999px; background: var(--paper); overflow: hidden; border: 1px solid var(--border); }
.split-row .track i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.insights { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.insights li { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 15px; }
.sample-note { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

/* library */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--border); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 90%); font-size: 11.5px; font-weight: 600; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 20px; border-radius: 18px; border: 2px dashed oklch(0.21 0.012 60 / 30%); background: var(--card); text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.dropzone:hover, .dropzone.over { background: var(--sky); border-color: var(--edge); }
.dropzone svg { width: 30px; height: 30px; }
.dropzone input { display: none; }

/* brand */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.swatch i { display: block; height: 84px; border-bottom: 1px solid var(--border); }
.swatch div { padding: 10px 12px; font-size: 13.5px; }
.swatch code { color: var(--muted); font-size: 12.5px; }
.brand-hero { padding: 28px; border-radius: 22px; border: 1px solid var(--edge); }
.brand-hero .wordmark { font-family: var(--serif); font-size: clamp(36px, 6vw, 60px); line-height: 1; }
.voice-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.voice-list li { display: flex; gap: 10px; font-size: 15px; }
.voice-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* markdown blocks */
.md { font-size: 15.5px; line-height: 1.6; }
.md h2 { font-size: 20px; margin: 22px 0 8px; }
.md h3 { font-size: 16.5px; margin: 20px 0 6px; }
.md h4, .md h5 { font-size: 15px; margin: 16px 0 6px; }
.md p { margin: 8px 0; }
.md ul, .md ol { margin: 8px 0; padding-left: 22px; }
.md li { margin: 4px 0; }
.md code { padding: 1px 6px; border-radius: 6px; background: var(--paper); font-size: 0.9em; }
.md blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--tangerine); background: var(--paper); border-radius: 0 10px 10px 0; }
.md-table { overflow-x: auto; margin: 10px 0; }
.md table, .table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.md th, .md td, .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.md th, .table th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.md > :first-child { margin-top: 0; }

/* =========================================================
   Studio
   ========================================================= */
.studio .side { --mark-line: var(--cream); background: var(--ink); color: var(--cream); border-right: 0; }
.studio .side-ws { border-color: oklch(1 0 0 / 12%); }
.studio .side-ws div span, .studio .nav-label, .studio .side-foot { color: oklch(0.75 0.01 80); }
.studio .side-foot { border-color: oklch(1 0 0 / 12%); }
.studio .nav a { color: oklch(0.86 0.01 80); }
.studio .nav a svg { color: oklch(0.7 0.01 80); }
.studio .nav a:hover { background: oklch(1 0 0 / 7%); }
.studio .nav a.on { background: oklch(1 0 0 / 11%); color: #fff; box-shadow: none; }
.studio .nav a.on svg { color: var(--tangerine); }
.studio .topbar { --mark-line: var(--cream); background: oklch(0.21 0.012 60 / 94%); color: var(--cream); border-color: oklch(1 0 0 / 10%); }
.studio .topbar div span { color: oklch(0.75 0.01 80); }
.studio .tabbar { background: var(--ink); }
.studio .tabbar a { color: oklch(0.72 0.01 80); }
.studio .tabbar a.on { color: #fff; background: oklch(1 0 0 / 12%); }
.table-wrap { overflow-x: auto; }
.table td { font-size: 14.5px; }
.table img, .table .blank { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper); }
.table .blank { display: grid; place-items: center; color: var(--faint); }
.table tr:last-child td { border-bottom: 0; }
.table a.ws { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.table a.ws div span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.table tr.click:hover td { background: oklch(0.21 0.012 60 / 3%); }
.board { display: grid; grid-template-columns: repeat(6, minmax(168px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 10px; min-height: 160px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 650; font-size: 14px; }
.col-head span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; padding: 8px; margin-bottom: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); text-decoration: none; }
.tile:hover { border-color: var(--edge); }
.tile img, .tile .blank { width: 38px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--paper); }
.tile .avatar.sm { width: 20px; height: 20px; font-size: 12px; border-radius: 6px; }
.tile .blank { display: grid; place-items: center; color: var(--faint); }
.tile .t { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tile .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tile .w { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 116px 22px minmax(0, 1fr); gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--border-2); }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.timeline .ev { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--paper); }
.timeline .ev svg { width: 13px; height: 13px; }
.cmd { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--cream); font: 500 12.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; }
.cmd code { white-space: nowrap; flex: 1; }
.cmd button { flex: none; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid oklch(1 0 0 / 25%); background: transparent; color: var(--cream); font-size: 12px; cursor: pointer; }
.cmd button:hover { background: oklch(1 0 0 / 10%); }
.pipeline-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pipeline-steps div { padding: 14px; border-radius: 16px; border: 1px solid var(--edge); }
.pipeline-steps b { display: block; font-size: 15px; }
.pipeline-steps span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 860px) { .pipeline-steps { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Public site
   ========================================================= */
.site-head { position: sticky; top: 0; z-index: 40; background: oklch(0.975 0.01 85 / 90%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-2); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.cta-band { --mark-line: var(--cream); }
.logo span { font-family: var(--font); font-weight: 700; font-size: 25px; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; }
.site-nav { display: flex; gap: 22px; margin-left: 8px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.site-head .actions { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 860px) { .site-nav { display: none; } .site-head .actions .btn-ghost { display: none; } }

.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.hero.hero-center { text-align: center; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 1px 2px oklch(0.21 0.012 60 / 6%); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.hero-badge svg { width: 15px; height: 15px; color: var(--tangerine-edge); }
.hero.hero-center .wrap { display: block; }
.hero.hero-center .hero-copy { max-width: 960px; }
.hero.hero-center h1 { font-size: clamp(44px, 7vw, 96px); max-width: 13em; margin-inline: auto; }
.hero.hero-center h1 em { padding-right: 0.04em; white-space: nowrap; }
.hero.hero-center .lead { margin-inline: auto; max-width: 40em; }
.hero.hero-center .ctas, .hero.hero-center .fine { justify-content: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); }
.hero h1 em { color: var(--tangerine-edge); }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero .fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero .fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine svg { width: 15px; height: 15px; color: var(--mint-edge); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* hero product mockup */
.product { position: relative; left: 50%; transform: translateX(-50%); width: min(100vw - 32px, 1300px); margin-top: clamp(36px, 5vw, 56px); border-radius: 22px; border: 1px solid var(--edge); box-shadow: 0 5px 0 0 var(--edge), 0 50px 90px -50px oklch(0.21 0.012 60 / 55%); background: var(--card); overflow: hidden; text-align: left; }
.product-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--paper); }
.product-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.product-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 1px solid oklch(0.21 0.012 60 / 30%); }
.product-bar .title { font-weight: 650; font-size: 14px; }
.product-bar .avatar.sm { width: 26px; height: 26px; font-size: 15px; border-radius: 8px; }
.pbar-btn { min-height: 32px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.seg span { padding: 4px 10px; border-radius: 7px; color: var(--muted); }
.seg span.on { background: var(--ink); color: var(--cream); }
.product-body { display: grid; grid-template-columns: 158px minmax(0, 1fr) 300px; min-height: 480px; }
.product-side { border-right: 1px solid var(--border); padding: 14px 10px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.product-side .side-create { justify-content: center; margin-bottom: 10px; min-height: 36px; }
.product-side .item em { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--tangerine); border: 1px solid var(--edge); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; color: var(--ink); }
.ws-switch { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.ws-switch svg:first-child { width: 26px; height: 26px; }
.ws-switch b { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.ws-switch .muted { font-size: 12.5px; }
.ws-switch svg:last-child { width: 15px; height: 15px; color: var(--muted); }
.pbar-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; min-width: 200px; border-radius: 9px; background: var(--card); border: 1px solid var(--border); font-size: 13px; color: var(--faint); }
.pbar-search svg { width: 15px; height: 15px; }
.pbar-user { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cobalt); border: 1px solid var(--edge); font-size: 12px; font-weight: 700; }
.pcal { display: flex; flex-direction: column; min-width: 0; }
.pcal-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pcal-bar b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.pcal-nav { display: inline-flex; gap: 2px; }
.pcal-nav i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.pcal-nav svg { width: 15px; height: 15px; }
.chipish { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.product-side .item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.product-side .item svg { width: 16px; height: 16px; color: var(--muted); }
.product-side .item.on { background: var(--card); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); font-weight: 650; }
.ptime { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); grid-template-rows: 46px calc(var(--hours) * var(--hour) + 18px); min-width: 0; }
.ptime-corner { border-bottom: 1px solid var(--border); }
.ptime-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 8px 0; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border-2); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ptime-head b { font-size: 17px; color: var(--ink); letter-spacing: 0; }
.ptime-gutter { position: relative; margin-top: 9px; }
.ptime-gutter span { position: absolute; right: 7px; transform: translateY(-50%); font-size: 10.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ptime-day { position: relative; margin-top: 9px; border-left: 1px solid var(--border-2); background-image: repeating-linear-gradient(to bottom, var(--border-2) 0 1px, transparent 1px calc(var(--hour) * 2)), repeating-linear-gradient(to bottom, oklch(0.21 0.012 60 / 3.5%) 0 1px, transparent 1px var(--hour)); }
.pev { position: absolute; left: 4px; right: 4px; height: 78px; display: flex; flex-direction: column; padding: 6px 7px 6px 9px; border-radius: 9px; background: var(--sky); border: 1px solid oklch(0.5 0.1 240 / 25%); box-shadow: inset 3px 0 0 var(--sky-edge); overflow: hidden; font-size: 10.5px; line-height: 1.2; }
.pev .t { font-weight: 700; color: var(--sky-edge); font-variant-numeric: tabular-nums; }
.pev b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0 0; font-size: 11.5px; line-height: 1.22; color: var(--ink); }
.pev-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pev-foot img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / 70%); }
.pev .ch { width: 14px; height: 14px; border-radius: 4px; }
.pev .ch svg { width: 9px; height: 9px; }
.pev.review { background: var(--butter); border-color: oklch(0.55 0.11 85 / 30%); box-shadow: inset 3px 0 0 oklch(0.7 0.12 80); }
.pev.review .t { color: oklch(0.42 0.1 80); }
.pev.new { background: oklch(0.95 0.05 62); border-color: var(--tangerine-edge); box-shadow: inset 3px 0 0 var(--tangerine-edge), 0 8px 18px -8px oklch(0.6 0.15 50 / 55%); }
.pev.new .t { color: var(--tangerine-edge); }
[data-demo-loop] .pev.new { opacity: 0; transform: translateY(-6px) scale(0.92); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
[data-demo-loop].added .pev.new { opacity: 1; transform: none; }
.pc-new, .pc-wait { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; background: var(--tangerine); }
.pc-wait { background: var(--butter); }
.product-composer { display: flex; flex-direction: column; gap: 11px; padding: 16px; border-left: 1px solid var(--border); background: linear-gradient(180deg, oklch(0.965 0.035 70), var(--card) 42%); }
.pcomp-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pcomp-head svg { color: var(--tangerine-edge); }
.pcomp-prompt { min-height: 62px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); box-shadow: 0 2px 0 0 var(--edge); background: var(--card); font-size: 14px; line-height: 1.4; }
.pcomp-prompt .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; background: var(--ink); vertical-align: -0.18em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pcomp-using { display: flex; flex-wrap: wrap; gap: 6px; }
.pcomp-using span { padding: 3px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.pcomp-step { display: flex; align-items: center; gap: 8px; min-height: 18px; font-size: 12.5px; color: var(--muted); }
.pcomp-step i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tangerine-edge); border-top-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pcomp-result { overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.pcomp-result img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pcomp-result p { padding: 10px 12px 4px; font-size: 13px; line-height: 1.45; }
.pcomp-result .checks { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 12px 12px; }
.pcomp-result .checks span { padding: 3px 8px; border-radius: 999px; background: var(--mint); color: var(--mint-edge); font-size: 11px; font-weight: 700; }
.pcomp-result .checks span.time { background: var(--sky); color: var(--sky-edge); }
[data-demo-loop] .pcomp-result, [data-demo-loop] .pcomp-cta { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s, background 0.2s; }
[data-demo-loop].result .pcomp-result, [data-demo-loop].result .pcomp-cta { opacity: 1; transform: none; }
[data-demo-loop].added .pcomp-cta { background: var(--mint); color: var(--ink); }
@media (max-width: 1100px) { .product-body { grid-template-columns: minmax(0, 1fr) 290px; } .product-side { display: none; } }
@media (max-width: 760px) {
  .product-body { grid-template-columns: 1fr; }
  .product-composer { order: -1; border-left: 0; border-bottom: 1px solid var(--border); }
  .ptime { grid-template-columns: 40px repeat(7, 118px); overflow-x: auto; }
  .product-bar .seg, .product-bar .muted, .pbar-search, .pcal-bar .seg, .pcal-bar .chipish { display: none; }
  .pcal-bar b { white-space: nowrap; }
  .product { left: 0; transform: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { [data-demo-loop] .pev.new, [data-demo-loop] .pcomp-result, [data-demo-loop] .pcomp-cta { opacity: 1; transform: none; transition: none; } .pcomp-prompt .caret { animation: none; } }
.channels-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.channels-row > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.mini-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mini-cal div { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; border-radius: 10px; background: var(--card); border: 1px solid var(--border-2); min-height: 150px; }
.mini-cal small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.mini-cal i { display: block; height: 38px; border-radius: 7px; background: var(--sky); border-left: 3px solid var(--sky-edge); }
.mini-cal i.w { background: var(--butter); border-color: oklch(0.7 0.12 80); }
.mini-cal i.n { background: oklch(0.93 0.06 62); border-color: var(--tangerine-edge); }
.mini-draft { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.mini-draft img { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; }
.mini-draft p { font-size: 13px; line-height: 1.4; }
.dfy { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding: 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); }
.dfy h3 { font-size: 20px; font-weight: 700; }
.dfy p { margin-top: 4px; color: var(--ink-2); }

.band { padding: clamp(56px, 8vw, 100px) 0; }
.band-head { max-width: 760px; margin-bottom: 36px; }
.band-head h2 { font-size: clamp(34px, 4.8vw, 60px); }
.band-head p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 0; }
.step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 22px; border-radius: 22px; border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); min-height: 230px; }
.step .n { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; }
.step h3 { align-self: end; padding-top: 34px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.step p { align-self: start; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 14px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; grid-row: auto; grid-template-rows: auto; } }

.peek { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.peek-card { padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.peek-card h3 { font-size: 18px; font-weight: 700; }
.peek-card p { color: var(--muted); font-size: 15px; }
.peek-visual { border-radius: 16px; background: var(--paper); padding: 14px; border: 1px solid var(--border-2); min-height: 200px; }
@media (max-width: 860px) { .peek { grid-template-columns: 1fr; } }

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promise { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.promise .icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--edge); flex: none; }
.promise .icon svg { width: 20px; height: 20px; }
.promise h3 { font-size: 16.5px; font-weight: 700; }
.promise p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .promises { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan.custom { background: var(--paper); }
.plan.custom .price { font-size: 40px; }
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); }
.plan.hi { background: var(--tangerine); }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .price { font-family: var(--font); font-weight: 700; letter-spacing: -0.045em; font-size: 52px; line-height: 1; margin-top: 18px; }
.plan .price small { font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0; margin-left: 3px; color: var(--ink-2); }
.plan .blurb { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.plan ul { margin: 18px 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.plan li { display: flex; gap: 9px; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
@media (max-width: 620px) { .pricing { grid-template-columns: 1fr; } }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 650; font-size: 16.5px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

.cta-band { margin: 0 16px; border-radius: 32px; background: var(--ink); color: var(--cream); padding: clamp(40px, 7vw, 80px) 24px; text-align: center; }
.cta-band h2 { font-size: clamp(34px, 5.4vw, 64px); }
.cta-band p { margin: 14px auto 0; max-width: 34em; color: oklch(0.82 0.01 80); font-size: 18px; }
.cta-band .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cta-band .btn { border-color: var(--cream); box-shadow: 0 3px 0 0 oklch(0.6 0.01 80); }
.cta-band .btn-ghost { color: var(--cream); border-color: oklch(1 0 0 / 35%); box-shadow: none; }
.site-foot { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- forms ---------- */
.form-page { padding: clamp(28px, 5vw, 56px) 0 80px; }
.form-shell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.form-aside { position: sticky; top: 96px; }
.form-aside h1 { font-size: clamp(38px, 5.6vw, 64px); }
.form-aside .lead { margin-top: 16px; }
.form-aside ol { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.form-aside li { display: flex; gap: 12px; font-size: 15px; }
.form-aside li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--card); border: 1px solid var(--edge); font-size: 13.5px; flex: none; }
@media (max-width: 860px) { .form-shell { grid-template-columns: 1fr; } .form-aside { position: static; } }
.form { padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: var(--card); border: 1px solid var(--edge); box-shadow: 0 4px 0 0 var(--edge); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form fieldset + fieldset { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-2); }
.form legend { font-size: 17px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.input, .textarea, .select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--cream); font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--cobalt-deep); box-shadow: 0 0 0 3px oklch(0.42 0.13 262 / 15%); background: #fff; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--cream); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--cobalt-deep); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.error-box { padding: 12px 14px; border-radius: 12px; background: var(--rose); color: var(--rose-edge); font-weight: 600; margin-bottom: 16px; }

/* ---------- inside the studio (/showcase) ---------- */
.inside-link { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); box-shadow: 0 2.5px 0 0 var(--edge); text-decoration: none; font-size: 15px; line-height: 1.4; }
.inside-link > span { flex: 1; }
.inside-link b { display: block; font-size: 16px; }
.inside-link svg:first-child { width: 22px; height: 22px; color: var(--tangerine-edge); }
.sc-hero { padding: clamp(40px, 6vw, 72px) 0 28px; text-align: center; }
.sc-hero .lead { max-width: 40em; margin: 16px auto 0; }
.sc-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.sc-switch { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); flex-wrap: wrap; justify-content: center; }
.sc-switch a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.sc-switch a.on { background: var(--ink); color: var(--cream); }
.sc-nav { position: sticky; top: 64px; z-index: 30; background: oklch(0.975 0.01 85 / 92%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--border-2); }
.sc-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.sc-nav .wrap::-webkit-scrollbar { display: none; }
.sc-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sc-nav a span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1px solid var(--border); font-size: 11.5px; }
.sc-nav a:hover { background: var(--paper); }
.sc-band { scroll-margin-top: 110px; padding: clamp(44px, 6vw, 80px) 0; }
.sc-band .band-head { margin-bottom: 26px; }
.sc-band .band-head h2 { font-size: clamp(32px, 4.4vw, 54px); margin-top: 6px; }
.sc-sub { font-size: 19px; font-weight: 700; margin: 30px 0 12px; }
.sc-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--muted); }
.sc-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.sc-pipe { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sc-pipe li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.sc-pipe li b { font-size: 16px; color: var(--ink); }
.sc-pipe .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--cobalt); border: 1px solid var(--edge); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sc-pipe li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 2px; background: var(--edge); }
@media (max-width: 760px) { .sc-pipe { grid-template-columns: 1fr 1fr; } .sc-pipe li::after { display: none; } }

.sc-trends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sc-trend { display: flex; flex-direction: column; gap: 9px; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.sc-trend h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.sc-trend p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.sc-trend p b { color: var(--ink); }
.sc-trend-top { display: flex; align-items: center; gap: 6px; }
.sc-spark { width: 96px; height: 30px; color: var(--cobalt-deep); }
.sc-mom { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.sc-mom.rising { background: var(--mint); color: var(--mint-edge); }
.sc-mom.peaking { background: oklch(0.93 0.07 62); color: var(--tangerine-edge); }
.sc-mom.steady { background: var(--paper); color: var(--muted); }
.sc-meter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sc-meter i { flex: 1; height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.sc-meter i b { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.sc-meter em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-idea { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--butter); font-size: 14px; line-height: 1.4; }
.sc-idea svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tangerine-edge); }
.sc-effort { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sc-effort svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .sc-trends { grid-template-columns: 1fr; } }
.sc-moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sc-moment { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.sc-moment .d { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cobalt-deep); }
.sc-moment b { font-size: 16px; }
.sc-moment .sc-idea { margin-top: 4px; padding: 8px 10px; }
@media (max-width: 900px) { .sc-moments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sc-moments { grid-template-columns: 1fr; } }

.sc-break { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.sc-break-visual .frame { box-shadow: 0 18px 40px -18px rgb(0 0 0 / 45%); }
.sc-break-body h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.sc-break-body .chs { vertical-align: middle; margin-left: 4px; }
.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.sc-stats div { padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.sc-stats b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sc-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.sc-beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: beat; }
.sc-beats li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-2); font-size: 14px; line-height: 1.4; transition: background 0.2s, border-color 0.2s; }
.sc-beats li b { font-size: 14.5px; }
.sc-beats li > span:last-child { grid-column: 1 / -1; color: var(--ink-2); }
.sc-beats li .t { font-size: 12px; font-weight: 700; color: var(--cobalt-deep); font-variant-numeric: tabular-nums; align-self: center; }
.sc-beats li[data-from] { cursor: pointer; }
.sc-beats li.on { background: var(--butter); border-color: oklch(0.55 0.11 85 / 40%); }
.sc-lessons { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--mint); border: 1px solid oklch(0.5 0.1 160 / 25%); }
.sc-lessons ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-lessons li { display: flex; gap: 8px; font-size: 14.5px; }
.sc-lessons svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--mint-edge); }
@media (max-width: 760px) { .sc-break { grid-template-columns: 1fr; } .sc-break-visual { max-width: 300px; margin: 0 auto; width: 100%; } .sc-stats b { font-size: 21px; } }

.sc-ads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sc-ad { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.sc-ad h3 { font-size: 17px; font-weight: 700; padding-left: 34px; min-height: 26px; display: flex; align-items: center; }
.sc-ad .n { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--tangerine); border: 1px solid var(--edge); font-size: 13px; font-weight: 700; }
.sc-ad p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.sc-ad p b { color: var(--ink); }
.sc-winner { display: flex; gap: 10px; align-items: center; }
.sc-winner img { width: 64px; height: 86px; object-fit: cover; border-radius: 10px; flex: none; }
.sc-winner div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.sc-winner b { font-size: 15px; color: var(--ink); }
.sc-map { width: 100%; height: auto; display: block; }
.sc-map .land { fill: var(--paper); }
.sc-map .streets path { stroke: oklch(0.85 0.012 75); stroke-width: 1.2; fill: none; }
.sc-map .ring { fill: none; stroke: oklch(0.42 0.13 262 / 30%); stroke-width: 1.2; stroke-dasharray: 3 4; }
.sc-map .ring.on { fill: oklch(0.42 0.13 262 / 12%); stroke: var(--cobalt-deep); stroke-width: 2; stroke-dasharray: none; }
.sc-map .pin { fill: var(--tangerine-edge); stroke: #fff; stroke-width: 2; }
.sc-map .km { font: 700 13px var(--font); fill: var(--cobalt-deep); }
.sc-heat { display: grid; grid-template-columns: 34px repeat(6, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--muted); }
.sc-heat .h { display: grid; place-items: center; font-weight: 600; }
.sc-heat i { aspect-ratio: 1.6; border-radius: 4px; background: var(--paper); }
.sc-heat i.l1 { background: oklch(0.9 0.05 62); }
.sc-heat i.l2 { background: oklch(0.84 0.09 62); }
.sc-heat i.l3 { background: oklch(0.76 0.13 58); }
.sc-heat i.l4 { background: var(--tangerine-edge); }
.sc-budget { display: flex; align-items: baseline; gap: 8px; }
.sc-budget b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.sc-budget span { font-size: 13.5px; color: var(--muted); }
.sc-results { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sc-results div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border-2); font-size: 13.5px; }
.sc-results dt { color: var(--muted); }
.sc-results dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .sc-ads { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sc-ads { grid-template-columns: 1fr; } }

.sc-examples { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.sc-example { display: flex; flex-direction: column; gap: 12px; }
.sc-example-visual .frame { box-shadow: 0 14px 30px -16px rgb(0 0 0 / 45%); }
.sc-example-body { display: flex; flex-direction: column; gap: 6px; }
.sc-example-body h3 { font-size: 17px; font-weight: 700; }
.sc-example-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.sc-example-body .chs .ch { width: 20px; height: 20px; }
.sc-badge { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 11.5px; font-weight: 700; }
.sc-badge svg { width: 11px; height: 11px; }
.sc-caption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.sc-montage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: sc-kb calc(var(--n) * 2.2s) infinite; animation-delay: calc(var(--i) * 2.2s); }
@keyframes sc-kb { 0% { opacity: 0; transform: scale(1.02); } 2% { opacity: 1; } 12.5% { opacity: 1; } 15% { opacity: 0; transform: scale(1.14); } 100% { opacity: 0; transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .sc-montage img { animation: none; } .sc-montage img:first-child { opacity: 1; } }
.sc-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-story-bars { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; display: flex; gap: 4px; }
.sc-story-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 45%); }
.sc-story-bars i.on { background: #fff; }
.sc-poll { position: absolute; left: 14%; right: 14%; top: 22%; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 30%); color: var(--ink); text-align: center; }
.sc-poll b { font-size: 15px; }
.sc-poll .opt { position: relative; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: var(--paper); overflow: hidden; font-size: 13px; font-weight: 700; }
.sc-poll .opt i { position: absolute; inset: 0 auto 0 0; background: oklch(0.88 0.07 62); }
.sc-poll .opt em, .sc-poll .opt strong { position: relative; font-style: normal; }
@media (max-width: 1100px) { .sc-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sc-examples { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; } .sc-example { flex: 0 0 72%; scroll-snap-align: start; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.2s; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--mint); }
@media (min-width: 901px) { .toast { bottom: 28px; } }

/* =========================================================
   Make (HQ): recipes, starting a draft, the workbench
   ========================================================= */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.recipe { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--ink); }
a.recipe:hover, .recipe.on { border-color: var(--edge); box-shadow: 0 2.5px 0 0 var(--edge); }
.recipe b { font-size: 16.5px; letter-spacing: -0.01em; }
.recipe p { font-size: 14px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.recipe-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.recipe-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.recipe-kind svg { width: 15px; height: 15px; }
.recipe .ch { width: 20px; height: 20px; border-radius: 6px; }
.recipe .ch svg { width: 12px; height: 12px; }
.client-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.client-pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); text-decoration: none; }
.client-pick:hover { border-color: var(--edge); box-shadow: 0 2.5px 0 0 var(--edge); }
.client-pick b { display: block; font-size: 15px; }
.client-pick span { font-size: 13px; color: var(--muted); }
.make-new { max-width: 760px; }
.make-new .choice > span { gap: 6px; }
.make-new .choice .ch { width: 18px; height: 18px; border-radius: 5px; }
.make-new .choice .ch svg { width: 11px; height: 11px; }
.pick .order, .wb-photo-pick .order { position: absolute; top: 5px; left: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 11.5px/20px var(--font); font-style: normal; text-align: center; }
.pick .order:empty { display: none; }

.workbench { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.wb-preview { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.wb-editor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wb-tabs { display: flex; gap: 6px; }
.wb-frames { display: flex; flex-wrap: wrap; gap: 12px; }
.wb-frame { display: flex; flex-direction: column; gap: 6px; }
.wb-scaled { position: relative; overflow: hidden; border-radius: 10px; background: var(--paper); border: 1px solid var(--border); flex: none; }
.wb-scaled iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--paper); }
.wb-frame-label { align-self: flex-start; border: 0; background: none; padding: 0; font: 600 12.5px/1.3 var(--font); color: var(--muted); cursor: pointer; }
.wb-frame-label:hover { color: var(--ink); }
.wb-play { display: flex; flex-direction: column; gap: 6px; }
.wb-play:empty { display: none; }
.wb-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.wb-photo { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wb-photo img { width: 150px; height: 188px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.section-label { font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.wb-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wb-check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.wb-check.click { cursor: pointer; }
.wb-check.click:hover span:last-child { text-decoration: underline; }
.wb-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--faint); }
.wb-check.ok .wb-dot { background: var(--mint-edge); }
.wb-check.wait .wb-dot { background: oklch(0.7 0.12 80); }
.wb-check.bad .wb-dot { background: var(--rose-edge); }
.wb-check.bad { color: var(--rose-edge); }
.wb-render { display: flex; flex-direction: column; gap: 10px; }
.wb-bar { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.wb-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--sky-edge); animation: wb-slide 1.3s ease-in-out infinite; }
@keyframes wb-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .wb-bar i { animation: none; width: 100%; opacity: 0.5; } }
.wb-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--rose); color: var(--rose-edge); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; }
.wb-files { display: flex; flex-direction: column; gap: 10px; }
.wb-files.stale { opacity: 0.55; }
.wb-files video { width: 220px; border-radius: 12px; background: #000; }
.wb-file-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wb-file-row img { width: 86px; border-radius: 8px; border: 1px solid var(--border); display: block; }
.wb-field { margin-bottom: 10px; }
.wb-field .label { display: flex; align-items: baseline; gap: 6px; }
.wb-count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.wb-count.over { color: var(--rose-edge); font-weight: 700; }
.wb-field .textarea { min-height: 0; }
.wb-frame-card { scroll-margin: 16px; }
.wb-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--cream); font-size: 13px; }
.wb-kind { width: auto; min-height: 34px; padding: 4px 10px; font-size: 14px; }
.wb-frame-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; margin-top: 12px; align-items: start; }
.wb-frame-body > .wb-fields:only-child { grid-column: 1 / -1; }
.wb-photo-pick { position: relative; display: grid; place-items: center; width: 96px; height: 120px; padding: 0; border-radius: 12px; border: 1px dashed var(--edge); background: var(--paper); overflow: hidden; cursor: pointer; color: var(--muted); text-align: center; }
.wb-photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.wb-photo-pick:hover { border-style: solid; }
.wb-photo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.wb-add { border-style: dashed; box-shadow: none; }
.wb-claude .textarea { min-height: 64px; margin-top: 8px; }
.wb-send .input { min-height: 40px; font-size: 15px; }
.wb-versions { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; }
.wb-versions li { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-top: 1px solid var(--border-2); }
.wb-versions li .btn { margin-left: auto; }
.wb-delete { color: var(--rose-edge); }
.wb-save { font-weight: 500; }
.wb-picker { width: min(92vw, 720px); max-height: 80vh; padding: 18px; border-radius: 18px; border: 1px solid var(--edge); background: var(--card); box-shadow: var(--shadow); }
.wb-picker::backdrop { background: oklch(0.21 0.012 60 / 40%); }
.wb-picker .pick-photos { margin-top: 12px; }
.wb-picker .pick { padding: 0; }
.wb-picker .pick.on { border-color: var(--ink); }
@media (max-width: 1100px) { .workbench { grid-template-columns: 1fr; } .wb-preview { position: static; max-height: none; } }

/* ---------- the calendar: drag a post to move it ---------- */
.tgrid[data-drag] .tg-ev[draggable="true"] { cursor: grab; }
.tg-ev.dragging { opacity: 0.45; }
.tg-day.drop { background-color: oklch(0.92 0.05 230 / 45%); }
.tg-day.drop::after { content: attr(data-hint); position: absolute; left: 3px; right: 3px; top: var(--drop-top, 0); z-index: 5; border-top: 2px solid var(--sky-edge); padding-top: 2px; font-size: 11px; font-weight: 700; color: var(--sky-edge); pointer-events: none; }

/* ---------- HQ: Today and the trend log ---------- */
.tr-clients { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tr-clients a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.tr-clients a.on { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tr-card { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); min-width: 0; }
.tr-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.tr-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-fit { font-size: 14px; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: var(--paper); line-height: 1.4; }
.tr-fit b { color: var(--ink); }
.tr-card .small svg { width: 15px; height: 15px; vertical-align: -2px; }
.tr-mom { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.tr-mom.m-new { background: var(--sky); color: var(--sky-edge); }
.tr-mom.m-rising { background: var(--mint); color: var(--mint-edge); }
.tr-mom.m-peaking { background: oklch(0.93 0.07 62); color: var(--tangerine-edge); }
.tr-mom.m-steady { background: var(--butter); color: var(--butter-edge); }
.tr-mom.m-fading { background: var(--rose); color: var(--rose-edge); }
.tr-spark, .tr-chart { display: block; flex: none; }
.m-new.tr-spark, .m-new.tr-chart { color: var(--sky-edge); }
.m-rising.tr-spark, .m-rising.tr-chart { color: var(--mint-edge); }
.m-peaking.tr-spark, .m-peaking.tr-chart { color: var(--tangerine-edge); }
.m-steady.tr-spark, .m-steady.tr-chart { color: var(--butter-edge); }
.m-fading.tr-spark, .m-fading.tr-chart { color: var(--rose-edge); }
.tr-fade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--border); font-size: 14px; color: var(--muted); }
.tr-fade b { color: var(--ink-2); }
.tr-filters { display: grid; gap: 8px; }
.tr-filters > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.tr-chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tr-log { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.tr-table td { vertical-align: middle; }
.tr-table td a { color: var(--ink); text-decoration: none; }
.tr-table tr.on td { background: var(--paper); }
.tr-detail { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: 16px; }
.tr-chart { width: 100%; height: auto; }
.tr-chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.tr-chart text.mk { fill: currentColor; font-weight: 700; }
.tr-chart .grid { stroke: var(--border-2); }
.tr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-facts div { background: var(--paper); border-radius: 10px; padding: 8px 10px; }
.tr-facts b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.tr-facts span { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .tr-log { grid-template-columns: 1fr; } .tr-detail { position: static; } }
@media (max-width: 760px) { .tr-two { grid-template-columns: 1fr; } }

/* ---------- HQ: Formats (the format radar) ---------- */
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.fm-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); min-width: 0; }
.fm-steps { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: 14px; color: var(--ink-2); }
.fm-examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fm-ex { display: grid; gap: 4px; text-decoration: none; color: var(--ink-2); font-size: 12px; min-width: 0; }
.fm-ex img, .fm-ex .fm-noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--paper); }
.fm-ex b { color: var(--ink); }
.fm-noimg { display: grid; place-items: center; color: var(--faint); }
.fm-noimg svg { width: 20px; height: 20px; }
.fm-thumb { width: 46px; height: 60px; border-radius: 8px; object-fit: cover; display: block; background: var(--paper); }
.fm-table td { vertical-align: middle; }
.fm-code { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; overflow-x: auto; }
.fm-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fm-minicard { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); }
.fm-minicard b { font-size: 16px; line-height: 1.3; }
@media (max-width: 900px) { .fm-mini { grid-template-columns: 1fr; } }
.fm-variants { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; color: var(--ink-2); }

/* ---------- HQ: Radar (Now, Playbook, Signals) ---------- */
.rd-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rd-tabs a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--ink); text-decoration: none; }
.rd-tabs a b { font-size: 15px; }
.rd-tabs a span { font-size: 12.5px; color: var(--muted); }
.rd-tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.rd-tabs a.on span { color: var(--cream); opacity: 0.75; }
@media (max-width: 640px) { .rd-tabs { grid-template-columns: 1fr; } }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-noimg { display: grid; place-items: center; background: var(--paper); color: var(--faint); }
.rd-noimg svg { width: 20px; height: 20px; }
/* posts as pictures */
.rd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rd-tile { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); min-width: 0; }
.rd-tile img, .rd-tile .rd-noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; margin-bottom: 3px; }
.rd-tile-n { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rd-tile-s { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* this week's play */
.rd-play { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); }
.rd-play-text { display: grid; gap: 6px; min-width: 0; }
.rd-play-text b { font-size: 18px; line-height: 1.25; }
.rd-play-pics { display: flex; gap: 8px; }
.rd-play-pics img, .rd-play-pics .rd-noimg { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
@media (max-width: 700px) { .rd-play { grid-template-columns: 1fr; } }
/* the playbook: a proven format takes the row; the others are cards of one height */
.rd-heroes { display: grid; gap: 14px; }
.rd-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); align-items: start; }
.rd-hero-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rd-hero-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .rd-hero { grid-template-columns: 1fr; } .rd-hero-pics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rd-hero-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: stretch; }
.rd-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); min-width: 0; }
.rd-card-title { font-size: 16.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-card-post { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.rd-card-post img, .rd-card-post .rd-noimg { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.rd-card .small.clamp-3 { min-height: 4.35em; }
.rd-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.rd-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cobalt-deep); }
.rd-more p, .rd-more ol { margin-top: 6px; }

/* HQ → Calendar: the founder's own posting */
.tg-ev .cal-app { font-weight: 600; color: var(--muted); }
.own-checks { display: grid; gap: 8px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: oklch(0.955 0.03 25); border: 1px solid oklch(0.55 0.17 25 / 30%); font-size: 14px; line-height: 1.4; }
.own-checks ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.own-checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.own-checks li svg { width: 15px; height: 15px; margin-top: 2px; color: oklch(0.5 0.17 25); }
.own-checks.ok { display: flex; align-items: center; gap: 8px; background: var(--mint); border-color: oklch(0.5 0.1 160 / 25%); }
.own-checks.ok svg { width: 16px; height: 16px; color: var(--mint-edge); }
.own-days { display: none; }
@media (max-width: 900px) { .own-days { display: block; } }
.own-checks details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.own-checks details ul { margin-top: 6px; }
