/* Plainsong 2.2 shared components (build spec chunk 11). Values only from tokens.css; shapes and
   motion as on the demo (demo/design_2_2/project). No shadows, no gradients on surfaces. */

/* The base every served page shares, whatever its template (Will's live test, 15 Nov 2026): the
   cream canvas behind everything; links walnut, underlined 4px below, deep green under the pointer
   (2.3: hover is not a warning, so it is not pink), with a visible focus ring; and a button, submit or file
   chooser with no class of its own drawn as the filled deep-green pill (shell design v2, answer 2: pink is
   kept for an act that clears something needing the owner), never the browser's grey box. :where() keeps each rule at zero
   specificity, so a component's own class (.ps-pill, .ps-act, .ps-fig, the menu's wedges) wins. */
:where(html), :where(body) { background: var(--ps-cream); color: var(--ps-ink); }
:where(body) { margin: 0; font-family: var(--ps-font-body); }
:where(a) { color: var(--ps-ink); text-decoration: underline; text-underline-offset: 4px; }
:where(a:hover) { color: var(--ps-mean-normal-ink); }
:where(a:focus-visible) { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
:where(button:not([class]), input[type=submit]:not([class]), input[type=button]:not([class]), input[type=reset]:not([class])) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--ps-radius-pill); background: var(--ps-mean-normal-ink); color: var(--ps-cream);
  font: inherit; font-size: var(--ps-size-15); line-height: 1.2; cursor: pointer;
  transition: background-color var(--ps-move-hover) var(--ps-ease);
}
:where(button:not([class]), input[type=submit]:not([class]), input[type=button]:not([class]), input[type=reset]:not([class])):hover {
  background: var(--ps-ink); color: var(--ps-cream); }
:where(button:not([class]), input[type=submit]:not([class]), input[type=button]:not([class]), input[type=reset]:not([class])):focus-visible {
  outline: 2px solid var(--ps-ink); outline-offset: 3px; }
:where(button:not([class]), input[type=submit]:not([class]), input[type=button]:not([class]), input[type=reset]:not([class])):disabled {
  opacity: .45; cursor: default; }
/* The file chooser: the native input, so the keyboard and a screen reader reach it as they always do
   (its label names it); only its button is drawn, as the same deep-green pill. Kept in rules of their own,
   so a browser without ::file-selector-button drops only these. */
:where(input[type=file]) { max-width: 100%; font: inherit; font-size: var(--ps-size-14); color: var(--ps-ink); }
:where(input[type=file]):focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 3px; }
:where(input[type=file])::file-selector-button {
  min-height: 44px; margin-right: 14px; padding: 0 22px; border: 0; border-radius: var(--ps-radius-pill);
  background: var(--ps-mean-normal-ink); color: var(--ps-cream); font: inherit; font-size: var(--ps-size-15);
  cursor: pointer; transition: background-color var(--ps-move-hover) var(--ps-ease);
}
:where(input[type=file]):hover::file-selector-button { background: var(--ps-ink); color: var(--ps-cream); }

/* The logo mark: the four-starling flock in a ring. It opens the menu. */
.ps-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid var(--ps-ink); border-radius: var(--ps-radius-pill);
  background: var(--ps-cream);
}
.ps-mark:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 3px; }
.ps-mark-line { fill: none; stroke: var(--ps-ink); stroke-width: 1.4; stroke-opacity: 0.45; }
.ps-bird { fill: var(--ps-ink); }
.ps-bird-signal { fill: var(--ps-pink); }

/* At rest the birds rise and fall in a firing order, slow and barely there (the brief's pistons);
   while Plainsong works they rev up, then settle when the answer lands. */
