/* Adfuel AI Command Center
   Dark navy control-room look with Adfuel orange as the brand accent. Each AI role has its own hue,
   always shown together with its name and icon. Post states use green / amber / red with an icon and words. */

:root {
  color-scheme: dark;
  --field: #070a1c;
  --surface: #0e1430;
  --surface-2: #161f47;
  --line: #2b376b;
  --ink: #f6f8ff;
  --ink-2: #bcc6e0;
  --ink-3: #8b97b8;
  --block: #f6f8ff;
  --block-ink: #0a0f1d;
  --accent: #f15a2b;            /* the orange on goadfuel.com */
  --accent-2: #ff9a3d;
  --accent-text: #ff9466;
  --good: #1fd16a;
  --good-text: #4ade80;
  --warn: #ffb820;
  --warn-text: #ffc94a;
  --crit: #ff4d57;
  --crit-text: #ff8a91;
  --bar: #f15a2b;
  --track: #1f2a57;
  --glow: 1;

  --h-strategist: #22d3ee;
  --h-copywriter: #facc15;
  --h-visual: #fb5c9a;
  --h-quality: #a78bfa;
  --h-publisher: #34e39a;
  --h-analyst: #ff7a3d;

  /* each channel in its own colour (X and Threads are black brands, so they turn white on the dark theme) */
  --ch-instagram: #f2408a;
  --ch-facebook: #2f88ff;
  --ch-x: #f5f7fa;
  --ch-youtube: #ff2d2d;
  --ch-tiktok: #25f4ee;
  --ch-linkedin: #3fa0f5;
  --ch-threads: #d5d9ea;
  --ch-pinterest: #ff3355;

  --display: "Poppins", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 24px;
  --radius: 16px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --field: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: #dcdff0;
  --ink: #12142b;
  --ink-2: #454a68;
  --ink-3: #686d8c;
  --block: #1e1e1e;
  --block-ink: #ffffff;
  --accent-text: #c2410c;
  --good: #0ca30c;
  --good-text: #006300;
  --warn-text: #6b4a00;
  --crit: #d03b3b;
  --crit-text: #a82424;
  --track: #e6e8f4;
  --glow: 0;

  --h-strategist: #0891b2;
  --h-copywriter: #b45309;
  --h-visual: #db2777;
  --h-quality: #7c3aed;
  --h-publisher: #059669;
  --h-analyst: #d9480f;

  --ch-instagram: #d62976;
  --ch-facebook: #1877f2;
  --ch-x: #111111;
  --ch-youtube: #e60000;
  --ch-tiktok: #fe2c55;
  --ch-linkedin: #0a66c2;
  --ch-threads: #111111;
  --ch-pinterest: #e60023;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--field);
  color: var(--ink);
  font: 400 15.5px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(1100px 640px at 94% -12%, rgba(241, 90, 43, 0.36), transparent 60%),
    radial-gradient(900px 620px at -8% 2%, rgba(47, 136, 255, 0.28), transparent 60%),
    radial-gradient(1000px 700px at 46% 120%, rgba(214, 41, 118, 0.24), transparent 62%),
    var(--field);
  background-attachment: fixed;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--block); color: var(--block-ink); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sample-banner { background: var(--warn); color: #1a1200; text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; }

/* ---------- top bar ---------- */

.top { position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--field) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-row { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: block; height: 38px; width: auto; }
.logo--on-light { display: none; }
:root[data-theme="light"] .logo--on-dark { display: none; }
:root[data-theme="light"] .logo--on-light { display: block; }
.brand-sub { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #160700; box-shadow: 0 6px calc(22px * var(--glow)) rgba(241, 90, 43, 0.45); }

.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.live b { font-weight: 500; color: var(--ink); letter-spacing: 0.1em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.live--on .live-dot { background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 70%, transparent); animation: pulse 2.2s ease-out infinite; }
.live--on b { color: var(--good-text); }
.live--late .live-dot { background: var(--warn); }
.live--late b { color: var(--warn-text); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--block); color: var(--block-ink); }
.seg button:focus-visible { outline-offset: -3px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; color: var(--ink-2); }

/* ---------- page scaffolding ---------- */

.page { padding: 34px 0 56px; }
.page-head { display: grid; gap: 10px; margin-bottom: 26px; }
.page-head h1 { font: 900 clamp(1.9rem, 4.2vw, 3.1rem)/1.04 var(--display); letter-spacing: -0.035em; }
.page-head p { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 68ch; }
.bar { display: inline-block; margin-top: 0.08em; background: var(--block); color: var(--block-ink); padding: 0.04em 0.16em 0.08em; border-radius: 6px; }

.block { margin-top: 38px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.block-head h2 { font: 800 1.02rem/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; padding-left: 12px; border-left: 3px solid var(--accent); }
.block-note { color: var(--ink-3); font-size: 14px; }
.more { font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more::after { content: " \2192"; }

.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font: 800 1.05rem/1.25 var(--display); letter-spacing: -0.01em; }
.card-sub { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.stack-col { display: grid; gap: 16px; }

/* ---------- KPI row ---------- */

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; min-width: 0; }
.kpi dt { font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.kpi dd { margin-top: 8px; }
.kpi-value { display: block; font: 900 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--display); letter-spacing: -0.03em; }
.kpi-sub { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.up { color: var(--good-text); font-weight: 600; }
.down { color: var(--crit-text); font-weight: 600; }
.muted { color: var(--ink-3); }

/* ---------- agent cards ---------- */

.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.agent { --hue: var(--accent); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 16px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--hue) 78%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 7%, var(--surface-2)), var(--surface)); box-shadow: 0 0 calc(26px * var(--glow)) color-mix(in srgb, var(--hue) 22%, transparent); }
.agent-top { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.agent-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--hue) 18%, transparent); color: var(--hue); }
.agent-icon svg { width: 22px; height: 22px; }
.agent h3 { font: 700 1.08rem/1.2 var(--body); letter-spacing: -0.01em; }
.agent-role { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.agent-n { font: 500 12px/1 var(--mono); color: var(--ink-3); align-self: start; }
.agent-line { margin-top: 14px; min-height: 2.9em; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.cursor { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--hue); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.agent-track { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.agent-fill { position: relative; display: block; height: 100%; border-radius: 999px; background: var(--hue); overflow: hidden; }
/* a sheen runs along the bar of the role that is working right now */
.agent.is-working .agent-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: translateX(-100%); animation: sheen 1.6s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.agent-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.agent-foot b { color: var(--ink); font-weight: 700; }
.state { font: 500 11.5px/1 var(--mono); letter-spacing: 0.12em; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-2); }
.state--working { background: var(--hue); border-color: var(--hue); color: #0a0f1d; }

.agent--strategist, .role--strategist { --hue: var(--h-strategist); }
.agent--copywriter, .role--copywriter { --hue: var(--h-copywriter); }
.agent--visual, .role--visual { --hue: var(--h-visual); }
.agent--quality, .role--quality { --hue: var(--h-quality); }
.agent--publisher, .role--publisher { --hue: var(--h-publisher); }
.agent--analyst, .role--analyst { --hue: var(--h-analyst); }

/* ---------- charts ---------- */

.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.chart-card { padding: 20px 20px 14px; min-width: 0; }
.chart-card figcaption { display: grid; gap: 2px; margin-bottom: 10px; }
.chart-title { font: 800 1.02rem/1.25 var(--display); }
.chart-sub { font-size: 13px; color: var(--ink-3); }
.chart-plot { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-axis { fill: var(--ink-3); font: 500 12px var(--body); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke: var(--bar); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 calc(7px * var(--glow)) color-mix(in srgb, var(--bar) 70%, transparent)); }
.c-stop-a { stop-color: var(--bar); stop-opacity: 0.45; }
.c-stop-b { stop-color: var(--bar); stop-opacity: 0; }
.c-dot { fill: var(--bar); stroke: var(--surface); stroke-width: 2; }
.c-end { fill: var(--ink); font: 700 12.5px var(--body); font-variant-numeric: tabular-nums; }
.c-col { fill: var(--bar); }
.c-col.is-on { fill: var(--ink); }
.c-mark { stroke: var(--ink-3); stroke-width: 1; }
.c-mark-label { fill: var(--ink-2); font: 500 12px var(--body); }
.c-cross { stroke: var(--ink-2); stroke-width: 1; }
.c-hit { fill: transparent; cursor: crosshair; }
.as-table { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.as-table summary { cursor: pointer; width: max-content; padding: 4px 0; }
.as-table table { margin-top: 8px; border-collapse: collapse; width: 100%; max-width: 420px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.as-table th, .as-table td { text-align: left; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.as-table td:last-child, .as-table th:last-child { text-align: right; padding-right: 0; }
.as-table-scroll { max-height: 220px; overflow: auto; }

.empty { padding: 18px; border: 1px dashed color-mix(in srgb, var(--ink-3) 70%, transparent); border-radius: 12px; }
.empty strong { display: block; font-weight: 700; }
.empty p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* ---------- platform cards ---------- */

.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform { display: block; text-decoration: none; min-width: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color 0.15s, transform 0.15s; }
.platform:hover { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); transform: translateY(-2px); }
.platform-top { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--block); color: var(--block-ink); font: 500 13px/1 var(--mono); }
.code--sm { width: auto; height: auto; min-width: 28px; padding: 5px 6px; border-radius: 6px; font-size: 11.5px; display: inline-grid; }
.platform h3 { font: 700 1.02rem/1.2 var(--body); }
.platform-handle { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pstats dt { font: 500 11.5px/1.25 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pstats dd { margin-top: 5px; font: 800 1.25rem/1.1 var(--display); letter-spacing: -0.02em; }
.pstats dd.is-missing { font: 400 13px/1.3 var(--body); letter-spacing: 0; color: var(--ink-3); }
.platform-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); min-height: 26px; }
.spark { width: 96px; height: 26px; flex: none; }
.spark path { fill: none; stroke: var(--bar); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- stage filter and stage pill ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 8px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: color 0.18s, border-color 0.18s, background-color 0.18s, transform 0.12s; }
.filters button:hover { color: var(--ink); border-color: var(--ink-3); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--block); border-color: var(--block); color: var(--block-ink); }
.count { min-width: 24px; text-align: center; padding: 4px 7px; border-radius: 999px; font: 500 12px/1 var(--mono); background: color-mix(in srgb, currentColor 14%, transparent); }
.stage { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--field) 86%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); font: 600 12px/1 var(--body); }
.stage .glyph { width: 15px; height: 15px; }
.piece--more { display: grid; place-items: center; min-height: 160px; padding: 20px; text-align: center; text-decoration: none; font-weight: 600; color: var(--accent-text); border-style: dashed; transition: border-color 0.18s; }
.piece--more:hover { border-color: var(--accent); }

/* ---------- entrance: cards rise in one after another on a tab or filter change ---------- */

[data-enter] .stagger > *, .stagger[data-enter] > * { animation: rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- the process walkthrough ---------- */

.proc { padding: 24px 24px 20px; }
.proc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.proc-now { min-height: 104px; max-width: 72ch; }
.proc-step { font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.proc-title { margin-top: 8px; font: 800 1.4rem/1.2 var(--display); letter-spacing: -0.02em; }
.proc-text { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.proc-now.swap .proc-title, .proc-now.swap .proc-text { animation: swap 0.36s ease-out both; }
.proc-now.swap .proc-text { animation-delay: 60ms; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.proc-ctrl { display: flex; gap: 8px; flex: none; }
.proc-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color 0.18s, border-color 0.18s, transform 0.12s; }
.proc-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.proc-btn:active { transform: scale(0.94); }
.proc-btn svg { width: 18px; height: 18px; }
.proc-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-text); }

.proc-track { position: relative; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: 22px; padding-top: 14px; }
:where(.proc-stop) { --hue: var(--ink-2); }
.proc-stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 0 4px; }
.proc-stop--you { --hue: var(--ink); }
.proc-stop--out { --hue: var(--accent); }
/* the link to the next step */
.proc-stop::after { content: ""; position: absolute; top: 27px; left: calc(50% + 36px); width: calc(100% - 72px); height: 2px; border-radius: 2px; background-color: var(--line); }
.proc-stop:nth-last-child(2)::after { display: none; }   /* the last step (the token is the final child) */
.proc-stop.is-done::after { background-color: color-mix(in srgb, var(--hue) 70%, var(--line)); }
.proc-stop.is-active::after { background-image: linear-gradient(90deg, transparent, var(--hue), transparent); background-size: 45% 100%; background-repeat: no-repeat; animation: flow 1.15s linear infinite; }
@keyframes flow { from { background-position: -90% 0; } to { background-position: 190% 0; } }
.proc-node { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-3); cursor: pointer; transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25), border-color 0.25s, color 0.25s, background-color 0.25s, box-shadow 0.3s; }
.proc-node svg { width: 24px; height: 24px; }
.proc-node:hover { border-color: var(--ink-3); color: var(--ink); }
.proc-stop.is-done .proc-node { border-color: color-mix(in srgb, var(--hue) 55%, var(--line)); color: var(--hue); }
.proc-stop.is-active .proc-node { border-color: var(--hue); color: var(--hue); background: color-mix(in srgb, var(--hue) 16%, var(--surface)); transform: scale(1.1); box-shadow: 0 0 calc(28px * var(--glow)) color-mix(in srgb, var(--hue) 45%, transparent); }
.proc-label { display: grid; justify-items: center; gap: 3px; margin-top: 12px; min-width: 0; }
.proc-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); transition: color 0.25s; }
.proc-stop.is-active .proc-name { color: var(--ink); }
.proc-meta { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.proc-live { margin-top: 3px; padding: 4px 7px; border-radius: 6px; background: var(--good); color: #04140a; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.proc-token { position: absolute; left: 0; top: 0; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #140700; box-shadow: 0 0 calc(18px * var(--glow)) var(--accent), 0 2px 8px rgba(0, 0, 0, 0.35); pointer-events: none; will-change: transform; transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.proc-token svg { width: 16px; height: 16px; stroke-width: 2.2; }

.proc-bar { margin-top: 22px; height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
.proc-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--h-copywriter)); transform-origin: left center; transform: scaleX(0); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.proc-out { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.proc-out-label { font-size: 12.5px; color: var(--ink-3); }
.proc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proc-chips li { display: grid; opacity: 0.5; transition: opacity 0.3s, transform 0.3s; }
.proc-chips.is-live li { opacity: 1; transform: translateY(-3px) scale(1.12); transition-delay: calc(var(--i) * 60ms); }

/* ---------- thumbnails ---------- */

.thumb { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 9px; aspect-ratio: 1; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, var(--surface-2)), var(--surface-2) 70%); color: var(--ink); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.thumb--wide { aspect-ratio: 4 / 3; border-radius: 12px 12px 0 0; }
.thumb--wide img { object-position: 50% 28%; }
.thumb--wide .thumb-label { font-size: 12px; }
.thumb svg { width: 34%; max-width: 44px; height: auto; opacity: 0.85; }

/* ---------- galleries ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.piece { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; }
.piece-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.piece-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 6px; border: 1px solid var(--ink-3); border-radius: 5px; color: var(--ink-2); }
.tag--soft { border-color: var(--line); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.chan-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chan { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px 4px 5px; border: 1px solid var(--line); border-radius: 8px; font: 500 12px/1 var(--mono); color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
a.chan:hover { border-color: var(--ink-3); color: var(--ink); }
.chan .glyph { width: 15px; height: 15px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.metrics dt { font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.metrics dd { margin-top: 3px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.piece-when { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.open { font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.open:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- role detail cards ---------- */

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* :where() keeps these defaults weaker than the per-role hue classes */
:where(.role) { --hue: var(--accent); }
.role { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-top: 2px solid var(--hue); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.role-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--hue); border-radius: 50%; font: 800 13px/1 var(--display); }
.role h3 { margin-top: 14px; font: 800 1.2rem/1.15 var(--display); letter-spacing: -0.02em; }
.role-job { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); }
.role-proof { margin-top: auto; padding-top: 16px; }
.role-proof p { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; line-height: 1.45; display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.role-proof p::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--hue); }
.role-proof p.role-live { display: block; margin-top: 10px; padding-top: 0; border-top: 0; font-size: 13px; color: var(--ink-3); }
.role-proof p.role-live::before { display: none; }

