@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=Pinyon+Script&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --cream:        #faf7f0;
  --cream-dark:   #f2ede1;
  --white:        #ffffff;
  --charcoal:     #231f20;
  --charcoal-60:  rgba(35,31,32,0.60);
  --charcoal-30:  rgba(35,31,32,0.30);
  --charcoal-20:  rgba(35,31,32,0.12);
  --charcoal-10:  rgba(35,31,32,0.08);
  --sage:         #89953b;
  --sage-mid:     #7a862f;
  --sage-dim:     rgba(137,149,59,0.10);
  --sage-border:  rgba(137,149,59,0.35);
  --border:       #e0d9cc;
  --border-light: #ede9df;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script:  'Pinyon Script', cursive;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 2px;
  --radius:    6px;
  --shadow-sm: 0 1px 8px rgba(35,31,32,0.07);
  --shadow:    0 4px 24px rgba(35,31,32,0.10);
  --shadow-lg: 0 8px 40px rgba(35,31,32,0.14);

  --nav-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Keyframe Animations ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes checkStamp {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(3deg); opacity: 1; }
  100% { transform: scale(1)  rotate(0deg);  opacity: 1; }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(137,149,59,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(137,149,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(137,149,59,0); }
}
@keyframes chapelFrameBreathe {
  0%, 100% {
    opacity: 0.74;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.58),
      0 0 0 1px rgba(69,111,115,0.12),
      0 14px 34px rgba(35,31,32,0.08);
  }
  50% {
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.82),
      0 0 0 1px rgba(194,169,104,0.28),
      0 18px 42px rgba(69,111,115,0.14);
  }
}
@keyframes chapelFrameDrift {
  from { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 0% 0%; }
  to   { background-position: 0% 12px, 100% -12px, 12px 100%, calc(100% - 12px) 100%, 100% 0%; }
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

:where(button, input, textarea, [role="button"], [role="checkbox"]):focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* Paper grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ─── App Shell ─────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ─── Screens ───────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeUp 280ms cubic-bezier(0.22,1,0.36,1) both;
}
.screen.active { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Header ────────────────────────────────────────────── */
.pc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.pc-header img.logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.pc-header .wordmark {
  flex: 1;
}
.pc-header .wordmark-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.pc-header .wordmark-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}
.slide-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--border);
  background: var(--border);
}
.slide-nav button {
  min-height: 38px;
  border: 0;
  background: rgba(255,255,255,0.82);
  color: var(--charcoal);
  font: 700 0.66rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.slide-nav button:disabled {
  color: var(--charcoal-30);
  cursor: default;
}
.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal-60);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  transition: color 180ms;
}
.back-btn:hover { color: var(--charcoal); }
.back-btn svg { width: 14px; height: 14px; }

/* ─── Welcome / Splash ──────────────────────────────────── */
#screen-splash {
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
  gap: 0;
}
#screen-splash::after {
  content: '';
  position: absolute;
  inset: 14px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(69,111,115,0.24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(194,169,104,0.54), transparent 36%) left top / 112px 1px no-repeat,
    linear-gradient(270deg, rgba(69,111,115,0.48), transparent 36%) right top / 112px 1px no-repeat,
    linear-gradient(90deg, rgba(69,111,115,0.42), transparent 36%) left bottom / 112px 1px no-repeat,
    linear-gradient(270deg, rgba(194,169,104,0.50), transparent 36%) right bottom / 112px 1px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%, rgba(69,111,115,0.08));
  animation:
    chapelFrameBreathe 4.8s ease-in-out infinite,
    chapelFrameDrift 8s ease-in-out infinite alternate;
}
.splash-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 22px;
  box-shadow: 0 2px 20px rgba(35,31,32,0.14);
  border: 1px solid var(--border);
  animation: scaleIn 560ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.splash-venue {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  animation: fadeUp 560ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 100ms both;
}
.splash-venue em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: 0;
  display: block;
  margin-top: -4px;
}
.splash-sub {
  font-size: 0.60rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--charcoal-30);
  margin-bottom: 28px;
  margin-top: 6px;
  animation: fadeUp 400ms ease-out 280ms both;
}
.splash-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 18px auto 28px;
  animation: fadeUp 400ms ease-out 380ms both;
}
.splash-divider::before, .splash-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-border));
}
.splash-divider::after {
  background: linear-gradient(to left, transparent, var(--sage-border));
}
.splash-divider-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.splash-divider-leaf {
  color: var(--sage);
  font-size: 0.75rem;
  opacity: 0.7;
}
.splash-divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.5;
}
.splash-prompt {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--charcoal-60);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  animation: fadeUp 500ms ease-out 480ms both;
}
.splash-clock {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  animation: fadeUp 400ms ease-out 700ms both;
}
.splash-clock-time {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.splash-clock-date {
  font-size: 0.58rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--charcoal-30);
  margin-top: 5px;
}
.splash-clock-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}
.splash-clock-detail div {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.58);
  padding: 9px 10px;
  min-height: 54px;
}
.splash-clock-detail .wide {
  grid-column: 1 / -1;
}
.splash-clock-detail span {
  display: block;
  font: 700 0.58rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-30);
}
.splash-clock-detail strong {
  display: block;
  margin-top: 3px;
  font: 600 0.9rem var(--font-body);
  line-height: 1.24;
  color: var(--charcoal);
}

/* ─── Role Cards ────────────────────────────────────────── */
.role-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0 24px;
}
.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 180ms, border-color 180ms, transform 140ms;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--sage);
  opacity: 0;
  transition: opacity 180ms;
}
.role-card:hover {
  border-color: var(--sage-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.role-card:hover::before { opacity: 1; }
.role-card:active { transform: translateY(0); }
.role-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage-mid);
}
.role-icon svg { width: 18px; height: 18px; }
.role-info { flex: 1; }
.role-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
}
.role-desc {
  font-size: 0.72rem;
  color: var(--charcoal-60);
  line-height: 1.4;
}
.role-chevron { color: var(--charcoal-30); }
.role-chevron svg { width: 16px; height: 16px; }

/* ─── Event Picker ──────────────────────────────────────── */
.screen-inner {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-label {
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--charcoal-30);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.section-label::before { display: none; }
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 180ms, border-color 180ms, transform 140ms;
  position: relative;
  overflow: hidden;
}
.event-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sage-dim);
  opacity: 0;
  transition: opacity 180ms;
  pointer-events: none;
}
.event-card:hover {
  border-color: var(--sage-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.event-card:hover::after { opacity: 1; }
.event-card:active { transform: translateY(0); }
.event-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.event-venue {
  font-size: 0.72rem;
  color: var(--charcoal-60);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.event-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.flag-chip {
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--sage-dim);
  color: var(--sage-mid);
  border: 1px solid var(--sage-border);
}

/* ─── Event Banner (shown on duties/inventory) ──────────── */
.event-banner { animation: slideDown 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.event-banner {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.event-banner::before, .event-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage), transparent);
  opacity: 0.4;
}
.event-banner::before { top: 0; }
.event-banner::after  { bottom: 0; }
.event-banner-left {
  padding: 14px 0;
}
.event-banner-left .banner-label {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 3px;
}
.event-banner-left .banner-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.event-banner-left .banner-venue {
  font-size: 0.68rem;
  color: rgba(250,247,240,0.72);
  margin-top: 2px;
}
.event-banner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.banner-headcount, .banner-style {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(250,247,240,0.78);
}
.banner-headcount span, .banner-style span {
  color: var(--cream);
  font-weight: 500;
}

/* ─── Bottom Tab Nav ────────────────────────────────────── */
.bottom-nav {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding-bottom: var(--safe-bottom);
}
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--charcoal-30);
  font-family: var(--font-body);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: color 180ms;
  position: relative;
}
.nav-tab::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--sage);
  opacity: 0;
  transition: opacity 180ms;
}
.nav-tab.active { color: var(--charcoal); }
.nav-tab.active::before { opacity: 1; }
.nav-tab svg { width: 20px; height: 20px; }