@keyframes ps-piston { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ps-rev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
.ps-bird { animation: ps-piston 2.4s ease-in-out infinite; }
.ps-b1 { animation-delay: 0s; } .ps-b3 { animation-delay: .6s; }
.ps-b4 { animation-delay: 1.2s; } .ps-b2 { animation-delay: 1.8s; }
.ps-mark.is-working .ps-bird { animation: ps-rev .6s ease-in-out infinite; }
.ps-mark.is-working .ps-b1 { animation-delay: 0s; } .ps-mark.is-working .ps-b3 { animation-delay: .15s; }
.ps-mark.is-working .ps-b4 { animation-delay: .3s; } .ps-mark.is-working .ps-b2 { animation-delay: .45s; }

/* The wordmark: the i's dot is the brand's pink, the one pink that warns of nothing (shell design v2, answer 3). */
.ps-wordmark {
  font-family: var(--ps-font-display); font-size: var(--ps-size-20);
  font-weight: var(--ps-weight-medium); letter-spacing: var(--ps-track-loose);
  line-height: 1; white-space: nowrap; color: var(--ps-ink);
}
.ps-wordmark-i { position: relative; }
.ps-wordmark-dot {
  position: absolute; left: calc(50% - 0.01em); top: 0.174em; width: 0.240em; height: 0.198em;
  transform: translateX(-50%); border-radius: 50%; background: var(--ps-pink);
}

/* The page's name, beside the mark: small capitals, tracked wide. */
.ps-pagename {
  position: absolute; left: 58px; top: 24px; z-index: 1;    /* beside the mark, as on every demo screen */
  font-family: var(--ps-font-body); font-size: var(--ps-size-11); line-height: 12px;
  letter-spacing: var(--ps-track-label); text-transform: uppercase; color: var(--ps-ink);
  white-space: nowrap;
}

/* A page opens out of the logo circle, then settles (640ms, sine ease-in-out). Fill is backwards
   only: the page is never left with a clip-path once the animation ends, so a tall page is not
   cut off below the circle's radius. */
@keyframes ps-page-in {
  from { clip-path: circle(17px at 30px 30px); opacity: .4; }
  to { clip-path: circle(142vmax at 30px 30px); opacity: 1; }
}
/* Will, 16 Nov 2026: the page opens out of the logo only on arrival from the loading page (is-arrival,
   marked by the server: loading_pages.from_lake). On a move inside the app, a page drawn ahead of
   the click included, it settles in quickly instead: never clipped and never blank. */
@keyframes ps-page-settle { from { opacity: .6; } to { opacity: 1; } }
.ps-page-in { animation: ps-page-settle var(--ps-move-page-app) var(--ps-ease-settle) backwards; }
.ps-page-in.is-arrival { animation: ps-page-in var(--ps-move-page) var(--ps-ease) backwards; }
/* Moves between pages (Will, 16 Nov 2026, after testing the live app): the page being left stays on the
   screen until the next one is drawn, then gives way to it in one short cross-fade. No white page in
   between, and nothing half-drawn. It is the browser's own (cross-document view transitions: Chrome,
   Edge and Safari), needs no script and no page drawn ahead, and any other browser loads the page as
   before. Where it is at work the cross-fade is the settle, so the page's own settle stands down
   (the two would dim the page twice). The loading page opts out (static/loading.css): the page it
   leads to opens out of the logo, as designed. Less motion asked for: the token is 0ms, so the next
   page simply takes the place of the last.
   Will's answer 19 (17 Nov 2026): the shell holds perfectly still and only the content moves. The mark (the
   ring that opens the fan), the page's name, the wordmark and the Controls pill each carry a name of their
   own, so they are lifted out of the page's picture and swapped in place with no animation: the old one is
   not drawn and the new one stands exactly where it was (a new page's name simply replaces the old). The
   rest of the page (root) is the content: the old picture stays whole underneath, never fading, and the
   new one fades in over it in --ps-move-page-fade (250ms) while rising the last few pixels (--ps-page-rise).
   Both pages draw the same cream, so the old page never blinks out: at every moment one opaque picture is
   under the other. Less motion asked for (the system's or the Controls "still"): no animation at all. */
@view-transition { navigation: auto; }
@keyframes ps-page-fade-in { from { opacity: 0; transform: translateY(var(--ps-page-rise)); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: ps-page-fade-in var(--ps-move-page-fade) var(--ps-ease-settle) both;
}
::view-transition-group(ps-shell-mark), ::view-transition-group(ps-shell-name),
::view-transition-group(ps-shell-wordmark), ::view-transition-group(ps-shell-controls),
::view-transition-new(ps-shell-mark), ::view-transition-new(ps-shell-name),
::view-transition-new(ps-shell-wordmark), ::view-transition-new(ps-shell-controls) { animation: none; }
::view-transition-old(ps-shell-mark), ::view-transition-old(ps-shell-name),
::view-transition-old(ps-shell-wordmark), ::view-transition-old(ps-shell-controls) { display: none; }
@supports (view-transition-name: none) {
  .ps-page-in:not(.is-arrival) { animation: none; }
}
html:has(.ps-topbar.is-still)::view-transition-group(*), html:has(.ps-topbar.is-still)::view-transition-old(*),
html:has(.ps-topbar.is-still)::view-transition-new(*) { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ps-bird, .ps-mark.is-working .ps-bird, .ps-page-in, .ps-page-in.is-arrival { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* The menu: a quarter-circle on the logo, five wedges (geometry: components.menu). On open the
   edge grows from the logo with the background behind it, the wedges turn the last 20 degrees
   into place and the labels fade in over the second half; closing runs the same in reverse. */
.ps-menu { position: absolute; left: 0; top: 0; width: 184px; height: 184px; z-index: 2; }
.ps-menu svg { position: absolute; left: 0; top: 0; }
/* Only the fan itself takes a press; the empty corner of its square box lets it through to the page. */
.ps-menu, .ps-menu svg { pointer-events: none; }
.ps-menu-back, .ps-wedge { pointer-events: auto; }
.ps-menu-back { fill: var(--ps-cream); }
.ps-menu-ring { fill: none; stroke: var(--ps-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ps-menu-dial { fill: none; stroke: var(--ps-ink); stroke-opacity: 0.25; pointer-events: none; }
.ps-menu-labels { font-family: var(--ps-font-body); font-size: var(--ps-size-11); letter-spacing: 1.5px; }
.ps-menu-divider { stroke: var(--ps-ink); stroke-opacity: 0.18; pointer-events: none; }
.ps-menu-tick { stroke: var(--ps-ink); stroke-opacity: 0.45; pointer-events: none; }
.ps-menu-pointer { stroke: var(--ps-ink); stroke-width: 1.75; stroke-linecap: round; pointer-events: none; }
.ps-menu-dot { fill: var(--ps-mean-normal-ink); pointer-events: none; }
.ps-wedge path { fill: transparent; transition: fill var(--ps-move-hover) ease; }
.ps-wedge:hover path { fill: var(--ps-sage-wash); }
.ps-wedge text { fill: var(--ps-ink-muted); }
.ps-wedge.is-on text, .ps-wedge:hover text { fill: var(--ps-ink); }
.ps-wedge:focus-visible path { stroke: var(--ps-ink); }

@keyframes ps-iris-in { from { clip-path: circle(17px at 30px 30px); } to { clip-path: circle(147px at 30px 30px); } }
@keyframes ps-iris-out { from { clip-path: circle(147px at 30px 30px); } to { clip-path: circle(17px at 30px 30px); } }
@keyframes ps-ring-in { from { transform: scale(.1164); } to { transform: scale(1); } }
@keyframes ps-ring-out { from { transform: scale(1); } to { transform: scale(.1164); } }
@keyframes ps-blade-in { from { transform: rotate(-20deg); } to { transform: rotate(0deg); } }
@keyframes ps-blade-out { from { transform: rotate(0deg); } to { transform: rotate(-20deg); } }
@keyframes ps-label-in { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ps-label-out { 0% { opacity: 1; } 55%, 100% { opacity: 0; } }
.ps-menu-ring, .ps-menu-fan { transform-origin: 30px 30px; transform-box: view-box; }
.ps-menu.is-opening { animation: ps-iris-in var(--ps-move-in-menu) var(--ps-ease) both; }
.ps-menu.is-closing { animation: ps-iris-out var(--ps-move-out-menu) var(--ps-ease) both; }
.ps-menu.is-opening .ps-menu-ring { animation: ps-ring-in var(--ps-move-in-menu) var(--ps-ease) both; }
.ps-menu.is-closing .ps-menu-ring { animation: ps-ring-out var(--ps-move-out-menu) var(--ps-ease) both; }
.ps-menu.is-opening .ps-menu-fan { animation: ps-blade-in var(--ps-move-in-menu) var(--ps-ease) both; }
.ps-menu.is-closing .ps-menu-fan { animation: ps-blade-out var(--ps-move-out-menu) var(--ps-ease) both; }
.ps-menu.is-opening .ps-wedge text { animation: ps-label-in var(--ps-move-in-menu) linear both; }
.ps-menu.is-closing .ps-wedge text { animation: ps-label-out var(--ps-move-out-menu) linear both; }

@media (prefers-reduced-motion: reduce) {
  .ps-menu.is-opening, .ps-menu.is-closing, .ps-menu.is-opening .ps-menu-ring,
  .ps-menu.is-closing .ps-menu-ring, .ps-menu.is-opening .ps-menu-fan,
  .ps-menu.is-closing .ps-menu-fan, .ps-menu.is-opening .ps-wedge text,
  .ps-menu.is-closing .ps-wedge text { animation: none; }
  .ps-wedge path { transition: none; }
}

/* The page: cream canvas, walnut ink, body type (Now2's root). Sideways overflow is clipped, not hidden:
   hidden made the page a scroll box of its own, a scroll inside the window's on phones (16 Nov 2026). */
.ps-page {
  min-height: 100vh; position: relative; display: flex; overflow-x: hidden; overflow-x: clip;
  background: var(--ps-cream); color: var(--ps-ink); font-family: var(--ps-font-body);
}
.ps-main {
  flex-grow: 1; box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: 64px max(80px, calc((100% - 1376px) / 2)) 24px max(80px, calc((100% - 1376px) / 2));
}

/* Now's words, top left: the date line, the headline, the sentence, how sure, the bank today. */
.ps-lead { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.ps-dateline {
  font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label); text-transform: uppercase;
  color: var(--ps-ink-muted);
}
.ps-headline {
  margin: 0; font-family: var(--ps-font-display); font-size: var(--ps-size-36);
  font-weight: var(--ps-weight-light); line-height: 1.15; letter-spacing: var(--ps-track-figure);
}
.ps-sentence { margin: 0; max-width: 700px; font-size: var(--ps-size-18); line-height: 1.5; }
.ps-aside { font-size: var(--ps-size-14); color: var(--ps-ink-muted); }
.ps-figure {
  font-family: var(--ps-font-display); font-weight: var(--ps-weight-light); color: var(--ps-ink);
  font-variant-numeric: tabular-nums;
}

/* Buttons are pills. The filled deep-green one is the act on offer, filled pink only where the act clears
   something that needs the owner (.ps-act-attn, shell design v2 answer 2); the outlined one is quiet. */
.ps-pill, .ps-act {
  display: inline-flex; align-items: center; border-radius: var(--ps-radius-pill);
  font: inherit; font-size: var(--ps-size-12); text-decoration: none; cursor: pointer;
}
.ps-pill { height: 32px; padding: 0 14px; border: 1px solid var(--ps-ink); background: var(--ps-cream); color: var(--ps-ink); }
.ps-act { height: 26px; padding: 0 12px; border: 0; background: var(--ps-mean-normal-ink); color: var(--ps-cream); }
.ps-act.ps-act-attn { background: var(--ps-mean-attn-ink); color: var(--ps-paper); }
.ps-pill:hover { border-color: var(--ps-mean-normal-ink); }
/* The quiet pill (2.3, no text links): a secondary way on - Settings, the guide's links, "Something's not
   right" - drawn small with a soft walnut edge, firm under the pointer. Never deep green, never pink. */
.ps-pill.ps-pill-quiet { height: 26px; padding: 0 11px; border-color: var(--ps-line-35); color: var(--ps-ink-muted);
  font-size: var(--ps-size-12); white-space: nowrap; }
.ps-pill.ps-pill-quiet:hover { border-color: var(--ps-mean-normal-ink); color: var(--ps-ink); }
/* A row of pills: the guide's, Settings' and the smaller pages' ways on. */
.ps-set-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px; }
.ps-pill:focus-visible, .ps-act:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }

/* New money arriving while a page is open is announced quietly, never redrawn under the owner. */
.ps-news {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 4px 0 14px;
  border: 1px solid var(--ps-ink); border-radius: var(--ps-radius-pill); background: var(--ps-cream);
  font-size: var(--ps-size-13); color: var(--ps-ink);
}
.ps-news-dot { width: 6px; height: 6px; border-radius: var(--ps-radius-pill); background: var(--ps-green); }
/* On Now the strip sits at the top right of the words, with no act in it (chunk 12a). */
.ps-news-place { display: flex; justify-content: flex-end; }
.ps-news-place .ps-news { height: auto; min-height: 34px; padding: 6px 14px; box-sizing: border-box; }

/* "Your forecast just got better": said once, bottom right, closed with one tap (Now2's card). */
.ps-better {
  position: fixed; right: 24px; bottom: 24px; z-index: 3; width: 340px; max-width: calc(100% - 32px);
  box-sizing: border-box; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
  background: var(--ps-cream); color: var(--ps-ink); border: 1px solid var(--ps-ink);
  border-radius: var(--ps-radius-card);
}
.ps-better[hidden] { display: none; }
.ps-better-words { margin: 0; font-size: var(--ps-size-14); line-height: 1.5; }
.ps-better .ps-pill { align-self: flex-start; }
@media (max-width: 700px) { .ps-better { right: 16px; bottom: 16px; } }

/* A label in small capitals (used above figures and sections). */
.ps-label {
  font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label); text-transform: uppercase;
  color: var(--ps-ink-muted);
}
/* The one figure that matters, large and light (the phone's Now). */
.ps-big { display: flex; flex-direction: column; gap: 8px; }
.ps-big-figure {
  font-family: var(--ps-font-display); font-size: var(--ps-size-46); font-weight: var(--ps-weight-light);
  line-height: 1; letter-spacing: var(--ps-track-figure-tight); font-variant-numeric: tabular-nums;
}
/* Rows of dated payments with their figures lined up (the phone's "coming up"). */
.ps-rows { display: flex; flex-direction: column; border-top: 1px solid var(--ps-line); }
.ps-row {
  display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--ps-line); font-size: var(--ps-size-15);
}
.ps-row:last-child { border-bottom: 0; }
.ps-row-figure {
  font-family: var(--ps-font-display); font-size: var(--ps-size-15); font-weight: var(--ps-weight-light);
  font-variant-numeric: tabular-nums;
}

/* The cash chart (geometry: charts.cash_line; markup: templates/components/chart.html), as on the
   demo's Now2. The fades are chart marks, not surfaces: the line fades into the year ahead, the
   sage fill fades downward and across. The line draws itself once, after the page opens. */
.ps-chart { margin: 0; position: relative; }
.ps-chart-svg { display: block; width: 100%; height: auto; }
.ps-fade-ink-a { stop-color: var(--ps-ink); stop-opacity: 1; }
.ps-fade-ink-b { stop-color: var(--ps-ink); stop-opacity: 0.8; }
.ps-fade-ink-c { stop-color: var(--ps-ink); stop-opacity: 0.08; }
.ps-fade-sage-a { stop-color: var(--ps-sage); stop-opacity: 0.55; }
.ps-fade-sage-b { stop-color: var(--ps-sage); stop-opacity: 0; }
.ps-fade-across-a { stop-color: var(--ps-paper); stop-opacity: 1; }
.ps-fade-across-b { stop-color: var(--ps-paper); stop-opacity: 0.8; }
.ps-fade-across-c { stop-color: var(--ps-paper); stop-opacity: 0.2; }
.ps-chart-under { fill: var(--ps-cream); }
.ps-chart-line { fill: none; stroke-width: 1.25; }                /* the demo's Now2 weight */
.ps-chart-fc { stroke-dasharray: 4 3; }       /* a forecast, dashed as Flows draws its forecast months */
/* Plan's three months of what happened (Will, 17 Nov 2026): solid, then the dashed forecast from today's
   hairline. Both green: information. */
.ps-chart-past { stroke-dasharray: none; }
.ps-chart-today { stroke: var(--ps-ink); stroke-opacity: 0.18; stroke-width: 1; }
/* Plan's cash line is green, the lowest point too, with no fade to pink near the cushion (Will, 15 Nov
   2026, round 3); pink stays for the payments that need attention */
.ps-chart-green { --ps-low: var(--ps-green); }
.ps-chart-green .ps-chart-line { stroke: var(--ps-green); }
.ps-chart-cushion { fill: var(--ps-sage); fill-opacity: 0.22; pointer-events: none; }
.ps-chart-floor { stroke: var(--ps-ink); stroke-opacity: 0.18; }
.ps-chart-zero { stroke: var(--ps-ink); stroke-opacity: 0.35; stroke-width: 0.75; }
/* 2.3 (shell design v2, answer 5): the cash line goes from green to pink as it nears the cushion (stepped
   stops from charts.near_stops), and the lowest point takes its own day's step (.ps-low-near-<k> on the
   chart). Data colour, not a surface. */
.ps-near-stop-0 { stop-color: var(--ps-near-0); } .ps-near-stop-1 { stop-color: var(--ps-near-1); }
.ps-near-stop-2 { stop-color: var(--ps-near-2); } .ps-near-stop-3 { stop-color: var(--ps-near-3); }
.ps-near-stop-4 { stop-color: var(--ps-near-4); } .ps-near-stop-5 { stop-color: var(--ps-near-5); }
.ps-low-near-0 { --ps-low: var(--ps-near-0); } .ps-low-near-1 { --ps-low: var(--ps-near-1); }
.ps-low-near-2 { --ps-low: var(--ps-near-2); } .ps-low-near-3 { --ps-low: var(--ps-near-3); }
.ps-low-near-4 { --ps-low: var(--ps-near-4); } .ps-low-near-5 { --ps-low: var(--ps-near-5); }
.ps-chart-valley { stroke: var(--ps-low, var(--ps-near-5)); stroke-width: 1; }
.ps-chart-low { fill: var(--ps-low, var(--ps-near-5)); }
.ps-chart-start { fill: var(--ps-ink); }
.ps-chart-text { font-family: var(--ps-font-body); font-size: var(--ps-size-11); fill: var(--ps-ink-muted); pointer-events: none; }
.ps-chart-hover rect { fill: transparent; cursor: pointer; }
/* The valley's words sit just above the lowest point (its place from charts.cash_line), to its
   right, or ending at it in the last third of the year. */
.ps-valley { position: absolute; display: flex; flex-direction: column; gap: 2px; white-space: nowrap;
  transform: translate(8px, calc(-100% - 8px)); }
.ps-valley-end { transform: translate(calc(-100% - 8px), calc(-100% - 8px)); text-align: right; }
.ps-chart-phone .ps-chart-text { font-size: var(--ps-size-10); }
.ps-valley-below, .ps-chart-phone .ps-valley { position: static; transform: none; margin-top: 8px; white-space: normal; }
.ps-valley-words { font-size: var(--ps-size-15); }
.ps-valley-figure { font-size: var(--ps-size-13); color: var(--ps-low, var(--ps-near-5)); font-variant-numeric: tabular-nums; }
@keyframes ps-draw-line { to { stroke-dashoffset: 0; } }
.ps-drawline { stroke-dasharray: 1; stroke-dashoffset: 1;   /* with pathLength="1": any length */
  animation: ps-draw-line var(--ps-move-draw-app) var(--ps-ease) forwards; }   /* inside the app: no wait */
/* on arrival from the loading page: after the page has opened, drawn in full */
.is-arrival .ps-drawline { animation: ps-draw-line var(--ps-move-draw) var(--ps-ease) var(--ps-move-brief) forwards; }

@media (prefers-reduced-motion: reduce) {
  .ps-drawline, .is-arrival .ps-drawline { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* A page cut by product (the demo's Products2 results and ChartBars). Two segments: stock and
   margin after stock (no product cut of pay, Will 13 Nov 2026). */
.ps-tracks { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.ps-prow {
  display: grid; grid-template-columns: 184px minmax(0, 1fr) 72px 72px 84px 40px; gap: 16px; align-items: center;
  min-height: 47px; border-bottom: 1px solid var(--ps-line-soft);
}
.ps-prow-hd {
  min-height: 22px; border-bottom: 1px solid var(--ps-line-strong); font-size: var(--ps-size-11);
  letter-spacing: var(--ps-track-label); text-transform: uppercase; color: var(--ps-ink-muted);
}
.ps-prow-total { border-bottom: 0; min-height: 40px; }
.ps-key { display: flex; gap: 18px; text-transform: none; letter-spacing: 0; font-size: var(--ps-size-12); }
.ps-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
/* sage mist alone is 1.4:1 on cream, so stock and plain bars carry a 3:1 edge (WCAG 1.4.11) */
.ps-sw-stock, .ps-seg-stock { background: var(--ps-sage-mist); box-sizing: border-box; border: 1px solid var(--ps-green-mid); }
.ps-sw-unknown { box-sizing: border-box; border: 1px dashed var(--ps-ink-55); }
.ps-sw-margin, .ps-seg-margin { background: var(--ps-green); }
.ps-an { display: flex; flex-direction: column; min-width: 0; }
.ps-an-name { font-size: var(--ps-size-15); }
.ps-an small { font-size: var(--ps-size-12); color: var(--ps-ink-muted); }
.ps-trk { position: relative; height: 20px; }
.ps-seg {
  position: absolute; top: 0; bottom: 0; transform-origin: 0 50%;
  animation: ps-seg-in var(--ps-move-turn) var(--ps-ease) both;
}
.ps-seg-unknown { box-sizing: border-box; border: 1px dashed var(--ps-ink-55); }
.ps-trk-mark { position: absolute; top: -4px; bottom: -4px; border-left: 1px solid var(--ps-mean-normal-ink); }
@keyframes ps-seg-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ps-am, .ps-bar-val {
  font-family: var(--ps-font-display); font-weight: var(--ps-weight-light); font-size: var(--ps-size-13);
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; color: var(--ps-ink-muted);
}
.ps-pm { font-size: var(--ps-size-16); text-align: right; white-space: nowrap; }
.ps-num { text-align: right; }
.ps-pm-unknown { font-size: var(--ps-size-13); color: var(--ps-ink-muted); }
.ps-headline-page { font-size: var(--ps-size-30); }
.ps-pct { font-size: var(--ps-size-13); text-align: right; color: var(--ps-ink-muted); }
.ps-neg { color: var(--ps-ink); }          /* money going out is normal: walnut, not pink (5.3) */
.ps-label {
  font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label); text-transform: uppercase;
  color: var(--ps-ink-muted);
}

.ps-bars { position: relative; height: 330px; }
.ps-bars-row { position: absolute; inset: 0; display: flex; justify-content: space-around; }
.ps-bar-col { display: flex; flex-direction: column; align-items: stretch; outline: none; }
.ps-bar-stack { height: 284px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.ps-bar {
  width: 100%; box-sizing: border-box; background: var(--ps-sage-mist); border: 1px solid var(--ps-green-mid);
  border-bottom: 0; transform-origin: 50% 100%;
  animation: ps-bar-up var(--ps-move-turn) var(--ps-ease) both;
}
.ps-bar-col.is-on .ps-bar { background: var(--ps-green); border-color: var(--ps-green); }
.ps-bar-col.is-on .ps-bar-val, .ps-bar-col.is-on .ps-bar-cat { color: var(--ps-ink); }
.ps-bar-closed { border: 0; border-bottom: 1px dashed var(--ps-ink-55); }
.ps-bar-col[tabindex]:hover .ps-bar { outline: 1px solid var(--ps-green-deep); outline-offset: 1px; }
.ps-bar-col[tabindex]:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 4px; }
.ps-bar-foot { padding-top: 10px; display: flex; flex-direction: column; align-items: center; }
.ps-bar-cat { font-size: var(--ps-size-13); line-height: 1.3; text-align: center; white-space: nowrap; color: var(--ps-ink-muted); }
.ps-bar-sub { font-size: var(--ps-size-11); color: var(--ps-ink-muted); white-space: nowrap; }
.ps-bars-base { position: absolute; left: 0; right: 0; top: 284px; border-top: 1px solid var(--ps-line-firm); }
@keyframes ps-bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 700px) {
  .ps-prow { grid-template-columns: minmax(0, 1fr) 52px 48px 60px 32px; gap: 8px; }
  .ps-prow .ps-am { font-size: var(--ps-size-12); } .ps-pm { font-size: var(--ps-size-14); }
  .ps-prow .ps-trk, .ps-prow-hd .ps-key, .ps-prow-total > span:nth-child(2) { display: none; }
  .ps-an small { display: none; }
  .ps-headline-page { font-size: var(--ps-size-24); }
}
@media (prefers-reduced-motion: reduce) { .ps-seg, .ps-bar { animation: none; } }

/* Each day's figure on the cash chart (static/charts.js): the demo's probe and hover card. */
.ps-chart[tabindex]:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 4px; }
.ps-chart-probe { opacity: 0; pointer-events: none; transition: opacity var(--ps-move-hover) var(--ps-ease); }
.ps-chart-probe line { stroke: var(--ps-green-deep); stroke-opacity: 0.5; }
.ps-chart-probe circle { fill: var(--ps-cream); stroke: var(--ps-green-deep); stroke-width: 1.5; }
.ps-chart.is-reading .ps-chart-probe { opacity: 1; }
.ps-chart-card {
  position: absolute; z-index: 1; box-sizing: border-box; width: 142px; height: 40px; padding: 0 18px;
  display: flex; flex-direction: column; justify-content: center; pointer-events: none; opacity: 0;
  border: 1px solid var(--ps-green-deep); border-radius: var(--ps-radius-pill); background: var(--ps-cream);
  transform: translate(12px, calc(-100% - 16px)); transition: opacity var(--ps-move-hover) var(--ps-ease);
}
.ps-chart-card.is-left { transform: translate(calc(-100% - 12px), calc(-100% - 16px)); }
.ps-chart-card.is-below { transform: translate(12px, 16px); }
.ps-chart-card.is-left.is-below { transform: translate(calc(-100% - 12px), 16px); }
.ps-chart-card[hidden] { display: none; }
.ps-chart.is-reading .ps-chart-card { opacity: 1; }
.ps-chart-card-date { font-size: var(--ps-size-11); color: var(--ps-ink-muted); line-height: 1.2; }
.ps-chart-card-amount { font-family: var(--ps-font-display); font-size: var(--ps-size-13); font-weight: var(--ps-weight-light); line-height: 1.3; }
.ps-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Now with no cash line yet (no bank balance): an outline the chart's size, never a made-up line. */
.ps-chart-empty {
  box-sizing: border-box; min-height: 272px; padding: 32px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 10px;
  border: 1px dashed var(--ps-ink-55); border-radius: var(--ps-radius-card);
}
.ps-chart-empty p { margin: 0; max-width: 640px; }

/* The served page's shell (shell design v1 1.1, v2): one 60px bar. Top left the mark (the menu opens
   out of it) and the page's name; the wordmark in the centre; top right the Controls pill. */
.ps-body { margin: 0; background: var(--ps-cream); }
.ps-topbar { position: absolute; left: 0; right: 0; top: 0; height: 60px; z-index: 3; }
.ps-shell-mark { position: absolute; left: 13px; top: 13px; z-index: 3; }
.ps-shell-wordmark { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); z-index: 1; }
/* The logo, top centre (Will, 15 Nov 2026): the wordmark alone, its i's dot the brand pink; the flock in
   its ring is only the fan's button, top left. */
.ps-controls {
  position: absolute; right: 16px; top: 13px; z-index: 1; box-sizing: border-box; height: 34px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ps-green-deep);
  border-radius: var(--ps-radius-pill); background: var(--ps-cream); color: var(--ps-green-deep);
  font-size: var(--ps-size-13); text-decoration: none; white-space: nowrap;
  transition: background-color var(--ps-move-hover) var(--ps-ease);
}
.ps-controls:hover, .ps-controls[aria-expanded="true"] { background: var(--ps-sage-wash); color: var(--ps-green-deep); }
.ps-controls:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 3px; }
.ps-controls-glyph { display: block; }
/* The shell's own names for a move between pages (Will's answer 19; the move itself is above, with
   @view-transition): each holds still while only the content fades in. */
.ps-shell-mark { view-transition-name: ps-shell-mark; }
.ps-pagename { view-transition-name: ps-shell-name; }
.ps-shell-wordmark { view-transition-name: ps-shell-wordmark; }
.ps-controls { view-transition-name: ps-shell-controls; }
.ps-controls-glyph path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ps-saved { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); margin: 0; z-index: 1;
  font-size: var(--ps-size-12); color: var(--ps-green-deep); white-space: nowrap; }
