/* app/css/app.css - the whole look of the app. System fonts only (no downloads), no inline styles (strict CSP,
   D-012). Mobile first: phones get one column and card-style lists; wider screens get tables and a menu row.

   v1.1 (17-11-2026, ADR-0009, BN docs/build-notes/2026-11-17_v1-1-polish.md): design tokens of direction A "calm
   professional" (the firm's navy and brass; ADR-0002 default; design/v2-directions/_build/tokens.mjs) for colour,
   type, spacing, radius, shadow and motion. Two themes with the SAME token names: light and dark. The device
   setting decides by default ("System"); a person may pick Light or Dark on this device (Settings > Appearance),
   which sets <html data-theme="light|dark"> before the app draws (app/boot-check.js). Every text / background
   pair below meets WCAG 2.2 AA (4.5:1 text, 3:1 borders, focus ring and markers) in BOTH themes: the computed table
   is in the build note. The older blocks further down keep their class names and now read these tokens. */

:root {
  /* ---- colour: light theme (direction A light) ---- */
  --bg: #F6F4F0;            /* page */
  --surface: #FFFFFF;       /* cards, tables, inputs */
  --surface-2: #F1EEE8;     /* table heads, hover, quiet boxes */
  --surface-3: #E9E5DD;     /* pressed / raised */
  --text: #1A1F29;
  --muted: #4A5364;         /* second text: hints, labels of facts, counts */
  --border: #DCD6CB;        /* card edges and row lines (decorative) */
  --border-strong: #857F72; /* input boxes: 3:1 against every surface (WCAG 1.4.11) */
  --brand: #0B1F3A;         /* navy: main buttons, current tab, spinner */
  --brand-text: #FFFFFF;
  --brand-soft: #E3E9F3;
  --accent: #9A6F2A;        /* brass: markers only (3:1) */
  --link: #1C3E6E;
  --focus: #1D4ED8;
  --selected-bg: #E3E9F3;   /* selected tracker rows */
  /* the header bar (navy in light, deep night blue in dark) */
  --hdr-bg: #0B1F3A; --hdr-text: #FFFFFF; --hdr-text-2: #D5DCE8; --hdr-line: #5B6B85; --hdr-hover: #1A3254;
  --hdr-current: #213B61; --hdr-accent: #D4A853; --hdr-focus: #FFFFFF;
  /* status pairs (badge text on badge, and the -fg colour as text on cards) */
  --ok-bg: #E3F4EA; --ok-fg: #145536;
  --info-bg: #E5EEF8; --info-fg: #163F70;
  --warn-bg: #FDF1DA; --warn-fg: #6E4100;
  --bad-bg: #FCEBE9; --bad-fg: #8F1C13;
  --done-bg: #ECE9E3; --done-fg: #3D4656;
  --neutral-bg: #ECE9E3; --neutral-fg: #3D4656;
  --danger-solid: #B42318; --on-danger-solid: #FFFFFF;   /* the red "danger" button */
  --env-bg: #6E4100; --env-fg: #FFFFFF;                   /* "TEST - fake data only" strip */
  --live-on: #1B7046; --live-wait: #8A5200; --live-off: #5D6675;
  --scrim: rgba(11, 31, 58, .45);
  /* ---- typography ---- */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --text-xs: 12px; --text-sm: 13px; --text-md: 14px; --text-base: 16px; --text-lg: 17px; --text-xl: 19px;
  --text-2xl: 22px; --text-3xl: 26px; --text-4xl: 32px;
  --leading-tight: 1.25; --leading: 1.5;
  --weight-regular: 400; --weight-semibold: 600; --weight-bold: 700;
  /* ---- spacing (4 px grid) ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --gap: var(--space-4);
  /* ---- radius ---- */
  --radius-sm: 4px; --radius: 6px; --radius-lg: 10px; --radius-pill: 999px;
  /* ---- shadow (elevation) ---- */
  --shadow-1: 0 1px 2px rgba(11, 31, 58, .08), 0 0 2px rgba(11, 31, 58, .06);
  --shadow-2: 0 4px 8px rgba(11, 31, 58, .10), 0 0 2px rgba(11, 31, 58, .08);
  --shadow-3: 0 16px 40px rgba(11, 31, 58, .24);
  /* ---- motion (switched off when the device asks for reduced motion) ---- */
  --motion-fast: 120ms; --motion-base: 180ms; --ease: cubic-bezier(.2, 0, 0, 1);
  /* ---- sizes ---- */
  --target: 44px;           /* the smallest touch target on phones */
  color-scheme: light;
}
/* dark theme: chosen on this device ... */
:root[data-theme="dark"] {
  --bg: #0E141E; --surface: #161E2B; --surface-2: #1D2737; --surface-3: #243043;
  --text: #E9EDF3; --muted: #AEB8C8; --border: #2E3A4F; --border-strong: #74819A;
  --brand: #D4A853; --brand-text: #0B1F3A; --brand-soft: #22324D; --accent: #D4A853;
  --link: #9CC2FF; --focus: #8AB4FF; --selected-bg: #22324D;
  --hdr-bg: #111823; --hdr-text: #E9EDF3; --hdr-text-2: #AEB8C8; --hdr-line: #5D6B82; --hdr-hover: #1D2737;
  --hdr-current: #1F2F48; --hdr-accent: #D4A853; --hdr-focus: #8AB4FF;
  --ok-bg: #15301F; --ok-fg: #A6E8C2; --info-bg: #1A2A40; --info-fg: #C3DAFF; --warn-bg: #3A2C12; --warn-fg: #F8D79A;
  --bad-bg: #3B1C1E; --bad-fg: #FFC1BB; --done-bg: #263042; --done-fg: #C4CCD9; --neutral-bg: #263042; --neutral-fg: #C4CCD9;
  --danger-solid: #C9372C; --on-danger-solid: #FFFFFF;
  --env-bg: #6E4100; --env-fg: #FFFFFF;
  --live-on: #7CD8A4; --live-wait: #F3C26B; --live-off: #9EA9BA;
  --scrim: rgba(0, 0, 0, .6);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 4px 10px rgba(0, 0, 0, .55); --shadow-3: 0 16px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* ... or the device's own setting when the person chose "System" (the default). Same values as above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141E; --surface: #161E2B; --surface-2: #1D2737; --surface-3: #243043;
    --text: #E9EDF3; --muted: #AEB8C8; --border: #2E3A4F; --border-strong: #74819A;
    --brand: #D4A853; --brand-text: #0B1F3A; --brand-soft: #22324D; --accent: #D4A853;
    --link: #9CC2FF; --focus: #8AB4FF; --selected-bg: #22324D;
    --hdr-bg: #111823; --hdr-text: #E9EDF3; --hdr-text-2: #AEB8C8; --hdr-line: #5D6B82; --hdr-hover: #1D2737;
    --hdr-current: #1F2F48; --hdr-accent: #D4A853; --hdr-focus: #8AB4FF;
    --ok-bg: #15301F; --ok-fg: #A6E8C2; --info-bg: #1A2A40; --info-fg: #C3DAFF; --warn-bg: #3A2C12; --warn-fg: #F8D79A;
    --bad-bg: #3B1C1E; --bad-fg: #FFC1BB; --done-bg: #263042; --done-fg: #C4CCD9; --neutral-bg: #263042; --neutral-fg: #C4CCD9;
    --danger-solid: #C9372C; --on-danger-solid: #FFFFFF;
    --env-bg: #6E4100; --env-fg: #FFFFFF;
    --live-on: #7CD8A4; --live-wait: #F3C26B; --live-off: #9EA9BA;
    --scrim: rgba(0, 0, 0, .6);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 4px 10px rgba(0, 0, 0, .55); --shadow-3: 0 16px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius); z-index: 50; }