/* ─── Duties Module ─────────────────────────────────────── */
.phase-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background: var(--white);
}
.phase-tab {
  flex: 1;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-30);
  padding: 12px 4px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 180ms, border-color 180ms;
}
.phase-tab.active {
  color: var(--charcoal);
  border-bottom-color: var(--sage);
}
.duties-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.duty-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: background 140ms;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.duty-item:hover { background: var(--cream-dark); }
.duty-item.checked { opacity: 0.52; }

/* Custom Checkbox */
.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--charcoal-30);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color 200ms, background 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.check-box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--white);
  border-bottom: 1.5px solid var(--white);
  transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1);
  display: block;
}
.duty-item.checked .check-box {
  background: var(--sage);
  border-color: var(--sage);
  animation: pulseRing 500ms ease-out both;
}
.duty-item.checked .check-box::after {
  animation: checkStamp 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform: rotate(-45deg) translateY(-1px) scale(1);
}
.duty-text {
  font-size: 0.88rem;
  line-height: 1.45;
  transition: text-decoration 200ms;
  flex: 1;
}
.duty-item.checked .duty-text {
  text-decoration: line-through;
  color: var(--charcoal-60);
}
.phase-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 6px;
  background: var(--cream);
}
.progress-bar-wrap {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 2px;
  transition: width 400ms cubic-bezier(0.34,1.26,0.64,1);
}
.progress-label {
  font-size: 0.65rem;
  color: var(--charcoal-60);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 500;
}
.duties-ornament {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--sage-border);
  letter-spacing: 0.3em;
  padding: 20px 0 8px;
}
.all-done-msg {
  text-align: center;
  padding: 40px 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.all-done-msg.show { display: flex; }
.all-done-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-dim);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.all-done-msg h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
}
.all-done-msg p {
  font-size: 0.78rem;
  color: var(--charcoal-60);
}

/* ─── Inventory / Where Is It ───────────────────────────── */
.inventory-search-wrap {
  padding: 14px 24px 0;
  background: var(--white);
}
.inventory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--charcoal-30);
  padding-bottom: 8px;
  transition: border-color 200ms;
}
.inventory-search:focus-within { border-color: var(--sage); }
.inventory-search svg { color: var(--charcoal-30); flex-shrink: 0; width: 17px; height: 17px; }
.inventory-search input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  padding: 0;
}
.inventory-search input::placeholder { color: var(--charcoal-30); }
.category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: none;
  color: var(--charcoal-60);
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms, border-color 160ms, color 160ms;
  font-family: var(--font-body);
}
.cat-chip.active, .cat-chip:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}
.inventory-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inventory-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: box-shadow 180ms, border-color 180ms;
}
.inventory-item:hover {
  border-color: var(--sage-border);
  box-shadow: var(--shadow-sm);
}
.inv-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.inv-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}
.inv-cat {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-mid);
  padding: 2px 7px;
  background: var(--sage-dim);
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.inv-location {
  font-size: 0.75rem;
  color: var(--charcoal-60);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.inv-location svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; color: var(--sage-mid); }
.inv-qty {
  font-size: 0.68rem;
  color: var(--charcoal-30);
}
.inv-notes {
  font-size: 0.72rem;
  color: var(--charcoal-60);
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 7px;
  line-height: 1.5;
  font-style: italic;
}
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--charcoal-60);
}
.empty-state .es-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--charcoal-10);
}
.empty-state p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}

/* ─── Event Notes Banner (if event has notes) ───────────── */
.event-note-strip {
  background: var(--sage-dim);
  border-left: 3px solid var(--sage);
  padding: 8px 14px;
  margin: 12px 20px 4px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--charcoal);
}
.event-note-strip strong {
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
  color: var(--sage-mid);
}

/* ─── Misc Utilities ────────────────────────────────────── */
.mt-auto { margin-top: auto; }
.today-date-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-30);
  text-align: center;
  padding: 8px 0 0;
}

/* ─── Splash Two-Path ───────────────────────────────────── */
.splash-path-card.primary   { animation: fadeUp 420ms ease-out 580ms both; }
.splash-path-card.secondary { animation: fadeUp 420ms ease-out 660ms both; }

.splash-path-card {
  width: calc(100% - 48px);
  margin: 0 24px 10px;
  border-radius: 2px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  text-align: left;
  transition: box-shadow 200ms, border-color 200ms, transform 140ms;
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--border-light);
  position: relative;
}
.splash-path-card:hover {
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--sage-border), var(--shadow);
  border-color: var(--sage-border);
  transform: translateY(-1px);
}
.splash-path-card:active { transform: translateY(0); }
.splash-path-card.secondary {
  background: transparent;
  border-color: var(--border-light);
  box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px var(--border-light);
}
.splash-path-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--sage-mid);
}
.splash-path-icon svg { width: 19px; height: 19px; }
.splash-path-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500; line-height: 1.2; margin-bottom: 2px;
}
.splash-path-sub { font-size: 0.72rem; color: var(--charcoal-60); }

/* ─── Employee Grid ─────────────────────────────────────── */
.employee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.employee-name-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 160ms, border-color 160ms, transform 130ms;
}
.employee-name-card:hover { box-shadow: var(--shadow-sm); border-color: var(--sage-border); transform: translateY(-1px); }
.employee-name-card:active { transform: translateY(0); }
.emp-first {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; line-height: 1.2;
}
.emp-last { font-size: 0.72rem; color: var(--charcoal-60); }
.emp-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sage-dim); color: var(--sage-mid);
  border: 1px solid var(--sage-border); border-radius: 20px;
  padding: 1px 5px;
}

/* ─── Small Event Banner ────────────────────────────────── */
.event-banner-small {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  flex-wrap: wrap;
}
.banner-small-label { color: var(--charcoal-30); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.62rem; }
.banner-small-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--charcoal); }
.banner-small-venue { color: var(--charcoal-60); }

/* ─── Worker View — Tables Display ─────────────────────── */
.assignment-section { padding: 16px 20px 4px; }
.worker-tables-display {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
}
.worker-table-badge {
  width: 58px; min-height: 74px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: 1px;
  border: 1px solid var(--charcoal-30);
  box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px var(--border), 2px 3px 8px rgba(35,31,32,0.10);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  position: relative;
}
.worker-table-badge::before {
  content: 'TABLE';
  font-family: var(--font-body);
  font-size: 0.36rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sage-mid);
  display: block;
}
.table-badge-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--charcoal);
}
.table-chair-note {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-mid);
  line-height: 1;
}