/* A page drawn ahead of the click (static/layout.js) holds its opening moves until it is shown. */
.is-ahead .ps-page-in, .is-ahead .ps-drawline, .is-ahead .ps-seg, .is-ahead .ps-bar { animation-play-state: paused; }
/* The ordinary link static/menu.js adds for a wedge pointed at: never seen, never reached. */
.ps-ahead { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
/* The owner's own "Reduce motion" (the Controls tab): everything on the page holds still, as the
   system setting does. The bar carries the class; :has() lets it reach the whole page. */
body:has(.ps-topbar.is-still) *, body:has(.ps-topbar.is-still) *::before, body:has(.ps-topbar.is-still) *::after {
  animation: none !important; transition: none !important; }
.ps-only-phone { display: none; }
@media (max-width: 700px) {
  .ps-shell-wordmark .ps-wordmark { font-size: var(--ps-size-16); }
  .ps-shell-wordmark { top: 22px; }
  .ps-controls { padding: 0 13px; }
  .ps-controls-glyph { display: none; }
  .ps-saved { top: 48px; max-width: calc(100% - 32px); white-space: normal; text-align: center; }
  .ps-only-laptop { display: none; }
  .ps-only-phone { display: block; }
  .ps-main { padding: 72px 16px 24px 16px; }
  .ps-lead .ps-headline { font-size: var(--ps-size-24); }      /* NowPhone2: nothing above 24px */
  .ps-lead .ps-sentence { font-size: var(--ps-size-17); }
}

/* ---- Flows (chunk 12c): the shared cut control, the picture, the review and the fix forms ---- */
.ps-cut { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 18px; }
.ps-cut-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ps-cut-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--ps-line-firm); border-radius: var(--ps-radius-pill); color: var(--ps-ink);
  text-decoration: none; font-size: var(--ps-size-13); }
