/* MOUTHPIECE — council design (Codex + Antigravity, 2026-10-09).
   Action-first: Today (record next → needs your OK → news worth your time), pillars as filters,
   left-aligned + dense, hairlines not boxes, gold ONLY on the one primary action per screen. */

:root {
  --bg: #0E0D0B;
  --fg: #F4F0E8;
  --muted: #AAA398;
  --dim: #6F6A62;
  --line: #2A2723;
  --accent: #F2B84B;
  --danger: #E5604F;
  --display: "Inter Tight", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 18px;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- chrome ---- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.topbar[hidden] { display: none; }
.brand { margin: 0; font: 800 18px/1 var(--display); letter-spacing: -.01em; }
.today-date { flex: 1; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.drop-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg); border-top: 1px solid var(--line);
}
.bottomnav[hidden] { display: none; }
.bottomnav a {
  display: flex; align-items: center; justify-content: center;
  font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.bottomnav a.on { color: var(--fg); box-shadow: inset 0 2px 0 var(--fg); }

.view {
  padding: 8px var(--gutter) calc(var(--nav-h) + 40px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto;
}
.view.has-actionbar { padding-bottom: calc(var(--nav-h) + 110px + env(safe-area-inset-bottom)); }
.view[hidden], .studio[hidden] { display: none; }

/* ---- type ---- */

.meta, .back, .label {
  font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.meta .hi { color: var(--fg); }
.back { display: inline-flex; align-items: center; min-height: 44px; }
.view-title { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; margin: 14px 0 12px; }
h1 { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; margin: 8px 0 12px; }
.label { display: block; margin: 0 0 10px; }
.sec { margin-top: 28px; }
.quiet { color: var(--muted); font-size: 15px; margin: 0; }
.empty { color: var(--muted); padding: 40px 0; }

.facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 600; }

/* ---- today ---- */

.desk-head { margin: 14px 0 18px; }
.desk-head h2 { margin: 0; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.desk-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.lead { padding: 4px 0 22px; border-bottom: 1px solid var(--line); }
.lead .label { color: var(--accent); }
.lead h3 { margin: 6px 0 10px; font: 800 30px/1.08 var(--display); letter-spacing: -.02em; }
.lead .take { margin: 12px 0 18px; font-size: 17px; line-height: 1.5; }
.lead .take::before { content: "What I'd tell a client — "; color: var(--muted); }

.primary {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 52px; padding: 0 18px; border-radius: 8px;
  background: var(--accent); color: var(--bg);
  font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.secondary-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
  font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.block { margin-top: 30px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; }
.block-head a { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; }

/* ---- rows (videos + news) ---- */

.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:active h3 { color: var(--accent); }
.row .meta { margin-bottom: 4px; }
.row h3 { margin: 0 0 4px; font: 700 21px/1.2 var(--display); letter-spacing: -.01em; }
.row p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .facts { font-size: 13px; }
.row .need { color: var(--fg); }

/* ---- chips (pillar filters) ---- */

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 6px;
  padding: 0 var(--gutter) 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.chip.on { color: var(--bg); background: var(--fg); border-color: var(--fg); }

.group { margin-top: 24px; }
.group > .label, details.group > summary { display: flex; justify-content: space-between; }
details.group > summary { list-style: none; cursor: pointer; min-height: 44px; align-items: center; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: "+"; }
details[open].group > summary::after { content: "–"; }

/* ---- video card ---- */

.take-block { margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.take-block p { margin: 0; font: 700 21px/1.35 var(--display); letter-spacing: -.01em; }
.take-block .label { margin-bottom: 8px; }
.take-block .who { margin-top: 10px; font-size: 13px; color: var(--muted); }

.points { list-style: none; margin: 0; padding: 0; }
.points li { border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.point {
  display: grid; grid-template-columns: 30px 1fr; gap: 8px; width: 100%;
  padding: 14px 0; min-height: 48px; text-align: left; font: 16px/1.5 var(--body); color: var(--fg);
}
.point .n { font: 600 13px var(--mono); color: var(--dim); padding-top: 3px; }
.point.done .t { color: var(--dim); text-decoration: line-through; }

.plain { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { padding: 10px 0; }
.lines .k { display: block; margin-bottom: 2px; }
.lines q { display: block; font: 700 20px/1.25 var(--display); letter-spacing: -.01em; }

details.more { border-top: 1px solid var(--line); }
details.more:last-of-type, a.more:last-child { border-bottom: 1px solid var(--line); }
details.more > summary, a.more {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  list-style: none; cursor: pointer; font-size: 15px;
}
a.more { border-top: 1px solid var(--line); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary span:last-child, a.more span:last-child { color: var(--muted); }
.more-body { padding: 0 0 16px; font-size: 15px; line-height: 1.55; }

.facts-list, .srcs { list-style: none; margin: 0; padding: 0; }
.facts-list li, .srcs li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts-list li:first-child { border-top: 0; padding-top: 0; }
.src-link { display: inline-flex; min-height: 36px; align-items: center; color: var(--muted); font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px; }
.off { font: 600 10px var(--mono); letter-spacing: .12em; color: var(--fg); border: 1px solid var(--muted);
  border-radius: 3px; padding: 1px 4px; margin-right: 6px; }

.file-under { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.file-under button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; font: 700 15px var(--display); }

/* sticky action bar above the bottom nav */
.actionbar {
  position: fixed; left: 0; right: 0; z-index: 19;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
  padding: 10px var(--gutter); background: var(--bg); border-top: 1px solid var(--line);
}
.actionbar[hidden] { display: none; }
.actionbar .primary { flex: 1; }
.actionbar .ghost {
  min-height: 52px; padding: 0 6px;
  font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.actionbar .ghost.danger { color: var(--danger); }
.actionbar .state { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---- news breakdown ---- */

.syn { font-size: 18px; line-height: 1.55; margin: 0; }
.bits { margin: 0; padding: 0; list-style: none; counter-reset: b; border-bottom: 1px solid var(--line); }
.bits li { counter-increment: b; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 14px 0;
  border-top: 1px solid var(--line); line-height: 1.55; }
.bits li::before { content: counter(b, decimal-leading-zero); font: 600 13px var(--mono); color: var(--dim); padding-top: 3px; }

.trail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.trail li { font-size: 13px; color: var(--dim); display: inline-flex; align-items: center; gap: 4px; }
.trail li.done { color: var(--muted); }
.trail li.now { color: var(--fg); font-weight: 600; }
.trail li:not(:last-child)::after { content: "→"; color: var(--dim); margin-left: 4px; }

/* ---- studio (recording mode) ---- */

.studio {
  min-height: 100dvh; padding: calc(16px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto;
}
.studio-top { display: flex; justify-content: space-between; align-items: center; }
.studio-top a, .studio-top span { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; }
.studio .say { font: 800 30px/1.12 var(--display); letter-spacing: -.02em; margin: 0; }
.studio .say.closer { font-size: 24px; color: var(--muted); }
.studio .label { margin: 8px 0 0; }
.studio-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.studio-points button {
  width: 100%; text-align: left; min-height: 72px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  font: 700 20px/1.3 var(--display); letter-spacing: -.01em; color: var(--fg);
  transition: opacity 150ms ease;
}
.studio-points button.done { opacity: .28; }
.studio .progress { font: 600 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
.studio .done-btn { margin-top: 8px; }

/* ---- drop ---- */

.hint { color: var(--muted); font-size: 14px; }
#drop-text {
  width: 100%; margin: 14px 0; background: transparent; color: var(--fg);
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 18px/1.5 var(--body); padding: 14px 0; resize: vertical;
}
#drop-text:focus { outline: none; border-bottom-color: var(--fg); }
.drop-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 8px; }
.pillar-btn { min-height: 56px; text-align: left; border-bottom: 1px solid var(--line); font: 800 24px var(--display); }
#drop-skip { min-height: 48px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
