:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #1c1f24;
  --muted: #5d6470;
  --accent: #2459c7;
  --border: #dde1e7;
  --success: #1d7a46;
  --error: #b42318;
  --on-accent: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1f2228;
    --text: #e8eaee;
    --muted: #a0a7b3;
    --accent: #7aa2f7;
    --border: #333842;
    --success: #5cc98a;
    --error: #f28b82;
    --on-accent: #10131a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container { max-width: var(--container, 1200px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
/* Staff panel: tables and lists use the extra width. */
body.layout-wide { --container: 1600px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .container { display: flex; align-items: center; min-height: 56px; }
.brand { font-weight: 600; color: var(--text); text-decoration: none; }

main { padding-top: 24px; padding-bottom: 48px; }
a { color: var(--accent); }
.muted { color: var(--muted); }

.messages { list-style: none; padding: 0; }
.message { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 8px; }
.message-success { border-color: var(--success); }
.message-error { border-color: var(--error); }

/* --- Header --- */
.header-row { justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-pill-form { display: contents; }
.nav-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; font: inherit; font-size: 15px; line-height: 1.3;
  color: var(--text); background: transparent;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
}
.nav-pill:hover { background: var(--bg); border-color: var(--border); }
.nav-pill[aria-current="page"] { background: var(--bg); border-color: var(--border); font-weight: 600; }
@media (max-width: 560px) {
  .header-row { flex-direction: column; align-items: stretch; }
  .brand { text-align: center; }
  .header-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
    padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  }
  .nav-pill, .header-nav .button { width: 100%; padding: 8px 6px; border-radius: 8px; }
  .nav-pill[aria-current="page"] { background: var(--surface); }
}
form.inline { display: inline; margin: 0; }

/* --- Forms --- */
label { display: block; font-weight: 500; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], select, textarea {
  width: 100%;
  max-width: 480px;
  padding: 9px 11px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; }
form.stacked > div, form p { margin-bottom: 16px; }
.helptext { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.errorlist { color: var(--error); padding-left: 18px; margin: 4px 0; }

button, .button {
  display: inline-block;
  padding: 9px 16px;
  font: inherit;
  font-weight: 500;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
button.secondary, .button.secondary { color: var(--text); background: transparent; border-color: var(--border); }
button.link-button {
  padding: 0; color: var(--text); background: none; border: none; font-weight: normal;
}
button.link-button:hover { color: var(--accent); }

/* --- Sign-in and 2FA screens --- */
.auth-card {
  max-width: 520px;
  margin: 24px auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
/* The QR code needs a light background, otherwise phones cannot scan it in dark mode. */
.auth-card img[src^="data:image/svg"] { background: #fff; padding: 12px; border-radius: 6px; }

/* --- Staff panel --- */
.panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.panel-content { min-width: 0; }

/* Sidebar (wide screens) */
.panel-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.panel-nav a, .panel-menu nav a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none;
}
.panel-nav a:hover, .panel-menu nav a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.panel-nav a[aria-current="page"], .panel-menu nav a[aria-current="page"] {
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}

/* Collapsible menu (narrow screens) */
.panel-menu { display: none; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.panel-menu summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; list-style: none; border-radius: 12px;
}
.panel-menu summary::-webkit-details-marker { display: none; }
.panel-menu summary::before {
  content: ""; width: 18px; height: 12px; flex: none;
  background: linear-gradient(var(--text) 0 0) top / 100% 2px no-repeat,
              linear-gradient(var(--text) 0 0) center / 100% 2px no-repeat,
              linear-gradient(var(--text) 0 0) bottom / 100% 2px no-repeat;
}
.panel-menu summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.panel-menu[open] summary::after { transform: rotate(180deg); }
.panel-menu-label { color: var(--muted); font-size: 14px; }
.panel-menu-current { font-weight: 600; }
.panel-menu nav {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px;
  padding: 0 8px 8px; border-top: 1px solid var(--border); padding-top: 8px;
}

@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; gap: 20px; }
  .panel-nav { display: none; }
  .panel-menu { display: block; }
}

.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.card-value { font-size: 28px; font-weight: 600; }
.card-label { color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 14px; color: var(--muted); font-weight: 500; }
tr.inactive td { color: var(--muted); }
td.actions { text-align: right; white-space: nowrap; }
td.actions button { padding: 5px 10px; font-size: 14px; }
.badge { font-size: 12px; padding: 1px 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); }
pre { background: var(--surface); padding: 12px; border-radius: 6px; overflow-x: auto; }