/* ---------- run sheet ---------- */

.key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-size: 13.5px; color: var(--ink-2); }
.key li { display: inline-flex; align-items: center; gap: 7px; }
/* position: relative keeps the visually hidden labels inside the scrolling box, so they cannot widen the page */
.sheet-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sheet { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.sheet th, .sheet td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sheet tbody tr:last-child th, .sheet tbody tr:last-child td { border-bottom: 0; }
.sheet thead th { vertical-align: bottom; border-bottom: 1px solid var(--ink-3); font-weight: 400; padding-bottom: 12px; }
.sheet thead th:first-child { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.ch-name { display: block; margin-top: 8px; font-weight: 600; font-size: 13.5px; }
.ch-live { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sheet tbody th { width: 30%; min-width: 260px; font-weight: 400; position: sticky; left: 0; background: var(--surface); }
.sheet .piece-title { display: block; font-weight: 600; font-size: 14px; }
.sheet .tags { margin-top: 6px; }
.cell { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--mono); color: var(--ink); text-decoration: none; white-space: nowrap; padding: 4px 4px 4px 0; border-radius: 4px; font-variant-numeric: tabular-nums; }
a.cell:hover { text-decoration: underline; text-underline-offset: 3px; }
.cell--scheduled { color: var(--ink-2); }
.cell--none { color: var(--ink-3); }
.cell-as { display: block; margin-top: 3px; font: 400 11.5px/1.2 var(--body); color: var(--ink-3); padding-left: 25px; }

.glyph { width: 18px; height: 18px; flex: none; }
.glyph--published { color: var(--good); }
.glyph--scheduled { color: var(--ink-3); }
.glyph--due, .glyph--pending_approval, .glyph--publishing { color: var(--warn); }
.glyph--failed { color: var(--crit); }
.glyph--draft { color: var(--ink-3); }
.glyph--none { color: var(--line); }

/* ---------- bars, jobs, totals, feed, stack ---------- */

.bars { margin-top: 18px; display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 168px) 1fr; gap: 14px; align-items: center; padding: 7px 6px; margin: 0 -6px; border-radius: 6px; }
.bar-row:hover, .bar-row:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bar-label { font-size: 14px; line-height: 1.25; }
.bar-plot { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* --r is the bar's share of the longest bar (0 to 1); 64px is kept free for the value at its tip. */
.bar-fill { height: 14px; min-width: 2px; width: calc((100% - 64px) * var(--r, 0)); background: var(--bar); border-radius: 0 4px 4px 0; flex: none; }
.bar-value { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.joblist { margin-top: 16px; display: grid; gap: 16px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job h4 { font-size: 15px; font-weight: 700; }
.job-when { font: 500 12px/1.4 var(--mono); color: var(--ink-2); text-align: right; }
.job p { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.job-state { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.job-state span { display: inline-flex; align-items: center; gap: 6px; }

.totals { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.totals dt { font-size: 13px; color: var(--ink-3); }
.totals dd { font: 900 1.5rem/1.1 var(--display); letter-spacing: -0.03em; }

.feed { margin-top: 14px; display: grid; }
:where(.feed li) { --hue: var(--ink-3); }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue); transform: translateY(-1px); }
.feed-who { font-weight: 600; }
.feed-when { font: 500 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }

.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink-3); }
.stack > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.stack dt { font: 800 1.02rem/1.2 var(--display); }
.stack dd { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- channel dashboard ---------- */

.picker { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 14px; scrollbar-width: thin; }
.picker button { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.picker button:hover { color: var(--ink); border-color: var(--ink-3); }
.picker button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 calc(18px * var(--glow)) color-mix(in srgb, var(--accent) 30%, transparent); }
.ch-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.ch-head h2 { font: 900 1.7rem/1.1 var(--display); letter-spacing: -0.03em; }
.ch-handle { color: var(--ink-2); }
.pill { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.pill--warn { border-color: var(--warn); color: var(--warn-text); }

/* ---------- footer, tooltip, errors ---------- */

.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13.5px; color: var(--ink-3); }
.tip { position: fixed; z-index: 40; max-width: 280px; padding: 8px 10px; background: var(--block); color: var(--block-ink); font-size: 13px; line-height: 1.35; border-radius: 8px; pointer-events: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.problem { margin: 48px auto; max-width: 560px; padding: 24px; border: 1px solid var(--crit); border-radius: var(--radius); background: var(--surface); }
.problem h2 { font: 800 1.3rem/1.2 var(--display); }
.problem p { margin-top: 8px; color: var(--ink-2); }

html[data-view="client"] .team-only { display: none; }

/* ---------- channel logos ---------- */
/* Tiles in each brand's own colours. Marks that already include their container (Facebook, YouTube, LinkedIn,
   Pinterest) are drawn in the brand colour on white; the plain glyphs (Instagram, X, TikTok, Threads) sit white on a brand tile. */

.mark { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; background: #ffffff; color: #111111; }
.mark svg { width: 60%; height: 60%; fill: currentColor; }
.mark--lg { width: 54px; height: 54px; border-radius: 15px; }
.mark--sm { width: 28px; height: 28px; border-radius: 8px; }
.mark--xs { width: 18px; height: 18px; border-radius: 5px; }
.mark--instagram { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); color: #ffffff; }
.mark--facebook { background: #ffffff; color: #0866ff; border-radius: 50%; }
.mark--facebook svg, .mark--pinterest svg, .mark--linkedin svg { width: 100%; height: 100%; }
.mark--x, .mark--threads, .mark--tiktok { background: #000000; color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.mark--tiktok svg { filter: drop-shadow(0.9px 0.9px 0 #fe2c55) drop-shadow(-0.9px -0.9px 0 #25f4ee); }
.mark--xs.mark--tiktok svg { filter: none; }
.mark--youtube { background: #ffffff; color: #ff0000; }
.mark--youtube svg { width: 72%; height: 72%; }
.mark--linkedin { background: #ffffff; color: #0a66c2; }
.mark--pinterest { background: #ffffff; color: #e60023; border-radius: 50%; }

.ch--instagram { --ch: var(--ch-instagram); --ch-grad: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.ch--facebook { --ch: var(--ch-facebook); }
.ch--x { --ch: var(--ch-x); }
.ch--youtube { --ch: var(--ch-youtube); }
.ch--tiktok { --ch: var(--ch-tiktok); --ch-grad: linear-gradient(90deg, #25f4ee, #fe2c55); }
.ch--linkedin { --ch: var(--ch-linkedin); }
.ch--threads { --ch: var(--ch-threads); }
.ch--pinterest { --ch: var(--ch-pinterest); }

/* ---------- vivid surfaces ---------- */

.block-head h2 { padding-left: 0; border-left: 0; }
.block-head h2::before { content: ""; display: inline-block; width: 4px; height: 1.05em; margin-right: 11px; border-radius: 3px; vertical-align: -0.16em; background: linear-gradient(180deg, var(--accent-2), #ff3d81); }

.kpi { --tone: var(--accent); position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--tone) 50%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 24%, var(--surface-2)), var(--surface) 72%); }
.kpi::after { content: ""; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 60%, transparent), transparent); opacity: calc(0.6 * var(--glow)); pointer-events: none; }
.kpi dt { padding-right: 46px; color: color-mix(in srgb, var(--tone) 55%, var(--ink)); }
.kpi-icon { position: absolute; right: 14px; top: 14px; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--tone); color: #0a0f1d; box-shadow: 0 6px calc(18px * var(--glow)) color-mix(in srgb, var(--tone) 50%, transparent); }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi--b { --tone: #22d3ee; }
.kpi--c { --tone: #fb5c9a; }
.kpi--d { --tone: #34e39a; }
.kpi--ch { --tone: var(--ch, var(--accent)); }
:root[data-theme="light"] .kpi--b { --tone: #0891b2; }
:root[data-theme="light"] .kpi--c { --tone: #db2777; }
:root[data-theme="light"] .kpi--d { --tone: #059669; }
:root[data-theme="light"] .kpi-icon { color: #ffffff; }

.agent { border-color: var(--hue); background: linear-gradient(165deg, color-mix(in srgb, var(--hue) 22%, var(--surface-2)), var(--surface) 78%); box-shadow: 0 0 calc(34px * var(--glow)) color-mix(in srgb, var(--hue) 30%, transparent); }
.agent-icon { background: var(--hue); color: #0a0f1d; box-shadow: 0 6px calc(18px * var(--glow)) color-mix(in srgb, var(--hue) 45%, transparent); }
:root[data-theme="light"] .agent-icon { color: #ffffff; }
.agent-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 70%, #ffffff), var(--hue)); }

.platform { --bar: var(--ch, var(--accent)); position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--ch, var(--line)) 50%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--ch, var(--surface-2)) 18%, var(--surface-2)), var(--surface) 74%); }
.platform::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ch-grad, var(--ch, var(--accent))); }
.platform:hover { border-color: var(--ch, var(--accent)); box-shadow: 0 12px calc(32px * var(--glow)) color-mix(in srgb, var(--ch, var(--accent)) 32%, transparent); }
.spark path { stroke-width: 2.4; filter: drop-shadow(0 0 calc(4px * var(--glow)) color-mix(in srgb, var(--bar) 70%, transparent)); }

/* the channel dashboard takes on the colour of the channel that is picked */
[data-page="channels"] { --bar: var(--ch, var(--accent)); }
.picker button { padding: 6px 14px 6px 6px; }
.picker button[aria-pressed="true"] { border-color: var(--ch, var(--accent)); background: color-mix(in srgb, var(--ch, var(--accent)) 20%, var(--surface)); color: var(--ink); box-shadow: 0 0 calc(22px * var(--glow)) color-mix(in srgb, var(--ch, var(--accent)) 42%, transparent); }
.ch-head { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--ch, var(--line)) 50%, var(--line)); border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--ch, var(--surface-2)) 24%, var(--surface-2)), var(--surface) 70%); position: relative; overflow: hidden; }
.ch-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ch-grad, var(--ch, var(--accent))); }

.filters button[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #160700; box-shadow: 0 6px calc(18px * var(--glow)) rgba(241, 90, 43, 0.4); }

/* where a post stands: a tinted pill, with its icon and words */
.stage { --tone: var(--ink-3); border-color: color-mix(in srgb, var(--tone) 70%, transparent); background: color-mix(in srgb, var(--tone) 30%, color-mix(in srgb, var(--field) 88%, transparent)); }
.stage--approval { --tone: var(--warn); }
.stage--scheduled { --tone: #3b8cff; }
.stage--going { --tone: var(--accent); }
.stage--published { --tone: var(--good); }
.stage--attention { --tone: var(--crit); }

/* a post without a picture gets a bright cover instead of a grey box */
.thumb { background: linear-gradient(135deg, #ff7a3d, #f2408a 60%, #7c4dff); color: #ffffff; }
.thumb--carousel { background: linear-gradient(135deg, #22d3ee, #4f5bd5 58%, #962fbf); }
.thumb--reel { background: linear-gradient(135deg, #ff3d81, #962fbf 58%, #4f5bd5); }
.thumb--poll { background: linear-gradient(135deg, #facc15, #fa7e1e 52%, #d62976); }
.thumb svg { opacity: 0.95; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }

.chan { gap: 6px; padding: 4px 8px 4px 4px; color: var(--ink); }
.proc-token { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.bar-row.ch { --bar: var(--ch, var(--accent)); }
.bar-label.with-mark { display: flex; align-items: center; gap: 10px; }
.bar-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--bar) 62%, transparent), var(--bar)); box-shadow: 0 0 calc(10px * var(--glow)) color-mix(in srgb, var(--bar) 55%, transparent); }
.charts--second { margin-top: 16px; }
.bar-missing { font-size: 13px; color: var(--ink-3); }

/* ---------- feel: quick, consistent feedback on anything you can press ---------- */

.tabs a, .seg button, .icon-btn, .picker button, a.chan { transition: color 0.18s, background-color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s; }
.tabs a:active, .picker button:active, .icon-btn:active, .seg button:active { transform: scale(0.96); }
.platform:active { transform: scale(0.99); }
.block, .page-head { scroll-margin-top: 96px; }   /* the sticky bar never covers a section jumped to */

/* ---------- smaller screens ---------- */

@media (max-width: 1120px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agents, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-name { font-size: 12.5px; }
}

@media (max-width: 1000px) {
  /* the walkthrough becomes a list that reads top to bottom */
  .proc-track { grid-template-columns: 1fr; gap: 14px; padding-top: 4px; }
  .proc-stop { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 0; }
  .proc-stop::after { top: 58px; left: 27px; width: 2px; height: 10px; }
  .proc-stop.is-active::after { background-image: none; background-color: var(--hue); animation: none; }
  .proc-label { justify-items: start; margin-top: 0; }
  .proc-name { font-size: 15px; }
  .proc-meta { font-size: 13px; }
  .proc-now { min-height: 128px; }
}

@media (max-width: 940px) {
  .charts, .two, .two--wide-left { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .page { padding: 22px 0 40px; }
  .block { margin-top: 30px; }
  .brand-sub { display: none; }
  .top-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .tabs { position: relative; order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
  .agents, .roles, .stack { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .kpis { gap: 12px; }
  .kpi { padding: 14px 14px 12px; }
  .card { padding: 18px 16px; }
  .proc { padding: 18px 16px 16px; }
  .proc-top { flex-direction: column; gap: 12px; }
  .proc-ctrl { order: -1; align-self: flex-end; }
  .proc-now { min-height: 168px; max-width: none; }
  .chart-card { padding: 16px 14px 10px; }
  .sheet { min-width: 860px; font-size: 13.5px; }
  .sheet th, .sheet td { padding: 10px 8px; }
  .sheet tbody th { width: auto; min-width: 0; max-width: 156px; }
  .bar-row { grid-template-columns: minmax(84px, 128px) 1fr; gap: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .totals dd { font-size: 1.25rem; }
}

/* fingers need bigger targets than a mouse pointer */
@media (pointer: coarse) {
  .tabs a, .seg button, .picker button, .filters button { min-height: 44px; display: inline-flex; align-items: center; }
  .icon-btn, .proc-btn { width: 44px; height: 44px; }
  .chan { min-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .live--on .live-dot, .proc-stop.is-active::after, .agent.is-working .agent-fill::after { animation: none; }
  .proc-token, .proc-node, .proc-bar span, .proc-chips li, .platform, .tabs a, .filters button { transition: none; }
  [data-enter] .stagger > *, .stagger[data-enter] > *, .proc-now.swap .proc-title, .proc-now.swap .proc-text { animation: none; }
}

@media print {
  .top-tools, .skip, .tabs, .proc-ctrl, .proc-token { display: none; }
  .top { position: static; }
}
