/* Fluxio — streaming-first relay. Ice-white ground, sky accent, deep navy ink. */
:root {
  --fo-ground: #f2f8fc;
  --fo-surface: #ffffff;
  --fo-surface-2: #e8f3fa;
  --fo-ink: #0a1d3a;
  --fo-ink-soft: #34506f;
  --fo-muted: #67809c;
  --fo-line: #d4e5f1;
  --fo-sky: #0ea5e9;
  --fo-sky-deep: #0369a1;
  --fo-sky-wash: #def1fc;
  --fo-good: #0b8a62;
  --fo-warn: #b45309;
  --fo-bad: #d12b2b;
  --fo-shadow: 0 1px 2px rgba(10, 29, 58, .06), 0 8px 24px -12px rgba(10, 29, 58, .18);
  --fo-radius: 14px;
  --fo-head: "Lexend", "Figtree", system-ui, sans-serif;
  --fo-text: "Figtree", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --fo-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fo-motion: flow;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fo-ground: #06111f;
    --fo-surface: #0b1a2d;
    --fo-surface-2: #10243c;
    --fo-ink: #e3eefa;
    --fo-ink-soft: #b4c7dd;
    --fo-muted: #8199b5;
    --fo-line: #1a3150;
    --fo-sky: #38bdf8;
    --fo-sky-deep: #7dd3fc;
    --fo-sky-wash: #0b2b47;
    --fo-good: #34d399;
    --fo-warn: #fbbf24;
    --fo-bad: #f87171;
    --fo-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  }
}
html.fo-root, html.fo-root *, html.fo-root *::before, html.fo-root *::after { box-sizing: border-box; }
html.fo-root { -webkit-text-size-adjust: 100%; }
body.fo-body { margin: 0; background: var(--fo-ground); color: var(--fo-ink); font: 16px/1.6 var(--fo-text); }
.fo-body a { color: var(--fo-sky-deep); text-decoration: none; }
.fo-body a:hover { text-decoration: underline; }
.fo-body h1, .fo-body h2, .fo-body h3, .fo-body h4 { font-family: var(--fo-head); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6em; }
.fo-body h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; }
.fo-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; }
.fo-body h3 { font-size: 1.12rem; font-weight: 600; }
.fo-body code, .fo-body pre { font-family: var(--fo-mono); font-size: .9em; }
.fo-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.fo-narrow { max-width: 760px; }
.fo-main { min-height: 60vh; padding-bottom: 56px; }
.fo-small { font-size: .88rem; }
.fo-muted { color: var(--fo-muted); }
.fo-ok { color: var(--fo-good); }
.fo-bad { color: var(--fo-bad); }
.fo-inline { display: inline; margin: 0; }
.fo-lede { font-size: 1.12rem; color: var(--fo-ink-soft); max-width: 62ch; }
.fo-sect { margin-top: 64px; }
.fo-pagehead { padding: 44px 0 8px; }
.fo-footnote { margin-top: 28px; }

