/* Mobile-first daily work. Loaded after styles.css; central administration keeps its PC layout. */
:root {
  --demo-height: 52px;
  --mobile-nav-height: 72px;
  --mobile-content-width: 880px;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}
body[data-mode="staff"], body[data-mode="planner"] {
  --demo-height: 52px;
  font-size: 15px;
  line-height: 1.65;
  background: #f6f7f3;
}
body[data-mode="planner"] { --staff-width: var(--mobile-content-width); }
body[data-mode="staff"] :is(button, a, label),
body[data-mode="planner"] :is(button, a, label) { touch-action: manipulation; }
body[data-mode="staff"] :is(main, section, article, form, .card, .row > *, .stack > *),
body[data-mode="planner"] :is(main, section, article, form, .card, .row > *, .stack > *) { min-width: 0; }
body[data-mode="staff"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
body[data-mode="planner"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  font-size: 16px;
  min-height: 48px;
  border-radius: 10px;
  max-width: 100%;
}
body[data-mode="staff"] :is(.field > label, .field > .label),
body[data-mode="planner"] :is(.field > label, .field > .label) { font-size: 14px; }
body[data-mode="staff"] :is(.field > small, .field > .small),
body[data-mode="planner"] :is(.field > small, .field > .small) { font-size: 12px; }
body[data-mode="staff"] :is(.btn, .btn.small, .card-head .btn, .link-button, .icon-button, .tabs button),
body[data-mode="planner"] :is(.btn, .btn.small, .card-head .btn, .link-button, .icon-button, .tabs button) {
  min-height: 44px;
  font-size: 14px;
}
body[data-mode="staff"] .btn, body[data-mode="planner"] .btn {
  padding: 11px 15px;
  border-radius: 10px;
  white-space: normal;
}
body[data-mode="staff"] .btn.primary, body[data-mode="planner"] .btn.primary {
  min-height: 48px;
  font-size: 15px;
  font-weight: 680;
}
body[data-mode="staff"] .icon-button, body[data-mode="planner"] .icon-button {
  min-width: 44px;
  width: 44px;
  height: 44px;
}
body[data-mode="staff"] :is(.checkline, .checkbox-grid label),
body[data-mode="planner"] :is(.checkline, .checkbox-grid label) {
  min-height: 44px;
  align-items: center;
  font-size: 14px;
}
body[data-mode="staff"] input:is([type="checkbox"],[type="radio"]),
body[data-mode="planner"] input:is([type="checkbox"],[type="radio"]) {
  width: 21px;
  height: 21px;
  margin: 0;
}
body[data-mode="staff"] :is(.small, small),
body[data-mode="planner"] :is(.small, small) { font-size: 12px; }
body[data-mode="staff"] .badge, body[data-mode="planner"] .badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}
body[data-mode="staff"] :is(h1, h2, h3),
body[data-mode="planner"] :is(h1, h2, h3) { letter-spacing: -.025em; text-wrap: pretty; }
body[data-mode="staff"] h1, body[data-mode="planner"] h1 { font-size: 26px; line-height: 1.45; }
body[data-mode="staff"] h2, body[data-mode="planner"] h2 { font-size: 19px; }
body[data-mode="staff"] .card, body[data-mode="planner"] .card {
  border-radius: 14px;
  padding: 20px;
  box-shadow: none;
}
body[data-mode="staff"] :is(.notice, .alert),
body[data-mode="planner"] :is(.notice, .alert) {
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body[data-mode="staff"] .page-head, body[data-mode="planner"] .page-head {
  margin-bottom: 20px;
  gap: 12px;
}
body[data-mode="staff"] .page-head .eyebrow,
body[data-mode="staff"] .staff-footnote { display: none; }

/* Compact demo controls sit outside the work navigation. */
.demo-bar {
  min-height: 52px;
  padding: 4px 18px;
  flex-wrap: nowrap;
  gap: 8px;
  box-sizing: border-box;
}
.demo-bar .demo-label { flex: 0 1 auto; min-width: 0; }
.demo-bar .demo-tools { flex-wrap: nowrap; width: auto; }
.demo-bar :is(button, .btn, select) {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.demo-bar .demo-detail { font-size: 11px; }
.demo-bar .demo-label strong { font-size: 12px; }
.demo-bar [data-role-menu] { white-space: nowrap; }
.mobile-shell { min-height: calc(100dvh - 52px); width: 100%; }
.mobile-header, .staff-header {
  position: sticky;
  top: var(--demo-height, 52px);
  z-index: 35;
  width: 100%;
  min-height: 66px;
  max-width: var(--staff-width, 600px);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}
.mobile-header .brand, .staff-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}
.mobile-header .brand .brand-mark { width: 24px; }
.mobile-header .role-chip, .mobile-header .role-label, .staff-header .role-chip {
  padding: 3px 8px;
  color: #4b665a;
  background: #edf3ed;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.mobile-main {
  max-width: var(--mobile-content-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px calc(108px + var(--mobile-safe-bottom));
}
.staff-main {
  max-width: 600px;
  width: 100%;
  padding: 24px 20px calc(108px + var(--mobile-safe-bottom));
}
.mobile-main:has(.mobile-action-bar),
.staff-main:has(.mobile-action-bar) { padding-bottom: calc(220px + var(--mobile-safe-bottom)); }
.mobile-main > :last-child:not(.mobile-action-bar),
.staff-main > :last-child:not(.mobile-action-bar) { margin-bottom: 0; }
body[data-mode="staff"] #main,
body[data-mode="planner"] #main { scroll-margin-top: 135px; }
body[data-mode="staff"] [id^="answer-"],
body[data-mode="planner"] [id^="planner-"] { scroll-margin-top: 140px; }
.mobile-bottom-nav, body[data-mode="staff"] .bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  width: min(100%, var(--staff-width, 600px));
  height: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
  min-height: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
  padding: 6px 10px calc(6px + var(--mobile-safe-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -2px 8px rgba(23,42,42,.025);
}
.mobile-bottom-nav :is(button,a), body[data-mode="staff"] .bottom-nav :is(button,a) {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  gap: 3px;
  padding: 5px 3px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #607269;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
}
.mobile-bottom-nav :is(.active,[aria-current="page"]),
body[data-mode="staff"] .bottom-nav :is(.active,[aria-current="page"]) {
  background: #edf5ef;
  color: var(--teal);
  font-weight: 700;
}
.mobile-bottom-nav svg { width: 22px; height: 22px; }
.mobile-bottom-nav button.active svg { stroke-width: 2; }
body[data-mode="staff"] .bottom-nav .active::before { display: none; }
.mobile-action-bar {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
  transform: translateX(-50%);
  width: min(100%, var(--staff-width, 600px));
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 16px rgba(23,42,42,.035);
}
.mobile-action-bar > :is(.small,p,.mobile-action-meta) {
  flex: 1 0 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.mobile-action-bar > .row { flex: 1 1 100%; gap: 8px; }
.mobile-action-bar > .row > .btn { flex: 1 1 0; min-width: 0; }
.mobile-action-bar > .row > .btn.primary { flex-grow: 1.55; }
.mobile-action-bar > .btn.primary { flex: 1 1 auto; }
.mobile-action-bar .btn { min-height: 48px; }
.mobile-action-bar strong { color: var(--ink); }
body[data-mode="staff"] .toast,
body[data-mode="planner"] .toast {
  z-index: 110;
  bottom: calc(86px + var(--mobile-safe-bottom));
  font-size: 13px;
  max-width: 480px;
}
body[data-mode="staff"]:has(.mobile-action-bar) .toast,
body[data-mode="planner"]:has(.mobile-action-bar) .toast { bottom: calc(198px + var(--mobile-safe-bottom)); }

/* Staff: clear daily decisions instead of small select boxes. */
.staff-welcome { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.staff-welcome h1 { margin-bottom: 5px; }
.staff-welcome p { margin: 0; color: var(--muted); font-size: 14px; }
.staff-primary-task {
  border-color: #aacdbb !important;
  background: #fff !important;
  box-shadow: inset 4px 0 0 #387c65 !important;
}
.staff-primary-task h2 { font-size: 22px; }
.staff-primary-task .btn.primary { width: 100%; }
.staff-progress-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.staff-progress-summary strong { font-variant-numeric: tabular-nums; }
.staff-progress-summary .progress { flex-basis: 100%; height: 8px; }
.staff-date-overview {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 3px 1px 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.staff-date-dot {
  flex: 1 0 44px;
  min-width: 44px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  scroll-snap-align: start;
}
.staff-date-dot strong { font-size: 17px; }
.staff-date-dot small { font-size: 10px !important; line-height: 1.35; white-space: nowrap; }
.staff-date-dot:is(.answered,[data-state="answered"]) { border-color: #bed6c7; background: #edf6ef; color: #245c46; }
.staff-date-dot:is(.missing,.unfilled,[data-state="missing"]) { border-color: #e0c591; background: #fff8e9; color: #7e571b; }
.staff-date-dot:is(.closed,[data-state="closed"]) { background: #edeFEB; color: #78877c; border-color: transparent; }
.staff-date-dot:is(.active,[aria-current="date"],[aria-pressed="true"]) { box-shadow: 0 0 0 2px var(--teal); border-color: var(--teal); }
.staff-day-list { display: grid; gap: 10px; margin: 18px 0; }
.staff-day-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 16px 15px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}
button.staff-day-card:hover { background: #f7fbf6; border-color: #abc7b5; }
.staff-day-card:disabled { cursor: default; opacity: 1; }
.staff-day-card > svg { margin-left: auto; color: #6f8878; width: 18px; flex: 0 0 auto; }
.staff-day-number { display: grid; flex: 0 0 58px; gap: 2px; text-align: center; line-height: 1.35; }
.staff-day-number strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.staff-day-number small, .staff-day-number span { font-size: 12px; color: var(--muted); }
.staff-day-answer { display: grid; flex: 1 1 auto; min-width: 0; gap: 4px; }
.staff-day-answer > strong { font-size: 16px; }
.staff-day-answer .badge { justify-self: start; }
.staff-day-meta { color: #64766a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.staff-day-card:is(.missing,.unfilled,.status-empty) { border-color: #dfc99e; }
.staff-day-card:is(.missing,.unfilled,.status-empty) .staff-day-answer > strong { color: #845b23; }
.staff-day-card:is(.closed,.staff-day-closed) { min-height: 64px; border-color: transparent; background: #edf0e9; color: #738074; }
.staff-day-closed .staff-day-number strong { font-size: 20px; }
.staff-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.staff-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 78px;
  padding: 13px 14px;
  gap: 3px;
  border: 1px solid #cbd8cd;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.staff-choice strong { font-size: 16px; }
.staff-choice > .row { width: 100%; }
.staff-choice > span, .staff-choice-detail { font-size: 12px; color: #63776a; line-height: 1.4; }
.staff-choice:is(.active,[aria-pressed="true"],[aria-checked="true"]) {
  border-color: var(--teal);
  background: #eaf4ec;
  box-shadow: inset 0 0 0 1px var(--teal);
}
.staff-choice:hover { border-color: #7eab93; background: #f2f7f0; }
.staff-choice[data-status="custom"], .staff-choice[data-choice="custom"] { grid-column: 1 / -1; }
.staff-choice:disabled { opacity: .5; }
.staff-step-label { margin: 0 0 8px; color: var(--teal); font-size: 12px; font-weight: 650; }
.staff-review-list { display: grid; gap: 0; }
.staff-review-day {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.staff-review-day > .row { margin-bottom: 5px; }
.staff-review-day > .staff-day-answer { gap: 3px; }
.staff-review-day > .staff-day-answer > strong { font-size: 16px; }
.staff-review-day:last-child { border-bottom: 0; }
.staff-review-day strong { font-size: 14px; }
.staff-review-day p { margin: 3px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.staff-review-day .btn { padding: 8px 11px; min-width: 44px; }
.staff-review-summary { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.staff-review-summary > span { flex: 1; min-width: 96px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: 12px; }
.staff-review-summary strong { display: block; color: var(--ink); font-size: 22px; line-height: 1.4; }
.staff-action-caption { display: flex; flex: 1 0 100%; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.staff-action-caption > span:first-child { color: var(--ink); font-weight: 650; }
.staff-note-preview { margin: 5px 0 0; padding: 11px 12px; background: #f1f4ed; color: #52664f; border-radius: 8px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-shift-row small { display: block; color: var(--muted); }
.staff-bulk-dates { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.staff-bulk-date {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.staff-bulk-date:has(input:checked) { border-color: #82b49a; background: #edf6ee; color: #1d6248; }
.staff-bulk-date input { flex: 0 0 auto; }
.staff-bulk-preview { padding: 13px 14px; border: 1px solid #c9ddcf; border-radius: 10px; background: #f0f7ef; font-size: 13px; }
.staff-shift-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-shift-time { font-size: 23px; line-height: 1.4; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body[data-mode="staff"] .shift-card { border-left-width: 4px; }
body[data-mode="staff"] .shift-card h2 { font-size: 23px; }
body[data-mode="staff"] .definition-list { font-size: 14px; }
body[data-mode="staff"] .calendar-cell { min-width: 0; min-height: 80px; overflow: hidden; }
body[data-mode="staff"] .calendar-cell .small { font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
body[data-mode="staff"] .calendar-cell > strong { font-size: 15px; }

/* Shift creator: day/store/slot decisions, with direct taps and readable cards. */
.planner-head { margin-bottom: 22px; }
.planner-head h1 { margin-bottom: 5px; }
.planner-head p { margin-bottom: 0; font-size: 14px; color: var(--muted); }
.planner-summary { margin-bottom: 20px; }
.planner-summary h2 { margin-bottom: 5px; }
.planner-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 16px 0; }
.planner-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 89px;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.planner-metric strong { font-size: 27px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.planner-metric span, .planner-metric small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.planner-metric strong small { margin-left: 3px; font-weight: 500; }
.planner-task {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 76px;
  padding: 16px;
  border: 1px solid #cbdccf;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.planner-task + .planner-task { margin-top: 10px; }
.planner-task > :is(div,span):first-child { flex: 1; min-width: 0; }
.planner-task strong { display: block; font-size: 16px; }
.planner-task small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.planner-task > svg:last-child { margin-left: auto; }
.planner-task:hover { border-color: #8eaf99; background: #f3f8f0; }
.planner-date-strip {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  gap: 7px;
  margin: 0 0 16px;
  padding: 3px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.planner-date {
  display: flex;
  flex: 1 0 62px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 62px;
  min-height: 90px;
  padding: 9px 6px;
  border: 1px solid #d2dbd1;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  scroll-snap-align: start;
}
.planner-date > span { font-size: 12px; color: var(--muted); }
.planner-date > strong { font-size: 24px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.planner-date > small { font-size: 10px; line-height: 1.4; white-space: nowrap; }
.planner-date:is(.active,[aria-pressed="true"]) { border-color: var(--teal); background: #e6f1e9; box-shadow: inset 0 0 0 1px var(--teal); }
.planner-date:is(.active,[aria-pressed="true"]) > span { color: #1c674c; }
.planner-date:disabled, .planner-date.closed { background: #edefe9; color: #7a877b; border-color: #e4e8e0; }
.planner-segment {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid #dce4da;
  border-radius: 11px;
  background: #eaf0e6;
}
.planner-segment > button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5b6e60;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.planner-segment > button:is(.active,[aria-pressed="true"]) {
  color: #184e38;
  background: #fff;
  border-color: #c3d4c4;
  box-shadow: 0 1px 3px rgba(23,42,42,.04);
}
.planner-segment > button small { display: block; font-size: 11px; font-weight: 450; }
.planner-slot { margin-top: 16px; }
.planner-slot .card-head { margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.planner-slot .card-head h2 { font-size: 18px; }
.planner-slot > .btn:last-child { width: 100%; margin-top: 10px; }
.planner-person, .planner-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 13px 12px;
  border: 1px solid #d8e1d6;
  border-radius: 10px;
  background: #fafcf8;
  color: var(--ink);
  text-align: left;
}
.planner-person + .planner-person, .planner-candidate + .planner-candidate { margin-top: 9px; }
.planner-person > :first-child, .planner-candidate > :first-child { min-width: 0; flex: 1 1 auto; }
.planner-person > svg, .planner-candidate > svg { flex: 0 0 auto; color: #61816b; }
.planner-person strong, .planner-candidate strong { display: block; font-size: 15px; }
.planner-person small, .planner-candidate small { display: block; font-size: 12px; line-height: 1.5; }
.planner-person-main { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.planner-person-meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.planner-person:hover, .planner-candidate:not(:disabled):hover { border-color: #8eaf99; background: #edf5e9; }
.planner-candidate:disabled { background: #f2f3ef; border-color: #e2e6df; color: #738074; opacity: 1; }
.planner-candidate:disabled .badge { background: #e5e9e1; color: #667462; }
.planner-response { padding: 16px !important; }
.planner-response-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.planner-response-top > label { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; margin: -5px -5px -5px -9px; }
.planner-response-top > button { flex: 1; min-width: 0; min-height: 44px; text-align: left; }
.planner-response-top .badge { margin-left: auto; }
.planner-response-meta { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.planner-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}
.planner-filter :is(button,.btn) {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.planner-filter :is(.active,[aria-pressed="true"]) { border-color: #78a58b; background: #eaf4e8; color: #1f6548; font-weight: 650; }
.planner-check, .planner-diff, .planner-history, .planner-confirmation {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}
.planner-check:last-child, .planner-diff:last-child, .planner-history:last-child, .planner-confirmation:last-child { border-bottom: 0; }
.planner-check h3, .planner-diff h3, .planner-history h3 { font-size: 16px; }
.planner-check p, .planner-diff p, .planner-history p { margin-bottom: 6px; font-size: 13px; }
.planner-diff :is(del,s) { color: #7c8880; }
.planner-confirmation { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.planner-confirmation strong { min-width: 0; }
.planner-actions .btn { min-height: 48px; }
.planner-empty, .empty-panel { padding: 22px 16px; text-align: center; border: 1px dashed #bdcfbc; border-radius: 12px; color: var(--muted); background: #f7faf3; }
.planner-empty h2, .empty-panel h2 { color: #445f48; font-size: 18px; }
.planner-note { padding: 12px 14px; border-radius: 10px; background: #eef4e8; color: #566d52; font-size: 13px; }
.mobile-flow-steps { display: flex; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 8px 0 16px; }
.mobile-flow-steps .active { color: var(--teal); font-weight: 700; }

/* Concrete creator markup: readable lists, candidate sheets and review history. */
.planner-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.planner-head > div { flex: 1; min-width: 180px; }
.planner-head > .badge { margin-top: 7px; }
.planner-head .eyebrow { font-size: 12px; margin-bottom: 5px; }
.planner-section { margin: 24px 0; }
.planner-section > h2 { margin-bottom: 13px; }
.planner-task > .planner-task-icon:first-child {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf3e8;
  color: #326b4b;
}
.planner-task > .planner-person-main { flex: 1 1 auto; }
.planner-person > .planner-avatar, .planner-candidate > .planner-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6eee0;
  color: #4b6b49;
  font-size: 14px;
  font-weight: 650;
}
.planner-person:disabled { cursor: default; opacity: 1; }
.planner-date.is-closed { background: #eef0ea; color: #76816f; }
.planner-date.is-closed[aria-pressed="true"] { border-color: #8fa581; box-shadow: inset 0 0 0 1px #8fa581; }
.planner-day-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 23px 0 10px; }
.planner-day-heading h2 { margin: 0; }
.planner-slot .card-head h3 { font-size: 18px; margin-bottom: 4px; }
.planner-slot .card-head p { margin: 0; }
.planner-no-assignment { padding: 14px 12px; border: 1px dashed #c4d3bd; border-radius: 9px; font-size: 13px; background: #f9fbf6; }
.planner-slot .planner-requirement-edit { margin-top: 4px !important; font-size: 13px !important; }
.planner-sheet-context { padding: 13px 14px; margin-bottom: 16px; border-radius: 10px; background: #eff4e9; }
.planner-sheet-context h3, .planner-sheet-context strong { margin-bottom: 5px; font-size: 16px; }
.planner-sheet-context p { font-size: 13px; margin-bottom: 0; }
.planner-candidate-group { margin: 20px 0 0; }
.planner-candidate-group h3 { font-size: 14px; margin-bottom: 10px; color: #4f6447; }
.planner-candidate-group > .planner-expand { margin-bottom: 8px; }
.planner-warning-text { color: #835d25 !important; }
.planner-stepper { display: grid; grid-template-columns: 48px minmax(70px,1fr) 48px auto; align-items: center; gap: 9px; max-width: 330px; }
.planner-stepper .btn { min-height: 48px; padding: 9px; font-size: 22px !important; }
.planner-stepper input { font-size: 22px !important; text-align: center; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.planner-stepper input::-webkit-outer-spin-button, .planner-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.planner-stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.planner-response-list { display: grid; gap: 12px; }
.planner-response-list > .card + .card { margin-top: 0; }
.planner-response-top > .planner-response-select { flex: 0 0 44px; width: 44px; min-height: 44px; }
.planner-response-top .planner-person-main { gap: 1px; padding: 3px 0; font-size: 15px; text-decoration: none; }
.planner-response-top .planner-person-main small { display: block; color: var(--muted); font-size: 12px; font-weight: 450; }
.planner-response-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.planner-filter button > span { display: inline-block; margin-left: 5px; min-width: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.planner-selection { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.planner-answer-row { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.planner-answer-row:first-child { padding-top: 0; }
.planner-answer-row:last-child { border-bottom: 0; padding-bottom: 0; }
.planner-answer-row p { margin: 7px 0 0; font-size: 14px; }
.planner-flow-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 18px; font-size: 12px; color: #70816a; }
.planner-flow-steps > * { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 38px; border-bottom: 2px solid #d9e3d2; text-align: center; }
.planner-flow-steps > strong { color: #286342; border-bottom-color: #347b50; }
.planner-check { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: start; gap: 9px; font-size: 13px; line-height: 1.65; }
.planner-check > svg { margin-top: 3px; color: #a1712a; }
.planner-check.error > svg { color: var(--red); }
.planner-check > .btn { align-self: center; padding: 8px 9px; white-space: nowrap; font-size: 12px; }
.planner-diff > .row { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.planner-diff > .row strong { font-size: 14px; }
.planner-diff-times { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); align-items: center; gap: 8px; margin-top: 9px; font-size: 13px; line-height: 1.65; }
.planner-diff-times small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.planner-diff-times > svg { transform: rotate(180deg); color: #91a088; }
.planner-diff-times > span:last-child { color: #315b3e; font-weight: 600; }
.planner-expand { min-height: 44px; padding: 12px 0; font-size: 13px; color: #2e6b45; font-weight: 600; cursor: pointer; }
.planner-confirmation small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 450; }
.planner-confirmation .planner-work-time { max-width: 55%; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.55; }
.planner-published-day + .planner-published-day { margin-top: 20px; }
.planner-published-day h3 { font-size: 14px; padding: 9px 11px; margin-bottom: 0; border-radius: 7px; background: #f0f5e9; }
.planner-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; list-style: none; cursor: pointer; }
.planner-history > summary::-webkit-details-marker { display: none; }
.planner-history > summary small { display: block; font-size: 12px; margin-top: 3px; color: var(--muted); font-weight: 450; }
.planner-history > summary svg { flex: 0 0 auto; }
.planner-history[open] > summary svg { transform: rotate(90deg); }
.planner-history-body { padding-top: 10px; }
.planner-actions > div { display: flex; flex: 1 0 100%; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.planner-actions > div strong { font-size: 13px; }
.planner-actions > div small { color: var(--muted); font-size: 11px; }
.planner-actions > .btn { flex: 1 1 0; min-width: 0; }
.planner-contact-actions > .btn.primary { flex-grow: 1.4; }

/* Entry: choose the task, then stay in that work surface. */
body[data-mode="entry"] .entry-content { max-width: 900px; margin: 36px auto; }
body[data-mode="entry"] .entry-content > h1 { font-size: clamp(28px,4vw,42px); }
body[data-mode="entry"] .entry-description { font-size: 15px; max-width: 620px; }
body[data-mode="entry"] .entry-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
body[data-mode="entry"] .entry-card { min-height: 200px; border-radius: 15px; padding: 25px; }
body[data-mode="entry"] .entry-card h2 { font-size: 22px; }
body[data-mode="entry"] .entry-card p { font-size: 14px; line-height: 1.7; }
body[data-mode="entry"] .entry-card-admin { grid-column: 1/-1; min-height: 108px; background: #f0f3ec; }
body[data-mode="entry"] .entry-card-admin h2 { font-size: 18px; }
body[data-mode="entry"] .entry-card-admin .entry-card-icon { display: none; }
body[data-mode="entry"] .entry-bottom .link-button { min-height: 44px; font-size: 13px; }
body[data-mode="entry"] .entry-note { font-size: 12px; }
body[data-mode="entry"] .entry-card-link { min-height: 44px; font-size: 14px; }
body[data-mode="entry"] .entry-footer { font-size: 11px; }

@media (min-width: 701px) {
  .mobile-main .planner-overview-grid, .mobile-main .planner-slot-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    align-items: start;
  }
  .mobile-main .planner-slot-list > .planner-slot { margin-top: 0; }
  body[data-mode="planner"] .mobile-header { padding-left: 24px; padding-right: 24px; }
  body[data-mode="planner"] .mobile-action-bar { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 700px) {
  body[data-mode="staff"], body[data-mode="planner"] { --demo-height: 52px; }
  .demo-bar {
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: calc(52px + env(safe-area-inset-top, 0px));
    padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 4px;
    gap: 8px;
  }
  .demo-bar .demo-detail { display: none; }
  .demo-bar .demo-tools { width: auto; gap: 4px; }
  .demo-bar .demo-separator { display: none; }
  .demo-bar :is(button,.btn,select) { min-height: 44px; font-size: 12px; padding: 8px 10px; }
  .mobile-header, .staff-header {
    top: calc(var(--demo-height, 52px) + env(safe-area-inset-top, 0px));
    padding: 9px 16px;
    min-height: 64px;
  }
  .mobile-main, .staff-main { padding: 22px 16px calc(108px + var(--mobile-safe-bottom)); }
  .mobile-main:has(.mobile-action-bar), .staff-main:has(.mobile-action-bar) { padding-bottom: calc(220px + var(--mobile-safe-bottom)); }
  .mobile-main .card, .staff-main .card { padding: 18px; }
  .mobile-main .page-head, .staff-main .page-head { flex-wrap: wrap; }
  .mobile-main .page-head p, .staff-main .page-head p { font-size: 13px; }
  .mobile-main .card-head, .staff-main .card-head { flex-wrap: wrap; gap: 8px; }
  .mobile-main .stack, .staff-main .stack { gap: 16px; }
  .mobile-main .form-grid, .staff-main .form-grid { grid-template-columns: minmax(0,1fr); }
  .mobile-action-bar { padding: 11px 16px; }
  .mobile-action-bar .btn { padding: 11px 12px; }
  .mobile-action-bar > .row { gap: 8px; }
  .planner-metrics { gap: 7px; }
  .planner-metric { padding: 12px 10px; min-height: 88px; }
  .planner-metric strong { font-size: 26px; }
  .planner-metric span { font-size: 11px; }
  .planner-response-top { flex-wrap: wrap; gap: 6px 8px; }
  .planner-response-top > button { min-width: 110px; }
  .planner-response-top .badge { font-size: 11px; }
  .planner-person, .planner-candidate { gap: 9px; }
  .planner-person .badge, .planner-candidate .badge { flex: 0 0 auto; font-size: 11px; white-space: normal; max-width: 104px; }
  .planner-segment > button { font-size: 13px; padding: 9px 6px; }
  .staff-day-card { padding: 14px 12px; gap: 10px; }
  .staff-day-number { flex-basis: 51px; }
  .staff-day-answer > strong { font-size: 15px; }
  .staff-bulk-dates { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .staff-review-day { grid-template-columns: 64px minmax(0,1fr) auto; gap: 8px; }
  .staff-review-day strong { font-size: 13px; }
  .staff-review-day .btn { padding: 8px; font-size: 12px; }
  body[data-mode="staff"] .roster-calendar { gap: 3px; grid-template-columns: repeat(7,minmax(44px,1fr)); overflow-x: auto; }
  body[data-mode="staff"] .calendar-cell { min-height: 76px; padding: 6px 2px; }
  body[data-mode="staff"] .calendar-cell .small { font-size: 10px; }
  body[data-mode="staff"] .definition-list { grid-template-columns: 72px minmax(0,1fr); gap: 12px; font-size: 13px; }
  body[data-mode="staff"] .definition-list > div { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
  body[data-mode="entry"] .entry-layout { padding: 22px 16px 32px; }
  body[data-mode="entry"] .entry-content { margin: 24px auto 30px; }
  body[data-mode="entry"] .entry-options { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body[data-mode="entry"] .entry-card { min-height: 174px; padding: 20px; }
  body[data-mode="entry"] .entry-card-admin { min-height: 110px; }
  body[data-mode="entry"] .entry-card h2 { font-size: 21px; }
  body[data-mode="entry"] .entry-card-admin h2 { font-size: 17px; }
  body[data-mode="entry"] .entry-card p { font-size: 13px; }
  body[data-mode="entry"] .entry-brand { font-size: 20px; }
  body[data-mode="entry"] .entry-description { font-size: 14px; }
  body[data-mode="staff"] .modal-backdrop,
  body[data-mode="planner"] .modal-backdrop {
    padding: 0;
    align-items: flex-end;
    justify-content: center;
  }
  body[data-mode="staff"] .modal,
  body[data-mode="planner"] .modal {
    width: 100%;
    max-width: 600px;
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top, 0px)));
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body[data-mode="staff"] .modal-head,
  body[data-mode="planner"] .modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    min-height: 70px;
    background: #fff;
  }
  body[data-mode="staff"] .modal-head h2,
  body[data-mode="planner"] .modal-head h2 { font-size: 18px; line-height: 1.5; }
  body[data-mode="staff"] .modal-head [data-close],
  body[data-mode="planner"] .modal-head [data-close] { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 8px; }
  body[data-mode="staff"] .modal-body,
  body[data-mode="planner"] .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 18px 16px calc(22px + var(--mobile-safe-bottom));
  }
  body[data-mode="staff"] .modal-body .form-grid,
  body[data-mode="planner"] .modal-body .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body[data-mode="staff"] .modal-body .row,
  body[data-mode="planner"] .modal-body .row { flex-wrap: wrap; }
  body[data-mode="staff"] .modal-body .btn.primary,
  body[data-mode="planner"] .modal-body .btn.primary { min-height: 50px; }
  body[data-mode="staff"] .modal-body .staff-choice-grid .btn,
  body[data-mode="planner"] .modal-body .planner-segment .btn { flex: initial; }
  body[data-mode="staff"] .toast,
  body[data-mode="planner"] .toast {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    padding: 13px 15px;
  }
}
@media (max-width: 370px) {
  .mobile-main, .staff-main { padding-left: 14px; padding-right: 14px; }
  .mobile-main .card, .staff-main .card { padding: 16px; }
  .mobile-header, .staff-header { padding-left: 14px; padding-right: 14px; }
  .mobile-header .brand, .staff-header .brand { font-size: 17px; }
  .staff-choice { padding: 12px; }
  .staff-shift-time { font-size: 21px; }
  .planner-response-top .badge { font-size: 10px; padding: 4px 6px; }
  .mobile-action-bar { padding-left: 14px; padding-right: 14px; }
  .mobile-action-bar .btn { font-size: 13px; }
  .mobile-bottom-nav :is(button,a), body[data-mode="staff"] .bottom-nav :is(button,a) { font-size: 11px; }
}
@media (max-width: 410px) {
  body[data-mode="staff"] .card:has(> .roster-calendar) { padding: 0; border: 0; background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .staff-date-overview, .planner-date-strip { scroll-behavior: auto; }
}
@media print {
  .mobile-header, .mobile-bottom-nav, .mobile-action-bar { display: none !important; }
  .mobile-shell, .mobile-main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; background: #fff; }
  .planner-date-strip, .planner-segment, .planner-filter { display: none !important; }
}


/* Return to the hosting site from every demo screen. */
.demo-bar .weams-return { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-size: .75rem; white-space: nowrap; text-decoration: underline; text-underline-offset: .2em; }