/* --- Participants --- */
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

.consent-box { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.consent-box h2 { margin-top: 0; font-size: 18px; }
.consent-text { max-height: 320px; overflow-y: auto; padding-right: 8px; }

fieldset { border: none; padding: 0; margin: 0 0 16px; }
legend { font-weight: 500; margin-bottom: 6px; }
fieldset div > div { margin-bottom: 6px; }
fieldset label { display: inline; font-weight: normal; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--border); padding-left: 10px; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.checkbox label { display: inline; font-weight: normal; flex: 1; }
.checkbox .errorlist { flex-basis: 100%; }

.study-code-box { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 16px 0 24px; }
.study-code { font: 600 44px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; margin: 6px 0; }

.search { display: flex; gap: 8px; }
.search input { width: 160px; }
.pagination { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }
.danger-zone { margin-top: 32px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.danger-zone h2 { margin-top: 0; font-size: 18px; }
.temp-password { font-size: 28px; padding: 12px 16px; background: var(--surface); border-radius: 8px; display: inline-block; }
.message-warning { border-color: #c98a1d; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Questionnaires --- */
.q-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 24px; counter-reset: q; }
.q-item {
  counter-increment: q;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.q-item > fieldset { margin: 0; }
.q-item > label:first-child, .q-item > fieldset > legend {
  font-size: 17px; font-weight: 600; margin-bottom: 10px; padding: 0;
}
.q-item > label:first-child::before, .q-item > fieldset > legend::before {
  content: counter(q) ". "; color: var(--muted); font-weight: 500;
}
.q-item.required > label:first-child::after,
.q-item.required > fieldset > legend::after { content: " *"; color: var(--error); }
.q-item .helptext { margin: -6px 0 10px; }
.q-item input[type="text"], .q-item input[type="number"], .q-item select, .q-item textarea { max-width: 100%; }
.q-item input[type="number"] { max-width: 220px; }
.q-item.has-error { border-color: var(--error); box-shadow: inset 3px 0 0 var(--error); }
/* Follow-up questions (shown depending on an earlier answer) */
.q-item[data-condition] { box-shadow: inset 3px 0 0 var(--accent); }
.q-item[data-condition].has-error { box-shadow: inset 3px 0 0 var(--error); }

/* Choice options as clickable rows */
.q-item div[id^="id_"] { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.q-item div[id^="id_"] > div { margin: 0; }
.q-item div[id^="id_"] label {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 12px;
  font-weight: normal;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer;
}
.q-item div[id^="id_"] label:hover { border-color: var(--muted); }
.q-item div[id^="id_"] label:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}
.q-item div[id^="id_"] input { margin: 0; flex: none; accent-color: var(--accent); }
.q-item input[type="radio"] { width: 18px; height: 18px; }

/* Section titles */
.q-heading { margin-top: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.q-list > .q-heading:first-child { margin-top: 0; }
.q-heading h2 { margin: 0; font-size: 21px; }
.q-heading p { margin: 6px 0 0; color: var(--muted); }

span.required { color: var(--error); }
.ok { color: var(--success); }
.field-list { list-style: none; padding: 0; margin: 12px 0; counter-reset: q; }
.field-item {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px;
}
.field-main { min-width: 0; flex: 1 1 280px; }
.field-item:not(.field-item-heading) { counter-increment: q; }
.field-label::before { content: counter(q) ". "; color: var(--muted); }
.field-item-heading { background: var(--surface); border-color: transparent; }
.field-heading { font-weight: 600; font-size: 17px; }
.field-condition { margin-top: 4px; color: var(--accent); }
.field-item-conditional { margin-left: 24px; }
.condition-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; }
.condition-box legend { padding: 0 6px; }
.condition-box div[id^="id_"] > div { margin-bottom: 4px; }
.field-label .required { color: var(--error); }
.field-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.small-button { padding: 4px 10px; font-size: 14px; }
.draft-box { padding: 16px; border: 1px dashed var(--accent); border-radius: 10px; margin-bottom: 32px; }
.draft-box h2 { margin: 0; }
.inline-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.inline-fields input { max-width: 180px; }
.preview-frame { padding: 20px; border: 1px solid var(--border); border-radius: 10px; max-width: 720px; }
dl.answers dt { font-weight: 500; margin-top: 12px; }
dl.answers dd { margin: 2px 0 0; color: var(--muted); }

/* --- Participant table --- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin: 12px 0; }
.filters input, .filters select { width: auto; min-width: 140px; }
.filters label { font-size: 14px; }
.filter-check { align-items: center; }
.data-table td, .data-table th { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.data-table .col-custom { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover { color: var(--accent); }
.nowrap { white-space: nowrap; }
.section { margin-top: 32px; }
.filter-check label { flex: none; }

/* --- Scheduling --- */
.callout { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 8px; margin: 12px 0; }
.callout form { margin: 0; }
.callout-warning { display: block; border-color: #c98a1d; }
.callout h2 { font-size: 16px; margin: 0 0 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.mark-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.tabs { display: flex; gap: 4px; margin: 20px 0 8px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.day-heading { font-size: 16px; margin: 24px 0 8px; }
.slot-list { list-style: none; padding: 0; margin: 0; }
.slot-row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; color: var(--text); text-decoration: none; }
.slot-row:hover { border-color: var(--accent); }
.slot-time { font-weight: 600; min-width: 110px; }
.slot-place { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occupancy { font-variant-numeric: tabular-nums; }
.occupancy.full { color: var(--muted); }
@media (max-width: 560px) {
  .slot-time { min-width: 0; flex: 1; }
  .slot-place { flex: none; }
  .slot-place { order: 3; flex-basis: 100%; }
}
.badge-ok { border-color: var(--success); color: var(--success); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.inline-form label { margin: 0; }
.inline-form input { width: 120px; }
.weekdays div[id] { display: flex; gap: 12px; flex-wrap: wrap; }
.weekdays label { font-weight: normal; }
.preview-list { columns: 2 220px; font-size: 14px; }
.visit-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.visit-when { font-size: 22px; font-weight: 600; margin: 6px 0; }
.slot-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-buttons form { margin: 0; }
.slot-button { display: flex; flex-direction: column; align-items: center; min-width: 96px; color: var(--text); background: var(--surface); border-color: var(--border); }
.slot-button:hover { border-color: var(--accent); }
.slot-button .small { color: var(--muted); font-weight: normal; }
.card-link { color: var(--text); text-decoration: none; }
.card-link:hover { border-color: var(--accent); }
.card-warning { border-color: #c98a1d; }

/* --- Export --- */
.export-form fieldset > div > div { margin-bottom: 6px; }
.export-form fieldset label { font-weight: normal; }

/* --- Layout: sticky footer --- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; }

/* --- Header buttons --- */
.brand { font-size: 17px; }
.header-button { padding: 6px 14px; font-size: 15px; }
.header-nav a.button { color: var(--on-accent); }
.header-nav a.button.secondary { color: var(--text); }

/* --- Home page --- */
.hero { padding: 40px 0 32px; max-width: 720px; }
.hero-lead:empty { display: none; }
.hero-eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; margin: 0 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.hero-lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button-large { padding: 14px 26px; font-size: 17px; border-radius: 8px; }
@media (max-width: 520px) {
  .hero-actions .button-large { flex: 1 1 100%; text-align: center; }
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0 40px; }
.step { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.step h3 { margin: 10px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px;
}

.about { padding-top: 8px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.about h3 { font-size: 16px; margin-bottom: 4px; }
.about p { color: var(--muted); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0 20px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer-title { color: var(--text); font-weight: 600; margin-bottom: 6px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-copy { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid var(--border); }

/* --- Registration wizard --- */
.wizard-steps { list-style: none; padding: 0; margin: 8px 0 28px; display: flex; gap: 8px; }
.wizard-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--border); color: var(--muted); font-size: 14px; }
.wizard-steps li.current { border-color: var(--accent); color: var(--text); font-weight: 600; }
.wizard-steps li.done { border-color: var(--success); }
.wizard-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); font-size: 13px; }
.wizard-steps li.current .wizard-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wizard-steps li.done .wizard-dot { border-color: var(--success); color: var(--success); }
@media (max-width: 520px) { .wizard-steps li:not(.current) .wizard-label { display: none; } }
.step-title { font-size: 20px; margin: 0 0 16px; }
.choice-cards { display: grid; gap: 12px; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: normal; }
.choice-card:hover { border-color: var(--accent); }
.choice-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.choice-card input { margin-top: 3px; }
.choice-body { display: flex; flex-direction: column; gap: 4px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
dl.summary { margin: 16px 0; }

/* --- Wide screens --- */
@media (min-width: 1000px) {
  /* Home: intro on the left, the three steps on the right. */
  .home-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 56px; align-items: center; padding: 32px 0 24px; }
  .home-top .hero { padding: 24px 0; }
  .home-top .steps { grid-template-columns: 1fr; margin: 0; }
  .home-top .step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
  .home-top .step-number { grid-row: span 2; }
  .home-top .step h3 { margin: 2px 0 4px; }
  .about { padding-top: 32px; }
  .panel-nav { position: sticky; top: 24px; }
}
@media (min-width: 1400px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 52px; }
}

/* --- Skip link (visible on keyboard focus) --- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* --- Footer copy and long-form pages --- */
.footer-copy p + p { margin-top: 4px; }
.prose h2 { margin-top: 32px; font-size: 21px; }
.prose h3 { margin-top: 20px; font-size: 17px; }
.prose li { margin-bottom: 6px; }

/* --- Registration timeout notice --- */
.timeout-notice:not(.visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.timeout-notice.visible {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50;
  width: min(560px, calc(100% - 32px));
  padding: 14px 16px; border: 2px solid var(--accent); border-radius: 10px;
  background: var(--bg); box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
}
.timeout-notice p { margin: 0 0 10px; }
.timeout-notice p:last-child { margin-bottom: 0; }

/* --- Visits: confirmation and assignment --- */
.badge-warning { border-color: #c98a1d; color: #c98a1d; }
.visit-status { margin: 12px 0 0; font-size: 14px; }
.visit-card + .visit-card { margin-top: 12px; }
.visit-card-muted { background: transparent; }
.visit-card-muted .visit-when { font-size: 16px; color: var(--muted); }
.visit-card ~ .small { margin-top: 16px; }
.booking-list { list-style: none; padding: 0; margin: 12px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.booking-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.booking-card.inactive { opacity: 0.6; background: transparent; }
.booking-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.booking-code { font-weight: 600; font-size: 17px; }
.booking-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-top: 12px; }
.assign-form label { font-size: 14px; color: var(--muted); font-weight: normal; }
.assign-row { display: flex; gap: 8px; }
.assign-row select { width: auto; min-width: 0; max-width: 260px; padding: 6px 10px; }
.booking-actions { margin: 0; }