/* ---------- header: brand, centred pill navigation, language menu, one auth button */
.fo-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fo-ground) 88%, transparent); backdrop-filter: blur(10px); }
.fo-top__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 66px; }
.fo-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fo-head); font-weight: 600; font-size: 1.2rem; color: var(--fo-ink) !important; justify-self: start; }
.fo-pill { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--fo-surface); border: 1px solid var(--fo-line); box-shadow: var(--fo-shadow); }
.fo-pill__link { padding: 6px 16px; border-radius: 999px; color: var(--fo-ink-soft) !important; font-weight: 500; white-space: nowrap; }
.fo-pill__link:hover { background: var(--fo-surface-2); text-decoration: none !important; }
.fo-pill__link--on { background: var(--fo-sky); color: #fff !important; }
.fo-top__end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.fo-top__link { color: var(--fo-ink-soft) !important; font-weight: 500; }
.fo-tongue { position: relative; }
.fo-tongue summary { cursor: pointer; list-style: none; padding: 5px 12px; border: 1px solid var(--fo-line); border-radius: 10px; font-size: .9rem; white-space: nowrap; }
.fo-tongue summary::-webkit-details-marker { display: none; }
.fo-tongue__menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: 12px; box-shadow: var(--fo-shadow); padding: 6px; display: grid; min-width: 160px; }
.fo-tongue__opt { padding: 7px 12px; border-radius: 8px; color: var(--fo-ink) !important; }
.fo-tongue__opt--on, .fo-tongue__opt:hover { background: var(--fo-sky-wash); text-decoration: none !important; }
.fo-flowline { height: 2px; background: linear-gradient(90deg, transparent, var(--fo-sky) 30%, var(--fo-sky-deep) 50%, var(--fo-sky) 70%, transparent); background-size: 200% 100%; animation: fo-drift 9s linear infinite; opacity: .55; }
@keyframes fo-drift { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ---------- buttons */
.fo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font: 600 .95rem var(--fo-text); cursor: pointer; text-decoration: none !important; transition: transform .15s ease, background .15s ease; }
.fo-btn:active { transform: translateY(1px); }
.fo-btn--sky { background: var(--fo-sky); color: #fff !important; }
.fo-btn--sky:hover { background: var(--fo-sky-deep); }
.fo-btn--soft { background: var(--fo-sky-wash); color: var(--fo-sky-deep) !important; }
.fo-btn--ghost { background: transparent; border-color: var(--fo-line); color: var(--fo-ink) !important; }
.fo-btn--sm { padding: 6px 12px; font-size: .86rem; border-radius: 9px; }
.fo-btn--block { width: 100%; }
.fo-btn[disabled] { opacity: .55; cursor: progress; }
.fo-linkbtn { background: none; border: 0; padding: 0 4px; color: var(--fo-sky-deep); font: inherit; cursor: pointer; }
.fo-linkbtn--bad { color: var(--fo-bad); }
.fo-arrowlink { font-weight: 600; }

/* ---------- home ①: the replay stage */
.fo-stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 52px; }
.fo-stage__copy h1 { margin-bottom: .45em; }
.fo-stage__act { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 24px 0 10px; }
.fo-live { margin: 0; background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: 22px; padding: 22px 24px 18px; box-shadow: var(--fo-shadow); position: relative; overflow: hidden; }
.fo-live::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--fo-sky), var(--fo-sky-deep)); }
.fo-live__head { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--fo-muted); text-transform: uppercase; margin-bottom: 14px; }
.fo-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fo-sky); animation: fo-glow 2.4s ease-out infinite; }
@keyframes fo-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fo-sky) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.fo-live__turn + .fo-live__turn { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--fo-line); }
.fo-live__turn[hidden] { display: none; }
.fo-live__who { display: block; font-size: .78rem; font-weight: 600; color: var(--fo-muted); margin-bottom: 4px; }
.fo-live__who code { font-size: .78rem; color: var(--fo-sky-deep); }
.fo-live__ask { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--fo-surface-2); font-weight: 500; }
.fo-live__say { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.fo-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--fo-sky); animation: fo-blink 1s steps(2, start) infinite; }
@keyframes fo-blink { to { visibility: hidden; } }
.fo-live--done .fo-caret { display: none; }
.fo-chunk { opacity: 0; transition: opacity .3s ease; }
.fo-chunk--in { opacity: 1; }
.fo-live__meter { margin: 14px 0 0; font-size: .86rem; color: var(--fo-muted); }
.fo-live__meter b { font: 600 1rem var(--fo-head); color: var(--fo-sky-deep); font-variant-numeric: tabular-nums; }
.fo-live__note { margin: 4px 0 0; font-size: .78rem; color: var(--fo-muted); }

/* ---------- home ②: how streaming is billed */
.fo-billsteps { list-style: none; counter-reset: fo-bill; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--fo-sky); }
.fo-billsteps li { counter-increment: fo-bill; padding: 18px 20px 4px 0; }
.fo-billsteps li + li { padding-left: 20px; border-left: 1px solid var(--fo-line); }
.fo-billsteps h3::before { content: counter(fo-bill, decimal-leading-zero) " "; color: var(--fo-sky); font-variant-numeric: tabular-nums; }
.fo-billsteps p { margin: 0; color: var(--fo-ink-soft); font-size: .95rem; }
.fo-pricecmp { margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--fo-sky); background: var(--fo-surface); border-radius: 0 12px 12px 0; font-weight: 500; }

/* ---------- home ④: three questions */
.fo-faq { display: grid; gap: 10px; max-width: 820px; }
.fo-faq__item { background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: 12px; padding: 4px 18px; }
.fo-faq__item summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-family: var(--fo-head); }
.fo-faq__item p { margin: 0 0 14px; color: var(--fo-ink-soft); }

