:root{--color-ground:#F5F7F3;--color-surface:#FFFFFF;--color-ink:#16233B;--color-ink-secondary:#50625C;--color-accent:#1E6B4A;--color-on-accent:#FFFFFF;--color-on-ink:#FFFFFF;--color-track:#D9E0EA;--color-rule:#16233B;--color-alert-ground:#FDECEA;--color-alert:#B3261E;--color-attention-ground:#FFF4D6;--color-hairline:#D6DFD6;--color-hairline-soft:#EEF1F6;--color-neutral-tint:#EDF2EB;--color-cost:#5E6E8C;--color-mark-pane:#9AA5B4;--color-print-ink:#000000;--font-product:Lexend, system-ui, sans-serif;--font-heading:Bitter, Georgia, serif;--weight-400:400;--weight-600:600;--weight-700:700;--text-scale:1;--type-screen-title:calc(1.125rem * var(--text-scale));--type-page-title-site:calc(2rem * var(--text-scale));--type-section-label:calc(0.8125rem * var(--text-scale));--type-body:calc(0.9375rem * var(--text-scale));--type-body-large:calc(1rem * var(--text-scale));--type-figure:calc(1.125rem * var(--text-scale));--type-figure-large:calc(1.375rem * var(--text-scale));--type-minimum:calc(0.8125rem * var(--text-scale));--type-nav-label:calc(0.75rem * var(--text-scale));--line-title:1.15;--line-body:1.45;--space-4:4px;--space-8:8px;--space-10:10px;--space-12:12px;--space-14:14px;--space-16:16px;--space-18:18px;--space-20:20px;--space-24:24px;--space-28:28px;--radius-card:12px;--radius-button:10px;--radius-pill:18px;--radius-chip:10px;--border-strong:2px;--border-light:1.5px;--size-touch-min:44px;--size-header-max:52px;--area-money-tint:#E2F0E7;--area-money-mid:#BFE0CF;--area-money-text:#14543A;--area-money-accent:#1E6B4A;--area-faults-tint:#FAEAD2;--area-faults-text:#754315;--area-faults-accent:#A55B18;--area-calendar-tint:#DEEDF4;--area-calendar-text:#235773;--area-calendar-accent:#337395;--area-decisions-tint:#ECE8F9;--area-decisions-text:#4A4085;--area-decisions-accent:#6356A5;--area-notices-tint:#F4E4EC;--area-notices-text:#79365C;--area-notices-accent:#A14B79;--area-alert-tint:#FFF0E8;--area-alert-border:#E4BCAB;--area-alert-text:#8A3522;--area-alert-accent:#A53F29;--status-emergency-ground:#FFF0E8;--status-emergency-text:#8A3522;--status-waiting-ground:#FAEAD2;--status-waiting-text:#754315;--status-new-ground:#DEEDF4;--status-new-text:#235773;--status-done-ground:#E2F0E7;--status-done-text:#14543A;--status-closed-ground:#EDF2EB;--status-closed-text:#50625C;--area-tint:var(--color-neutral-tint);--area-text:var(--color-ink);--area-accent:var(--color-ink);}:root[data-text-size="larger"]{--text-scale:1.2;}@font-face{font-family:"Lexend";font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/lexend-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:"Lexend";font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/lexend-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:"Bitter";font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/bitter-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:"Bitter";font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/bitter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}/* The product's stylesheet: the application's design of record (ADR-0011), ported in
   build task B-060 (CHAIN-5, ADR-0011).
   ONE SOURCE FOR THE DEMO AND THE APPLICATION. This file is edited in demo/src/styles.css; app/web/src/styles.css
   is its copy (node app/scripts/sync-look.mjs), which the application's build and a test in each suite compare.
   What changed from the design's file, and nothing else:
   - the fonts (Lexend and Bitter, self-hosted as the design ships them) are declared by the builds, from design/tokens.json;
   - the design's custom properties are kept; where a token means the same thing, the property reads the token's variable
     (generated by app/web/look.mjs), and the token holds the design's value;
   - the colours the design typed inside its rules are custom properties of the same block (named --c-<where>-<what>), and
     the font families it typed inside rules are its two family properties (--sans, --serif);
   - the widths of the media queries are in em, at the breakpoints of design/tokens.json (app.breakpoint-em);
   - the root size follows the person's text-size setting (--text-scale); everything else is in rem;
   - the mark is inline SVG (.brand .mark) where the design has an image;
   - the screen's title, focused by the frame after each screen is drawn, shows no focus ring (as before B-060);
   - the demo's buttons that stand for the design's links take a link's plain ground (:where(button.nav-link, ...)). */
:root {
  color-scheme: light;
  --green: var(--color-accent);
  --green-dark: #114a36;
  --hero: #154d3a;
  --mark: var(--color-mark-pane);
  --ink: var(--color-ink);
  --muted: var(--color-ink-secondary);
  --ground: var(--color-ground);
  --surface: var(--color-surface);
  --line: var(--color-hairline);
  --control: #798880;
  --soft: var(--color-neutral-tint);
  --focus: #1552a1;
  --money-bg: var(--area-money-tint);
  --money-text: var(--area-money-text);
  --money-accent: var(--area-money-accent);
  --fault-bg: var(--area-faults-tint);
  --fault-text: var(--area-faults-text);
  --fault-accent: var(--area-faults-accent);
  --cal-bg: var(--area-calendar-tint);
  --cal-text: var(--area-calendar-text);
  --cal-accent: var(--area-calendar-accent);
  --vote-bg: var(--area-decisions-tint);
  --vote-text: var(--area-decisions-text);
  --vote-accent: var(--area-decisions-accent);
  --news-bg: var(--area-notices-tint);
  --news-text: var(--area-notices-text);
  --news-accent: var(--area-notices-accent);
  --alert-bg: var(--area-alert-tint);
  --alert-text: var(--area-alert-text);
  --alert-accent: var(--area-alert-accent);
  --error: #982e27;
  --error-bg: #fff0ed;
  --sans: var(--font-product);
  --serif: var(--font-heading);
  --xs: .25rem;
  --s: .5rem;
  --m: .75rem;
  --l: 1rem;
  --xl: 1.5rem;
  --xxl: 2rem;
  --r-sm: .58rem;
  --r: .875rem;
  --r-lg: 1.25rem;
  --shadow: 0 2px 5px #203b2a07;
  --hit: 2.75rem;
  --rail: 14.5rem;
  --bottom: 4.35rem;
  --pad: clamp(1rem, 3.1vw, 2.75rem);
  --on-dark: var(--color-on-accent);
  --print-ink: var(--color-print-ink);
  --c-demo-line-color: #485e50;
  --c-demo-line-before-border: #65836c;
  --c-nav-link-color: #4d5d56;
  --c-tone-base---tone: #425b4c;
  --c-tone-base---accent: #78917e;
  --c-hero-eyebrow-color: #d2e8d7;
  --c-hero-intro-color: #ecf2ed;
  --c-chevron-color: #62756a;
  --c-alert-card-border: #e4bcab;
  --c-alert-card-tile-icon-bg: #f5d4c4;
  --c-alert-card-summary-color: #713e32;
  --c-setup-bg: #ebf1e9;
  --c-setup-border: #cbdacb;
  --c-button-disabled-button-disab-bg: #e3e8e3;
  --c-button-disabled-button-disab-color: #526058;
  --c-button-disabled-button-disab-border: #aab5aa;
  --c-input-placeholder-textarea-p-color: #66746d;
  --c-drop-zone-bg: #f7f9f5;
  --c-action-bar-shadow: #173c2610;
  --c-money-table-thead-th-bg: #f0f4ef;
  --c-money-hero-border: #b8d2c1;
  --c-dialog-shadow: #10281a35;
  --c-dialog-backdrop-bg: #11271e80;
  --c-rail-bg: #edf2eb;
  --c-rail-border: #cdd9cf;
  --c-rail-nav-link-aria-current-shadow: #102e1710;
  --c-rail-foot-border: #ccd8ce;
  --c-rail-foot-tile-icon-bg: #dce9df;
  --c-report-high-border: #e1b8a4;
  --c-drop-zone-border: #728779;
  --c-drop-zone-bg-2: #f5f8f5;
  --c-workscreen-progress-bg: #e5e4ed;
  --c-vote-row-v0---accent: #5c4c9b;
  --c-vote-row-v1---accent: #846547;
  --c-vote-row-v2---accent: #606d78;
  --c-date-tile-border: #c5dce6;
  --c-route-steps-li-not-last-chil-border: #a8b9ac;
  --c-step-dot-border: #819388;
  --c-paper-border: #bbc6bd;
  --c-paper-color: #17251c;
  --c-paper-shadow: #213c2710;
  --c-paper-mast-border: #16271b;
  --c-paper-footer-border: #c8cec9;
  --c-paper-footer-color: #49534c;
  --c-work-form-data-form2-vote-ch-border: #a5a0b4
}

* {
  box-sizing: border-box}

html {
  scroll-padding: 1rem;
  font: calc(100% * var(--text-scale))/1.48 var(--sans);
  color: var(--ink);
  background: var(--ground)}

body {
  margin: 0;
  font-weight: 400}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit}

