/* "Clear Sky" admin look (2026-10-22): navy top bar, light blue page, white rounded cards. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/vendor/fonts/NunitoSans-Variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/vendor/fonts/NunitoSans-Variable-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #edf4fb; --card: #ffffff; --ink: #0f2340; --muted: #43597a; --line: #e6eef8; --field: #d3e1f1;
  --primary: #0a5cad; --primary-ink: #ffffff; --chart: #0a6bcb; --coral: #e2574c;
  --up: #0a7a4b; --down: #b8352b; --warn: #8a5a00;
  --tint-blue: #dcebfb; --tint-coral: #fde3e0; --tint-green: #d9f2e5; --tint-amber: #fdf0d5;
  --bar: #0f2340; --bar-ink: #c9d8ee; --radius: 20px; --heat: 220, 38, 38;
  font: 16px/1.55 "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
[hidden] { display: none !important; }
h1 { font-size: 2.1rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 0 0 .5rem; color: var(--muted); font-weight: 700; }
button, select, input, textarea { font: inherit; }
a { color: var(--primary); }
a:hover { color: #063f78; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Buttons: secondary by default; .btn--primary and aria-pressed are blue */
button { cursor: pointer; border: 1px solid var(--field); background: var(--card); color: var(--ink); padding: .5rem 1rem; border-radius: 10px; font-weight: 700; min-height: 44px; }
button:hover { border-color: var(--primary); }
button[aria-pressed="true"], .btn--primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn--small { min-height: 44px; padding: .3rem .8rem; font-size: .875rem; }
select, input[type="text"], input[type="email"], input[type="url"], input:not([type]), textarea { border: 1px solid var(--field); border-radius: 10px; background: var(--card); color: var(--ink); }
select { min-height: 44px; padding: 0 12px; }