/* ─── Admin: Intro Strip ────────────────────────────────── */
.admin-intro {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: var(--charcoal);
  color: var(--cream);
}
.admin-intro-icon {
  width: 34px; height: 34px;
  border-radius: 50%; background: rgba(137,149,59,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  flex-shrink: 0;
}
.admin-intro-icon svg { width: 16px; height: 16px; }
.admin-intro-name { font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
.admin-intro-sub { font-size: 0.65rem; letter-spacing: 0.10em; text-transform: uppercase; color: var(--sage); }

/* ─── Admin Event Card (with check indicator) ───────────── */
.admin-event-card {
  display: flex; align-items: flex-start; gap: 12px;
}
.admin-event-card.selected {
  border-color: var(--sage);
  background: var(--sage-dim);
}
.admin-event-select-indicator {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  color: var(--sage);
  transition: background 180ms, border-color 180ms;
}
.admin-event-card.selected .admin-event-select-indicator {
  background: var(--sage); border-color: var(--sage); color: var(--white);
}
.admin-event-select-indicator svg { width: 13px; height: 13px; }
.admin-event-info { flex: 1; }

/* ─── Admin Toggle ──────────────────────────────────────── */
.admin-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.toggle-title { font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.toggle-sub { font-size: 0.7rem; color: var(--charcoal-60); }
.toggle-btn {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--charcoal-20); border: none; cursor: pointer;
  position: relative; transition: background 200ms; flex-shrink: 0;
}
.toggle-btn.on { background: var(--sage); }
.toggle-thumb {
  position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1);
}
.toggle-btn.on .toggle-thumb { transform: translateX(20px); }

/* ─── Admin Notes ───────────────────────────────────────── */
.admin-notes-wrap { margin-top: 6px; }
.admin-notes-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; font-family: var(--font-body); font-size: 0.85rem;
  color: var(--charcoal); background: var(--white); resize: vertical;
  min-height: 72px; outline: none; transition: border-color 200ms;
  line-height: 1.5;
}
.admin-notes-input:focus { border-color: var(--sage); }

/* ─── Buttons ───────────────────────────────────────────── */
.primary-btn {
  width: 100%; padding: 13px;
  background: var(--charcoal); color: var(--cream);
  border: 1.5px solid var(--charcoal); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; cursor: pointer;
  transition: background 180ms, transform 120ms;
}
.primary-btn:hover { background: #3a3536; }
.primary-btn:active { transform: scale(0.98); }
.secondary-btn {
  padding: 11px 16px;
  background: none; color: var(--charcoal-60);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; cursor: pointer;
  transition: color 160ms, border-color 160ms;
}
.secondary-btn:hover { color: var(--charcoal); border-color: var(--charcoal-30); }

/* ─── Admin Sub-Nav ─────────────────────────────────────── */
.admin-subnav {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--white); padding: 0 20px;
}
.admin-subnav-btn {
  flex: 1; font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--charcoal-30); padding: 11px 4px; text-align: center;
  cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 180ms, border-color 180ms;
}
.admin-subnav-btn.active { color: var(--charcoal); border-bottom-color: var(--sage); }

/* ─── Admin Menu (hamburger drop-down) ──────────────────── */
.admin-subnav.admin-menu {
  position: relative;
  align-items: center;
  padding: 0 8px 0 20px;
  min-height: 48px;
  z-index: 40;
}
/* Lift the whole bar (it forms a stacking context via backdrop-filter)
   above sticky toolbars below it so the drop-down isn't trapped under them. */
.admin-subnav.admin-menu.open { z-index: 300; }
.admin-menu-current {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal);
}
.admin-menu-toggle {
  width: 44px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  border-radius: 9px;
  transition: background 150ms;
}
.admin-menu-toggle:hover { background: rgba(35,31,32,0.05); }
.admin-menu-toggle:active { background: rgba(35,31,32,0.09); }
.ham-lines { position: relative; display: block; width: 21px; height: 14px; }
.ham-lines i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--charcoal);
  transition: transform 260ms cubic-bezier(.25,.46,.45,.94), opacity 160ms;
}
.ham-lines i:nth-child(1) { top: 0; }
.ham-lines i:nth-child(2) { top: 6px; }
.ham-lines i:nth-child(3) { top: 12px; }
.admin-menu.open .ham-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.admin-menu.open .ham-lines i:nth-child(2) { opacity: 0; }
.admin-menu.open .ham-lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.admin-menu-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(35,31,32,0.14);
  overflow: hidden;
  max-height: 0; opacity: 0;
  transform: translateY(-6px);
  transition: max-height 280ms cubic-bezier(.25,.46,.45,.94),
              opacity 200ms ease, transform 280ms cubic-bezier(.25,.46,.45,.94);
  pointer-events: none;
  z-index: 160;
}
.admin-menu.open .admin-menu-panel {
  max-height: 440px; opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.admin-menu-item {
  display: block; width: 100%; text-align: left;
  font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--charcoal);
  padding: 15px 22px; border: none; background: none; cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.admin-menu-item:hover { background: var(--cream); }
.admin-menu-item.active {
  color: var(--lake); border-left-color: var(--lake); font-weight: 700;
  background: rgba(69,111,115,0.05);
}
.admin-menu-sep { height: 1px; background: var(--border); margin: 6px 14px; }
.admin-menu-signout { color: var(--charcoal-30); }
.admin-menu-signout:hover { color: var(--charcoal); }

/* ─── Admin Employee List ───────────────────────────────── */
.admin-emp-list { padding: 8px 0; }
.admin-emp-row { border-bottom: 1px solid var(--border-light); }
.admin-emp-row-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; cursor: pointer;
  transition: background 140ms;
}
.admin-emp-row-head:hover { background: var(--cream-dark); }
.admin-emp-names { flex: 1; }
.admin-emp-first {
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  margin-right: 5px;
}
.admin-emp-last { font-size: 0.8rem; color: var(--charcoal-60); }
.admin-emp-summary { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.summary-tag {
  font-size: 0.60rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 20px;
  background: var(--sage-dim); color: var(--sage-mid);
  border: 1px solid var(--sage-border);
  white-space: nowrap;
}
.summary-tag.tables { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.summary-tag.empty { background: transparent; color: var(--charcoal-30); border-color: var(--border); }
.admin-emp-chevron { color: var(--charcoal-30); flex-shrink: 0; }
.admin-emp-chevron svg { width: 16px; height: 16px; }

/* ─── Station-tile crew row (Toph: Option 2) ────────────── */
.admin-emp-row-head { gap: 13px; }
.emp-tile {
  flex: none; width: 52px; height: 44px; border-radius: 9px;
  background: rgba(69,111,115,0.08);
  border: 1px solid rgba(69,111,115,0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.emp-tile-n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--lake, #456f73); line-height: 1; white-space: nowrap;
}
.emp-tile-c {
  font-size: 0.48rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--charcoal-30); margin-top: 2px;
}
.emp-tile.empty { background: transparent; border-style: dashed; border-color: var(--border); }
.emp-tile-dash { color: var(--charcoal-30); font-size: 1.1rem; line-height: 1; }
.admin-emp-names { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-emp-first { font-size: 1.22rem; font-weight: 600; }
.admin-emp-last { font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; color: rgba(35,31,32,0.45); }
.emp-status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--sage); }
.emp-status-dot.off { background: rgba(35,31,32,0.14); }
.emp-status-dot.late { background: var(--gold-soft, #c2a968); }
.panel-status { font-size: 0.72rem; color: var(--charcoal-60); padding: 0 2px 12px; font-weight: 500; }
.panel-status.on { color: var(--sage-mid); }

/* ─── First-run coachmark walkthrough ───────────────────── */
.coach-overlay { position: fixed; inset: 0; z-index: 9300; }
.coach-spot {
  position: fixed; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(35,31,32,0.62);
  border: 2px solid var(--cream);
  transition: left .26s ease, top .26s ease, width .26s ease, height .26s ease;
  pointer-events: none;
}
.coach-tip {
  position: fixed; z-index: 9301;
  background: var(--white); border-radius: 14px;
  padding: 15px 16px 13px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.30);
  animation: coachPop 220ms cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes coachPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.coach-step { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lake); }
.coach-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 3px 0 5px; line-height: 1.1; }
.coach-body { font-size: 0.8rem; color: var(--charcoal-60); line-height: 1.5; }
.coach-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.coach-dots { display: flex; gap: 5px; }
.coach-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(35,31,32,0.14); transition: width .2s; }
.coach-dots i.on { background: var(--lake); width: 16px; border-radius: 4px; }
.coach-skip { background: none; border: none; font-family: var(--font-body); font-size: 0.74rem; color: rgba(35,31,32,0.45); cursor: pointer; padding: 4px; }
.coach-next { background: var(--lake); color: var(--white); border: none; font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; padding: 9px 16px; border-radius: 9px; cursor: pointer; }