a,
button,
label,
summary {
  -webkit-tap-highlight-color: transparent}

a {
  color: var(--green-dark);
  text-decoration-thickness: .09em;
  text-underline-offset: .18em}

button,
summary,
select {
  cursor: pointer}

a,
button,
summary {
  touch-action: manipulation}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure,
dl,
dd,
fieldset {
  margin: 0}

ul,
ol {
  padding: 0;
  list-style: none}

fieldset {
  min-width: 0;
  border: 0;
  padding: 0}

legend {
  padding: 0}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  overflow-wrap: anywhere}

h1 {
  font: 620 clamp(1.9rem, 4vw, 3.05rem)/1.09 var(--serif);
  letter-spacing: -.043em}

h2 {
  font-size: 1.22rem;
  letter-spacing: -.038em;
  font-weight: 640}

h3,
legend,
.field-title {
  font-size: 1.01rem;
  font-weight: 610;
  letter-spacing: -.018em}

strong,
b {
  font-weight: 620}

small,
.small {
  font-size: .835rem;
  line-height: 1.48}

.muted,
.small-note {
  color: var(--muted)}

.small-note {
  font-size: .85rem}

.icon {
  display: block;
  flex: none;
  width: 1.26rem;
  height: 1.26rem}

.icon.sm {
  width: 1rem;
  height: 1rem}

[hidden] {
  display: none !important}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: 0}

.skip,
.sr {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap}

.skip:focus {
  z-index: 15;
  clip-path: none;
  top: .4rem;
  left: .4rem;
  height: auto;
  width: auto;
  padding: .8rem;
  background: var(--surface);
  border-radius: .5rem}

.shell {
  min-height: 100vh}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line)}

.top-inner,
.wrap {
  max-width: 78rem;
  margin: auto;
  padding-inline: var(--pad)}

.top-inner {
  min-height: 3.65rem;
  display: flex;
  align-items: center;
  gap: .6rem}

.brand {
  display: inline-flex;
  gap: .49rem;
  align-items: center;
  color: var(--ink);
  font-size: 1.53rem;
  line-height: 1;
  font-weight: 620;
  letter-spacing: -.075em;
  text-decoration: none;
  min-height: var(--hit)}

.brand img,
.brand .mark {
  width: 1.24rem;
  height: 1.54rem}

.top-path {
  display: none;
  color: var(--muted);
  font-size: .88rem;
  gap: .65rem;
  align-items: center}

.top-tools {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto}

.demo-line {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: var(--c-demo-line-color);
  font-size: .72rem;
  white-space: nowrap}

.demo-line:before {
  content: "";
  width: .4rem;
  height: .4rem;
  border: 1.5px solid var(--c-demo-line-before-border);
  border-radius: 100%}

.icon-btn,
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--hit);
  min-height: var(--hit);
  padding: .45rem;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none}

.avatar span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--money-bg);
  color: var(--green-dark);
  font-size: .81rem;
  font-weight: 620}

.icon-btn:hover,
.avatar:hover,
.nav-link:hover,
.shortcut:hover,
.row-link:hover,
.metric:hover,
.button.text:hover {
  background: var(--soft)}

.rail {
  display: none}

.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 5;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: .25rem .35rem calc(.25rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: .15rem}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 3.38rem;
  min-width: var(--hit);
  flex: 1 1 0;
  max-width: 8.5rem;
  flex-direction: column;
  padding: .25rem .08rem;
  border-radius: .65rem;
  color: var(--c-nav-link-color);
  text-decoration: none;
  font-size: .69rem;
  line-height: 1.2;
  font-weight: 470}

.nav-link[aria-current] {
  background: var(--tone-bg, var(--money-bg));
  color: var(--tone, var(--money-text));
  font-weight: 640}

.nav-link[aria-current]::before {
  content: "";
  position: absolute;
  top: -.24rem;
  height: 3px;
  width: 1.35rem;
  border-radius: 0 0 3px 3px;
  background: currentColor}

