/*
  Coop admin design system, after the bank's POLMS screens: a dark sidebar with collapsible groups, a light blue-grey
  canvas, white cards, royal-blue titles and primary buttons, deep-green brand accents, coloured status pills.
  System fonts only: bank networks often block font CDNs.
*/
:root {
  --canvas: #eef3fb;
  --surface: #ffffff;
  --surface-muted: #f6f8fc;
  --border: #e1e7f1;
  --border-strong: #c9d3e3;
  --text: #121826;
  --text-muted: #5b6577;
  --text-faint: #8a93a3;
  --input-border: #8a93a3; /* 3.1:1 on white: a field's edge must be visible (WCAG 1.4.11) */

  --primary: #1f3fe0;
  --primary-hover: #1832bd;
  --primary-soft: #e3e9ff;
  --title: #1a33d6;

  --brand: #0d4a2c;
  --brand-hover: #0a3a22;
  --brand-soft: #dff3e6;

  --sidebar: #0b0d0c;
  --sidebar-text: #e7ece9;
  --sidebar-muted: #a4ada8;
  --sidebar-active-bg: #ffffff;
  --sidebar-active-text: #0b0d0c;

  --success-bg: #d3f4dc; --success: #157a35;
  --warning-bg: #fff0c2; --warning: #8a5d00;
  --danger-bg: #ffdcdc;  --danger: #c22020;
  --info-bg: #dfe6ff;    --info: #2340d8;
  --purple-bg: #ece2ff;  --purple: #6a2fd2;
  --neutral-bg: #e7eaf0; --neutral: #4b5563;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --focus: 0 0 0 3px rgba(31, 63, 224, .35);

  --sidebar-width: 248px;
  --topbar-height: 68px;

  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); }