.ps-cut-link[aria-current="true"] { border-color: var(--ps-ink); background: var(--ps-ink); color: var(--ps-cream); }
.ps-cut-link:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-cut-name { font-size: var(--ps-size-14); color: var(--ps-ink); padding: 0 4px; }
.ps-flow { margin: 12px 0 20px; }
.ps-flow-box { position: relative; }
.ps-flow-svg { display: block; width: 100%; height: auto; }
.ps-flow-band { cursor: pointer; }
.ps-flow-band:focus { outline: none; }
.ps-flow-band:focus-visible .ps-flow-node { stroke: var(--ps-ink); stroke-width: 2; }
.ps-flow-ribbon { fill-opacity: 0.45; stroke: none; }
.ps-flow-node { stroke: var(--ps-ink); stroke-width: 0.5; }
.ps-flow-counted .ps-flow-ribbon, .ps-flow-counted .ps-flow-node { fill: var(--ps-sage); }
.ps-flow-deep .ps-flow-ribbon, .ps-flow-deep .ps-flow-node { fill: var(--ps-green-mid); }
.ps-flow-out .ps-flow-ribbon, .ps-flow-out .ps-flow-node { fill: none; stroke: var(--ps-green-mid); stroke-width: 1; }
.ps-flow-nn .ps-flow-ribbon, .ps-flow-nn .ps-flow-node { fill: url(#ps-flow-pin); stroke: var(--ps-mean-attn-ink); stroke-width: 0.8; }
.ps-flow-diff .ps-flow-ribbon, .ps-flow-diff .ps-flow-node { fill: var(--ps-mean-attn-wash); }
.ps-flow-diff .ps-flow-node { stroke: var(--ps-mean-attn-ink); stroke-width: 1.5; }
/* Will, 15 Nov 2026: greens are information, pink needs attention, hatched green is good news, so
   "Added to your balance" (cash left in the bank) takes the green hatch, edged in the deeper green */
.ps-flow-gain .ps-flow-ribbon, .ps-flow-gain .ps-flow-node { fill: url(#ps-flow-hatch-g); }
.ps-flow-gain .ps-flow-node { stroke: var(--ps-green-deep); stroke-width: 1.5; }
.ps-flow-pin-dot { fill: var(--ps-mean-attn); }
/* A forecast month's bands: a dashed outline on a pale sage fill, never hatched (hatching is good news
   only: shell design v2, answer 4), as the phone's bar already draws it */
.ps-flow-fc .ps-flow-ribbon, .ps-flow-fc .ps-flow-node { fill: var(--ps-sage-mist); stroke: var(--ps-green-mid); stroke-width: 1; stroke-dasharray: 4 3; }
.ps-flow-hatch-g-bg { fill: var(--ps-cream); }
.ps-flow-hatch-g-line { stroke: var(--ps-mean-good-line); stroke-width: 1.6; }
.ps-flow-band.is-on .ps-flow-ribbon { fill-opacity: 0.75; }
.ps-flow-spine { stroke: var(--ps-ink); stroke-opacity: 0.2; }
.ps-flow-leader { stroke: var(--ps-ink); stroke-opacity: 0.4; }
.ps-flow-label { position: absolute; transform: translateY(-50%); font-size: var(--ps-size-13); color: var(--ps-ink); white-space: nowrap; }
.ps-flow-label-left { transform: translate(-100%, -50%); text-align: right; }
.ps-flow-label.is-on .ps-flow-name { text-decoration: underline; }
.ps-flow-phone { margin: 12px 0 20px; }
.ps-flow-bar-row { display: flex; justify-content: space-between; margin-top: 10px; }
.ps-flow-bar { display: flex; height: 14px; border: 1px solid var(--ps-line-firm); }
.ps-flow-seg { display: block; min-width: 1px; }
.ps-flow-seg.ps-flow-counted, .ps-flow-sw.ps-flow-counted { background: var(--ps-sage); }
.ps-flow-seg.ps-flow-deep, .ps-flow-sw.ps-flow-deep { background: var(--ps-green-mid); }
.ps-flow-seg, .ps-flow-sw { box-sizing: border-box; }
.ps-flow-seg.ps-flow-out, .ps-flow-sw.ps-flow-out { background: transparent; border: 1px solid var(--ps-green-mid); }
.ps-flow-seg.ps-flow-nn, .ps-flow-sw.ps-flow-nn { background: var(--ps-cream); border: 1px dotted var(--ps-mean-attn-ink); }
.ps-flow-seg.ps-flow-diff, .ps-flow-sw.ps-flow-diff { background: var(--ps-mean-attn-wash); border: 1px solid var(--ps-mean-attn-ink); }
.ps-flow-seg.ps-flow-fc, .ps-flow-sw.ps-flow-fc { background: var(--ps-sage-mist); border: 1px dashed var(--ps-green-mid); }
.ps-flow-seg.ps-flow-gain, .ps-flow-sw.ps-flow-gain { background-color: var(--ps-mean-good-ground); background-image: url("/static/hatch-good.svg");
  border: 1.5px solid var(--ps-green-deep); }
.ps-flow-list { list-style: none; padding: 0; margin: 0 0 12px; }
.ps-flow-list a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ps-ink); text-decoration: none; border-bottom: 1px solid var(--ps-line); }
.ps-flow-list .ps-figure { margin-left: auto; }
.ps-flow-sw { display: inline-block; width: 12px; height: 12px; }
.ps-flow-table { border-collapse: collapse; width: 100%; margin: 0 0 16px; }
.ps-flow-table th, .ps-flow-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--ps-line); }
.ps-table { border-collapse: collapse; width: 100%; }
.ps-table th, .ps-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--ps-line); }
.ps-table tr[aria-current="true"] th { font-weight: 600; }
/* ---- Products' heatmap: stepped token shades, no gradients; the time axis scrolls inside its wrap ---- */
.ps-heat { margin: 24px 0; min-width: 0; max-width: 100%; }
.ps-heat-wrap { max-width: 100%; overflow-x: auto; }
.ps-heat-wrap:focus-visible, .ps-heat-cell:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: -2px; }
.ps-heat-table { border-collapse: separate; border-spacing: 2px; }
.ps-heat-col { font-size: var(--ps-size-11); font-weight: 400; color: var(--ps-ink-muted); text-align: center; white-space: nowrap; padding: 2px 0; }
.ps-heat-col.is-on { color: var(--ps-ink); font-weight: 600; }
.ps-heat-row { position: sticky; left: 0; z-index: 1; background: var(--ps-cream); text-align: left; font-weight: 400;
  font-size: var(--ps-size-13); padding: 0 10px 0 0; min-width: 110px; max-width: 160px; vertical-align: middle; }