/* ─── Admin Employee Expansion Panel ────────────────────── */
.admin-emp-panel {
  background: var(--cream);
  border-top: 1px solid var(--border-light);
  padding: 4px 0 8px;
}
.panel-section { padding: 12px 20px 6px; }
.panel-section-label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--charcoal-60); margin-bottom: 8px;
}
.admin-duty-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 130ms;
}
.admin-duty-item:hover { background: var(--cream-dark); }
.admin-duty-item.checked { opacity: 0.75; }
.admin-duty-item.checked .check-box { background: var(--sage); border-color: var(--sage); }
.admin-duty-item.checked .check-box::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.admin-duty-item .duty-text { font-size: 0.85rem; }
.admin-duty-item.checked .duty-text { text-decoration: line-through; color: var(--charcoal-60); }

/* ─── Table Number Grid ─────────────────────────────────── */
.table-num-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.table-num-cell {
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; color: var(--charcoal-60);
  transition: background 150ms, border-color 150ms, color 150ms, transform 100ms;
  -webkit-tap-highlight-color: transparent;
}
.table-num-cell:hover { border-color: var(--sage-border); color: var(--charcoal); transform: scale(1.05); }
.table-num-cell.selected {
  background: var(--sage); border-color: var(--sage);
  color: var(--white); transform: scale(1.05);
}

/* ─── Admin Employee Note Input ─────────────────────────── */
.admin-emp-note-input {
  width: 100%; border: none; border-bottom: 1.5px solid var(--border);
  background: none; font-family: var(--font-body); font-size: 0.85rem;
  color: var(--charcoal); padding: 6px 0; outline: none;
  transition: border-color 180ms;
}
.admin-emp-note-input:focus { border-color: var(--sage); }
.admin-emp-note-input::placeholder { color: var(--charcoal-30); }

/* ─── Admin Back to Home ────────────────────────────────── */
.admin-back-splash { padding: 16px 20px 32px; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* --- Visual refresh ------------------------------------------------------ */
:root {
  --lake:        #456f73;
  --lake-dim:    rgba(69,111,115,0.12);
  --clay:        #a66b55;
  --clay-dim:    rgba(166,107,85,0.12);
  --gold-soft:   #c2a968;
  --ink-shadow:  0 18px 56px rgba(35,31,32,0.18);
}

body {
  background:
    linear-gradient(135deg, rgba(69,111,115,0.18), transparent 34%),
    linear-gradient(210deg, rgba(166,107,85,0.12), transparent 42%),
    linear-gradient(180deg, #f7f3ea 0%, #ece6d8 100%);
}

#app {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62), transparent 26%),
    var(--cream);
  box-shadow: var(--ink-shadow);
  isolation: isolate;
}

.screen {
  position: relative;
  z-index: 1;
}

.pc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(35,31,32,0.10);
  box-shadow: 0 8px 24px rgba(35,31,32,0.05);
}

.pc-header img.logo {
  background: var(--charcoal);
  border: 1px solid rgba(194,169,104,0.38);
  box-shadow: 0 4px 14px rgba(35,31,32,0.14);
}

#screen-splash {
  justify-content: flex-start;
  min-height: 100dvh;
  padding: 34px 28px 24px;
  overflow: hidden;
}

#screen-splash::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(35,31,32,0.08), transparent 72%),
    repeating-linear-gradient(90deg, rgba(137,149,59,0.08) 0 1px, transparent 1px 30px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.splash-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  background: var(--charcoal);
  border: 1px solid rgba(194,169,104,0.46);
  box-shadow: 0 14px 34px rgba(35,31,32,0.22);
}

.splash-venue {
  max-width: 330px;
  color: rgba(35,31,32,0.88);
  font-size: 2.28rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.72);
}

.splash-venue em {
  color: var(--lake);
  font-size: 3.35rem;
  margin-top: -8px;
}

.splash-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 11px;
  margin: 8px 0 22px;
  color: rgba(35,31,32,0.58);
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(35,31,32,0.08);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(35,31,32,0.05);
}

.splash-divider {
  max-width: 228px;
  margin-bottom: 20px;
}

.splash-divider-leaf {
  color: var(--clay);
}

.splash-prompt {
  margin-bottom: 18px;
  color: rgba(35,31,32,0.72);
  font-size: 1.72rem;
}

.splash-path-card {
  width: 100%;
  max-width: 358px;
  min-height: 76px;
  margin: 0 auto 10px;
  border-radius: 8px;
  border-color: rgba(35,31,32,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82)),
    var(--white);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.72),
    0 12px 32px rgba(35,31,32,0.10);
}

.splash-path-card::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lake);
}

.splash-path-card.primary::before {
  background: var(--sage);
}

.splash-path-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.78),
    0 16px 34px rgba(35,31,32,0.14);
}

.splash-path-card.secondary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.46)),
    rgba(69,111,115,0.05);
}

.splash-path-icon,
.role-icon {
  background: linear-gradient(135deg, var(--sage-dim), var(--lake-dim));
  color: var(--lake);
  border: 1px solid rgba(69,111,115,0.14);
}

.splash-path-title,
.role-name,
.event-name,
.emp-first,
.inv-name {
  color: rgba(35,31,32,0.92);
}

.today-date-tag {
  margin-top: auto;
  padding-top: 16px;
  color: rgba(35,31,32,0.46);
}

.screen-inner {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), transparent 22%),
    transparent;
}

.role-card,
.event-card,
.employee-name-card,
.inventory-item,
.admin-event-card {
  border-color: rgba(35,31,32,0.11);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 8px 24px rgba(35,31,32,0.055);
}

.role-card:hover,
.event-card:hover,
.employee-name-card:hover,
.inventory-item:hover,
.admin-event-card:hover {
  border-color: rgba(69,111,115,0.28);
  box-shadow: 0 14px 34px rgba(35,31,32,0.11);
}

.employee-name-card {
  min-height: 74px;
  border-radius: 8px;
}

.emp-badge,
.flag-chip,
.summary-tag,
.inv-cat {
  background: linear-gradient(135deg, var(--sage-dim), var(--lake-dim));
  color: var(--lake);
  border-color: rgba(69,111,115,0.20);
}