/* Segmented control (date range, filters) */
.seg, .ranges { display: flex; flex-wrap: wrap; gap: 0; background: var(--card); border: 1px solid var(--field); border-radius: 12px; overflow: hidden; }
.seg button, .ranges button { border: 0; border-right: 1px solid var(--field); border-radius: 0; background: var(--card); color: #213a5e; }
.seg button:last-child, .ranges button:last-child { border-right: 0; }
.seg button[aria-pressed="true"], .ranges button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.seg button:focus-visible, .ranges button:focus-visible { outline-offset: -5px; }
.seg button[aria-pressed="true"]:focus-visible, .ranges button[aria-pressed="true"]:focus-visible { outline-color: #ffffff; }

/* Pills */
.pill { display: inline-block; padding: .2rem .7rem; border-radius: 8px; font-size: .8rem; font-weight: 800; background: var(--line); color: var(--ink); }
.pill.ok, .pill--ok { background: var(--tint-green); color: #075c37; }
.pill.bad, .pill--bad { background: var(--tint-coral); color: #9a2a21; }
.pill--warn { background: var(--tint-amber); color: var(--warn); }
.pill--info { background: var(--tint-blue); color: #0a4a8c; }
.pill--muted { background: var(--line); color: var(--muted); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { background: var(--card); padding: 2.5rem 2rem; border-radius: var(--radius); width: min(400px, 100%); display: grid; gap: .8rem; box-shadow: 0 8px 30px rgba(15, 35, 64, .08); }
.login h1 { font-size: 1.6rem; }
.error { color: var(--down); min-height: 1.5em; margin: 0; }
#code-step { display: grid; gap: .6rem; }
#code { padding: .6rem; border: 1px solid var(--field); border-radius: 10px; font-size: 1.4rem; letter-spacing: .3em; }
#send-code, .login button[type="submit"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
button.link { border: 0; background: none; padding: 0; min-height: 44px; text-decoration: underline; justify-self: start; font-size: .9rem; color: var(--primary); font-weight: 600; }

/* Layout: full-width navy top bar, content in a 1300px column */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 96px; }
main > div { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 32px; grid-template-columns: minmax(0, 1fr); }
.sections { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--bar); padding: 12px max(32px, calc((100% - 1236px) / 2)); }
.sections__brand { color: #ffffff; font-weight: 800; font-size: 1.15rem; margin-right: 16px; }
.sections__brand span { color: #a9c2e4; font-weight: 600; }
.sections button { background: transparent; border: 0; color: var(--bar-ink); padding: .5rem .75rem; }
.sections button:hover { color: #ffffff; background: rgba(255, 255, 255, .08); }
.sections button[aria-pressed="true"] { background: #ffffff; color: var(--ink); }
.sections #r-spend { margin: 0 4px 0 auto; color: var(--bar-ink); font-size: .8rem; }
.sections #logout { border: 1px solid #3a5478; color: #ffffff; }
.sections :focus-visible { outline-color: #ffffff; }
@media (max-width: 700px) {
  main > div { padding: 0 16px; }
  .sections { padding: 10px 16px; flex-wrap: nowrap; overflow-x: auto; }
  .sections > * { flex: none; }
}

.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; }
.top__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .9rem; }
.status { margin: 0; color: var(--muted); min-height: 1.5em; }
.note { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 26px; min-width: 0; }
.card__title { display: flex; gap: 10px; align-items: center; }
.card__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint-blue); color: var(--primary); }
.card__icon--coral { background: var(--tint-coral); color: #b8352b; }
.card__icon--green { background: var(--tint-green); color: #075c37; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: 18px; padding: 20px; border-top: 5px solid var(--chart); }
.stat__label { color: var(--muted); font-size: .875rem; font-weight: 700; }
.stat__value { font-size: 2.1rem; font-weight: 800; line-height: 1.15; }
.stat__change { font-size: .8rem; color: var(--muted); font-weight: 700; }
.stat__change.up { color: var(--up); } .stat__change.down { color: var(--down); }
.live strong { font-size: 1.6rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .8rem; border-bottom-color: var(--field); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.clickable { cursor: pointer; } tr.clickable:hover, tr.selected { background: #f5f9fd; }
.table-wrap { overflow-x: auto; }
.empty { color: var(--muted); margin: 0; }
.cell-clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chart svg { width: 100%; height: 250px; display: block; }
.chart .legend { font-size: .875rem; color: var(--muted); }

.geo { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.map svg { width: 100%; height: auto; display: block; }
.map path { stroke: var(--card); stroke-width: .5; cursor: pointer; }
@media (max-width: 900px) { .geo { grid-template-columns: 1fr; } }

.bar { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; align-items: center; margin-bottom: 10px; font-size: .95rem; }
.bar__track { grid-column: 1 / -1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--chart); border-radius: 5px; }

.hm-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.hm-controls label { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--muted); font-size: .9rem; max-width: 100%; min-width: 0; }
.hm-controls select { max-width: 100%; min-width: 0; }
.hm { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
@media (max-width: 900px) { .hm { grid-template-columns: 1fr; } }
.hm-viewport { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); max-height: 900px; overflow-y: auto; }
.hm-stage { position: relative; transform-origin: 0 0; }
.hm-stage iframe { border: 0; display: block; background: #fff; }
.hm-stage canvas { position: absolute; inset: 0; pointer-events: none; }

.uptime-strip { display: flex; gap: 4px; margin: .75rem 0 1rem; }
.uptime-strip span { flex: 1; height: 30px; border-radius: 6px; background: var(--line); }
.uptime-strip .ok { background: #8fd2b0; } .uptime-strip .bad { background: var(--coral); } .uptime-strip .part { background: #f2a39b; }

/* Analytics tab (analytics-ui.js + index.html) */
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > .card { flex: 1 1 300px; }
.row > .row__wide { flex: 3 1 540px; }
.top__actions { margin: 4px 0 0; color: var(--muted); }
.card > .card__title { margin-bottom: 14px; flex-wrap: wrap; }
.card__sub { font-size: .85rem; font-weight: 600; color: var(--muted); }
.card__h3 { margin-top: 20px; }
.legend { margin-left: auto; display: flex; gap: 8px 16px; align-items: center; font-size: .875rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.legend__key { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: -10px; }
.legend__key--blue { background: var(--chart); } .legend__key--coral { background: var(--coral); }
.card--live { flex: 1 1 220px; background: var(--primary); color: #ffffff; display: flex; flex-direction: column; }
.card--live h2 { font-size: 1.1rem; }
.card--live .live { margin: auto 0 0; display: flex; flex-direction: column; }
.card--live .live strong { font-size: 5.5rem; font-weight: 800; line-height: 1; }
.reach { display: grid; gap: 18px; }
.reach__row { display: grid; gap: 6px; }
.reach__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.reach__head span, .reach__nums { color: var(--muted); font-size: .85rem; }
.reach__head strong { min-width: 0; overflow-wrap: anywhere; }
.reach__nums b { color: var(--ink); }
.reach__bar { position: relative; height: 22px; border-radius: 11px; background: var(--bg); overflow: hidden; }
.reach__bar span { position: absolute; left: 0; top: 0; bottom: 0; }
.reach__nums { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.funnel li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.funnel strong { white-space: nowrap; }
@media (max-width: 700px) {
  .ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .ranges button:nth-child(3) { border-right: 0; }
  .ranges button:nth-child(-n+3) { border-bottom: 1px solid var(--field); }
  .card--live .live strong { font-size: 4rem; }
}
.uptime-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: .9rem; }

/* Marketing Radar tabs (radar.js): each story is its own white card on the blue page */
.r-analytics { display: grid; gap: 20px; }
.r-view { display: grid; gap: 20px; padding-top: 24px; }
.r-view > .card:has(> .r-item), .r-view > .card:has(> .r-filters) { background: transparent; padding: 0; display: grid; gap: 16px; }
.r-view > .card > .top { padding-top: 0; }
.r-view > .card:has(> .r-item) > h2, .r-view > .card:has(> .r-filters) > .top h2, .r-view > .card:has(> .r-item) > .top h2 { font-size: 2.1rem; }
.r-brief > p:not(.note) { margin: 0; }
.r-brief { max-width: 860px; }
.r-item { background: var(--card); border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 10px; }
.card .card .r-item, .card > .r-item:only-child { box-shadow: none; }
.r-title { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.35; }
.r-sum, .r-why, .r-links { margin: 0; }
.r-why { color: var(--muted); font-size: .95rem; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.r-src { font-size: .9rem; font-weight: 700; margin-right: 12px; }
.r-meta { display: flex; }
.r-score { font-weight: 800; font-variant-numeric: tabular-nums; font-size: .8rem; background: var(--primary); color: #ffffff; border-radius: 8px; padding: .15rem .55rem; }
.r-chips, .r-acts, .r-filters, .r-daynav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.r-chip { border-radius: 8px; padding: .15rem .6rem; font-size: .8rem; font-weight: 700; background: var(--tint-blue); color: #0a4a8c; }
.r-chip--type { background: var(--card); border: 1px solid var(--field); color: var(--ink); }
.r-chip--muted { background: var(--tint-coral); color: #9a2a21; }
.r-btn { font-size: .875rem; min-height: 44px; padding: .3rem .85rem; }
.r-btn[aria-pressed="true"] { background: var(--tint-blue); border-color: var(--primary); color: #0a4a8c; }
.r-filters button { border-radius: 999px; min-height: 44px; font-size: .9rem; }
.r-daynav span { font-weight: 800; padding: 0 6px; }
.r-note { display: grid; gap: 8px; max-width: 600px; background: var(--bg); border-radius: 14px; padding: 14px; }
.r-note label { font-size: .9rem; font-weight: 700; display: grid; gap: 2px; }
.r-note textarea { width: 100%; font: inherit; font-size: .95rem; padding: .55rem .7rem; }
.r-note button { min-height: 44px; }
.r-profile { background: var(--tint-blue); border-radius: 14px; padding: 16px 18px; margin: 0; font-size: 1.05rem; }
.r-rule { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; }
.r-rule:first-of-type { border-top: 0; }
.r-rule__row { display: flex; justify-content: space-between; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
#r-about { width: 100%; font: inherit; padding: .7rem .8rem; }
.r-acts label { display: flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; }
.r-acts input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.r-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; }
.r-add input { flex: 1 1 200px; min-height: 44px; padding: 0 .8rem; }
.r-add button, #r-about-save { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.tablewrap { overflow-x: auto; }
.down { color: var(--down); font-weight: 700; }
.r-view .card { display: grid; gap: 12px; align-content: start; }
.r-view .card h2, .r-view .card h3 { margin: 0; }
.r-view > section:not(.card) { display: grid; gap: 14px; }
.r-view > section:not(.card) > h2 { margin: 12px 0 0; }
.r-view article.card { gap: 8px; }
.r-view article.card h3 { color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.r-view article.card p { margin: 0; }

/* Post Studio (studio.js), layout A: list left, open post right */
.st-view { display: grid; gap: 16px; padding-top: 24px; }
.st-view .card { display: grid; gap: 12px; align-content: start; }
.st-view .card h2, .st-view .card h3 { margin: 0; }
.st { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.st-list { flex: 1 1 260px; max-width: 320px; display: grid; gap: 10px; }
.st-list h2 { margin: 0; }
.st-main { flex: 999 1 560px; min-width: 0; display: grid; gap: 12px; }
.st-post { display: grid; gap: 12px; }
.st-back { display: none; font-size: .9rem; }
.st-view :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.st-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-tabular { font-variant-numeric: tabular-nums; }
.st-btn { font-size: .95rem; padding: .5rem 1rem; }
.st-btn--primary { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.st-btn--small { font-size: .8rem; padding: .25rem .65rem; border-color: var(--line); }
.st-btn--primary.st-btn--small { border-color: var(--primary); }
.st-view button:disabled { opacity: .45; cursor: not-allowed; }
.st-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-row--end { justify-content: flex-end; }
.st-row .note { margin: 0 auto 0 0; }
.st-live:empty, .st-alert:empty { display: none; }
.st-live { background: var(--card); border-radius: 14px; padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.st-live p { margin: 0; }
.st-alert { background: var(--tint-coral); border-radius: 14px; font-weight: 700; padding: 10px 16px; color: var(--down); }

.st-idea { display: grid; gap: 2px; text-align: left; border: 1px solid var(--field); border-radius: 14px; padding: 12px 14px; background: var(--card); color: var(--ink); }
.st-idea[aria-current="true"] { border: 2px solid var(--primary); padding: 11px 13px; background: #f5f9fd; }
.st-idea__from, .st-idea__step { font-size: .75rem; color: var(--muted); }
.st-idea__title { font-weight: 600; font-size: .9rem; }
.st-new > summary { list-style: none; display: block; text-align: left; border: 0; border-radius: 12px; cursor: pointer; background: var(--primary); color: #ffffff; font-weight: 700; }
.st-new > summary::-webkit-details-marker { display: none; }
.st-new[open] > summary { margin-bottom: 8px; }
.st-form { display: grid; gap: 6px; }
.st-form label { font-size: .85rem; }
.st-form input, .st-form textarea, .st-own-input input { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--field); border-radius: 10px; background: var(--card); color: var(--ink); }

.st-kicker { font-size: .75rem; color: var(--muted); margin: 0; }
.st-story h2 { font-size: 1.1rem; }
.st-story p { margin: 0; }
.st-fold { gap: 6px !important; padding: 14px 20px; }
.st-fold__row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.st-done { font-size: .75rem; color: var(--up); }
.st-outdated { font-size: .75rem; color: var(--ink); }
.st-fold__details summary { cursor: pointer; font-size: .9rem; }
.st-fold__details ol { margin: 6px 0 0; padding-left: 1.2rem; font-size: .9rem; }
.st-step--current { outline: 2px solid var(--primary); }
.st-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-later { color: var(--muted); padding: 12px 16px; }
.st-later ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-stale { border: 1px dashed var(--primary); border-radius: 14px; background: #f5f9fd; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.st-stale p { margin: 0; }

.st-options { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-options legend { padding: 0; margin-bottom: 8px; }
.st-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--field); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.st-option input { margin-top: .3rem; flex: none; width: 18px; height: 18px; accent-color: var(--primary); }
.st-option:has(input:checked) { border: 2px solid var(--primary); padding: 11px 13px; background: var(--bg); font-weight: 700; }
.st-option__sub { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.st-own-input { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-own-input label { font-size: .85rem; color: var(--muted); }
.st-own-input input { flex: 1 1 260px; width: auto; }
.st-addown summary { cursor: pointer; font-size: .9rem; }
.st-addown[open] summary { margin-bottom: 8px; }

.st-findings { display: grid; gap: 10px; }
.st-finding { border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; padding: 12px 14px; display: grid; gap: 4px; }
.st-finding p { margin: 0; }
.st-finding__status--mismatch, .st-finding__status--unchecked { color: var(--ink); }
.st-finding__status--pending { color: var(--muted); }
.st-finding__note { font-size: .9rem; }
.st-quote { margin: 4px 0; padding: 8px 12px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: .9rem; }
.st-check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; padding: 4px 0; }
.st-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.st-check--use { font-weight: 600; }

.st-sections { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.st-sections ul { margin: 4px 0 0; padding-left: 1rem; }
.st-section-edit { border: 1px solid var(--field); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.st-chart { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.st-chart__svg svg { width: 100%; height: auto; display: block; max-width: 640px; }

.st-rec { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 0; background: var(--bg); border-radius: 18px; padding: 14px; }
.st-rec__btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--primary); color: #ffffff; display: grid; place-items: center; padding: 0; flex: none; }
.st-rec__btn--stop { background: var(--coral); }
.st-rec__text { display: flex; flex-direction: column; flex: 1 1 200px; }
.st-rec__text .note { margin: 0; }
.st-rec__wave { display: block; width: 100%; height: 44px; margin: 6px 0; color: var(--down); }
.st-rec__hint { font-size: .85rem; color: var(--down); }
.st-recordings { display: grid; gap: 8px; }
.st-recording { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.st-recording summary { cursor: pointer; }
.st-transcript { color: var(--muted); white-space: pre-wrap; margin: 8px 0; }

.st-article { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; max-height: 480px; overflow: auto; }
.st-article > :first-child { margin-top: 0; }
.st-article h3, .st-article h4, .st-article h5 { color: var(--ink); margin: 14px 0 4px; }
.st-article h3 { font-size: 1.2rem; }
.st-article h4 { font-size: 1rem; }
.st-article p { margin: 0 0 10px; }
.st-flagged { background: var(--bg); outline: 1px dashed var(--primary); outline-offset: 3px; }
.st-flag-tag { font-weight: 700; font-size: .8rem; }
.st-flags p, .st-own p { margin: 0; }
.st-flags ul, .st-own ul { margin: 4px 0 0; padding-left: 1.2rem; font-size: .9rem; }

/* Phone: one column; an open post hides the list (back link instead); 44px targets */
@media (max-width: 700px) {
  .st-list { max-width: none; }
  .st--open .st-list { display: none; }
  .st--open .st-back { display: block; }
  .st-view button, .st-new > summary, .st-option, .st-check, .st-addown summary, .st-recording summary, .st-fold__details summary { min-height: 44px; }
  .st-check, .st-addown summary, .st-fold__details summary, .st-recording summary { display: flex; align-items: center; gap: 8px; }
  .st-rec { flex-direction: column; text-align: center; padding: 24px 16px; }
  .st-rec__btn { width: 88px; height: 88px; }
  .st-rec__text { align-items: center; flex: none; }
  .st-step [data-run], .st-step [data-act="pick-headline"], .st-step [data-act="pick-directions"] { flex: 1 1 100%; }
}

/* Post Studio: step versions */
.st-warn { display: inline-flex; align-items: center; margin-right: 6px; color: var(--down); cursor: help; font-size: 1rem; }
.st-fold__act { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.st-card__head .st-warn { margin-left: 8px; }
.st-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 10px; font-size: .85rem; color: var(--muted); }
.st-ver__btn { font: inherit; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; color: var(--ink); cursor: pointer; min-height: 32px; }
.st-ver__btn--use { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.st-ver__btn[aria-pressed="true"] { background: var(--tint-blue); color: #0a4a8c; border-color: var(--primary); }
.st-ver__note { margin: 0 0 6px; }
.st-ver__old { border: 1px dashed var(--field); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.st-ver__old ul, .st-ver__old ol { margin: 6px 0; padding-left: 1.2rem; }
@media (max-width: 40rem) { .st-ver__btn { min-height: 44px; } }

/* Today: the daily plan checklist (admin/plan.js). */
.plan .top { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.plan-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.plan-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.plan-item { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 0; border-top: 1px solid var(--line); }
.plan-item input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.plan-item label { cursor: pointer; line-height: 1.45; }
.plan-item--done label { text-decoration: line-through; color: var(--muted); }
.plan-dot { width: 1.35rem; flex: none; text-align: center; color: var(--muted); }

/* News tab: Brief / Feed / Saved / Taste / Sources as sub-tabs (admin/radar.js). */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.subtabs button { background: var(--card); border: 1px solid var(--field); color: var(--ink); padding: .5rem 1rem; border-radius: 999px; min-height: 44px; font-weight: 700; cursor: pointer; }
.subtabs button:hover { border-color: var(--ink); }
.subtabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
@media (max-width: 47.99rem) { .subtabs { flex-wrap: nowrap; overflow-x: auto; } .subtabs button { flex: none; } }

/* Clients tab (clients.js) */
.c-view { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; gap: 20px; }
.c-view .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.c-list, .c-props { list-style: none; padding: 0; margin: 0 0 16px; }
.c-list li, .c-props li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.c-open { background: none; border: 0; padding: 4px 0; text-align: left; font-weight: 400; min-height: 0; width: 100%; }
.c-open strong { font-weight: 800; }
.c-filter { display: inline-flex; border: 1px solid var(--field); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.c-filter button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.c-form { display: grid; gap: 12px; }
.c-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.c-form label, .c-field { display: grid; gap: 4px; font-weight: 700; }
.c-view input, .c-view select, .c-view textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; }
.c-view textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.c-editor { display: grid; gap: 16px; }
.c-editor fieldset { border: 1px solid var(--field); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.c-editor legend { font-weight: 800; padding: 0 6px; }
.c-row { display: grid; grid-template-columns: 2fr 3fr 1fr auto; gap: 8px; }
.c-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.c-view td.num { text-align: right; white-space: nowrap; }
@media (max-width: 700px) { .c-row { grid-template-columns: 1fr; } .c-view { padding: 12px; } }
