/* Ekalix Radar - Plan changes (CONTRACT-V28 P).   web\planchanges.css

   The pc-* classes of planchanges.js, shared by Ekalix Classic and Ekalix Next (neither design's stylesheet changes).
   Colours come from the theme's tokens, so every theme and both light and dark draw it. Motion: the river's lanes grow,
   its marks land, the hero's figures rise, the after figure counts and the route's steps slide in - once, by transform
   and opacity only; Animation: Off and prefers-reduced-motion stop all of it (the block at the end). */

.pc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pc-top { display: flex; justify-content: flex-end; }
.pc-grow { flex: 1 1 auto; }
.pc-dim { color: var(--text-3); font-size: 12.5px; }
.pc-pad { padding: 14px 4px; }
.pc-foot { color: var(--text-3); font-size: 12px; margin: 2px 2px 0; line-height: 1.5; }

/* plan colours: the plan in use, in the river, the day chart and the legend - six that stay apart in every theme */
.pc-p0 { --pc: var(--accent); }
.pc-p1 { --pc: var(--accent-2); }
.pc-p2 { --pc: var(--warning); }
.pc-p3 { --pc: var(--ok); }
.pc-p4 { --pc: var(--info); }
.pc-p5 { --pc: var(--serious); }

/* ---- the segmented controls ---- */
.pc-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-1); }
.pc-segb { appearance: none; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background var(--t), color var(--t); }
.pc-segb:hover { color: var(--text); }
.pc-segb.on { background: var(--accent-bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-bd); }
.pc-segb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pc-segn { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.pc-segb.on .pc-segn { color: var(--accent); }

/* ---- the hero ---- */
.pc-hero { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--border); background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
  padding: 20px 22px 18px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 22px; align-items: center; }
.pc-heroglow { position: absolute; inset: -40% -10% auto auto; width: 60%; height: 180%; pointer-events: none; opacity: .55;
  background: radial-gradient(closest-side, var(--pc-glow, var(--accent-bg)), transparent 72%); }
.pc-hero.t-serious { --pc-glow: var(--serious-bg); border-color: var(--serious-bd); }
.pc-hero.t-critical { --pc-glow: var(--critical-bg); border-color: var(--critical-bd); }
.pc-hero.t-ok { --pc-glow: var(--ok-bg); }
.pc-hero.t-warning { --pc-glow: var(--warning-bg); }
.pc-herot { position: relative; min-width: 0; }
.pc-eyebrow { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.pc-headline { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0; color: var(--text); text-wrap: balance; }
.pc-hero.t-serious .pc-headline, .pc-hero.t-critical .pc-headline { color: var(--text); }
.pc-sub { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.pc-orbs { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pc-orb { appearance: none; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--border); background: var(--surface-1); color: var(--text);
  border-radius: var(--r-s); padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; transition: border-color var(--t), transform var(--t); }
.pc-orb:disabled { cursor: default; }
.pc-orb:not(:disabled):hover { border-color: var(--accent-bd); transform: translateY(-1px); }
.pc-orb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pc-orbv { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1.15; }
.pc-orb.t-serious .pc-orbv { color: var(--serious); }
.pc-orb.t-critical .pc-orbv { color: var(--critical); }
.pc-orb.t-ok .pc-orbv { color: var(--ok); }
.pc-orb.t-warning .pc-orbv { color: var(--warning); }
.pc-orb.t-muted .pc-orbv { color: var(--text-3); }
.pc-orbl { font-size: 12.5px; font-weight: 600; }
.pc-orbf { font-size: 11.5px; color: var(--text-3); }
.pc-memory { position: relative; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--text-2);
  border-top: 1px solid var(--border); padding-top: 12px; }
.pc-memory b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.pc-memi { width: 14px; height: 14px; border-radius: 4px; flex: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 3px var(--accent-bg); }

/* ---- cards ---- */
.pc-card { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-1); padding: 12px 14px 14px; min-width: 0; }
.pc-cardh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-cardh h4 { margin: 0; font-size: 14px; font-weight: 600; }

