/* Wave 12 shared components (src/views/ui/). Logical properties only. Tokens in styles.css :root (--card*, --d1..--d6,
   --st-*, --a-*). Class anatomy and values follow the Wave 12 mockups (Talkworth/mockups/wave12/w12.css and NOTES.md),
   so a parallel builder can copy a mockup's markup and get the same look. Where a mockup class name was already taken by
   an older app style (.pill, .state, .spark), the Wave 12 rule is written for the Wave 12 modifiers only, so the older
   screens keep theirs. Loaded on every app page (src/views/shell.ts W12_STYLES). Each builder styles its own screens in
   public/w12-{a..f}.css. Gallery: /__dev/ui (dev only). */

/* ---------- Agent colour carrier: one attribute, one source (the avatar, switch, run button, tabs, bars read --ac) ---------- */
[data-agent="competitors"] { --ac: var(--a-competitors); }
[data-agent="content"] { --ac: var(--a-content); }
[data-agent="links"] { --ac: var(--a-links); }
[data-agent="social"] { --ac: var(--a-social); }
[data-agent="corrections"] { --ac: var(--a-corrections); }
[data-agent="manager"] { --ac: var(--a-manager); }
[data-agent="measure"] { --ac: var(--a-measure); }
[data-agent="custom"] { --ac: var(--d3); }

/* ---------- Data palette helpers (series, tiles, non-agent bars) ---------- */
.tone--d1 { --tone: var(--d1); --k: var(--d1); --ac: var(--d1); }
.tone--d2 { --tone: var(--d2); --k: var(--d2); --ac: var(--d2); }
.tone--d3 { --tone: var(--d3); --k: var(--d3); --ac: var(--d3); }
.tone--d4 { --tone: var(--d4); --k: var(--d4); --ac: var(--d4); }
.tone--d5 { --tone: var(--d5); --k: var(--d5); --ac: var(--d5); }
.tone--d6 { --tone: var(--d6); --k: var(--d6); --ac: var(--d6); }
/* Shades of one colour, for several competitors in an agent's colour (mockup: #cfe0ff, #6ea8fe, #3b6fc2 for blue). */
.tone--d2.shade--1 { --tone: #cfe0ff; --k: #cfe0ff; }
.tone--d2.shade--3 { --tone: #3b6fc2; --k: #3b6fc2; }
.shade--1 { --tone: color-mix(in srgb, var(--k) 45%, #fff); --k: color-mix(in srgb, var(--k) 45%, #fff); }
.shade--3 { --tone: color-mix(in srgb, var(--k) 65%, #000); --k: color-mix(in srgb, var(--k) 65%, #000); }

/* Isolated numbers keep their order in both directions. */
bdi { unicode-bidi: isolate; }

/* ---------- Buttons in an agent's colour ("Turn on", "Run now"), and the dashed estimate tag ---------- */
/* A plain colour, not color-mix: the contrast check (and some older browsers) cannot read a mixed one. */
.btn--on { background: var(--ac, var(--accent)); color: #0d0e10; border-color: transparent; }
.btn--on:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--ac, var(--accent)) 70%, transparent); }
.tag--est { color: var(--tx-3); background: transparent; border: 1px dashed var(--card-line-2); }

/* ---------- Credit balance (top bar on phones, top of the main column on wider screens; mockup .creditpill) ---------- */
.creditchip { display: inline-flex; align-items: center; gap: 8px; min-block-size: 32px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); color: var(--tx-2); font-size: var(--fs-13); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 1px 0 var(--card-hi); transition: border-color 0.2s; }
.creditchip:hover { border-color: var(--card-line-2); color: var(--tx); }
.creditchip .icon { color: var(--accent); }
.mainbar { display: flex; justify-content: flex-end; padding: 14px 32px 0; }
.topbar .creditchip { flex: none; }
@media (max-width: 767px) {
  .mainbar { display: none; }
}

/* ---------- Metric tiles (mockup .tiles / .tile) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@container content (max-width: 900px) { .tiles--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container content (max-width: 560px) { .tiles, .tiles--3, .tiles--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; min-inline-size: 0; }
.tile__l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-block-size: 32px; font-size: var(--fs-12); line-height: 16px; font-weight: var(--w-body); color: var(--tx-3); letter-spacing: var(--track); }
/* The estimate tag wraps inside a narrow tile (two tiles across on phones) instead of widening it. */
.tile__l .tag { flex: 0 1 auto; max-inline-size: 100%; white-space: normal; min-inline-size: 0; block-size: auto; padding-block: 2px; }
.tile__num { display: block; font: var(--w-display) 30px/36px var(--font-display); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile__num small { font-family: var(--font); font-size: var(--fs-14); color: var(--tx-3); font-weight: var(--w-med); margin-inline-start: 4px; }
.tile__num--you { color: var(--accent); }
.tile__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 26px; }
.tile__src { color: var(--tx-3); font-size: var(--fs-11); line-height: 15px; margin-block-start: auto; }
.tile--empty .tile__num { color: var(--tx-3); font: var(--w-med) var(--fs-15)/22px var(--font); white-space: normal; }
.tile__act { align-self: flex-start; margin-block-start: auto; }
.tile--active { border-color: color-mix(in srgb, var(--ac, var(--accent)) 55%, transparent); }
@container content (max-width: 560px) { .tile__num { font-size: 24px; line-height: 30px; } }

/* Sparkline: the older .spark (styles.css) is a wide KPI line; the Wave 12 one is small and sits beside the delta. */
svg.spark { direction: ltr; }
.spark--w12 { display: block; inline-size: 76px; block-size: 26px; flex: none; overflow: visible; }
.spark--w12 polyline { fill: none; stroke: var(--tone, var(--tx-3)); stroke-width: 1.6; }

/* Deltas: green and red only here and in status. */
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-12); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tx-3); }
.delta--up { color: var(--good); }
.delta--down { color: var(--bad); }
.delta--flat { color: var(--tx-3); font-weight: var(--w-med); }
.delta small { color: var(--tx-3); font-weight: var(--w-body); font-size: inherit; }
.delta__arrow { font-size: var(--fs-11); }