.wrap {
  padding-block: 1.05rem calc(var(--bottom) + 1.3rem + env(safe-area-inset-bottom));
  min-width: 0}

.tone-fault {
  --tone-bg: var(--fault-bg);
  --tone: var(--fault-text);
  --accent: var(--fault-accent)}

.tone-money,
.tone-home {
  --tone-bg: var(--money-bg);
  --tone: var(--money-text);
  --accent: var(--green)}

.tone-vote {
  --tone-bg: var(--vote-bg);
  --tone: var(--vote-text);
  --accent: var(--vote-accent)}

.tone-cal {
  --tone-bg: var(--cal-bg);
  --tone: var(--cal-text);
  --accent: var(--cal-accent)}

.tone-news {
  --tone-bg: var(--news-bg);
  --tone: var(--news-text);
  --accent: var(--news-accent)}

.tone-alert {
  --tone-bg: var(--alert-bg);
  --tone: var(--alert-text);
  --accent: var(--alert-accent)}

.tone-base {
  --tone-bg: var(--soft);
  --tone: var(--c-tone-base---tone);
  --accent: var(--c-tone-base---accent)}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero);
  border-radius: var(--r-lg);
  color: var(--on-dark);
  padding: 1.05rem 1.1rem 1.15rem;
  min-height: 8.2rem;
  display: flex;
  align-items: center}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0}

.hero .eyebrow {
  color: var(--c-hero-eyebrow-color)}

.hero h1 {
  margin: .28rem 0 .4rem;
  font-size: clamp(2.18rem, 5.1vw, 3.9rem);
  color: var(--on-dark)}

.hero .intro {
  color: var(--c-hero-intro-color);
  max-width: 44ch;
  font-size: .92rem}

.scene {
  position: absolute;
  right: -1%;
  bottom: -2px;
  height: 99%;
  width: 44%;
  object-fit: contain;
  object-position: bottom right;
  z-index: -1;
  pointer-events: none}

.eyebrow {
  font-size: .69rem;
  line-height: 1.45;
  letter-spacing: .095em;
  text-transform: uppercase;
  font-weight: 630;
  color: var(--tone, var(--muted));
  display: flex;
  align-items: center;
  gap: .43rem}

.page-head {
  display: grid;
  gap: .45rem;
  margin: .35rem 0 1.25rem}

.page-head .eyebrow {
  margin-bottom: .15rem}

.intro {
  color: var(--muted);
  font-size: .94rem;
  max-width: 65ch}

.page-head.with-tone {
  border-left: 4px solid var(--accent);
  padding-left: 1rem}

.overview {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.15rem;
  align-items: start}

.stack,
.column,
.section {
  display: grid;
  gap: .8rem;
  align-content: start;
  min-width: 0}

.column {
  gap: 1.35rem}

.section {
  gap: .65rem}

.sec-head {
  display: flex;
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap}

.section-tag {
  font-size: .77rem;
  color: var(--muted)}

.panel,
.list,
.tile-grid,
.metrics,
.money-table-wrap,
.group,
.option-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  min-width: 0}

.panel,
.option-panel {
  padding: 1rem}

.panel>h2,
.panel>h3 {
  margin-bottom: .7rem}

.panel>p+p {
  margin-top: .55rem}

.list,
.tile-grid,
.metrics,
.group {
  overflow: clip}

.row-link,
.shortcut,
.metric {
  display: flex;
  color: var(--ink);
  text-decoration: none;
  align-items: center;
  min-height: var(--hit);
  min-width: var(--hit)}

.row-link {
  width: 100%;
  padding: .7rem .85rem;
  gap: .72rem;
  text-align: left;
  background: var(--surface);
  border: 0;
  line-height: 1.35}

.list>.row-link+.row-link,
.list>li+li,
.plain-row+.plain-row {
  border-top: 1px solid var(--line)}

.tile-icon {
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  background: var(--tone-bg, var(--soft));
  color: var(--tone, var(--green-dark));
  border-radius: .68rem;
  display: grid;
  place-items: center}

.row-copy {
  display: grid;
  gap: .16rem;
  flex: 1;
  min-width: 0}

.row-copy strong {
  font-size: .94rem}

.row-copy small {
  color: var(--muted);
  font-size: .79rem}

.chevron {
  width: .97rem;
  height: .97rem;
  flex: none;
  color: var(--c-chevron-color)}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .22rem}

.shortcut {
  gap: .58rem;
  line-height: 1.32;
  font-size: .84rem;
  font-weight: 540;
  padding: .55rem .45rem;
  border-radius: .5rem}

.shortcut .tile-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .45rem}

.shortcut .icon {
  width: 1.02rem;
  height: 1.02rem}

/* B-068 (the UX review of 2026-11-21, finding 06): the figures follow the width of their own section, not the window. Each takes at
   least the width of its value (never broken) and room for its label; the row breaks only where they do not fit. Laid out from the last to the first
   and the rows stacked upwards, a break leaves the first figure (the balance) alone on the first row and the other two
   side by side under it while they fit; the order a reader and the keyboard meet them stays the order of the page. The
   separators are each figure's top and left edge, pulled under the box's own edge where a figure starts a row. */
.metrics {
  display: flex;
  flex-flow: row-reverse wrap-reverse}

.metric {
  flex: 1 1 8rem;
  min-width: min-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: .75rem .62rem;
  gap: .22rem;
  margin: -1px 0 0 -1px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line)}

.metric:nth-child(1) {
  order: 3}

.metric:nth-child(2) {
  order: 2}

.metric:nth-child(3) {
  order: 1}

.metric strong,
.amount,
.number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em}

.metric strong {
  white-space: nowrap;
  font-size: clamp(1.14rem, 2.4vw, 1.65rem);
  line-height: 1.23;
  color: var(--tone, var(--green-dark))}

.metric span {
  font-size: .734rem;
  line-height: 1.4;
  color: var(--muted)}

.metric .icon {
  margin-bottom: .2rem;
  color: var(--tone, var(--green))}

.alert-card {
  background: var(--alert-bg);
  border: 1px solid var(--c-alert-card-border);
  border-left: 4px solid var(--alert-accent);
  border-radius: var(--r);
  display: flex;
  align-items: flex-start;
  padding: .85rem .9rem;
  gap: .72rem;
  color: var(--ink);
  text-decoration: none}

.alert-card .tile-icon {
  background: var(--c-alert-card-tile-icon-bg);
  color: var(--alert-text);
  width: 2.35rem;
  height: 2.35rem}