/* ---------- tables */
.fo-tablewrap { overflow-x: auto; border: 1px solid var(--fo-line); border-radius: var(--fo-radius); background: var(--fo-surface); margin: 12px 0; }
.fo-tablewrap--compact { max-height: 420px; overflow-y: auto; }
.fo-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fo-table th, .fo-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fo-line); vertical-align: top; }
.fo-table thead th { background: var(--fo-surface-2); font-weight: 600; font-size: .85rem; color: var(--fo-ink-soft); position: sticky; top: 0; }
.fo-table tbody tr:last-child td { border-bottom: 0; }
.fo-mname { display: block; font-weight: 600; }
.fo-copy { cursor: copy; background: var(--fo-surface-2); padding: 1px 6px; border-radius: 6px; }
.fo-row--dim td { opacity: .55; }
.fo-num { width: 76px; }

/* ---------- monthly plans */
.fo-tidegroup { margin-top: 22px; }
.fo-tidegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fo-tidegrid--four { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.fo-tide { background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: var(--fo-radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.fo-tide__name { margin: 0; font-size: 1rem; }
.fo-tide__price { margin: 0; }
.fo-tide__price strong { font: 600 1.5rem var(--fo-head); color: var(--fo-sky-deep); }
.fo-tide__facts { margin: 0; display: grid; gap: 4px; font-size: .9rem; }
.fo-tide__facts div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--fo-line); padding-bottom: 3px; }
.fo-tide__facts dt { color: var(--fo-muted); }
.fo-tide__facts dd { margin: 0; font-weight: 600; }
.fo-tide__blurb { margin: 0; font-size: .86rem; color: var(--fo-ink-soft); flex: 1; }
.fo-tide form { margin: 0; }
.fo-rules { margin-top: 18px; background: var(--fo-surface-2); border-radius: var(--fo-radius); padding: 16px 20px; }
.fo-rules ul { margin: 0; padding-left: 18px; color: var(--fo-ink-soft); font-size: .92rem; }
.fo-mine__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fo-mine__card { border: 1px solid var(--fo-line); border-radius: 12px; padding: 14px; background: var(--fo-surface); }
.fo-mine__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.fo-mine__row { display: grid; gap: 4px; margin-top: 8px; font-size: .9rem; }
.fo-meter { display: block; height: 7px; border-radius: 9px; background: var(--fo-surface-2); overflow: hidden; }
.fo-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--fo-sky), var(--fo-sky-deep)); border-radius: 9px; }
.fo-chip { display: inline-block; font-style: normal; font-size: .76rem; padding: 2px 8px; border-radius: 999px; background: var(--fo-sky-wash); color: var(--fo-sky-deep); }
.fo-chip--warn { background: color-mix(in srgb, var(--fo-warn) 18%, transparent); color: var(--fo-warn); }

/* ---------- panels, notes, forms */
.fo-panel { background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: var(--fo-radius); padding: 20px; margin: 14px 0; }
.fo-note { border-radius: 11px; padding: 10px 14px; margin: 12px 0; border: 1px solid var(--fo-line); }
.fo-note--ok { background: color-mix(in srgb, var(--fo-good) 12%, var(--fo-surface)); border-color: color-mix(in srgb, var(--fo-good) 35%, transparent); }
.fo-note--bad { background: color-mix(in srgb, var(--fo-bad) 10%, var(--fo-surface)); border-color: color-mix(in srgb, var(--fo-bad) 35%, transparent); }
.fo-note--info { background: var(--fo-sky-wash); border-color: color-mix(in srgb, var(--fo-sky) 30%, transparent); }
.fo-form { display: grid; gap: 14px; }
.fo-form label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; }
.fo-form label small { color: var(--fo-muted); font-weight: 400; }
.fo-form input, .fo-form select, .fo-form textarea, .fo-keeper input, .fo-keeper select, .fo-keeper textarea { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--fo-line); background: var(--fo-ground); color: var(--fo-ink); }
.fo-form input:focus, .fo-form select:focus, .fo-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--fo-sky) 50%, transparent); border-color: var(--fo-sky); }
.fo-form--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.fo-form--row h3 { grid-column: 1 / -1; margin: 0; }
.fo-form--row p { grid-column: 1 / -1; margin: 0; }
.fo-check { display: inline-flex !important; align-items: center; gap: 4px; }
.fo-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fo-empty { color: var(--fo-muted); text-align: center; padding: 18px; }
.fo-facts { display: grid; gap: 8px; margin: 0; }
.fo-facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--fo-line); padding-bottom: 6px; }
.fo-facts dt { color: var(--fo-muted); }
.fo-facts dd { margin: 0; font-weight: 600; word-break: break-all; }
.fo-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 16px; }
.fo-list { padding-left: 20px; }
.fo-list li { margin: 4px 0; }

