/* SmartIntake portal. Same palette as comptrust.com.au. No external fonts or libraries (strict CSP).
   Colours are semantic tokens, so the dark theme only swaps token values. The theme follows the system setting;
   the toggle in the top bar stores an override as data-theme on <html>, set before first paint by theme.js. */
:root {
  color-scheme: light;
  --navy: #1f3a68; --navy-dark: #142846; --navy-deep: #0d1c36;
  --accent: #d01d50; --accent-dark: #b81a47; --teal: #3aa7c9; --gold: #f2b84b; --green: #1f7a4b;
  --radius: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* surfaces */
  --bg: #f3f6fb; --surface: #fff; --field: #f3f6fb; --hover: #f6f8fc; --line: #e2e8f1;
  --shadow: 0 14px 34px rgba(20, 40, 70, .08); --shadow-hover: 0 20px 40px rgba(20, 40, 70, .12);
  /* text */
  --ink: #17223b; --text: #55697f; --brand: #1f3a68; --accent-text: #b81a47; --on-dark: #c9d5e8;
  /* components */
  --nav-active: #1f3a68; --approve-hover: #17603a; --reject-hover: #fde7ee;
  --warn-bg: #fff3cd; --warn-line: #e0b43a; --warn-text: #4a3800; --warn-pill: #8a6100;
  --ok-bg: #e3f6ec; --ok-text: #14532d; --ok-pill: #1f7a4b;
  --info-bg: #e4f4fb; --info-text: #0f6e8c; --bad-bg: #fde7ee;
  --neutral-bg: #eef1f6; --neutral-text: #4d6079;
  --skel-a: #eef1f6; --skel-b: #f8fafc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #0d1424; --surface: #151f33; --field: #0f182a; --hover: #1b2740; --line: #263552;
      --shadow: 0 14px 34px rgba(0, 0, 0, .35); --shadow-hover: 0 20px 40px rgba(0, 0, 0, .45);
      --ink: #e9eef7; --text: #a8b6ca; --brand: #9cc0ff; --accent-text: #ff8fae; --on-dark: #c9d5e8;
      --nav-active: #2c4f8a; --approve-hover: #23915a; --reject-hover: #3a1622;
      --warn-bg: #3a2e0c; --warn-line: #b58a1d; --warn-text: #f6dc95; --warn-pill: #f2c75c;
      --ok-bg: #12321f; --ok-text: #9be2b8; --ok-pill: #6fd39b;
      --info-bg: #10304a; --info-text: #8fd3f0; --bad-bg: #3a1622;
      --neutral-bg: #222e45; --neutral-text: #b7c3d4;
      --skel-a: #1b2740; --skel-b: #24314d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1424; --surface: #151f33; --field: #0f182a; --hover: #1b2740; --line: #263552;
  --shadow: 0 14px 34px rgba(0, 0, 0, .35); --shadow-hover: 0 20px 40px rgba(0, 0, 0, .45);
  --ink: #e9eef7; --text: #a8b6ca; --brand: #9cc0ff; --accent-text: #ff8fae; --on-dark: #c9d5e8;
  --nav-active: #2c4f8a; --approve-hover: #23915a; --reject-hover: #3a1622;
  --warn-bg: #3a2e0c; --warn-line: #b58a1d; --warn-text: #f6dc95; --warn-pill: #f2c75c;
  --ok-bg: #12321f; --ok-text: #9be2b8; --ok-pill: #6fd39b;
  --info-bg: #10304a; --info-text: #8fd3f0; --bad-bg: #3a1622;
  --neutral-bg: #222e45; --neutral-text: #b7c3d4;
  --skel-a: #1b2740; --skel-b: #24314d;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.2rem; }
code { font-size: .85em; background: var(--field); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -50px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip-link:focus { top: 10px; }
.muted { color: var(--text); }
.small { font-size: .85rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .4em; }

.env-banner { background: var(--warn-bg); color: var(--warn-text); text-align: center; font-size: .88rem; padding: 7px 16px; border-bottom: 1px solid var(--warn-line); }

/* Top navigation */
.topnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topnav__inner { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-size: 1.2rem; }
.brand strong { color: var(--accent); }
.brand em { font-style: normal; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-left: 4px; }
.topnav nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.topnav nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.topnav nav a:hover { background: var(--hover); }
.topnav nav a[aria-current="page"] { background: var(--nav-active); color: #fff; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who__text { display: grid; line-height: 1.2; font-size: .9rem; }
.who__text small { font-size: .78rem; }
.switch-role { display: flex; align-items: center; gap: 6px; }
.switch-role select { font: inherit; font-size: .85rem; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: inherit; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--nav-active); color: #fff; font-weight: 800; flex: none; }

main { padding: 32px 0 48px; }
.foot { padding: 24px 0 40px; font-size: .85rem; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--small { padding: 7px 14px; font-size: .84rem; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { background: var(--hover); border-color: var(--brand); }
.btn--approve { background: var(--green); border-color: var(--green); }
.btn--approve:hover { background: var(--approve-hover); border-color: var(--approve-hover); }
.btn--reject { background: var(--surface); color: var(--accent-text); }
.btn--reject:hover { background: var(--reject-hover); }
.upload-btn { cursor: pointer; }
.upload-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.link { font-weight: 700; font-size: .88rem; }

/* Layout pieces */
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead__stat { text-align: right; }
.pagehead__stat strong { display: block; font-size: 2rem; color: var(--brand); line-height: 1; }
.crumbs { font-size: .88rem; margin-bottom: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card--link { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; margin-top: 20px; }
.stack { display: grid; gap: 20px; }
.notice { background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 8px; padding: 14px 16px; color: var(--warn-text); }
.empty { color: var(--text); text-align: center; padding: 18px; list-style: none; }

/* Progress */
.progress { height: 10px; border-radius: 999px; background: var(--neutral-bg); overflow: hidden; margin: 10px 0; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--accent)); transition: width .6s ease; }
.progress--big { height: 12px; }
.progress--inline { display: inline-block; width: 90px; vertical-align: middle; margin: 0 6px 0 0; }
.w-0 { width: 0 } .w-5 { width: 5% } .w-10 { width: 10% } .w-15 { width: 15% } .w-20 { width: 20% } .w-25 { width: 25% }
.w-30 { width: 30% } .w-35 { width: 35% } .w-40 { width: 40% } .w-45 { width: 45% } .w-50 { width: 50% } .w-55 { width: 55% }
.w-60 { width: 60% } .w-65 { width: 65% } .w-70 { width: 70% } .w-75 { width: 75% } .w-80 { width: 80% } .w-85 { width: 85% }
.w-90 { width: 90% } .w-95 { width: 95% } .w-100 { width: 100% }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist__item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist__item:last-child { border-bottom: 0; }
.checklist__text { flex: 1; display: grid; }
.checklist__text strong { color: var(--ink); }
.checklist__text small { font-size: .82rem; }
.upload-status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; color: var(--brand); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral-text); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--received, .pill--uploaded, .pill--processing, .pill--requested { background: var(--info-bg); color: var(--info-text); }
.pill--review { background: var(--warn-bg); color: var(--warn-pill); }
.pill--approved { background: var(--ok-bg); color: var(--ok-pill); }
.pill--rejected, .pill--quarantined { background: var(--bad-bg); color: var(--accent-text); }
.tfn { display: inline-block; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 1px 7px; }

/* Documents */
.doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.doc__row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.doc__name { color: var(--ink); font-size: .92rem; word-break: break-all; }
.doc__reason { margin: 6px 0 0; color: var(--accent-text); font-size: .88rem; }

/* Skeleton loading placeholders */
.skeleton-list { display: grid; gap: 10px; margin-top: 10px; }
.skeleton-list span, .skeleton { display: block; height: 58px; border-radius: 12px; background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* KPIs and tables */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi strong { display: block; font-size: 1.9rem; color: var(--brand); line-height: 1.1; }
.kpi span { font-size: .86rem; }
.kpi--dark { background: var(--nav-active); border-color: var(--nav-active); color: var(--on-dark); }
.kpi--dark strong { color: #fff; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--hover); }
.table--compact td { padding: 8px 12px; }

/* Review */
.preview { padding: 8px; }
.preview iframe { width: 100%; height: 70vh; border: 0; border-radius: 10px; background: var(--field); }
.field { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 14px; }
.field input, .chat__form input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); }
.field input:focus, .chat__form input:focus { outline: 2px solid var(--accent); background: var(--surface); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Sign in */
.signin { max-width: 560px; margin: 24px auto; }
.signin__other { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.signin__other summary { cursor: pointer; color: var(--text); font-size: .9rem; }
.userlist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.userpick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.userpick:hover { border-color: var(--accent); background: var(--surface); }
.userpick span:last-child { display: grid; line-height: 1.3; }
.userpick strong { color: var(--ink); }
.userpick small { font-size: .82rem; }

/* Assistant */
.chat__log { list-style: none; margin: 0 0 12px; padding: 12px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: var(--field); border-radius: 12px; min-height: 60px; }
.chat__msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; white-space: pre-line; }
.chat__msg--client { align-self: flex-end; background: var(--accent); color: #fff; }
.chat__msg--assistant { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.chat__msg--handoff { background: var(--warn-bg); border-color: var(--warn-line); }
.chat__msg--typing { color: var(--text); font-style: italic; }
.chat__msg--typing::after { content: "..."; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: typing 1.2s steps(4, end) infinite; }
@keyframes typing { from { width: 0; } to { width: 1.2em; } }
@media (prefers-reduced-motion: reduce) { .chat__msg--typing::after { animation: none; } }
.chat__form button:disabled { opacity: .6; cursor: wait; }
.chat__form { display: flex; gap: 8px; align-items: center; }
.chat__form input { margin-top: 0; }
/* Documents in the chat: the file the client sent, then the assistant's verdict */
.chat__log { max-height: 420px; }
.chat__msg--file { font-weight: 600; }
.chat__msg--accepted { background: var(--ok-bg); border-color: var(--ok-pill); color: var(--ok-text); }
.chat__msg--rejected { background: var(--bad-bg); border-color: var(--accent-text); color: var(--ink); }
.chat__attach { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); color: var(--brand); cursor: pointer; }
.chat__attach:hover, .chat__attach:focus-within { border-color: var(--accent); color: var(--accent-text); }
.chat__attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat { position: relative; }
.chat.is-dragging { outline: 3px dashed var(--accent); outline-offset: -6px; }
.chat__drop { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--radius); background: rgba(208, 29, 80, .08); color: var(--accent-text); font-weight: 700; pointer-events: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .who__text { display: none; }
}
@media (max-width: 560px) {
  .topnav__inner { gap: 10px; padding: 8px 0; }
  .brand em { display: none; }
  .who { gap: 8px; }
  .who .avatar { display: none; }
  .who .btn { padding: 7px 14px; font-size: .84rem; }
  .topnav nav { order: 3; width: 100%; }
  .topnav nav ul { overflow-x: auto; scrollbar-width: none; }
  .topnav nav a { white-space: nowrap; }
  .checklist__item { flex-wrap: wrap; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Admin and forms */
.layout--even { grid-template-columns: 1fr 1fr; }
.spaced { margin-top: 20px; }
.field select, .inline-form select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { margin-top: 0; min-width: 150px; padding: 6px 10px; }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-pill); color: var(--ok-text); margin-bottom: 16px; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.template fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
.template legend { font-weight: 800; color: var(--ink); padding: 0 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; padding: 3px 0; }
.check input { accent-color: var(--accent); width: 20px; height: 20px; }
.check { min-height: 32px; cursor: pointer; }
.pagehead__actions { display: flex; align-items: flex-end; gap: 18px; }
@media (max-width: 900px) { .layout--even { grid-template-columns: 1fr; } }

/* Theme toggle: shows a moon in light mode and a sun in dark mode */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--brand); cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--hover); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.theme-toggle--end { margin-left: auto; }

/* Sign-up, sign-in and starting a new file */
.btn--wide { width: 100%; }
.notice--bad { background: var(--bad-bg); border-color: var(--accent-text); color: var(--ink); margin-bottom: 16px; }
.notice--bad ul { margin: 6px 0 0; padding-left: 20px; }
.signin__form { margin: 8px 0 4px; }
.signin__new { margin: 16px 0 0; text-align: center; color: var(--text); }
.signin__new a, .choice a { color: var(--accent-text); font-weight: 700; }
.choices { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.choices legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); cursor: pointer; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 2px rgba(208, 29, 80, .15); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice--consent { font-size: .88rem; margin: 6px 0 16px; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.service { display: flex; flex-direction: column; gap: 10px; }
.service h2 { margin: 0; font-size: 1.15rem; }
.service p { margin: 0; color: var(--text); }
.service .btn { margin-top: auto; }
.service__docs summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.tick-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; font-size: .9rem; }
.tick-list li::before { content: "\2713"; color: var(--ok-pill); font-weight: 700; margin-right: 8px; }
.tick-list--muted li::before { content: "\25CB"; color: var(--text); }
.empty-start { text-align: center; padding: 40px 24px; margin-bottom: 20px; }
.empty-start p { max-width: 520px; margin: 8px auto 18px; color: var(--text); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--neutral-bg); color: var(--neutral-text); vertical-align: middle; }
.checklist__item--optional strong { font-weight: 600; }
.checklist__actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.linkish { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: .84rem; color: var(--brand); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--accent-text); }
.pill--not_applicable { background: var(--neutral-bg); color: var(--neutral-text); }
@media (max-width: 640px) {
  .checklist__item { flex-wrap: wrap; }
  .checklist__actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* Two-step sign-in */
.mfa-steps { padding-left: 20px; display: grid; gap: 10px; }
.mfa-qr { margin: 10px 0; }
.mfa-qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; }
.mfa-key { font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.mfa-cancel { margin-top: 12px; }
.signin__quick { display: grid; gap: 10px; margin: 8px 0 4px; }
.signin__or { text-align: center; margin: 6px 0; }
.btn--microsoft::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  background: linear-gradient(90deg, #f25022 0 47%, transparent 47% 53%, #7fba00 53%) top / 100% 47% no-repeat,
              linear-gradient(90deg, #00a4ef 0 47%, transparent 47% 53%, #ffb900 53%) bottom / 100% 47% no-repeat; }
.passkey-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.passkey-row small { display: block; }
.notice--info { background: var(--hover); border-color: var(--line); margin-bottom: 16px; }

/* File review (accountant's client page) */
.review { grid-column: 1 / -1; }
.review__summary { display: flex; gap: 8px; flex-wrap: wrap; }
.review__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.review__item { display: grid; gap: 2px; padding: 10px 12px; border-left: 4px solid var(--line); border-radius: 6px; background: var(--hover); }
.review__item--problem { border-left-color: var(--accent-text); background: var(--bad-bg); }
.review__item--check { border-left-color: var(--warn-pill); background: var(--warn-bg); }
.review__item--ok { border-left-color: var(--ok-pill); }

/* ---- demo section ---- */
.demo-lead { max-width: 70ch; margin-top: 6px; }
.icon { width: 18px; height: 18px; fill: currentColor; }
.spaced { margin-top: 20px; }
.demo-files { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; }
.demo-files__client { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--field); }
.demo-files__client h3 { margin: 0 0 2px; font-size: 1rem; }
.demo-files__client ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.demo-files__client a { color: var(--accent-text); font-weight: 600; }
.demo-people { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.demo-person { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; }
.demo-person small { display: block; margin-top: 4px; }
.demo-person .pill { margin-left: 8px; }
.demo-feedback textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); resize: vertical; }
.demo-feedback .btn { margin-top: 12px; }
.demo-recent-title { margin-top: 22px; }
.demo-banner { background: var(--accent); color: #fff; }
.demo-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px; }
.demo-banner .btn { background: #fff; color: var(--accent-text); border-color: #fff; }
.tour { position: fixed; left: 18px; bottom: 18px; z-index: 50; width: min(380px, calc(100vw - 36px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 40px rgba(10, 25, 60, .28); }
.tour__head { display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.tour__close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text); }
.tour__title { font-size: 1.05rem; margin: 6px 0; }
.tour__text { margin: 0 0 10px; font-size: .92rem; line-height: 1.5; }
.tour__go { display: inline-block; margin-bottom: 12px; font-weight: 700; color: var(--accent-text); }
.tour__nav { display: flex; justify-content: space-between; gap: 10px; }
.tour__nav .btn[disabled] { opacity: .45; cursor: default; }
@media (max-width: 640px) { .demo-person { flex-direction: column; align-items: flex-start; } }
.signin__forgot { margin: 10px 0 0; text-align: right; font-size: .92rem; }