.skip-link:focus { top: 8px; }

/* ---- start-up ---------------------------------------------------------------------------------- */
.boot { padding: 48px 16px; text-align: center; color: var(--muted); }
.boot-error { margin: 32px auto; max-width: 560px; padding: 16px; background: var(--bad-bg); color: var(--bad-fg); border-radius: var(--radius); }

/* ---- banners ----------------------------------------------------------------------------------- */
.env-banner { background: var(--env-bg); color: var(--env-fg); text-align: center; font-size: 14px; font-weight: 600; padding: 4px 8px; }
.banner { padding: 10px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }
.banner--warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner--info { background: var(--info-bg); color: var(--info-fg); }

/* ---- header and menu --------------------------------------------------------------------------- */
.app-header { background: var(--brand); color: var(--brand-text); }
.app-header__row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.brand { display: flex; flex-direction: column; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__firm { font-weight: 700; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.brand__app { font-size: 13px; opacity: .9; }
.app-header .btn--ghost { color: var(--brand-text); border-color: rgba(255, 255, 255, .45); }
.main-nav { display: none; border-top: 1px solid rgba(255, 255, 255, .25); }
.main-nav--open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 4px 8px 8px; }
.main-nav a { display: block; padding: 10px 8px; color: var(--brand-text); text-decoration: none; border-radius: 6px; font-weight: 600; }
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); }
.user-menu { position: relative; }
.user-menu__btn { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.user-menu__name { font-weight: 600; max-width: 28vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 759px) { .user-menu__btn { font-size: 14px; padding: 6px 8px; } .user-menu__role { display: none; } }
.user-menu__role { font-size: 12px; opacity: .9; }
.user-menu__panel { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); min-width: 220px; z-index: 20; padding: 6px; display: flex; flex-direction: column; }
.user-menu__panel a, .user-menu__panel button { text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--text); font: inherit; border-radius: 6px; text-decoration: none; cursor: pointer; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--surface-2); }
.user-menu__panel .danger { color: var(--bad-fg); }

@media (min-width: 760px) {
  .app-header .nav-toggle { display: none; }
  .main-nav, .main-nav--open { display: block; border-top: 0; }
  .main-nav ul { display: flex; gap: 4px; padding: 0 12px 8px; }
  .main-nav a { padding: 6px 12px; }
}