/* ---------- sign-up / log-in: one centred card */
.fo-cardpage { display: flex; justify-content: center; padding-top: 56px; }
.fo-card { width: min(440px, 100%); background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: 20px; padding: 26px 26px 20px; box-shadow: var(--fo-shadow); }
.fo-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fo-card__head h1 { font-size: 1.6rem; margin: 0; }
.fo-card__gift { margin: -4px 0 0; font-size: .82rem; color: var(--fo-sky-deep); text-align: center; }
.fo-invite summary { cursor: pointer; font-size: .9rem; color: var(--fo-sky-deep); }
.fo-invite label { margin-top: 10px; }

/* ---------- developer docs */
.fo-base { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--fo-surface); border: 1px solid var(--fo-line); }
.fo-guide { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-top: 28px; }
.fo-guide__toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; }
.fo-guide__toc a { padding: 6px 10px; border-radius: 8px; color: var(--fo-ink-soft); }
.fo-guide__toc a:hover { background: var(--fo-surface-2); text-decoration: none; }
.fo-guide__body section { margin-bottom: 44px; }
.fo-guide__body h3 { margin-top: 1.4em; }
.fo-code { background: #071427; color: #d9ecfb; border-radius: 12px; padding: 14px 16px; overflow-x: auto; line-height: 1.65; border: 1px solid #12304f; }
.fo-code code { font-size: .86rem; }

/* ---------- tutorials: a timeline */
.fo-shelves { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fo-shelf { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--fo-line); color: var(--fo-ink-soft) !important; background: var(--fo-surface); }
.fo-shelf small { color: var(--fo-muted); }
.fo-shelf--on { border-color: var(--fo-sky); color: var(--fo-sky-deep) !important; }
.fo-timeline { list-style: none; margin: 28px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--fo-line); }
.fo-tl__day { position: relative; margin-bottom: 26px; }
.fo-tl__day::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--fo-sky); box-shadow: 0 0 0 4px var(--fo-ground); }
.fo-tl__date { display: block; font: 600 .95rem var(--fo-head); color: var(--fo-sky-deep); margin-bottom: 8px; }
.fo-tl__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fo-tl__item { background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: 12px; padding: 12px 16px; }
.fo-tl__item h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.fo-tl__item h3 a { color: var(--fo-ink); }
.fo-tl__item p { margin: 0; color: var(--fo-ink-soft); font-size: .92rem; }
.fo-tl__meta { font-size: .8rem; color: var(--fo-muted); }
.fo-posts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fo-postitem { background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: var(--fo-radius); padding: 16px; }
.fo-postitem h3 { margin: 8px 0; }
.fo-postitem p { margin: 0; color: var(--fo-ink-soft); font-size: .93rem; }
.fo-postitem__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--fo-muted); }
.fo-article { max-width: 780px; padding-top: 36px; }
.fo-article__cta { margin-top: 28px; }
.fo-back { display: inline-block; margin-bottom: 14px; }
.fo-prose { font-size: 1.04rem; }
.fo-prose h2 { margin-top: 1.6em; }
.fo-prose p, .fo-prose li { color: var(--fo-ink-soft); }
.fo-prose ul { list-style: none; padding-left: 4px; }
.fo-prose li { margin: 6px 0; }
.fo-policy section { margin-top: 26px; }