/* ---- the river ---- */
.pc-river { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.pc-river svg { display: block; width: 100%; height: auto; overflow: visible; }
.pc-axis line { stroke: var(--border); stroke-width: 1; }
.pc-axis text { fill: var(--text-3); font-size: 11px; font-family: var(--mono); }
.pc-now { stroke: var(--accent-bd); stroke-dasharray: 3 4; }
.pc-nowt { fill: var(--accent); font-size: 11px; }
.pc-lanel { fill: var(--text); font-size: 12.5px; font-weight: 600; }
.pc-lanes { fill: var(--text-3); font-size: 11px; }
.pc-lane.on .pc-lanel { fill: var(--accent); }
.pc-track { stroke: var(--hairline); stroke-width: 2; }
.pc-segbar { fill: var(--pc); opacity: .85; }
.pc-lane.on .pc-segbar { opacity: 1; }
.pc-mark { cursor: pointer; outline: none; }
.pc-halo { fill: var(--accent-bg); opacity: 0; transition: opacity var(--t); }
.pc-ring { fill: var(--surface-1); stroke: var(--tone, var(--muted)); stroke-width: 2.5; }
.pc-dot { fill: var(--tone, var(--muted)); }
.pc-mark.t-serious { --tone: var(--serious); }
.pc-mark.t-critical { --tone: var(--critical); }
.pc-mark.t-ok { --tone: var(--ok); }
.pc-mark.t-muted { --tone: var(--muted); }
.pc-mark:hover .pc-halo, .pc-mark:focus .pc-halo, .pc-mark.on .pc-halo { opacity: 1; }
.pc-mark.on .pc-ring { stroke: var(--accent); stroke-width: 3; }
.pc-mark:focus-visible .pc-ring { stroke: var(--accent); }
.pc-cause rect { fill: var(--surface-3); stroke: var(--border-2); }
.pc-cause text { fill: var(--text-2); font-size: 10px; font-weight: 600; font-family: var(--mono); }
.pc-mark.on .pc-cause rect { stroke: var(--accent-bd); }
.pc-rivertip { min-height: 18px; font-size: 12.5px; color: var(--text-2); margin-top: 2px; transition: opacity var(--t); }
.pc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--text-3); margin-top: 6px; align-items: center; }
.pc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pc-lg { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--tone); display: inline-block; }
.pc-lg.t-serious { --tone: var(--serious); }
.pc-lg.t-critical { --tone: var(--critical); }
.pc-lg.t-ok { --tone: var(--ok); }
.pc-lg.t-muted { --tone: var(--muted); }
.pc-lgp i { width: 14px; height: 6px; border-radius: 3px; background: var(--pc); display: inline-block; }
.pc-lgc b { font-family: var(--mono); font-size: 10.5px; color: var(--text-2); margin-left: 4px; }
.pc-lgline { width: 16px; height: 3px; border-radius: 2px; background: var(--pc); display: inline-block; }

/* ---- the list ---- */
.pc-list { display: flex; flex-direction: column; gap: 6px; }
.pc-row { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: var(--r-s); padding: 10px 12px; display: grid; grid-template-columns: 130px minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.2fr); gap: 12px; align-items: start;
  border-left: 3px solid var(--tone, var(--muted)); transition: border-color var(--t), background var(--t); }
.pc-row.t-serious { --tone: var(--serious); }
.pc-row.t-critical { --tone: var(--critical); }
.pc-row.t-ok { --tone: var(--ok); }
.pc-row:hover { background: var(--surface-3); }
.pc-row.on { border-color: var(--accent-bd); border-left-color: var(--accent); background: var(--accent-bg); }
.pc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pc-rowm, .pc-rowf, .pc-rows { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-rowv { min-width: 0; }
.pc-rowv .pc-chip { white-space: normal; text-align: center; }
.pc-rown { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.pc-rowt { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-rowf { font-size: 12.5px; color: var(--text-2); font-family: var(--mono); }
.pc-rowc { color: var(--serious); font-family: var(--font); }
.pc-row.t-ok .pc-rowc { color: var(--ok); }
.pc-rows { font-size: 12.5px; }
.pc-likely { color: var(--text-2); font-size: 12px; }
.pc-empty { color: var(--text-3); padding: 14px 4px; }
.pc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--tone, var(--muted)); background: var(--tone-bg, var(--muted-bg)); border: 1px solid var(--tone-bd, var(--muted-bd)); }
.pc-chip.t-serious { --tone: var(--serious); --tone-bg: var(--serious-bg); --tone-bd: var(--serious-bd); }
.pc-chip.t-critical { --tone: var(--critical); --tone-bg: var(--critical-bg); --tone-bd: var(--critical-bd); }
.pc-chip.t-ok { --tone: var(--ok); --tone-bg: var(--ok-bg); --tone-bd: var(--ok-bd); }
.pc-chip.t-warning { --tone: var(--warning); --tone-bg: var(--warning-bg); --tone-bd: var(--warning-bd); }
.pc-chip.t-info { --tone: var(--info); --tone-bg: var(--info-bg); --tone-bd: var(--info-bd); }
.pc-chip.t-muted { --tone: var(--text-2); }

/* ---- one change ---- */
.pc-detail { border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface-1); padding: 16px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); scroll-margin-top: 140px; }
.pc-detail.t-serious { border-color: var(--serious-bd); }
.pc-detail.t-critical { border-color: var(--critical-bd); }
.pc-dh { display: flex; gap: 12px; align-items: flex-start; }
.pc-dht { flex: 1 1 auto; min-width: 0; }
.pc-dh h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.pc-dhv.t-serious { color: var(--serious); }
.pc-dhv.t-critical { color: var(--critical); }
.pc-dhv.t-ok { color: var(--ok); }
.pc-stmt { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-s);
  padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow: auto; }
