/* ==========================================================================
   ZoFa design system
   Tokens and components from the 2026 redesign handoff.
   Square corners everywhere (radius 0); exceptions: pills/badges 2px, avatars round.
   Flat: 1px borders, no shadows in the app.
   ========================================================================== */

:root {
  /* Brand / neutrals.
     Darkened from the handoff's values: as specified, --muted (4.4:1) and
     --faint (3.0:1) failed WCAG AA for body text, which read as washed out.
     Every text token below now clears 4.5:1 on both white and the page grey. */
  --slate: #1B2733;
  --slate-mid: #3A4C5E;
  --slate-dark: #2C3E4E;
  --muted: #556777;
  --faint: #586A7D;
  --on-slate: #CBD5DD;
  --slate-rule: #3D4F5E;

  /* Orange */
  --orange: #F79A3E;
  --orange-hover: #E2822A;
  --orange-deep: #D97E20;
  /* Orange used as *text* on a light tint (badges, "unpublished", warnings).
     The handoff's #B26A15 only reached 3.7:1 on the tint; this clears AA. */
  --orange-text: #9A5A10;
  --orange-text-dark: #6B4A18;
  --orange-tint: #FCEFD9;
  --orange-tint-soft: #FFF9F1;
  --orange-wash: #FFF6EB;
  --orange-border: #F0C285;

  /* Link */
  --link: #2E6FB7;

  /* Preference scale */
  /* Preference fills, deliberately saturated so preferred/not-available pop.
     Dark text on them still clears WCAG AA (green 5.4:1, red 4.7:1). */
  --pref-bg: #A6E3BC;
  --pref-text: #1E5C3B;
  --pref-strong: #2C7A50;
  --pref-border: #78CD97;
  --pref-soft: #EAF5EE;
  --pref-soft-border: #BFDCCB;

  --ok-bg: #E9EDF0;
  --ok-text: #46586A;
  --ok-border: #C9D3DB;

  --no-bg: #F5AEBB;
  --no-text: #8E2438;
  --no-link: #B23A50;
  --no-border: #EA8296;
  --no-soft: #FBEDF0;
  --no-soft-border: #EFC4CD;

  /* Surfaces */
  --page-bg: #EEF2F5;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFB;
  --surface-marketing: #F6F9FB;
  --card-border: #DDE4E9;
  --hairline: #E7ECF0;
  --row-divider: #F0F3F6;
  --weekend: #F3F6F8;
  --hover: #F1F4F6;
  --row-hover: #F5F8FA;
  --control-border: #D5DDE3;
  --idle-border: #E1E7EC;
  --chip-bg: #EDF1F4;

  /* Type */
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --shell-max: 1480px;
  --page-max: 1200px;
  --gutter: 28px;
  --card-gap: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--slate);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.3px; }

img { max-width: 100%; }

/* ==========================================================================
   App shell
   ========================================================================== */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.app-header {
  background: var(--slate);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  height: 60px;
  flex: none;
}

.brand {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand .zo { color: #fff; }
.brand .fa { color: var(--orange); }

.app-header .page-title {
  font-size: 15px;
  color: var(--on-slate);
  border-left: 1px solid var(--slate-rule);
  padding-left: 20px;
  height: 28px;
  display: flex;
  align-items: center;
}

.app-header .spacer,
.spacer { flex: 1; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--on-slate);
}
.header-tools strong { color: #fff; }
.header-tools a { color: var(--on-slate); }
.header-tools a.accent { color: var(--orange); }

/* Tab bar */
.tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--card-border);
  padding: 0 var(--gutter);
  display: flex;
  flex: none;
  position: relative;
}
.tabs-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
/* Hamburger toggle — hidden on desktop, shown on mobile via the media query. */
.tabs-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  padding: 14px 4px;
}
.burger, .burger::before, .burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }

.tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 14px 11px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}
.tab:hover { color: var(--slate); text-decoration: none; }
.tab.is-active {
  border-bottom-color: var(--orange);
  color: var(--slate);
  font-weight: 700;
}

