:root {
  --ink: #17211c;
  --forest: #0c5a42;
  --forest-dark: #062f27;
  --cream: #f4f0e7;
  --line: #d9ddd7;
  --orange: #e5782a;
  --blue: #2875a7;
  --plum: #8d5a8a;
  --gold: #f4c770;
  --red: #b44635;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at 8% 0%, #f4c77022 0 110px, transparent 111px),
    radial-gradient(circle at 92% 18%, #0c5a4212 0 180px, transparent 181px),
    var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overscroll-behavior: none;
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.app-shell { width: 100vw; height: 100vh; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.brand, .header-actions, .away-summary, .month-nav, .toolbar-status { display: flex; align-items: center; }
.brand { gap: 12px; flex: 0 0 auto; }
/* Sized by height only; the width follows the 2.66:1 artwork. */
.brand-logo { height: 46px; width: auto; flex: 0 0 auto; }
.eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: .17em; font-weight: 800; opacity: .7; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(19px, 1.6vw, 26px); letter-spacing: -.03em; white-space: nowrap; }
.header-actions { gap: 12px; flex: 0 0 auto; }
.live-pill {
  display: flex; gap: 8px; align-items: center; padding: 11px 14px;
  border: 1px solid #ffffff2e; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.live-pill span { width: 8px; height: 8px; background: #7fe5ad; border-radius: 50%; box-shadow: 0 0 0 4px #7fe5ad22; }
.live-pill.offline span { background: var(--orange); box-shadow: 0 0 0 4px #e5782a22; }
.save-button {
  min-height: 56px; border-radius: 13px; padding: 0 22px; font-weight: 900; cursor: pointer;
}

.toolbar-status { min-width: 0; margin-left: auto; flex-direction: column; align-items: flex-end; gap: 2px; }
.toolbar-status .eyebrow { margin: 0; color: #a9dcc6; opacity: .95; }
.away-summary { gap: 10px; color: white; font-size: 14px; }
.avatar-stack { display: flex; padding-left: 7px; }
.avatar-stack > .photo-shell {
  width: 31px; height: 31px; display: grid; place-items: center; margin-left: -7px;
  border: 2px solid #0b5a41; border-radius: 50%;
}
/* These overlap by 7px, so tint the existing border instead of adding a ring —
   stacked box-shadows would bleed onto the neighbouring face. */
.avatar-stack > .photo-shell { box-shadow: none !important; }
.avatar-stack > .photo-shell.group-ops { border-color: #9aa5a0; }
.avatar-stack > .photo-shell.group-am { border-color: #e0897a; }
.avatar-stack > .photo-shell.group-pa { border-color: #7cb1d4; }

.calendar-card {
  margin: 0; background: white; border: 0; border-radius: 0; overflow: hidden;
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
}
.calendar-toolbar {
  min-height: 78px; display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(14px, 2vw, 34px); color: white;
  background:
    radial-gradient(circle at 16px 16px, #f4c77017 0 5px, transparent 6px) 0 0 / 32px 32px,
    linear-gradient(115deg, #042a23, #0b5a41 65%, #073c31);
  box-shadow: 0 5px 18px #062f2733;
}
.month-nav { gap: 11px; }
.month-nav h2 { margin: 0 8px; min-width: 218px; text-align: center; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.03em; }
.icon-button, .close-button, .today-button {
  height: 54px; border: 1px solid var(--line); background: white; border-radius: 12px;
  color: var(--forest); cursor: pointer;
}
.icon-button, .close-button { width: 54px; font-size: 30px; }
.today-button { padding: 0 15px; font-size: 13px; font-weight: 800; }
.view-toggle { display: flex; padding: 4px; background: #eef0ed; border-radius: 11px; }
.view-toggle button {
  min-width: 90px; height: 46px; border: 0; border-radius: 9px; color: #68726c;
  font-size: 13px; font-weight: 800; background: transparent; cursor: pointer;
}
.view-toggle button.active { color: white; background: var(--forest); box-shadow: 0 3px 8px #0d5b4330; }

.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { background: #f5f6f3; border-bottom: 1px solid var(--line); }
.weekdays div { padding: 10px 13px; font-size: 10px; letter-spacing: .12em; color: #6a746d; font-weight: 900; }
.day-cell {
  appearance: none; text-align: left; min-width: 0; min-height: 0; height: auto; padding: 9px;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: white; color: var(--ink); cursor: pointer; overflow: hidden;
}
.day-cell:nth-child(7n) { border-right: 0; }
.day-cell:hover, .day-cell:focus-visible { background: #f9fbf8; outline: 2px solid var(--forest); outline-offset: -2px; }
.day-cell.muted { background: #f7f7f4; color: #a2a8a3; }
.day-number { width: 29px; height: 29px; display: grid; place-items: center; font-size: 13px; font-weight: 800; border-radius: 50%; }
.is-today { box-shadow: inset 0 0 0 2px #d9a838; background: #fffcf3; }
.is-today .day-number { color: #17382c; background: var(--gold); box-shadow: 0 3px 9px #a77b2035; }
.entry-list { display: flex; flex-direction: column; gap: 4px; margin-top: 3px; }
.entry-chip {
  display: flex; align-items: center; gap: 5px; height: 23px; padding: 2px 6px 2px 3px;
  border-radius: 6px; background: #e3f2eb; color: #174e3b; font-size: 11px;
  font-weight: 800; overflow: hidden; cursor: pointer;
}
.entry-chip > .photo-shell { flex: 0 0 auto; width: 19px; height: 19px; border-radius: 5px; }
.entry-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Group colours: Ops grey, AM red, PA blue. Muted so they read as categories at
   kiosk distance rather than as alarms. */
.entry-chip.group-ops { background: #e7eaea; color: #38423f; }
.entry-chip.group-am { background: #fbe7e3; color: #8c3122; }
.entry-chip.group-pa { background: #e5eff8; color: #1b5480; }
/* The ring keeps the group readable in the photos-only crowded-day mode. */
.photo-shell.group-ops { box-shadow: 0 0 0 2px #6b7671; }
.photo-shell.group-am { box-shadow: 0 0 0 2px #b44635; }
.photo-shell.group-pa { box-shadow: 0 0 0 2px #2875a7; }
/* Crowded-day fallback: photos only, wrapped into rows. Applied by fitDayCell()
   when named chips no longer fit, so nobody drops off a busy day. */
.entry-list.compact { flex-direction: row; flex-wrap: wrap; align-items: center; }
.entry-list.compact .entry-chip { width: auto; height: auto; gap: 0; padding: 2px; }
.entry-list.compact .entry-chip > span:not(.photo-shell) { display: none; }
.more-label { font-size: 10px; color: #69736d; padding-left: 4px; font-weight: 800; }
.entry-list.compact .more-label { align-self: center; padding-left: 2px; }
.calendar-grid { flex: 1 1 auto; min-height: 0; }
.calendar-grid.month { grid-template-rows: repeat(6, minmax(0, 1fr)); }
.calendar-grid.week { grid-template-rows: minmax(0, 1fr); }
.calendar-grid.week .day-cell { height: auto; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px;
  background: #061710b8; backdrop-filter: blur(4px);
}
.modal { width: min(760px, 100%); max-height: 94vh; background: #fffefa; border-radius: 22px; box-shadow: 0 30px 80px #0006; overflow: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 23px 25px 17px; border-bottom: 1px solid var(--line); }
.modal-header .eyebrow { color: var(--forest); }
.modal-header h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.close-button { font-size: 25px; color: #657069; }
form { padding: 22px 25px 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; margin-bottom: 16px; color: #4d5751; font-size: 12px; font-weight: 800; }
label em { float: right; color: #929994; font-weight: 500; }
input, select {
  width: 100%; height: 58px; margin-top: 7px; padding: 0 16px; border: 1px solid #cfd5d0;
  border-radius: 10px; background: white; color: var(--ink); outline: none;
}
input[readonly] { background: #f2f4f1; color: #68726c; }
input:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px #0d5b4317; }
.person-picker { position: relative; margin-top: 7px; }
.picker-help { margin: 0 0 9px; color: #6c766f; font-size: 13px; font-weight: 600; }
/* Step one of the two-tap flow: pick a group, which filters the faces below. */
.group-tabs { display: flex; gap: 8px; }
.group-tab {
  flex: 1 1 0; min-height: 62px; padding: 0 14px; border: 2px solid #cfd5d0; border-radius: 13px;
  background: white; color: #46514b; font-size: 15px; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; touch-action: manipulation;
}
.group-tab:hover:not(:disabled), .group-tab:focus-visible { border-color: var(--forest); background: #f1f8f4; outline: none; }
.group-tab:disabled { opacity: .38; cursor: not-allowed; }
/* Active tab wears its own group colour so the tabs teach the calendar's key. */
.group-tab.active { color: white; box-shadow: 0 4px 12px #062f2726; }
.group-tab.group-ops.active { border-color: #4f5b56; background: #6b7671; }
.group-tab.group-am.active { border-color: #8c3122; background: var(--red); }
.group-tab.group-pa.active { border-color: #1b5480; background: var(--blue); }
.roster-empty { grid-column: 1 / -1; margin: 0; padding: 22px 6px; text-align: center; color: #77817a; font-size: 14px; font-weight: 700; }
.person-results {
  position: relative; z-index: 5; max-height: 360px; overflow: auto; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 9px; padding: 8px;
  border: 1px solid #cfd5d0; border-radius: 14px; background: #f7faf8;
  box-shadow: inset 0 1px 4px #132d240d;
}
.person-option {
  position: relative; width: 100%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 9px 10px;
  border: 1px solid #dce5df; border-radius: 12px; background: white; color: var(--ink); text-align: left; cursor: pointer;
  touch-action: manipulation;
}
.person-option:hover, .person-option:focus-visible, .person-option:active { background: #e6f3ec; border-color: #82ad99; outline: none; transform: translateY(-1px); }
.person-option.selected {
  background: linear-gradient(110deg, #e3f3e9, #fff9e9);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px #0c5a4228;
  padding: 7px 8px;
}
.person-option.selected::after {
  content: "✓"; position: absolute; right: 8px; top: 8px; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white;
  font-size: 15px; font-weight: 900;
}
.person-option strong { padding-right: 25px; font-size: 14px; }
.photo-shell {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(145deg, #0d6a4d, #084431); color: white; font-weight: 900;
}
/* Badge photos are portrait head-and-shoulders, so a square crop biased above
   centre keeps the face in frame instead of landing on the chest. */
.photo-shell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.photo-shell.has-photo .photo-fallback { opacity: 0; }
.photo-fallback { font-size: 9px; transition: opacity .15s; }
.picker-avatar { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 2px white, 0 0 0 3px #d5dfd9; }
.today-avatar { border-radius: 50%; }
.chip-avatar { border-radius: 5px; }
.modal-actions { display: flex; gap: 10px; align-items: center; margin-top: 5px; }
.modal-actions span { flex: 1; }
.modal-actions button { min-height: 46px; padding: 0 17px; border-radius: 10px; font-weight: 900; cursor: pointer; }
.modal-actions button { min-height: 58px; padding: 0 24px; font-size: 16px; }
/* Why someone is out. Same two-tap grammar as the group tabs, so the reason costs
   one tap and no keyboard. The detail field is collapsed on purpose: it exists for
   the rare "SSD Academy Tampa", not for every entry. */
.reason-block { margin-bottom: 16px; }
.reason-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reason-option {
  min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 2px solid #cfd5d0; border-radius: 13px; background: white; color: #46514b;
  font-size: 15px; font-weight: 900; text-align: left; cursor: pointer; touch-action: manipulation;
}
.reason-option:hover, .reason-option:focus-visible, .reason-option:active {
  border-color: var(--forest); background: #f1f8f4; outline: none;
}
.reason-option.selected {
  border-color: var(--gold); background: linear-gradient(110deg, #e3f3e9, #fff9e9);
  box-shadow: 0 0 0 3px #0c5a4228;
}
/* Emoji, so no font weight: bolding it just makes it blurry. */
.reason-option b { flex: 0 0 auto; font-size: 24px; font-weight: 400; line-height: 1; }
.reason-option span { min-width: 0; }
.detail-toggle {
  min-height: 46px; margin-top: 9px; padding: 0 16px; border: 1px dashed #b9c3bc; border-radius: 11px;
  background: #f7faf8; color: #4d5751; font-size: 14px; font-weight: 800; cursor: pointer;
  touch-action: manipulation;
}
.detail-toggle:hover, .detail-toggle:focus-visible { border-color: var(--forest); color: var(--forest); outline: none; }
.detail-row { display: flex; align-items: center; gap: 10px; }
.detail-row input { flex: 1 1 auto; min-width: 0; }
.detail-clear {
  flex: 0 0 auto; width: 58px; height: 58px; margin-top: 7px; border: 1px solid #cfd5d0;
  border-radius: 10px; background: white; color: #657069; font-size: 24px; font-weight: 900;
  cursor: pointer; touch-action: manipulation;
}
/* On the calendar the reason is the icon alone -- at kiosk distance a palm tree
   reads faster than the word, and the name still gets the room it had. */
.chip-reason { flex: 0 0 auto; font-size: 11px; }
.date-field { margin-bottom: 16px; }
.date-field-title { display: block; margin-bottom: 7px; color: #4d5751; font-size: 12px; font-weight: 800; }
.date-trigger {
  width: 100%; min-height: 86px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 18px; border: 2px solid #cfd5d0; border-radius: 14px;
  background: linear-gradient(110deg, #fff, #f4f8f5); color: var(--ink); text-align: left;
  cursor: pointer; touch-action: manipulation;
}
.date-trigger:hover, .date-trigger:focus-visible, .date-trigger:active {
  border-color: var(--forest); background: #eef8f2; outline: 4px solid #0c5a421a;
}
.date-trigger > span { display: flex; flex-direction: column; gap: 5px; }
.date-trigger strong { font-size: 18px; }
.date-trigger small { color: #6b756e; font-size: 12px; font-weight: 700; }
.date-trigger b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--forest); color: white; font-size: 28px; }

.date-picker-backdrop {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 28px;
  background: #04150fd6; backdrop-filter: blur(6px);
}
.touch-calendar {
  width: min(1100px, calc(100vw - 56px)); max-height: calc(100vh - 56px); overflow: auto;
  border: 2px solid #ffffff70; border-radius: 26px; background: #fffefa; box-shadow: 0 35px 100px #0009;
}
.touch-calendar-header {
  display: flex; align-items: center; justify-content: space-between; padding: 25px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.touch-calendar-header .eyebrow { color: var(--forest); }
.touch-calendar-header h2 { margin: 0; font-size: 30px; }
.date-picker-close {
  width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 16px;
  background: white; color: #657069; font-size: 32px; font-weight: 700; cursor: pointer;
}
.touch-calendar-toolbar {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px auto; align-items: center;
  gap: 12px; padding: 18px 28px;
}
.date-month-button, .date-today-button {
  min-height: 64px; border: 2px solid #cfd5d0; border-radius: 15px; background: white;
  color: var(--forest); font-weight: 900; cursor: pointer; touch-action: manipulation;
}
.date-month-button { font-size: 42px; }
.date-today-button { padding: 0 22px; font-size: 17px; }
.date-month-label { margin: 0; text-align: center; font-size: 30px; }
.touch-calendar-weekdays, .touch-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.touch-calendar-weekdays { padding: 0 28px; }
.touch-calendar-weekdays span { padding: 12px 4px; color: #647068; text-align: center; font-size: 15px; font-weight: 900; }
.touch-calendar-days { gap: 8px; padding: 0 28px 28px; }
.touch-day {
  min-height: 72px; border: 2px solid #d9dfda; border-radius: 14px; background: white;
  color: var(--ink); font-size: 22px; font-weight: 900; cursor: pointer; touch-action: manipulation;
}
.touch-day:hover, .touch-day:focus-visible, .touch-day:active { border-color: var(--forest); background: #eaf5ee; outline: 3px solid #0c5a421c; }
.touch-day.outside-month { color: #8c958f; background: #f5f6f3; }
.touch-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 3px #f4c77080; }
.touch-day.selected { border-color: var(--forest); background: var(--forest); color: white; box-shadow: 0 5px 14px #0c5a4240; }
.touch-day:disabled { opacity: .28; cursor: not-allowed; }
.cancel-button { border: 1px solid var(--line); background: white; color: #56615a; }
.save-button { border: 0; color: white; background: var(--forest); }
.save-button:disabled { opacity: .42; cursor: not-allowed; }
.delete-button { border: 0; background: #fff0ed; color: var(--red); }
/* Armed state: solid red, because the second tap cancels the event on every
   calendar it was sent to. Has to be unmistakable from across the room. */
.delete-button.armed { background: var(--red); color: white; box-shadow: 0 4px 14px #b4463540; }
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 330px;
  padding: 13px 17px; border-radius: 11px; background: var(--forest-dark); color: white;
  box-shadow: 0 14px 40px #0003; font-size: 13px; font-weight: 800;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Display mode: the read-only wall screen. Same calendar, nothing to tap. The hover
   outline has to go -- a touch leaves :hover stuck on some browsers, so the last cell
   anybody brushed past would sit there outlined all day looking selected. */
.display-mode .day-cell.read-only { cursor: default; }
.display-mode .day-cell.read-only:hover { background: inherit; outline: 0; }
.display-mode .day-cell.read-only.muted:hover { background: #f7f7f4; }
.display-mode .entry-chip { cursor: default; }
/* How fresh the screen's copy is. Quiet until it is not: a board that silently froze
   is indistinguishable from a week with nobody out, so stale gets said out loud. */
.display-stamp { color: #a9dcc6; }
.display-stamp.is-stale { padding: 2px 8px; border-radius: 6px; background: var(--orange); color: #21160c; opacity: 1; }

@media (max-width: 1100px) {
  .brand h1, .toolbar-status, .live-pill { display: none; }
  .brand-logo { height: 34px; }
  .calendar-toolbar { gap: 10px; padding: 10px 12px; }
  .month-nav { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .month-nav h2 { flex: 1; min-width: 0; margin: 0 4px; font-size: 19px; }
  .today-button { display: none; }
  .view-toggle button { min-width: 61px; }
  .weekdays div { padding: 8px 3px; text-align: center; font-size: 9px; }
  .day-cell { padding: 5px; }
  .entry-chip { padding-left: 3px; }
  .entry-chip > span { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .person-results { grid-template-columns: 1fr; max-height: 320px; }
  .reason-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 2200px) and (min-height: 1300px) {
  .brand { gap: 26px; }
  .brand-logo { height: 68px; }
  .eyebrow { margin-bottom: 3px; font-size: 13px; letter-spacing: .2em; }
  h1 { font-size: 32px; }
  .header-actions { gap: 16px; }
  .live-pill { padding: 15px 20px; font-size: 17px; }
  .live-pill span { width: 11px; height: 11px; }

  .away-summary { font-size: 19px; }
  .avatar-stack > .photo-shell { width: 38px; height: 38px; margin-left: -9px; }

  .calendar-toolbar { min-height: 96px; gap: 26px; padding: 12px 34px; }
  .month-nav { gap: 16px; }
  .month-nav h2 { min-width: 300px; margin: 0 12px; font-size: 34px; }
  .icon-button, .close-button, .today-button { height: 68px; border-radius: 16px; }
  .icon-button, .close-button { width: 68px; font-size: 38px; }
  .today-button { padding: 0 24px; font-size: 17px; }
  .view-toggle { padding: 6px; border-radius: 15px; }
  .view-toggle button { min-width: 125px; height: 56px; border-radius: 11px; font-size: 17px; }
  .weekdays div { padding: 13px 20px; font-size: 14px; }
  .day-cell { padding: 14px; }
  .day-number { width: 42px; height: 42px; font-size: 18px; }
  .entry-list { gap: 7px; margin-top: 6px; }
  .entry-chip { height: 34px; gap: 8px; padding: 3px 10px 3px 4px; border-radius: 9px; font-size: 15px; }
  .entry-chip > .photo-shell { width: 27px; height: 27px; border-radius: 7px; }
  .more-label { padding-left: 6px; font-size: 13px; }
  .modal-backdrop { padding: 64px; }
  /* The kiosk is 2880px wide; a 1400px modal wasted half the screen and forced
     the picker to scroll once the roster grew. Use the room instead. */
  .modal { width: min(2480px, calc(100vw - 120px)); max-height: calc(100vh - 128px); border-radius: 32px; }
  .modal-header { padding: 38px 46px 30px; }
  .modal-header h2 { font-size: 46px; }
  .close-button { width: 82px; height: 82px; font-size: 38px; }
  form { padding: 34px 46px 42px; }
  label { margin-bottom: 24px; font-size: 18px; }
  .picker-help { margin-bottom: 13px; font-size: 17px; }
  /* 8 columns keeps ~40 leaders on screen with no scrolling. */
  .person-results { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; max-height: 1000px; margin-top: 13px; padding: 12px; border-radius: 18px; }
  .group-tabs { gap: 14px; }
  .group-tab { min-height: 96px; border-radius: 18px; font-size: 26px; }
  .roster-empty { padding: 40px 8px; font-size: 22px; }
  .person-option { min-height: 88px; gap: 16px; padding: 12px 14px; border-radius: 15px; }
  .person-option.selected { padding: 10px 12px; }
  .person-option.selected::after { right: 12px; top: 12px; width: 30px; height: 30px; font-size: 19px; }
  .person-option strong { padding-right: 34px; font-size: 18px; }
  .picker-avatar { width: 62px; height: 62px; border-radius: 16px; }
  /* All six reasons on one row at kiosk width -- no scrolling, no second glance. */
  .reason-block { margin-bottom: 24px; }
  .reason-options { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .reason-option {
    min-height: 132px; flex-direction: column; justify-content: center; gap: 10px;
    padding: 14px 10px; border-radius: 18px; font-size: 20px; text-align: center;
  }
  .reason-option b { font-size: 44px; }
  .detail-toggle { min-height: 70px; margin-top: 14px; padding: 0 24px; border-radius: 15px; font-size: 19px; }
  /* Input and its clear button have to grow together or they stop lining up. */
  .detail-row input { height: 76px; padding: 0 22px; border-radius: 15px; font-size: 22px; }
  .detail-clear { width: 76px; height: 76px; border-radius: 15px; font-size: 32px; }
  .chip-reason { font-size: 15px; }
  .form-row { gap: 28px; }
  .date-field { margin-bottom: 24px; }
  .date-field-title { margin-bottom: 11px; font-size: 18px; }
  .date-trigger { min-height: 112px; padding: 16px 24px; border-radius: 18px; }
  .date-trigger strong { font-size: 25px; }
  .date-trigger small { font-size: 16px; }
  .date-trigger b { width: 72px; height: 72px; border-radius: 17px; font-size: 38px; }
  .modal-actions { gap: 16px; margin-top: 12px; }
  .modal-actions button { min-height: 76px; padding: 0 34px; border-radius: 15px; font-size: 21px; }

  .date-picker-backdrop { padding: 64px; }
  .touch-calendar { width: min(1640px, calc(100vw - 128px)); max-height: calc(100vh - 128px); border-radius: 34px; }
  .touch-calendar-header { padding: 34px 42px 26px; }
  .touch-calendar-header h2 { font-size: 44px; }
  .date-picker-close { width: 84px; height: 84px; border-radius: 20px; font-size: 42px; }
  .touch-calendar-toolbar { grid-template-columns: 92px minmax(0, 1fr) 92px auto; gap: 18px; padding: 26px 42px; }
  .date-month-button, .date-today-button { min-height: 82px; border-radius: 19px; }
  .date-month-button { font-size: 54px; }
  .date-today-button { padding: 0 32px; font-size: 22px; }
  .date-month-label { font-size: 42px; }
  .touch-calendar-weekdays { padding: 0 42px; }
  .touch-calendar-weekdays span { padding: 16px 5px; font-size: 19px; }
  .touch-calendar-days { gap: 12px; padding: 0 42px 42px; }
  .touch-day { min-height: 105px; border-radius: 20px; font-size: 31px; }
}

@media (prefers-reduced-motion: no-preference) {
  .modal { animation: rise .18s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
}