.event-banner {
  background:
    linear-gradient(135deg, rgba(137,149,59,0.20), transparent 42%),
    linear-gradient(180deg, #282426 0%, #181516 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

.event-banner-left .banner-label,
.banner-style span[style] {
  color: var(--gold-soft) !important;
}

.bottom-nav {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 28px rgba(35,31,32,0.08);
}

.nav-tab.active::before,
.phase-tab.active,
.admin-subnav-btn.active {
  border-bottom-color: var(--lake);
}

.nav-tab.active,
.phase-tab.active,
.admin-subnav-btn.active {
  color: var(--lake);
}

.duty-item,
.admin-duty-item {
  border: 1px solid transparent;
}

.duty-item:hover,
.admin-duty-item:hover {
  background: rgba(255,255,255,0.68);
  border-color: rgba(35,31,32,0.08);
}

.check-box {
  border-radius: 5px;
}

.duty-item.checked .check-box,
.admin-duty-item.checked .check-box,
.table-num-cell.selected,
.progress-bar-fill {
  background: var(--lake);
  border-color: var(--lake);
}

.inventory-search-wrap,
.category-chips,
.phase-tabs,
.admin-subnav {
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(14px);
}

.event-banner-small {
  background:
    linear-gradient(135deg, rgba(69,111,115,0.10), transparent 52%),
    rgba(255,255,255,0.62);
  border-top: 1px solid rgba(255,255,255,0.48);
  border-bottom-color: rgba(35,31,32,0.10);
}

.banner-small-label {
  color: var(--lake);
}

.admin-intro {
  background:
    linear-gradient(135deg, rgba(194,169,104,0.16), transparent 50%),
    linear-gradient(180deg, #282426 0%, #181516 100%);
}

.admin-intro-icon {
  background: rgba(194,169,104,0.16);
  color: var(--gold-soft);
  border: 1px solid rgba(194,169,104,0.24);
}

.admin-intro-sub {
  color: var(--gold-soft);
}

.primary-btn {
  background: var(--lake);
  border-color: var(--lake);
  box-shadow: 0 10px 22px rgba(69,111,115,0.22);
}

.primary-btn:hover {
  background: #3d6266;
}

.secondary-btn {
  background: rgba(255,255,255,0.54);
}

.inventory-search {
  border-bottom-color: rgba(69,111,115,0.32);
}

.cat-chip.active,
.cat-chip:hover,
.summary-tag.tables {
  background: var(--lake);
  border-color: var(--lake);
}

@media (min-width: 700px) {
  #app {
    margin-block: 18px;
    min-height: calc(100dvh - 36px);
    border-radius: 18px;
    overflow: hidden;
  }
}

@media (max-height: 680px) {
  #screen-splash {
    padding-top: 22px;
  }

  .splash-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }

  .splash-venue {
    font-size: 2rem;
  }

  .splash-venue em {
    font-size: 2.86rem;
  }

  .splash-sub,
  .splash-divider,
  .splash-prompt {
    margin-bottom: 14px;
  }

  .splash-path-card {
    min-height: 68px;
    padding-block: 12px;
  }
}

/* --- Old visual variant for side-by-side comparison ---------------------- */
body.theme-old {
  background: var(--cream);
}

body.theme-old #app {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.theme-old .pc-header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: var(--border);
}

body.theme-old .pc-header img.logo {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.theme-old #screen-splash {
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
  gap: 0;
  overflow: visible;
}

body.theme-old #screen-splash::before {
  display: none;
}

body.theme-old .splash-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 22px;
  background: transparent;
  box-shadow: 0 2px 20px rgba(35,31,32,0.14);
  border: 1px solid var(--border);
}

body.theme-old .splash-venue {
  max-width: none;
  font-size: 2rem;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  text-shadow: none;
  margin-bottom: 4px;
}

body.theme-old .splash-venue em {
  font-size: 3.2rem;
  color: var(--charcoal);
  margin-top: -4px;
}

body.theme-old .splash-sub {
  display: block;
  min-height: 0;
  padding: 0;
  margin: 6px 0 28px;
  color: var(--charcoal-30);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.theme-old .splash-divider {
  max-width: 280px;
  margin: 0 auto 28px;
}

body.theme-old .splash-divider-leaf {
  color: var(--sage);
}

body.theme-old .splash-prompt {
  font-size: 2rem;
  color: var(--charcoal-60);
  margin-bottom: 28px;
}

body.theme-old .splash-path-card {
  width: calc(100% - 48px);
  max-width: none;
  min-height: 0;
  margin: 0 24px 10px;
  border-radius: 2px;
  padding: 16px 18px;
  border-color: var(--border);
  background: var(--white);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--border-light);
}

body.theme-old .splash-path-card::before {
  display: none;
}

body.theme-old .splash-path-card:hover {
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--sage-border), var(--shadow);
  border-color: var(--sage-border);
}

body.theme-old .splash-path-card.secondary {
  background: transparent;
  border-color: var(--border-light);
  box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px var(--border-light);
}

body.theme-old .splash-path-icon,
body.theme-old .role-icon {
  background: var(--sage-dim);
  color: var(--sage-mid);
  border: 0;
}

body.theme-old .today-date-tag {
  margin-top: 0;
  padding: 8px 0 0;
  color: var(--charcoal-30);
}

body.theme-old .event-banner-small {
  background: var(--cream-dark);
  border-top: 0;
  border-bottom-color: var(--border);
}

body.theme-old .banner-small-label {
  color: var(--charcoal-30);
}

/* --- New variant: liquid glass layer ------------------------------------- */
body.theme-new {
  background:
    linear-gradient(130deg, rgba(69,111,115,0.26), transparent 36%),
    linear-gradient(220deg, rgba(194,169,104,0.16), transparent 45%),
    linear-gradient(180deg, #f8f5ed 0%, #e6dfcf 100%);
}

body.theme-new #app {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.68), rgba(255,255,255,0.18) 42%, rgba(69,111,115,0.08)),
    rgba(250,247,240,0.66);
  backdrop-filter: blur(16px) saturate(1.08);
}

body.theme-new #screen-splash::before {
  height: 58%;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.54), transparent 32%),
    linear-gradient(245deg, rgba(69,111,115,0.14), transparent 46%),
    repeating-linear-gradient(90deg, rgba(137,149,59,0.09) 0 1px, transparent 1px 30px);
}

body.theme-new .pc-header,
body.theme-new .bottom-nav,
body.theme-new .phase-tabs,
body.theme-new .admin-subnav,
body.theme-new .inventory-search-wrap,
body.theme-new .category-chips,
body.theme-new .event-banner-small {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.36)),
    rgba(250,247,240,0.56);
  border-color: rgba(255,255,255,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    inset 0 -1px 0 rgba(35,31,32,0.06),
    0 10px 30px rgba(35,31,32,0.08);
  backdrop-filter: blur(16px) saturate(1.14);
}

body.theme-new .splash-sub,
body.theme-new .splash-clock-detail div,
body.theme-new .splash-path-card,
body.theme-new .role-card,
body.theme-new .event-card,
body.theme-new .employee-name-card,
body.theme-new .inventory-item,
body.theme-new .admin-event-card,
body.theme-new .admin-emp-panel,
body.theme-new .admin-notes-input,
body.theme-new .secondary-btn {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.34) 56%, rgba(255,255,255,0.62)),
    rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.64);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(35,31,32,0.06),
    0 14px 34px rgba(35,31,32,0.10);
  backdrop-filter: blur(12px) saturate(1.14);
}

body.theme-new .splash-path-card,
body.theme-new .role-card,
body.theme-new .event-card,
body.theme-new .employee-name-card,
body.theme-new .inventory-item,
body.theme-new .admin-event-card {
  position: relative;
  overflow: hidden;
}

body.theme-new .splash-path-card::after,
body.theme-new .role-card::after,
body.theme-new .event-card::before,
body.theme-new .employee-name-card::before,
body.theme-new .inventory-item::before,
body.theme-new .admin-event-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.76), transparent 22%),
    linear-gradient(300deg, rgba(69,111,115,0.10), transparent 38%);
  opacity: 0.72;
  mix-blend-mode: screen;
}

