/*
 * styles.css — all styling for the demo.
 * To re-brand later, change the colour and font values in :root below.
 */
:root {
  --brand: #1f3a5f;          /* main navy */
  --brand-dark: #142740;
  --brand-soft: #e8eef6;     /* pale navy tint */
  --accent: #2f7d6d;         /* teal used for positive states */
  --accent-soft: #e3f2ee;
  --warn: #9a6a00;
  --warn-soft: #fbf3df;
  --danger: #a33a3a;
  --danger-soft: #f8e7e7;

  --text: #1d2430;
  --text-muted: #5b6573;
  --border: #d9dee5;
  --surface: #ffffff;
  --background: #f4f6f9;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 39, 64, 0.06), 0 2px 8px rgba(20, 39, 64, 0.05);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; color: var(--brand-dark); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Demo banner, header, footer ---------- */
.demo-banner {
  background: var(--warn-soft);
  color: var(--warn);
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-bottom: 1px solid #efdfb4;
}

.site-header { background: var(--brand); color: #fff; }
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; flex-wrap: wrap; max-width: 1280px;
}
.brand {
  font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px; margin-right: auto;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800;
}
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #dbe5f1; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.95rem;
}
.main-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.main-nav a.active { background: rgba(255,255,255,0.18); color: #fff; font-weight: 600; }

.account-chip {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #dbe5f1;
}
.account-chip strong { color: #fff; display: block; font-size: 0.92rem; }
.account-chip .switch {
  color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 6px;
  padding: 5px 10px; text-decoration: none; white-space: nowrap;
}
.account-chip .switch:hover { background: rgba(255,255,255,0.1); }

.menu-toggle {
  display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer;
}

.site-footer {
  margin-top: auto; border-top: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 0.85rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }

/* ---------- Page layout ---------- */
.page { padding: 32px 0 48px; outline: none; }
.page-header { margin-bottom: 24px; }
.page-header p { color: var(--text-muted); max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card { margin-top: 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.stack > * + * { margin-top: 12px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none;
}
.button:hover { background: var(--brand-dark); }
.button.secondary { background: #fff; color: var(--brand); }
.button.secondary:hover { background: var(--brand-soft); }
.button.large { padding: 13px 26px; font-size: 1.05rem; }
.button[disabled], .button.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.link-button {
  background: none; border: none; color: var(--brand); font: inherit; cursor: pointer;
  text-decoration: underline; padding: 0;
}

/* ---------- Badges and status ---------- */
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.badge.positive { background: var(--accent-soft); color: var(--accent); }
.badge.warning { background: var(--warn-soft); color: var(--warn); }
.badge.negative { background: var(--danger-soft); color: var(--danger); }
.badge.neutral { background: #eceff3; color: var(--text-muted); }

.progress { height: 8px; background: #e6eaf0; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Welcome page ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #2b5285 100%);
  color: #fff; border-radius: 14px; padding: 48px 40px; margin-bottom: 32px;
}
.hero h1 { color: #fff; font-size: 2.3rem; max-width: 720px; }
.hero .lead { font-size: 1.15rem; color: #dbe5f1; max-width: 640px; }
.hero .proposition { font-size: 1.3rem; font-weight: 600; margin: 20px 0 28px; color: #fff; }
.hero .button { background: #fff; color: var(--brand); border-color: #fff; }
.hero .button:hover { background: var(--brand-soft); }

.step-number {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px;
}
.focus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.focus-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.focus-list strong { display: block; color: var(--brand-dark); }

.section-title { margin-top: 40px; }

/* ---------- Account chooser ---------- */
.business-group + .business-group { margin-top: 28px; }
.business-group h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.business-group h2 .muted { font-size: 0.9rem; font-weight: 400; }
.person-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow);
}
.person-card:hover, .person-card:focus-visible { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.person-card[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.person-card .name { font-weight: 600; }
.person-card .meta { color: var(--text-muted); font-size: 0.85rem; }
.person-card .badges { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Dashboard ---------- */
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.empty { color: var(--text-muted); font-style: italic; }

/* ---------- Placeholder ---------- */
.placeholder { border-style: dashed; text-align: center; padding: 40px 20px; }
.placeholder .badge { margin-bottom: 12px; }

/* ---------- Notices ---------- */
.notice { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 12px 16px; border-radius: 6px; }
.notice.warning { border-color: var(--warn); background: var(--warn-soft); }

.notice + * { margin-top: 0; }
.notice.success { border-color: var(--accent); background: var(--accent-soft); margin-bottom: 20px; }
.notice.error { border-color: var(--danger); background: var(--danger-soft); margin-bottom: 20px; outline: none; }
.notice.error ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Questionnaires ---------- */
.container.narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; }
.stepper li + li::before { content: ""; width: 24px; height: 2px; background: var(--border); margin-right: 2px; }
.stepper-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.stepper li.current { color: var(--brand-dark); font-weight: 600; }
.stepper li.current .stepper-dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper li.done .stepper-dot { border-color: var(--accent); background: var(--accent); color: #fff; }

.questionnaire-progress { margin-bottom: 20px; color: var(--text-muted); }

.section-intro { margin-bottom: 14px; }
.question { border: 1px solid var(--border); margin: 0 0 16px; min-width: 0; }
.question legend, .legend-like {
  font-weight: 700; color: var(--brand-dark); font-size: 1.02rem; padding: 0; display: block; margin-bottom: 4px;
}
fieldset.question > legend { float: left; width: 100%; }
fieldset.question > legend + * { clear: both; }
.question-number {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  align-items: center; justify-content: center; font-size: 0.85rem; margin-right: 8px;
}
.question-text { color: var(--text-muted); margin: 4px 0 12px; }

.options { display: grid; gap: 10px; }
.options.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; background: var(--surface);
}
.option:hover { border-color: var(--brand); }
.option.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.option.compact { align-items: center; padding: 8px 14px; gap: 8px; }
.option.disabled { opacity: 0.5; cursor: not-allowed; }
.option input { margin: 4px 0 0; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.option.compact input { margin: 0; }
.option-letter {
  flex: none; width: 26px; height: 26px; border-radius: 6px; background: #eceff3; color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.option.selected .option-letter { background: var(--brand); color: #fff; }
.option-name { font-weight: 600; display: block; }
.option-text { display: block; color: var(--text-muted); font-size: 0.9rem; font-weight: 400; }

.focus-choices { display: grid; gap: 12px; }
.focus-choice { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: var(--surface); }
.focus-choice.selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.focus-choice.disabled { opacity: 0.55; }
.focus-choice-head { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.focus-choice-head.static { cursor: default; }
.focus-choice-head input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.focus-choice.disabled .focus-choice-head { cursor: not-allowed; }
.sub-question { border: none; padding: 0; margin: 12px 0 0; min-width: 0; }
.sub-question legend { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.hint { font-size: 0.82rem; color: var(--text-muted); margin: 8px 0 0; }

.experience-key { display: grid; gap: 6px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.badge.personal { background: #f1e9f7; color: #6b3d8c; }

textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.availability-switch { border-top: 1px solid var(--border); padding: 12px 0; margin-bottom: 12px; }
/* A sliding on/off switch drawn from the checkbox. */
.availability-switch input[role="switch"] {
  appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px;
  background: #c5ccd6; position: relative; cursor: pointer; transition: background 0.15s; margin-top: 0;
}
.availability-switch input[role="switch"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: left 0.15s;
}
.availability-switch input[role="switch"]:checked { background: var(--accent); }
.availability-switch input[role="switch"]:checked::after { left: 21px; }
.availability-switch input[role="switch"]:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }

.wizard-buttons {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
}

.review-section { padding: 16px 0; border-top: 1px solid var(--border); }
.review-section h3 { margin: 0; }
.review-list { display: grid; grid-template-columns: minmax(160px, 36%) 1fr; gap: 8px 16px; margin: 12px 0 0; }
.review-list dt { color: var(--text-muted); font-size: 0.9rem; }
.review-list dd { margin: 0; }
.small-button { padding: 6px 14px; font-size: 0.85rem; }

/* ---------- Tables (score breakdown, tests) ---------- */
.test-table, .breakdown { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.test-table th, .test-table td, .breakdown th, .breakdown td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.test-table th, .breakdown th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.test-table tr.fail td { background: var(--danger-soft); }
.breakdown td.points { white-space: nowrap; font-weight: 600; text-align: right; }
.breakdown tfoot td { font-weight: 700; border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- Matches ---------- */
.match-card { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; }
.match-card + .match-card { margin-top: 16px; }
.match-head { display: flex; gap: 14px; align-items: flex-start; }
.match-head h2 { margin: 0; font-size: 1.2rem; }
.match-score { text-align: center; min-width: 120px; }
.score-ring {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--brand-dark);
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #e6eaf0 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; }
.match-body { grid-column: 1 / -1; }
.match-reason { font-size: 1rem; margin: 0 0 8px; }
.consider { margin: 6px 0 0; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.rank { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.check-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.disclaimer { font-size: 0.85rem; color: var(--text-muted); margin-top: 20px; }

@media (max-width: 720px) {
  .match-card { grid-template-columns: 1fr; }
  .match-score { display: flex; align-items: center; gap: 12px; text-align: left; }
  .score-ring { width: 70px; height: 70px; font-size: 1.25rem; margin: 0; }
  .score-ring::before { inset: 7px; }
}

/* ---------- Introductions ---------- */
.nav-count {
  display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; margin-left: 4px;
  background: #f2b84b; color: var(--brand-dark); font-size: 0.75rem; font-weight: 700; align-items: center; justify-content: center;
}
.confirmation { text-align: center; padding: 32px 24px; margin-bottom: 16px; }
.confirmation h1 { font-size: 1.6rem; max-width: 620px; margin: 0 auto 10px; }
.confirm-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.mini-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 0.9rem; }
.mini-list dt { color: var(--text-muted); }
.mini-list dd { margin: 0; }
.request-card + .request-card { margin-top: 16px; }
.request-list { list-style: none; padding: 0; margin: 0; }
.request-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.request-list li:first-child { padding-top: 0; }
.request-list li:last-child { border-bottom: none; padding-bottom: 0; }
.request-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.person-summary { margin-top: 0 !important; }
.feedback-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.feedback-form h3 { margin-bottom: 4px; }
.text-input {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
}
.text-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Business admin ---------- */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat-grid .card + .card { margin-top: 0; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--brand-dark); line-height: 1.2; margin: 4px 0; }
.stat-unit { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.bar-row + .bar-row { margin-top: 12px; }
.admin-table tr.row-disabled td { background: #f6f7f9; color: var(--text-muted); }
.admin-table .action-cell { text-align: right; white-space: nowrap; }

/* ---------- Loading ---------- */
.loading { color: var(--text-muted); padding: 40px 0; text-align: center; }

/* ---------- Mentoring Workspace ---------- */
.ws-header { margin-bottom: 12px; }
.ws-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.ws-tabs a {
  padding: 10px 14px; text-decoration: none; color: var(--text-muted); font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.ws-tabs a:hover { color: var(--brand); }
.ws-tabs a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.ws-body > .notice, .container > .notice { margin-bottom: 16px; }
.ws-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ws-section-head h2 { margin: 0; }
.ws-people { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: center; }
.ws-person { display: flex; gap: 12px; align-items: center; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.15rem; }
.ws-meta { text-align: right; }
.ws-shortcuts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.ws-list { list-style: none; padding: 0; margin: 0 0 10px; }
.ws-list li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ws-list li:last-child { border-bottom: none; }
.ws-list li.overdue, .request-list li.overdue { background: var(--danger-soft); padding-left: 10px; padding-right: 10px; border-radius: 6px; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.activity li:last-child { border-bottom: none; }
.activity li .muted { white-space: nowrap; }
.ws-item + .ws-item, .ws-form + .ws-item, .ws-item + .ws-form { margin-top: 12px; }
.ws-item .mini-list { margin-top: 10px; }
.ws-form { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); margin-bottom: 16px; }
.ws-form h3 { margin-bottom: 12px; }
.form-field { margin-bottom: 12px; }
.form-field .legend-like { margin-bottom: 4px; }
select.text-input { background: #fff; }
.compact-select { width: auto; padding: 6px 8px; font-size: 0.88rem; }
.ws-group { margin: 22px 0 10px; font-size: 1rem; color: var(--text-muted); }
.overdue-title { color: var(--danger); }
.ws-action-main { flex: 1; min-width: 200px; }
.empty-state { text-align: center; padding: 32px 20px; color: var(--text-muted); border-style: dashed; }
.empty-state p { max-width: 460px; margin: 0 auto 14px; }
.private-note { border-color: var(--accent); background: var(--accent-soft); margin-bottom: 16px; }
.reflection-body { white-space: normal; margin: 10px 0 0; }
.button.danger { color: var(--danger); border-color: var(--danger); }
.button.danger:hover { background: var(--danger-soft); }
.status-panel .button-row { margin-top: 12px; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below this width the navigation folds into a "Menu" button. */
@media (max-width: 1180px) {
  .menu-toggle { display: inline-block; }
  .main-nav, .account-chip { display: none; width: 100%; }
  .site-header.menu-open .main-nav { display: flex; flex-direction: column; padding-bottom: 8px; }
  .site-header.menu-open .account-chip {
    display: flex; justify-content: space-between; padding: 10px 0 14px; border-top: 1px solid rgba(255,255,255,0.15);
  }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.55rem; }
  .page { padding: 22px 0 36px; }
  .stepper-label { display: none; }
  .stepper li.current .stepper-label { display: inline; }
  .review-list { grid-template-columns: 1fr; gap: 2px; }
  .review-list dd { margin-bottom: 10px; }
  .wizard-buttons { flex-direction: column-reverse; align-items: stretch; }
  .wizard-buttons .button-row { flex-direction: column-reverse; }
  .wizard-buttons .button { width: 100%; }

  /* Admin table becomes stacked cards on phones */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .admin-table td { border: none; padding: 3px 0; }
  .admin-table td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  .admin-table td[data-label]::before { content: attr(data-label); color: var(--text-muted); font-size: 0.85rem; }
  .admin-table .action-cell { text-align: left; padding-top: 8px; }
  .confirmation h1 { font-size: 1.3rem; }

  .ws-people { grid-template-columns: 1fr; }
  .ws-meta { text-align: left; }
  .ws-shortcuts .button { flex: 1 1 calc(50% - 10px); }
  .activity li { flex-direction: column; gap: 2px; }
}