.alert-card h2 {
  font-size: 1.08rem;
  margin: .2rem 0}

.alert-card .summary {
  font-size: .82rem;
  color: var(--c-alert-card-summary-color)}

.alert-card .chevron {
  margin-left: auto;
  align-self: center;
  color: var(--alert-text)}

.alerts:not(:empty) {
  display: grid;
  gap: .6rem;
  margin-top: .9rem}

.setup {
  background: var(--c-setup-bg);
  border: 1px solid var(--c-setup-border);
  border-radius: var(--r);
  padding: 1rem;
  display: grid;
  gap: .35rem}

.setup h2 {
  font-size: 1.03rem}

.setup .foot,
.spread {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap}

.setup p {
  font-size: .84rem;
  color: var(--muted)}

.button,
.text-link,
summary {
  display: inline-flex;
  min-width: var(--hit);
  min-height: var(--hit);
  align-items: center;
  justify-content: center;
  gap: .5rem}

.button {
  border: 1px solid var(--control);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  padding: .62rem .95rem;
  line-height: 1.32;
  font-size: .91rem;
  font-weight: 555;
  text-align: center}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-dark)}

.button.primary:hover {
  background: var(--green-dark)}

.button.secondary {
  border-color: var(--green);
  color: var(--green-dark)}

.button.secondary:hover {
  background: var(--soft)}

.button.danger {
  background: var(--error);
  border-color: var(--error);
  color: var(--on-dark)}

.button.text,
.text-link {
  background: transparent;
  border: 0;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: .18em;
  font-size: .85rem;
  font-weight: 540;
  padding: .3rem .22rem}

.button:active,
.row-link:active,
.shortcut:active,
.nav-link:active,
.chip:active {
  box-shadow: inset 0 0 0 2px currentColor}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  background: var(--c-button-disabled-button-disab-bg);
  color: var(--c-button-disabled-button-disab-color);
  border-color: var(--c-button-disabled-button-disab-border)}

.actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: center}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  vertical-align: middle;
  font-size: .75rem;
  line-height: 1.4;
  padding: .21rem .52rem;
  border-radius: 2rem;
  font-weight: 570;
  background: var(--tone-bg, var(--soft));
  color: var(--tone, var(--muted));
  white-space: normal}

.badge::before {
  content: "";
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
  background: currentColor;
  flex: none}

.pair-list>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .67rem 0;
  border-bottom: 1px solid var(--line)}

.pair-list>div:last-child {
  border: 0}

.pair-list dt {
  color: var(--muted);
  font-size: .86rem}

.pair-list dd {
  text-align: right;
  font-weight: 550;
  overflow-wrap: anywhere;
  font-size: .91rem}

.callout,
.success,
.error,
.empty {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .85rem;
  border-radius: var(--r-sm);
  color: var(--tone, var(--muted));
  background: var(--tone-bg, var(--soft));
  font-size: .86rem}

.success {
  color: var(--money-text);
  background: var(--money-bg)}

.error {
  color: var(--error);
  background: var(--error-bg)}

.callout>.icon,
.success>.icon,
.empty>.icon {
  margin-top: .05rem}

.callout a,
.empty a {
  color: inherit}

.disclosure {
  border-top: 1px solid var(--line)}

summary {
  display: flex;
  list-style: none;
  justify-content: space-between;
  text-align: left;
  font-weight: 550;
  font-size: .9rem;
  padding: .5rem 0;
  min-height: var(--hit)}

summary::-webkit-details-marker {
  display: none}

summary:after {
  content: "";
  width: .57rem;
  height: .57rem;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  margin: 0 .32rem .25rem 1rem}

details[open]>summary:after {
  transform: rotate(225deg);
  margin-top: .55rem}

details>div {
  padding: .25rem 0 .8rem}

.field {
  display: grid;
  gap: .38rem}

.field label,
.field-title {
  font-size: .89rem;
  font-weight: 570}

.fields {
  display: grid;
  gap: .95rem}

input:not([type=radio], [type=checkbox], [type=file]),
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--hit);
  border: 1px solid var(--control);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: .64rem .75rem;
  font-size: 1rem}

textarea {
  resize: vertical}

input::placeholder,
textarea::placeholder {
  color: var(--c-input-placeholder-textarea-p-color)}

input[type=file] {
  display: block;
  max-width: 100%;
  width: 100%;
  margin-top: .45rem;
  font-size: .82rem}

input::file-selector-button {
  min-height: var(--hit);
  min-width: var(--hit);
  padding: .4rem .7rem;
  margin-right: .6rem;
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: .5rem;
  font: inherit;
  color: var(--green-dark)}

[aria-invalid=true] {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 1px var(--error)}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem}

.chip {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: var(--hit);
  min-width: var(--hit);
  border: 1px solid var(--control);
  border-radius: .68rem;
  padding: .48rem .72rem;
  background: var(--surface);
  cursor: pointer;
  font-size: .9rem;
  text-align: center}

.chip:has(:checked),
.chip[aria-pressed=true] {
  color: var(--green-dark);
  background: var(--money-bg);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green)}

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer}

.chip:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px}

.chip:has(:checked)::after {
  content: "✓";
  font-weight: 700}

.drop-zone {
  padding: .85rem;
  border: 1px dashed var(--control);
  border-radius: var(--r-sm);
  background: var(--c-drop-zone-bg)}

.drop-zone.dragging {
  border-color: var(--green);
  background: var(--money-bg)}

.progress-steps {
  display: flex;
  gap: .33rem;
  margin: .4rem 0 1rem}

.progress-steps i {
  height: .3rem;
  flex: 1;
  border-radius: 4px;
  background: var(--line)}

.progress-steps .done {
  background: var(--green)}

.action-bar {
  position: sticky;
  bottom: calc(var(--bottom) + env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: .63rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 -3px 12px var(--c-action-bar-shadow)}

.action-bar .primary {
  flex: 1}

.action-bar.in-flow {
  position: static}

/* B-068: a group brought to the top by its command keeps its heading's focus ring in view. */
details[data-group] {
  scroll-margin-top: .75rem}

.money-table-wrap {
  overflow: hidden}

.money-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .88rem;
  font-variant-numeric: tabular-nums}

.money-table caption {
  text-align: left;
  font-weight: 630;
  padding: .9rem}

.money-table th,
.money-table td {
  padding: .7rem;
  border-top: 1px solid var(--line);
  vertical-align: top}

.money-table thead th {
  color: var(--muted);
  font-size: .77rem;
  background: var(--c-money-table-thead-th-bg);
  font-weight: 530}

