:root {
  --warm-orange: #f36a21;
  --warm-orange-deep: #b94a1a;
  --warm-red: #c83532;
  --warm-red-soft: #fff0ed;
  --warm-gold-soft: #fff1cf;
  --warm-blue: #214f84;
  --warm-blue-deep: #18375d;
  --warm-blue-soft: #ecf3fb;
  --warm-teal: #4b9397;
  --warm-teal-soft: #e8f5f4;
  --warm-green: #1f8b54;
  --warm-green-soft: #e8f7ef;
  --cream: #fff9f0;
  --ink: #211813;
  --muted: #6d625b;
  --line: rgba(33, 79, 132, 0.12);
  --line-strong: rgba(33, 79, 132, 0.2);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(24, 55, 93, 0.12);
  --shadow-soft: 0 16px 36px rgba(24, 55, 93, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(243, 106, 33, 0.2), transparent 28rem),
    radial-gradient(circle at top right, rgba(75, 147, 151, 0.16), transparent 32rem),
    linear-gradient(180deg, #fffaf4 0%, #f7f9fc 100%);
}

body.app-loading {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(243, 106, 33, 0.18), transparent 24rem),
    radial-gradient(circle at top right, rgba(75, 147, 151, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(247, 249, 252, 0.98) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

body.app-loading .loading-overlay {
  opacity: 1;
  visibility: visible;
}

.loading-overlay__card {
  width: min(100%, 560px);
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px rgba(24, 55, 93, 0.16);
  backdrop-filter: blur(18px);
  text-align: center;
}

.loading-overlay__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Refined startup sequence: clear progress, warm focus and calm motion. */
.loading-overlay__card {
  gap: 12px;
  background: radial-gradient(circle at 50% 24%, rgba(255, 239, 221, 0.72), transparent 34%), linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 255, 0.91));
  box-shadow: 0 30px 70px rgba(24, 55, 93, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.loading-overlay__brand::before { inset: -26px; }
.loading-overlay__logo { width: 116px; height: 116px; border-radius: 30px; }
.loading-overlay__eyebrow { margin-bottom: 8px; }
.loading-overlay__title { font-size: clamp(1.85rem, 4vw, 2.55rem); }

.loading-overlay__progress {
  position: relative;
  width: min(100%, 420px);
  height: 12px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 999px;
  background: rgba(33, 79, 132, 0.09);
  box-shadow: inset 0 2px 5px rgba(24, 55, 93, 0.08), 0 8px 24px rgba(243, 106, 33, 0.08);
}

.loading-overlay__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e85f20 0%, #f58b3d 52%, #f6b14c 100%);
  box-shadow: 0 0 18px rgba(243, 106, 33, 0.42);
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.loading-overlay__progress-shine {
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
  animation: warm-progress-shine 2.2s ease-in-out infinite;
}

.loading-overlay__status-window { min-height: 28px; overflow: hidden; display: grid; place-items: center; }
.loading-overlay__detail.is-changing { animation: warm-status-rise 420ms ease both; }
.loading-overlay__reassurance { color: rgba(24, 55, 93, 0.68); font-size: 0.78rem; line-height: 1.4; }

@keyframes warm-progress-shine {
  0%, 28% { transform: translateX(-120%); }
  72%, 100% { transform: translateX(120%); }
}

@keyframes warm-status-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-overlay__progress-shine, .loading-overlay__detail.is-changing { animation: none; }
  .loading-overlay__progress-fill { transition: none; }
}

@media (max-width: 760px) {
  .loading-overlay__logo { width: 96px; height: 96px; border-radius: 26px; }
  .loading-overlay__eyebrow { max-width: 290px; font-size: 0.68rem; line-height: 1.45; }
}

.loading-overlay__brand::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(243, 106, 33, 0.24) 0%, rgba(243, 106, 33, 0.08) 42%, transparent 72%);
  filter: blur(8px);
  animation: warm-logo-glow 3.2s ease-in-out infinite;
}

.loading-overlay__logo {
  position: relative;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(243, 106, 33, 0.18);
  box-shadow: 0 18px 32px rgba(243, 106, 33, 0.16);
  animation: warm-logo-breathe 3.2s ease-in-out infinite;
}

.loading-overlay__logo--partner {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  border-radius: 24px;
  border-color: rgba(200, 53, 50, 0.18);
}

.loading-overlay__plus {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm-orange) 0%, #de5b22 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(243, 106, 33, 0.22);
}

.loading-overlay__eyebrow {
  color: var(--warm-orange-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.loading-overlay__title {
  color: var(--warm-blue-deep);
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.loading-overlay__message {
  max-width: 420px;
  color: var(--warm-blue-deep);
  font-size: 1rem;
  line-height: 1.5;
}

.loading-overlay__detail {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.loading-overlay__skeleton {
  width: min(100%, 420px);
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.loading-overlay__skeleton-pill,
.loading-overlay__skeleton-line,
.loading-overlay__skeleton-card {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 79, 132, 0.08);
}

.loading-overlay__skeleton-pill::after,
.loading-overlay__skeleton-line::after,
.loading-overlay__skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.78) 50%, transparent 100%);
  animation: warm-loading-shimmer 1.4s ease-in-out infinite;
}

.loading-overlay__skeleton-pill {
  width: 120px;
  height: 16px;
  justify-self: center;
}

.loading-overlay__skeleton-line {
  height: 14px;
}

.loading-overlay__skeleton-line--strong {
  width: 76%;
  justify-self: center;
  height: 18px;
}

.loading-overlay__skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.loading-overlay__skeleton-card {
  height: 76px;
  border-radius: 18px;
}

@keyframes warm-logo-breathe {
  0%, 100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes warm-logo-glow {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes warm-loading-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

body.is-standalone .app-shell {
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
a {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.month-title strong,
.day-title h2 {
  font-family: "Fraunces", Georgia, serif;
}

.app-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 20px 96px;
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease, transform 280ms ease;
}

body.app-loading .app-shell {
  opacity: 0.04;
  transform: translateY(8px) scale(0.995);
  pointer-events: none;
}

.site-header,
.hero-card,
.day-panel,
.calendar-panel,
.utility-card,
.status-card,
.install-strip,
.cover-card,
.preview-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  display: grid;
  gap: 14px;
  padding: 18px 20px 0;
  border-radius: var(--radius-xl);
  overflow: visible;
  transition:
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-header__utility {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 -4px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(24, 55, 93, 0.1);
  backdrop-filter: blur(14px);
  overflow: visible;
  isolation: isolate;
  transition:
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  opacity: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(243, 106, 33, 0.18);
  transition:
    width 180ms ease,
    height 180ms ease,
    border-radius 180ms ease;
}

.brand-logo--partner {
  width: 78px;
  height: 78px;
  object-fit: contain;
  padding: 8px;
  border-radius: 24px;
  border-color: rgba(200, 53, 50, 0.2);
}

.brand-plus {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm-orange) 0%, #de5b22 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(243, 106, 33, 0.2);
  transition:
    width 180ms ease,
    height 180ms ease,
    font-size 180ms ease;
}

.brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--warm-orange-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--warm-blue-deep);
  transition: font-size 180ms ease;
}

.partner-note,
.subtle,
.month-title span,
.mini-heading p,
.toggle,
.legend,
.empty-state,
.toolbar-copy p {
  color: var(--muted);
}

.partner-note {
  margin-top: 4px;
  color: var(--warm-red);
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    opacity 180ms ease,
    max-height 180ms ease,
    transform 180ms ease,
    margin 180ms ease;
}

.subtle {
  font-size: 0.94rem;
  line-height: 1.45;
  transition:
    opacity 180ms ease,
    max-height 180ms ease,
    transform 180ms ease,
    margin 180ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.app-tab--header-profile {
  min-height: 44px;
  padding: 0 16px;
}

.page-label {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--warm-blue-deep);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  transition:
    min-height 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.global-search svg,
.app-tab__icon svg,
.bottom-nav__item svg,
.role-icon svg,
.cover-item__icon svg,
.preview-card__icon svg,
.my-shift-card__icon svg,
.my-shift-card__venue-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-tab__icon,
.bottom-nav__item .app-tab__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.app-tab__icon svg *,
.bottom-nav__item svg *,
.role-icon svg *,
.cover-item__icon svg *,
.preview-card__icon svg *,
.my-shift-card__icon svg *,
.my-shift-card__venue-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.global-search input {
  flex: 1 1 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.app-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.app-tabs::-webkit-scrollbar {
  height: 8px;
}

.app-tabs::-webkit-scrollbar-thumb {
  background: rgba(33, 79, 132, 0.16);
  border-radius: 999px;
}

.app-tab,
.bottom-nav__item,
.btn,
.month-btn,
.chip,
.day-nav-btn,
.upcoming-item,
.cover-open-btn {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.app-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--warm-blue);
  font-weight: 800;
  cursor: pointer;
}

.app-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--warm-orange) 0%, #ff8a3d 100%);
  box-shadow: 0 14px 28px rgba(243, 106, 33, 0.22);
}

.admin-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 55;
}

.admin-menu__toggle {
  padding-right: 12px;
}

.admin-menu__chevron {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.admin-menu__chevron svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-menu.is-open .admin-menu__chevron {
  transform: rotate(180deg);
}

.admin-menu.is-open {
  z-index: 80;
}

.admin-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 36px rgba(24, 55, 93, 0.14);
  backdrop-filter: blur(12px);
  max-height: min(70vh, 420px);
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 90;
}

.admin-menu.is-open .admin-menu__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-menu__panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-menu-portal-root {
  position: relative;
  z-index: 10040;
  pointer-events: none;
}

.admin-menu__panel--portal {
  position: fixed;
}

.admin-menu__panel--portal.is-open {
  pointer-events: auto;
}

.admin-menu__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  border-radius: 16px;
  background: #fff;
  color: var(--warm-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.admin-menu__item:hover,
.admin-menu__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(243, 106, 33, 0.24);
  background: #fff7f1;
}

.admin-menu__item.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--warm-orange) 0%, #ff8a3d 100%);
  box-shadow: 0 12px 22px rgba(243, 106, 33, 0.18);
}

.app-main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.app-view {
  display: grid;
  gap: 18px;
}

.app-view[hidden] {
  display: none !important;
}

.hero-card,
.toolbar,
.day-title,
.month-nav,
.today-banner,
.panel-heading,
.cover-card__head,
.preview-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-card,
.utility-card,
.day-panel,
.calendar-panel,
.install-strip,
.cover-card,
.preview-card {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.hero-card h2,
.utility-card h2,
.utility-card h3 {
  color: var(--warm-blue-deep);
  letter-spacing: -0.02em;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.9) 100%);
}

.hero-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-card--variant {
  align-items: stretch;
}

.hero-summary {
  display: grid;
  gap: 14px;
}

.hero-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-summary__row--stack {
  align-items: center;
}

.hero-summary__copy {
  min-width: 0;
}

.hero-summary__lead {
  margin-top: 6px;
  color: var(--warm-blue-deep);
  font-weight: 800;
}

.hero-summary__identity {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-summary__identity strong {
  color: var(--warm-blue-deep);
}

.hero-summary__meta {
  margin-top: 4px;
  color: var(--muted);
}

.hero-summary__metrics,
.hero-summary__tiles,
.hero-summary__band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-summary__pill {
  background: rgba(255, 255, 255, 0.96);
}

.hero-summary__preview {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(243, 106, 33, 0.12);
  color: var(--warm-orange-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-summary--one .hero-summary__metrics {
  padding-top: 2px;
}

.hero-summary--one .subtle {
  display: none;
}

.hero-summary--two {
  gap: 16px;
}

.hero-summary--two .hero-summary__tile {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(236, 243, 251, 0.82) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.hero-summary--two .hero-summary__tile span,
.hero-summary__band-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-summary--two .hero-summary__tile strong,
.hero-summary__band-item strong {
  color: var(--warm-blue-deep);
  line-height: 1.35;
}

.hero-summary--three {
  gap: 16px;
}

.hero-summary__band {
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 12px;
  background: linear-gradient(135deg, rgba(33, 79, 132, 0.08) 0%, rgba(243, 106, 33, 0.08) 100%);
}

.hero-summary__band-item {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(33, 79, 132, 0.08);
}

.mobile-push-prompt {
  display: none;
  gap: 12px;
  margin-top: 8px;
  border: 1px solid rgba(243, 106, 33, 0.16);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(243, 106, 33, 0.08) 0%, rgba(33, 79, 132, 0.06) 100%);
}

.mobile-push-prompt.is-loading {
  opacity: 0.86;
}

.mobile-push-prompt__copy h3 {
  margin: 2px 0 6px;
  color: var(--warm-blue-deep);
  font-size: 1.05rem;
}

.mobile-push-prompt__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mobile-push-prompt__eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--warm-orange-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-push-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.month-btn:hover,
.chip:hover,
.app-tab:hover,
.bottom-nav__item:hover,
.upcoming-item:hover,
.day-nav-btn:hover:not(:disabled),
.cover-open-btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--warm-blue) 0%, #356da9 100%);
  box-shadow: 0 12px 26px rgba(33, 79, 132, 0.18);
}

.btn-ghost,
.month-btn,
.day-nav-btn,
.cover-open-btn {
  color: var(--warm-blue);
  background: #fff;
  border: 1px solid var(--line);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-card {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
}

.status-card strong {
  font-size: 1.8rem;
}

.status-card span {
  font-weight: 700;
}

.status-card.filled strong {
  color: var(--warm-green);
}

.status-card.attention strong {
  color: #b7791f;
}

.status-card.required strong {
  color: var(--warm-red);
}

.day-panel {
  min-width: 0;
}

.today-banner {
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--warm-blue) 0%, #2f689b 100%);
  color: #fff;
}

.today-banner strong {
  font-size: 1.28rem;
}

.today-banner p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: anywhere;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar-copy {
  min-width: 0;
}

.toolbar-copy h3 {
  color: var(--warm-blue-deep);
  font-size: 1.12rem;
}

.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-height: 42px;
  padding: 0 14px;
  color: var(--warm-blue-deep);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  border-color: var(--warm-orange);
  background: linear-gradient(135deg, var(--warm-orange) 0%, #de5b22 100%);
}

.day-title {
  align-items: center;
  flex-direction: column;
  margin: 2px 0 8px;
}

/* Management Insights and private volunteer wellbeing reporting. */
.management-insights-board {
  display: grid;
  gap: 16px;
}

#view-management-insights,
.management-insights-board,
.management-insights-board > *,
.management-detail-tables > .utility-card {
  min-width: 0;
}

#view-management-insights,
.management-insights-board,
.management-detail-tables > .utility-card {
  width: 100%;
}

.management-insights-hero,
.wellbeing-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.management-insights-hero h1,
.wellbeing-hero h1 {
  margin: 3px 0 6px;
  color: #153a68;
}

.management-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.management-filter-bar label,
.management-schedule-fields label,
.wellbeing-action-form > label:not(.checkbox-row) {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #244568;
  font-weight: 700;
}

.management-filter-bar input:not([type="checkbox"]),
.management-filter-bar select,
.management-schedule-fields input,
.management-schedule-fields select,
.wellbeing-action-form select,
.wellbeing-action-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  background: #fff;
  color: #24384f;
  padding: 9px 11px;
  font: inherit;
}

.management-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.management-metric {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f7fafc);
}

.management-metric strong {
  display: block;
  color: #153a68;
  font-size: 1.55rem;
  line-height: 1;
}

.management-metric span {
  display: block;
  margin-top: 7px;
  color: #687789;
  font-size: .86rem;
}

.management-metric small {
  display: block;
  margin-top: 7px;
  color: #6d7d8d;
  font-size: .76rem;
  line-height: 1.3;
}