/* ---------- dashboard: top bar + secondary tabs */
.fo-dash__bar { background: var(--fo-surface); border-bottom: 1px solid var(--fo-line); }
.fo-dash__barrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 58px; }
.fo-dash__who { font-family: var(--fo-head); }
.fo-dash__bal { margin-left: auto; color: var(--fo-muted); font-size: .92rem; }
.fo-dash__bal b { color: var(--fo-ink); font-family: var(--fo-head); margin-left: 4px; }
.fo-dash__tabs { border-bottom: 1px solid var(--fo-line); background: var(--fo-ground); position: sticky; top: 68px; z-index: 10; }
.fo-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.fo-tab { padding: 12px 14px; color: var(--fo-ink-soft) !important; white-space: nowrap; border-bottom: 2px solid transparent; }
.fo-tab:hover { color: var(--fo-ink) !important; text-decoration: none !important; }
.fo-tab--on { color: var(--fo-sky-deep) !important; border-bottom-color: var(--fo-sky); font-weight: 600; }
.fo-count { background: var(--fo-sky); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.fo-dash__main { padding-top: 28px; }
.fo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.fo-tile { background: var(--fo-surface); border: 1px solid var(--fo-line); border-radius: var(--fo-radius); padding: 16px; display: grid; gap: 4px; }
.fo-tile span { color: var(--fo-muted); font-size: .86rem; }
.fo-tile b { font: 600 1.35rem var(--fo-head); word-break: break-all; }
.fo-tile small { color: var(--fo-muted); }
.fo-tile--warn b { color: var(--fo-bad); }
.fo-tile--good b { color: var(--fo-good); }
.fo-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fo-quick a { padding: 8px 14px; border-radius: 10px; background: var(--fo-surface); border: 1px solid var(--fo-line); }
.fo-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 140px; margin: 10px 0; padding: 8px; background: var(--fo-surface-2); border-radius: 12px; }
.fo-bars__col { height: 100%; display: flex; align-items: flex-end; }
.fo-bars__fill { width: 100%; background: linear-gradient(180deg, var(--fo-sky), var(--fo-sky-deep)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.fo-qc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.fo-qc__item h4 { margin: 8px 0 4px; font-size: .95rem; }
.fo-secret { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fo-secret code { word-break: break-all; }
.fo-linkline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fo-linkline code { word-break: break-all; }
.fo-echoes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fo-echo { border: 1px solid var(--fo-line); border-radius: 12px; padding: 12px 14px; }
.fo-echo__mine p, .fo-echo__reply p { margin: 0 0 4px; white-space: pre-wrap; }
.fo-echo__reply { margin-top: 10px; border-left: 3px solid var(--fo-sky); padding-left: 12px; }
.fo-echo time { font-size: .8rem; color: var(--fo-muted); }
.fo-echo__wait { color: var(--fo-muted); font-style: italic; margin: 8px 0 0; }

/* admin keeps a side menu */
.fo-console { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-top: 32px; }
.fo-console__main { min-width: 0; }
.fo-side { position: sticky; top: 84px; align-self: start; }
.fo-side nav { display: grid; gap: 2px; }
.fo-side__link { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--fo-ink-soft) !important; }
.fo-side__link--on { background: var(--fo-sky-wash); color: var(--fo-sky-deep) !important; font-weight: 600; }
.fo-keeper .fo-inline input, .fo-keeper .fo-inline textarea { margin: 2px; }
.fo-keeper .fo-top__row { grid-template-columns: 1fr auto; }

/* ---------- footer: two quiet rows */
.fo-foot { border-top: 1px solid var(--fo-line); padding: 22px 0 26px; }
.fo-foot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; font-size: .9rem; }
.fo-foot__row a { color: var(--fo-ink-soft); }
.fo-foot__row span { color: var(--fo-line); }
.fo-foot__row--fine { margin-top: 8px; font-size: .82rem; color: var(--fo-muted); }

/* ---------- responsive & motion */
@media (max-width: 960px) {
  .fo-stage, .fo-guide, .fo-console { grid-template-columns: 1fr; }
  .fo-tidegrid--four { grid-template-columns: repeat(2, 1fr); }
  .fo-billsteps { grid-template-columns: 1fr; }
  .fo-billsteps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--fo-line); }
  .fo-side, .fo-guide__toc { position: static; }
}
@media (max-width: 720px) {
  .fo-top__row { grid-template-columns: 1fr auto; padding: 8px 0; }
  .fo-pill { grid-column: 1 / -1; order: 3; justify-self: center; }
  .fo-dash__tabs { top: 0; position: static; }
}
@media (max-width: 520px) {
  .fo-tidegrid--four { grid-template-columns: 1fr; }
  .fo-pill__link { padding: 6px 10px; font-size: .9rem; }
  .fo-stage { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --fo-motion: still; }
  .fo-flowline, .fo-live__dot, .fo-caret { animation: none; }
  .fo-btn { transition: none; }
}