/* Tab that opens a list of the user's services */
.tab-menu { position: relative; display: inline-block; }
.tab-menu > .tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-menu .caret { font-size: 10px; color: var(--faint); }
.tab-menu.is-open > .tab { color: var(--slate); }
.tab-menu.is-open .caret { color: var(--orange); }
.tab-menu .menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(34, 49, 63, 0.12);
  padding: 6px 0;
}
.tab-menu.is-open .menu { display: block; }
.tab-menu .menu-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 6px 16px 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}
.tab-menu .menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--slate);
  white-space: nowrap;
}
.tab-menu .menu a:hover { background: var(--row-hover); text-decoration: none; }
.tab-menu .menu a.is-current {
  font-weight: 700;
  border-left: 3px solid var(--orange);
  padding-left: 13px;
}

.app-main {
  flex: 1;
  padding: var(--gutter);
}
.app-main > .shell {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.app-footer {
  flex: none;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
}
.card-pad { padding: 20px 22px; }

.card-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.card-title { font-size: 17px; font-weight: 600; letter-spacing: 0; }
/* Service switcher sitting inside a card title */
.title-select {
  width: auto;
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--link);
  border: 1px solid transparent;
  background: transparent;
  padding: 2px 6px;
  cursor: pointer;
}
.title-select:hover { border-color: var(--control-border); background: var(--surface); }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px 24px; }

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.toolbar {
  padding: 12px 24px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--slate-mid);
}