.money-table .numeric {
  text-align: right;
  white-space: nowrap}

.money-hero {
  border-radius: var(--r);
  background: var(--money-bg);
  padding: 1.15rem;
  border: 1px solid var(--c-money-hero-border)}

.money-hero .amount {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 620;
  color: var(--money-text);
  display: block;
  margin: .35rem 0}

.amount {
  white-space: nowrap}

.group {
  padding: 0 .95rem}

.group>h2 {
  padding: .9rem 0 .25rem;
  font-size: 1.04rem}

.group .row-link {
  padding: .51rem 0}

.group .row-link+.row-link {
  border-top: 1px solid var(--line)}

.group .row-link .tile-icon {
  width: 1.95rem;
  height: 1.95rem}

.search-box {
  position: relative}

.search-box>.icon {
  position: absolute;
  top: .82rem;
  left: .78rem;
  color: var(--muted)}

.search-box input {
  padding-left: 2.58rem !important}

.screen-grid {
  display: grid;
  gap: 1rem;
  align-items: start}

.tight {
  max-width: 48rem}

.flow {
  display: grid;
  gap: 1rem}

.timeline {
  display: grid;
  gap: 0}

.timeline li {
  border-left: 2px solid var(--line);
  position: relative;
  margin-left: .45rem;
  padding: 0 0 1rem 1.1rem}

.timeline li:before {
  content: "";
  position: absolute;
  top: .35rem;
  left: -.31rem;
  width: .52rem;
  height: .52rem;
  background: var(--green);
  border-radius: 50%}

.timeline li:last-child {
  padding-bottom: 0}

.timeline small {
  display: block;
  color: var(--muted)}

dialog {
  position: fixed;
  max-width: min(26rem, calc(100% - 2rem));
  width: 100%;
  max-height: 85vh;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  color: var(--ink);
  box-shadow: 0 12px 70px var(--c-dialog-shadow)}

dialog::backdrop {
  background: var(--c-dialog-backdrop-bg)}

.design-samples {
  display: grid;
  gap: 1rem}

.pills {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap}

.key-data {
  font-size: 1.04rem;
  font-variant-numeric: tabular-nums;
  word-spacing: .08em;
  overflow-wrap: anywhere}

.thumbs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap}

.thumbs img {
  border-radius: .5rem;
  width: 4.4rem;
  height: 4.4rem;
  object-fit: cover}

.thumbs figure {
  display: grid;
  gap: .2rem}

.queue-layout {
  display: grid;
  gap: 1rem;
  align-items: start}

.queue-list button[aria-pressed=true] {
  background: var(--money-bg);
  box-shadow: inset 3px 0 var(--green)}

.queue-list .amount {
  font-size: .9rem}

.selected-detail {
  scroll-margin-top: 1rem}

.footer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  margin-top: 1rem}

.target-page {
  display: none}

.target-page:target {
  display: grid}

.target-page:target~.target-default {
  display: none}

.help-text {
  font-size: .85rem;
  color: var(--muted)}

/* B-070 (the UX review, finding 07): a long name has the hero to itself (the drawing is left out). */
.hero[data-long] .hero-copy {
  max-width: none}

@media (max-width: 30em) {
  .scene {
  width: 34%;
  height: 74%;
  right: -5%;
  opacity: .83}

  .hero-copy {
  max-width: 79%}

  .hero .intro {
  font-size: .86rem}

  .money-table .optional-col {
  display: none}

  .action-bar .button {
  padding-inline: .64rem}

  .wrap {
  padding-inline: .82rem}

  .intro {
  font-size: .9rem}
}

@media (min-width: 40em) {

  .wrap,
  .top-inner {
  max-width: 48rem}

  .wrap {
  padding-top: 1.55rem}

  .hero {
  padding: 1.45rem 1.6rem;
  min-height: 10rem}

  .hero-copy {
  max-width: 66%}

  .top-inner {
  gap: .85rem}

  .panel,
  .option-panel {
  padding: 1.25rem}

  .nav-link {
  max-width: 7rem;
  font-size: .77rem}

  .tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))}

  .metric {
  padding: 1rem}

  .groups-grid,
  .design-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  align-items: start}

  .role-list {
  grid-template-columns: repeat(2, minmax(0, 1fr))}

  .action-bar .primary {
  flex: 0 1 auto}
}

@media (min-width: 60em) {
  :root {
  --bottom: 0px}

  .bottom-nav {
  display: none}

  .shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-rows: auto 1fr}

  .rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  align-self: start;
  top: 0;
  height: 100vh;
  background: var(--c-rail-bg);
  border-right: 1px solid var(--c-rail-border);
  grid-row: 1/3;
  padding: 1.15rem .95rem;
  color: var(--ink)}

  .rail .brand {
  margin: 0 .7rem 2.3rem;
  font-size: 1.7rem}

  .rail nav {
  display: grid;
  gap: .28rem}

  .rail .nav-link {
  flex-direction: row;
  justify-content: flex-start;
  max-width: none;
  min-height: 3.05rem;
  gap: .88rem;
  font-size: .94rem;
  padding: .65rem .95rem}

  .rail .nav-link[aria-current] {
  background: var(--surface);
  box-shadow: 0 1px 4px var(--c-rail-nav-link-aria-current-shadow)}

  .rail .nav-link[aria-current]:before {
  width: 3px;
  height: 1.22rem;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px}

  .rail-foot {
  margin-top: auto;
  border-top: 1px solid var(--c-rail-foot-border);
  padding: 1.1rem .4rem .2rem;
  display: flex;
  gap: .65rem;
  align-items: center}

  .rail-foot strong,
  .rail-foot small {
  display: block;
  font-size: .82rem}

  .rail-foot small {
  color: var(--muted);
  font-size: .75rem}

  .rail-foot .tile-icon {
  background: var(--c-rail-foot-tile-icon-bg)}

  .topbar,
  .wrap {
  grid-column: 2}

  .top-inner,
  .wrap {
  max-width: 78rem;
  width: 100%}

  .top-inner {
  min-height: 4.2rem}

  .top-inner>.brand {
  display: none}

  .top-path {
  display: flex}

  .top-path strong {
  color: var(--ink);
  font-weight: 540}

  .top-tools {
  gap: .6rem}

  .demo-line {
  font-size: .8rem}

  .wrap {
  padding-block: 1.7rem 2.4rem}

  .hero {
  min-height: 10.75rem;
  padding: 1.45rem 1.85rem}

  .overview {
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .92fr);
  gap: 1.25rem;
  margin-top: 1.45rem}

  .overview .tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr))}

  .alerts .alert-card {
  padding: .9rem 1.25rem}

  .screen-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, .8fr)}

  .queue-layout {
  grid-template-columns: minmax(16.5rem, .86fr) minmax(0, 1.2fr)}

  .action-bar {
  bottom: .7rem}

  .groups-grid {
  grid-template-columns: 1fr 1fr}

  .scene {
  right: 1%;
  width: 42%}

  .page-head {
  margin: 0 0 1.5rem}

  .row-link {
  min-height: 4.1rem}

  .section,
  .stack {
  gap: .8rem}

  .panel,
  .option-panel {
  padding: 1.15rem 1.25rem}
}