body.theme-new .splash-path-card:hover,
body.theme-new .role-card:hover,
body.theme-new .event-card:hover,
body.theme-new .employee-name-card:hover,
body.theme-new .inventory-item:hover,
body.theme-new .admin-event-card:hover {
  border-color: rgba(255,255,255,0.82);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    inset 0 -1px 0 rgba(35,31,32,0.06),
    0 18px 42px rgba(35,31,32,0.15);
}

body.theme-new .splash-path-card > *,
body.theme-new .role-card > *,
body.theme-new .event-card > *,
body.theme-new .employee-name-card > *,
body.theme-new .inventory-item > *,
body.theme-new .admin-event-card > * {
  position: relative;
  z-index: 1;
}

body.theme-new .splash-logo,
body.theme-new .pc-header img.logo {
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 16px 36px rgba(35,31,32,0.24);
}

body.theme-new .splash-path-icon,
body.theme-new .role-icon,
body.theme-new .admin-intro-icon,
body.theme-new .all-done-icon {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.78), rgba(69,111,115,0.12)),
    rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 8px 18px rgba(35,31,32,0.08);
  backdrop-filter: blur(8px) saturate(1.16);
}

body.theme-new .event-banner,
body.theme-new .admin-intro {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11), transparent 26%),
    linear-gradient(245deg, rgba(194,169,104,0.18), transparent 44%),
    rgba(28,25,26,0.88);
  border-block: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 14px 36px rgba(35,31,32,0.16);
  backdrop-filter: blur(12px) saturate(1.14);
}

body.theme-new .primary-btn,
body.theme-new .cat-chip.active,
body.theme-new .cat-chip:hover,
body.theme-new .summary-tag.tables,
body.theme-new .table-num-cell.selected,
body.theme-new .duty-item.checked .check-box,
body.theme-new .admin-duty-item.checked .check-box {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), transparent 34%),
    var(--lake);
  border-color: rgba(255,255,255,0.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 10px 24px rgba(69,111,115,0.22);
}