/* ---- page -------------------------------------------------------------------------------------- */
.main { padding: 16px; max-width: 1280px; margin: 0 auto; min-height: 60vh; }
.main:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.page-head__title { margin: 0; font-size: 24px; }
.page-head__sub { margin: 4px 0 0; color: var(--muted); }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-size: 18px; margin: 28px 0 10px; }
.app-footer { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; padding: 16px; color: var(--muted); font-size: 13px; }
.live--live::before { content: "\25CF "; color: #2e9d55; }
.live--retrying::before, .live--connecting::before { content: "\25CF "; color: #d18b00; }
.live--off::before { content: "\25CF "; color: #8a8a8a; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.plain-list { padding-left: 20px; }
.hint, .placeholder-note { color: var(--muted); font-size: 14px; }
.placeholder { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px; }
.warn-text { color: var(--warn-fg); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--text); min-height: 84px; }
.tile:hover { border-color: var(--brand); }
.tile__n { font-size: 28px; font-weight: 700; }
.tile__label { color: var(--muted); font-size: 14px; }

/* ---- buttons ----------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.btn--primary:hover { filter: brightness(1.08); background: var(--brand); }
.btn--danger { background: var(--bad-fg); color: #fff; border-color: var(--bad-fg); }
.btn--danger:hover { filter: brightness(1.08); background: var(--bad-fg); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(127, 127, 127, .15); }
.btn--link { background: none; border: 0; color: var(--link); text-decoration: underline; padding: 8px 0; font-weight: 400; }
.btn--small { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---- forms ------------------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form--narrow { max-width: 420px; }
.form--grid { display: grid; grid-template-columns: 1fr; gap: 4px 16px; }
@media (min-width: 760px) { .form--grid { grid-template-columns: 1fr 1fr; } }
.form__actions { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.field__label { font-weight: 600; }
.field__label--inline { font-weight: 400; }
.field__req { color: var(--bad-fg); }
.field__hint { margin: 0; color: var(--muted); font-size: 14px; }
.field__error, .form-error { margin: 0; color: var(--bad-fg); font-weight: 600; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--check .field__hint { flex-basis: 100%; }
.input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.input[aria-invalid="true"] { border-color: var(--bad-fg); border-width: 2px; }
textarea.input { min-height: 88px; resize: vertical; }
.input--code { font-size: 24px; letter-spacing: .3em; text-align: center; font-family: var(--mono); max-width: 220px; }
.input--money { text-align: right; font-variant-numeric: tabular-nums; }
.check { width: 22px; height: 22px; }
.notice { background: var(--info-bg); color: var(--info-fg); padding: 10px 12px; border-radius: var(--radius); }

/* ---- sign-in screens --------------------------------------------------------------------------- */
.auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 4vh; }
.auth-card--wide { max-width: 1200px; }
.nowrap { white-space: nowrap; }
.auth-card__firm { margin: 0; font-weight: 700; font-size: 20px; color: var(--brand); }
.auth-card__app { margin: 0 0 12px; color: var(--muted); }
.auth-title { font-size: 22px; margin: 8px 0 12px; }
.auth-help, .auth-foot { color: var(--muted); font-size: 14px; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 14px; }
.qr { margin: 10px 0; padding: 8px; background: #fff; display: inline-block; border-radius: 6px; border: 1px solid #ccc; }
.qr img { display: block; width: 220px; height: 220px; max-width: 70vw; max-height: 70vw; background: #fff; }
.setup-key code { font-size: 18px; letter-spacing: .08em; word-break: break-all; }

/* ---- loading, errors, empty -------------------------------------------------------------------- */
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 16px 0; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.error-box { background: var(--bad-bg); color: var(--bad-fg); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.error-box__title { font-size: 17px; margin: 0 0 6px; }
.error-box__support { font-size: 13px; opacity: .9; }
.empty { color: var(--muted); padding: 16px; text-align: center; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }

/* ---- badges ------------------------------------------------------------------------------------ */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--info { background: var(--info-bg); color: var(--info-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--bad { background: var(--bad-bg); color: var(--bad-fg); }
.badge--done { background: var(--done-bg); color: var(--done-fg); }
.badge--neutral { background: var(--neutral-bg); color: var(--neutral-fg); }

/* ---- lists (tables on PC, cards on phones) ----------------------------------------------------- */
.table-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.table-tools__search { flex: 1 1 220px; }
.table-tools__filter { flex: 0 1 200px; }
.table-count { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: var(--surface-2); font-size: 14px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.th-sort { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.th-sort__icon { font-size: 10px; min-width: 10px; }
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 10px; background: var(--surface); }
  .table td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 40% 1fr; gap: 8px; text-align: left; }
  .table td.num { text-align: left; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
}

/* ---- toasts ------------------------------------------------------------------------------------ */
.toasts { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; pointer-events: none; z-index: 40; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; max-width: 560px; width: 100%; padding: 10px 12px; border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2); background: var(--surface); color: var(--text); border: 1px solid var(--border); margin-top: 8px; }
.toast > span { flex: 1; }
.toast--ok { background: var(--ok-bg); color: var(--ok-fg); }
.toast--info { background: var(--info-bg); color: var(--info-fg); }
.toast--error { background: var(--bad-bg); color: var(--bad-fg); }
.toast__detail { display: block; opacity: .85; margin-top: 2px; }
.toast__close { background: none; border: 0; font-size: 22px; line-height: 1; color: inherit; cursor: pointer; min-width: 32px; min-height: 32px; }
/* RC3-09 (Phase 3 fix step): on a PC the messages sit at the bottom RIGHT and are narrower, so they no longer cover the
   middle of a list (the vault's Reveal / Copy buttons, the audit view's Who / What). On a phone they stay at the
   bottom, full width, with a small maximum height (older messages scroll inside the box). */
@media (min-width: 760px) {
  .toasts { left: auto; right: 0; width: auto; max-width: 400px; align-items: flex-end; }
  .toast { max-width: 380px; }
}
@media (max-width: 759px) {
  .toasts { max-height: 35vh; overflow-y: auto; }
}
/* RC3-14 / RSP3-1 / RC3-08 (fix step) */
.vault-note > summary { cursor: pointer; }
.vault-note[open] > summary { margin-bottom: 4px; }
.table-filters > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.table-filters[open] { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.table-filters[open] > summary { flex: 1 1 100%; }
.unreadable-list__item { margin: 8px 0; }
.unreadable-list__item .button-row { display: inline-flex; margin-left: 8px; }
.unreadable-list__form { margin-top: 8px; }
.vault-bar--compact { margin: 8px 0; }

/* ---- dialogs ----------------------------------------------------------------------------------- */
.dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: 0 16px 48px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(10, 16, 24, .55); }
.dialog__body { padding: 18px; }
.dialog__title { margin: 0 0 8px; font-size: 19px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ---- UI kit page ------------------------------------------------------------------------------- */
.kit-values { background: var(--surface-2); padding: 8px; border-radius: var(--radius); font-size: 13px; overflow-x: auto; }

@media print {
  .app-header, .app-footer, .toasts, .banner, .env-banner, .table-tools, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==== screens-clients block (dashboard, client list, client page) - added 01-11-2026 by the screens-clients step;
   additive only, every class below is used by app/screens/clients/* or app/screens/dashboard/index.js ========== */
.notice--warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice p { margin: 0 0 4px; }
.notice p:last-child { margin-bottom: 0; }
.bad-text { color: var(--bad-fg); font-weight: 600; }
.mono { font-family: var(--mono); }
.pre-line { white-space: pre-line; margin: 0; }
.crumbs { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; min-width: 0; }
.card__title { font-size: 17px; margin: 0 0 8px; }
.block-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.block-head__title { margin: 0; }
.block-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts--wide { grid-template-columns: minmax(120px, max-content) 1fr; }
.facts--wide dd { overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--border); margin: 8px 0 14px; scrollbar-width: thin; }
.tabs__tab { padding: 10px 14px; text-decoration: none; color: var(--text); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.tabs__tab:hover { background: var(--surface-2); }
.tabs__tab[aria-current="page"] { background: var(--surface); color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.tab-panel { min-width: 0; }
.profile__grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 760px) { .profile__grid { grid-template-columns: 1fr 1fr; } }
.people { list-style: none; margin: 0 0 8px; padding: 0; }
.people__row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form .field { flex: 1 1 240px; margin-bottom: 0; }
.subform { background: var(--surface-2); border-radius: var(--radius); padding: 12px; margin: 0 0 14px; }
.form__group-title { grid-column: 1 / -1; font-size: 16px; margin: 12px 0 4px; }
.form__group-title:first-child { margin-top: 0; }
.form__wide { grid-column: 1 / -1; }
.form__cell { align-self: center; margin: 0 0 8px; }
.form-error-box { margin: 4px 0; }
.field-with-button { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: flex-start; }
.field-with-button .field { flex: 1 1 220px; }
.field-with-button .btn { margin-top: 30px; }
.table-tools__check .field { margin-bottom: 0; }
.table--compact th, .table--compact td { padding: 6px 8px; }
/* dashboard */
.dash-line { margin: 0 0 14px; }
.dash-warnings { margin: 0 0 14px; }
.dash-warnings .plain-list { margin: 0; }
.dash-warnings li { margin: 2px 0; }
.dash-warnings a { color: inherit; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.tile--bad { border-left: 6px solid var(--bad-fg); }
.tile--warn { border-left: 6px solid var(--warn-fg); }
.tile--ok { border-left: 6px solid var(--ok-fg); }
.tile--info { border-left: 6px solid var(--info-fg); }
.tile__note { font-size: 13px; color: var(--bad-fg); font-weight: 600; }
.work-list { list-style: none; margin: 0 0 8px; padding: 0; }
.work-list__item { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.work-list__link { display: flex; flex-direction: column; text-decoration: none; min-width: 0; flex: 1 1 220px; }
.work-list__what { font-weight: 600; text-decoration: underline; }
.work-list__who { color: var(--muted); font-size: 14px; }
.work-list__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.bars { width: 100%; border-collapse: collapse; }
.bars th, .bars td { padding: 4px 6px; text-align: left; vertical-align: middle; font-weight: 400; }
.bars__label { width: 45%; overflow-wrap: anywhere; }
.bars__n { width: 3.5em; text-align: right; font-weight: 700; white-space: nowrap; }
.bars__bar { width: 52%; }
.bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 12px; border: 0; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 6px; }
.bar::-webkit-progress-value { background: var(--info-fg); border-radius: 6px; }
.bar::-moz-progress-bar { background: var(--info-fg); border-radius: 6px; }
.bar--ok::-webkit-progress-value { background: var(--ok-fg); } .bar--ok::-moz-progress-bar { background: var(--ok-fg); }
.bar--warn::-webkit-progress-value { background: var(--warn-fg); } .bar--warn::-moz-progress-bar { background: var(--warn-fg); }
.bar--bad::-webkit-progress-value { background: var(--bad-fg); } .bar--bad::-moz-progress-bar { background: var(--bad-fg); }
.bar--done::-webkit-progress-value { background: var(--done-fg); } .bar--done::-moz-progress-bar { background: var(--done-fg); }
.bar--neutral::-webkit-progress-value { background: var(--neutral-fg); } .bar--neutral::-moz-progress-bar { background: var(--neutral-fg); }
@media (max-width: 759px) {
  .bars__label { width: 55%; }
  .bars__bar { width: 35%; }
  .page-head__actions .btn { flex: 1 1 auto; }
  .tabs { gap: 0; }
  .tabs__tab { flex: 1 1 auto; justify-content: center; padding: 10px 6px; font-size: 15px; }
}
/* ==== end of screens-clients block ==== */

/* ==== screens-settings block (settings pages, users and 2FA, vault timing) - added 01-11-2026 by the
   screens-settings step; additive only, every class below is used by app/screens/settings/*, admin/staff.js or
   vault-timing/index.js (.card comes from the screens-clients block above) ======================================= */
.subnav { margin: 0 0 12px; overflow-x: auto; }
.subnav ul { list-style: none; margin: 0; padding: 0 0 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--text); background: var(--surface); font-weight: 600; font-size: 15px; }
.subnav a:hover { border-color: var(--brand); }
.subnav a[aria-current="page"] { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.sub-title { font-size: 17px; margin: 0 0 8px; }
.sub-title:focus { outline: none; }
.input--mono { font-family: var(--mono); letter-spacing: .03em; }
.input--short { max-width: 9em; }
.tiles--settings { grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles--settings { grid-template-columns: repeat(3, 1fr); } }
.tile__label--big { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
/* services: on / off switch */
.switch { min-width: 64px; font-weight: 700; }
.switch--on { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-fg); }
.switch--off { background: var(--done-bg); color: var(--done-fg); }
/* checklists: list of checklists + steps */
.split { display: grid; grid-template-columns: 1fr; gap: 12px 20px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(220px, 300px) 1fr; } }
.split__list, .split__main { min-width: 0; }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 899px) { .pick-list { max-height: 220px; } }
.pick-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; min-height: 44px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.pick-list li:last-child a { border-bottom: 0; }
.pick-list a:hover { background: var(--surface-2); }
.pick-list a[aria-current="true"] { background: var(--info-bg); color: var(--info-fg); font-weight: 700; box-shadow: inset 4px 0 0 var(--brand); }
.pick-list__meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.pick-list a[aria-current="true"] .pick-list__meta { color: inherit; }
.checklist-title { font-size: 19px; margin: 0 0 4px; }
.step-list { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: none; }
.step-list__item { border-bottom: 1px solid var(--border); padding: 8px 0; }
.step-list__row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-start; }
.step-list__n { font-weight: 700; min-width: 1.8em; padding-top: 2px; }
.step-list__text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-list__title { font-weight: 600; overflow-wrap: anywhere; }
.step-list__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.step-list__actions { flex: 0 0 auto; }
.step-list__item .card { margin-top: 8px; }
@media (max-width: 599px) { .step-list__actions { flex-basis: 100%; padding-left: 2.3em; } }
/* users and 2FA */
.user-cards { list-style: none; margin: 0 0 12px; padding: 0; }
.user-card__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 6px; }
.factor-box { margin: 0 0 8px; }
.factor-box .plain-list { margin: 4px 0 0; }
/* vault timing */
.timing-result { max-width: 560px; }
.timing-result__n { font-size: 34px; font-weight: 800; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
/* dark mode: the shared .btn--danger was white text on the light-pink --bad-fg (hard to read); a deep red instead.
   v1.1: now the --danger-solid token of both themes (see the v1.1 block at the end), so a manual Light choice on a
   dark device is not overridden by a device-setting rule. */
/* ==== end of screens-settings block ==== */

/* ==== screens-tracker block (tracker grid #/tracker, task page #/tasks/:id) - added 01-11-2026 by the
   screens-tracker step; additive only, every class below is used by app/screens/tracker/* or app/screens/tasks/* == */
.dialog--wide { width: min(980px, calc(100vw - 24px)); }
.dialog__body { max-height: calc(100vh - 48px); overflow-y: auto; }
.tr-sub { display: block; color: var(--muted); font-size: 13px; }
.tr-views { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 0 0 10px; }
.tr-views .tr-filter { flex: 1 1 260px; max-width: 420px; }
.tr-views__buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-toolbar { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.tr-search { flex: 1 1 auto; }
.tr-filters { display: none; grid-template-columns: 1fr; gap: 8px 12px; margin-top: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tr-filters--open { display: grid; }
.tr-filter { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-filter .field { margin-bottom: 0; }
.tr-filter__label { font-weight: 600; font-size: 14px; }
.tr-filter--check { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; }
.tr-filter--actions { justify-content: flex-end; }
.tr-filter-toggle { width: 100%; }
@media (min-width: 760px) {
  .tr-filter-toggle { display: none; }
  .tr-filters, .tr-filters--open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
}
@media (min-width: 1100px) { .tr-filters, .tr-filters--open { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tr-bulk { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin: 0 0 8px;
  background: var(--info-bg); color: var(--info-fg); border-radius: var(--radius); }
.tr-table td { vertical-align: middle; overflow-wrap: anywhere; }
.task-table td { overflow-wrap: anywhere; }
.tr-check { width: 44px; }
.tr-row--selected { background: var(--info-bg); }
.tr-row--selected td { color: var(--text); }
.tr-status { min-width: 170px; min-height: 40px; padding: 6px 8px; }
.tr-due { font-variant-numeric: tabular-nums; }
.tr-due--bad { color: var(--bad-fg); font-weight: 700; }
.tr-table .badge { margin-top: 2px; }
.tr-task-link { font-weight: 600; }
.tr-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 12px 0; }
.tr-pager__at { color: var(--muted); }
.tr-bulk-list { list-style: none; margin: 8px 0; padding: 0; }
.tr-bulk-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; }
.tr-bulk-row--error { border-color: var(--bad-fg); border-width: 2px; }
.tr-bulk-row__title { font-weight: 600; margin-bottom: 4px; }
.tr-bulk-row__title .tr-sub { display: inline; }
.tr-bulk-row__fields { display: grid; grid-template-columns: 1fr; gap: 0 10px; }
@media (min-width: 640px) { .tr-bulk-row__fields { grid-template-columns: 120px 1fr; } }
.tr-bulk-row .field { margin-bottom: 4px; }
.tr-skipped { margin: 8px 0; }
@media (max-width: 759px) {
  /* cards: the label is the cell's ::before (column 1); every piece of the cell's content stays in column 2 */
  .tr-table td > *, .task-table td > * { grid-column: 2; min-width: 0; }
  .tr-table td .badge { justify-self: start; }
  .tr-status { width: 100%; }
}
/* task page */
.task-back { margin: 0 0 4px; font-size: 14px; }
.task-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 8px; }
.task-status { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 12px; }
.task-status__label { font-weight: 700; }
.task-status .tr-sub { display: inline; }
.task-summary .facts dd .tr-sub { display: inline; margin-left: 6px; }
.task-notes { white-space: pre-line; }
.task-section { margin: 0 0 8px; }
.task-section__head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.task-section__head .section-title .tr-sub { display: inline; }
.task-list { list-style: none; margin: 0 0 8px; padding: 0; }
.task-list > li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; }
.task-list > li > span:first-child { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.task-list .tr-sub { display: inline; }
.task-table td { vertical-align: middle; }
.task-total td { background: var(--surface-2); }
.task-fee { margin: 10px 0 0; }
.task-fee__title { font-size: 16px; margin: 8px 0; }
.task-upload { display: grid; grid-template-columns: 1fr; gap: 0 12px; margin-top: 8px; padding: 10px; background: var(--surface-2); border-radius: var(--radius); }
@media (min-width: 760px) { .task-upload { grid-template-columns: 220px 1fr; } }
.task-history { list-style: none; margin: 0 0 8px; padding: 0; }
.task-history > li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.task-history .plain-list { margin: 4px 0 0; font-size: 14px; }
.task-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0; }
.task-fieldset legend { font-weight: 600; padding: 0 4px; }
/* ==== end of screens-tracker block ==== */

/* ==== fix-step block (02-11-2026, docs/build-notes/2026-10-31_p2-fix.md) - review findings RC2-04, RC2-10, RC2-11,
   RC2-12, RC2-13, RC2-06, RC2-17. Later rules win over the blocks above on purpose. ================================= */
/* RC2-10 contrast (WCAG 1.4.11, 3:1 for focus rings and input boundaries). Light mode: the focus ring is the link blue
   #0b5c8a (7.2:1 on white, 6.7:1 on the page background) instead of amber #f0a500 (2.1:1); dark mode keeps amber
   (about 9:1 on the dark surfaces). Inside the header (brand colour in both modes) the ring uses the header's own text
   colour (white on #0f4c5c about 9:1; #0b1a1f on #5fb3c6 about 8:1). Input borders: --border-strong, #7d8995 in light
   mode (3.6:1 on white, 3.3:1 on the page) and #7c8a99 in dark mode (4.6:1 on the dark surface). */
/* v1.1: --focus and --border-strong are now theme tokens at the top of this file (both themes, 3:1 or more). */
.app-header :focus-visible { outline-color: var(--hdr-focus); }
.input { border-color: var(--border-strong); }
.input[aria-invalid="true"] { border-color: var(--bad-fg); }

/* RC2-04 lists on phones (card mode): nothing may be wider than the screen. The hidden table head takes no room at
   all, both grid columns may shrink below their content, and long values (e-mail addresses, links, codes) wrap. */
@media (max-width: 759px) {
  .table thead { display: none; }
  .table td { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); overflow-wrap: anywhere; word-break: break-word; }
  .table td > * { min-width: 0; max-width: 100%; }
  .table td.nowrap, .table td .nowrap, .table td .badge { white-space: normal; }
  .table-wrap, .table-tools, .tab-panel, .card, .main { min-width: 0; max-width: 100%; }
  .table-tools__search, .table-tools__filter { flex: 1 1 100%; min-width: 0; }
  .table-tools .btn { flex: 1 1 auto; }
  .subnav { max-width: 100%; }
  .tabs { max-width: 100%; }
  .main { overflow-wrap: anywhere; }
  .switch { min-width: 0; }
  .tr-status { min-width: 0; }
  select.input { max-width: 100%; }
  /* the fixed message area must never be wider than the screen itself: as a fixed box spanning left:0 to right:0 it
     took the width of a zoomed-out phone viewport and then kept the page that wide (measured 02-11-2026) */
  .toasts { right: auto; width: 100vw; max-width: 100%; }
}

/* RC2-11 touch targets on phones (WCAG 2.5.8 minimum 24 px; 44 px where it fits): tick boxes 28 px, small buttons
   and close buttons 44 px high, dashboard bar links and breadcrumbs with a taller tap area. */
@media (max-width: 759px) {
  .check { width: 28px; height: 28px; }
  .btn--small { min-height: 44px; padding: 6px 12px; }
  .toast__close { min-width: 44px; min-height: 44px; }
  .bars__label a, .crumbs a, .task-back a { display: inline-block; padding: 10px 0; }
  .tr-check { width: auto; }
  .tr-table td.tr-check { align-items: center; }
  .user-menu__panel a, .user-menu__panel button { min-height: 44px; }
}

/* RC2-12 "facts" lists (client profile, My account) on narrow phones: the label above the value, so a PAN or a date
   is never broken in the middle. */
@media (max-width: 479px) {
  .facts, .facts--wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt { margin-top: 8px; font-size: 14px; }
  .facts dd { overflow-wrap: anywhere; }
}

/* RC2-13 dashboard warnings fold to one line on phones (<details>; open by default on a PC). */
.dash-warnings__summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.dash-warnings[open] .dash-warnings__summary { margin-bottom: 6px; }
@media (max-width: 759px) { .dash-warnings__summary { min-height: 44px; display: list-item; padding-top: 8px; } }

/* RC2-06 tile note that is information, not a problem (e.g. "tasks; 116 documents awaited"). */
.tile__note--info { color: var(--muted); font-weight: 400; }

/* RC2-17 iPhone install help banner */
.install-help { justify-content: space-between; text-align: left; }
/* ==== end of fix-step block ==== */

/* ==== Phase 3 dsc-register block (app/screens/dsc/) ==== */
.dsc-sub { display: block; font-size: 13px; }
.dsc-expiry { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.dsc-expiry__words { flex-basis: 100%; font-size: 13px; }
.dsc-pin__line { margin: 0 0 4px; }
.dsc-pin--full { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 8px 12px; }
.dsc-alert-line a { font-weight: 600; }
@media (min-width: 760px) { .dsc-register td[data-label="Class"], .dsc-tab td[data-label="Class"] { white-space: nowrap; } }
/* ==== end of dsc-register block ==== */

/* ==== Phase 3 vault-screens block (app/screens/vault/, app/screens/dsc/pin-slot.js) - added 05-11-2026 ==== */
/* Masked secret boxes: type="text" + -webkit-text-security (Chrome / Edge / Safari; Firefox 114+), so browsers'
   password managers do not offer to save the passphrase or a client's password (see vault-ui.js). */
.input--secret { -webkit-text-security: disc; font-family: inherit; letter-spacing: .04em; }
.input--secret.input--shown { -webkit-text-security: none; }
.secret-input { display: flex; gap: 6px; align-items: flex-start; }
.secret-input .input { flex: 1 1 auto; min-width: 0; }
.secret-input__show { flex: 0 0 auto; min-height: 44px; }
.passphrase-check { min-height: 1.5em; }
.passphrase-check ul { margin: 4px 0; }
.ok-line { color: var(--ok-fg); font-weight: 600; margin: 4px 0; }
.vault-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); padding: 8px 0; }
.vault-progress progress { flex-basis: 100%; width: 100%; height: 6px; }
.vault-bar { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.vault-bar__state { margin: 0; display: flex; align-items: center; gap: 8px; }
.vault-list__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.vault-list__head .section-title { margin: 8px 0; }
.secret { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.secret__mask { letter-spacing: .1em; color: var(--muted); }
.secret__value { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.secret__text { font-family: Consolas, "Courier New", monospace; background: var(--warn-bg); color: var(--warn-fg); padding: 2px 6px;
  border-radius: 4px; overflow-wrap: anywhere; user-select: all; }
.secret__text--multi { white-space: pre-wrap; display: block; max-width: 36em; }
.secret__msg { flex-basis: 100%; font-weight: 600; }
.vault-secrets { display: flex; flex-direction: column; gap: 4px; }
.vault-secrets__more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.vault-kept { margin: 2px 0; }
.vault-step--done { border-left: 6px solid var(--ok-fg); }
.vault-step h3 { font-size: 16px; margin: 4px 0 8px; }
.restore-group ul { margin: 2px 0 10px; }
.vault-audit__filters { margin-bottom: 8px; }
@media (min-width: 1000px) { .vault-audit__filters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vault-events tr.row--warn td { background: var(--warn-bg); }
.no-access { font-weight: 600; }
.dsc-pin { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dsc-pin__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dsc-pin__form { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 22em; }
@media (max-width: 759px) {
  .secret-input__show { min-width: 64px; }
  .secret .btn--small, .dsc-pin .btn--small { min-height: 40px; }
}
/* ==== end of vault-screens block ==== */

/* ==== comm-screens block (Phase 4, 06-11-2026, docs/build-notes/2026-11-06_p4-comm-screens.md): the message composer,
   the communication log, bulk send and Settings > Message templates. Phone first; nothing wider than the screen. ==== */
.msg-composer { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msg-channel { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.msg-channel legend { padding: 0; margin-bottom: 4px; }
.msg-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.msg-to { margin: 0 0 6px; overflow-wrap: anywhere; }
.msg-to .hint { display: block; }
.msg-text { min-height: 9em; font-family: inherit; line-height: 1.45; }
.msg-text[readonly] { background: var(--surface-2); }
.msg-missing { padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius); }
.msg-actions { margin: 6px 0; }
.msg-actions .btn { flex: 0 1 auto; }
.msg-steps { margin: 4px 0; }
.msg-steps li { margin-bottom: 4px; }
.msg-device { margin: 4px 0; }
.msg-device > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; }
.msg-confirm { margin-top: 8px; padding: 10px 12px; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.msg-confirm__q { margin: 0 0 4px; font-size: 18px; }
.msg-preview { max-height: 16em; overflow-y: auto; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius); overflow-wrap: anywhere; }
.msg-snippet { display: block; overflow-wrap: anywhere; }
.msg-addr { overflow-wrap: anywhere; }
.msg-filters-wrap { margin: 0 0 8px; }
.msg-filters-wrap > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.msg-filters { margin-top: 4px; }
.msg-filter-words { margin: 4px 0 8px; }
.msg-filter-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.msg-filter-presets .btn[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.msg-queue-filter { max-width: 20em; }
.msg-runner .msg-progress { margin: 6px 0 12px; height: 14px; }
.msg-current { border-width: 2px; border-color: var(--brand); }
.msg-items { list-style: none; margin: 0 0 8px; padding: 0; }
.msg-item { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; background: var(--surface); min-width: 0; }
.msg-item__who { flex: 1 1 240px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.msg-item .tr-sub { flex: 1 1 100%; overflow-wrap: anywhere; }
.msg-item__state { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.msg-item--current { border-color: var(--brand); border-width: 2px; }
.msg-pick { margin: 6px 0; }
.msg-pick > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.msg-pick__list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.msg-pick__list li { border-bottom: 1px solid var(--border); }
.msg-pick__list .msg-radio { font-weight: 400; overflow-wrap: anywhere; min-width: 0; }
.msg-left li { margin-bottom: 4px; }
.msg-mail-form { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); }
.tpl-placeholders { margin: 4px 0 10px; }
.tpl-placeholders__list { display: grid; grid-template-columns: 1fr; gap: 4px 12px; }
@media (min-width: 760px) { .tpl-placeholders__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpl-placeholders__list li { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.tpl-preview { margin-top: 10px; }
@media (max-width: 759px) {
  .msg-actions .btn { flex: 1 1 100%; }
  .msg-confirm .button-row .btn { flex: 1 1 100%; }
  .msg-current .button-row .btn { flex: 1 1 100%; }
}
/* ==== end of comm-screens block ==== */
/* ==== Phase 5 gen-dates: the period generator, Settings > Due-date rules and Extensions ==== */
.gen-form { margin-bottom: 8px; }
.gen-result { margin-top: 8px; }
.gen-headline { margin: 0 0 6px; overflow-wrap: anywhere; }
.gen-section { margin: 8px 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 10px; background: var(--surface); min-width: 0; }
.gen-section > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.gen-section[open] > summary { margin-bottom: 6px; }
.gen-rules li, .gen-nodate li, .gen-run-list li { margin-bottom: 6px; overflow-wrap: anywhere; }
.gen-runs { margin-top: 18px; }
.rule-detail .card__title { overflow-wrap: anywhere; }
.rule-basis dd { white-space: normal; }
.rule-actions { margin-top: 12px; align-items: center; }
.rule-date-form { margin-top: 12px; }
.ext-form fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.check-list { list-style: none; margin: 4px 0 8px; padding: 4px 8px; max-height: 40vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.check-list li { display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid var(--border); min-width: 0; }
.check-list li:last-child { border-bottom: 0; }
.check-list label { overflow-wrap: anywhere; min-width: 0; }
.ext-preview { margin-top: 12px; }
@media (min-width: 760px) { .rule-date-form .form--grid, .ext-form .form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .rule-detail .facts--wide { grid-template-columns: 1fr; gap: 2px 0; }
  .rule-detail .facts--wide dd { margin-bottom: 8px; }
  .gen-result .button-row .btn, .rule-actions .btn, .ext-form .button-row .btn { flex: 1 1 100%; }
}
/* ==== end of gen-dates block ==== */
/* ==== Phase 5 reminders-status: Documents reminders (#/messages/reminders) and the client status links card ==== */
.rem-filters { margin-bottom: 4px; }
.rem-filters__mine { align-self: end; }
.rem-tools { align-items: center; margin: 4px 0 10px; }
.rem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rem-row { margin: 0; min-width: 0; }
.rem-row__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rem-row__pick { flex: 0 0 auto; }
.rem-row__who { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.rem-row__task, .rem-row__when { margin: 4px 0; overflow-wrap: anywhere; }
.rem-row__task .badge { margin-left: 4px; }
.rem-docs { margin: 4px 0 6px; padding-left: 20px; }
.rem-docs li { overflow-wrap: anywhere; }
.status-links { margin-bottom: 14px; }
.status-links__form { align-items: end; flex-wrap: wrap; }
.status-links__new { margin: 8px 0 12px; }
.status-links__url { width: 100%; margin: 4px 0 8px; }
.status-links__list { list-style: none; margin: 8px 0 0; padding: 0; }
.status-links__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  padding: 8px 0; border-top: 1px solid var(--border); min-width: 0; }
.status-links__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.status-links__what .badge { align-self: flex-start; }
.doc-reminded { display: block; }
@media (max-width: 480px) {
  .rem-tools .btn, .status-links__form .btn, .status-links__new .button-row .btn { flex: 1 1 100%; }
  .status-links__row .button-row { width: 100%; }
  .status-links__row .button-row .btn { flex: 1 1 45%; }
}
/* ==== end of reminders-status block ==== */
/* ==== Phase 5 import: #/clients/import (the Excel import of clients) ==== */
.import-steps { display: grid; gap: 0 14px; }
.import-step { min-width: 0; }
.import-step__title { font-size: 16px; margin: 0 0 6px; }
.import-step p { margin: 0 0 8px; overflow-wrap: anywhere; }
.import-file-error { margin: 10px 0; overflow-wrap: anywhere; }
.import-preview .notice { margin: 0 0 10px; overflow-wrap: anywhere; }
.import-preview .button-row { margin: 0 0 10px; }
.import-problems { margin: 0; padding-left: 18px; min-width: 0; }
.import-problems li { overflow-wrap: anywhere; }
.import-problems__error { color: var(--bad-fg); }
.import-problems__info { color: var(--muted); }
.import-recent__list li { overflow-wrap: anywhere; }
@media (min-width: 760px) { .import-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .import-preview .button-row .btn, .import-step .button-row .btn { flex: 1 1 100%; } }
/* ==== end of import block ==== */

/* ==== Phase 5 fix step (12-11-2026) ==== */
.import-preview .th-sort { white-space: nowrap; }              /* P5-O5 / RC5-20: "E-mail" stays on one line */
.rules-ticks { margin: 0; flex-wrap: wrap; }                   /* RC5-01: tick and approve several rules */
.follow-on { margin-top: 16px; }                               /* RC5-10: follow-on tasks C1-C5 */
.follow-on li { padding: 4px 0; overflow-wrap: anywhere; }
.rem-search { margin: 8px 0; max-width: 28rem; }               /* RC5-22: search by client */
.rem-fold > summary { cursor: pointer; padding: 6px 0; }
.status-links-all .field--check { margin: 8px 0; }             /* RC5-23: all clients' status links */
/* ==== end of Phase 5 fix block ==== */

/* ==== Phase 6 backup step (13-11-2026): #/backup (app/screens/backup/index.js) ==== */
.backup-page .card { margin-bottom: 16px; }
.backup-last--due { border-left: 4px solid var(--warn-fg); }
.backup-reminder { margin-top: 12px; }
.backup-reminder__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.backup-make > .section-title { margin-top: 0; }
.backup-what li { margin-bottom: 6px; overflow-wrap: anywhere; }
.choice-group { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 4px; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.choice input { width: 24px; height: 24px; flex: 0 0 auto; margin: 0; }   /* WCAG 2.5.8: at least 24 x 24 px */
.backup-folder p { overflow-wrap: anywhere; }
.notice--ok { background: var(--ok-bg, var(--info-bg)); color: var(--ok-fg, var(--info-fg)); }
.backup-done li, .backup-saved p, .backup-recent li { overflow-wrap: anywhere; }
@media (max-width: 480px) { .backup-saved .button-row .btn, .backup-make .button-row .btn { flex: 1 1 100%; } }
/* ==== end of Phase 6 backup block ==== */

/* ==== Phase 6 erase step (13-11-2026): #/clients/<id>/delete, #/clients/deleted (app/screens/clients/erase.js, deleted.js) ==== */
.erase-page .card { margin-bottom: 16px; }
.erase-warning { border-left: 4px solid var(--bad-fg); }
.erase-step > .section-title { margin-top: 0; }
.erase-what p, .erase-what li, .erase-step p, .erase-step li, .erase-deleted p { overflow-wrap: anywhere; }
.erase-what li { margin-bottom: 6px; }
.erase-summary { columns: 2 220px; margin-top: 4px; }
.erase-files li { margin-bottom: 6px; }
.erase-files .choice { align-items: flex-start; }
.erase-deleted { list-style: none; padding-left: 0; }
.erase-deleted .card p { margin: 0 0 4px; }
.client-leave { margin-top: 24px; }
@media (max-width: 480px) { .erase-step .button-row .btn { flex: 1 1 100%; } }
/* ==== end of Phase 6 erase block ==== */

/* ==== v1.1 polish block (17-11-2026, ADR-0009; BN docs/build-notes/2026-11-17_v1-1-polish.md) ===================
   Direction A "calm professional" on top of the v1 screens: same class names, same structure, every feature kept.
   Later rules win over the blocks above on purpose. Sections: base, motion, header, buttons and fields, cards and
   badges, lists, phone touch targets (44 x 44 px), PC tracker density (direction C's compact rows, PC only),
   loading placeholders, Settings > Appearance, high-contrast mode. ================================================ */

/* ---- base ---- */
body { font-size: var(--text-base); line-height: var(--leading); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--text); }
.page-head__title { font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: -.01em; }
.section-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.input:focus-visible, select.input:focus-visible { outline-offset: 1px; }
::selection { background: var(--brand-soft); color: var(--text); }

/* ---- motion: small, quick, and none at all when the device asks for reduced motion ---- */
/* only edges and shadows move: text and background colours change at once, so no screen is ever caught half-way
   (for example while the light / dark theme switches) with text and background too close in colour */
.btn, .input, .tile, .tabs__tab, .subnav a, .pick-list a, .main-nav a, .user-menu__panel a, .user-menu__panel button {
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- header: navy bar (light) / night blue (dark), brass marker under the current menu item ---- */
.env-banner { background: var(--env-bg); color: var(--env-fg); }
.app-header { background: var(--hdr-bg); color: var(--hdr-text); box-shadow: var(--shadow-1); }
.app-header__row { min-height: 56px; }
.brand { min-height: var(--target); justify-content: center; }
.brand__firm { letter-spacing: .01em; }
.brand__app { color: var(--hdr-text-2); opacity: 1; }
.app-header .btn--ghost { color: var(--hdr-text); border-color: var(--hdr-line); background: transparent; }
.app-header .btn--ghost:hover { background: var(--hdr-hover); }
.user-menu__role { color: var(--hdr-text-2); opacity: 1; }
.main-nav { border-top-color: var(--hdr-line); }
.main-nav a { color: var(--hdr-text); font-weight: var(--weight-semibold); position: relative; }
.main-nav a:hover { background: var(--hdr-hover); }
.main-nav a[aria-current="page"] { background: var(--hdr-current); box-shadow: inset 4px 0 0 var(--hdr-accent); }
@media (min-width: 760px) {
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--hdr-accent); }
}
.user-menu__panel { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-3); border-radius: var(--radius-lg); }
.app-footer { color: var(--muted); }
.live--live::before { color: var(--live-on); }
.live--retrying::before, .live--connecting::before { color: var(--live-wait); }
.live--off::before { color: var(--live-off); }

/* ---- buttons and fields ---- */
.btn { border-radius: var(--radius-sm); }
.btn--primary { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand); filter: brightness(1.12); }
.btn--danger, .btn--danger:hover { background: var(--danger-solid); color: var(--on-danger-solid); border-color: var(--danger-solid); }
.btn--danger:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--border-strong); }
.btn--link { color: var(--link); border: 0; }
.input { border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.input:hover:not(:disabled) { border-color: var(--text); }
.input:disabled, .btn:disabled { opacity: .65; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
.field__label { color: var(--text); }
.notice { border-radius: var(--radius); }

/* ---- cards, tiles, badges ---- */
.card, .tile, .task-summary, .empty, .auth-card, .gen-section { box-shadow: var(--shadow-1); }
/* (radius only: a border-color here would wipe the coloured left edges of the tone tiles and of some cards) */
.card, .tile, .empty, .auth-card { border-radius: var(--radius-lg); }
.auth-card__firm { color: var(--brand); }
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.tile__n { font-size: var(--text-4xl); line-height: 1.15; font-variant-numeric: tabular-nums; }
.dialog { border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.dialog::backdrop { background: var(--scrim); }
.toast { border-radius: var(--radius); box-shadow: var(--shadow-3); }
.badge { border-radius: var(--radius-sm); padding: 2px 8px; line-height: 1.35; }
/* No information by colour alone: besides its words, a "done" badge shows a tick and a problem badge shows "!".
   The marks are hidden from screen readers (the "/ ''" alternative text), so spoken names stay the words. */
.badge--ok::before { content: "\2713\00a0" / ""; font-weight: var(--weight-bold); }
.badge--bad::before { content: "!\00a0" / ""; font-weight: 800; }
.tabs { border-bottom-color: var(--border); }
.tabs__tab[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); background: var(--surface); }
.subnav a { border-color: var(--border-strong); border-radius: var(--radius-pill); }
.subnav a[aria-current="page"] { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.pick-list a[aria-current="true"] { box-shadow: inset 4px 0 0 var(--accent); }

/* ---- lists ---- */
.table { border-radius: var(--radius); }
.table th { background: var(--surface-2); color: var(--text); }
.tr-row--selected td { background: var(--selected-bg); color: var(--text); }
.tr-bulk { background: var(--brand-soft); color: var(--text); box-shadow: var(--shadow-2); border: 1px solid var(--border); }
@media (max-width: 759px) {
  .table tr { box-shadow: var(--shadow-1); border-radius: var(--radius-lg); }
  .table tr.tr-row--selected { background: var(--selected-bg); }
}

/* ---- phones: every control at least 44 x 44 px (WCAG 2.5.5 AAA / the brief; 2.5.8 AA needs 24) ---- */
@media (max-width: 759px) {
  /* (a min-width on a flex item also lets it shrink below its words; flex-shrink 0 keeps the words whole - rows that
     must share space set their own flex values, which win) */
  .btn { min-width: var(--target); flex-shrink: 0; }
  .btn--link { min-height: var(--target); padding: 8px 4px; }
  .check { width: var(--target); height: var(--target); margin: 0; }
  .field--check .field__label--inline { min-height: var(--target); display: inline-flex; align-items: center; }
  .tr-status, .secret .btn--small, .dsc-pin .btn--small { min-height: var(--target); }
  .subnav a { min-height: var(--target); }
  .tabs__tab { flex-shrink: 0; padding-left: 9px; padding-right: 9px; }   /* the row scrolls; no tab under 44 px or its words */
  .check-list li { min-height: var(--target); }
  .check-list label, .rules-ticks label { min-height: var(--target); display: inline-flex; align-items: center; }
  .main summary, .dialog summary { min-height: var(--target); padding-top: 10px; padding-bottom: 6px; }
  .rem-fold > summary { padding: 10px 0 6px; }
  /* stand-alone links (table cells, list rows, facts, breadcrumbs). Links inside a sentence stay inline: WCAG 2.5.8
     exempts them, and a 44 px box in the middle of a line would break the paragraph apart. */
  :where(.facts dd, .bars__label, .people, .status-links, .rem-row, .msg-item, .card) > a:not([class]),
  :where(.table td) a:not([class]), .rem-row__who > a, .page-head__sub > a,
  :where(.main, .dialog) li > a:not([class]):only-child, .tr-task-link, .crumbs a, .task-back a, .bars__label a, .work-list__link {
    display: inline-flex; flex-wrap: wrap; align-items: center; min-height: var(--target); min-width: var(--target);
  }
  .work-list__link { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
  .crumbs a, .task-back a, .bars__label a { padding: 0; }
  .user-menu__panel a, .user-menu__panel button { min-height: var(--target); display: flex; align-items: center; }
  /* page actions always on their own row: the header no longer jumps when a count arrives (tracker CLS 0.466) */
  .page-head__actions { flex: 1 1 100%; }
  .msg-preview { scroll-padding: 8px; }
}

/* ---- PC: the tracker grid is denser (direction C's compact rows); every target stays at least 24 px ---- */
@media (min-width: 760px) {
  .tr-table { font-size: var(--text-md); }
  .tr-table th, .tr-table td { padding: 5px 8px; line-height: 1.35; }
  .tr-table .tr-status { min-height: 32px; padding: 3px 6px; font-size: var(--text-md); }
  .tr-table .check { width: 24px; height: 24px; }
  .tr-table .badge { padding: 0 6px; font-size: var(--text-xs); }
  .tr-table .th-sort { min-height: 28px; }
  .th-sort { min-height: 32px; }
  /* the due-date note goes under the date, so the column stays narrow and client / service names need fewer lines */
  .tr-table td[data-label="Due date"] { white-space: normal; min-width: 8em; }
  .tr-table td[data-label="Due date"] .tr-due { display: block; white-space: nowrap; }
  .tr-table td[data-label="Due date"] .badge { white-space: normal; }
  .tr-table td[data-label="Client"] > .tr-sub, .tr-table td[data-label="Service"] > .tr-sub { display: inline; margin-left: 6px; }
}

/* ---- loading placeholders (reserve the room the real content takes, so nothing jumps) ---- */
/* The page area is at least one screen tall, so the footer starts below the fold and no longer jumps down when a list
   arrives (the remaining layout shift of the dashboard, tracker and client page in the 16-11-2026 measurements). */
.main { min-height: 100vh; }
.tr-wait { min-height: 50vh; }
.skeleton { display: block; background: var(--surface-3); border-radius: var(--radius-sm); }
.skeleton--btn { width: 200px; max-width: 100%; height: var(--target); }
@media (max-width: 759px) { .skeleton--btn { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: ct-pulse 1.6s ease-in-out infinite; }
  @keyframes ct-pulse { 50% { opacity: .55; } }
}

/* ---- Settings > Appearance and About ---- */
.appearance .choice-group { margin-bottom: 4px; }
.appearance .choice { display: inline-flex; margin-right: 18px; }
.about-version dd, .about-version code { overflow-wrap: anywhere; }

/* ---- Windows high-contrast mode: badges and tiles keep a visible edge ---- */
@media (forced-colors: active) {
  .badge, .tile, .card, .btn, .skeleton { border: 1px solid CanvasText; }
  .main-nav a[aria-current="page"], .tabs__tab[aria-current="page"] { outline: 2px solid Highlight; }
}
/* ==== end of v1.1 polish block ==== */