@media (prefers-reduced-motion: reduce) {

  *,
  *:before,
  *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important}
}

@media print {

  html,
  body {
  background: var(--surface);
  color: var(--print-ink)}

  .rail,
  .topbar,
  .bottom-nav,
  .action-bar,
  .footer-tools,
  .no-print,
  .button,
  .skip,
  dialog {
  display: none !important}

  .shell,
  .wrap,
  .screen-grid,
  .overview {
  display: block !important}

  .wrap {
  max-width: none;
  padding: 0}

  .panel,
  .list,
  .money-hero {
  box-shadow: none;
  break-inside: avoid;
  margin: .6rem 0}

  .hero {
  background: var(--surface);
  color: var(--print-ink)}

  .hero h1,
  .hero .intro,
  .hero .eyebrow {
  color: var(--print-ink)}

  .scene {
  display: none}

  .badge,
  .callout,
  .tile-icon {
  color: var(--print-ink);
  background: var(--surface)}

  .pair-list>div {
  padding: .35rem 0}

  @page {
    size: A4;
    margin: 15mm
  }
}

.urgent-phone {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center}

.file-action {
  position: relative;
  overflow: hidden;
  cursor: pointer}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0}

.file-action:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px}

.check-line {
  min-height: 44px;
  display: flex;
  gap: .6rem;
  align-items: center;
  cursor: pointer;
  font-size: .87rem}

.check-line input {
  width: 1.1rem;
  height: 1.1rem;
  flex: none}

.mini-icon {
  color: var(--green)}

.quick-table {
  max-width: 100%}

.role-list {
  display: grid;
  gap: .5rem}

.date-buttons {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap}

.fallback {
  padding: 1rem}

.panel h3+.pair-list {
  margin-top: .25rem}

.alerts a:focus-visible {
  outline-offset: 1px}

.two {
  display: grid;
  gap: 1rem}

.report-high {
  border-color: var(--c-report-high-border)}

.metric span[data-count] {
  font: inherit;
  color: inherit}

.s-amt {
  font-size: 1.05rem;
  font-weight: 620}

.sr-money {
  font-variant-numeric: tabular-nums}

.visually-similar {
  border-top: 1px solid var(--line);
  padding-top: .55rem}

.empty:empty {
  display: none}

.role-list a {
  border: 1px solid var(--line);
  border-radius: var(--r-sm)}

@media (min-width: 40em) {
  .two {
  grid-template-columns: 1fr 1fr}
}

.swatch {
  display: flex;
  align-items: center;
  gap: .7rem}

.swatch small,
.swatch b {
  display: block}

.swatch small {
  color: var(--muted);
  font-size: .78rem}

.type-display {
  font: 600 2.2rem var(--serif);
  letter-spacing: -.04em}

.selected-detail:focus {
  outline-offset: 2px}

.help-text a {
  min-height: var(--hit)}

@media (max-width: 39.99em) {
  .nav-link {
  font-size: .75rem}

  .hero .eyebrow {
  font-size: .68rem}

  .panel:has(#import-preview) summary {
  justify-content: flex-start;
  gap: .6rem}

  .panel:has(#import-preview) summary:after {
  margin-left: auto}
}

.fee-cta {
  margin-top: .75rem}

.fee-cta .button {
  width: 100%}

.fee-cta p:not(:empty) {
  padding-top: .5rem;
  font-size: .83rem}

.hero-role {
  letter-spacing: .055em}

.hero .eyebrow {
  flex-wrap: wrap;
  gap: .35rem}

@media (max-width: 30em) {
  .top-inner {
  gap: .25rem}

  .top-tools {
  gap: .05rem}

  .top-inner:has(>.icon-btn) .brand {
  font-size: 0;
  gap: 0;
  min-width: 2.75rem;
  justify-content: center}

  .scene {
  width: 40%;
  height: 73%;
  right: -7%;
  object-fit: cover;
  object-position: 32% bottom;
  opacity: 1}

  .hero-role {
  display: none}

  .hero-copy {
  max-width: 74%}

  .pair-list {
  min-width: 0}

  .top-inner {
  padding-inline: .65rem}
}

@media (max-width: 30em) {
  .hero-role {
  display: inline;
  letter-spacing: .02em}

  .scene {
  right: -8%}

  .hero .intro {
  max-width: 26ch}
}

@media (min-width: 30.01em) and (max-width: 39.99em) {
  .top-inner {
  gap: .3rem}
}

.bez-js .wizard-step[hidden] {
  display: grid !important}

.bez-js .wizard-step {
  margin-top: .75rem}

.bez-js .hero img {
  max-width: 42%}

.no-js-note {
  max-width: 50rem;
  padding: 1rem;
  margin: auto auto 5rem;
  color: var(--muted);
  font-size: .85rem}

.clipboard-copy {
  position: fixed !important;
  bottom: 0;
  left: 0;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none}

.workscreen {
  display: grid;
  gap: 1.18rem;
  align-content: start;
  min-width: 0}

.workscreen>.section,
.workscreen>.panel,
.workscreen>form,
.workscreen>.callout {
  max-width: 65rem}

.workscreen .screen-grid>.stack:empty {
  display: none}

.workscreen>.button,
.workscreen>.section>.button,
.workscreen .stack>.button,
.workscreen .section>.button {
  justify-self: start}

.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: .55rem;
  padding: 1.2rem 1.22rem 1.3rem;
  border-radius: var(--r-lg);
  color: var(--tone);
  background: var(--tone-bg);
  border: 1px solid color-mix(in srgb, var(--tone) 20%, var(--surface))}

.feature:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 8.5rem;
  height: 8.5rem;
  right: -4.75rem;
  top: -4.75rem;
  border: 1px solid currentColor;
  box-shadow: 0 0 0 .65rem var(--tone-bg), 0 0 0 calc(.65rem + 1px) currentColor, 0 0 0 1.3rem var(--tone-bg), 0 0 0 calc(1.3rem + 1px) currentColor;
  transform: rotate(42deg);
  opacity: .23}