.ps-heat-row small { display: block; font-size: var(--ps-size-11); color: var(--ps-ink-muted); }
.ps-heat-cell { min-width: 64px; height: 36px; text-align: center; font-size: var(--ps-size-12); color: var(--ps-ink);
  border: 1px solid transparent; cursor: default; }
.ps-heat-x { display: none; }
.ps-heat-cell:hover .ps-heat-v, .ps-heat-cell:focus .ps-heat-v { display: none; }
.ps-heat-cell:hover .ps-heat-x, .ps-heat-cell:focus .ps-heat-x { display: inline; font-weight: 600; }
.ps-heat-s0 { background: transparent; border: 1px solid var(--ps-line-firm); }
.ps-heat-s1 { background: var(--ps-sage-mist); }
.ps-heat-s2 { background: var(--ps-sage-pale); }
.ps-heat-s3 { background: var(--ps-sage); }
.ps-heat-s4 { background: var(--ps-green-dim); color: var(--ps-cream); }
.ps-heat-s5 { background: var(--ps-green-deep); color: var(--ps-cream); }
.ps-heat-neg { background: var(--ps-pink-pale); border: 1px solid var(--ps-pink-deep); }
.ps-heat-nk { background: transparent; border: 1px dashed var(--ps-ink-55); color: var(--ps-ink-muted); }
.ps-heat-cell.ps-heat-s4 .ps-heat-x, .ps-heat-cell.ps-heat-s5 .ps-heat-x { color: var(--ps-cream); }
.ps-heat-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: var(--ps-size-12); color: var(--ps-ink-muted); }
.ps-heat-legend .ps-sw { width: 14px; height: 14px; box-sizing: border-box; }
.ps-working, .ps-fixbox { margin: 20px 0; }
.ps-inline-form { display: inline; margin-left: 8px; }
.ps-notice { border: 1px solid var(--ps-ink); padding: 10px 12px; margin: 0 0 16px; }
.ps-scroll { overflow-x: auto; }
@media (min-width: 769px) {
  .ps-visually-hidden-laptop { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 768px) {
  .ps-cut-link { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ps-flow * { transition: none; animation: none; } }

/* Now's "What if this changed?" on each coming-up row (chunk 12d, A13): a link into Decide. */
.ps-row { flex-wrap: wrap; gap: 4px 12px; }
.ps-row-link { font-size: var(--ps-size-12); color: var(--ps-ink-muted); }
.ps-row-link:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }

/* ---- The drill (chunk 12g; drill and glossary design v2, 2.2 and 3) ----------------------------
   A figure is a link (or, inside another link, a span) that looks like the text around it: no
   underline at rest, a faint one on hover and focus. The drill opens as DrillPhone2's lever, beside
   the figure on a laptop and from the bottom on a phone; reduced motion skips the movement. No
   shadows, no gradients on surfaces. */
.ps-fig { color: inherit; text-decoration: none; cursor: pointer; -webkit-touch-callout: none; }
a.ps-fig:hover, a.ps-fig:focus-visible, span.ps-fig:hover {
  text-decoration: underline; text-decoration-color: var(--ps-line-35); text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.ps-fig:focus-visible { outline: 2px solid var(--ps-green-deep); outline-offset: 2px; }
text.ps-fig { cursor: pointer; }
.ps-chart-hover rect[data-fig] { cursor: pointer; }
.ps-drill[hidden] { display: none; }
/* Round 2 (Will, 15 Nov 2026): the drill is DrillPhone2's lever everywhere, in place of the wedge dial whose
   long labels ran mirrored and were cut off at its rim. On a laptop it is a card placed beside the figure, on
   the side that has room (static/drill.js), kept inside the window; on a phone it rises from the bottom.
   The four choices stand upright around the arc; the pointer turns to the chosen one; its card is below. */
.ps-drill { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 40; }   /* placed in the viewport, at the point opened */
.ps-drill-box {
  position: absolute; left: 8px; top: 8px; width: 390px; max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px); overflow-x: hidden; overflow-y: auto; box-sizing: border-box; padding: 20px 24px 24px;
  background: var(--ps-cream); border: 1px solid var(--ps-line-20); display: flex; flex-direction: column; gap: 10px;
  font-size: var(--ps-size-14); line-height: 1.45; overscroll-behavior: contain;
}
.ps-drill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ps-drill-name {
  font-size: var(--ps-size-11); line-height: 1.45; letter-spacing: var(--ps-track-label); text-transform: uppercase;
  color: var(--ps-ink-muted);
}
.ps-drill-close {
  border: 0; background: transparent; font: inherit; font-size: var(--ps-size-13); color: var(--ps-ink); text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer; padding: 2px 0; min-height: 24px;
}
.ps-drill-close:hover { color: var(--ps-mean-normal-ink); }
.ps-drill-close:focus-visible, .ps-drill-choice:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-drill-figure {
  display: block; font-family: var(--ps-font-display); font-size: var(--ps-size-44); font-weight: var(--ps-weight-light);
  letter-spacing: var(--ps-track-figure-tight); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.ps-drill-figure:empty { display: none; }
.ps-drill-lever-sheet { position: relative; flex: 0 0 auto; width: 342px; height: 200px; align-self: center; }
.ps-drill-lever-sheet svg { position: absolute; left: 0; top: 0; }
.ps-drill-sheet-arc { fill: none; stroke: var(--ps-ink); stroke-opacity: 0.2; }
.ps-drill-ticks line { stroke: var(--ps-ink); stroke-opacity: 0.45; }
.ps-drill-hub { fill: var(--ps-cream); stroke: var(--ps-ink); stroke-width: 1.25; }
.ps-drill-marker { visibility: hidden; }
.ps-drill-marker.is-on { visibility: visible; }
.ps-drill-dot { fill: var(--ps-mean-normal-ink); }
.ps-drill-lever { stroke: var(--ps-ink); stroke-width: 1.75; stroke-linecap: round; }
.ps-drill-pin { fill: var(--ps-ink); }
.ps-drill-choices { position: absolute; inset: 0; }
.ps-drill-choice {
  position: absolute; transform: translate(-50%, -50%); width: 96px; min-height: 44px; padding: 4px; border: 0;
  background: transparent; font: inherit; font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label);
  text-transform: uppercase; line-height: 1.35; text-align: center; color: var(--ps-ink-muted); cursor: pointer;
}
.ps-drill-choice:hover, .ps-drill-choice[aria-checked="true"] { color: var(--ps-ink); }
.ps-drill-pos0 { left: 112px; top: 46px; }     /* What it means */
.ps-drill-pos1 { left: 44px; top: 122px; }     /* Check the sum */
.ps-drill-pos2 { left: 230px; top: 46px; }     /* Ask about it */
.ps-drill-pos3 { left: 298px; top: 122px; }    /* What if it changed */
.ps-drill-place { border-top: 1px solid var(--ps-line-20); padding-top: 16px; }
.ps-drill-place:empty { display: none; }
.ps-drill-card h2 { margin: 0; }
.ps-drill-card p { margin: 0 0 6px; }
.ps-drill-card .ps-row {
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0;
  border-bottom: 1px solid var(--ps-line);
}
.ps-drill-card .ps-row > span:first-child { flex: 1 1 auto; min-width: 0; }
.ps-drill-card .ps-row-figure {
  font-family: var(--ps-font-display); font-weight: var(--ps-weight-light); font-size: var(--ps-size-13);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* A word's definition inside the drill opens in the card's own flow, under the word, so the card's edge
   and the window's never cut it off. */
.ps-drill .ps-term-def { position: static; width: auto; max-width: none; margin: 6px 0; }
.ps-drill .ps-term.is-above .ps-term-def { margin: 6px 0; }
.ps-drill.is-opening .ps-drill-box { animation: ps-drill-card var(--ps-move-in-dial) var(--ps-ease) both; }
@keyframes ps-drill-card { from { opacity: 0; } to { opacity: 1; } }
/* On a phone: the same lever, from the bottom of the screen. */
.ps-drill.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; }
.ps-drill.is-sheet .ps-drill-box {
  position: relative; left: auto; top: auto; width: 100%; max-width: none; max-height: 85vh; padding: 24px 16px 28px;
  border-width: 1px 0 0;
}
.ps-drill.is-sheet.is-opening .ps-drill-box { animation: ps-drill-sheet var(--ps-move-in-menu) var(--ps-ease) both; }
@keyframes ps-drill-sheet { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ps-drill.is-opening .ps-drill-box, .ps-drill.is-sheet.is-opening .ps-drill-box { animation: none; }
}

/* ---- The glossary (chunk 12g, 7.3): a word with a dotted underline; its definition on hover,
   focus or tap, always in the page for screen readers; Escape hides it (WCAG 1.4.13). */
.ps-term { position: relative; display: inline; }
.ps-term-word {
  border: 0; background: transparent; padding: 0; margin: 0; font: inherit; color: inherit; cursor: help;
  text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.ps-term-word:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-term-def {
  display: none; position: absolute; left: 0; top: 100%; z-index: 30; width: 18rem; max-width: calc(100vw - 32px);
  box-sizing: border-box; margin-top: 4px; padding: 10px 12px; background: var(--ps-cream); border: 1px solid var(--ps-line-20);
  font-size: 14px; line-height: 1.45; color: var(--ps-ink); text-align: left; white-space: normal; font-weight: 400;
  letter-spacing: normal; text-transform: none;
}
.ps-term-head { font-weight: 500; }
.ps-term-see { display: block; margin-top: 4px; color: var(--ps-ink-muted); }
.ps-term:hover .ps-term-def, .ps-term:focus-within .ps-term-def, .ps-term.is-open .ps-term-def { display: block; }
.ps-term.is-dismissed .ps-term-def { display: none; }
.ps-term.is-above .ps-term-def { top: auto; bottom: 100%; margin: 0 0 4px; }
@media (max-width: 40rem) { .ps-term-def { position: fixed; left: 16px; right: 16px; top: auto; width: auto; } }

/* Chunk 13b: the "Something's not right" link at the foot of an owner page, and a note kept as written. */
.ps-report { margin: 32px 0 0; font-size: var(--ps-size-13); }
.ps-link { color: var(--ps-ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.ps-link:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-note-text { white-space: pre-line; }

/* ---- Chunk 13a: the 390px and accessibility pass (reviews/a11y_390_2026-11-15.md) ----------------
   The logo mark is 34px to the eye (the demo) and 44px to a finger. At phone width every control
   that is a button, a field, a chip or a standalone link is 44px tall; a link inside a sentence is
   left as it is (it is not a target of its own). Links that stand alone get their 44px from padding
   cancelled by an equal negative margin, so the page's spacing does not move. */
/* A flow band in focus is outlined whole, not only at its node (the keyboard's ring must be seen on the ribbon). */
.ps-flow-band:focus-visible .ps-flow-ribbon { stroke: var(--ps-ink); stroke-width: 2; }
.ps-mark { position: relative; }
.ps-mark::after { content: ""; position: absolute; inset: -5px; border-radius: var(--ps-radius-pill); }
fieldset.ps-field label:has(> input[type=radio]) { display: flex; align-items: center; gap: 10px; min-height: 44px; }
fieldset.ps-field input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--ps-ink); }

@media (max-width: 700px) {
  .ps-pill, .ps-act, .ps-pill.ps-pill-quiet { min-height: 44px; }
  .ps-controls { height: 44px; top: 8px; }
  .ps-tab, .ps-panel-close, .ps-panel-act { min-height: 44px; }
  a.ps-go-link, .ps-go.ps-go-link { height: 44px; }
  .ps-field input[type=text], .ps-field input[type=email], .ps-field select { min-height: 44px; }
  .ps-chip input + span, .ps-dradio .ps-chip input + span { height: 44px; }
  summary:not([class]), summary.ps-qt { padding-block: 13px; }
  .ps-row-link, .ps-skip-link, .ps-report a, .ps-aside > a, .ps-qnote > a, .ps-sentence > a, .ps-row a.ps-fig,
  .ps-flow-table a, .ps-flow-phone a.ps-fig {
    display: inline-block; padding-block: 15px; margin-block: -15px;
  }
  .ps-term-word { padding-block: 13px; margin-block: -13px; }
  .ps-drill.is-sheet .ps-drill-close { min-height: 44px; min-width: 44px; }
}

/* The sample business's banner (sample.py; components/sample_banner.html): at the top of every page while
   the sample is open, its words and the way out: plain information, so deep green, not pink. Tokens only; no shadow, no gradient. */
.ps-sample-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--ps-mean-normal-ink); background: var(--ps-cream);
  color: var(--ps-mean-normal-ink); font-family: var(--ps-font-body); font-size: var(--ps-size-14); }