.management-metric--good {
  border-color: #cde7d9;
  background: linear-gradient(145deg, #fff, #f1faf5);
}

.management-metric--warning {
  border-color: #f0dfaa;
  background: linear-gradient(145deg, #fff, #fff9e9);
}

.management-metric--risk {
  border-color: #efc7c0;
  background: linear-gradient(145deg, #fff, #fff4f1);
}

.management-executive-snapshot {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(260px, 1.5fr);
  align-items: center;
  gap: 14px 28px;
  border-color: #d8e7e3;
  background:
    radial-gradient(circle at 92% 8%, rgba(76, 168, 117, .13), transparent 34%),
    linear-gradient(135deg, #fffaf5, #f7fbfa);
}

.management-executive-snapshot > p {
  margin: 0;
  color: #354f68;
  font-size: 1.02rem;
  line-height: 1.55;
}

.management-focus-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.management-focus-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #dbe6e7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #607084;
  font-size: .82rem;
}

.management-focus-pills strong { color: #173e6c; }

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

.management-chart-grid--snapshot {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.management-chart-card {
  min-width: 0;
  overflow: hidden;
}

.management-chart-card--wide { grid-column: span 2; }

.management-chart-card .mini-heading {
  margin-bottom: 14px;
}

.management-chart-card .mini-heading h2,
.management-section-heading h2,
.management-patterns h2,
.management-action-card h2,
.management-callout h2,
.management-detail-card h2 {
  color: #173e6c;
}

.management-chart-empty {
  margin: 18px 0 4px;
  color: #788696;
}

.management-donut-wrap {
  display: grid;
  grid-template-columns: minmax(126px, 164px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.management-donut {
  display: grid;
  width: min(100%, 164px);
  aspect-ratio: 1;
  place-items: center;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--management-donut-background);
}

.management-donut > div {
  display: grid;
  width: 66%;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(25, 61, 96, .06);
  text-align: center;
}

.management-donut strong {
  color: #173e6c;
  font-size: 1.65rem;
  line-height: 1;
}

.management-donut span {
  margin-top: 5px;
  color: #718092;
  font-size: .74rem;
}

.management-chart-legend {
  display: grid;
  gap: 9px;
}

.management-chart-legend span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #607084;
  font-size: .82rem;
}

.management-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.management-chart-legend strong { color: #173e6c; }

.management-bar-chart {
  display: grid;
  gap: 12px;
}

.management-bar-row {
  display: grid;
  grid-template-columns: minmax(115px, .8fr) minmax(120px, 2fr) 62px;
  align-items: center;
  gap: 12px;
}

.management-bar-row__label,
.management-bar-row__value {
  display: grid;
  min-width: 0;
}

.management-bar-row__label strong {
  overflow: hidden;
  color: #264968;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-bar-row__label span,
.management-bar-row__value span {
  color: #7a8795;
  font-size: .72rem;
}

.management-bar-row__track {
  display: flex;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f4;
}

.management-bar-row__track span { height: 100%; }
.management-bar-row__track .is-filled { background: #55aa80; }
.management-bar-row__track .is-open { background: #df765f; }

.management-bar-row__value {
  text-align: right;
}

.management-bar-row__value strong {
  color: #173e6c;
  font-size: .86rem;
}

.management-chart-key {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
  color: #657587;
  font-size: .76rem;
}

.management-chart-key span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  content: "";
}

.management-chart-key .is-filled::before { background: #55aa80; }
.management-chart-key .is-open::before { background: #df765f; }

.management-trend-chart {
  display: block;
  width: 100%;
  min-height: 190px;
  overflow: visible;
}

.management-trend-chart > path {
  fill: none;
  stroke: #2d729f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.management-trend-chart circle {
  fill: #fff;
  stroke: #2d729f;
  stroke-width: 4;
}

.management-trend-grid line {
  stroke: #e6edf2;
  stroke-width: 1;
}

.management-trend-grid text,
.management-trend-label,
.management-trend-value {
  fill: #738192;
  font-family: inherit;
  font-size: 11px;
}

.management-trend-value {
  fill: #173e6c;
  font-weight: 800;
}

.management-trend-open-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  margin-top: 4px;
  color: #778596;
  font-size: .72rem;
}

.management-trend-open-values strong { color: #b55749; }

.management-section-heading {
  padding: 6px 4px 0;
}

.management-section-heading h2 { margin: 2px 0 0; }

.management-patterns {
  background: linear-gradient(145deg, #fff, #f8fafc);
}

.management-patterns h3 {
  margin: 2px 0 12px;
  color: #244568;
}

.management-pattern-list {
  display: grid;
  gap: 8px;
}

.management-pattern-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e8edf2;
}

.management-pattern-list > div:first-child { border-top: 0; }
.management-pattern-list p { margin: 0; }
.management-pattern-list small { display: block; margin-top: 3px; color: #718092; line-height: 1.4; }

.management-action-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 4px solid #5da784;
}

.management-action-card:nth-child(2) { border-top-color: #4a86ad; }
.management-action-card:nth-child(3) { border-top-color: #e0a627; }

.management-action-card > p:first-of-type {
  color: #405a73;
  font-size: 1rem;
}

.management-action-card > p:first-of-type strong {
  color: #173e6c;
  font-size: 1.55rem;
}

.management-action-card .btn { margin-top: auto; align-self: flex-start; }

.management-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: #f0caa9;
  background: linear-gradient(135deg, #fff8ef, #fff);
}

.management-callout h2 { margin: 2px 0 5px; }
.management-callout p:last-child { margin: 0; color: #5c6c7a; }

.management-detail-card,
.management-detail-tables {
  scroll-margin-top: 16px;
}

.management-progress {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f4;
}

.management-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97a3b, #55aa80);
}

.management-two-column,
.management-three-column {
  display: grid;
  gap: 16px;
}

.management-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.management-insights-board .volunteer-admin-table td small {
  display: block;
  margin-top: 3px;
  color: #778493;
}

.management-schedule-card {
  margin-top: 16px;
}

.management-schedule-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.management-schedule-workflow {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #fbfcfd;
}

.management-schedule-workflow legend {
  padding: 0 7px;
  color: #163e6d;
  font-weight: 800;
}

.management-schedule-workflow--wide,
.management-schedule-form > .auth-actions,
.management-schedule-form > .subtle {
  grid-column: 1 / -1;
}

.management-schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.management-schedule-fields--digest {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.management-channel-options,
.management-recipient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.management-recipient-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  background: #fff;
}

.management-recipient-option span,
.management-recipient-option small {
  display: block;
}

.management-recipient-option small { color: #738091; }

.management-dry-run pre {
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #142a43;
  color: #f4f7fa;
  white-space: pre-wrap;
}

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

.wellbeing-card {
  border-left: 5px solid #72b895;
}

.wellbeing-card--moderate { border-left-color: #e0a627; }
.wellbeing-card--high,
.wellbeing-card--critical { border-left-color: #cf5a50; }

.wellbeing-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wellbeing-card__header h2 { margin: 0; }

.wellbeing-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.wellbeing-card__metrics span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f2f6f9;
  color: #526477;
  font-size: .84rem;
}

.wellbeing-action-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5ebf0;
}

/* Prioritised roster-load leaderboard. Categories are visual indicators, never diagnoses. */
.wellbeing-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 10px;
}

.wellbeing-quick-filter,
.wellbeing-summary-item {
  min-height: 42px;
  border: 1px solid #d6e0ea;
  border-radius: 999px;
  background: #fff;
  color: #21486f;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.wellbeing-quick-filter { padding: 8px 13px; }
.wellbeing-quick-filter:hover,
.wellbeing-quick-filter:focus-visible,
.wellbeing-quick-filter.is-active { border-color: #dd6b32; background: #fff5ed; color: #9a4217; outline: none; }
.management-filter-bar .wellbeing-include-low {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  color: #315273;
  white-space: nowrap;
}

.management-filter-bar .wellbeing-include-low input[type="checkbox"] {
  appearance: none;
  width: 36px;
  min-width: 36px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #afc0d0;
  border-radius: 999px;
  background: #dce5ed;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.management-filter-bar .wellbeing-include-low input[type="checkbox"]::after {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25, 54, 82, .22);
  content: "";
  transition: transform .16s ease;
}

.management-filter-bar .wellbeing-include-low input[type="checkbox"]:checked { border-color: #2965a0; background: #2965a0; }
.management-filter-bar .wellbeing-include-low input[type="checkbox"]:checked::after { transform: translateX(16px); }
.management-filter-bar .wellbeing-include-low input[type="checkbox"]:focus-visible { outline: 3px solid rgba(41, 101, 160, .32); outline-offset: 2px; }

.wellbeing-summary-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.wellbeing-summary-item {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 15px;
  text-align: left;
}

.wellbeing-summary-item strong { font-family: Fraunces, Georgia, serif; font-size: 1.55rem; line-height: 1; }
.wellbeing-summary-item span { margin-top: 5px; font-size: .78rem; }
.wellbeing-summary-item--critical { border-color: #d75d55; color: #9f302b; background: #fff5f4; }
.wellbeing-summary-item--high { border-color: #e58a3c; color: #a94d12; background: #fff8ed; }
.wellbeing-summary-item--moderate { border-color: #dfb63f; color: #876300; background: #fffbed; }
.wellbeing-summary-item--low { border-color: #78ad84; color: #276643; background: #f3fbf5; }
.wellbeing-summary-item--due { border-color: #e58a3c; color: #a94d12; }
.wellbeing-summary-item--completed { border-color: #78ad84; color: #276643; }
.wellbeing-summary-item.is-active { box-shadow: inset 0 0 0 2px currentColor; }

.wellbeing-leaderboard {
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  background: #fff;
}

.wellbeing-leaderboard__hint {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid #e7edf3;
  color: #617387;
  font-size: .84rem;
}

.wellbeing-leaderboard-row { border-bottom: 1px solid #e8edf2; }
.wellbeing-leaderboard-row:last-child { border-bottom: 0; }
.wellbeing-leaderboard-row--critical { box-shadow: inset 4px 0 #d75d55; }
.wellbeing-leaderboard-row--high { box-shadow: inset 4px 0 #e58a3c; }
.wellbeing-leaderboard-row--moderate { box-shadow: inset 4px 0 #dfb63f; }
.wellbeing-leaderboard-row--low { box-shadow: inset 4px 0 #78ad84; }
.wellbeing-leaderboard-row.is-expanded { background: #f8fbfe; }

.wellbeing-leaderboard-row__summary {
  display: grid;
  grid-template-columns: 34px minmax(170px, 1.05fr) minmax(260px, 1.55fr) minmax(190px, 1.1fr) minmax(118px, .75fr) 105px;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  color: #213d5b;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.wellbeing-leaderboard-row__summary:hover { background: #f3f8fc; }
.wellbeing-leaderboard-row__summary:focus-visible { outline: 3px solid #6f9cc7; outline-offset: -3px; }
.wellbeing-rank { color: #718298; font-weight: 800; }
.wellbeing-volunteer,
.wellbeing-load,
.wellbeing-next-shift { display: grid; gap: 4px; min-width: 0; }
.wellbeing-volunteer strong { font-size: 1rem; }
.wellbeing-volunteer small,
.wellbeing-load > span,
.wellbeing-next-shift span { overflow: hidden; color: #66788a; font-size: .82rem; line-height: 1.35; text-overflow: ellipsis; }
.wellbeing-level-badge,
.wellbeing-support-status,
.wellbeing-indicator-chip { display: inline-flex; width: max-content; align-items: center; gap: 5px; border-radius: 999px; font-size: .73rem; font-style: normal; font-weight: 800; line-height: 1; }
.wellbeing-level-badge { padding: 5px 8px; }
.wellbeing-level-badge b { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .66rem; }
.wellbeing-level-badge--critical { color: #9f302b; background: #ffe9e7; }
.wellbeing-level-badge--high { color: #a94d12; background: #fff0dd; }
.wellbeing-level-badge--moderate { color: #876300; background: #fff7d7; }
.wellbeing-level-badge--low { color: #276643; background: #e8f7ec; }
.wellbeing-load > strong { color: #173f6d; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; }
.wellbeing-load > strong small { font-family: inherit; font-size: .72rem; }
.wellbeing-load em { display: flex; flex-wrap: wrap; gap: 5px; }
.wellbeing-indicator-chip { padding: 5px 7px; color: #506981; background: #edf3f8; white-space: nowrap; }
.wellbeing-support-status { justify-content: center; padding: 7px 9px; text-align: center; }
.wellbeing-support-status--due { color: #a94d12; background: #fff0dd; }
.wellbeing-support-status--completed { color: #276643; background: #e8f7ec; }
.wellbeing-support-status--none { color: #576b80; background: #edf3f8; }
.wellbeing-next-shift__empty { color: #718298; font-size: .84rem; }
.wellbeing-row-action { justify-self: end; color: #1c5d9a; font-weight: 800; white-space: nowrap; }
.wellbeing-row-action b { display: inline-grid; width: 21px; height: 21px; margin-left: 5px; place-items: center; border-radius: 50%; background: #e8f1f8; }

.wellbeing-expanded-detail {
  padding: 20px 24px 24px 66px;
  border-top: 1px solid #dfe8f0;
  background: linear-gradient(135deg, #f8fbfe, #fff);
}

.wellbeing-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wellbeing-detail-grid > div,
.wellbeing-detail-section { padding: 14px 16px; border: 1px solid #dfe8f0; border-radius: 14px; background: #fff; }
.wellbeing-detail-grid p,
.wellbeing-detail-section p { margin: 0; color: #4c6177; line-height: 1.55; }
.wellbeing-detail-grid .eyebrow { margin-bottom: 4px; }
.wellbeing-detail-section { margin-top: 12px; }
.wellbeing-detail-section h3 { margin: 0 0 7px; color: #173f6d; font-family: Fraunces, Georgia, serif; font-size: 1.08rem; }
.wellbeing-breakdown { display: grid; gap: 9px; }
.wellbeing-breakdown-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(100px, 2fr) 30px; align-items: center; gap: 10px; color: #506981; font-size: .84rem; }
.wellbeing-breakdown-row > div { overflow: hidden; height: 9px; border-radius: 99px; background: #e6eef5; }
.wellbeing-breakdown-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f08442, #d65d4f); }
.wellbeing-breakdown-row strong { color: #21486f; text-align: right; }
.wellbeing-privacy-note { margin: 14px 0 0; color: #66788a; font-size: .82rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .management-metrics { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .management-filter-bar { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .management-three-column { grid-template-columns: 1fr; }
  .management-chart-grid--snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wellbeing-summary-strip { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .wellbeing-leaderboard-row__summary { grid-template-columns: 30px minmax(155px, 1fr) minmax(220px, 1.25fr) minmax(150px, 1fr) 98px; }
  .wellbeing-support-status { display: none; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body:is([data-active-view="management-insights"], [data-active-view="volunteer-wellbeing"]) .site-header__utility {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  }

  body:is([data-active-view="management-insights"], [data-active-view="volunteer-wellbeing"]) .app-tabs--top {
    width: auto;
    overflow-x: auto;
  }

  body:is([data-active-view="management-insights"], [data-active-view="volunteer-wellbeing"]) .global-search {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .management-insights-hero,
  .wellbeing-hero { flex-direction: column; }
  .management-filter-bar,
  .management-schedule-form,
  .management-schedule-fields--digest,
  .management-two-column,
  .wellbeing-list,
  .management-chart-grid,
  .management-chart-grid--snapshot,
  .management-executive-snapshot { grid-template-columns: 1fr; }
  .management-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-chart-card--wide,
  .management-executive-snapshot > *,
  .management-focus-pills { grid-column: auto; }
  .management-donut-wrap { grid-template-columns: 128px minmax(0, 1fr); }
  .management-bar-row { grid-template-columns: minmax(92px, .8fr) minmax(92px, 1.5fr) 54px; gap: 8px; }
  .management-bar-row__label strong { white-space: normal; }
  .management-callout { align-items: flex-start; flex-direction: column; }
  .management-schedule-workflow--wide,
  .management-schedule-form > .auth-actions,
  .management-schedule-form > .subtle { grid-column: auto; }
  .wellbeing-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wellbeing-quick-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .wellbeing-quick-filter { flex: 0 0 auto; }
  .wellbeing-leaderboard-row__summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 15px 14px; }
  .wellbeing-volunteer { grid-column: 2; }
  .wellbeing-load { grid-column: 2 / -1; }
  .wellbeing-next-shift { grid-column: 2 / -1; padding-top: 7px; border-top: 1px solid #e7edf3; }
  .wellbeing-row-action { grid-column: 3; grid-row: 1; align-self: start; font-size: 0; }
  .wellbeing-row-action b { margin: 0; font-size: .95rem; }
  .wellbeing-expanded-detail { padding: 16px 14px 20px; }
  .wellbeing-detail-grid { grid-template-columns: 1fr; }
  .wellbeing-breakdown-row { grid-template-columns: minmax(110px, 1fr) minmax(80px, 1.4fr) 24px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-overlay__brand::before,
  .loading-overlay__logo,
  .loading-overlay__skeleton-pill::after,
  .loading-overlay__skeleton-line::after,
  .loading-overlay__skeleton-card::after {
    animation: none;
  }
}

@media (max-width: 430px) {
  .management-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .management-metric { padding: 13px 11px; }
  .management-metric strong { font-size: 1.35rem; }
  .management-donut-wrap { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .management-bar-row { grid-template-columns: minmax(84px, .8fr) minmax(72px, 1fr) 48px; }
  .management-bar-row__label strong,
  .management-bar-row__value strong { font-size: .78rem; }
}

/* Volunteer onboarding */
.auth-onboarding-heading {
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(24, 58, 91, 0.1);
}

.auth-onboarding-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-onboarding-fieldset legend {
  margin-bottom: 0.55rem;
  font-weight: 700;
  color: var(--navy, #173a5e);
}

.onboarding-dashboard {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-inline: auto;
}

.onboarding-progress {
  display: grid;
  gap: 0.55rem;
}

.onboarding-progress__step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(24, 58, 91, 0.12);
  border-radius: 14px;
  color: #756b65;
  background: #fffdfa;
}

.onboarding-progress__step > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(24, 58, 91, 0.14);
  border-radius: 50%;
  color: #18724a;
}

.onboarding-progress__step svg {
  width: 1rem;
  height: 1rem;
}

.onboarding-progress__step.is-complete {
  color: var(--navy, #173a5e);
  border-color: rgba(24, 114, 74, 0.24);
  background: #f3fbf6;
}

.onboarding-induction,
.onboarding-admin-panel,
.onboarding-approval-panel {
  padding: 1rem;
}

@media (max-width: 640px) {
  .onboarding-dashboard .manager-slot-form__actions {
    align-items: stretch;
  }

  .onboarding-dashboard .btn {
    width: 100%;
    justify-content: center;
  }
}

.day-title__main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  border-radius: 20px;
  background: rgba(255, 247, 237, 0.62);
}

.day-title__main--current {
  background: rgba(233, 250, 246, 0.64);
}

.day-title__main--next {
  background: rgba(235, 247, 255, 0.66);
}

.day-title__main--upcoming {
  background: rgba(243, 245, 255, 0.66);
}

.day-title__main--past {
  background: rgba(245, 246, 248, 0.72);
}

.day-title__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.day-title h2 {
  margin: 0;
  font-size: clamp(1.28rem, 1.9vw, 1.78rem);
  color: #7d4b2d;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-align: center;
}

.day-title p {
  margin-top: 4px;
  color: var(--muted);
}

.day-title__label {
  margin: 0 0 2px;
  color: #6d7480;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.15;
  text-transform: uppercase;
}

.day-swipe-hint {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  padding: 4px 11px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.72);
  color: #7a6b62;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  animation: day-swipe-hint-nudge 1300ms ease-out 1;
}

.day-sticky-context {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 8;
  justify-self: center;
  width: fit-content;
  max-width: min(92vw, 360px);
  margin: 0 auto 8px;
  padding: 6px 12px;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 24px rgba(24, 55, 93, 0.1);
  color: var(--warm-blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
  backdrop-filter: blur(10px);
}

.day-sticky-context[hidden] {
  display: none !important;
}

.day-panel-transitioning .day-title,
.day-panel-transitioning .day-stats,
.day-panel-transitioning .venue-card,
.day-panel-transitioning .shift-list,
.day-panel-transitioning .notes-card {
  animation-duration: 220ms;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.day-panel-transitioning.day-panel-next .day-title,
.day-panel-transitioning.day-panel-next .day-stats,
.day-panel-transitioning.day-panel-next .venue-card,
.day-panel-transitioning.day-panel-next .shift-list,
.day-panel-transitioning.day-panel-next .notes-card {
  animation-name: day-panel-slide-next;
}

.day-panel-transitioning.day-panel-prev .day-title,
.day-panel-transitioning.day-panel-prev .day-stats,
.day-panel-transitioning.day-panel-prev .venue-card,
.day-panel-transitioning.day-panel-prev .shift-list,
.day-panel-transitioning.day-panel-prev .notes-card {
  animation-name: day-panel-slide-prev;
}

@keyframes day-panel-slide-next {
  from {
    opacity: 0.58;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes day-panel-slide-prev {
  from {
    opacity: 0.58;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes day-swipe-hint-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(-3px);
  }

  70% {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-swipe-hint,
  .day-panel-transitioning .day-title,
  .day-panel-transitioning .day-stats,
  .day-panel-transitioning .venue-card,
  .day-panel-transitioning .shift-list,
  .day-panel-transitioning .notes-card {
    animation: none;
  }
}

.day-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--warm-blue-deep);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.day-nav-btn:hover:not(:disabled) {
  border-color: rgba(243, 106, 33, 0.35);
  box-shadow: 0 10px 18px rgba(24, 55, 93, 0.08);
}

.day-nav-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.day-stats,
.pill-list,
.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-stats {
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stat-pill,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.summary-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.summary-stat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(33, 79, 132, 0.2);
  flex: 0 0 8px;
}

.summary-stat--filled {
  color: #2d995b;
}

.summary-stat--filled::before {
  background: rgba(45, 153, 91, 0.92);
}

.summary-stat--required {
  color: #b93a34;
}

.summary-stat--required::before {
  background: rgba(185, 58, 52, 0.9);
}

.summary-stat--attention {
  color: #b67b00;
}

.summary-stat--attention::before {
  background: rgba(230, 168, 27, 0.95);
}

.roster-summary-pill {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(24, 55, 93, 0.05);
  font-size: 0.8rem;
  line-height: 1;
}

.venue-card {
  margin-bottom: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
}

.notes-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.notes-card h3,
.venue-card h3 {
  margin-bottom: 5px;
  color: var(--warm-blue-deep);
}

.notes-card p,
.venue-card p {
  margin: 0;
  line-height: 1.42;
  color: var(--muted);
}

.notes-card--editable {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.notes-card--editable:hover,
.notes-card--editable:focus-visible {
  border-color: rgba(243, 106, 33, 0.22);
  background: #fffaf6;
  box-shadow: 0 18px 28px rgba(24, 55, 93, 0.08);
  transform: translateY(-1px);
}

.notes-card--editable:focus-visible {
  outline: 2px solid rgba(243, 106, 33, 0.18);
  outline-offset: 2px;
}

.notes-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.notes-card__head h3 {
  margin-bottom: 4px;
}

.notes-card__hint {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.notes-card__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(33, 79, 132, 0.14);
  background: #fff;
  color: var(--warm-blue-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.notes-card__copy {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.venue-name {
  margin: 0 0 7px;
  color: var(--warm-blue-deep);
  font-size: 1.02rem;
  font-weight: 900;
}

.venue-info-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
  text-decoration: none;
}

.venue-info-row__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(33, 79, 132, 0.08);
  color: var(--warm-blue);
}

.venue-info-row__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue-info-row--link {
  color: var(--warm-blue-deep);
  font-weight: 800;
}

.venue-info-row--link:hover,
.venue-info-row--link:focus-visible {
  color: var(--warm-orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.venue-info-row--link:focus-visible {
  outline: 2px solid rgba(243, 106, 33, 0.24);
  outline-offset: 3px;
  border-radius: 10px;
}

.shift-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shift-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.shift-card--focus,
.shift-card--live {
  box-shadow: 0 0 0 3px rgba(33, 79, 132, 0.12);
}

.shift-card.required {
  border-color: rgba(200, 53, 50, 0.22);
}

.shift-card.attention {
  border-color: rgba(245, 158, 11, 0.28);
}

.shift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
}

.shift-head.transport {
  background: var(--warm-teal-soft);
}

.shift-head.afternoon {
  background: #eef7fd;
}

.shift-head.evening {
  background: #fff2e8;
}

.shift-head.overnight {
  background: #edf2fb;
}

.shift-head.breakfast,
.shift-head.pack {
  background: var(--cream);
}

.shift-title {
  min-width: 0;
}

.shift-title h3 {
  color: var(--warm-blue-deep);
  font-size: 1rem;
  line-height: 1.18;
}

.shift-title p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.shift-title .shift-date-time,
.shift-card__schedule {
  display: block;
  margin-top: 4px;
  color: #4f6075;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.shift-badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
  max-width: 48%;
}

.shift-badge-stack .badge {
  min-height: 24px;
  white-space: nowrap;
}

.shift-timing-badge--current {
  background: rgba(45, 153, 91, 0.12);
  color: #247a49;
}

.shift-timing-badge--upcoming {
  background: rgba(33, 79, 132, 0.1);
  color: var(--warm-blue-deep);
}

.roles {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.role-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: flex-start;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(33, 79, 132, 0.055);
  background: rgba(251, 252, 254, 0.72);
}

button.role-row {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.role-row--interactive {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.role-row--interactive:hover,
.role-row--interactive:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(33, 79, 132, 0.2);
  box-shadow: 0 14px 24px rgba(31, 55, 92, 0.08);
}

.role-row--interactive:focus-visible {
  outline: 2px solid rgba(243, 106, 33, 0.28);
  outline-offset: 2px;
}

.role-row.required {
  background: var(--warm-red-soft);
  border-color: rgba(200, 53, 50, 0.18);
}

.role-row.attention {
  background: var(--warm-gold-soft);
  border-color: rgba(245, 158, 11, 0.2);
}

.role-icon,
.cover-item__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px;
}

.role-row.leader .role-icon,
.cover-item.leader .cover-item__icon {
  color: #9a5f0c;
  background: #fff3d8;
}

.role-row.transport .role-icon,
.cover-item.transport .cover-item__icon {
  color: #0f766e;
  background: #dff7f5;
}

.role-row.kitchen .role-icon,
.cover-item.kitchen .cover-item__icon {
  color: #166534;
  background: #e5f8eb;
}

.role-row.welcomer .role-icon,
.cover-item.welcomer .cover-item__icon {
  color: #9a4b10;
  background: #fff0df;
}

.role-row.support .role-icon,
.role-row.volunteer .role-icon,
.cover-item.support .cover-item__icon,
.cover-item.volunteer .cover-item__icon {
  color: var(--warm-blue);
  background: #edf4ff;
}

.role-role {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.role-copy {
  min-width: 0;
}

.role-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role-name {
  margin-top: 3px;
  font-weight: 800;
  line-height: 1.32;
}

.role-note {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.audit-log-card {
  margin-top: 24px;
}

.audit-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.audit-toolbar input,
.audit-toolbar select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.audit-log-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.audit-event {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,253,0.96));
  box-shadow: 0 14px 34px rgba(21, 53, 89, 0.08);
}

.audit-event__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.audit-event__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.audit-event__meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.audit-event__pills {
  justify-content: flex-end;
}

.audit-event__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.audit-event__grid div {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(26, 76, 128, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.audit-event__grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-event__grid strong {
  font-size: 0.95rem;
  color: var(--navy);
  word-break: break-word;
}

.audit-event__details {
  margin-top: 14px;
}

.audit-event__details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.audit-event__details pre {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(26, 76, 128, 0.1);
  background: rgba(17, 35, 61, 0.04);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.83rem;
  line-height: 1.55;
}

.pill[class*="pill--audit-"] {
  font-weight: 800;
}

.pill--audit-success {
  background: #e7faef;
  color: #148048;
}

.pill--audit-failure,
.pill--audit-denied {
  background: #fff0f0;
  color: #c73c37;
}

.pill--audit-error {
  background: #ffe7e6;
  color: #b3261e;
}

.pill--audit-info {
  background: #eef4fb;
  color: var(--navy);
}

.volunteer-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(180px, 0.65fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.volunteer-admin-toolbar input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.volunteer-admin-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,252,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  scrollbar-gutter: stable both-edges;
}

.volunteer-admin-scrollbar {
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 999px;
  background: rgba(26, 76, 128, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  scrollbar-gutter: stable both-edges;
}

.volunteer-admin-scrollbar.is-hidden {
  display: none;
}

.volunteer-admin-scrollbar__track {
  height: 12px;
}

.volunteer-admin-scrollbar::-webkit-scrollbar,
.volunteer-admin-table-wrap::-webkit-scrollbar {
  height: 12px;
}

.volunteer-admin-scrollbar::-webkit-scrollbar-thumb,
.volunteer-admin-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(26, 76, 128, 0.28);
}

.volunteer-admin-scrollbar::-webkit-scrollbar-track,
.volunteer-admin-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.volunteer-admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.volunteer-admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.96);
}

.volunteer-admin-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(26, 76, 128, 0.08);
  vertical-align: top;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.volunteer-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.volunteer-admin-table tbody tr:hover td {
  background: rgba(255, 247, 241, 0.55);
}

.volunteer-admin-table__sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.volunteer-admin-table__sort:hover,
.volunteer-admin-table__sort:focus-visible {
  color: var(--warm-orange);
}

.volunteer-admin-table__sort-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.volunteer-admin-table strong {
  display: block;
  color: var(--warm-blue-deep);
  font-size: 1rem;
}

.volunteer-admin-table__name-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.volunteer-admin-table__link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.volunteer-admin-table__link:hover strong,
.volunteer-admin-table__link:focus-visible strong {
  color: var(--warm-orange-deep);
}

.volunteer-admin-table__link:focus-visible {
  outline: 2px solid rgba(243, 106, 33, 0.18);
  outline-offset: 4px;
  border-radius: 12px;
}

.volunteer-admin-table__name-copy {
  min-width: 0;
}

.volunteer-presence {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.volunteer-presence--green {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.volunteer-presence--yellow {
  background: #eab308;
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.14);
}

.volunteer-presence--orange {
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.volunteer-presence--red {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.volunteer-admin-table__meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.volunteer-admin-table__contact {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--warm-blue);
  font-size: 0.84rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volunteer-admin-table__role {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.volunteer-channel-list {
  display: grid;
  gap: 7px;
  min-width: 118px;
}

.volunteer-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.volunteer-channel__light {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e85b5b;
  box-shadow: 0 0 0 3px rgba(232, 91, 91, 0.13);
}

.volunteer-channel--ready {
  color: #187246;
}

.volunteer-channel--ready .volunteer-channel__light {
  background: #31a96b;
  box-shadow: 0 0 0 3px rgba(49, 169, 107, 0.14);
}

.volunteer-admin-table__serial {
  width: 88px;
}

.volunteer-admin-table__count {
  width: 108px;
  text-align: center;
  font-weight: 800;
  color: var(--warm-blue-deep);
}

.volunteer-admin-table td:nth-child(2) {
  min-width: 290px;
}

.volunteer-admin-table td:nth-child(3) {
  min-width: 140px;
}

.volunteer-admin-table td:nth-child(6),
.volunteer-admin-table th:nth-child(6),
.volunteer-admin-table td:nth-child(7),
.volunteer-admin-table th:nth-child(7) {
  min-width: 180px;
}

.volunteer-admin-table__action {
  width: 94px;
  text-align: right;
}

.volunteer-admin-table__action .btn {
  min-height: 38px;
  padding-inline: 13px;
}

.volunteer-directory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body[data-active-view="volunteers-admin"] .app-shell {
  max-width: 1840px;
}

.mobile-more-sheet {
  display: none;
}

.mobile-more-sheet[hidden] {
  display: none !important;
}

.volunteer-admin-table td .empty-state {
  margin: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.volunteer-detail-card {
  display: grid;
  gap: 18px;
}

.volunteer-detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.volunteer-detail-card__actions {
  flex-shrink: 0;
}

.volunteer-detail-form {
  gap: 18px;
}

.volunteer-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.volunteer-detail-panel {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.volunteer-detail-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.volunteer-detail-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.volunteer-detail-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.volunteer-detail-check span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.volunteer-detail-check--toggle {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.transfer-admin-toolbar {
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.7fr) auto auto;
}

.transfer-admin-toolbar select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.transfer-admin-table {
  min-width: 1320px;
}

.transfer-admin-table td:nth-child(2) {
  min-width: 180px;
}

.transfer-admin-table td:nth-child(3) {
  min-width: 180px;
}

.transfer-admin-table td:nth-child(4) {
  min-width: 300px;
}

.transfer-admin-table td:nth-child(5) {
  min-width: 220px;
}

.transfer-admin-table td:nth-child(6),
.transfer-admin-table th:nth-child(6) {
  min-width: 140px;
  text-align: center;
}

.transfer-admin-table td:nth-child(7) {
  min-width: 260px;
}

.transfer-admin-table td:nth-child(8),
.transfer-admin-table th:nth-child(8) {
  min-width: 210px;
}

.password-reset-card {
  display: grid;
  gap: 14px;
}

.password-reset-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.password-reset-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.password-reset-toolbar {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.password-reset-toolbar input {
  min-width: 0;
}

.password-reset-picker {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 2px 4px 2px 2px;
  overscroll-behavior: contain;
}

.password-reset-picker::-webkit-scrollbar {
  width: 10px;
}

.password-reset-picker::-webkit-scrollbar-thumb {
  background: rgba(33, 79, 132, 0.18);
  border-radius: 999px;
}

.password-reset-picker::-webkit-scrollbar-track {
  background: rgba(224, 231, 255, 0.55);
  border-radius: 999px;
}

.password-reset-picker__item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.password-reset-picker__item strong {
  font-size: 1rem;
  color: var(--warm-blue-deep);
}

.password-reset-picker__meta {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--muted);
}

.password-reset-picker__item:hover,
.password-reset-picker__item:focus-visible {
  border-color: rgba(243, 106, 33, 0.42);
  box-shadow: 0 10px 22px rgba(24, 55, 93, 0.08);
  outline: none;
}

.password-reset-picker__item.is-active {
  border-color: var(--warm-orange);
  background: #fff7ed;
  box-shadow: inset 4px 0 0 var(--warm-orange), 0 12px 26px rgba(24, 55, 93, 0.10);
}

.password-reset-picker__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.password-reset-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}

.password-reset-detail-heading .eyebrow {
  grid-column: 1 / -1;
}

.password-reset-detail-heading h3 {
  margin: 0;
}

.password-reset-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.password-reset-meta .profile-row {
  padding: 9px 10px;
}

.password-reset-form {
  gap: 10px 12px;
}

.password-reset-form .auth-field {
  gap: 5px;
}

.password-reset-form .volunteer-detail-check--toggle {
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
}

.password-reset-form .volunteer-detail-check input {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

.password-reset-form .volunteer-detail-check span {
  line-height: 1.3;
}

.password-reset-form .password-rules {
  margin: 0;
  padding: 10px 12px;
}

.password-reset-form .password-rules ul {
  margin: 6px 0 0;
}

.password-reset-local-feedback {
  margin: 8px 0;
}

@media (max-width: 900px) {
  .volunteer-admin-scrollbar {
    display: none !important;
  }

  .volunteer-admin-table-wrap {
    margin-top: 18px;
  }

  .volunteer-detail-card__header {
    flex-direction: column;
  }

  .volunteer-detail-grid,
  .volunteer-detail-role-grid {
    grid-template-columns: 1fr;
  }

  .transfer-admin-toolbar,
  .password-reset-layout,
  .password-reset-toolbar,
  .password-reset-meta,
  .password-reset-detail-heading {
    grid-template-columns: 1fr;
  }

  .password-reset-picker__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-reset-picker {
    max-height: 320px;
  }
}

.manager-slot-modal,
.day-notes-modal,
.volunteer-claim-modal,
.volunteer-cancel-modal,
.volunteer-cover-modal,
.push-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.has-push-prompt-modal {
  overflow: hidden;
  overscroll-behavior: none;
}

body.has-push-prompt-modal .app-shell {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.manager-slot-modal__backdrop,
.day-notes-modal__backdrop,
.volunteer-claim-modal__backdrop,
.volunteer-cancel-modal__backdrop,
.volunteer-cover-modal__backdrop,
.push-prompt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(10px);
}

.manager-slot-modal__panel,
.day-notes-modal__panel,
.volunteer-claim-modal__panel,
.volunteer-cancel-modal__panel,
.volunteer-cover-modal__panel,
.push-prompt-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.manager-slot-modal__head,
.day-notes-modal__head,
.volunteer-claim-modal__head,
.volunteer-cancel-modal__head,
.volunteer-cover-modal__head,
.push-prompt-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.manager-slot-modal__close,
.day-notes-modal__close,
.volunteer-claim-modal__close,
.volunteer-cancel-modal__close,
.volunteer-cover-modal__close,
.push-prompt-modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(33, 79, 132, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--warm-blue-deep);
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.manager-slot-modal__close svg,
.day-notes-modal__close svg,
.volunteer-claim-modal__close svg,
.volunteer-cancel-modal__close svg,
.volunteer-cover-modal__close svg,
.push-prompt-modal__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manager-slot-modal__close:hover,
.manager-slot-modal__close:focus-visible,
.day-notes-modal__close:hover,
.day-notes-modal__close:focus-visible,
.volunteer-claim-modal__close:hover,
.volunteer-claim-modal__close:focus-visible,
.volunteer-cancel-modal__close:hover,
.volunteer-cancel-modal__close:focus-visible,
.volunteer-cover-modal__close:hover,
.volunteer-cover-modal__close:focus-visible,
.push-prompt-modal__close:hover,
.push-prompt-modal__close:focus-visible {
  background: #fff6ef;
  border-color: rgba(243, 106, 33, 0.28);
  transform: translateY(-1px);
}

.manager-slot-modal__close:focus-visible,
.day-notes-modal__close:focus-visible,
.volunteer-claim-modal__close:focus-visible,
.volunteer-cancel-modal__close:focus-visible,
.volunteer-cover-modal__close:focus-visible,
.push-prompt-modal__close:focus-visible {
  outline: 2px solid rgba(243, 106, 33, 0.18);
  outline-offset: 2px;
}

.push-prompt-modal__panel {
  width: min(560px, calc(100vw - 24px));
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 26px 58px rgba(17, 24, 39, 0.22);
}

.push-prompt-modal__panel.is-loading {
  opacity: 0.9;
}

.push-prompt-modal__copy {
  display: grid;
  gap: 8px;
}

.push-prompt-modal__copy h2 {
  margin: 0;
}

.push-prompt-modal__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.push-prompt-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--warm-orange-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.push-prompt-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.volunteer-claim-modal__slot {
  grid-template-columns: 46px 1fr;
  align-items: start;
}

.volunteer-claim-modal__copy {
  display: grid;
  gap: 6px;
}

.volunteer-claim-modal__copy h3 {
  color: var(--warm-blue-deep);
  font-size: 1.12rem;
}

.volunteer-claim-modal__copy p {
  color: var(--muted);
  line-height: 1.55;
}

.volunteer-claim-modal__actions {
  justify-content: flex-end;
}

.manager-slot-form {
  display: grid;
  gap: 14px;
}

.manager-volunteer-picker {
  position: relative;
}

.manager-volunteer-input {
  width: 100%;
}

.manager-volunteer-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 36px rgba(24, 55, 93, 0.14);
  backdrop-filter: blur(12px);
}

.manager-volunteer-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  border-radius: 14px;
  background: #fbfcfe;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.manager-volunteer-option strong {
  color: var(--warm-blue-deep);
  font-size: 0.98rem;
}

.manager-volunteer-option span,
.manager-volunteer-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.manager-volunteer-option:hover,
.manager-volunteer-option:focus-visible {
  background: #fff6ef;
  border-color: rgba(243, 106, 33, 0.22);
  transform: translateY(-1px);
}

.manager-volunteer-option:focus-visible {
  outline: 2px solid rgba(243, 106, 33, 0.2);
  outline-offset: 2px;
}

.manager-volunteer-empty {
  padding: 8px 10px;
}

.manager-slot-form__actions {
  justify-content: flex-start;
}

.day-notes-form {
  display: grid;
  gap: 14px;
}

.day-notes-form__actions {
  justify-content: flex-start;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 18px;
  align-items: start;
}

.calendar-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(24, 55, 93, 0.08);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.panel-heading > *,
.toolbar > *,
.day-title > *,
.month-nav > *,
.upcoming-item > *,
.today-banner > * {
  min-width: 0;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.month-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 14px;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(33, 79, 132, 0.06);
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.54);
}

.month-nav-btn {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.35rem;
}

.month-title {
  text-align: center;
  flex: 1 1 auto;
}

.month-title strong {
  display: block;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  color: var(--warm-blue-deep);
  letter-spacing: -0.02em;
}

.month-title span {
  display: none;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-blue-deep);
}

.calendar-day--event,
.calendar-day--empty {
  min-height: 112px;
  min-width: 0;
  border-radius: 18px;
  padding: 10px 9px;
  text-align: left;
}

.calendar-day--event {
  display: grid;
  align-content: start;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--calendar-border, var(--line));
  background: linear-gradient(180deg, #fff 0%, var(--calendar-surface, #f8fcff) 100%);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.calendar-day--event::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--calendar-status-dot, var(--calendar-accent, var(--warm-blue)));
  opacity: 0.9;
}

.calendar-day--empty {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(109, 98, 91, 0.14);
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.96) 0%, rgba(238, 242, 246, 0.88) 100%);
}

.calendar-day--closed {
  background: linear-gradient(180deg, rgba(242, 245, 248, 0.96) 0%, rgba(233, 238, 243, 0.92) 100%);
  border-color: rgba(109, 98, 91, 0.1);
}

.calendar-day--other-month {
  opacity: 0.42;
}

.calendar-day--past:not(.calendar-day--today) {
  opacity: 0.54;
  filter: saturate(0.78);
}

.calendar-day--today {
  box-shadow: none;
}

.calendar-day--selected {
  border-color: rgba(243, 106, 33, 0.5);
  box-shadow: none;
}

.calendar-day--event::after,
.calendar-day--empty::after {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-radius: 14px;
}

.calendar-day--today::after {
  border: 1.5px solid rgba(78, 154, 163, 0.58);
}

.calendar-day--selected::after {
  border: 1.5px solid rgba(249, 115, 22, 0.82);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.calendar-day--selected.calendar-day--today::after {
  border-color: rgba(249, 115, 22, 0.86);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1), inset 0 0 0 2px rgba(78, 154, 163, 0.26);
}

.calendar-day--theme-friday {
  --calendar-accent: var(--warm-orange);
  --calendar-surface: #fff5ee;
  --calendar-border: rgba(243, 106, 33, 0.2);
  --calendar-tag-bg: #fff0e5;
  --calendar-tag-color: var(--warm-orange-deep);
}

.calendar-day--theme-sunday {
  --calendar-accent: var(--warm-red);
  --calendar-surface: #fff3f1;
  --calendar-border: rgba(200, 53, 50, 0.2);
  --calendar-tag-bg: #ffe7e5;
  --calendar-tag-color: #a92e2b;
}

.calendar-day--theme-monday {
  --calendar-accent: var(--warm-teal);
  --calendar-surface: #eefaf9;
  --calendar-border: rgba(75, 147, 151, 0.2);
  --calendar-tag-bg: #dff4f3;
  --calendar-tag-color: #2f777a;
}

.calendar-day--theme-tuesday {
  --calendar-accent: var(--warm-blue);
  --calendar-surface: #eef5ff;
  --calendar-border: rgba(33, 79, 132, 0.18);
  --calendar-tag-bg: #e3efff;
  --calendar-tag-color: var(--warm-blue-deep);
}

.calendar-day--theme-wednesday {
  --calendar-accent: #d7a227;
  --calendar-surface: #fff9eb;
  --calendar-border: rgba(215, 162, 39, 0.22);
  --calendar-tag-bg: #fff2cb;
  --calendar-tag-color: #8a6412;
}

.calendar-day--theme-default {
  --calendar-accent: var(--warm-blue);
  --calendar-surface: #f8fcff;
  --calendar-border: rgba(33, 79, 132, 0.14);
  --calendar-tag-bg: #e8f1fd;
  --calendar-tag-color: var(--warm-blue-deep);
}

.calendar-day--required {
  --calendar-status-dot: #e56b5d;
  border-color: rgba(229, 107, 93, 0.18);
  background: #fffdfb;
  box-shadow: none;
}

.calendar-day--attention {
  --calendar-status-dot: #e7a11a;
  border-color: rgba(231, 161, 26, 0.2);
  background: #fffdf8;
  box-shadow: none;
}

.calendar-day--filled {
  --calendar-status-dot: #6fbf8b;
  border-color: rgba(111, 191, 139, 0.18);
  background: #fcfffd;
  box-shadow: none;
}

.calendar-day--muted {
  opacity: 0.4;
}

.calendar-day__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.calendar-day__number {
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 900;
  color: var(--calendar-number-color, var(--warm-blue-deep));
}

.calendar-day--closed .calendar-day__number {
  color: #96a0ab;
}

.calendar-day__date,
.calendar-day__month {
  display: none;
}

.calendar-day__meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.calendar-day__summary-item,
.calendar-day__summary-venue {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day__summary-item {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-day__summary-item--attention {
  background: #fef3c7;
  color: #925f0f;
}

.calendar-day__summary-item--required {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-day__summary-item--filled {
  background: #dcfce7;
  color: #186541;
}

.calendar-day__summary-venue {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.calendar-day__tag {
  display: none;
}

.calendar-day__label {
  display: none;
}

.calendar-day__count {
  display: none;
}

.calendar-day__closed {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.filled {
  color: #186541;
  background: #dcfce7;
}

.badge.attention {
  color: #925f0f;
  background: #fef3c7;
}

.badge.required {
  color: #991b1b;
  background: #fee2e2;
}

.badge.success {
  color: #166534;
  background: #dcfce7;
}

.badge.warning {
  color: #92400e;
  background: #fef3c7;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #59616d;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
}

.dot.filled {
  background: #6fbf8b;
}

.dot.attention {
  background: #e7a11a;
}

.dot.required {
  background: #e56b5d;
}

.dot.today {
  border: 2px solid #4e9aa3;
  background: transparent;
}

.dot.closed {
  border: 2px solid #cbd5e1;
  background: transparent;
}

.mini-heading {
  margin-bottom: 10px;
}

.upcoming-panel {
  display: grid;
  gap: 10px;
}

.upcoming-list {
  display: grid;
  gap: 10px;
}

.upcoming-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
}

.upcoming-item.is-selected {
  border-color: rgba(243, 106, 33, 0.4);
}

.upcoming-date {
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
  background: var(--warm-blue-soft);
  color: var(--warm-blue-deep);
}

.upcoming-date strong {
  display: block;
  font-size: 1.1rem;
}

.upcoming-date span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upcoming-copy strong {
  display: block;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.upcoming-copy p {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.cover-board,
.preview-board,
.profile-grid,
.workspace-board {
  display: grid;
  gap: 18px;
}

.cover-card {
  display: grid;
  gap: 14px;
}

.cover-card__head h3,
.preview-card__head h3 {
  color: var(--warm-blue-deep);
  font-size: 1.28rem;
}

.cover-card__head p,
.preview-card__head p,
.cover-item__copy p,
.cover-item__copy span,
.preview-meta span,
.profile-row span {
  color: var(--muted);
}

.cover-list {
  display: grid;
  gap: 10px;
}

.cover-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.cover-item.required {
  border-color: rgba(200, 53, 50, 0.18);
  background: var(--warm-red-soft);
}

.cover-item.attention {
  border-color: rgba(245, 158, 11, 0.2);
  background: var(--warm-gold-soft);
}

.cover-item__copy {
  min-width: 0;
}

.cover-item__copy strong {
  display: block;
  color: var(--warm-blue-deep);
}

.cover-item__copy p,
.cover-item__copy span {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
}

.cover-item__actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cover-card--summary,
.cover-card--footer {
  gap: 8px;
}

.open-shifts-range {
  margin: 0;
  color: var(--warm-blue-deep);
  font-weight: 800;
}

.open-shifts-filters {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.open-shifts-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.open-shifts-filter {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--warm-blue-deep);
  font-weight: 800;
  cursor: pointer;
}

.open-shifts-filter.is-active {
  border-color: rgba(207, 104, 55, 0.48);
  background: #fff1df;
  color: var(--warm-clay);
}

.open-shifts-filter-row select {
  min-height: 40px;
  max-width: 100%;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 700;
}

.cover-card--group {
  gap: 12px;
}

.cover-card__head p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.cover-card__head p svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.cover-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.cover-card__meta span {
  color: var(--warm-blue-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cover-item.cover-item--compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  background: #fff;
}

.cover-item.cover-item--compact.required,
.cover-item.cover-item--compact.attention {
  background: #fff;
}

.cover-item__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cover-item--compact .cover-item__copy p {
  color: var(--warm-blue-deep);
  font-weight: 700;
}

.cover-item--compact .cover-item__copy {
  min-width: 0;
}

.cover-item--compact .cover-item__title strong {
  overflow-wrap: break-word;
}

.open-shift-item__status {
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

.open-shift-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cover-card--skeleton {
  min-height: 112px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 244, 231, 0.9), rgba(255, 255, 255, 0.76));
  background-size: 220% 100%;
  animation: rosterSkeleton 1.2s ease-in-out infinite;
}

@keyframes rosterSkeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.preview-card {
  display: grid;
  gap: 12px;
}

.preview-summary-card {
  gap: 14px;
}

.preview-summary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-summary-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-summary-card__lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.preview-card--compact {
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.preview-card__main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.preview-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #edf4ff;
  color: var(--warm-blue);
  padding: 8px;
}

.preview-card__content {
  min-width: 0;
}

.preview-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn-small {
  min-height: 40px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.94rem;
}

.preview-card--compact.is-upcoming {
  border-color: rgba(33, 79, 132, 0.14);
  background: linear-gradient(180deg, rgba(236, 243, 251, 0.76) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.preview-card--compact.is-past {
  opacity: 0.9;
}

.preview-card__head--compact {
  align-items: center;
}

.preview-card.leader .preview-card__icon {
  color: #9a5f0c;
  background: #fff3d8;
}

.preview-card.transport .preview-card__icon {
  color: #0f766e;
  background: #dff7f5;
}

.preview-card.kitchen .preview-card__icon {
  color: #166534;
  background: #e5f8eb;
}

.preview-card.welcomer .preview-card__icon {
  color: #9a4b10;
  background: #fff0df;
}

.preview-card.support .preview-card__icon,
.preview-card.volunteer .preview-card__icon {
  color: var(--warm-blue);
  background: #edf4ff;
}

.preview-card__eyebrow {
  margin-bottom: 6px;
  color: var(--warm-orange-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-meta--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.preview-meta--compact span {
  display: inline-flex;
  align-items: center;
}

.my-shifts-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.my-shifts-segment {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.my-shifts-segment strong {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(33, 79, 132, 0.08);
  color: var(--warm-blue);
  font-size: 0.84rem;
}

.my-shifts-segment.is-active {
  border-color: rgba(225, 106, 45, 0.2);
  background: linear-gradient(180deg, #fff5eb 0%, #fffaf4 100%);
  color: var(--warm-orange-deep);
  box-shadow: 0 8px 18px rgba(105, 69, 38, 0.08);
}

.my-shifts-segment.is-active strong {
  background: rgba(225, 106, 45, 0.12);
  color: var(--warm-orange-deep);
}

.my-shifts-list {
  display: grid;
  gap: 12px;
}

.my-shifts-month {
  margin: 14px 4px 2px;
  color: var(--warm-blue-deep);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.my-shift-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(33, 79, 132, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 44, 74, 0.08);
}

.my-shift-card--next {
  border-color: rgba(225, 106, 45, 0.2);
  background: linear-gradient(180deg, rgba(255, 246, 235, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.my-shift-card--completed {
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(248, 250, 252, 0.86);
  box-shadow: none;
}

.my-shift-card__main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.my-shift-card__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px;
}

.my-shift-card--completed .my-shift-card__icon {
  opacity: 1;
}

.my-shift-card.leader .my-shift-card__icon {
  color: #9a5f0c;
  background: #fff3d8;
}

.my-shift-card.transport .my-shift-card__icon {
  color: #0f766e;
  background: #dff7f5;
}

.my-shift-card.kitchen .my-shift-card__icon {
  color: #166534;
  background: #e5f8eb;
}

.my-shift-card.welcomer .my-shift-card__icon {
  color: #9a4b10;
  background: #fff0df;
}

.my-shift-card.support .my-shift-card__icon,
.my-shift-card.volunteer .my-shift-card__icon {
  color: var(--warm-blue);
  background: #edf4ff;
}

.my-shift-card__content {
  min-width: 0;
}

.my-shift-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.my-shift-card__eyebrow {
  margin: 0 0 5px;
  color: var(--warm-orange-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-shift-card__eyebrow span {
  margin-left: 6px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.my-shift-card__head h3 {
  margin: 0;
  color: var(--warm-blue-deep);
  font-size: clamp(1.02rem, 2.6vw, 1.22rem);
  line-height: 1.28;
}

.my-shift-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.95rem;
}

.my-shift-card__details strong {
  color: var(--warm-blue-deep);
}

.my-shift-card__details strong::after {
  content: "·";
  margin-left: 8px;
  color: var(--muted);
  font-weight: 700;
}

.my-shift-card__venue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  color: #4f6075;
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.my-shift-card__venue-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--warm-orange-deep);
}

.my-shift-card__venue-icon svg {
  width: 16px;
  height: 16px;
}

.my-shift-card__venue--link {
  border-bottom: 1px solid rgba(33, 79, 132, 0.2);
}

.my-shift-card__venue--link:hover,
.my-shift-card__venue--link:focus-visible {
  color: var(--warm-blue);
  border-bottom-color: currentColor;
}

.my-shift-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.my-shift-status--confirmed {
  border-color: rgba(22, 101, 52, 0.16);
  background: #eaf8ef;
  color: #166534;
}

.my-shift-status--progress {
  border-color: rgba(15, 118, 110, 0.16);
  background: #e3f7f5;
  color: #0f766e;
}

.my-shift-status--cover {
  border-color: rgba(180, 83, 9, 0.16);
  background: #fff3d8;
  color: #92400e;
}

.my-shift-status--cancelled {
  border-color: rgba(185, 28, 28, 0.14);
  background: #fff1f0;
  color: #9f3328;
}

.my-shift-status--completed {
  border-color: rgba(71, 85, 105, 0.14);
  background: #eef2f6;
  color: #475569;
}

.my-shift-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.my-shift-card__cancel {
  color: #a43a32;
  border-color: rgba(164, 58, 50, 0.24);
}

.my-shifts-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.my-shifts-empty h3 {
  margin: 0;
  color: var(--warm-blue-deep);
}

.my-shifts-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .my-shifts-segments {
    border-radius: 24px;
  }

  .my-shift-card {
    padding: 14px;
    border-radius: 20px;
  }

  .my-shift-card__main {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .my-shift-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 7px;
  }

  .my-shift-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .my-shift-card__actions .btn {
    flex: 1 1 132px;
  }
}

.preview-meta span {
  font-size: 0.9rem;
}

.profile-grid {
  grid-template-columns: 1fr;
}

.profile-summary {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: #fff1df;
  color: var(--warm-clay);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.profile-photo-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.profile-photo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(207, 104, 55, 0.22);
  border-radius: 999px;
  background: #fff1df;
  color: var(--warm-clay);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.profile-photo--small {
  width: 64px;
  height: 64px;
}

.profile-photo--large {
  width: 160px;
  height: 160px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo--button {
  min-width: 64px;
  padding: 0;
  cursor: pointer;
}

.profile-photo-field,
.my-shifts-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo-actions {
  margin-top: 8px;
}

.profile-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  border: 0;
  background: rgba(26, 38, 58, 0.48);
  color: var(--ink);
  overflow: hidden;
  overscroll-behavior: contain;
}

.profile-photo-modal[open] {
  display: grid;
  place-items: center;
}

.profile-photo-modal::backdrop {
  background: rgba(26, 38, 58, 0.48);
}

.profile-photo-modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(500px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffaf3;
  box-shadow: 0 24px 70px rgba(24, 55, 93, 0.24);
  scrollbar-gutter: stable both-edges;
}

.profile-photo-modal__heading {
  padding-right: 48px;
}

.profile-photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 241, 223, 0.9);
  color: var(--warm-blue-deep);
  cursor: pointer;
}

.profile-photo-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.profile-photo-action-list,
.profile-photo-crop-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-photo-action-list .btn,
.profile-photo-crop-actions .btn {
  width: min(280px, 100%);
  min-height: 44px;
}

.profile-photo-editor-wrap {
  position: relative;
  min-height: 0;
}

.profile-photo-editor {
  display: grid;
  align-items: start;
  justify-items: center;
  gap: 12px;
  margin: 10px auto 8px;
}

.profile-photo-cropper {
  position: relative;
  width: clamp(190px, 54vmin, 260px);
  height: clamp(190px, 54vmin, 260px);
  overflow: hidden;
  border: 2px solid rgba(207, 104, 55, 0.28);
  border-radius: 999px;
  background: #f8efe4;
  touch-action: none;
}

.profile-photo-cropper img {
  position: absolute;
  max-width: none;
  max-height: none;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.profile-photo-control-list {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.profile-photo-control-row {
  display: grid;
  grid-template-columns: minmax(84px, 0.9fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--warm-blue-deep);
}

.profile-photo-control-row--buttons {
  grid-template-columns: minmax(84px, 0.9fr) 42px 42px;
  justify-content: start;
}

.profile-photo-control-label {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.profile-photo-control-row input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--warm-clay);
}

.profile-photo-rail,
.profile-photo-vertical-control,
.profile-photo-rail-icon {
  display: none;
}

.profile-photo-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(24, 55, 93, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--warm-blue-deep);
  cursor: pointer;
}

.profile-photo-icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-photo-reset {
  display: block;
  margin: 8px auto 12px;
}

.profile-photo-value-bubble {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(24, 55, 93, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 430px) {
  .profile-photo-modal__card {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .profile-photo-cropper {
    width: clamp(180px, 56vmin, 230px);
    height: clamp(180px, 56vmin, 230px);
  }

  .profile-photo-control-row,
  .profile-photo-control-row--buttons {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-photo-modal,
  .profile-photo-modal__card {
    transition: none !important;
    animation: none !important;
  }
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 16px;
}

.profile-section-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.profile-section-tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf3;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.profile-section-tab.is-active {
  border-color: rgba(207, 104, 55, 0.5);
  background: #fff1df;
  color: var(--warm-clay);
}

.profile-section-card {
  min-width: 0;
}

.profile-form-group {
  gap: 4px;
}

.profile-switch-grid {
  align-items: stretch;
}

.profile-disclosure {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.profile-disclosure summary {
  color: var(--warm-blue-deep);
  font-weight: 800;
  cursor: pointer;
}

.profile-disclosure ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.profile-security-device {
  margin-top: 12px;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.profile-row strong {
  color: var(--warm-blue-deep);
}

.auth-panel-card {
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.auth-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: auto;
  padding: 10px 0 4px;
}

.auth-stage__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-stage__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.42;
}

.auth-stage__glow--one {
  top: 6%;
  left: 8%;
  width: 180px;
  height: 180px;
  background: rgba(243, 106, 33, 0.22);
}

.auth-stage__glow--two {
  right: 10%;
  bottom: 10%;
  width: 210px;
  height: 210px;
  background: rgba(75, 147, 151, 0.2);
}

.auth-ambient-card {
  position: absolute;
  display: grid;
  gap: 4px;
  width: 240px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(33, 79, 132, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.4);
  color: rgba(24, 55, 93, 0.95);
  box-shadow: 0 18px 44px rgba(24, 55, 93, 0.08);
  backdrop-filter: blur(18px);
  filter: blur(0.2px);
  opacity: 0.82;
}

.auth-ambient-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.05;
}

.auth-ambient-card span {
  color: rgba(24, 55, 93, 0.72);
  font-size: 0.86rem;
  line-height: 1.35;
}

.auth-ambient-card--left {
  top: 10%;
  left: 3%;
  transform: rotate(-8deg);
}

.auth-ambient-card--right {
  right: 4%;
  bottom: 14%;
  transform: rotate(8deg);
}

.auth-sheet {
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px rgba(24, 55, 93, 0.14);
}

.auth-panel-card__hero {
  display: grid;
  gap: 8px;
}

.auth-panel-card--simple {
  padding-top: 28px;
  padding-bottom: 28px;
}

.auth-panel-card--embedded {
  max-width: 620px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 420px);
  gap: 26px;
  align-items: center;
}

.auth-layout--stacked {
  grid-template-columns: 1fr;
  gap: 20px;
}

.auth-layout__hero,
.auth-layout__panel {
  display: grid;
  gap: 18px;
}

.auth-layout__hero {
  align-content: center;
  padding: 6px 10px 6px 4px;
}

.auth-layout--stacked .auth-layout__hero {
  justify-items: center;
  padding: 0;
  text-align: center;
}

.auth-layout__panel {
  padding: 22px;
  border: 1px solid rgba(31, 55, 92, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 32px rgba(24, 55, 93, 0.08);
}

.auth-layout--stacked .auth-layout__panel {
  max-width: 100%;
}

.auth-panel-card__hero--centered {
  text-align: left;
  gap: 10px;
}

.auth-layout--stacked .auth-panel-card__hero--centered {
  text-align: center;
}

.auth-panel-card__hero--centered h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.9;
}

.auth-layout--stacked .auth-panel-card__hero--centered h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 0.95;
}

.auth-panel-card__hero--centered .subtle {
  max-width: 420px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
}

.auth-layout--stacked .auth-panel-card__hero--centered .subtle {
  max-width: 520px;
  margin: 0 auto;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.auth-layout--stacked .auth-brand-row,
.auth-layout--stacked .auth-hero-chips {
  justify-content: center;
}

.auth-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(243, 106, 33, 0.18);
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 55, 93, 0.08);
}

.auth-brand-logo--partner {
  object-fit: contain;
  padding: 6px;
}

.auth-brand-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--warm-orange);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.auth-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-hero-note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  max-width: 460px;
  border-radius: 24px;
  border: 1px solid rgba(243, 106, 33, 0.16);
  background: linear-gradient(180deg, rgba(255, 245, 238, 0.94) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.auth-hero-note strong {
  color: var(--warm-blue-deep);
  font-size: 1rem;
}

.auth-hero-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-layout--stacked .auth-hero-note {
  display: none;
}
.auth-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(246, 239, 232, 0.9);
}

.auth-switch__btn {
  border: 0;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-switch__btn.is-active {
  background: #fff;
  color: var(--warm-blue-deep);
  box-shadow: 0 8px 18px rgba(31, 55, 92, 0.08);
}

.auth-alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.auth-alert--success {
  background: rgba(39, 174, 96, 0.12);
  color: #1d7d48;
}

.auth-alert--warning {
  background: rgba(200, 53, 50, 0.12);
  color: #a23f44;
}

.auth-alert--error {
  background: rgba(200, 53, 50, 0.12);
  color: #a22e2c;
}

.auth-form-grid,
.auth-social {
  display: grid;
  gap: 12px;
}

.auth-form-grid--compact {
  gap: 14px;
}

.auth-form-grid__two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span {
  color: var(--warm-blue-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-field input,
.auth-field textarea,
.auth-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus {
  border-color: rgba(243, 106, 33, 0.4);
  box-shadow: 0 0 0 4px rgba(243, 106, 33, 0.12);
}

.auth-password-input {
  position: relative;
}

.auth-password-input input {
  padding-right: 78px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--warm-blue-deep);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-field textarea {
  resize: vertical;
  min-height: 92px;
}

.auth-field--checkbox {
  align-content: end;
}

.auth-field--checkbox input {
  width: 22px;
  height: 22px;
  margin-top: 10px;
  accent-color: var(--warm-orange);
  box-shadow: none;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--warm-orange);
  box-shadow: none;
  flex: 0 0 auto;
}

.auth-check span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.auth-code-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.password-rules {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 55, 92, 0.08);
  border-radius: 20px;
  background: rgba(246, 239, 232, 0.56);
}

.password-rules strong {
  color: var(--warm-blue-deep);
  font-size: 0.92rem;
}

.password-rules ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.password-rules li + li {
  margin-top: 4px;
}

.auth-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.auth-option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--warm-blue-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-option-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--warm-orange);
  box-shadow: none;
  flex: 0 0 auto;
}

.auth-option-card span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.preference-preview .profile-row {
  padding: 10px 12px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-actions--stack {
  display: grid;
  gap: 10px;
}

.auth-actions--top-gap {
  margin-top: 6px;
}

.roster-admin-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.roster-admin-toggle .btn {
  min-width: 160px;
}

.roster-admin-card .profile-list {
  margin-top: 10px;
}

.roster-workspace-card {
  grid-column: 1 / -1;
}

.roster-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.roster-workspace__rail,
.roster-workspace__detail {
  display: grid;
  gap: 14px;
}

.workspace-mini-calendar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(24, 55, 93, 0.06);
}

.workspace-mini-calendar__head {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.workspace-mini-calendar__head .eyebrow {
  margin: 0;
}

.workspace-mini-calendar__head h4 {
  margin: 0;
  color: var(--warm-blue-deep);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.workspace-mini-calendar__weekdays,
.workspace-mini-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.workspace-mini-calendar__weekday {
  text-align: center;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workspace-mini-calendar__day {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 38px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 8px;
  background: #fffefb;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.workspace-mini-calendar__day--filled {
  --calendar-status-dot: #6fbf8b;
  border-color: rgba(111, 191, 139, 0.16);
  background: #fffefb;
}

.workspace-mini-calendar__day--required {
  --calendar-status-dot: #e56b5d;
  border-color: rgba(229, 107, 93, 0.18);
  background: #fffefb;
}

.workspace-mini-calendar__day--attention {
  --calendar-status-dot: #e7a11a;
  border-color: rgba(231, 161, 26, 0.2);
  background: #fffefb;
}

.workspace-mini-calendar__day--empty {
  border-style: dashed;
  background: #f4f6f8;
  color: #96a0ab;
  cursor: default;
}

.workspace-mini-calendar__day.is-other-month {
  opacity: 0.44;
}

.workspace-mini-calendar__day.is-past:not(.is-today) {
  opacity: 0.62;
  filter: saturate(0.82);
}

.workspace-mini-calendar__day::after {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  border-radius: 9px;
}

.workspace-mini-calendar__day:not(.workspace-mini-calendar__day--empty)::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--calendar-status-dot, #6fbf8b);
  order: 2;
}

.workspace-mini-calendar__day.is-today::after {
  border: 2px solid rgba(75, 147, 151, 0.55);
}

.workspace-mini-calendar__day.is-active::after {
  border: 2px solid rgba(243, 106, 33, 0.72);
  box-shadow: 0 0 0 2px rgba(243, 106, 33, 0.12);
}

.workspace-mini-calendar__date {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.roster-day-pill-list,
.roster-slot-list,
.roster-shift-stack {
  display: grid;
  gap: 12px;
}

.roster-day-pill {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.roster-day-pill strong,
.roster-slot-editor__head strong,
.roster-shift-editor__head h3 {
  color: var(--warm-blue-deep);
}

.roster-day-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

.roster-day-pill em {
  font-style: normal;
}

.roster-day-pill.is-active {
  border-color: rgba(243, 106, 33, 0.25);
  background: linear-gradient(180deg, rgba(255, 241, 232, 0.82) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 16px 30px rgba(243, 106, 33, 0.1);
}

.roster-editor-form,
.roster-shift-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
}

.roster-editor-form--slot {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
}

.roster-shift-editor {
  gap: 16px;
}

.roster-shift-editor__head,
.roster-slot-editor__head,
.roster-shift-stack__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.roster-slot-editor__head {
  align-items: center;
}

.roster-shift-stack__head {
  flex-wrap: wrap;
}

.roster-editor-form .auth-form-grid {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-submit {
  min-width: 220px;
  width: 100%;
}

.auth-submit.is-loading,
.auth-link-btn.is-loading {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
}

.auth-inline-spinner {
  animation: auth-spinner 0.85s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  width: 15px;
}

.auth-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 1.25em;
}

@keyframes auth-spinner {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-inline-spinner {
    animation: none;
    border-right-color: currentColor;
  }
}

.auth-link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-link-btn--center {
  justify-self: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  white-space: nowrap;
}

.auth-social {
  gap: 14px;
}

.auth-social__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-social__grid--icons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--warm-blue-deep);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 55, 93, 0.05);
  cursor: pointer;
}

.auth-social-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: 800;
}

.auth-social-btn__svg {
  display: block;
  width: 24px;
  height: 24px;
}

.auth-social-btn--icon {
  padding: 0;
  position: relative;
}

.auth-social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-social-btn__status {
  position: absolute;
  right: 5px;
  bottom: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.auth-social-btn--google .auth-social-btn__icon {
  color: #db4437;
}

.auth-social-btn--facebook .auth-social-btn__icon {
  color: #1877f2;
}

.auth-social-btn--apple .auth-social-btn__icon {
  color: #111111;
}

.auth-register-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.auth-public-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.auth-public-links__item {
  color: var(--warm-blue-deep);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-public-links__item:hover,
.auth-public-links__item:focus-visible {
  text-decoration: underline;
}

@media (min-width: 901px) {
  .auth-stage {
    min-height: calc(100vh - 250px);
    padding: 16px 0 8px;
  }

  .auth-panel-card--simple {
    padding-left: 30px;
    padding-right: 30px;
  }

  .auth-panel-card__hero--desktop .eyebrow {
    margin-bottom: 4px;
  }

  .auth-field input {
    min-height: 58px;
  }
}

body[data-auth-state="guest"][data-active-view="my-shifts"] .site-header,
body[data-auth-state="guest"][data-active-view="profile"] .site-header {
  padding-top: 12px;
  padding-bottom: 12px;
}

body[data-auth-state="guest"][data-active-view="my-shifts"] .site-header__top,
body[data-auth-state="guest"][data-active-view="profile"] .site-header__top {
  max-height: 0;
  opacity: 0;
  margin: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

body[data-auth-state="guest"][data-active-view="my-shifts"] .global-search,
body[data-auth-state="guest"][data-active-view="profile"] .global-search {
  display: none;
}

body[data-auth-state="guest"][data-active-view="my-shifts"] .app-main,
body[data-auth-state="guest"][data-active-view="profile"] .app-main {
  min-height: calc(100vh - 170px);
  align-items: center;
}

body[data-auth-state="guest"][data-active-view="my-shifts"] .app-view.is-active,
body[data-auth-state="guest"][data-active-view="profile"] .app-view.is-active,
body[data-auth-state="guest"][data-active-view="workspace"] .app-view.is-active,
body[data-auth-state="guest"][data-active-view="volunteer-detail"] .app-view.is-active {
  min-height: calc(100vh - 190px);
  align-content: center;
}

body[data-auth-state="guest"][data-active-view="my-shifts"] .preview-board,
body[data-auth-state="guest"][data-active-view="profile"] .profile-grid,
body[data-auth-state="guest"][data-active-view="workspace"] .workspace-board,
body[data-auth-state="guest"][data-active-view="volunteer-detail"] .workspace-board {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

body[data-auth-state="guest"][data-active-view="profile"] .profile-grid,
body[data-auth-state="guest"][data-active-view="workspace"] .workspace-board,
body[data-auth-state="guest"][data-active-view="volunteer-detail"] .workspace-board {
  grid-template-columns: minmax(0, 1fr);
}

.install-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  background: linear-gradient(135deg, var(--warm-blue) 0%, #2f689b 100%);
  color: #fff;
}

.install-copy h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
}

.install-copy p:not(.eyebrow),
.install-instructions,
.install-status {
  color: rgba(255, 255, 255, 0.88);
}

.install-copy p:not(.eyebrow) {
  margin-top: 6px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.install-strip .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.install-strip .btn-primary {
  background: linear-gradient(135deg, var(--warm-orange) 0%, #de5b22 100%);
}

.install-instructions,
.install-status {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ios-install-guide__card {
  width: min(460px, calc(100vw - 24px));
  padding: 22px;
  background: linear-gradient(150deg, #fffdf9 0%, #fff7ec 100%);
}

.ios-install-guide__brand {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(208, 101, 45, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32, 66, 104, 0.12);
}

.ios-install-guide__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ios-install-guide__steps {
  display: grid;
  gap: 9px;
  margin: 16px 0 12px;
  padding: 14px 16px 14px 38px;
  border: 1px solid rgba(45, 99, 150, 0.14);
  border-radius: 16px;
  background: rgba(232, 241, 250, 0.68);
  color: var(--warm-blue-deep);
  line-height: 1.45;
}

.ios-install-guide__note,
.ios-install-guide__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ios-install-guide__status {
  min-height: 1.45em;
  margin-top: 8px;
  color: var(--warm-blue-deep);
  font-weight: 700;
}

.ios-install-guide__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ios-install-guide__actions .btn:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 430px) {
  .ios-install-guide__card {
    width: min(100%, calc(100vw - 16px));
    padding: 18px;
  }

  .ios-install-guide__actions {
    grid-template-columns: 1fr;
  }

  .ios-install-guide__actions .btn:first-child:nth-last-child(3) {
    grid-column: auto;
  }
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 45;
  display: none;
  transform: translateX(-50%);
  width: min(100% - 24px, 700px);
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(24, 55, 93, 0.16);
  backdrop-filter: blur(16px);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

body.has-manager-slot-modal .bottom-nav,
body.has-day-notes-modal .bottom-nav,
body.has-volunteer-claim-modal .bottom-nav,
body.has-volunteer-cancel-modal .bottom-nav,
body.has-volunteer-cover-modal .bottom-nav,
body.has-push-prompt-modal .bottom-nav,
body.profile-photo-modal-open .bottom-nav {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
}

.bottom-nav__item {
  flex: 1 1 20%;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  min-width: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.bottom-nav__item.is-active {
  color: var(--warm-orange);
  background: rgba(243, 106, 33, 0.12);
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav__item span:last-child,
.app-tab span:last-child {
  line-height: 1.1;
}

.desktop-only {
  display: inline-flex;
}

.hidden {
  display: none !important;
}

.site-header__utility--compact {
  box-shadow: 0 14px 30px rgba(24, 55, 93, 0.14);
}

.site-header__utility--compact .global-search {
  box-shadow: 0 14px 24px rgba(31, 55, 92, 0.08);
}

@media (max-width: 1180px) {
  .calendar-layout,
  .profile-grid,
  .shift-list {
    grid-template-columns: 1fr;
  }

  .roster-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding-bottom: 110px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .profile-section-tab {
    padding: 10px 8px;
    text-align: center;
  }

  .profile-summary {
    align-items: flex-start;
  }

  .site-header {
    padding-bottom: 0;
  }

  .site-header__utility {
    top: 8px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .brand-logo--partner {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    padding: 6px;
  }

  .brand-plus {
    width: 24px;
    height: 24px;
    font-size: 0.86rem;
  }

  .app-tabs--top {
    display: none !important;
  }

  .bottom-nav {
    display: flex !important;
    gap: 6px;
  }

  .mobile-more-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    align-items: end;
    padding: 18px 12px calc(100px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 38, 61, 0.28);
    backdrop-filter: blur(4px);
  }

  .mobile-more-sheet__panel {
    display: grid;
    gap: 10px;
    max-height: min(68vh, 560px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: #fffdfa;
    box-shadow: 0 22px 48px rgba(24, 55, 93, 0.24);
  }

  .mobile-more-sheet__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px 4px;
  }

  .mobile-more-sheet__heading .eyebrow,
  .mobile-more-sheet__section > p {
    margin: 0;
  }

  .mobile-more-sheet__heading h2 {
    margin: 0;
    color: var(--warm-blue-deep);
    font-size: 1.4rem;
  }

  .mobile-more-sheet__section {
    display: grid;
    gap: 8px;
    padding-top: 6px;
  }

  .mobile-more-sheet__section > p {
    padding: 0 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .mobile-more-sheet__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(33, 79, 132, 0.11);
    border-radius: 16px;
    background: #fff;
    color: var(--warm-blue-deep);
    font: inherit;
    font-weight: 800;
    text-align: left;
  }

  .mobile-more-sheet__item-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
  .mobile-more-sheet__item-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--warm-blue-deep); background: #eef5fb; flex: 0 0 28px; }
  .mobile-more-sheet__item-icon--share { color: var(--warm-orange-deep); background: #fff0e3; }
  .mobile-more-sheet__item-icon--donate { color: var(--warm-orange-deep); background: #fff6eb; }
  .mobile-more-sheet__item-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

  .mobile-more-sheet__item:active {
    background: #fff0e3;
    color: var(--warm-orange-deep);
  }

  .desktop-only {
    display: none;
  }

  .audit-toolbar,
  .volunteer-admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .audit-toolbar .btn,
  .volunteer-admin-toolbar .btn {
    width: 100%;
  }

  .audit-event__grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-auth-state="guest"][data-active-view="my-shifts"] .site-header,
  body[data-auth-state="guest"][data-active-view="profile"] .site-header,
  body[data-auth-state="guest"][data-active-view="workspace"] .site-header,
  body[data-auth-state="guest"][data-active-view="audit-log"] .site-header,
  body[data-auth-state="guest"][data-active-view="volunteers-admin"] .site-header,
  body[data-auth-state="guest"][data-active-view="volunteer-detail"] .site-header,
  body[data-auth-state="guest"][data-active-view="shift-transfers"] .site-header {
    display: none;
  }

  body[data-auth-state="guest"][data-active-view="my-shifts"] .app-main,
  body[data-auth-state="guest"][data-active-view="profile"] .app-main,
  body[data-auth-state="guest"][data-active-view="workspace"] .app-main,
  body[data-auth-state="guest"][data-active-view="audit-log"] .app-main,
  body[data-auth-state="guest"][data-active-view="volunteers-admin"] .app-main,
  body[data-auth-state="guest"][data-active-view="volunteer-detail"] .app-main,
  body[data-auth-state="guest"][data-active-view="shift-transfers"] .app-main {
    margin-top: 0;
  }
}

@media (min-width: 901px) {
  .site-header {
    grid-template-columns: auto minmax(320px, 1fr);
    grid-template-areas: "tabs search";
    align-items: center;
    column-gap: 18px;
  }

  .site-header__top {
    grid-column: 1 / -1;
  }

  .site-header__utility {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr);
    grid-template-areas: "tabs search";
    align-items: center;
    column-gap: 18px;
    padding: 12px 16px;
  }

  .app-tabs--top {
    grid-area: tabs;
    min-width: 0;
    padding-bottom: 0;
    overflow: visible;
    position: relative;
    z-index: 60;
    width: max-content;
  }

  .admin-menu__panel--portal {
    position: fixed;
    top: var(--admin-panel-top, 76px);
    left: var(--admin-panel-left, 16px);
    min-width: 240px;
    max-height: var(--admin-panel-max-height, calc(100vh - 32px));
    z-index: 10050;
  }

  .global-search {
    grid-area: search;
    min-width: 320px;
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .app-tab--desktop-profile-slot {
    display: none;
  }

  #view-home .hero-card,
  #view-home .today-banner {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px 12px 110px;
  }

  .loading-overlay {
    padding: 18px 14px;
  }

  .loading-overlay__card {
    width: min(100%, 420px);
    padding: 24px 18px 20px;
    border-radius: 28px;
    gap: 12px;
  }

  .loading-overlay__logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .loading-overlay__logo--partner {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    padding: 6px;
  }

  .loading-overlay__plus {
    width: 24px;
    height: 24px;
    font-size: 0.86rem;
  }

  .loading-overlay__detail {
    font-size: 0.94rem;
  }

  .loading-overlay__skeleton-grid {
    grid-template-columns: 1fr;
  }

  .loading-overlay__skeleton-card {
    height: 56px;
    border-radius: 16px;
  }

  body.is-standalone .app-shell {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

    .site-header,
    .hero-card,
    .day-panel,
  .calendar-panel,
  .utility-card,
  .install-strip,
  .cover-card,
  .preview-card,
  .status-card {
    border-radius: 22px;
  }

    .site-header,
    .hero-card,
    .day-panel,
  .calendar-panel,
  .utility-card,
  .install-strip,
  .cover-card,
  .preview-card {
      padding: 14px;
    }

  .site-header {
    gap: 8px;
  }

  .site-header__utility {
      padding: 10px;
      border-radius: 18px;
    }

  .site-header__top {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .brand {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 11px;
    width: 100%;
  }

  .brand-copy,
  .brand-copy h1,
  .brand-copy .subtle {
    text-align: left;
  }

  .brand-copy {
    display: grid;
    gap: 1px;
  }

  .brand-copy .eyebrow {
    margin-bottom: 0;
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    line-height: 1.15;
  }

  .brand-copy h1 {
    font-size: clamp(1.42rem, 7vw, 1.78rem);
    line-height: 1.02;
  }

  #periodText {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .brand-logo--partner {
    width: 48px;
    height: 48px;
  }

  .header-actions {
    display: none;
  }

  #view-home .hero-card,
  #view-home .today-banner,
  #view-home .toolbar {
    display: none !important;
  }

  #view-home .day-panel {
    padding-top: 16px;
  }

  #view-home .day-title {
    margin-top: 0;
  }

  #view-home .day-stats {
    margin-bottom: 12px;
  }

  .site-header__top,
  .hero-card,
  .toolbar,
  .today-banner,
  .panel-heading,
  .month-nav,
  .cover-card__head,
  .preview-card__head,
  .install-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__top {
    gap: 8px;
  }

  .hero-card--variant {
    gap: 14px;
  }

  .hero-card--variant .desktop-only {
    display: none;
  }

  .hero-summary__row,
  .hero-summary__row--stack {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-summary__tiles,
  .hero-summary__band {
    gap: 8px;
  }

  .mobile-push-prompt {
    display: grid;
  }

  .mobile-push-prompt__actions .btn {
    flex: 1 1 100%;
  }

  .auth-panel-card {
    max-width: 100%;
  }

  .auth-stage {
    min-height: auto;
    padding-top: 0;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-layout__hero,
  .auth-layout__panel {
    padding: 0;
  }

  .auth-layout__panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-panel-card__hero--centered {
    text-align: center;
  }

  .auth-panel-card__hero--centered h2 {
    font-size: 2.6rem;
  }

  .auth-panel-card__hero--centered .subtle {
    max-width: 320px;
    margin: 0 auto;
    font-size: 1rem;
  }

  .auth-brand-row {
    justify-content: center;
  }

  .auth-hero-chips {
    justify-content: center;
  }

  .auth-hero-note {
    display: none;
  }

  .auth-ambient-card {
    width: 180px;
    padding: 14px 14px 12px;
    border-radius: 22px;
    opacity: 0.72;
  }

  .auth-ambient-card strong {
    font-size: 1rem;
  }

  .auth-ambient-card span {
    font-size: 0.76rem;
  }

  .auth-ambient-card--left {
    top: 8%;
    left: -6px;
  }

  .auth-ambient-card--right {
    right: -8px;
    bottom: 18%;
  }

  .auth-form-grid__two,
  .auth-social__grid,
  .auth-actions {
    grid-template-columns: 1fr;
  }

  .roster-editor-form .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    display: grid;
  }

  .auth-submit,
  .auth-actions .btn {
    width: 100%;
  }

  .auth-social__grid--icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-summary-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .roster-shift-editor__head,
  .roster-slot-editor__head,
  .roster-shift-stack__head {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-card--compact {
    padding: 14px;
  }

  .preview-card__main {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .preview-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 7px;
  }

  .preview-meta--compact {
    flex-direction: column;
    gap: 6px;
  }

  .auth-brand-row {
    gap: 12px;
  }

  .auth-brand-logo {
    width: 54px;
    height: 54px;
  }

  body[data-auth-state="guest"][data-active-view="my-shifts"] .app-main,
  body[data-auth-state="guest"][data-active-view="profile"] .app-main {
    min-height: calc(100vh - 150px);
    margin-top: 10px;
  }

  body[data-auth-state="guest"][data-active-view="my-shifts"] .app-view.is-active,
  body[data-auth-state="guest"][data-active-view="profile"] .app-view.is-active {
    min-height: calc(100vh - 190px);
  }

  .hero-summary--two .hero-summary__tile,
  .hero-summary__band-item {
    flex-basis: 100%;
  }

  .brand {
    gap: 12px;
  }

  .brand-copy h1 {
    font-size: 1.95rem;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .quick-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .chip {
    justify-content: center;
    padding: 0 10px;
  }

  .month-nav {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .month-title strong {
    font-size: 1.16rem;
  }

  .month-nav-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .calendar-weekdays span {
    font-size: 0.62rem;
  }

  .calendar-grid,
  .calendar-weekdays {
    gap: 5px;
  }

  .calendar-day--event,
  .calendar-day--empty {
    min-height: 58px;
    padding: 7px 6px;
    border-radius: 8px;
  }

  .calendar-day--event {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    background: #fffefb;
  }

  .calendar-day--event::before {
    position: static;
    width: 6px;
    height: 6px;
    order: 2;
  }

  .calendar-day--empty {
    display: grid;
    place-items: center;
    align-content: center;
    background: #f8fafc;
  }

  .calendar-day__top {
    display: grid;
    place-items: center;
    width: 100%;
  }

  .calendar-day__meta {
    display: none;
  }

  .calendar-day__number {
    font-size: 1.08rem;
  }

  .legend {
    gap: 6px;
    padding: 8px;
    font-size: 0.74rem;
  }

  .legend span {
    min-height: 26px;
    padding: 3px 7px;
  }

  .workspace-mini-calendar {
    padding: 12px;
    border-radius: 20px;
  }

  .workspace-mini-calendar__day {
    min-height: 36px;
    padding: 5px;
    border-radius: 11px;
  }

  .badge {
    padding: 2px 6px;
    font-size: 0.58rem;
  }

  .upcoming-item {
    grid-template-columns: 56px 1fr;
  }

  .upcoming-item .badge {
    grid-column: 2;
    justify-self: start;
  }

  .day-title {
    gap: 8px;
  }

  .day-title__main {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
  }

  .day-title h2 {
    font-size: 1.14rem;
  }

  .day-title__label {
    font-size: 0.68rem;
    letter-spacing: 0.055em;
  }

  .day-nav-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .roster-summary-pill {
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .shift-head {
    align-items: flex-start;
  }

  .shift-badge-stack {
    max-width: 44%;
  }

  .cover-item {
    grid-template-columns: 38px 1fr;
  }

  .cover-item.cover-item--compact {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .cover-item .badge {
    grid-column: 2;
    justify-self: start;
  }

  .cover-item__actions {
    grid-column: 2;
    justify-items: start;
  }

  .cover-item--compact .cover-item__actions .btn {
    min-height: 42px;
  }

  .push-prompt-modal {
    padding: 18px 14px;
    place-items: center;
  }

  .push-prompt-modal__panel {
    width: min(100%, 420px);
    max-height: min(74vh, calc(100vh - 36px));
    border-radius: 28px;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .auth-panel-card--simple {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .auth-layout {
    gap: 12px;
  }

  .auth-layout__panel {
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .auth-panel-card__hero {
    gap: 4px;
  }

  .auth-panel-card__hero--centered h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 0.98;
  }

  .auth-panel-card__hero--centered .subtle {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .auth-brand-row {
    gap: 10px;
  }

  .auth-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .auth-brand-logo--partner {
    width: 46px;
    height: 46px;
    padding: 5px;
  }

  .auth-brand-plus {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .auth-form-grid,
  .auth-social,
  .auth-form-grid--compact {
    gap: 10px;
  }

  .auth-field {
    gap: 5px;
  }

  .auth-field span,
  .auth-password-toggle,
  .auth-code-hint {
    font-size: 0.82rem;
  }

  .auth-field input,
  .auth-field textarea,
  .auth-field select {
    border-radius: 16px;
    padding: 12px 14px;
  }

  .auth-password-input input {
    padding-right: 68px;
  }

  .auth-check {
    gap: 8px;
    font-size: 0.88rem;
  }

  .auth-check input {
    width: 16px;
    height: 16px;
  }

  .auth-submit,
  .auth-social-btn {
    min-height: 48px;
  }

  .auth-link-btn {
    font-size: 0.95rem;
  }

  .auth-divider {
    margin: 2px 0 0;
  }

  .auth-social__grid {
    gap: 8px;
  }

  .auth-register-row {
    gap: 6px;
    font-size: 0.92rem;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand-copy,
  .brand-copy h1,
  .brand-copy .subtle {
    text-align: left;
  }

  .toolbar-copy,
  .hero-card {
    text-align: center;
  }

  .brand-logos {
    justify-content: flex-start;
    gap: 8px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand-logo--partner {
    width: 46px;
    height: 46px;
  }

  .header-actions {
    display: none;
  }

  .page-label {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .global-search {
    min-height: 46px;
    padding-inline: 12px;
  }

  .partner-note {
    font-size: 0.82rem;
  }

  #periodText {
    font-size: 0.76rem;
  }

  .quick-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav {
    bottom: 10px;
    width: calc(100% - 16px);
    padding: 8px;
    border-radius: 22px;
  }

  .bottom-nav__item {
    min-height: 54px;
    font-size: 0.66rem;
  }

  .audit-toolbar,
  .volunteer-admin-toolbar,
  .audit-event__grid {
    grid-template-columns: 1fr;
  }

  .audit-event__top {
    flex-direction: column;
  }
}

@media (max-width: 560px) and (max-height: 860px) {
  .auth-stage {
    padding-top: 0;
  }

  .auth-panel-card--simple {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .auth-layout {
    gap: 10px;
  }

  .auth-layout__panel {
    gap: 10px;
    padding: 12px;
  }

  .auth-panel-card__hero--centered h2 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .auth-brand-logo,
  .auth-brand-logo--partner {
    width: 40px;
    height: 40px;
  }

  .auth-brand-plus {
    width: 26px;
    height: 26px;
  }

  .auth-field input,
  .auth-field textarea,
  .auth-field select {
    padding: 11px 13px;
  }

  .auth-submit,
  .auth-social-btn {
    min-height: 44px;
  }

  .auth-social {
    gap: 8px;
  }
}

/* Phase 1 profile-photo polish: compact, viewport-safe editor controls. */
.profile-photo-field--details {
  align-items: flex-start;
  padding: 12px 0;
}

.profile-photo-field--details > div {
  min-width: 0;
}

.profile-photo-toast {
  margin-bottom: 10px;
}

.profile-photo-instructions {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.profile-photo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.profile-photo-action-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-photo-editor {
  gap: 10px;
  margin: 8px auto 6px;
}

.profile-photo-cropper {
  width: clamp(220px, 48vmin, 260px);
  height: clamp(220px, 48vmin, 260px);
}

.profile-photo-control-list {
  width: min(390px, 100%);
  gap: 9px;
}

.profile-photo-control-row,
.profile-photo-control-row--buttons {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.profile-photo-control-label {
  color: var(--warm-blue-deep);
  font-size: 0.86rem;
  text-align: right;
}

.profile-photo-button-pair,
.profile-photo-slider-with-icon {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-photo-button-pair {
  grid-template-columns: 42px 42px;
  justify-content: start;
}

.profile-photo-slider-with-icon {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.profile-photo-slider-with-icon--single {
  grid-template-columns: 34px minmax(0, 1fr);
}

.profile-photo-control-icon,
.profile-photo-slider-with-icon .profile-photo-icon-btn {
  justify-self: center;
}

.profile-photo-control-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.profile-photo-control-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-photo-crop-actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  margin: 8px -18px -18px;
  padding: 8px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(24, 55, 93, 0.08);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.86), #fffaf3 34%);
}

.profile-photo-crop-actions .btn {
  width: min(280px, 100%);
}

.btn.profile-photo-reset,
.btn.profile-photo-reset:disabled {
  min-height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.btn.profile-photo-reset:not(:disabled) {
  color: var(--warm-clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn.profile-photo-reset:disabled {
  color: rgba(105, 94, 87, 0.5);
  cursor: default;
}

.profile-photo-confirm-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 12px;
}

.profile-photo-confirm-actions .btn {
  width: min(280px, 100%);
}

.profile-photo-danger {
  border-color: rgba(174, 56, 48, 0.42) !important;
  color: #9f302b !important;
  background: rgba(174, 56, 48, 0.04) !important;
}

.profile-photo-danger:hover,
.profile-photo-danger:focus-visible {
  border-color: rgba(174, 56, 48, 0.7) !important;
  background: rgba(174, 56, 48, 0.08) !important;
}

.profile-photo-modal__card--confirm {
  max-width: min(420px, calc(100vw - 20px));
}

@media (max-width: 430px) {
  .profile-photo-modal__card {
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .profile-photo-cropper {
    width: clamp(220px, 62vw, 250px);
    height: clamp(220px, 62vw, 250px);
  }

  .profile-photo-control-row,
  .profile-photo-control-row--buttons {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px;
  }

  .profile-photo-control-label {
    font-size: 0.82rem;
  }

  .profile-photo-slider-with-icon {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .profile-photo-slider-with-icon--single {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .profile-photo-icon-btn {
    width: 38px;
    height: 38px;
  }

  .profile-photo-crop-actions {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Shared lightweight location rows used by Home, Open Shifts, and My Shifts. */
.location-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--warm-blue-deep);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.location-line__icon {
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 0.12em;
  color: var(--warm-clay);
}

.location-line__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-line--link {
  color: var(--warm-blue-deep);
  text-decoration: underline;
  text-decoration-color: rgba(207, 104, 55, 0.36);
  text-underline-offset: 3px;
}

.location-line--link:hover,
.location-line--link:focus-visible {
  color: var(--warm-clay);
  text-decoration-color: currentColor;
}

/* Open Shifts regression guard: keep every role row full-width and prevent narrow-column collapse. */
.cover-card--group .cover-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.cover-card--group .cover-item--compact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "icon copy status";
  align-items: start;
  gap: 12px;
  width: 100%;
}

.cover-card--group .cover-item--compact .cover-item__icon {
  grid-area: icon;
  width: 44px;
  min-width: 44px;
  justify-self: center;
}

.cover-card--group .cover-item--compact .cover-item__copy {
  grid-area: copy;
  min-width: 0;
  width: 100%;
}

.cover-card--group .cover-item--compact .cover-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cover-card--group .cover-item--compact .cover-item__title strong,
.cover-card--group .cover-item--compact .cover-item__copy p,
.cover-card--group .cover-item--compact .cover-item__copy span {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.cover-card--group .cover-item--compact .cover-item__actions {
  justify-items: start;
  width: 100%;
  min-width: 0;
}

.cover-card--group .cover-item--compact .open-shift-item__status {
  grid-area: status;
  align-self: start;
  justify-self: end;
}

.cover-card--group .cover-item--compact .cover-item__actions .btn {
  width: auto;
  min-width: 132px;
  max-width: 100%;
  white-space: nowrap;
}

.cover-card__head .location-line {
  margin-top: 4px;
}

.venue-info-row.location-line,
.my-shift-card__venue.location-line {
  display: flex;
}

.venue-info-row.location-line {
  align-items: flex-start;
}

.venue-info-row.location-line .venue-info-row__icon,
.my-shift-card__venue.location-line .my-shift-card__venue-icon {
  background: transparent;
  border: 0;
  margin-top: 0.12em;
}

@media (max-width: 430px) {
  .cover-card--group .cover-item--compact {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .cover-card--group .cover-item--compact .open-shift-item__actions .btn {
    width: min(220px, 100%);
  }
}

@media (max-width: 360px) {
  .cover-card--group .cover-item--compact {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      ". status";
  }
}

.calendar-page__title {
  margin: 0 0 10px;
  color: var(--warm-blue-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}

[data-page-entry-anchor] {
  scroll-margin-top: 10px;
}

.my-shifts-next-summary {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  color: var(--warm-text-soft);
}

.my-shifts-next-summary .eyebrow {
  margin: 0;
}

.my-shifts-next-summary strong {
  color: var(--warm-blue-deep);
  font-size: 1rem;
  line-height: 1.35;
}

.my-shifts-next-summary > span:last-child {
  line-height: 1.4;
}

/* Communication Centre Template Manager accordions. */
.communication-template-manager .template-category__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--warm-blue-deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.communication-template-manager .template-category__toggle:hover {
  color: var(--warm-clay);
}

.communication-template-manager .template-category__toggle:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(207, 104, 55, 0.28);
  outline-offset: 2px;
}

.communication-template-manager .comm-template-group-toggle__chevron {
  display: inline-grid;
  place-items: center;
  width: 18px;
  min-width: 18px;
  color: var(--muted);
}

.communication-template-manager .template-category__panel {
  min-width: 0;
}

.communication-template-manager .comm-template-row-actions {
  position: relative;
  z-index: 2;
}

.communication-template-manager .comm-template-kebab {
  width: 42px;
  min-width: 42px;
  height: 42px;
  pointer-events: auto;
}

.communication-template-manager [data-template-edit] {
  min-height: 42px;
  pointer-events: auto;
}

.communication-template-manager .comm-template-kebab:focus-visible,
.communication-template-manager [data-template-edit]:focus-visible {
  outline: 3px solid rgba(207, 104, 55, 0.28);
  outline-offset: 2px;
}

.communication-template-manager .comm-template-floating-menu {
  z-index: 180;
}

/* Profile header avatar edit shortcut. */
.profile-summary .profile-photo--button {
  position: relative;
  min-width: 64px;
  min-height: 64px;
  border-color: rgba(207, 104, 55, 0.3);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.profile-summary .profile-photo--button:hover {
  border-color: rgba(207, 104, 55, 0.58);
  background-color: #fff4e8;
  box-shadow: 0 10px 24px rgba(207, 104, 55, 0.12);
}

.profile-summary .profile-photo--button:focus-visible {
  outline: 3px solid rgba(207, 104, 55, 0.32);
  outline-offset: 4px;
  border-color: var(--warm-clay);
}

.profile-summary .profile-photo--button:active {
  transform: scale(0.97);
}

.profile-photo__edit-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(207, 104, 55, 0.3);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--warm-clay);
  box-shadow: 0 4px 10px rgba(24, 55, 93, 0.16);
  pointer-events: none;
}

.profile-photo__edit-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Profile photo square avatar refinement. */
.profile-photo {
  position: relative;
  isolation: isolate;
  border-radius: 14px;
}

.profile-photo--small {
  width: 68px;
  height: 68px;
}

.profile-photo--large {
  border-radius: 22px;
}

.profile-photo__initials,
.profile-photo__image {
  position: absolute;
  inset: 0;
}

.profile-photo__initials {
  display: grid;
  place-items: center;
  z-index: 1;
}

.profile-photo__image {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.profile-photo__image.is-loaded {
  opacity: 1;
}

.profile-photo--button {
  min-width: 68px;
  min-height: 68px;
}

.profile-summary .profile-photo--button {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
}

.profile-photo__edit-badge {
  right: -4px;
  bottom: -4px;
}

.profile-photo-cropper {
  width: clamp(220px, 52vmin, 260px);
  height: clamp(220px, 52vmin, 260px);
  border-radius: 22px;
}

.profile-photo-field--details .profile-photo-danger {
  border-color: rgba(174, 56, 48, 0.42) !important;
  color: #9f302b !important;
  background: rgba(174, 56, 48, 0.03) !important;
}

.profile-photo-field--details .profile-photo-danger:hover,
.profile-photo-field--details .profile-photo-danger:focus-visible {
  border-color: rgba(174, 56, 48, 0.7) !important;
  background: rgba(174, 56, 48, 0.08) !important;
}

@media (max-width: 430px) {
  .profile-photo-cropper {
    width: clamp(228px, 66vw, 256px);
    height: clamp(228px, 66vw, 256px);
    border-radius: 20px;
  }
}

/* Compact Upcoming rosters list for Calendar mobile and desktop sidebar. */
.calendar-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, 380px);
}

.upcoming-rosters {
  gap: 12px;
  padding: 16px;
}

.upcoming-rosters .mini-heading {
  gap: 2px;
}

.upcoming-rosters__list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.82);
}

.upcoming-rosters__row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  padding: 12px 12px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(33, 79, 132, 0.09);
  background: #fffdf9;
  color: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.upcoming-rosters__row:last-child {
  border-bottom: 0;
}

.upcoming-rosters__row:hover {
  transform: none;
  background: #fff8ef;
}

.upcoming-rosters__row:active {
  transform: scale(0.992);
}

.upcoming-rosters__row:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(249, 115, 22, 0.26);
  outline-offset: -3px;
}

.upcoming-rosters__row.is-next {
  background: #fffdf9;
}

.upcoming-rosters__row.is-current {
  z-index: 1;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, #fffdf9 52%);
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.42);
}

.upcoming-rosters__row.is-selected {
  background-color: rgba(232, 241, 253, 0.72);
}

.upcoming-rosters__row.is-current.is-selected {
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.48);
}

.upcoming-rosters__date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 54px;
  min-height: 58px;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 15px;
  background: var(--warm-blue-soft);
  color: var(--warm-blue-deep);
  line-height: 1;
}

.upcoming-rosters__date span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.upcoming-rosters__date strong {
  margin-top: 4px;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.upcoming-rosters__content {
  display: grid;
  min-width: 0;
  gap: 4px;
  justify-items: start;
}

.upcoming-rosters__next-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--warm-clay);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upcoming-rosters__venue {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: var(--warm-blue-deep);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.upcoming-rosters__address {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-rosters__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.upcoming-rosters__status {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.upcoming-rosters__status--filled {
  background: #dcfce7;
  color: #186541;
}

.upcoming-rosters__status--required {
  background: #fee2e2;
  color: #991b1b;
}

.upcoming-rosters__status--attention {
  background: #fef3c7;
  color: #925f0f;
}

.upcoming-rosters__chevron {
  align-self: center;
  justify-self: end;
  color: rgba(24, 55, 93, 0.42);
  font-size: 1.8rem;
  line-height: 1;
}

@media (min-width: 1181px) {
  .calendar-layout .side-stack {
    position: sticky;
    top: calc(var(--header-offset, 96px) + 14px);
  }

  .calendar-layout .upcoming-rosters__list {
    max-height: min(62vh, 560px);
    overflow-y: auto;
  }
}

@media (max-width: 1180px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .upcoming-rosters {
    margin-bottom: calc(18px + var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 540px) {
  .calendar-panel {
    overflow: visible;
  }

  .calendar-grid {
    padding-top: 1px;
    overflow: visible;
  }

  .calendar-grid > :nth-child(-n + 7) {
    border-top-style: solid;
  }

  .calendar-day__top,
  .calendar-day__number {
    justify-self: center;
    text-align: center;
  }

  .calendar-day--event,
  .calendar-day--empty {
    min-height: clamp(46px, 12vw, 58px);
    aspect-ratio: 1;
    padding: 0;
  }

  .calendar-day--event {
    grid-template-rows: auto auto;
    place-content: center;
    place-items: center;
    gap: 5px;
  }

  .calendar-day--empty {
    place-content: center;
    place-items: center;
  }

  .calendar-day__top {
    width: auto;
  }

  .calendar-day__number {
    font-size: clamp(1.12rem, 5vw, 1.24rem);
    line-height: 1;
  }

  .calendar-day--event::before {
    justify-self: center;
  }

  .upcoming-rosters {
    padding: 14px;
  }

  .upcoming-rosters__row {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 84px;
    padding: 11px 10px;
  }

  .upcoming-rosters__date {
    width: 52px;
    min-height: 56px;
    border-radius: 14px;
  }

  .upcoming-rosters__venue,
  .upcoming-rosters__address {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .upcoming-rosters__chevron {
    font-size: 1.55rem;
  }

  .legend {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    margin-top: 8px;
    padding: 5px 4px;
    border-radius: 12px;
    font-size: 0.64rem;
  }

  .legend span {
    min-height: 20px;
    padding: 1px 3px;
    background: transparent;
    white-space: nowrap;
  }

  .legend .dot {
    width: 7px;
    height: 7px;
    margin-right: 3px;
  }
}

.maintenance-settings-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.maintenance-settings-card.is-active {
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.88), rgba(255, 255, 255, 0.96));
}

.maintenance-settings-card__status,
.maintenance-settings-form,
.maintenance-settings-card__meta {
  display: grid;
  gap: 8px;
}

.maintenance-settings-card__status {
  padding: 14px;
  border: 1px solid rgba(33, 79, 132, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.maintenance-settings-card__status .badge {
  justify-self: start;
}

.maintenance-settings-form {
  gap: 14px;
}

.maintenance-settings-form > label:not(.toggle) {
  display: grid;
  gap: 6px;
  color: var(--warm-blue-deep);
  font-weight: 800;
}

.maintenance-settings-form textarea,
.maintenance-settings-form input[type="datetime-local"] {
  width: 100%;
}

.maintenance-settings-form__toggle {
  justify-self: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--warm-blue-soft);
}

.maintenance-settings-card__meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.upcoming-rosters__chevron svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Roster communication controls are scoped to the Template Manager. */
.roster-communications {
  margin-top: 18px;
  border-color: rgba(37, 81, 126, 0.16);
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.96), rgba(245, 250, 255, 0.96));
}

.roster-communications > .quick-tabs {
  margin: 12px 0 16px;
}

.roster-communications .quick-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comm-roster-content-guide {
  padding: 14px 16px;
  border: 1px solid rgba(37, 81, 126, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.comm-roster-content-guide .subtle {
  margin: 5px 0 0;
}

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

.roster-automation-card {
  min-width: 0;
  margin: 0;
  box-shadow: none;
}

.roster-automation-card .auth-form-grid {
  margin-top: 12px;
}

.notification-schedule-card--readonly .auth-actions {
  margin-bottom: 0;
}

.comm-template-live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.comm-template-live-status > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(37, 81, 126, 0.13);
  border-radius: 999px;
  background: rgba(245, 249, 252, 0.92);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.comm-template-delivery-settings {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(207, 104, 55, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 249, 241, 0.96), rgba(247, 251, 255, 0.96));
}

.comm-template-delivery-settings__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.comm-template-delivery-settings__heading h4,
.comm-template-delivery-settings__heading .eyebrow {
  margin: 0;
}

.comm-template-delivery-settings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.comm-template-delivery-settings__grid .auth-option-card {
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
}

.comm-template-delivery-settings__number {
  display: grid;
  grid-template-columns: minmax(80px, 120px) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.comm-template-delivery-settings__number > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.comm-template-delivery-settings__note {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .roster-communications-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-communications .quick-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-communications .quick-tabs .chip {
    min-width: 0;
    padding-inline: 10px;
  }

  .comm-template-delivery-settings__heading {
    display: block;
  }

  .comm-template-delivery-settings__heading .comm-template-live-status {
    margin-top: 10px;
  }

  .comm-template-delivery-settings__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep startup presentation overrides after the responsive application rules. */
.loading-overlay__card {
  gap: 12px;
  background: radial-gradient(circle at 50% 24%, rgba(255, 239, 221, 0.72), transparent 34%), linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 255, 0.91));
  box-shadow: 0 30px 70px rgba(24, 55, 93, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.loading-overlay__brand::before { inset: -26px; }
.loading-overlay__logo { width: 116px; height: 116px; border-radius: 30px; }
.loading-overlay__eyebrow { margin-bottom: 8px; }
.loading-overlay__title { font-size: clamp(1.85rem, 4vw, 2.55rem); }

@media (max-width: 760px) {
  .loading-overlay__logo { width: 96px; height: 96px; border-radius: 26px; }
  .loading-overlay__eyebrow { max-width: 290px; font-size: 0.68rem; line-height: 1.45; }
}
/* Super Administrator Test Centre */
.test-centre-board { display: grid; gap: 22px; }
.test-centre-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(205, 91, 30, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(243, 111, 43, 0.2), transparent 34%),
    linear-gradient(135deg, #fff9f1 0%, #f2f8fb 100%);
  box-shadow: 0 22px 60px rgba(24, 55, 93, 0.1);
}
.test-centre-hero h1 { margin: 5px 0 10px; color: #18375d; font-size: clamp(2.1rem, 5vw, 3.8rem); }
.test-centre-hero p { max-width: 720px; color: #53657a; line-height: 1.65; }
.test-centre-diagnostics { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; }
.test-centre-diagnostics span {
  min-width: 135px;
  padding: 15px;
  border: 1px solid #dce6ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #66758a;
  font-size: 0.78rem;
}
.test-centre-diagnostics strong { display: block; margin-bottom: 5px; color: #18375d; font-size: 1rem; overflow-wrap: anywhere; }
.test-centre-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.test-centre-create-grid .utility-card { display: flex; flex-direction: column; align-items: flex-start; }
.test-centre-create-grid .utility-card .btn { margin-top: auto; }
.test-centre-runs { display: grid; gap: 18px; }
.test-centre-run { overflow: hidden; border-top: 5px solid #f36f2b; }
.test-centre-run__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.test-centre-run__head h2 { margin: 3px 0 7px; }
.test-centre-run__head p { margin: 0; color: #6c7888; }
.test-centre-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0df;
  color: #a44316;
  font: 800 0.72rem/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.test-centre-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.test-centre-stage { display: flex; justify-content: space-between; gap: 8px; padding: 12px 13px; border: 1px solid #dce5ef; border-radius: 14px; background: #f7fafc; }
.test-centre-stage strong { color: #18375d; font-size: 0.78rem; }
.test-centre-stage small { color: #738094; font-size: 0.72rem; }
.test-centre-stage--success { border-color: #a9ddc0; background: #effaf3; }
.test-centre-stage--warning { border-color: #efd28d; background: #fff9e9; }
.test-centre-stage--danger { border-color: #efb1aa; background: #fff2f0; }
.test-centre-action-grid { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px; border-radius: 18px; background: #f4f7fa; }
.test-centre-history { margin-top: 18px; border-top: 1px solid #e3eaf1; padding-top: 15px; }
.test-centre-history summary { cursor: pointer; color: #1f4f84; font-weight: 800; }
.test-centre-timeline { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.test-centre-timeline__item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 11px; min-height: 52px; }
.test-centre-timeline__item > span { width: 12px; height: 12px; margin-top: 4px; border: 3px solid #fff; border-radius: 50%; background: #2f7d50; box-shadow: 0 0 0 2px #b8d8c6; z-index: 1; }
.test-centre-timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: -2px; width: 2px; background: #dce5ef; }
.test-centre-timeline__item--failed > span { background: #b93e31; box-shadow: 0 0 0 2px #efb1aa; }
.test-centre-timeline__item--skipped > span { background: #bd7a17; box-shadow: 0 0 0 2px #efd28d; }
.test-centre-timeline__item strong,.test-centre-timeline__item small { display: block; }
.test-centre-timeline__item small { margin-top: 4px; color: #768396; }
.test-centre-run__footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.test-centre-safety { border-left: 5px solid #2f7d50; }
.test-shift-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px dashed #ed9d70;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8ef, #f5f9fb);
}
.test-shift-card h2 { margin: 4px 0 7px; font-size: 1.22rem; }
.test-shift-card p,.test-shift-card small { margin: 0; color: #647286; }
.test-shift-card .test-centre-badge { margin-right: 6px; }
@media (max-width: 900px) {
  .test-centre-hero { grid-template-columns: 1fr; }
  .test-centre-diagnostics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .test-centre-create-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .test-centre-hero { padding: 24px 20px; border-radius: 24px; }
  .test-centre-diagnostics,.test-centre-stages { grid-template-columns: 1fr; }
  .test-centre-run__head,.test-shift-card { align-items: flex-start; flex-direction: column; }
  .test-centre-action-grid .btn { width: 100%; }
  .test-centre-run__footer { align-items: stretch; flex-direction: column; }
}