.feature h2 {
  color: var(--tone);
  font-family: var(--serif);
  font-weight: 630;
  font-size: clamp(1.55rem, 3vw, 2.18rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  max-width: 30ch}

.feature>p {
  color: var(--ink);
  max-width: 65ch;
  line-height: 1.5;
  font-size: .91rem}

.feature-foot {
  display: flex;
  gap: .65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .18rem;
  font-size: .83rem}

.feature-foot .badge {
  background: var(--surface);
  border-color: currentColor}

.workscreen .panel h3,
.workscreen .panel h2 {
  margin: 0}

.workscreen .screen-grid {
  gap: 1.05rem}

.workscreen .stack>.section+.section {
  margin-top: .25rem}

.reveal {
  display: block}

.reveal>summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: 44px;
  font-weight: 560;
  list-style: none}

.reveal>summary:after {
  content: "+";
  color: var(--green);
  font-size: 1.3rem}

.reveal[open]>summary:after {
  content: "−"}

.reveal>summary::-webkit-details-marker {
  display: none}

.reveal>div {
  padding: .85rem 0 .1rem}

.workscreen .reveal {
  padding: .25rem 1rem}

.workscreen .panel .reveal {
  box-shadow: none}

.act-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem}

.act-row .button {
  max-width: 100%}

.choice-set {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0}

.choice-set legend {
  font-weight: 600;
  margin-bottom: .3rem}

.check-line {
  padding: .15rem .2rem;
  min-height: 44px}

.choice-set .check-line+.check-line {
  border-top: 1px solid var(--line)}

.form-action {
  position: sticky;
  bottom: calc(var(--bottom) + env(safe-area-inset-bottom));
  z-index: 2;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: .24rem 0}

.form-action>.button {
  width: 100%}

.work-form {
  min-width: 0}

.drop-zone {
  border: 1px dashed var(--c-drop-zone-border);
  background: var(--c-drop-zone-bg-2);
  border-radius: var(--r);
  padding: .85rem}

.drop-zone .icon {
  color: var(--green)}

.workscreen input,
.workscreen select,
.workscreen textarea {
  max-width: 100%;
  min-width: 0}

.workscreen input[type=file] {
  font-size: .82rem;
  padding: .38rem}

.workscreen input::file-selector-button {
  min-height: 44px;
  padding-inline: .6rem}

.tally {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  flex-wrap: wrap}

.tally>strong {
  font: 600 2.12rem/1.1 var(--serif);
  letter-spacing: -.045em}

.tally small {
  font: 500 1.08rem var(--sans);
  color: var(--muted)}

.tally>span {
  color: var(--muted);
  font-size: .85rem}

.vote-chart,
.vote-row {
  display: grid;
  gap: .65rem}

.vote-row {
  gap: .2rem}

.vote-row>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: .84rem}

.vote-row>div>span,
.ledger {
  font-variant-numeric: tabular-nums}

.workscreen progress {
  display: block;
  appearance: none;
  width: 100%;
  height: .56rem;
  border: none;
  border-radius: 1rem;
  background: var(--c-workscreen-progress-bg);
  color: var(--accent, var(--green));
  accent-color: var(--accent, var(--green))}

.workscreen progress::-webkit-progress-bar {
  background: var(--c-workscreen-progress-bg);
  border-radius: 1rem}

.workscreen progress::-webkit-progress-value {
  background: var(--accent, var(--green));
  border-radius: 1rem}

.workscreen progress::-moz-progress-bar {
  background: var(--accent, var(--green));
  border-radius: 1rem}

.vote-row .v0 {
  --accent: var(--c-vote-row-v0---accent)}

.vote-row .v1 {
  --accent: var(--c-vote-row-v1---accent)}

.vote-row .v2 {
  --accent: var(--c-vote-row-v2---accent)}

.feature progress {
  max-width: 26rem;
  margin-top: .4rem}

.ledger-wrap {
  max-width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: clip}

/* B-064 (not in the design's file): a ledger whose table cannot fit (the import's preview, one field per column) scrolls
   sideways inside its frame instead of being cut. */
.ledger-wrap[data-scroll] {
  overflow-x: auto}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
  line-height: 1.38}

.ledger td,
.ledger th {
  padding: .7rem .65rem;
  overflow-wrap: anywhere;
  text-align: left}

.ledger thead {
  background: var(--soft);
  color: var(--muted);
  font-size: .77rem}

.ledger tbody th {
  font-weight: 550}

.ledger tbody tr+tr {
  border-top: 1px solid var(--line)}

.ledger td:last-child,
.ledger thead th:last-child {
  text-align: right}

/* B-070 (the UX review, finding 35): a table of amounts lines up its amount columns and their headings on the right,
   whole, so that the grosze stand in one vertical line; a missing value keeps its dash. */
.ledger.money-cols td:not(:first-child),
.ledger.money-cols th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal}

.ledger.money-cols td:first-child,
.ledger.money-cols th:first-child {
  min-width: 8rem;
  overflow-wrap: normal}

.date-row,
.check-row,
.date-title {
  display: flex;
  gap: .85rem;
  align-items: center}

.date-row,
.check-row {
  padding: .72rem .88rem;
  min-height: 4.25rem;
  text-decoration: none;
  color: var(--ink)}

.date-row+.date-row,
.check-row+.check-row {
  border-top: 1px solid var(--line)}

.date-row:hover {
  background: var(--soft)}

.date-tile {
  border: 1px solid var(--c-date-tile-border);
  background: var(--cal-bg);
  color: var(--cal-text);
  display: grid;
  place-content: center;
  text-align: center;
  min-width: 3rem;
  min-height: 3.12rem;
  border-radius: .6rem;
  line-height: 1.1}

.date-tile b {
  font-size: 1.15rem}

.date-tile>span {
  font-size: .68rem;
  letter-spacing: .035em;
  text-transform: uppercase}

.date-row .chevron {
  margin-left: auto}

.check-row>span:nth-child(2) {
  display: grid;
  gap: .23rem;
  flex: 1}

.check-row strong {
  font-size: .88rem}

.check-row small {
  color: var(--muted);
  font-size: .75rem}

.segments {
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
  width: fit-content;
  padding: .17rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--soft)}

.segments a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 .82rem;
  font-size: .85rem;
  border-radius: .45rem}