.pc-others { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.pc-tabb, .pc-route, .pc-walk, .pc-ba, .pc-dht { min-width: 0; }
.pc-detail { min-width: 0; max-width: 100%; }

/* before and after */
.pc-ba { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.pc-bac { border: 1px solid var(--border); border-radius: var(--r-s); padding: 12px 14px; background: var(--surface-2); min-width: 0; }
.pc-after { border-color: var(--tone-bd, var(--border)); background: linear-gradient(160deg, var(--tone-bg, var(--surface-2)), var(--surface-2) 70%); }
.pc-ba.t-serious { --tone-bd: var(--serious-bd); --tone-bg: var(--serious-bg); --tone: var(--serious); }
.pc-ba.t-critical { --tone-bd: var(--critical-bd); --tone-bg: var(--critical-bg); --tone: var(--critical); }
.pc-ba.t-ok { --tone-bd: var(--ok-bd); --tone-bg: var(--ok-bg); --tone: var(--ok); }
.pc-bal { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.pc-bav { font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pc-after .pc-bav { color: var(--tone, var(--text)); }
.pc-bas { font-size: 12px; color: var(--text-2); }
.pc-bam { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.pc-baarrow { position: relative; display: flex; align-items: center; justify-content: center; }
.pc-baline { position: absolute; left: 6px; right: 14px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--border-2), var(--tone, var(--accent))); transform-origin: left; }
.pc-bahead { position: absolute; right: 6px; top: calc(50% - 6px); width: 0; height: 0; border-left: 10px solid var(--tone, var(--accent)); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pc-bar { position: relative; background: var(--surface-1); border: 1px solid var(--tone-bd, var(--border)); color: var(--tone, var(--text)); font-weight: 700; font-size: 13px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pc-gauge { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; font-size: 11px; color: var(--text-3); }
.pc-gauge .pc-gm { text-align: center; }
.pc-gauge .pc-gt:last-of-type { text-align: right; }
.pc-gbar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 4px; }
.pc-gfill { position: absolute; top: 0; bottom: 0; width: 50%; border-radius: 3px; background: var(--tone, var(--accent)); transform: scaleX(var(--s, 1)); }
.pc-gbar em { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--text); transform: translateX(-1px); }
.pc-bafoot { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-2); }

/* the route */
.pc-route { display: flex; flex-direction: column; gap: 12px; }
.pc-routeh { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.pc-walk { display: flex; flex-direction: column; gap: 10px; }
.pc-walkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-walkn { font-family: var(--mono); font-size: 12px; color: var(--text-2); min-width: 54px; text-align: center; }
.pc-play.on { box-shadow: inset 0 0 0 1px var(--accent-bd); }
.pc-step { border: 1px solid var(--tone-bd, var(--border)); background: linear-gradient(160deg, var(--tone-bg, var(--surface-2)), var(--surface-2) 65%); border-radius: var(--r-s); padding: 14px 16px; }
.pc-step.t-serious { --tone: var(--serious); --tone-bd: var(--serious-bd); --tone-bg: var(--serious-bg); }
.pc-step.t-critical { --tone: var(--critical); --tone-bd: var(--critical-bd); --tone-bg: var(--critical-bg); }
.pc-step.t-warning { --tone: var(--warning); --tone-bd: var(--warning-bd); --tone-bg: var(--warning-bg); }
.pc-step.t-ok { --tone: var(--ok); --tone-bd: var(--ok-bd); --tone-bg: var(--ok-bg); }
.pc-step.t-info { --tone: var(--info); --tone-bd: var(--info-bd); --tone-bg: var(--info-bg); }
.pc-stepswap { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 10px; }
.pc-op { border-radius: var(--r-s); padding: 8px 10px; font-family: var(--mono); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.pc-opold { background: var(--surface-3); color: var(--text-2); border: 1px dashed var(--border-2); text-decoration-color: var(--text-3); }
.pc-opnew { background: var(--surface-1); color: var(--tone, var(--text)); border: 1px solid var(--tone-bd, var(--border-2)); font-weight: 600; }
.pc-oparrow { position: relative; height: 2px; }
.pc-oparrow i { position: absolute; inset: 0 8px 0 0; background: var(--tone, var(--accent)); transform-origin: left; }
.pc-oparrow::after { content: ''; position: absolute; right: 0; top: -5px; border-left: 9px solid var(--tone, var(--accent)); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pc-stept { font-weight: 600; font-size: 14px; line-height: 1.4; }
.pc-stepw { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-top: 4px; }
.pc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: pcs; }
.pc-steps li { counter-increment: pcs; }
.pc-steps button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--text-2); text-align: left; cursor: pointer; width: 100%;
  padding: 5px 8px 5px 30px; border-radius: var(--r-xs); position: relative; }
.pc-steps button::before { content: counter(pcs); position: absolute; left: 6px; top: 5px; width: 17px; height: 17px; border-radius: 50%; font-size: 10.5px; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--tone, var(--text-2)); border: 1px solid var(--tone-bd, var(--border)); }
.pc-steps li.t-serious { --tone: var(--serious); --tone-bd: var(--serious-bd); }
.pc-steps li.t-critical { --tone: var(--critical); --tone-bd: var(--critical-bd); }
.pc-steps li.t-warning { --tone: var(--warning); --tone-bd: var(--warning-bd); }
.pc-steps li.t-ok { --tone: var(--ok); --tone-bd: var(--ok-bd); }
.pc-steps li.on button { background: var(--accent-bg); color: var(--text); }
.pc-steps button:hover { color: var(--text); }
.pc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pc-twoc { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-s); overflow: hidden; }
.pc-twol { font-size: 12px; font-weight: 600; padding: 6px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }

/* why */
.pc-why { display: flex; flex-direction: column; gap: 12px; }
.pc-causes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-causes li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--r-s); padding: 10px 12px; background: var(--surface-2); }
.pc-causes li.likely { border-color: var(--accent-bd); background: linear-gradient(160deg, var(--accent-bg), var(--surface-2) 70%); }
.pc-cico { flex: none; min-width: 36px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border-2); }
.pc-causes li.likely .pc-cico { color: var(--accent); border-color: var(--accent-bd); }
.pc-cm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-ct { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.pc-lk { color: var(--accent); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; margin-right: 4px; }
.pc-cw { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.pc-whylive { font-size: 12.5px; }

/* what to do */
.pc-fixes { display: flex; flex-direction: column; gap: 10px; }
.pc-fix { border: 1px solid var(--border); border-radius: var(--r-s); background: var(--surface-2); padding: 12px 14px; }
.pc-fixh { display: flex; align-items: center; gap: 10px; }
.pc-fixw { margin: 6px 0 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pc-sqll { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.pc-sql { margin: 0; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-fixr { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.pc-fixr code { font-size: 11.5px; overflow-wrap: anywhere; }

/* the day chart */
.pc-day svg { display: block; width: 100%; height: auto; }
.pc-execbar { fill: var(--text-3); opacity: .28; }
.pc-switch { stroke: var(--accent); stroke-dasharray: 4 4; stroke-width: 1.5; }
.pc-switcht { fill: var(--accent); font-size: 11px; }
.pc-dayl { fill: none; stroke: var(--pc); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pc-dayd { fill: var(--surface-1); stroke: var(--pc); stroke-width: 1.6; }

/* the estate */
.pc-bars { display: flex; flex-direction: column; gap: 4px; }
.pc-barrow { appearance: none; font: inherit; color: inherit; cursor: pointer; text-align: left; border: 0; background: transparent; border-radius: var(--r-xs);
  display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(0, 2fr) 110px minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 6px 8px; }
.pc-barrow:hover { background: var(--surface-2); }
.pc-barrow:focus-visible { outline: 2px solid var(--accent); }
.pc-barn { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-bart { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.pc-bart i { display: block; height: 100%; border-radius: 4px; transform-origin: left; transform: scaleX(var(--s, 1)); }
.pc-bart i.t-serious { background: linear-gradient(90deg, var(--warning), var(--serious)); }
.pc-bart i.t-ok { background: var(--ok); }
.pc-barv { font-family: var(--mono); font-size: 12px; color: var(--text-2); text-align: right; }
.pc-barc { display: flex; gap: 4px; flex-wrap: wrap; }

/* notes and waiting */
.pc-note { border: 1px solid var(--tone-bd, var(--info-bd)); background: var(--tone-bg, var(--info-bg)); border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--text); }
.pc-note.t-warning { --tone-bd: var(--warning-bd); --tone-bg: var(--warning-bg); }
.pc-note.t-ok { --tone-bd: var(--ok-bd); --tone-bg: var(--ok-bg); }
.pc-busy { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 16px 4px; }
.pc-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pc-pulse 1.1s ease-in-out infinite; }

/* ---- motion: once, by transform and opacity ---- */
@keyframes pc-pulse { 0%, 100% { transform: scale(.7); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }
@keyframes pc-grow { from { transform: scaleX(0); } to { transform: none; } }
/* a bar whose length is its value grows to that length (--s), never past it */
@keyframes pc-grow-to { from { transform: scaleX(0); } to { transform: scaleX(var(--s, 1)); } }
@keyframes pc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pc-land { 0% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
@keyframes pc-slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
.pc-anim .pc-segs { transform-box: fill-box; transform-origin: left center; animation: pc-grow 700ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.pc-anim .pc-markp { transform-box: fill-box; transform-origin: center; animation: pc-land 520ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(500ms + var(--i, 0) * 70ms); }
.pc-orb { animation: pc-rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.pc-headline, .pc-sub { animation: pc-fade 360ms ease-out both; }
.pc-detail { animation: pc-rise 320ms cubic-bezier(.2, .7, .2, 1) both; }
.pc-baline { animation: pc-grow 600ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
.pc-bar { animation: pc-land 420ms cubic-bezier(.2, .7, .2, 1) 560ms both; }
.pc-gfill { animation: pc-grow-to 700ms cubic-bezier(.2, .7, .2, 1) 300ms both; }
.pc-step { animation: pc-slide 360ms cubic-bezier(.2, .7, .2, 1) both; }
.pc-oparrow i { animation: pc-grow 420ms cubic-bezier(.2, .7, .2, 1) 160ms both; }
.pc-opnew { animation: pc-slide 360ms cubic-bezier(.2, .7, .2, 1) 260ms both; }
.pc-barrow { animation: pc-rise 380ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
.pc-bart i { animation: pc-grow-to 700ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(200ms + var(--i, 0) * 50ms); }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion-pref="on"]):not([data-motion-pref="full"]):not([data-motion="on"]) .pc *,
  :root:not([data-motion-pref="on"]):not([data-motion-pref="full"]):not([data-motion="on"]) .pc { animation: none !important; transition: none !important; }
}
:root[data-motion-pref="off"] .pc *, :root[data-motion-pref="off"] .pc, :root[data-motion="off"] .pc *, :root[data-motion="off"] .pc { animation: none !important; transition: none !important; }

/* ---- a phone ---- */
@media (max-width: 900px) {
  .pc-hero { grid-template-columns: minmax(0, 1fr); }
  .pc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pc-ba { grid-template-columns: minmax(0, 1fr); }
  .pc-baarrow { height: 34px; }
  .pc-baarrow .pc-baline { left: 50%; right: auto; top: 0; bottom: 8px; width: 2px; height: auto; transform-origin: top; }
  .pc-baarrow .pc-bahead { right: auto; left: calc(50% - 6px); top: auto; bottom: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--tone, var(--accent)); border-bottom: 0; }
  .pc-two { grid-template-columns: minmax(0, 1fr); }
  .pc-river svg { min-width: 760px; }
  .pc-barrow { grid-template-columns: minmax(0, 1fr) 90px; }
  .pc-bart { grid-column: 1 / -1; grid-row: 2; }
  .pc-barc { grid-column: 1 / -1; }
  .pc-headline { font-size: 18px; }
  .pc-stepswap { grid-template-columns: minmax(0, 1fr); }
  .pc-oparrow { height: 18px; width: 2px; justify-self: center; }
  .pc-oparrow i { inset: 0 0 6px 0; transform-origin: top; }
  .pc-oparrow::after { right: auto; left: -5px; top: auto; bottom: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--tone, var(--accent)); border-bottom: 0; }
}
@media print { .pc-seg, .pc-walkbar, .btn { display: none !important; } .pc-detail { box-shadow: none; } }