.ps-sample-banner p { margin: 0; }
.ps-sample-banner form { margin: 0; }

/* ---- 2.3 S3: the Controls panel (shell design v1 1.2 and 8, v2) ------------------------------------
   A modal dialog from the right edge: cream, a 1.5px deep-green rule on its left edge, a flat walnut
   veil over the page. No shadow. In 340ms, out in 227ms (the drill dial's), at once under reduced
   motion. Three tabs; each tab's part is fetched the first time it is shown. */
.ps-veil { position: fixed; inset: 0; z-index: 20; background: var(--ps-line-18); }
.ps-veil[hidden], .ps-panel[hidden] { display: none; }
.ps-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21; box-sizing: border-box; width: min(460px, 100vw);
  display: flex; flex-direction: column; background: var(--ps-cream); color: var(--ps-ink);
  border-left: 1.5px solid var(--ps-green-deep); font-family: var(--ps-font-body); font-size: var(--ps-size-14);
}
@keyframes ps-panel-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ps-panel-out { from { transform: none; } to { transform: translateX(100%); } }
.ps-panel.is-opening { animation: ps-panel-in var(--ps-move-in-dial) var(--ps-ease) both; }
.ps-panel.is-closing { animation: ps-panel-out var(--ps-move-out-dial) var(--ps-ease) both; }
.ps-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 10px; }
.ps-panel-title { margin: 0; font-family: var(--ps-font-display); font-size: var(--ps-size-20);
  font-weight: var(--ps-weight-light); letter-spacing: var(--ps-track-figure); }
/* Close is a quiet outlined pill, as every other way on in the panel (2.3: no text links). */
.ps-panel-close { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; box-sizing: border-box;
  border: 1px solid var(--ps-line-35); border-radius: var(--ps-radius-pill); background: var(--ps-cream); font: inherit;
  font-size: var(--ps-size-13); color: var(--ps-ink); cursor: pointer; transition: border-color var(--ps-move-hover) var(--ps-ease); }
.ps-panel-close:hover { border-color: var(--ps-mean-normal-ink); }
.ps-panel-close:focus-visible, .ps-tab:focus-visible, .ps-pane:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 3px; }
.ps-tabs { display: flex; gap: 2px; padding: 0 18px; border-bottom: 1px solid var(--ps-line-firm); }
.ps-tab { position: relative; border: 0; background: none; padding: 10px 8px 11px; font: inherit;
  font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label-tight); text-transform: uppercase;
  color: var(--ps-ink-muted); cursor: pointer; white-space: nowrap; }
.ps-tab:hover, .ps-tab[aria-selected="true"] { color: var(--ps-ink); }
.ps-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: var(--ps-green-deep); }
.ps-pane { flex: 1; overflow-y: auto; padding: 18px 24px 24px; }
.ps-pane[hidden] { display: none; }
.ps-pane-wait, .ps-pane-fail { margin: 0; color: var(--ps-ink-muted); }
.ps-pane-fail[hidden] { display: none; }
/* A part's own pieces, in the dialog and on the /panel page alike */
.ps-quick-h { margin: 18px 0 4px; font: inherit; font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label);
  text-transform: uppercase; color: var(--ps-ink-muted); }
.ps-quick-h:first-child { margin-top: 0; }
.ps-quick-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 0; padding: 6px 0 14px;
  border-bottom: 1px solid var(--ps-line); }
.ps-quick-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ps-quick-form legend { padding: 0; margin-bottom: 4px; font-size: var(--ps-size-13); color: var(--ps-ink-muted); }
.ps-quick-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--ps-size-13); color: var(--ps-ink-muted); }
.ps-quick-field input, .ps-quick-field select { box-sizing: border-box; min-height: 36px; padding: 0 10px;
  border: 1px solid var(--ps-line-strong); border-radius: var(--ps-radius-card); background: var(--ps-paper);
  color: var(--ps-ink); font: inherit; font-size: var(--ps-size-14); }
.ps-quick-field input:focus-visible, .ps-quick-field select:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-quick-radio { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: var(--ps-size-14); color: var(--ps-ink); }
.ps-quick-radio input { accent-color: var(--ps-green-deep); }
.ps-quick-now { flex-basis: 100%; margin: 0; font-size: var(--ps-size-13); color: var(--ps-ink-muted); }
/* Shell design v2, answer 2: an ordinary act is filled deep green; pink only clears something that needs the owner. */
.ps-panel-act { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px;
  border: 0; border-radius: var(--ps-radius-pill); background: var(--ps-mean-normal-ink); color: var(--ps-cream);
  font: inherit; font-size: var(--ps-size-13); cursor: pointer; transition: background-color var(--ps-move-hover) var(--ps-ease); }
.ps-panel-act:hover { background: var(--ps-ink); }
.ps-panel-act:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 3px; }
.ps-panel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px;
  padding: 4px 0; border-bottom: 1px solid var(--ps-line); }
.ps-panel-row form { margin: 0; }
.ps-panel-foot { margin: 18px 0 0; }
/* The panel's own ways on (All settings, Open, Tell us): quiet outlined pills, the same size as Close. */
.ps-panel-pill { height: 30px; padding: 0 13px; box-sizing: border-box; border-color: var(--ps-line-35); font-size: var(--ps-size-13);
  white-space: nowrap; transition: border-color var(--ps-move-hover) var(--ps-ease); }
.ps-panel-pill:hover { border-color: var(--ps-mean-normal-ink); color: var(--ps-ink); }
.ps-panel-note { margin: 6px 0 0; color: var(--ps-ink-muted); font-size: var(--ps-size-13); }
.ps-meaning { display: grid; grid-template-columns: 22px 1fr; gap: 10px 12px; align-items: center; margin: 8px 0 0; }
.ps-meaning-sw { width: 20px; height: 20px; box-sizing: border-box; border: 1px solid var(--ps-green); }
.ps-meaning-normal { background: var(--ps-sage); border-color: var(--ps-green-mid); }
.ps-meaning-good { background-color: var(--ps-mean-good-ground); background-image: url("/static/hatch-good.svg"); }
.ps-meaning-attn { width: 12px; height: 12px; justify-self: center; border: 0; border-radius: var(--ps-radius-pill);
  background: var(--ps-mean-attn); }
.ps-panel-page .ps-pane { padding: 0; overflow: visible; }
.ps-panel-page .ps-pane-h { margin: 28px 0 8px; font-family: var(--ps-font-display); font-size: var(--ps-size-20);
  font-weight: var(--ps-weight-light); }
