:root {
  color-scheme: light;
  --ink: #20251b;
  --ink-soft: #58604f;
  --paper: #f8f2e5;
  --paper-deep: #eee3ce;
  --card: #fffdf7;
  --red: #bd3b2a;
  --red-dark: #8e291f;
  --tomato-soft: #f6dfd5;
  --gold: #f4b942;
  --gold-soft: #fff0bd;
  --green: #3f6642;
  --green-soft: #dce9d7;
  --line: #d8ccb7;
  --shadow: 0 14px 40px rgba(48, 38, 20, .09);
  --radius: 20px;
  --radius-sm: 12px;
  --focus: #165cb6;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(90, 72, 43, .07) .7px, transparent .7px);
  background-size: 12px 12px;
  color: var(--ink);
  font-family: ui-rounded, 'Avenir Next', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--red-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.05; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.9rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: .45rem; }
h3 { line-height: 1.25; }
address { font-style: normal; }

.skip-link { position: fixed; z-index: 1000; left: 1rem; top: 1rem; transform: translateY(-150%); padding: .75rem 1rem; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { 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; white-space: nowrap !important; border: 0 !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header, .site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header { padding-block: 24px 18px; }
.site-footer { padding-block: 18px 36px; color: var(--ink-soft); font-size: .86rem; }
.site-footer a { font-weight: 700; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand strong { color: var(--red); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; background: var(--red); color: white; font-family: Georgia, serif; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--gold); }
.beta-stamp { padding: .36rem .72rem; border: 1px solid var(--red); border-radius: 999px; color: var(--red-dark); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(2deg); }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto 42px; }
.panel { min-width: 0; background: rgba(255, 253, 247, .96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px); }
.panel-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr); align-items: center; gap: clamp(24px, 5vw, 72px); background: var(--ink); color: #fffaf0; border-color: var(--ink); padding: clamp(28px, 5vw, 64px); }
.panel-hero::before { content: ''; position: absolute; inset: auto -70px -100px auto; width: 260px; height: 260px; border: 38px solid rgba(244, 185, 66, .09); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-description { max-width: 650px; color: #d9dccf; font-size: clamp(1rem, 1.8vw, 1.17rem); }
.hero-date { color: var(--gold); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; }
.eyebrow, .kicker { margin-bottom: .6rem; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
.panel-hero .eyebrow { display: flex; align-items: center; gap: .5rem; color: #f8d47d; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #70c878; box-shadow: 0 0 0 5px rgba(112, 200, 120, .13); }
.eyebrow.is-closed .status-dot { background: var(--gold); box-shadow: 0 0 0 5px rgba(244, 185, 66, .13); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.hero-facts span { padding: .52rem .75rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #d9dccf; font-size: .82rem; }
.hero-facts strong { color: #fffaf0; text-transform: capitalize; }

.forecast-card { position: relative; z-index: 1; min-width: 0; padding: 18px; border-radius: 16px; background: #f6e4b2; color: var(--ink); box-shadow: 8px 8px 0 rgba(0, 0, 0, .24); transform: rotate(1deg); }
.forecast-top { display: flex; justify-content: space-between; gap: .5rem; color: var(--red-dark); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.forecast-size { color: var(--ink-soft); }
.pizza-box-meter { position: relative; width: min(180px, 80%); aspect-ratio: 1; margin: 14px auto; border: 3px solid #926a2c; background: #f8ca62; transform: rotate(-2deg); }
.meter-grid { position: absolute; inset: 15%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 50%; overflow: hidden; transform: rotate(45deg); }
.meter-slice { background: rgba(255, 253, 247, .55); border: 1px solid rgba(142, 41, 31, .18); }
.meter-slice.is-filled { background: var(--red); }
.box-lid { position: absolute; inset: 4px 5px auto auto; font-family: Georgia, serif; color: #46300a; font-weight: 800; }
.forecast-number { text-align: center; font-weight: 700; }
.forecast-number strong { font: 800 2.8rem/1 Georgia, serif; color: var(--red-dark); }
.forecast-card p { margin: .3rem 0 0; text-align: center; color: #6b5734; font-size: .8rem; }

.hub-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 20px; margin-top: 20px; align-items: start; }
.main-stack, .side-stack { min-width: 0; display: grid; gap: 20px; }
.side-stack { position: sticky; top: 16px; }
.section-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading-split { justify-content: space-between; align-items: flex-start; gap: 1rem; }
.heading-with-step { display: flex; gap: .9rem; align-items: center; }
.step { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font: 800 1rem/1 Georgia, serif; }
.step-done { background: var(--green); border-color: var(--green); color: white; }
.section-intro { color: var(--ink-soft); margin: -.35rem 0 1.25rem 3.3rem; }
.stack { display: grid; gap: 1.15rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--ink); font-size: .84rem; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field em, legend em { color: var(--ink-soft); font-size: .72rem; font-style: normal; font-weight: 500; }
.field small { color: var(--ink-soft); font-weight: 400; line-height: 1.35; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: .72rem .82rem; border: 1px solid #bfb29c; border-radius: 10px; background: white; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(22, 92, 182, .13); outline: none; }
input:disabled, select:disabled { opacity: .5; }
.attendance-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.attendance-button { min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.attendance-button span { margin-right: .3rem; }
.attendance-button.is-selected { background: var(--ink); color: white; box-shadow: 0 3px 10px rgba(32, 37, 27, .18); }
@keyframes dietary-switch-whoosh {
  0% { transform: translateX(0); }
  28% { transform: translateX(-10px) rotate(-1deg); }
  58% { transform: translateX(8px) rotate(1deg); }
  100% { transform: translateX(0); }
}
@keyframes dietary-out-arrival {
  0% { opacity: .25; transform: translateX(-65%) rotate(-8deg) scale(.82); }
  68% { opacity: 1; transform: translateX(5%) rotate(2deg) scale(1.05); }
  100% { transform: translateX(0) rotate(0) scale(1); }
}
#rsvp-form.is-dietary-ejected .attendance-switch { animation: dietary-switch-whoosh .62s cubic-bezier(.2,.8,.2,1); }
#rsvp-form.is-dietary-ejected .attendance-button[data-state="out"] { animation: dietary-out-arrival .62s cubic-bezier(.2,.8,.2,1); }
.preference-fieldset { margin: 0; padding: 0; border: 0; }
.preference-fieldset legend { margin-bottom: .55rem; font-size: .84rem; font-weight: 700; }
.check-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.check-pill { position: relative; cursor: pointer; }
.check-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-pill span { display: grid; place-items: center; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.check-pill input:checked + span { background: var(--green-soft); border-color: var(--green); color: #254c29; }
.check-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: .25rem; }
.form-message { min-height: 1.3em; margin: 0; color: var(--red-dark); font-weight: 700; }

.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 10px; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, color .12s; }
.button:hover, .btn:hover { transform: translateY(-1px); }
.button:active, .btn:active { transform: translateY(1px); }
.button:disabled, .btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary, .btn-primary { background: var(--red); color: white; border-color: var(--red); }
.button-primary:hover, .btn-primary:hover { background: var(--red-dark); }
.button-secondary, .btn-outline { background: white; border-color: var(--ink); color: var(--ink); }
.button-quiet { background: transparent; color: var(--ink-soft); }
.button-danger-quiet, .btn-danger { background: var(--tomato-soft); color: var(--red-dark); border-color: #e3afa3; }
.btn-full { width: 100%; }
.btn-sm { min-height: 36px; padding: .4rem .7rem; font-size: .82rem; }

.ballot-panel { overflow: hidden; }
.vote-budget { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: .3rem; padding: .5rem .7rem; border-radius: 999px; background: var(--gold-soft); color: #71500c; font-size: .75rem; white-space: nowrap; }
.vote-budget strong { font-size: 1.15rem; }
.ballot-list { display: grid; gap: 9px; }
.ballot-option { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.ballot-option.is-voted { border-color: var(--green); background: #f7fbf4; box-shadow: inset 4px 0 0 var(--green); }
.option-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-deep); color: var(--ink-soft); font-weight: 800; }
.option-copy { min-width: 0; }
.option-copy h3 { margin: 0 0 .2rem; font-size: 1rem; overflow-wrap: anywhere; }
.option-copy p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.option-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .45rem; }
.tag { padding: .18rem .45rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); font-size: .65rem; font-weight: 700; }
.tag-green { background: var(--green-soft); color: #2c5230; }
.tag-warm { background: var(--gold-soft); color: #70500e; }
.vote-stack { min-width: 76px; display: grid; justify-items: center; }
.vote-stack > strong { font: 800 1.55rem/1 Georgia, serif; }
.vote-stack > span { color: var(--ink-soft); font-size: .66rem; }
.vote-button { min-width: 76px; min-height: 44px; margin-top: 5px; padding: .35rem .55rem; border: 1px solid var(--red); border-radius: 999px; background: white; color: var(--red-dark); font-size: .72rem; font-weight: 800; cursor: pointer; }
.vote-button.is-voted { background: var(--green); border-color: var(--green); color: white; }
.vote-button:disabled { opacity: .45; cursor: not-allowed; }
.nomination-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.catalog-nomination { background: var(--paper); margin-inline: -8px; padding: 1rem 8px 0; border-radius: 12px; }
.catalog-nomination small { grid-column: 1 / -1; color: var(--ink-soft); font-size: .68rem; }
.option-coverage { margin-top: .45rem !important; color: var(--ink-soft); font-size: .68rem !important; }
.option-coverage strong { color: var(--ink); }
.safety-note, .notice { margin: 1rem 0 0; padding: .8rem .9rem; border-radius: 10px; background: var(--gold-soft); color: #594312; font-size: .75rem; }
.safety-note strong { display: block; color: #3f300d; }
.notice-warning { background: var(--tomato-soft); color: var(--red-dark); }

.roster-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.roster-list li { min-width: 0; display: flex; gap: .75rem; padding: 11px; border-radius: 12px; background: var(--paper); }
.roster-list li > div { min-width: 0; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 48% 52% 45% 55%; background: var(--red); color: white; font-family: Georgia, serif; font-weight: 800; }
.roster-list strong { display: block; overflow-wrap: anywhere; }
.roster-list span, .roster-list p { color: var(--ink-soft); font-size: .74rem; }
.roster-list p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .35rem; }
.badges span { padding: .15rem .35rem; border-radius: 999px; background: var(--gold-soft); color: #684b0e; font-size: .62rem; font-weight: 800; }
.privacy-line { margin: 1rem 0 0; color: var(--ink-soft); font-size: .72rem; }
.empty-inline { display: flex; align-items: center; gap: .7rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-soft); }
.empty-inline span { font-size: 1.4rem; }
.empty-inline p { margin: 0; }

.handoff-panel { background: var(--gold); border-color: #d39624; box-shadow: 7px 7px 0 rgba(116, 79, 8, .17); transform: rotate(.35deg); }
.handoff-panel .kicker { color: #6b4300; }
.handoff-panel address, .handoff-panel p { color: #594312; }
.handoff-panel .button { width: 100%; margin: .5rem 0 .8rem; }
.handoff-panel small { display: block; color: #634d20; line-height: 1.4; }
.cost-callout { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: .9rem 0 .4rem; padding: .65rem .75rem; border-radius: 10px; background: rgba(255,255,255,.42); }
.cost-callout span, .cost-pending { color: #634d20; font-size: .75rem; }
.cost-callout strong { font: 800 1.4rem/1 Georgia, serif; color: var(--red-dark); }
.handoff-panel .button-secondary { margin: .35rem 0 0; }
.pulse-panel h2 { font-size: 1.8rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 1rem 0; }
.stat-grid div { display: grid; padding: .8rem; border-radius: 10px; background: var(--paper); }
.stat-grid strong { font: 800 1.7rem/1 Georgia, serif; color: var(--red-dark); }
.stat-grid span { margin-top: .25rem; color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.pulse-panel h3 { margin: 1.2rem 0 .5rem; font-size: .9rem; }
.hall-list { margin: 0; padding-left: 1.35rem; }
.hall-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.milestone-card { display: grid; gap: .3rem; margin-top: 1rem; padding: .85rem; border: 1px solid #d8aa35; border-radius: 12px; background: #fff7d6; color: #4b3610; }
.milestone-card strong { font-family: Georgia, serif; font-size: 1.05rem; }
.milestone-card span { font-weight: 800; }
.milestone-card small { color: #69551f; }

.feedback-panel { background: var(--green); color: white; border-color: var(--green); }
.feedback-panel .kicker { color: #d9f0cb; }
.feedback-panel p { color: #e5efdf; }
.feedback-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feedback-buttons button { min-height: 48px; padding: .5rem; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; background: rgba(255,255,255,.1); color: white; font-weight: 800; cursor: pointer; }
.feedback-buttons button:hover, .feedback-buttons button.is-selected { background: white; color: var(--green); }
.feedback-buttons button[aria-pressed="true"] { outline: 3px solid #f8d47d; outline-offset: 2px; }
.feedback-panel .form-message { color: white; }
.undo-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 12px; padding: .75rem 1rem; border: 1px solid var(--green); border-radius: 14px; background: var(--green-soft); color: #264829; box-shadow: var(--shadow); }
.undo-bar .button { flex: 0 0 auto; }

.loading-card, .empty-state { min-height: 62vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 2rem; }
.loading-card h1, .empty-state h1 { max-width: 700px; font-size: clamp(2.3rem, 6vw, 4.5rem); }
.loading-card p, .empty-state p { max-width: 560px; color: var(--ink-soft); }
.pizza-loader, .empty-icon { font-size: 4rem; }
.pizza-loader { animation: pizza-bob 1.2s ease-in-out infinite alternate; }
.error-state small { margin-top: .8rem; color: var(--ink-soft); }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: .85rem 1rem; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.toast[data-type="error"] { background: var(--red-dark); }
.pizza-celebration { position: fixed; z-index: 90; inset: 0; overflow: hidden; pointer-events: none; }
.pizza-celebration span { position: absolute; bottom: -60px; font-size: 1.5rem; animation: pizza-fly 2s ease-out forwards; }
.pizza-celebration span:nth-child(4n) { font-size: 2.1rem; animation-delay: .12s; }
.pizza-celebration span:nth-child(4n + 1) { font-size: 1.25rem; animation-delay: .24s; }
.pizza-celebration span:nth-child(4n + 2) { font-size: 1.75rem; animation-delay: .06s; }
.pizza-celebration span:nth-child(1) { left: 2%; } .pizza-celebration span:nth-child(2) { left: 8%; }
.pizza-celebration span:nth-child(3) { left: 15%; } .pizza-celebration span:nth-child(4) { left: 22%; }
.pizza-celebration span:nth-child(5) { left: 29%; } .pizza-celebration span:nth-child(6) { left: 36%; }
.pizza-celebration span:nth-child(7) { left: 43%; } .pizza-celebration span:nth-child(8) { left: 50%; }
.pizza-celebration span:nth-child(9) { left: 57%; } .pizza-celebration span:nth-child(10) { left: 64%; }
.pizza-celebration span:nth-child(11) { left: 71%; } .pizza-celebration span:nth-child(12) { left: 78%; }
.pizza-celebration span:nth-child(13) { left: 84%; } .pizza-celebration span:nth-child(14) { left: 90%; }
.pizza-celebration span:nth-child(15) { left: 95%; } .pizza-celebration span:nth-child(16) { left: 98%; }
@keyframes pizza-fly { 50% { opacity: 1; } 100% { transform: translateY(-105vh) rotate(540deg); opacity: 0; } }
@keyframes pizza-bob { to { transform: translateY(-9px) rotate(5deg); } }

/* Transitional compatibility for the existing admin screen; Task 9 replaces it. */
.container { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0; }
.header { text-align: center; margin-bottom: 28px; }
.header h1 { font-size: 2rem; margin-bottom: .3rem; }
.header h1 span, .header .subtitle { color: var(--red); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.section-title, .card-title { font-weight: 800; margin-bottom: 12px; }
.card-meta, .card-description, .text-muted { color: var(--ink-soft); }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-1 { flex: 1; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mb-3 { margin-bottom: 12px; }
.text-sm { font-size: .82rem; } .text-center { text-align: center; }
.badge { display: inline-flex; padding: .25rem .55rem; border-radius: 999px; background: var(--paper-deep); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.badge-open, .badge-completed { background: var(--green-soft); color: var(--green); }
.badge-closed, .badge-cancelled { background: var(--tomato-soft); color: var(--red-dark); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .35rem; border-radius: 50%; background: var(--red); color: white; }
.empty { padding: 2rem; text-align: center; } .empty .icon { font-size: 2.5rem; }
.event-list-item, .admin-signup-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-list-title, .signup-name { font-weight: 700; } .signup-note { color: var(--ink-soft); font-size: .78rem; }
.share-url { flex: 1; }
.fade-in { animation: reveal .28s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }

@media (max-width: 820px) {
  .panel-hero, .hub-grid { grid-template-columns: 1fr; }
  .forecast-card { width: min(100%, 340px); margin-inline: auto; }
  .side-stack { position: static; grid-template-columns: 1fr 1fr; }
  .handoff-panel { transform: none; }
}
@media (max-width: 600px) {
  .site-header, .site-footer, .shell { width: min(100% - 22px, 1180px); }
  .site-header { padding-top: 14px; }
  .brand { font-size: .88rem; } .brand-mark { width: 34px; height: 34px; }
  .beta-stamp { font-size: .61rem; }
  .panel { padding: 18px; border-radius: 16px; }
  .panel-hero { padding: 25px 20px; }
  h1 { font-size: clamp(2.25rem, 13vw, 3.4rem); }
  .hero-facts { display: grid; }
  .hub-grid, .main-stack, .side-stack { gap: 12px; margin-top: 12px; }
  .side-stack, .form-grid, .roster-list { grid-template-columns: 1fr; }
  .section-heading-split { display: grid; }
  .section-intro { margin-left: 0; }
  .ballot-option { grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 8px; }
  .vote-stack { grid-column: 2; display: flex; justify-content: flex-start; align-items: center; gap: .3rem; min-width: 0; }
  .vote-button { margin: 0 0 0 auto; min-height: 44px; }
  .nomination-form { grid-template-columns: 1fr; }
  .catalog-nomination small { grid-column: 1; }
  .nomination-form .button { width: 100%; }
  .feedback-buttons { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .undo-bar { align-items: stretch; flex-direction: column; }
  .toast { inset: auto 11px 11px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pizza-loader { animation: none; }
  #rsvp-form.is-dietary-ejected .attendance-switch,
  #rsvp-form.is-dietary-ejected .attendance-button[data-state="out"] { animation: none !important; }
}

/* Organizer command center */
.admin-body { background-color: #eee7d8; }
.admin-header { max-width: 1440px; }
.admin-shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto 52px; }
.auth-shell { width: min(520px, calc(100% - 32px)); padding-top: clamp(40px, 8vh, 100px); }
.login-panel { padding: clamp(26px, 6vw, 48px); box-shadow: 12px 12px 0 rgba(142, 41, 31, .11); }
.login-panel h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
.privacy-note, .privacy-line { display: block; margin-top: 1rem; color: var(--ink-soft); font-size: .75rem; }
.admin-topline { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 10px 0 22px; }
.admin-topline h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-tabs { position: sticky; z-index: 40; top: 0; display: flex; gap: 4px; margin-bottom: 20px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 253, 247, .94); box-shadow: 0 8px 28px rgba(48, 38, 20, .08); backdrop-filter: blur(12px); }
.admin-tabs button { flex: 1 0 auto; min-height: 46px; padding: .65rem 1rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: white; }
.mystery-pie { display: grid; gap: .55rem; margin: 1rem 0; padding: 1rem; border: 1px dashed #a26b00; border-radius: 12px; background: #fff7d6; color: #4b3610; }
.mystery-pie h3, .mystery-pie p { margin: 0; }
.mystery-pie small { color: #69551f; }
.event-picker { display: grid; grid-template-columns: auto minmax(220px, 440px); align-items: center; justify-content: end; gap: 10px; margin-bottom: 12px; color: var(--ink-soft); font-size: .76rem; font-weight: 800; }
.event-picker select { min-height: 40px; padding-block: .45rem; }
.admin-grid, .cockpit-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.cockpit-grid { grid-template-columns: minmax(0, 1.7fr) minmax(330px, .75fr); }
.admin-main-stack, .admin-side-stack { min-width: 0; display: grid; gap: 18px; }
.admin-side-stack { position: sticky; top: 78px; }
.command-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); border-color: var(--ink); color: white; }
.command-hero h2 { margin-bottom: .35rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.command-hero p { margin: 0; color: #d9dccf; }
.command-hero .deadline-countdown { margin-top: .65rem; color: var(--gold); font-weight: 800; }
.command-hero .eyebrow { display: flex; align-items: center; gap: 9px; color: #f8d47d; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; min-width: min(100%, 285px); }
.mini-stats div { display: grid; padding: 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.06); text-align: center; }
.mini-stats strong { font: 800 1.7rem/1 Georgia, serif; color: var(--gold); }
.mini-stats span { margin-top: 4px; color: #d9dccf; font-size: .65rem; text-transform: uppercase; }
.event-description { font-size: 1.06rem; }
.event-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 1rem 0; }
.event-facts div { padding: 11px; border-radius: 10px; background: var(--paper); }
.event-facts dt { color: var(--ink-soft); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.event-facts dd { margin: .25rem 0 0; font-weight: 700; text-transform: capitalize; }
.lifecycle-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.share-box { margin-top: 1rem; padding: 16px; border: 1px solid #d8a835; border-radius: 14px; background: var(--gold-soft); }
.share-box pre, .order-summary { overflow: auto; max-height: 270px; padding: 13px; border-radius: 10px; background: white; color: var(--ink); font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-box small { display: block; margin-top: 8px; color: #674b10; }
.admin-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-roster article { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-roster p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .76rem; overflow-wrap: anywhere; }
.roster-title { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.private-note { padding: .45rem .55rem; border-radius: 8px; background: var(--gold-soft); color: #594312 !important; }
.coverage-summary { padding: .7rem .8rem; border-radius: 10px; background: var(--green-soft); color: #254c29; font-size: .78rem; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 3px 0 14px 19px; border-left: 2px solid var(--line); }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.timeline strong { font-size: .77rem; text-transform: capitalize; }
.timeline span { color: var(--ink-soft); font-size: .67rem; }
.caution-panel { background: var(--gold-soft); border-color: #e0bd61; }
.conflict-card { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.compact-empty { min-height: 390px; }
.forecast-strip, .analytics-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--green); color: white; border-color: var(--green); }
.forecast-strip .kicker, .analytics-hero .kicker { color: #dcf1d0; }
.forecast-strip p, .analytics-hero p { color: #e6eee2; }
.pie-number { flex: 0 0 auto; display: grid; justify-items: center; width: 130px; aspect-ratio: 1; align-content: center; border: 8px solid rgba(255,255,255,.16); border-radius: 50%; background: var(--gold); color: var(--ink); transform: rotate(2deg); }
.pie-number strong { font: 800 3rem/1 Georgia, serif; color: var(--red-dark); }
.pie-number span { font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.fulfillment-control { display: grid; grid-template-columns: auto 150px; align-items: center; gap: 9px; width: fit-content; margin: 1rem 0; color: white; font-size: .76rem; font-weight: 800; }
.fulfillment-control select { min-height: 42px; padding-block: .4rem; }
.planner-options { display: grid; gap: 8px; }
.planner-save-status { margin: 0 0 12px; padding: 9px 12px; border: 1px solid #d7ae45; border-radius: 10px; background: var(--gold-soft); color: var(--ink); font-size: .75rem; font-weight: 800; }
.planner-options article { display: grid; grid-template-columns: 32px minmax(0, 1fr) 76px; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.planner-options h3, .planner-options p { margin: 0; }
.planner-options p { color: var(--ink-soft); font-size: .72rem; }
.planner-options .coverage { margin-top: .35rem; }
.planner-options .needs-review { color: var(--red-dark); font-weight: 700; }
.quantity-input { text-align: center; }
.task-list { display: grid; gap: 9px; }
.task-row { display: grid; grid-template-columns: 1fr minmax(100px, .6fr); gap: 6px; align-items: center; }
.task-list label, .ledger label, .switch-field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.task-row > .field { display: grid; padding: 0; border: 0; }
.task-row > .field input { min-height: 52px; }
.task-list input, .ledger input, .switch-field input { flex: 0 0 auto; width: 22px; min-height: 22px; accent-color: var(--green); }
.task-list span, .ledger span, .switch-field span { min-width: 0; display: grid; }
.task-list small, .ledger small, .switch-field small { color: var(--ink-soft); font-size: .68rem; }
.settlement-panel form { display: grid; gap: 10px; }
.ledger { display: grid; gap: 6px; margin-top: 1rem; }
.ledger label { justify-content: space-between; }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 18px; }
.analytics-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.analytics-detail-grid .panel { margin: 0; padding: 18px; }
.analytics-detail-grid h3 { margin-bottom: .4rem; }
.analytics-detail-grid p:last-child { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.snapshot-date { margin: .8rem 0 0; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.final-card-operations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1rem 0; }
.final-card-operations section { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.final-card-operations h3 { margin: 0 0 .45rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.final-card-operations ul { margin: 0; padding-left: 1.2rem; font-size: .74rem; }
.final-card-operations p { margin: .25rem 0; font-size: .78rem; }
.metric { display: grid; margin: 0; text-align: center; }
.metric strong { font: 800 clamp(1.7rem, 3vw, 2.8rem)/1 Georgia, serif; color: var(--red-dark); }
.metric span { margin-top: .4rem; color: var(--ink-soft); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th, td { padding: .7rem .55rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--ink-soft); font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; }
.defaults-intro { margin-bottom: 14px; background: var(--gold-soft); }
.switch-field { cursor: pointer; }

@media (max-width: 920px) {
  .admin-grid, .cockpit-grid { grid-template-columns: 1fr; }
  .admin-side-stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .admin-shell { width: min(100% - 22px, 1440px); }
  .admin-topline { align-items: stretch; flex-direction: column; }
  .admin-actions { display: grid; grid-template-columns: 1fr auto; }
  .admin-tabs { margin-inline: -11px; border-radius: 0; border-inline: 0; }
  .admin-tabs button { padding-inline: .72rem; font-size: .76rem; }
  .event-picker { grid-template-columns: 1fr; justify-content: stretch; }
  .command-hero, .forecast-strip, .analytics-hero { align-items: stretch; flex-direction: column; }
  .mini-stats { width: 100%; }
  .event-facts, .admin-roster, .admin-side-stack { grid-template-columns: 1fr; }
  .planner-options article { grid-template-columns: 30px minmax(0, 1fr); }
  .planner-options label { grid-column: 2; }
  .pie-number { width: 110px; align-self: center; }
  .analytics-grid { gap: 7px; }
  .analytics-detail-grid, .task-row, .final-card-operations { grid-template-columns: 1fr; }
  .fulfillment-control { width: 100%; grid-template-columns: 1fr; }
}

@media print {
  body { background: white !important; }
  .admin-header, .admin-topline, .admin-tabs, .event-picker, .no-print, .cockpit-grid > aside, .forecast-strip, .planner-options, .planner-save-status, .safety-note, .toast { display: none !important; }
  .admin-shell, .cockpit-grid, .admin-main-stack { display: block; width: 100%; margin: 0; }
  .admin-main-stack > .panel:not(#final-slice-card) { display: none; }
  #final-slice-card { display: block; border: 4px double #222; box-shadow: none; break-inside: avoid; }
  #final-slice-card::after { content: 'Two Jacks Thursdays · organizer-confirmed handoff'; display: block; margin-top: 2rem; font-size: 10pt; }
}