body { min-height: 100vh; line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
/* A transparent outline as well as the ring: Windows high contrast drops box shadows but draws outlines in its own colour. */
:focus-visible { outline: 2px solid transparent; outline-offset: 1px; box-shadow: var(--focus); border-radius: var(--radius-sm); }
/* Headings take focus after navigation (for screen readers); no ring for that. */
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; z-index: 100; background: var(--surface); color: var(--primary); font-weight: 700; border-radius: 8px; box-shadow: var(--shadow-lg), var(--focus); }
.icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-width) 1fr; grid-template-rows: var(--topbar-height) 1fr; min-height: 100vh; }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2fa 100%); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; max-width: 40vw; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-emblem { color: var(--brand); display: grid; place-items: center; }
.brand-name { display: block; font-weight: 800; font-size: 18px; letter-spacing: -.2px; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline { display: block; font-size: 11px; font-style: italic; color: #b3261e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.system { display: flex; flex-direction: column; min-width: 0; flex: 1; padding-left: 20px; border-left: 1px solid var(--border); }
.system-name { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--primary); margin-top: 2px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "›"; color: var(--text-muted); margin-right: 6px; }
.crumbs [aria-current] { color: var(--primary); font-weight: 500; }
.user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-search { position: relative; display: flex; align-items: center; gap: 6px; flex: 0 1 320px; min-width: 0; color: var(--text-muted); }
.top-search .input { width: 100%; min-width: 0; }
.top-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; max-height: 60vh; overflow-y: auto; z-index: 40;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px;
}
.top-search-results ul { list-style: none; margin: 0; padding: 0; }
.top-search-results a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: inherit; }
.top-search-results a:hover, .top-search-results a:focus-visible { background: var(--surface-muted); text-decoration: none; }
.top-search-results .hit-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-search-results .hit-why { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.top-search-results .empty, .top-search-results .hint { padding: 8px 10px; font-size: 13px; color: var(--text-muted); }
.menu-toggle { display: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--primary); border-radius: 8px; width: 40px; height: 40px; place-items: center; cursor: pointer; flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.user-name { display: block; font-weight: 600; font-size: 13px; }
.user-role { display: block; font-size: 12px; color: var(--text-muted); }

.sidebar {
  background: var(--sidebar); color: var(--sidebar-text); padding: 14px 10px 0; display: flex; flex-direction: column;
  border-radius: 0 14px 0 0; position: sticky; top: var(--topbar-height); height: calc(100vh - var(--topbar-height)); overflow-y: auto;
}
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--sidebar-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none;
}
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); font-weight: 600; }
.nav .chev { margin-left: auto; transition: transform .15s; }
.nav .open > button .chev { transform: rotate(180deg); }
.nav .sub { list-style: none; margin: 2px 0 6px; padding: 0 0 0 14px; }
.nav .sub a { padding: 7px 12px; font-size: 13.5px; color: var(--sidebar-muted); }
.nav .sub a.active { color: var(--sidebar-active-text); }
.motto {
  margin-top: auto; padding: 40px 12px 18px; font-size: 12px; letter-spacing: .28em; line-height: 1.9; color: #fff; text-transform: none;
  background: radial-gradient(120% 90% at 85% 100%, rgba(212, 160, 23, .55), transparent 55%),
              radial-gradient(120% 120% at 0% 100%, rgba(22, 120, 60, .75), transparent 60%);
}
.main { padding: 20px 24px 40px; min-width: 0; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.page-head .tile { width: 52px; height: 52px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.page-head h1 { color: var(--title); font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.page-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 10px; }

/* ---------- Buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover:not(:disabled) { background: var(--brand-hover); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover:not(:disabled) { background: var(--primary-soft); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #f2b8b8; }
.btn-danger:hover:not(:disabled) { background: var(--danger-bg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: 13px; }
.field .hint { font-size: 12px; color: var(--text-muted); }
.req { color: var(--danger); }
.input, select.input, textarea.input {
  height: 40px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface); font: inherit; color: var(--text); width: 100%;
}
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: 2px solid transparent; border-color: var(--primary); box-shadow: var(--focus); }
.input.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin: 0; padding: 0; border: 0; }
.check-grid legend { font-weight: 600; margin-bottom: 6px; }
.check code { font-size: 12px; color: var(--text-muted); }
.secret { display: block; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface-muted); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
progress.meter { width: 100%; max-width: 160px; height: 8px; accent-color: var(--primary); vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Cards, KPIs, filters ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head .head-icon { color: var(--primary); display: inline-flex; }
.card-head h2 { color: var(--title); font-size: 17px; font-weight: 700; }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.spaced { margin-top: 16px; }
.split { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
table.data tr.clickable { cursor: pointer; }
/* The keyboard way into a clickable row: looks like the cell's text. */
.row-link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-align: left; }
.row-link:hover { text-decoration: underline; }
table.data td.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint-text { color: var(--text-muted); font-size: 13px; }
.was { color: var(--text-muted); text-decoration: line-through; }
.lock-mark { color: var(--text-muted); margin-left: 6px; }
td.row-actions { white-space: nowrap; }
td.row-actions .btn + .btn { margin-left: 6px; }
div.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
/* Translations: member texts wrap (an agreement is long), and a refused file's problems scroll inside the dialog. */
td.text { white-space: pre-line; overflow-wrap: anywhere; min-width: 14ch; }
.problems { max-height: 280px; overflow: auto; margin-top: 12px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 10px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.kpi .kpi-icon { color: var(--primary); }
.kpi .kpi-label { color: var(--text-muted); font-size: 13px; }
.kpi .kpi-value { font-size: 24px; font-weight: 800; color: var(--title); margin-top: 2px; }
.kpi .kpi-note { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.kpi .up { color: var(--success); font-weight: 700; }
.kpi .down { color: var(--danger); font-weight: 700; }
.kpi.tone-success .kpi-icon { color: var(--success); }
.kpi.tone-warning .kpi-icon { color: #c98a00; }
.kpi.tone-danger .kpi-icon { color: var(--danger); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; margin-bottom: 16px; }
.filters .field { flex: 1 1 160px; }
.filters .btn { flex: none; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; margin-bottom: 16px; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px 12px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tabs a .icon, .tabs button .icon { color: var(--primary); }
.tabs .active { border-bottom-color: var(--primary); font-weight: 700; color: var(--title); }
.tab-panel:focus-visible { box-shadow: var(--focus); border-radius: var(--radius); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-weight: 700; color: var(--text); background: var(--surface-muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #f7f9ff; }
table.data tr.selected { background: var(--primary-soft); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; background: var(--surface-muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.success { background: var(--success-bg); color: var(--success); }
.pill.warning { background: var(--warning-bg); color: var(--warning); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.purple { background: var(--purple-bg); color: var(--purple); }
.pill.neutral { background: var(--neutral-bg); color: var(--neutral); }

/* ---------- Detail lists ---------- */
dl.details { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
dl.details dt { color: var(--text-muted); }
dl.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Alerts, empty and loading states ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; border: 1px solid; margin-bottom: 16px; }
.alert.danger { background: #fff5f5; border-color: #f4c2c2; color: #8f1a1a; }
.alert.info { background: #f3f6ff; border-color: #c9d4ff; color: #1f3290; }
.alert.success { background: #f1fbf4; border-color: #bfe8cb; color: #12612b; }
.alert.warning { background: #fff8e6; border-color: #f2d58a; color: #7a5200; }
.alert .alert-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 32px 16px; text-align: center; color: var(--text-muted); }
.loading { padding: 28px 16px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; justify-content: center; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
/* A native modal <dialog> filling the viewport (transparent), centring the card; the page behind is dimmed and inert. */
dialog.modal-dialog { border: 0; padding: 16px; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; }
dialog.modal-dialog[open] { display: grid; place-items: center; }
dialog.modal-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head .tile { width: 48px; height: 48px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.modal-head h2 { color: var(--title); font-size: 20px; font-weight: 800; }
.modal-head p { margin: 2px 0 0; color: var(--text-muted); }
.modal-head .close { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--primary); padding: 4px; }
.modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 60; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); }
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--text-muted); }

/* ---------- Sign-in ---------- */
.signin { min-height: 100vh; display: grid; grid-template-columns: 1.4fr minmax(360px, 460px); }
.signin-hero {
  padding: 56px 56px 40px; color: #fff; display: flex; flex-direction: column; gap: 22px;
  background: radial-gradient(90% 80% at 80% 20%, rgba(212, 160, 23, .35), transparent 60%), linear-gradient(135deg, #0d4a2c 0%, #12623a 45%, #1d7a45 100%);
}
.signin-hero .eyebrow { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 13px; opacity: .9; }
.signin-hero h1 { font-size: 46px; font-weight: 900; letter-spacing: -1px; max-width: 14ch; }
.signin-hero p { font-size: 17px; max-width: 52ch; opacity: .92; margin: 0; }
.signin-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: auto; padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.signin-features div { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 14px; }
.signin-panel { background: var(--surface); padding: 48px 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.signin-panel h2 { font-size: 28px; font-weight: 800; }
.signin-panel .sub { color: var(--brand); font-weight: 600; }
fieldset.plain { border: 0; padding: 0; margin: 0; }
.signin .brand-name { color: #fff; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--text-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  /* The menu opens over the page from the top bar's button. */
  .menu-toggle { display: grid; }
  .sidebar { display: none; position: fixed; top: var(--topbar-height); left: 0; bottom: 0; width: min(300px, 85vw); height: auto; border-radius: 0; z-index: 30; box-shadow: var(--shadow-lg); }
  .sidebar.open { display: flex; }
  .topbar { gap: 12px; padding: 0 12px; }
  .brand-tagline { display: none; }
  .motto { display: none; }
  .brand { width: auto; }
  .system { display: none; }
  .top-search { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .signin { grid-template-columns: 1fr; }
  .signin-hero { padding: 32px 20px; }
  .signin-hero h1 { font-size: 32px; }
  .signin-panel { padding: 32px 20px; }
  .main { padding: 16px; }
  .page-head { flex-wrap: wrap; }
  .page-head .actions { margin-left: 0; }
  dl.details { grid-template-columns: 1fr; gap: 2px; }
  dl.details dd { margin-bottom: 8px; }
  .modal-foot { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .user-name, .user-role { display: none; }
  .brand-name { font-size: 15px; }
  .grid-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Agreements by code (Phase 5g): the SMS that stated the terms, shown as sent. */
.sub-head { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
blockquote.sms { margin: 0; padding: 12px 14px; background: var(--surface-muted); border-left: 3px solid var(--border-strong);
    border-radius: var(--radius-sm); white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