@media (max-width: 700px) {
  .ps-panel { border-left: 0; }
  .ps-panel-head { padding: 14px 16px 8px; }
  .ps-tabs { padding: 0 8px; }
  .ps-pane { padding: 16px; }
  .ps-quick-field input, .ps-quick-field select { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-panel.is-opening, .ps-panel.is-closing { animation: none; }
}
/* ---- 2.3 S7: Plan in the frame (shell design v1 2.1 and 3.1; Will, 15 Nov 2026) --------------------
   Laid out as the demo's Now2 (its padding, 20px gaps, 36px headline on one line, 18px sentence). From 701px
   wide and 640px tall the page is the window's height and nothing scrolls: the headline on one line, one subtitle, the cash line the width of the page (as tall as the space
   left allows), the coming 60 days at the foot. Under that it is the ordinary page, stacked. */
.ps-plan .ps-sample-banner { margin: 0; padding: 4px 6px 4px 14px; }
.ps-plan .ps-sample-banner .ps-pill { height: 28px; }
.ps-plan-lead { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ps-plan-sub .ps-fig { font-family: var(--ps-font-display); font-weight: var(--ps-weight-light); }
.ps-plan-putby { margin: 0; }                  /* money put by for tax, one quiet line under the subtitle */
.ps-plan-putby .ps-fig { font-family: var(--ps-font-display); font-weight: var(--ps-weight-light); }
.ps-plan-stage { min-width: 0; }
.ps-start-sample { margin: 0; }
/* The lowest point as a flag on the line: the pole stands on the day, the rounded figure beside it on the
   chart's own cream; its colour is the lowest day's step (green to pink as cash nears the cushion). */
.ps-valley-flag { transform: translate(-1px, -100%); flex-direction: row; align-items: flex-end; }
.ps-valley-flaglink { display: inline-flex; align-items: flex-end; gap: 3px; padding-right: 4px;
  background: var(--ps-cream); text-decoration: none; }
.ps-valley-flag .ps-valley-mark { width: 12px; height: 15px; }
.ps-valley-flag .ps-flag-pole { stroke: var(--ps-low, var(--ps-near-5)); stroke-width: 1.2; fill: none; }
.ps-valley-flag .ps-flag-cloth { fill: var(--ps-low, var(--ps-near-5)); }
.ps-valley-flag .ps-valley-figure { font-family: var(--ps-font-display); font-weight: var(--ps-weight-light);
  font-size: var(--ps-size-14); line-height: 1; }
/* The plan's decisions (plan model design 3): a flag each on the chart at its start, green (information,
   the colour guide: green is normal, pink needs a look), its words on hover or focus; and a row each under
   the chart with "Take it out of my plan". */
.ps-decflag { position: absolute; transform: translate(-1px, -100%); z-index: 2; }
.ps-decflag-right { transform: translate(calc(-100% + 1px), -100%); }
.ps-decflag-btn { display: inline-flex; align-items: flex-end; gap: 4px; padding: 0 6px 0 0; font: inherit; font-size: var(--ps-size-12);
  white-space: nowrap; cursor: default; border: 0; color: var(--ps-mean-normal-ink); background: var(--ps-cream); }
.ps-decflag-right .ps-decflag-btn { flex-direction: row-reverse; padding: 0 0 0 6px; }
.ps-decflag-btn:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-decflag .ps-flag-mark { width: 12px; height: 15px; }
.ps-decflag-pole { stroke: var(--ps-mean-normal-ink); stroke-width: 1.2; fill: none; }
.ps-decflag-cloth { fill: var(--ps-mean-normal-ink); }
.ps-decflag-tip { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 3; width: max-content; max-width: 420px; padding: 6px 12px;
  font-size: var(--ps-size-13); line-height: 1.4; white-space: normal; color: var(--ps-ink); background: var(--ps-cream);
  border: 1px solid var(--ps-line); visibility: hidden; opacity: 0; }
.ps-decflag-right .ps-decflag-tip { left: auto; right: 0; }
.ps-decflag:hover .ps-decflag-tip, .ps-decflag:focus-within .ps-decflag-tip { visibility: visible; opacity: 1; }
.ps-chart-phone .ps-decflag-tip { max-width: 70vw; }
.ps-inplan { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ps-inplan h2 { margin: 0; }
.ps-inplan-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ps-inplan-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: var(--ps-size-14); }
.ps-inplan-words { flex: 1 1 320px; }
.ps-plan-notice { margin: 0 0 8px; }
.ps-plan .ps-coming { margin-top: 16px; }      /* clear of the phone's lowest-point flag */
/* The headline and the subtitle are one line each and never clipped (round 3): their fixed wording is
   short (now_page.plan_words) and their sizes step down with the width; under 1000px they may wrap. */
.ps-plan-sub { max-width: none; }
@media (max-width: 1399px) { .ps-plan-h { font-size: var(--ps-size-30); } .ps-plan-sub { font-size: var(--ps-size-17); } }
@media (max-width: 1179px) { .ps-plan-sub { font-size: var(--ps-size-15); } }
@media (max-width: 999px) { .ps-plan-h { font-size: var(--ps-size-24); } }
@media (min-width: 1000px) { .ps-plan-h, .ps-plan-sub { white-space: nowrap; } }
@media (max-width: 700px) {
  .ps-plan-h { font-size: var(--ps-size-24); }        /* NowPhone2: nothing above 24px */
  .ps-plan-sub { font-size: var(--ps-size-17); }
}
@media (min-width: 701px) and (min-height: 640px) {
  .ps-page.ps-fit { height: 100vh; height: 100dvh; min-height: 0; }
  .ps-fit .ps-plan { height: 100%; padding-bottom: 12px; }

  .ps-plan-stage { flex: 1 1 auto; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-start;
    container-type: size; }
  /* the line keeps its own shape (1376 by 440, charts.SIZES["plan"]) with the flags' rows under it: as wide as the page, unless
     the height left is too short for that; nothing blank between the chart and its flags */
  .ps-plan-stage > .ps-only-laptop { width: min(100%, calc(100cqh * 1376 / 440)); }
  .ps-plan-stage:has(.ps-pflags) > .ps-only-laptop { width: min(100%, calc((100cqh - 34px) * 1376 / 440)); }
  .ps-plan-stage:has(.ps-pflags-rows-2) > .ps-only-laptop { width: min(100%, calc((100cqh - 62px) * 1376 / 440)); }
  .ps-plan-stage:has(.ps-pflags-rows-3) > .ps-only-laptop { width: min(100%, calc((100cqh - 90px) * 1376 / 440)); }
  .ps-plan .ps-report { position: absolute; right: 16px; bottom: 4px; margin: 0; font-size: var(--ps-size-12); }
}

/* ---- Flows, round 2 (Will's notes of 15 Nov 2026): one view, the demo's dials, no scroll ---------
   Money2.dc.html: the month dial ("mdial") a 460 x 32 strip centred over the picture, the current
   period in Unbounded 15px and its neighbours fading to 0.6 and 0.4, the caption under it in tracked
   capitals; the zoom dial ("vdial") a 78px column in the page's left margin, Year, Quarter, Month, a
   30px row each. static/dial.js adds is-live; with no script both are rows of plain links. */
.ps-flows-view { position: relative; display: flex; flex-direction: column; gap: 14px; }
.ps-flows-lead { display: contents; }       /* round 3: the headline is for screen readers only */
.ps-flows-body { min-width: 0; }
.ps-flows-body.is-in { animation: ps-flows-in var(--ps-move-quick) var(--ps-ease) both; }
@keyframes ps-flows-in { from { opacity: 0; } to { opacity: 1; } }
.ps-flows .ps-flow { margin: 0; }
.ps-dial { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.ps-dial-time { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ps-dial-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ps-dial-cap { height: 16px; margin-top: 4px; font-size: var(--ps-size-11); letter-spacing: var(--ps-track-label-tight);
  text-transform: uppercase; color: var(--ps-ink-muted); white-space: nowrap; }
.ps-dial-sites { align-self: center; font-size: var(--ps-size-12); }
.ps-dial-sites-now { cursor: pointer; color: var(--ps-ink-muted); }
.ps-dial-sites .ps-cut-group { justify-content: center; }
/* the live dials */
.ps-dial.is-live .ps-dial-strip { position: relative; width: min(460px, 100%); height: 32px; overflow: hidden;
  border-bottom: 1px solid var(--ps-line-bold); user-select: none; cursor: grab; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.ps-dial.is-live .ps-dial-strip[hidden], .ps-dial-item[hidden] { display: none; }
.ps-dial.is-live .ps-dial-strip.is-drag { cursor: grabbing; }
.ps-dial.is-live .ps-dial-track { position: absolute; left: 50%; top: 0; height: 32px; flex-wrap: nowrap; gap: 0;
  align-items: center; justify-content: flex-start;
  transition: transform var(--ps-move-in-dial) var(--ps-ease); }
.ps-dial.is-live .is-drag .ps-dial-track { transition: none; }
.ps-dial.is-live .ps-dial-item { flex: 0 0 auto; min-height: 0; height: 32px; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--ps-ink); font-family: var(--ps-font-body); font-size: var(--ps-size-13);
  opacity: 0; white-space: nowrap; text-align: center;
  transition: font-size var(--ps-move-hover) ease, opacity var(--ps-move-hover) ease; }
.ps-dial.is-live .ps-dial-month .ps-dial-item { width: 92px; }
.ps-dial.is-live .ps-dial-quarter .ps-dial-item { width: 140px; }
.ps-dial.is-live .ps-dial-year .ps-dial-item { width: 120px; }
.ps-dial.is-live .ps-dial-day .ps-dial-item { width: 72px; }      /* Flows' Day zoom (Will, 17 Nov 2026) */
.ps-dial.is-live .ps-dial-item.is-near { opacity: 0.6; }
.ps-dial.is-live .ps-dial-item.is-far { opacity: 0.4; }      /* five steps: the period and two each side */
.ps-dial.is-live .ps-dial-item[aria-current="true"] { opacity: 1; font-family: var(--ps-font-display);
  font-size: var(--ps-size-15); background: transparent; color: var(--ps-ink); }
.ps-dial.is-live .ps-dial-item:hover { opacity: 1; }
.ps-dial.is-live .ps-dial-item:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: -4px; }
.ps-dial.is-live .ps-dial-zoom { position: absolute; left: -80px; top: 96px; width: 78px; height: 180px; overflow: hidden;
  border-right: 1px solid var(--ps-line-bold); box-sizing: border-box; user-select: none; cursor: grab;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.ps-dial.is-live .ps-dial-zoom .ps-dial-track { left: 0; right: 0; top: 50%; height: auto; flex-direction: column;
  align-items: stretch; }
.ps-dial.is-live .ps-dial-zoom .ps-dial-item { width: auto; height: 30px; justify-content: flex-end; padding-right: 9px;
  font-size: var(--ps-size-12); }
.ps-dial.is-live .ps-dial-zoom .ps-dial-item[aria-current="true"] { font-size: var(--ps-size-13); }
/* the sites (not in the demo, which has one shop; only for more than one site): a small selector in
   the same margin, under the zoom dial, its current site in muted words; open, a short list */
.ps-dial.is-live .ps-dial-sites { position: absolute; left: -80px; top: 288px; width: 78px; box-sizing: border-box;
  padding-right: 9px; text-align: right; font-size: var(--ps-size-11); }
.ps-dial.is-live .ps-dial-sites-now { list-style: none; min-height: 24px; line-height: 24px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ps-dial.is-live .ps-dial-sites-now::-webkit-details-marker { display: none; }
.ps-dial.is-live .ps-dial-sites-now::after { content: " \25BE"; }
.ps-dial.is-live .ps-dial-sites-now:hover { color: var(--ps-ink); }
.ps-dial.is-live .ps-dial-sites .ps-cut-group { flex-direction: column; align-items: stretch; gap: 0; }
.ps-dial.is-live .ps-dial-sites .ps-cut-link { justify-content: flex-end; min-height: 24px; padding: 0; border: 0;
  border-radius: 0; background: transparent; color: var(--ps-ink); font-size: var(--ps-size-11); opacity: 0.6;
  white-space: nowrap; }
.ps-dial.is-live .ps-dial-sites .ps-cut-link[aria-current="true"] { opacity: 1; }
.ps-dial.is-live .ps-dial-sites .ps-cut-link:hover { opacity: 1; }
/* no scroll at 1280 x 720 and up (shell design v2, 8), and the picture as large as the window allows
   (Will, round 3: no header; the diagram dominates): on a laptop the page is the window's height and
   the picture takes every pixel left under the dials, its ribbons drawn taller (the labels are
   placed in percentages, so they move with them; strokes keep their width) */
@media (min-width: 701px) {
  /* Will, 17 Nov 2026: a chosen day keeps the Sankey, with the day's list under it, scrolling inside itself */
  .ps-flows .ps-flows-body.is-day .ps-flow.ps-only-laptop { flex: 3 1 0; min-height: 240px; }
  .ps-flows .ps-flows-body.is-day .ps-ledger { flex: 2 1 0; }
  .ps-main.ps-flows { height: 100vh; min-height: 560px; }
  .ps-flows .ps-flows-view { flex: 1 1 auto; min-height: 0; }
  .ps-flows .ps-flows-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ps-flows .ps-flow.ps-only-laptop { display: flex; flex: 1 1 auto; min-height: 320px; }
  .ps-flows .ps-flow-box { flex: 1 1 auto; }
  .ps-flows .ps-flow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .ps-flows .ps-flow-svg * { vector-effect: non-scaling-stroke; }
  /* Will, 17 Nov 2026: the zoom dial sits at the vertical middle of the page, in the left margin; the view
     (the window's height under the bar) is what it is placed in, the sites just under it */
  .ps-flows .ps-dial.is-live { position: static; }
  .ps-flows .ps-dial.is-live .ps-dial-zoom { top: calc(50% - 110px); }   /* the view starts under the bar: 20px up puts the wheel at the page's middle */
  .ps-flows .ps-dial.is-live .ps-dial-sites { top: calc(50% + 82px); }
}
/* the bars' heads are the money in and out themselves (round 3), as Money2's totals over the bars */
.ps-flow-head { position: absolute; top: 0; font-size: var(--ps-size-13); color: var(--ps-ink-muted); white-space: nowrap; }
.ps-flow-head .ps-flow-head-amount { font-family: var(--ps-font-display); font-size: var(--ps-size-14);
  font-weight: var(--ps-weight-regular); color: var(--ps-ink); }
.ps-flow-head-left { transform: translateX(-100%); text-align: right; }
.ps-flow-band.is-chosen .ps-flow-ribbon { fill-opacity: 0.75; }
.ps-flow-band.is-chosen .ps-flow-node { stroke-width: 2; }
.ps-flow-item.is-chosen { font-weight: 600; }
/* the table for screen readers is never drawn on Flows: the picture, or the phone's list, says it (text diet) */
/* Read aloud, never drawn: a table keeps its rows' height whatever its own, so it is a 1px block at the
   top of the view, or its rows hang below the page and scroll it (Flows at 390, sample, 16 Nov 2026). */
.ps-flows .ps-flow-table { position: absolute; top: 0; left: 0; display: block; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .ps-dial.is-live .ps-dial-zoom { position: static; width: auto; height: auto; overflow: visible; border-right: 0;
    -webkit-mask-image: none; mask-image: none; }
  .ps-dial.is-live .ps-dial-zoom .ps-dial-track { position: static; flex-direction: row; transform: none; gap: 18px; }
  .ps-dial.is-live .ps-dial-zoom .ps-dial-item { height: 44px; padding: 0 4px; justify-content: center; }
  .ps-dial.is-live .ps-dial-strip { height: 44px; }
  .ps-dial.is-live .ps-dial-time .ps-dial-track, .ps-dial.is-live .ps-dial-time .ps-dial-item { height: 44px; }
  .ps-dial.is-live .ps-dial-sites { position: static; width: auto; flex-direction: row; justify-content: center;
    border-right: 0; gap: 14px; }
  .ps-dial.is-live .ps-dial-sites .ps-cut-link { min-height: 44px; padding: 0 4px; }
  .ps-flow-phone .ps-flow-list a.ps-flow-item { display: flex; padding-block: 0; margin-block: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-dial-track, .ps-dial-item { transition: none; }
  .ps-flows-body.is-in { animation: none; }
}

/* One card, no fan (Will, 16 Nov): the lever and its four choices are gone from view; drill.js shows the
   server's cards as one. The lever's rules above stay for the no-script page. */
.ps-drill .ps-drill-lever-sheet { display: none; }
.ps-drill-one h2 { display: none; }
.ps-drill-lead { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--ps-line); }
.ps-drill-lead p { margin: 0; }
.ps-drill-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }

/* Flows' closing sentence and day ledger (evening run 1, 17 Nov; the demo's Money2). Will's answer 1 (17 Nov):
   the picture fills the window, with the sentence and a quiet "Day by day" pill under it; a chosen day's
   ledger takes the picture's place, on a laptop and on a phone alike, with "Back to <month>" between the
   day before and the day after. On a laptop a long day scrolls inside the ledger, never the page. */
.ps-flows-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
  margin-top: 6px; }
.ps-flows-closing { flex: 1 1 320px; margin: 0; max-width: 1080px; font-size: var(--ps-size-17); line-height: 1.45; }
.ps-flows-days { flex: 0 0 auto; }
.ps-ledger { display: flex; flex-direction: column; width: 100%; max-width: 720px; margin: 8px auto 0; }
.ps-ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px;
  border-bottom: 1px solid var(--ps-ink); }
.ps-ledger-head .ps-label { margin: 0; }
.ps-ledger-note { display: inline-flex; align-items: center; gap: 10px; font-size: var(--ps-size-13); color: var(--ps-ink-muted); }
.ps-chip-fc { display: inline-flex; align-items: center; height: 18px; padding: 0 9px; border: 1px dashed var(--ps-green);
  border-radius: var(--ps-radius-pill); font-size: var(--ps-size-11); line-height: 1; color: var(--ps-mean-normal-ink); }
.ps-ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; column-gap: 16px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--ps-line); font-size: var(--ps-size-15); }
.ps-ledger-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ps-ledger-way { font-size: var(--ps-size-12); color: var(--ps-ink-muted); text-transform: uppercase; letter-spacing: .12em; }
.ps-ledger-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ps-ledger-total { border-bottom: 0; border-top: 1px solid var(--ps-ink); margin-top: -1px; }
.ps-ledger-total .ps-figure { font-weight: var(--ps-weight-regular); }
.ps-ledger-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding-top: 12px; }
.ps-ledger-prev { grid-column: 1; justify-self: start; }
.ps-ledger-back { grid-column: 2; justify-self: center; }
.ps-ledger-next { grid-column: 3; justify-self: end; }
@media (min-width: 701px) {
  .ps-flows .ps-flows-body.is-day .ps-ledger { flex: 1 1 auto; min-height: 0; }
  .ps-flows .ps-flows-body.is-day .ps-ledger-rows { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
}
@media (max-width: 700px) {
  .ps-ledger-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ps-ledger-back { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; justify-content: center; }
  .ps-ledger-prev { grid-column: 1; grid-row: 2; max-width: 100%; }
  .ps-ledger-next { grid-column: 2; grid-row: 2; max-width: 100%; }
  .ps-ledger-prev, .ps-ledger-next { white-space: normal; text-align: center; }
}

/* Item A (Will, 17 Nov 2026): the AI at work on Explore's typed question and Decide's "What's on your mind?".
   Three small deep-green dots that fade in turn, and one short line of the server's words, where the answer will
   be said. Drawn out of the flow and hidden until a request is in flight, so nothing moves when it shows; the
   lines it stands over are hidden meanwhile. No spinner and no pink. Less motion (the system's or the Controls'
   "still"): the words with the dots held still. */
.ps-thinking { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ps-ink); visibility: hidden;
  pointer-events: none; white-space: nowrap; }
