@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Brand: Talbot Road navy + teal */
  --navy: #252d3a;
  --navy-800: #2f3949;
  --navy-950: #1a2029;
  --teal: #35b2b8;          /* decorative fills only: 2.6:1 on white */
  --teal-600: #1f7f84;      /* text/buttons: 4.9:1 on white */
  --teal-700: #17666a;
  --teal-50: #eaf6f7;
  --teal-100: #d2eef0;
  --teal-on-navy: #6fd3d8;

  --ink: #1d2430;
  --ink-2: #4a5464;
  --muted: #5d6676;
  --line: #e2e6eb;
  --line-strong: #cdd3db;
  --bg: #f3f5f7;
  --surface: #ffffff;

  --amber-700: #8f5200;
  --amber-50: #fff4e2;
  --red-700: #b3261e;
  --red-50: #fdeceb;
  --green-700: #1c7444;
  --green-50: #e8f5ee;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --shadow: 0 1px 2px rgb(29 36 48 / 0.06);
  --shadow-lg: 0 12px 32px rgb(26 32 41 / 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
@media (min-width: 720px) { html { scroll-padding-top: 88px; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hide-sm { display: none; }
@media (min-width: 820px) { .hide-sm { display: table-cell; } }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; }
.topbar__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; min-height: 64px;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.brand__lead { color: var(--teal); }
.brand__tail { color: #fff; }
.brand:hover .brand__lead { color: var(--teal-on-navy); }
.brand--large { font-size: clamp(26px, 5vw, 34px); }
.nav { display: flex; gap: 4px; order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; }
.nav a {
  color: rgb(255 255 255 / 0.78); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px; border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color 150ms;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--teal); }
.signout { margin-left: auto; }
.signout button {
  background: none; border: 1px solid rgb(255 255 255 / 0.25); color: rgb(255 255 255 / 0.85);
  border-radius: var(--r-sm); padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.signout button:hover { border-color: rgb(255 255 255 / 0.6); color: #fff; }
@media (min-width: 720px) {
  .nav { order: 0; width: auto; margin: 0; align-self: stretch; }
  .nav a { display: flex; align-items: center; padding: 0 12px; }
}

/* ---------- Page ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 96px; }
.narrow { max-width: 680px; margin: 0 auto; }
.pagehead {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; margin-bottom: 24px;
}
.pagehead--stack { display: block; }
.pagehead__title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; color: var(--navy); line-height: 1.15; }
.pagehead__sub { margin-top: 6px; color: var(--ink-2); font-size: 17px; }
.pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.crumb a { text-decoration: none; }
.crumb a::before { content: "‹ "; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal-600); color: #fff; }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn--quiet { background: transparent; color: var(--muted); }
.btn--quiet:hover { background: var(--bg); color: var(--ink); }
.btn--link { background: none; color: var(--teal-600); padding: 0 6px; min-height: 32px; }
.btn--link:hover { color: var(--teal-700); text-decoration: underline; }
.btn--danger-link { background: none; border: 0; color: var(--red-700); padding: 0; min-height: 32px; font-weight: 600; cursor: pointer; }
.btn--danger-link:hover { text-decoration: underline; }

/* ---------- Finder (search) ---------- */
.finder { position: relative; width: 100%; max-width: 420px; }
.finder--inline { max-width: 340px; flex: 1 1 220px; }
.finder__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.finder input {
  width: 100%; height: 48px; padding: 0 44px 0 42px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  font-size: 16px; box-shadow: var(--shadow);
  transition: border-color 150ms, box-shadow 150ms;
}
.finder--inline input { height: 42px; box-shadow: none; }
.finder input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); }
.finder input::-webkit-search-cancel-button { cursor: pointer; }
.finder__kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 600 12px/1 var(--font-body); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 6px; background: var(--bg);
}
.finder input:focus ~ .finder__kbd, .finder input:not(:placeholder-shown) ~ .finder__kbd { display: none; }
.finder__results {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  max-height: min(420px, 60vh); overflow-y: auto;
  animation: pop 160ms var(--ease-out);
}
.finder__item {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm);
}
.finder__item.is-active { background: var(--teal-50); }
.finder__item .finder__text { flex: 1; min-width: 0; }
.finder__item a { font-weight: 600; color: var(--ink); text-decoration: none; }
.finder__item a:hover { text-decoration: underline; }
.finder__item small { display: block; color: var(--muted); font-size: 14px; }
.finder__none { padding: 14px 10px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 960px) { .stats { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; } }
.stat {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color 150ms, transform 150ms var(--ease-out);
}
.stat:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.stat__label { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.stat__value {
  font: 700 clamp(34px, 4vw, 44px)/1.05 var(--font-display); color: var(--navy);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat__value.is-warn { color: var(--amber-700); }
.stat__foot { font-size: 14px; color: var(--muted); margin-top: auto; }
.is-danger { color: var(--red-700); font-weight: 600; }
.stat--lead { background: var(--navy); border-color: var(--navy); color: #fff; grid-column: 1 / -1; }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .stat--lead, .stat:last-child { grid-column: auto; } }
.stat--lead:hover { color: #fff; border-color: var(--navy-800); }
.stat--lead .stat__label { color: rgb(255 255 255 / 0.8); }
.stat--lead .stat__value { color: #fff; }
.stat--lead .stat__foot { color: rgb(255 255 255 / 0.78); }
.stat__meter { display: block; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.16); margin: 8px 0 2px; overflow: hidden; }
.stat__meter span { display: block; height: 100%; background: var(--teal); border-radius: 3px; transition: width 600ms var(--ease-out); }

/* ---------- Panels ---------- */
.board { display: grid; gap: 16px; margin-bottom: 16px; align-items: start; }
@media (min-width: 960px) { .board { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } }
@media (min-width: 1100px) { .board--lower { grid-template-columns: 1.15fr 1fr 1fr; } }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow);
}
@media (min-width: 720px) { .panel { padding: 22px 24px; } }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.panel__head h2 { font-size: 18px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.panel__note { font-size: 14px; color: var(--muted); }
.count {
  font: 700 13px/1 var(--font-display); font-variant-numeric: tabular-nums;
  background: var(--teal-50); color: var(--teal-700); border-radius: 6px; padding: 5px 8px;
}
.count--warn { background: var(--amber-50); color: var(--amber-700); }
.group {
  font: 700 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-2); margin: 18px 0 2px; display: flex; gap: 8px; align-items: baseline;
}
.group span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 14px; }
.group--danger { color: var(--red-700); }

/* ---------- Customer rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.rows .row:first-child { border-top: 0; }
.group + .rows .row:first-child { border-top: 1px solid var(--line); }
.row__main { flex: 1 1 220px; min-width: 0; }
.row__name { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.row__name:hover { color: var(--teal-700); text-decoration: underline; }
.row__meta { font-size: 15px; color: var(--muted); margin-top: 1px; }
.row__sep { margin: 0 4px; }
.row__note { color: var(--ink-2); }
.row__hint { font-size: 14px; color: var(--teal-700); margin-top: 2px; }
.row__hint::before { content: "→ "; }
.row__actions { display: flex; gap: 6px; align-items: center; }
.row__actions form { margin: 0; }
.row.is-leaving { animation: leave 220ms var(--ease-out) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(12px); } }

.lateness { font-weight: 700; }
.lateness--late { color: var(--amber-700); }
.lateness--overdue { color: var(--red-700); }

.status { font-weight: 600; }
.status--today { color: var(--teal-600); }
.status--soon { color: var(--navy); }
.status--late { color: var(--amber-700); }
.status--overdue { color: var(--red-700); }
.status--upcoming { color: var(--ink-2); font-weight: 400; }

/* ---------- Empty states ---------- */
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.empty p + p { margin-top: 4px; }
.empty__title { font: 600 17px/1.3 var(--font-display); color: var(--navy); }
.empty .btn { margin-top: 12px; }
.empty--compact { padding: 16px 0 6px; text-align: left; }
.panel--flush .empty--compact { padding: 20px 24px; }

/* ---------- Activity log ---------- */
.log { list-style: none; margin: 0; padding: 0; }
.log__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.log__item:first-child { border-top: 0; }
.log__icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-50); color: var(--green-700);
}
.log__icon.is-late { background: var(--amber-50); color: var(--amber-700); }
.log__icon--skipped { background: var(--bg); color: var(--muted); }
.log__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.log__text a { font-weight: 600; color: var(--ink); text-decoration: none; }
.log__text a:hover { text-decoration: underline; }
.log__meta { font-size: 14px; color: var(--muted); }
.log form { margin: 0; }