/* Layout helpers */
.stack { display: flex; flex-direction: column; gap: var(--card-gap); }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-main-side {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 380px;
  gap: var(--card-gap);
  align-items: start;
}
.grid-service {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 360px;
  gap: var(--card-gap);
  align-items: start;
}
.narrow { max-width: 760px; margin: 0 auto; }
.narrow-wide { max-width: 820px; margin: 0 auto; }
.narrow-profile { max-width: 880px; margin: 0 auto; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  border-radius: 5px;
  /* Glossy, raised "iOS6-ish" buttons: a vertical gradient (set per variant),
     a bright top highlight, a darker bottom edge, and a soft drop shadow. On
     click they press in. Colour comes from the variant classes below. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              inset 0 -1px 0 rgba(34, 49, 63, 0.12),
              0 1px 2px rgba(34, 49, 63, 0.28);
  transition: box-shadow 0.12s ease, transform 0.06s ease, filter 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
              inset 0 -1px 0 rgba(34, 49, 63, 0.12),
              0 3px 7px rgba(34, 49, 63, 0.3);
}
.btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
  box-shadow: inset 0 2px 5px rgba(34, 49, 63, 0.32),
              0 1px 1px rgba(34, 49, 63, 0.14);
}
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(180deg, #FBB064 0%, #F79A3E 52%, #F28F32 100%);
  color: #fff; border-color: #DB8022; font-weight: 700;
  text-shadow: 0 -1px 0 rgba(34, 49, 63, 0.18);
}
.btn-primary:hover, .btn-primary:active { color: #fff; border-color: #DB8022; }

.btn-secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF1F5 100%);
  color: var(--slate); border-color: #C6D0D9;
}
.btn-secondary:hover, .btn-secondary:active { color: var(--slate); }

.btn-outline-orange {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF1E1 100%);
  color: var(--orange-deep); border-color: var(--orange); font-weight: 700;
}
.btn-outline-orange:hover, .btn-outline-orange:active { color: var(--orange-deep); }

.btn-success {
  background: linear-gradient(180deg, #3B9A67 0%, #2C7A50 52%, #276E48 100%);
  color: #fff; border-color: #205C3C; font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.22);
}
.btn-success:hover, .btn-success:active { color: #fff; border-color: #205C3C; }

.btn-ghost-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #fff; border-color: #5A6C7C; font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.btn-ghost-dark:hover, .btn-ghost-dark:active { color: #fff; }

.btn-sm { font-size: 12.5px; padding: 8px 15px; }
.btn-block { width: 100%; }
.btn-action {
  justify-content: flex-start;
  text-align: left;
  padding: 12px 16px;
}
.btn-action .arrow { margin-left: auto; }

.btn-link {
  appearance: none;
  background: none;
  border: none;
  color: var(--link);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}
.btn-link:hover { text-decoration: underline; }
.link-danger { color: var(--no-link); }

/* Month pager */
.pager { display: flex; align-items: center; gap: 8px; }
.pager-btn {
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: 1px solid var(--control-border);
  background: var(--surface);
  cursor: pointer;
  color: var(--slate-mid);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  border-color: #C6D0D9;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF1F5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
              inset 0 -1px 0 rgba(34, 49, 63, 0.1),
              0 1px 2px rgba(34, 49, 63, 0.22);
  transition: box-shadow 0.12s ease, transform 0.06s ease, filter 0.12s ease;
}
.pager-btn:hover { text-decoration: none; filter: brightness(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 5px rgba(34, 49, 63, 0.26); }
.pager-btn:active { transform: translateY(1px); filter: brightness(0.96); box-shadow: inset 0 2px 4px rgba(34, 49, 63, 0.28); }
.pager-label {
  font-size: 14px;
  font-weight: 600;
  min-width: 78px;
  text-align: center;
}

/* ==========================================================================
   Badges, chips, avatars
   ========================================================================== */

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 2px;
  padding: 2px 9px;
  white-space: nowrap;
}
.badge-published { color: var(--pref-strong); background: var(--pref-soft); }
.badge-pending,
.badge-draft,
.badge-unpublished { color: var(--orange-text); background: var(--orange-tint); }
.badge-danger { color: var(--no-text); background: var(--no-bg); }
.badge-lg { font-size: 12px; padding: 4px 12px; }

.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-mid);
  background: var(--chip-bg);
  border-radius: 0;
  padding: 3px 8px;
}
.chip-soft { font-weight: 600; font-size: 12.5px; border-radius: 2px; padding: 5px 13px; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--slate-mid);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.avatar-dark { background: var(--slate); color: #fff; }
.avatar-mid { background: var(--slate-mid); color: #fff; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }
.avatar-md { width: 34px; height: 34px; font-size: 12px; }

/* ==========================================================================
   Forms
   ========================================================================== */

label { font-size: 13px; font-weight: 600; color: var(--slate); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--slate);
  background: var(--surface);
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
}
select { max-width: 100%; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline input[type="checkbox"],
.field.inline input[type="radio"] { width: auto; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.errorlist {
  list-style: none;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--no-soft);
  border: 1px solid var(--no-soft-border);
  color: var(--no-text);
  font-size: 13px;
}

fieldset {
  border: 1px solid var(--card-border);
  border-radius: 0;
  padding: 14px 16px;
  margin: 0 0 16px;
}
legend {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 6px;
}

/* ==========================================================================
   Generic data table
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--row-divider);
}
.table tbody tr:hover { background: var(--row-hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Dashboard: shifts-per-service table
   ========================================================================== */

.shift-grid { display: flex; flex-direction: column; }
.shift-grid .head,
.shift-grid .line {
  display: grid;
  grid-template-columns: 90px repeat(var(--cols, 4), 1fr);
  gap: 0;
}
/* Public schedule: cap column width so a few services don't stretch across
   the whole page (which reads as empty/hard to scan). Columns shrink below
   the cap on narrow screens; extra space is left to the right. */
.shift-grid--capped .head,
.shift-grid--capped .line {
  grid-template-columns: 90px repeat(var(--cols, 4), minmax(0, 250px));
  justify-content: start;
}
.shift-grid .head {
  font-size: 12.5px;
  padding: 10px 22px 6px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
}
.shift-grid .head > div + div,
.shift-grid .line > .cell {
  border-left: 1px solid var(--hairline);
  padding-left: 12px;
}
.shift-grid .body { padding: 0 22px 18px; }
.shift-grid .line {
  align-items: stretch;
  border-bottom: 1px solid var(--row-divider);
}
.shift-grid .line.weekend { background: var(--weekend); }
.shift-grid .line.today { background: var(--orange-tint); }
.shift-grid .day {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
}
.shift-grid .line.weekend .day { color: var(--faint); }
.shift-grid .line.today .day { color: var(--orange-text); font-weight: 700; }
.shift-grid .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  flex: none;
}
.shift-grid .line.today .dot { background: var(--orange); }
.shift-grid .cell {
  font-size: 12.5px;
  padding: 6px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shift-grid .cell a { color: var(--link); }
.shift-grid .cell.nobody { color: var(--no-link); font-weight: 600; }
.shift-grid .cell.unpublished {
  background: var(--orange-tint);
  color: var(--orange-text);
  font-weight: 600;
  font-style: italic;
}
.shift-grid .cell.mine { font-weight: 700; }
.shift-grid .cell.mine a { color: var(--slate); }
.shift-grid .head .warn {
  color: var(--no-link);
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
  margin-top: 2px;
}

/* Inline notice band (e.g. billing) */
.notice {
  background: var(--orange-tint);
  border-color: var(--orange-border);
  color: var(--orange-text-dark);
  font-size: 13.5px;
}

/* Latest events feed */
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item { display: flex; gap: 10px; align-items: flex-start; }
.feed-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 5px;
  flex: none;
}
.feed-item .text { font-size: 13px; line-height: 1.45; }
.feed-item .when { font-size: 11.5px; color: var(--faint); margin-top: 1px; }

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}
.list-row:hover { background: var(--row-hover); }
.list-row .name { font-size: 14px; font-weight: 500; }