.is-thinking .ps-thinking { visibility: visible; }
.ps-dots { display: inline-flex; align-items: center; gap: 5px; }
.ps-dots > span { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ps-mean-normal-ink);
  opacity: 0.3; }
.ps-ex-box[data-thinking] { position: relative; }
.ps-ex-box > .ps-thinking { position: absolute; left: 0; bottom: 0; font-size: var(--ps-size-15); line-height: 1.5; }
.ps-ex-box.is-thinking > #ex-hint { visibility: hidden; }
.ps-dsearch-row { position: relative; }
.ps-dsearch-row > .ps-thinking { position: absolute; left: 0; top: calc(100% + 10px); font-size: var(--ps-size-14);
  line-height: 1.3; }
.ps-dbody.is-thinking .ps-dsearch > .ps-dsaid, .ps-dbody.is-thinking .ps-dsearch > .ps-dcompare,
.ps-dbody.is-thinking .ps-dcar-head { visibility: hidden; }
.ps-dbody.is-thinking .ps-dcards { opacity: 0.45; }
@keyframes ps-dot { 0%, 70%, 100% { opacity: 0.3; } 35% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .is-thinking .ps-dots > span { animation: ps-dot 1.4s ease-in-out infinite; }
  .is-thinking .ps-dots > span:nth-child(2) { animation-delay: 0.22s; }
  .is-thinking .ps-dots > span:nth-child(3) { animation-delay: 0.44s; }
}
@media (prefers-reduced-motion: reduce) { .ps-dots > span, .is-thinking .ps-dots > span { animation: none; opacity: 1; } }
body:has(.ps-topbar.is-still) .ps-dots > span { opacity: 1; }