.segments [aria-current] {
  background: var(--surface);
  color: var(--green-dark);
  box-shadow: var(--shadow);
  font-weight: 620}

.route-steps {
  list-style: none;
  margin: 0;
  padding: 0}

.route-steps li {
  position: relative;
  display: flex;
  gap: .8rem;
  padding-bottom: 1rem}

.route-steps li:not(:last-child):before {
  content: "";
  position: absolute;
  left: 1.03rem;
  top: 2.1rem;
  bottom: 0;
  border-left: 1px solid var(--c-route-steps-li-not-last-chil-border)}

.step-dot {
  border: 1px solid var(--c-step-dot-border);
  color: var(--green);
  min-width: 2.13rem;
  height: 2.13rem;
  border-radius: 50%;
  display: grid;
  place-items: center}

.route-steps .current .step-dot,
.route-steps .complete .step-dot {
  color: var(--on-dark);
  background: var(--green);
  border-color: var(--green)}

.route-steps h3 {
  margin: .2rem 0}

.route-steps p {
  font-size: .87rem;
  color: var(--muted)}

.stepper2 {
  display: flex;
  justify-content: space-between;
  max-width: 35rem;
  gap: .35rem}

.stepper2 span {
  display: flex;
  align-items: center;
  gap: .32rem;
  color: var(--muted);
  font-size: .76rem}

.stepper2 b {
  border-radius: 50%;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid currentColor;
  display: grid;
  place-items: center}

.stepper2 .done {
  color: var(--green-dark)}

.stepper2 .done b {
  color: var(--on-dark);
  background: var(--green)}

.paper {
  border: 1px solid var(--c-paper-border);
  border-radius: 3px;
  padding: 1.18rem;
  background: var(--surface);
  color: var(--c-paper-color);
  box-shadow: 0 3px 9px var(--c-paper-shadow);
  display: grid;
  gap: .95rem;
  align-content: start}

.paper-mast {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-paper-mast-border);
  padding-bottom: .6rem}

.paper-mast span:first-child {
  font-size: 1.35rem;
  letter-spacing: -.08em;
  font-weight: 640}

.paper-mast span:last-child,
.paper-meta,
.paper>footer {
  font-size: .73rem}

.paper h2 {
  font: 600 1.55rem/1.2 var(--serif);
  letter-spacing: -.035em}

.paper>footer {
  border-top: 1px solid var(--c-paper-footer-border);
  padding-top: .55rem;
  color: var(--c-paper-footer-color)}

.paper-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  white-space: pre-line}

.signature {
  border-top: 1px solid var(--c-paper-footer-color);
  padding-top: .25rem;
  margin-top: 1.75rem;
  font-size: .75rem}

.code-print {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap}

.code-print .qr {
  width: 6.3rem;
  height: 6.3rem}

.code-print strong,
.code-print span {
  display: block}

.code-print strong {
  font-size: 1.43rem;
  letter-spacing: .13em}

.code-print span {
  font-size: .75rem}

.print-sheet-only {
  display: none}

@media (min-width: 60em) {
  .form-action {
  bottom: .65rem}

  .feature {
  padding: 1.5rem 1.65rem}

  .workscreen {
  gap: 1.4rem}

  .workscreen .screen-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr)}
}

@media print {
  @page {
    size: A4 portrait;
    margin: 18mm
  }

  body:has(.paper) :is(.skip, .rail, .topbar, .bottom-nav, .no-js-note, #live, dialog) {
  display: none !important}

  body:has(.paper) .wrap :not(:has(.paper)):not(.paper):not(.paper *) {
  display: none !important}

  body:has(.paper) :is(main, .workscreen, .screen-grid, .section, .stack, div):has(.paper) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: none !important}

  .paper,
  .print-sheet-only {
  display: block !important;
  color: var(--print-ink);
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  break-inside: avoid}

  .paper * {
  color: var(--print-ink) !important;
  background: var(--surface) !important;
  box-shadow: none !important}

  .paper h2 {
  font-size: 27pt;
  margin: 9mm 0 6mm}

  .paper h3 {
  margin: 5mm 0}

  .paper p {
  margin: 3mm 0;
  font-size: 12pt;
  line-height: 1.55}

  .paper .paper-lead {
  font-size: 16pt}

  .paper .paper-meta,
  .paper footer {
  font-size: 10pt}

  .paper footer {
  margin-top: 12mm}

  .paper .signature {
  margin-top: 22mm;
  font-size: 10pt}

  .paper .qr {
  width: 38mm;
  height: 38mm}

  .code-print strong {
  font-size: 24pt}

  .paper .paper-mast {
  padding-bottom: 4mm}

  .paper .pair-list,
  .paper .ledger-wrap {
  margin: 5mm 0}

  .paper .ledger {
  font-size: 11pt}

  .paper .code-print {
  margin: 8mm 0}
}

.work-form[data-form2="vote"] .choice-set {
  display: flex;
  gap: .32rem;
  flex-wrap: wrap}

.work-form[data-form2="vote"] legend {
  margin-bottom: .55rem}

.work-form[data-form2="vote"] .check-line {
  flex: 1 1 26%;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .25rem;
  margin: 0;
  padding: .45rem .18rem;
  border: 1px solid var(--c-work-form-data-form2-vote-ch-border);
  border-radius: var(--r-sm);
  font-size: .79rem;
  line-height: 1.25;
  text-align: center}

.work-form[data-form2="vote"] .check-line:has(input:checked) {
  border-color: var(--vote-text);
  background: var(--vote-bg);
  box-shadow: inset 0 0 0 1px var(--vote-text);
  color: var(--vote-text)}

.work-form[data-form2="vote"] .check-line:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px}

.work-form[data-form2="vote"] .check-line input {
  accent-color: var(--vote-accent)}

.work-form[data-form2="vote"] .form-action {
  position: static}

.preview-roles {
  margin-top: 1.5rem}

/* The demo draws the design's links as buttons (it has no addresses): they take a link's plain ground and no frame, at the
   lowest weight, so that the design's own rules of each element (the alert card's ground and border) stay as they are. */
:where(button.nav-link, button.shortcut, button.metric, button.alert-card, button.row-link) {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%
}

/* The frame moves the focus to the screen's title after each screen is drawn (for screen readers); as in the
   product before B-060, the title shows no ring for that (the design's rule above covers only a focus without the keyboard). */
#screen-title:focus {
  outline: 0
}

/* The two colours of the mark from the brand file (design/brand/znak.svg): the design's mark uses the same two. */
.mark-accent {
  fill: var(--green)
}

.mark-pane {
  fill: var(--mark)
}