/* ---------- Tomorrow list ---------- */
.names { list-style: none; margin: 0; padding: 0; columns: 2 160px; column-gap: 20px; }
.names li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.names a { font-weight: 600; color: var(--ink); text-decoration: none; }
.names a:hover { text-decoration: underline; }
.names span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Weekly pattern chart ---------- */
.week { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week__val { font: 700 14px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.week__bar { width: 100%; max-width: 40px; height: 96px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-strong); }
.week__bar span { display: block; width: 100%; min-height: 0; background: var(--teal-100); border-radius: 4px 4px 0 0; transition: height 600ms var(--ease-out); }
.week__lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.week__day.is-today .week__bar span { background: var(--teal); }
.week__day.is-today .week__lbl, .week__day.is-today .week__val { color: var(--navy); }
.kv { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kv dt { color: var(--ink-2); font-size: 15px; }
.kv dd { margin: 0; font: 700 20px/1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.kv small { font: 400 14px var(--font-body); color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__title { font-size: 18px; font-weight: 700; color: var(--navy); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field[hidden] { display: none; }
.field__label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 8px; padding: 0; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__help { font-size: 14px; color: var(--muted); margin-top: 6px; }
.field__error { font-size: 14px; color: var(--red-700); font-weight: 600; margin-top: 6px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); font-size: 16px;
  transition: border-color 150ms, box-shadow 150ms;
}
.input--lg { height: 54px; font-size: 19px; font-weight: 600; }
.input--date { max-width: 240px; }
.input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); }
.input.is-invalid { border-color: var(--red-700); }
.input::placeholder { color: #8a93a1; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal-600); }

.daypick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .daypick { grid-template-columns: repeat(6, 1fr); } }
.daypick.is-invalid .daypick__opt span { border-color: var(--red-700); }
.daypick__opt { position: relative; cursor: pointer; }
.daypick__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.daypick__opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 68px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}
.daypick__opt b { font: 700 17px/1 var(--font-display); color: var(--navy); }
.daypick__opt i { font-style: normal; font-size: 12px; color: var(--muted); }
.daypick__opt:hover span { border-color: var(--teal-600); }
.daypick__opt input:checked + span { background: var(--teal-50); border-color: var(--teal-600); box-shadow: inset 0 0 0 1px var(--teal-600); }
.daypick__opt input:checked + span b { color: var(--teal-700); }
.daypick__opt input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.choice { display: grid; gap: 8px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice__opt {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color 150ms, background-color 150ms;
}
.choice__opt:has(input:checked) { border-color: var(--teal-600); background: var(--teal-50); }
.choice__opt input { width: 18px; height: 18px; accent-color: var(--teal-600); margin: 0; }
.choice__opt span { font-weight: 600; }

.split { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; } }
.stack { display: grid; gap: 20px; }
.danger-zone { display: grid; gap: 16px; }
.danger-zone p { margin-bottom: 10px; font-size: 15px; }
.callout {
  background: var(--amber-50); color: var(--amber-700); border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 20px; font-weight: 600;
}

/* ---------- Customers table ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--r-sm); }
.segmented button {
  border: 0; background: none; border-radius: 6px; padding: 7px 10px; font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer; min-height: 34px;
}
.segmented button span { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
.segmented button:hover { color: var(--ink); }
.segmented button.is-on { background: var(--surface); color: var(--navy); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th {
  text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fafbfc;
}
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafb; }
.table__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.table__name:hover { color: var(--teal-700); text-decoration: underline; }
@media (max-width: 600px) {
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
  .table td, .table th { padding-left: 16px; padding-right: 16px; }
}
.footlink { margin-top: 16px; font-size: 15px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  display: flex; align-items: center; gap: 6px 14px;
  background: var(--navy-950); color: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 12px 10px 12px 18px; animation: toast-in 240ms var(--ease-out);
}
.toast.is-hiding { animation: toast-out 200ms ease-in forwards; }
.toast__msg { font-size: 15px; }
.toast form { margin: 0; }
.toast__undo {
  background: none; border: 0; color: var(--teal-on-navy); font-weight: 700; cursor: pointer;
  padding: 8px 10px; border-radius: 6px; font-size: 15px;
}
.toast__undo:hover { background: rgb(255 255 255 / 0.08); }
.toast__close { background: none; border: 0; color: rgb(255 255 255 / 0.7); cursor: pointer; padding: 8px; border-radius: 6px; display: grid; }
.toast__close:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Login ---------- */
.is-login { background: var(--navy); }
.is-login .page { min-height: 100vh; display: grid; place-items: center; padding-top: 40px; padding-bottom: 40px; }
.login { width: 100%; max-width: 400px; display: grid; gap: 28px; }
.login__brand { text-align: center; }
.login__tag { color: rgb(255 255 255 / 0.75); margin-top: 8px; font-size: 16px; }
.login__card { background: var(--surface); border-radius: var(--r-md); padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow-lg); }
.login__card h1 { font-size: 22px; color: var(--navy); }
.alert { background: var(--red-50); color: var(--red-700); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; font-size: 15px; }
.alert code { font-size: 14px; }

/* ---------- Error page ---------- */
.narrow .panel.empty { padding: 40px 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
@media print {
  .topbar, .finder, .row__actions, .toast, .stats { display: none; }
  .panel { box-shadow: none; break-inside: avoid; }
}