.card-links {
  border-top: 1px solid var(--hairline);
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
}

/* ==========================================================================
   Preferences: segmented control
   ========================================================================== */

.pref-rows { display: flex; flex-direction: column; gap: 3px; padding: 10px 24px 6px; }
.pref-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 4px 8px;
}
.pref-row.weekend { background: var(--weekend); }
.pref-row .day { font-size: 13px; font-weight: 500; color: var(--slate-mid); }
.pref-row.weekend .day { font-weight: 700; color: var(--slate); }

/* The radio stays a real, focusable, submittable input; it is taken out of the
   grid flow (absolutely positioned children are not grid items) and the label
   is what you see. Selection therefore works with CSS alone, no JS. */
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; position: relative; }
.seg-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 4px;
  border-radius: 0;
  cursor: pointer;
  background: var(--surface);
  color: var(--faint);
  border: 1px solid var(--idle-border);
  text-align: center;
}
.seg-btn:hover { border-color: var(--control-border); }
.seg-input:focus-visible + .seg-btn { outline: 2px solid var(--orange); outline-offset: 1px; }

/* Selected states carry the preference colour set */
.seg-input:checked + .seg-btn[data-pref="preferred"],
.seg-btn.is-on[data-pref="preferred"] { background: var(--pref-bg); color: var(--pref-text); border-color: var(--pref-border); }
.seg-input:checked + .seg-btn[data-pref="ok"],
.seg-btn.is-on[data-pref="ok"] { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.seg-input:checked + .seg-btn[data-pref="no"],
.seg-btn.is-on[data-pref="no"] { background: var(--no-bg); color: var(--no-text); border-color: var(--no-border); }
.seg-input:disabled + .seg-btn { cursor: not-allowed; opacity: 0.75; }

.prefs-controls { display: flex; align-items: center; gap: 12px; }

/* Bulk buttons in the prefs toolbar */
.bulk-group { display: flex; gap: 8px; }
.bulk { font-size: 12.5px; font-weight: 600; border-radius: 2px; padding: 5px 12px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.bulk-pref { border: 1px solid var(--pref-soft-border); color: var(--pref-strong); background: var(--pref-soft); }
.bulk-ok { border: 1px solid var(--control-border); color: var(--slate-mid); background: var(--surface); }
.bulk-no { border: 1px solid var(--no-soft-border); color: var(--no-link); background: var(--no-soft); }

/* ==========================================================================
   Schedule grid (manager)
   ========================================================================== */

.sched-scroll { overflow-x: auto; padding: 16px 24px 22px; }
.sched {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100%;
}
.sched .r { display: flex; gap: 2px; align-items: center; }
.sched .r.heads { align-items: flex-end; }
.sched .grid-month {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.sched .wname {
  width: 150px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 8px;
}
.sched .wname .n {
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sched .wname .n a { color: var(--slate); }

.sched .counts { flex: none; display: flex; gap: 2px; }
.sched .count,
.sched .count-head {
  width: 26px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sched .count {
  height: 22px;
  background: var(--chip-bg);
  color: var(--slate-mid);
  font-size: 10.5px;
  font-weight: 600;
}
.sched .count.total { background: var(--slate); color: #fff; font-weight: 700; }
.sched .count-head { font-size: 10px; color: var(--faint); font-weight: 600; }

.sched .dayhead { width: 26px; flex: none; text-align: center; }
/* The first and last columns are the neighbouring months' edge days. They are
   narrow, and every row must agree on that width or the grid shears. */
.sched .dayhead.spacer-head,
.sched .cell.spacer-cell { width: 20px; flex: none; }
.sched .dayhead .dow { font-size: 9px; color: var(--faint); font-weight: 600; }
.sched .dayhead .num {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-mid);
  background: var(--chip-bg);
  padding: 2px 0;
}
.sched .dayhead.weekend .num,
.sched .dayhead.holiday .num { color: #fff; background: var(--slate-mid); }

.sched .assigned-label {
  width: 150px;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-text);
  text-align: right;
  padding-right: 8px;
}
.sched .assign-chip {
  width: 26px;
  height: 20px;
  flex: none;
  background: var(--slate);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sched .assign-chip.empty { background: var(--orange); }

/* Day cells: background = preference, assignment = inset ring + initials */
.sched .cell {
  width: 26px;
  height: 22px;
  flex: none;
  cursor: pointer;
  background: var(--ok-bg);
  color: transparent;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.sched .cell:hover { filter: brightness(0.93); }
.sched .cell.pref-preferred { background: var(--pref-bg); }
.sched .cell.pref-ok { background: var(--ok-bg); }
.sched .cell.pref-no { background: var(--no-bg); }
.sched .cell.other-service { color: var(--slate-mid); font-weight: 600; }
/* Assignment is a black ring, always — regardless of the underlying
   preference colour. The pink "not available" background plus the toast are
   enough to flag an override; the ring's job is only to say "assigned here". */
.sched .cell.is-assigned {
  box-shadow: inset 0 0 0 2px var(--slate);
}
.sched .cell.spacer-cell { background: var(--slate-mid); cursor: default; }

/* Crosshair: hovering a cell lights up its whole row and column, so you can see
   which worker and which day you are actually targeting in a 31-column grid.
   Uses filter/outline rather than box-shadow, which the assignment ring owns. */
.sched .r.row-hovered .cell:not(.spacer-cell),
.sched .cell.col-hovered:not(.spacer-cell) { filter: brightness(0.94); }
.sched .r.row-hovered .wname .n { color: var(--orange-text); font-weight: 700; }
.sched .r.row-hovered .count.total { background: var(--orange-text); }
.sched .dayhead.col-hovered .dow { color: var(--orange-text); }
.sched .dayhead.col-hovered .num { background: var(--orange); color: #fff; }
.sched .assign-chip.col-hovered { outline: 2px solid var(--orange); outline-offset: -2px; }
.sched .cell:hover { filter: brightness(0.88); }

/* Comment indicator: a ✎ badge sitting in the gray spacer column between the
   Tot summary and the days. Hovering it shows the comment instantly (see
   .sched-tip); clicking it toggles the inline strip below the row. */
/* The whole spacer box turns orange for a worker who left a comment, with a
   white speech-bubble glyph — scannable down the column. */
.sched .cell.comment-slot { background: var(--orange); padding: 0; }
.sched .cell.comment-slot:hover { filter: brightness(1.08); }
.sched .comment-toggle {
  appearance: none;
  border: none;
  background: none;
  box-shadow: none;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sched .comment-toggle svg { width: 11px; height: 11px; fill: currentColor; display: block; }

/* Instant hover tooltip for a worker comment (position set by JS). */
.sched-tip {
  position: fixed;
  z-index: 100;
  max-width: 280px;
  background: var(--slate);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(34, 49, 63, 0.35);
  pointer-events: none;
}
.sched-tip[hidden] { display: none; }
.sched .comment-strip {
  display: flex;
  gap: 2px;
}
.sched .comment-strip .body {
  flex: 1;
  background: var(--orange-tint-soft);
  border: 1px solid var(--orange-border);
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--orange-text-dark);
  margin: 2px 0;
}
.sched .comment-strip .gutter { width: 236px; flex: none; }

/* Legend */
.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--slate-mid);
}
.legend .item { display: flex; align-items: center; gap: 6px; }
.legend .swatch { width: 13px; height: 13px; display: inline-block; }
.legend .swatch.assigned { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--slate); }
.legend .swatch.preferred { background: var(--pref-bg); }
.legend .swatch.ok { background: var(--ok-bg); }
.legend .swatch.no { background: var(--no-bg); }
.legend .code {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-mid);
  background: var(--ok-bg);
  padding: 2px 4px;
}
.legend .pen {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.legend .pen svg { width: 10px; height: 10px; fill: currentColor; display: block; }
.coverage { font-weight: 600; }
.coverage.short { color: var(--orange-text); }
.coverage.full { color: var(--pref-strong); }

/* Summary-range control that sits above the grid */
.summary-range label { font-size: 12.5px; font-weight: 600; color: var(--slate-mid); margin-left: 6px; }
.summary-range select { width: auto; min-width: 62px; padding: 6px 8px; }

/* ==========================================================================
   Month calendar (service page)
   ========================================================================== */

.cal-dow,
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.cal-cell {
  min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 5px 7px;
}
.cal-cell.blank { background: transparent; border-color: transparent; }
.cal-cell.weekend { background: var(--weekend); }
.cal-cell.today { background: var(--orange-tint); border-color: var(--orange-border); }
.cal-cell .num { font-size: 11px; font-weight: 700; color: var(--faint); }
.cal-cell.today .num { color: var(--orange-text); }
.cal-cell .who {
  font-size: 11px;
  color: var(--link);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-cell .who.nobody { color: var(--no-link); }

/* ==========================================================================
   Exchange
   ========================================================================== */

.shift-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--idle-border);
  padding: 12px 16px;
}
.date-block {
  width: 46px;
  height: 46px;
  background: var(--slate);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}
.date-block .d { font-size: 15px; font-weight: 700; line-height: 1; }
.date-block .m { font-size: 9.5px; font-weight: 600; color: var(--on-slate); }
.shift-row .what { font-size: 14px; font-weight: 600; }
.shift-row .when { font-size: 12px; color: var(--muted); }

.request {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--idle-border);
  padding: 14px 16px;
  background: #FFFDF9;
}
.request.accepted { background: #F2FAF5; }
.request.declined { background: #FBF3F4; }
.request .text { font-size: 13.5px; line-height: 1.5; }
.request .when { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.request .status { margin-top: 10px; font-size: 12.5px; font-weight: 700; }
.request .status.ok { color: var(--pref-strong); }
.request .status.no { color: var(--no-link); }
.request .actions { display: flex; gap: 8px; margin-top: 12px; }

/* Definition grid (profile) */
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  font-size: 13.5px;
}
.kv dt, .kv .k { color: var(--muted); margin: 0; }
.kv dd, .kv .v { margin: 0; }

/* ==========================================================================
   Messages / toasts
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  box-shadow: 0 8px 24px rgba(34, 49, 63, 0.3);
  animation: toastIn 0.25s ease;
  z-index: 50;
  max-width: calc(100vw - 40px);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.toast.is-hidden { display: none; }

/* ==========================================================================
   Marketing / public shell
   ========================================================================== */

.public { background: var(--surface); color: var(--slate); }

.public-header {
  background: var(--slate);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.public-header .inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  height: 64px;
}
.public-header .brand { font-size: 30px; }
.public-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 600;
}
.public-nav a { color: #DCE4EA; }
.public-nav a:hover { color: #fff; text-decoration: none; }
/* The header login button is a normal primary button (.btn.btn-primary) so it
   matches the others; only its layout lives here. */

.public-main { background: var(--surface); }
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
}
.page h1 { font-size: 32px; margin-bottom: 12px; letter-spacing: -0.4px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; }
.page h3 { font-size: 17px; margin: 24px 0 8px; }
.page p, .page li { font-size: 15px; line-height: 1.65; color: var(--slate-mid); }
.page ul, .page ol { padding-left: 20px; }
.page .lead { font-size: 17px; color: var(--slate-mid); margin-bottom: 24px; }

.panel {
  max-width: 460px;
  margin: 56px auto;
  background: var(--surface);
  border: 1px solid var(--card-border);
  padding: 28px;
}
.panel h1 { font-size: 22px; margin-bottom: 6px; }
.panel .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

.public-footer { border-top: 1px solid #EDF1F4; background: var(--surface); }
.public-footer .inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--faint);
  flex-wrap: wrap;
}
.public-footer .brand { font-size: 16px; }
.public-footer .brand .zo { color: var(--slate); }
.public-footer a { color: var(--link); }
.public-footer .sep { color: var(--control-border); }

/* Language switcher — compact (NL · FR · EN), lives at the top of every base.
   Default styling suits a light background (the print shell); the dark slate
   headers override the colours below. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.lang-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.lang-btn:hover { color: var(--slate); text-decoration: underline; }
.lang .current {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
}

/* On the dark slate headers */
.app-header .lang-btn,
.public-header .lang-btn { color: var(--on-slate); }
.app-header .lang-btn:hover,
.public-header .lang-btn:hover { color: #fff; }
.app-header .lang .current,
.public-header .lang .current { color: var(--orange); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--surface-marketing) 0%, #FFFFFF 100%);
  border-bottom: 1px solid #EDF1F4;
}
.hero .inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 72px var(--gutter) 64px;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero .sub {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 14px;
}
.hero .copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-mid);
  margin: 0 0 26px;
  max-width: 46ch;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { font-size: 15px; padding: 13px 26px; font-weight: 700; }

.quote {
  /* margin: 0 on the sides — <blockquote> otherwise carries a ~40px browser
     default that indents the testimonial away from the hero's left edge. */
  margin: 30px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
}
.quote .q { font-size: 14.5px; font-style: italic; color: var(--slate-mid); line-height: 1.55; }
.quote .who { font-size: 12.5px; color: var(--faint); margin-top: 5px; }

/* Hero product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(34, 49, 63, 0.12);
  overflow: hidden;
}
.product-card .bar {
  background: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.product-card .bar .brand { font-size: 15px; }
.product-card .bar .meta { color: var(--on-slate); font-size: 11.5px; }
.product-card .body { padding: 16px 18px; }
.product-card .grid-head,
.product-card .grid-row {
  display: grid;
  grid-template-columns: 64px repeat(3, 1fr);
  gap: 4px;
}
.product-card .grid-head {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.product-card .rows { display: flex; flex-direction: column; gap: 3px; }
.product-card .grid-row { align-items: center; padding: 3px 4px; }
.product-card .grid-row.weekend { background: var(--weekend); }
.product-card .grid-row.today { background: var(--orange-tint); }
.product-card .grid-row .d { font-size: 11px; font-weight: 600; color: var(--slate-mid); padding-left: 4px; }
.product-card .grid-row.weekend .d { color: var(--faint); }
.product-card .grid-row.today .d { color: var(--orange-text); }
.product-card .grid-row .w { font-size: 11px; color: var(--link); text-align: center; }
.product-card .grid-row .w.nobody {
  color: var(--no-text);
  background: var(--no-bg);
  font-weight: 600;
  padding: 1px 0;
}
.product-card .tags { display: flex; gap: 8px; margin-top: 14px; }
.product-card .tag {
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  padding: 5px 12px;
}
.product-card .tag.primary { color: #fff; background: var(--orange); }
.product-card .tag.plain { color: var(--slate-mid); background: var(--chip-bg); }

/* How it works */
.how { max-width: var(--page-max); margin: 0 auto; padding: 72px var(--gutter) 40px; }
.how .intro { text-align: center; margin-bottom: 52px; }
.how .intro h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -0.4px; }
.how .intro p { font-size: 16px; color: var(--slate-mid); margin: 0 auto; max-width: 62ch; }

.steps { display: flex; flex-direction: column; gap: 56px; }
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.step.reverse .step-text { order: 2; }
.step.reverse .step-visual { order: 1; }
.step .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step h3 { font-size: 21px; margin: 0; }
.step .lead { font-size: 15px; line-height: 1.6; color: var(--slate-mid); margin: 0 0 14px; }
.step .points { display: flex; flex-direction: column; gap: 8px; }
.step .point { display: flex; gap: 10px; align-items: flex-start; }
.step .point .tick { color: var(--orange); font-weight: 700; line-height: 1.5; }
.step .point span { font-size: 14px; line-height: 1.55; color: var(--slate); }

.step-visual {
  background: var(--surface-marketing);
  border: 1px solid var(--hairline);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.step-visual img { width: 100%; height: auto; display: block; }
.shot-placeholder {
  width: 100%;
  min-height: 192px;
  border: 1px dashed var(--control-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--faint);
  background: var(--surface);
}

/* CTA band */
.cta-band { background: var(--slate); margin-top: 48px; }
.cta-band .inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 64px var(--gutter);
  text-align: center;
}
.cta-band h2 { font-size: 30px; color: #fff; margin: 0 0 10px; letter-spacing: -0.4px; }
.cta-band p { font-size: 15.5px; color: var(--on-slate); margin: 0 0 30px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn { font-size: 15px; padding: 14px 28px; }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .app-header, .tabs, .app-footer, .toast, .no-print { display: none !important; }
  .app-main { padding: 0; }
  .card { border: none; }
  body { background: #fff; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .grid-main-side,
  .grid-service,
  .profile-grid { grid-template-columns: 1fr !important; }
}

/* Dashboard quick-actions: in the sidebar on desktop, but moved above the
   calendar once the two columns collapse into one. */
.dash-actions-mobile { display: none; }
@media (max-width: 1100px) {
  .dash-actions-mobile { display: block; margin-bottom: var(--card-gap); }
  .dash-actions-desktop { display: none; }
}

@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; padding: 48px var(--gutter); gap: 36px; }
  .hero h1 { font-size: 34px; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step.reverse .step-text { order: 1; }
  .step.reverse .step-visual { order: 2; }
  .public-nav { gap: 14px; font-size: 12.5px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .app-header { gap: 12px; }
  .app-header .page-title { display: none; }
  .header-tools { gap: 12px; font-size: 12px; }
  .header-tools .welcome { display: none; }

  /* Nav collapses to a hamburger. */
  .tabs { padding: 0 var(--gutter); }
  .tabs-toggle { display: inline-flex; }
  .tabs-list { display: none; }
  .tabs.is-open .tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 24px rgba(34, 49, 63, 0.15);
  }
  .tabs.is-open .tab {
    width: 100%;
    padding: 13px var(--gutter);
    border-bottom: 1px solid var(--row-divider);
  }
  .tabs.is-open .tab.is-active { border-bottom-color: var(--orange); }
  /* Service dropdowns expand inline in the mobile menu. */
  .tabs.is-open .tab-menu { width: 100%; }
  .tabs.is-open .tab-menu > .tab { border-bottom: none; }
  .tabs.is-open .tab-menu .caret { display: none; }
  .tabs.is-open .tab-menu .menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 8px 0;
  }
  .tabs.is-open .tab-menu .menu-label { display: none; }
  .tabs.is-open .tab-menu .menu a { padding: 10px var(--gutter) 10px calc(var(--gutter) + 12px); }

  /* Preferences header: pager on the left, Save aligned right on its own row. */
  .prefs-controls { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

  /* "Set all days": label on its own line, the three choices on one line below. */
  .prefs-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .prefs-toolbar .spacer { display: none; }
  .prefs-toolbar .bulk-group { width: 100%; }
  .prefs-toolbar .bulk-group .bulk { flex: 1; padding: 7px 4px; }

  /* Day rows: compact, centred choice boxes. */
  .pref-rows { padding: 10px 16px 6px; }
  .pref-row { grid-template-columns: 1fr; gap: 6px; padding: 8px; }
  .pref-row .day { font-weight: 700; }
  .seg-btn { min-height: 40px; }

  .card-head, .card-body, .toolbar { padding-left: 16px; padding-right: 16px; }
  .shift-grid .head, .shift-grid .body { padding-left: 12px; padding-right: 12px; }

  /* Header: logo + login on the top row, nav links on the row below. */
  .public-header .inner { height: auto; padding: 12px var(--gutter); flex-wrap: wrap; gap: 10px 12px; align-items: center; }
  .public-header .spacer { display: none; }
  .public-header .brand { order: 1; }
  .public-header .cta { order: 2; margin-left: auto; }
  .public-header .public-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }

  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 17px; }

  .shift-row { flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 8px; }
}