body.theme-new .flag-chip,
body.theme-new .summary-tag,
body.theme-new .emp-badge,
body.theme-new .inv-cat {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(69,111,115,0.13)),
    rgba(255,255,255,0.34);
  border-color: rgba(255,255,255,0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

/* --- Feature expansion --------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-label, .panel-section-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}
.form-input, .form-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--white);
  color: var(--charcoal);
  font: 400 16px var(--font-body);
  outline: none;
}
.form-textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.form-input:focus, .form-textarea:focus { border-color: var(--sage); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-edit-section { display: flex; flex-direction: column; gap: 8px; }
.edit-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) 1fr 44px;
  gap: 8px;
  align-items: center;
}
.vendor-edit-row { grid-template-columns: 1fr 0.8fr minmax(92px, 0.45fr) 44px; }
.chair-all-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.chair-all-row label {
  display: grid;
  gap: 4px;
}
.chair-all-row span,
.chair-table-cell span {
  font-size: 0.68rem;
  color: var(--charcoal-60);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chair-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.chair-table-cell {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.58);
  padding: 8px;
}
.chair-table-cell label {
  display: grid;
  gap: 4px;
}
.chair-table-cell input {
  min-height: 38px;
  text-align: center;
}
.mini-remove, .template-delete {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.64);
  color: var(--charcoal-60);
  font: 600 0.72rem var(--font-body);
}
.section-toggle {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font: 600 0.75rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.template-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.template-card {
  display: grid;
  grid-template-columns: 1fr auto 44px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.template-name { font-family: var(--font-display); font-size: 1rem; }
.template-date { font-size: 0.68rem; color: var(--charcoal-60); }
.template-save { display: grid; gap: 8px; margin-top: 10px; }
.toast {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--white);
  text-align: center;
  font-size: 0.78rem;
}
.event-brief-wrap { display: flex; flex-direction: column; }
.event-banner { cursor: pointer; }
.banner-chev svg { width: 16px; height: 16px; color: var(--sage); }
.brief-card {
  margin: 10px 20px 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.brief-couple {
  font: italic 1.4rem var(--font-display);
  color: var(--sage-mid);
  margin-bottom: 10px;
}
.brief-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
}
.brief-row span {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}
.brief-row strong { text-align: right; font-size: 0.86rem; }
.dress-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sage-dim);
  color: var(--sage-mid);
  border: 1px solid var(--sage-border);
}
.brief-note { margin: 10px 0 0; }
.ready-badge, .confirm-block.confirmed, .vendor-arrived, .confirm-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sage-mid);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ready-badge svg, .confirm-block svg, .vendor-arrived svg, .confirm-mini svg { width: 14px; height: 14px; }
.confirm-block { padding: 16px 20px 4px; }
.confirm-block .primary-btn { animation: scaleIn 360ms ease-out both; }
.confirm-summary {
  padding: 12px 20px;
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--border-light);
}
.confirm-summary-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.confirm-bar {
  height: 8px;
  border: 1px solid var(--sage-border);
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}
.confirm-bar span { display: block; height: 100%; background: var(--sage); }
.confirm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--charcoal-20);
  display: inline-block;
}
.timeline-list, .vendor-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.timeline-item {
  display: grid;
  grid-template-columns: 18px 86px 1fr;
  gap: 8px;
  align-items: center;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: -10px;
  bottom: -10px;
  width: 1px;
  background: var(--sage-border);
}
.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--sage);
  position: relative;
  z-index: 1;
}
.timeline-time { font: italic 1rem var(--font-display); color: var(--charcoal-60); }
.timeline-label { font-size: 0.82rem; color: var(--charcoal-60); }
.timeline-item.past { opacity: 0.55; }
.timeline-item.past .timeline-time { text-decoration: line-through; }
.timeline-item.current .timeline-dot { background: var(--sage); }
.timeline-item.current .timeline-time, .timeline-item.current .timeline-label { color: var(--sage-mid); font-weight: 700; }
.now-pill {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--white);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}
.vendor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.vendor-name { font-weight: 700; font-size: 0.88rem; }
.vendor-role, .vendor-time { color: var(--charcoal-60); font-size: 0.72rem; }
.vendor-action { grid-column: 1 / -1; }
.meal-note-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.meal-note-row label { font-size: 0.76rem; color: var(--charcoal-60); }
.table-meal-note {
  max-width: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.32rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-30);
}
.guest-results {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guest-search input { font-size: 1.05rem; }
.guest-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.guest-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.guest-name { font: 500 1.1rem var(--font-display); }
.guest-meal {
  color: var(--sage-mid);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guest-table {
  font: 500 2rem var(--font-display);
  line-height: 1;
  text-align: center;
}
.guest-table span {
  display: block;
  font: 700 0.58rem var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}
.guest-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.guest-flags span {
  background: #c0392b;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guest-card button { margin-top: 10px; }
.guest-card button.seated { color: var(--sage-mid); border-color: var(--sage-border); }
.admin-print-wrap { padding: 12px 20px 0; }
.admin-print-wrap {
  display: grid;
  gap: 8px;
}
.admin-print-wrap svg { width: 16px; height: 16px; vertical-align: text-bottom; margin-right: 6px; }
.print-sheet { display: none; }

.admin-tool-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.55);
}
.staffing-coverage {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.42);
}
.staffing-title {
  font: 700 0.68rem var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-60);
  margin-bottom: 8px;
}
.staffing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.staffing-item {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.staffing-item span {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--charcoal-60);
}
.staffing-item strong {
  font: 700 1rem var(--font-display);
  white-space: nowrap;
}
.staffing-item em,
.duty-cadence {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--sage-border);
  color: var(--sage-mid);
  border-radius: 999px;
  padding: 2px 7px;
  font: 700 0.58rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}
.staffing-item em {
  grid-column: 1 / -1;
}
.duty-cadence {
  margin-left: 7px;
  vertical-align: middle;
}
.duty-cadence.blocked {
  border-color: rgba(178,59,59,0.28);
  color: #9b4b35;
  background: rgba(178,59,59,0.06);
}
.staffing-item.covered {
  border-color: var(--sage-border);
}
.staffing-item.short strong {
  color: #9b4b35;
}
.admin-tool-strip .auto-assign-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-tool-strip svg { width: 16px; height: 16px; }
.tool-strip-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--charcoal-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.issue-compose { display: grid; gap: 8px; }
.risk-note,
.privacy-strip {
  border: 1px solid rgba(137,149,59,0.24);
  border-radius: var(--radius);
  background: rgba(137,149,59,0.08);
  color: var(--charcoal-60);
  padding: 9px 11px;
  font: 500 0.72rem var(--font-body);
  line-height: 1.35;
}
.privacy-strip {
  margin: 0 16px 10px;
}
.manager-pin-card,
.retention-tools {
  display: grid;
  gap: 10px;
}
.danger-btn {
  border-color: rgba(178,59,59,0.35);
  color: #9b4b35;
}
.issue-input {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  font: 0.9rem var(--font-body);
  color: var(--charcoal);
}
.issue-open-note {
  font-size: 0.72rem;
  color: var(--sage-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.day-ops-panel { padding-bottom: 2px; }
.ops-grid { display: grid; gap: 10px; }
.ops-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.ops-card-title {
  font: 600 0.72rem var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-60);
  margin-bottom: 8px;
}
.ops-list { display: grid; gap: 7px; }
.ops-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.78rem;
}
.ops-row.hot {
  border: 1px solid var(--sage-border);
  background: var(--sage-dim);
}
.ops-row span {
  font: italic 0.95rem var(--font-display);
  color: var(--charcoal-60);
}
.ops-row strong { font-weight: 600; line-height: 1.25; }
.ops-row em {
  font-style: normal;
  color: var(--sage-mid);
  font-size: 0.7rem;
  white-space: nowrap;
}
.ops-row button { min-height: 32px; padding: 6px 10px; }
.ops-empty { color: var(--charcoal-60); font-size: 0.78rem; padding: 8px; }
.map-screen-body { padding-top: 14px; }
.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.map-sub { color: var(--charcoal-60); font-size: 0.78rem; margin-top: 2px; }
.floor-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.floor-table {
  position: relative;
  min-height: 116px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.floor-table.assigned { border-color: var(--sage-border); }
.floor-table.vip { background: #fffdf6; }
.floor-table-num {
  font: 600 0.72rem var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--charcoal-60);
}
.floor-table-owner {
  margin-top: 6px;
  font: 500 1rem var(--font-display);
  line-height: 1.12;
}
.floor-table-meta,
.floor-table-note {
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--charcoal-60);
  line-height: 1.25;
}
.floor-table-vip {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--sage-border);
  color: var(--sage-mid);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}
.map-zones { display: grid; gap: 8px; margin-top: 14px; }
.map-zone {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
  font-size: 0.82rem;
}
.map-zone span { color: var(--charcoal-60); }
.issue-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.issue-summary div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  text-align: center;
}
.issue-summary strong {
  display: block;
  font: 600 1.6rem var(--font-display);
  line-height: 1;
}
.issue-summary span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-60);
}
.issue-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.issue-card.resolved { opacity: 0.62; }
.issue-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}
.issue-card-top span { color: var(--charcoal-60); white-space: nowrap; }
.issue-card p { margin: 8px 0 10px; font-size: 0.9rem; line-height: 1.35; }
.issue-actions { display: flex; justify-content: flex-end; }
.rc-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.rc-action-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  min-height: 32px;
  padding: 6px 10px;
  font: 600 0.72rem var(--font-body);
  cursor: pointer;
}
.print-section,
.print-section-title,
.print-brief-grid,
.print-mini-list,
.print-table-map,
.print-special { display: none; }

@media (max-width: 430px) {
  .admin-form-grid, .vendor-edit-row { grid-template-columns: 1fr; }
  .edit-row { grid-template-columns: 1fr; }
  .chair-table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chair-all-row { grid-template-columns: 1fr; }
  .mini-remove { width: 100%; }
}

@media print {
  body { background: #fff !important; color: #231f20 !important; }
  body::after, .screen, .bottom-nav, .pc-header, .admin-subnav, .admin-back-splash, .admin-print-wrap { display: none !important; }
  #app { display: block !important; max-width: none !important; min-height: 0 !important; box-shadow: none !important; background: #fff !important; }
  .print-sheet { display: block !important; padding: 0.25in; font: 10pt var(--font-body); }
  .print-head { text-align: center; }
  .print-wordmark { font: 18pt var(--font-display); letter-spacing: 0.04em; }
  .print-event { font: 13pt var(--font-display); margin-top: 2px; }
  .print-sub { font-size: 9pt; color: #555; }
  .print-rule { height: 1px; background: #89953b; margin: 10px 0; }
  .print-section { display: block; break-inside: avoid; margin: 8px 0; }
  .print-section-title { display: block; font-weight: 700; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 8pt; color: #555; }
  .print-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
  .print-mini-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: 9pt; }
  .print-table-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .print-table-map div { border: 1px solid #ddd; padding: 3px; min-height: 26px; }
  .print-table-map strong { margin-right: 4px; }
  .print-table-map span { color: #555; }
  .print-special { display: block; margin-top: 4px; font-size: 9pt; }
  .print-row { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid #ddd; }
  .print-name { font: 13pt var(--font-display); }
  .print-confirmed { color: #89953b; font-family: var(--font-body); }
  .print-meals { color: #555; font-size: 9pt; margin: 1px 0; }
  .clock-print-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 8.5pt; }
  .clock-print-table th,
  .clock-print-table td { border: 1px solid #bbb; padding: 5px 4px; text-align: left; vertical-align: top; }
  .clock-print-table th { background: #f3f0e8; font-size: 7.5pt; letter-spacing: 0.04em; text-transform: uppercase; }
  .clock-print-table td { height: 28px; }
  .clock-print-table td:nth-child(3),
  .clock-print-table td:nth-child(4),
  .clock-print-table td:nth-child(5),
  .clock-print-table td:nth-child(6) { width: 13%; }
  .print-footer { margin-top: 10px; text-align: center; color: #777; font-size: 8pt; }
}

/* ─── Time Clock: Worker Punch Card ─────────────────────── */
.punch-card {
  margin: 4px 0 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--charcoal-30);
}
.punch-card.punch-in    { border-left-color: var(--sage); }
.punch-card.punch-break { border-left-color: #c79a3a; }
.punch-card.punch-out   { border-left-color: var(--charcoal-30); }
.punch-status {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.punch-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--charcoal-30); flex-shrink: 0;
}
.punch-in .punch-dot    { background: var(--sage); animation: pulseRing 2s infinite; }
.punch-break .punch-dot { background: #c79a3a; }
.punch-out .punch-dot   { background: var(--charcoal-30); }
.punch-status-text {
  font: 500 0.82rem var(--font-body);
  color: var(--charcoal-60);
  letter-spacing: 0.01em;
}
.punch-actions { display: flex; gap: 10px; align-items: stretch; }
.punch-btn-primary {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px;
  background: var(--charcoal);
  color: var(--cream);
  border: none; border-radius: var(--radius);
  font: 500 1.02rem var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}
.punch-btn-primary:active { transform: scale(0.98); }
.punch-in .punch-btn-primary { background: var(--sage); }
.punch-break .punch-btn-primary { background: #b9822b; }
.punch-btn--confirming {
  background: var(--sage) !important;
  pointer-events: none;
  opacity: 0.92;
  animation: punchConfirm 1.8s ease-out forwards;
}
@keyframes punchConfirm {
  0%   { transform: scale(1.02); box-shadow: 0 0 0 0 rgba(137,149,59,0.45); }
  30%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(137,149,59,0); }
  100% { opacity: 0.6; }
}
.punch-btn-primary svg { width: 20px; height: 20px; }
.punch-btn-secondary {
  flex: 0 0 auto;
  padding: 16px 18px;
  background: transparent;
  color: var(--charcoal-60);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: 500 0.9rem var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.punch-btn-secondary:active { border-color: var(--charcoal); color: var(--charcoal); }

/* ─── Roll Call Board ───────────────────────────────────── */
.rollcall-summary {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 14px 16px 4px;
}
.rc-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 4px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  border-top: 2px solid var(--charcoal-30);
}
.rc-stat strong { font: 600 1.5rem var(--font-display); color: var(--charcoal); line-height: 1; }
.rc-stat span { font: 500 0.62rem var(--font-body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--charcoal-60); margin-top: 4px; }
.rc-s-floor  { border-top-color: var(--sage); }
.rc-s-break  { border-top-color: #c79a3a; }
.rc-s-late   { border-top-color: #c0743a; }
.rc-s-noshow { border-top-color: #b23b3b; }

.rollcall-list { padding: 8px 16px 40px; }
.rollcall-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.rollcall-row.rc-row-late,
.rollcall-row.rc-row-noshow { border-color: var(--sage-border); background: #fdfbf6; }
.rc-pill { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--charcoal-30); }
.rc-pill-floor     { background: var(--sage); }
.rc-pill-break     { background: #c79a3a; }
.rc-pill-breaklong { background: #b9822b; animation: pulseRing 2s infinite; }
.rc-pill-out       { background: var(--charcoal-30); }
.rc-pill-late      { background: #c0743a; }
.rc-pill-noshow    { background: #b23b3b; }
.rc-pill-expected  { background: var(--charcoal-20); }
.rc-main { flex: 1; min-width: 0; }
.rc-name { font: 500 0.98rem var(--font-body); color: var(--charcoal); }
.rc-sub { font: 400 0.76rem var(--font-body); color: var(--charcoal-60); margin-top: 2px; }
.rc-cover-btn {
  flex-shrink: 0;
  padding: 8px 13px;
  background: var(--charcoal);
  color: var(--cream);
  border: none; border-radius: var(--radius);
  font: 500 0.78rem var(--font-body); letter-spacing: 0.02em;
  cursor: pointer;
}
.rc-cover-btn:active { transform: scale(0.97); }

/* ─── Coverage Sheet (bottom sheet) ─────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(35,31,32,0.42);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.coverage-sheet {
  width: 100%; max-width: 480px;
  max-height: 86vh; overflow-y: auto;
  background: var(--cream);
  border-radius: 14px 14px 0 0;
  padding: 8px 18px calc(22px + var(--safe-bottom));
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.28s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--charcoal-20); margin: 6px auto 14px; }
.sheet-title { font: 500 1.4rem var(--font-display); color: var(--charcoal); margin-bottom: 10px; }
.cover-duties { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cover-duty-chip {
  padding: 4px 10px; background: var(--sage-dim); color: var(--sage-mid);
  border: 1px solid var(--sage-border); border-radius: 100px;
  font: 500 0.74rem var(--font-body);
}
.cover-section { margin-bottom: 16px; }
.cover-section-label {
  font: 500 0.68rem var(--font-body); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--charcoal-60); margin-bottom: 8px;
}
.cover-empty { font: 400 0.84rem var(--font-body); color: var(--charcoal-60); padding: 8px 0; }
.cover-crew-row, .oncall-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; margin-bottom: 8px;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: border-color 0.15s ease;
}
.cover-crew-row:active, .oncall-row:active { border-color: var(--charcoal); }
.cover-crew-main, .oncall-main { flex: 1; min-width: 0; }
.cover-crew-name, .oncall-name { font: 500 0.96rem var(--font-body); color: var(--charcoal); }
.cover-crew-load, .oncall-role { font: 400 0.76rem var(--font-body); color: var(--charcoal-60); margin-top: 2px; }
.cover-give { font: 500 0.84rem var(--font-body); color: var(--sage-mid); flex-shrink: 0; }
.oncall-row { flex-wrap: wrap; cursor: default; }
.oncall-rate { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; }
.oncall-rate-em { font: 600 0.96rem var(--font-body); color: #b9822b; }
.oncall-rate-base { font: 400 0.68rem var(--font-body); color: var(--charcoal-30); text-decoration: line-through; margin-top: 1px; }
.oncall-actions { display: flex; gap: 8px; width: 100%; margin-top: 10px; }
.oncall-call, .oncall-add {
  flex: 1; text-align: center;
  padding: 10px; border-radius: var(--radius);
  font: 500 0.84rem var(--font-body); letter-spacing: 0.01em;
  cursor: pointer; text-decoration: none;
}
.oncall-call { background: transparent; border: 1px solid var(--border); color: var(--charcoal); }
.oncall-call:active { border-color: var(--charcoal); }
.oncall-add { background: #b9822b; border: none; color: #fff; }
.oncall-add:active { transform: scale(0.98); }
.oncall-add:disabled { background: var(--charcoal-20); color: var(--charcoal-60); cursor: default; }

/* ─── Hours & Labor Cost ────────────────────────────────── */
.payroll-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; padding: 16px;
  margin: 14px 16px 4px;
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.payroll-cost { display: flex; flex-direction: column; }
.payroll-cost-label { font: 500 0.68rem var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.payroll-cost-value { font: 500 2.4rem var(--font-display); line-height: 1.05; margin-top: 2px; }
.payroll-substats { display: flex; gap: 18px; text-align: right; }
.payroll-substats strong { font: 600 1.3rem var(--font-display); display: block; line-height: 1; }
.payroll-substats span { font: 500 0.6rem var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.payroll-list { padding: 10px 16px 40px; }
.payroll-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 7px;
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
}
.pr-main { flex: 1; min-width: 0; }
.pr-name { font: 500 0.96rem var(--font-body); color: var(--charcoal); }
.pr-meta { font: 400 0.76rem var(--font-body); color: var(--charcoal-60); margin-top: 2px; }
.pr-live { color: var(--sage); font-weight: 500; }
.pr-tag-oncall {
  font: 500 0.6rem var(--font-body); text-transform: uppercase; letter-spacing: 0.05em;
  color: #b9822b; background: rgba(185,130,43,0.12);
  padding: 1px 6px; border-radius: 100px; margin-left: 4px; vertical-align: middle;
}
.pr-cost { font: 600 1.05rem var(--font-display); color: var(--charcoal); flex-shrink: 0; }
.payroll-note {
  padding: 0 18px; margin: 2px 0 10px;
  font: 400 0.72rem var(--font-body); color: var(--charcoal-60); line-height: 1.45;
}