/* ---------- Line chart: toggles (mockup .toggles / .tgl), the plot ---------- */
.lchart { margin: 0; display: grid; gap: 10px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.lchart__toggle { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.tgl { display: inline-flex; align-items: center; gap: 7px; min-block-size: 30px; padding-inline: 10px; border-radius: 8px; border: 1px solid var(--card-line); background: var(--card-2); color: var(--tx-2); font-size: var(--fs-13); cursor: pointer; user-select: none; }
.tgl::before { content: ""; inline-size: 9px; block-size: 9px; border-radius: 3px; border: 1.5px solid var(--k, var(--card-line-2)); }
.lchart__toggle:checked + .tgl { color: var(--tx); border-color: var(--card-line-2); background: var(--card-3); }
.lchart__toggle:checked + .tgl::before { background: var(--k, #fff); border-color: var(--k, #fff); }
.lchart__toggle:focus-visible + .tgl { outline: 2px solid #fff; outline-offset: 2px; }
.lchart__plot { position: relative; }
.plot { display: block; inline-size: 100%; block-size: 200px; overflow: visible; direction: ltr; }
.plot text { font: 11px Inter, sans-serif; fill: #8d929b; }
.lchart__grid { stroke: var(--card-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lchart__s { stroke: var(--tone); color: var(--tone); }
.lchart__s path { stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.lchart__s.tone--d1 path { stroke-width: 3; }
.lchart__dot { fill: var(--card); stroke: currentcolor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.lchart__ymax { position: absolute; inset-block-start: -2px; inset-inline-start: 0; font-size: var(--fs-11); color: var(--tx-3); }
.lchart__x { display: flex; justify-content: space-between; font-size: var(--fs-11); color: var(--tx-3); margin-block-start: 6px; direction: ltr; }
.lchart--none { padding: 32px; text-align: center; border: 1px dashed var(--card-line); border-radius: var(--r-lg); }
/* Toggles by position: the nth checkbox hides the nth series (up to 8). */
.lchart:has(.lchart__toggle:nth-of-type(1):not(:checked)) .lchart__s:nth-of-type(1),
.lchart:has(.lchart__toggle:nth-of-type(2):not(:checked)) .lchart__s:nth-of-type(2),
.lchart:has(.lchart__toggle:nth-of-type(3):not(:checked)) .lchart__s:nth-of-type(3),
.lchart:has(.lchart__toggle:nth-of-type(4):not(:checked)) .lchart__s:nth-of-type(4),
.lchart:has(.lchart__toggle:nth-of-type(5):not(:checked)) .lchart__s:nth-of-type(5),
.lchart:has(.lchart__toggle:nth-of-type(6):not(:checked)) .lchart__s:nth-of-type(6),
.lchart:has(.lchart__toggle:nth-of-type(7):not(:checked)) .lchart__s:nth-of-type(7),
.lchart:has(.lchart__toggle:nth-of-type(8):not(:checked)) .lchart__s:nth-of-type(8) { display: none; }

/* ---------- Horizontal bars (mockup .usage: credits by agent, in the agent's colour) ---------- */
.usage { display: grid; gap: 12px; }
.usage__i { display: grid; grid-template-columns: minmax(96px, 190px) minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: var(--fs-13); }
.usage__l { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-2); }
.usage__bar { block-size: 12px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.usage__bar i { display: block; block-size: 100%; inline-size: var(--w); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--ac, var(--d1)) 80%, #000), var(--ac, var(--d1))); }
[dir="rtl"] .usage__bar i { background: linear-gradient(-90deg, color-mix(in srgb, var(--ac, var(--d1)) 80%, #000), var(--ac, var(--d1))); }
.usage__n { font-variant-numeric: tabular-nums; color: var(--tx); text-align: end; }
@container content (max-width: 560px) { .usage__i { grid-template-columns: 110px minmax(0, 1fr) 54px; } }

/* ---------- Task status pills (mockup .pill--*): saturated, white text; full cell on the board, small inline ---------- */
.pill:is(.pill--work, .pill--wait, .pill--done, .pill--fail, .pill--plan) { display: flex; align-items: center; justify-content: center; gap: 0; inline-size: 100%; block-size: 100%; min-block-size: 40px; padding-inline: 8px; border-radius: 0; color: #fff; font-size: var(--fs-12); line-height: 16px; font-weight: 600; text-align: center; white-space: nowrap; }
.pill--work { background: var(--st-work); }
.pill--wait { background: var(--st-wait); }
.pill--done { background: var(--st-done); }
.pill--fail { background: var(--st-fail); }
.pill.pill--plan { background: var(--st-plan); color: #e3e6ea; }
.pill.pill--sm { display: inline-flex; inline-size: auto; block-size: auto; min-block-size: 22px; border-radius: 999px; padding-inline: 9px; font-size: var(--fs-12); }

/* ---------- Agent state chip (mockup .state--*): a dot and a label. The older .state is an empty-state block. ---------- */
.state:is(.state--work, .state--on, .state--off, .state--needs) { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; min-block-size: 24px; padding: 0 9px; border: 0; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; text-align: start; white-space: nowrap; flex: none; }
.state:is(.state--work, .state--on, .state--off, .state--needs)::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentcolor; }
.state.state--work { color: #ffb37a; background: rgb(194 87 15 / 0.28); }
.state.state--work::before { animation: w12pulse 1.6s var(--ease) infinite; }
.state.state--on { color: var(--good); background: var(--good-wash); }
.state.state--off { color: var(--tx-3); background: var(--card-3); }
.state.state--off::before { background: transparent; border: 1.5px solid currentcolor; }
.state.state--needs { color: #9ec2ff; background: rgb(47 103 224 / 0.3); }
@keyframes w12pulse { 0% { box-shadow: 0 0 0 0 rgb(255 179 122 / 0.55); } 70% { box-shadow: 0 0 0 6px rgb(255 179 122 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 179 122 / 0); } }

/* ---------- Switch (mockup .sw / .swl): a form with one button; the knob mirrors in Hebrew ---------- */
.switchform { margin: 0; }
.swl { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-13); color: var(--tx-2); }
.swl b { color: var(--tx); font-weight: 600; font-size: var(--fs-14); }
.swl__state { font-size: var(--fs-12); color: var(--tx-3); min-inline-size: 3ch; }
.sw { --w: 44px; --h: 24px; position: relative; display: inline-block; inline-size: var(--w); block-size: var(--h); flex: none; padding: 0; border: 0; border-radius: 999px; background: #3a3f47; box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.06); transition: background-color 0.2s; cursor: pointer; }
.sw::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: calc(var(--h) - 6px); block-size: calc(var(--h) - 6px); border-radius: 50%; background: linear-gradient(#fff, #e4e6ea); box-shadow: 0 1px 3px rgb(0 0 0 / 0.5); transition: inset-inline-start 0.2s var(--ease); }
.sw[aria-checked="true"] { background: var(--ac, var(--good)); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25), 0 0 14px -2px color-mix(in srgb, var(--ac, var(--good)) 60%, transparent); }
.sw[aria-checked="true"]::after { inset-inline-start: calc(var(--w) - var(--h) + 3px); }
.sw--lg { --w: 52px; --h: 28px; }
.sw:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sw:disabled { opacity: 0.5; cursor: default; }

/* ---------- Agent avatar (mockup .av): a gradient tile in the agent's colour, dark glyph ---------- */
.av { --s: 40px; display: inline-grid; place-items: center; inline-size: var(--s); block-size: var(--s); flex: none; border-radius: calc(var(--s) * 0.28); background: linear-gradient(160deg, color-mix(in srgb, var(--ac, var(--d1)) 92%, #fff), color-mix(in srgb, var(--ac, var(--d1)) 78%, #000)); color: #0c0d0f; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 6px 18px -8px color-mix(in srgb, var(--ac, var(--d1)) 80%, transparent); }
.av .icon { inline-size: calc(var(--s) * 0.5); block-size: calc(var(--s) * 0.5); stroke-width: 1.6; }
.av--sm { --s: 24px; }
.av--xs { --s: 20px; }
.av--lg { --s: 52px; }
.av--custom { background: color-mix(in srgb, var(--ac) 14%, var(--card)); color: var(--ac); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 75%, transparent); }
.av--manager { background: linear-gradient(160deg, #fff, #c9ced6); }
.av--off { filter: grayscale(0.85) brightness(0.7); box-shadow: none; }
.agentchip { display: inline-flex; align-items: center; gap: 8px; min-inline-size: 0; }

/* ---------- Tabs (mockup .tabs a.is-on): the underline is the agent's colour on an agent page, white elsewhere ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-block-end: 1px solid var(--card-line); margin-block: 0 22px; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 14px; color: var(--tx-2); font-size: var(--fs-14); border-block-end: 2px solid transparent; margin-block-end: -1px; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.tabs a:hover { color: var(--tx); }
.tabs a.is-on { color: var(--tx); border-color: var(--ac, #fff); }
.tabs .cnt { font-size: var(--fs-11); color: var(--tx-3); background: var(--card-3); border-radius: 999px; padding: 1px 7px; }

/* ---------- Split layout: side column, a drawer on phones ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.split__main { min-inline-size: 0; }
.split__side { position: sticky; inset-block-start: 16px; display: grid; gap: 12px; min-inline-size: 0; padding: 16px; border-radius: var(--r-lg); background: #0e0f11; border: 1px solid var(--card-line); }
.split__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.split__toggle { position: absolute; opacity: 0; pointer-events: none; }
.split__open, .split__close { display: none; }
@container content (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  /* The drawer button sits above the main column (in the flow, so it never covers content). */
  .split__open { display: inline-flex; order: -1; justify-self: start; }
  .split__close { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: var(--r); cursor: pointer; }
  .split__side { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; max-block-size: 82vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding-block-end: calc(16px + env(safe-area-inset-bottom)); transform: translateY(105%); visibility: hidden; transition: transform 0.25s var(--ease), visibility 0.25s; }
  .split__toggle:checked ~ .split__side { transform: none; visibility: visible; }
}

/* ---------- Board (mockup .grp / .brow): groups with a coloured edge; rows are grids; phones get small cards ---------- */
.grp { --gc: var(--st-plan); --gt: #c7ccd3; }
.grp + .grp { margin-block-start: 22px; }
.grp--wait { --gc: var(--st-wait); --gt: #8db8ff; }
.grp--work { --gc: var(--st-work); --gt: #ffb37a; }
.grp--plan { --gc: #6b7280; --gt: #c7ccd3; }
.grp--done { --gc: var(--st-done); --gt: var(--good); }
.grp--fail { --gc: var(--st-fail); --gt: var(--bad); }
.grp__head { display: flex; align-items: center; gap: 10px; margin-block-end: 8px; flex-wrap: wrap; }
.grp__t { font: var(--w-display) 16px/22px var(--font-display); color: var(--gt); }
.grp__n { color: var(--tx-3); font-size: var(--fs-13); }
.grp__prog { flex: 1; max-inline-size: 180px; margin-inline-start: auto; --c: var(--gc); }
.grp__empty { padding: 12px 16px; border: 1px dashed var(--card-line); border-radius: 10px; }
.card.grp__box { padding: 0; border-inline-start: 4px solid var(--gc); border-radius: 10px; overflow: hidden; }
.brow { display: grid; grid-template-columns: var(--cols); align-items: stretch; border-block-end: 1px solid var(--card-line); min-block-size: 44px; }
.brow:last-child { border-block-end: 0; }
.brow > * { display: flex; align-items: center; padding: 6px 12px; min-inline-size: 0; font-size: var(--fs-13); }
.brow > * + * { border-inline-start: 1px solid var(--card-line); }
.brow--h > * { color: var(--tx-3); font-size: var(--fs-12); min-block-size: 34px; background: rgb(255 255 255 / 0.015); }
.brow .n { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.brow__task { gap: 8px; font-weight: var(--w-med); }
.brow__task span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 19px; }
.brow__task a { color: var(--tx); }
.brow__task a:hover { text-decoration: underline; text-underline-offset: 3px; }
.brow:not(.brow--h) .brow__st { padding: 0; }
.brow:not(.brow--h):hover { background: rgb(255 255 255 / 0.02); }
.brow.is-open { background: rgb(47 103 224 / 0.1); box-shadow: inset 0 0 0 1px rgb(47 103 224 / 0.5); }
.prog { display: flex; inline-size: 100%; block-size: 8px; border-radius: 4px; overflow: hidden; background: var(--card-3); gap: 2px; }
.prog i { display: block; block-size: 100%; inline-size: var(--w); background: var(--c, var(--accent)); }
@media (max-width: 767px) {
  .brow--h { display: none; }
  .brow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "task st" "ag ag" "cr since"; padding: 10px 12px; gap: 6px 10px; }
  .brow > * { padding: 0; border: 0; }
  .brow > * + * { border: 0; }
  .brow__task { grid-area: task; }
  .brow:not(.brow--h) .brow__st { grid-area: st; align-self: start; }
  .brow__st .pill.pill--work, .brow__st .pill.pill--wait, .brow__st .pill.pill--done, .brow__st .pill.pill--fail, .brow__st .pill.pill--plan { border-radius: 999px; min-block-size: 24px; padding-inline: 10px; inline-size: auto; }
  .brow__ag { grid-area: ag; }
  .brow__by, .brow__date { display: none; }
  .brow .n.brow__cr { grid-area: cr; justify-content: flex-start; color: var(--tx-3); font-size: var(--fs-12); }
  .brow__since { grid-area: since; justify-content: flex-end; }
}

/* ---------- Credits sheet: "This needs N credits, you have M" ---------- */
.credsheet { position: relative; display: inline-block; }
.credsheet > summary { list-style: none; }
.credsheet__scrim { display: none; }
.credsheet__panel { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; z-index: 35; inline-size: min(320px, 86vw); display: grid; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--card-2); border: 1px solid var(--card-line-2); box-shadow: 0 16px 40px rgb(0 0 0 / 0.55); }
.credsheet__title { font: var(--w-display) 15px/22px var(--font-display); }
.credsheet__body { color: var(--tx-2); font-size: var(--fs-14); }
.credsheet__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 4px; }
@media (max-width: 767px) {
  .credsheet[open] .credsheet__scrim { display: block; position: fixed; inset: 0; z-index: 34; background: rgb(0 0 0 / 0.55); }
  .credsheet__panel { position: fixed; inset-inline: 0; inset-block-start: auto; inset-block-end: 0; inline-size: auto; border-radius: 16px 16px 0 0; padding-block-end: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- The gallery (/__dev/ui, dev only) ---------- */
.uigal { display: grid; gap: 28px; }
.uigal__sec > h2 { font-size: var(--fs-13); color: var(--tx-3); margin-block-end: 10px; font-weight: var(--w-body); }
.uigal__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .sw, .sw::after, .split__side, .tabs a { transition: none; }
  .state.state--work::before { animation: none; }
}

/* Wave 13 integration: the meta row of metaRow() (src/views/ui/meta.ts) outside the agent pages too (wave11.css holds
   the same base for agent pages; w13-a.css sets its size and dot). */
.metaline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.metaline > li { display: inline-flex; align-items: center; gap: 6px; }
.metaline > li + li::before { content: ""; border-radius: 50%; }

/* 2026-11-15. The chat box is dir="auto" so typed text follows its own language, but an empty box counted as
   left-to-right and the example text sat on the wrong side in Hebrew. While the example shows, the box follows the page. */
.composer__input:placeholder-shown { direction: inherit; unicode-bidi: normal; text-align: start; }
.composer__input::placeholder { direction: inherit; text-align: start; }
/* Recents: the chat mark in the brand's orange. */
.recent__icon { color: var(--accent); }
.recent:hover .recent__icon, .recent.is-active .recent__icon { color: var(--accent); }
