:root {
  --red: #850d1a;
  --red-dark: #640711;
  --gold: #d78a16;
  --cream: #fffaf0;
  --paper: #fffefb;
  --ink: #261b1a;
  --muted: #776e69;
  --line: #e9dfd2;
  --shadow: 0 12px 35px rgba(72, 39, 25, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 20% 0, #fff 0, var(--cream) 48%, #f8f0e2 100%); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(20px, 5vw, 72px); color: white; background: linear-gradient(125deg, var(--red), var(--red-dark)); box-shadow: 0 4px 18px rgba(63, 4, 11, .22); }
.brand { color: inherit; display: flex; align-items: center; text-decoration: none; }
.brand-mark { width: auto; height: 76px; display: flex; align-items: center; overflow: visible; font-size: 38px; }
.brand-logo { width: auto; height: 100%; max-width: min(52vw, 320px); object-fit: contain; }
.brand-fallback { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.admin-link { padding: 10px 14px; color: var(--red); background: #fffaf0; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; font-weight: 750; text-decoration: none; }

main { width: min(1440px, 100%); margin: 0 auto; padding: 34px clamp(18px, 4vw, 56px) 80px; }
.admin-main h1 { margin: 0; color: var(--red-dark); font: 700 clamp(36px, 5vw, 62px)/1.02 Georgia, serif; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.charity-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 12px 16px; color: #342b20; background: linear-gradient(100deg, #fff0b9, #fff8d9, #ffe9a6); border: 1px solid #f4dda0; border-radius: 11px; box-shadow: 0 5px 16px rgba(151, 105, 18, .08); }
.banner-copy { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.charity-banner span { flex: 0 0 auto; font-size: 20px; }
.charity-banner strong { flex: 1; font-size: 14px; line-height: 1.35; }
.charity-banner a { flex: 0 0 auto; padding: 7px 11px; color: var(--red); background: rgba(255,255,255,.58); border: 1px solid rgba(133,13,26,.14); border-radius: 8px; font-size: 12px; font-weight: 850; text-decoration: none; }
.charity-banner a:hover { background: white; }

.category-nav { display: flex; gap: 8px; margin: 0 0 22px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button { flex: 0 0 auto; padding: 9px 16px; color: #4d4240; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 750; }
.category-nav button.active { color: white; background: var(--red); border-color: var(--red); }

.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.category-card, .cart, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.category-card > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; color: white; background: linear-gradient(105deg, var(--red), #a71923); }
.category-card:nth-child(4n) > header { background: linear-gradient(105deg, #c37108, #ec9719); }
.category-card h2 { margin: 0; font: 700 21px/1.1 Georgia, serif; }
.category-card header span { font-size: 12px; opacity: .82; }
.product-row { min-height: 76px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 34px; gap: 11px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #eee7df; }
.product-row:last-child { border-bottom: 0; }
.product-image { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; background: #faf4eb; border: 1px solid #eee2d4; border-radius: 10px; font-size: 30px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-copy h3, .cart-row h3 { margin: 0; font-size: 14px; line-height: 1.2; }
.product-copy p, .cart-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.price { color: var(--red); font-size: 13px; white-space: nowrap; }
.add-button { width: 32px; height: 32px; padding: 0; color: white; background: var(--red); border: 0; border-radius: 9px; font-size: 20px; font-weight: 750; }

.cart { position: sticky; top: 18px; padding: 18px; }
.cart-title-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-title-row h2 { margin: 0; color: var(--red); font: 700 22px Georgia, serif; }
.count { min-width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50%; font-weight: 800; }
.cart-items { min-height: 80px; }
.empty { margin: 26px 0; color: var(--muted); text-align: center; }
.cart-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 9px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-image.small { width: 42px; height: 42px; font-size: 23px; }
.quantity { display: flex; align-items: center; gap: 6px; }
.quantity button { width: 25px; height: 25px; padding: 0; color: var(--red); background: white; border: 1px solid var(--line); border-radius: 6px; }
.quantity span { min-width: 12px; text-align: center; }
.cart-total { display: flex; justify-content: space-between; padding: 18px 0 8px; font-size: 18px; }
.cart-total strong { color: var(--red); }
.voucher-total { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.voucher-total span { display: flex; align-items: baseline; gap: 6px; font-weight: 800; }
.voucher-total small { font-size: 10px; font-weight: 600; }
.voucher-total strong { min-width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--gold); border-radius: 999px; }
.order-form { display: grid; gap: 8px; margin-top: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.order-form label { color: var(--ink); font-size: 13px; font-weight: 800; }
.order-form input { min-height: 42px; }
.order-button { min-height: 44px; margin-top: 3px; color: white; background: var(--red); border: 1px solid var(--red); border-radius: 8px; font-weight: 800; }
.order-button:disabled { cursor: not-allowed; opacity: .5; }
.order-message { min-height: 20px; margin: 3px 0 0; font-size: 12px; font-weight: 700; }
.order-message.success { color: #24713b; }
.order-message.error { color: #a20f1e; }
.mobile-cart { display: none; }

.choice-page { min-height: 100vh; }
.choice-main { min-height: calc(100vh - 108px); display: grid; place-items: center; padding-block: clamp(48px, 9vh, 110px); }
.choice-intro { width: min(900px, 100%); text-align: center; }
.choice-intro h1 { margin: 0 0 36px; color: var(--red-dark); font: 700 clamp(38px, 6vw, 64px)/1.05 Georgia, serif; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice-card { width: 100%; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 36px 24px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.choice-card:hover, .choice-card:focus-visible { transform: translateY(-4px); border-color: #d5b8b2; box-shadow: 0 18px 42px rgba(72,39,25,.16); outline: none; }
.choice-card strong { color: var(--red); font: 700 clamp(25px, 3vw, 34px)/1.15 Georgia, serif; }
.choice-card > span:last-child { color: var(--muted); }
.choice-icon { font-size: 64px; line-height: 1; }
.choice-icon img { width: 96px; height: 96px; display: block; object-fit: contain; }
.spaghetti-form { padding: clamp(22px, 5vw, 34px); }
.spaghetti-step { margin-top: 24px; }
.spaghetti-step > p:first-child { margin: 0 0 18px; color: var(--muted); }
.spaghetti-code { font: 800 26px/1 monospace; letter-spacing: .3em; text-align: center; }
.registration-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 14px; background: #fff5cf; border: 1px solid #ead89b; border-radius: 10px; }
.registration-summary span { color: var(--muted); font-weight: 700; }
.registration-ticket-list { display: grid; gap: 10px; max-height: min(48vh, 430px); overflow-y: auto; }
.registration-ticket-row { display: grid; grid-template-columns: 1fr 92px; align-items: center; gap: 18px; padding: 14px; background: #fffaf5; border: 1px solid var(--line); border-radius: 10px; }
.registration-ticket-row > span { display: grid; gap: 4px; }
.registration-ticket-row small { color: var(--muted); font-weight: 500; }
.registration-ticket-row input { text-align: center; font-weight: 800; }
.registration-ticket-row.unavailable { opacity: .55; }
.step-button { width: 100%; margin-top: 20px; }
.scope-options { display: grid; gap: 10px; }
.scope-options label { grid-template-columns: auto 1fr; align-items: center; padding: 14px; background: #fffaf5; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.scope-options input { width: 20px; min-height: 20px; }
.scope-options span { display: grid; gap: 2px; }
.scope-options small { color: var(--muted); font-weight: 400; }
.spaghetti-quantities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spaghetti-quantities label { text-align: left; }
.spaghetti-quantities input { text-align: center; }
.spaghetti-registrations { display: grid; gap: 12px; max-height: min(48vh, 430px); overflow-y: auto; }
.registration-card { padding: 14px; background: #fffaf5; border: 1px solid var(--line); border-radius: 10px; }
.registration-person { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.registration-person input { width: 20px; min-height: 20px; }
.registration-counts { display: grid; grid-template-columns: repeat(4, minmax(76px, 1fr)); gap: 8px; }
.registration-counts label { gap: 4px; color: var(--muted); font-size: 11px; }
.registration-counts input { min-height: 38px; padding: 7px; text-align: center; }
.registration-card:not(.selected) .registration-counts { opacity: .45; }
.spaghetti-total-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.spaghetti-total-heading small { color: var(--muted); }
.spaghetti-totals input { background: #f4eee7; font-weight: 800; }
.registrations-unavailable { margin: 0; color: var(--muted); font-size: 13px; }
.table-data-note { padding: 12px 14px; color: #5d4a21 !important; background: #fff5cf; border: 1px solid #ead89b; border-radius: 9px; font-size: 13px; }
.step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.spaghetti-success { text-align: center; }
.spaghetti-success > span { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 12px; color: white; background: #277043; border-radius: 50%; font-size: 34px; }
.spaghetti-success h3 { margin: 0; color: var(--red-dark); font: 700 28px Georgia, serif; }
.spaghetti-order { border-top: 4px solid var(--gold); }

.admin-main { max-width: 1100px; }
.login-panel { width: min(480px, 100%); margin: 8vh auto; padding: clamp(24px, 5vw, 42px); }
.login-panel h1 { font-size: 44px; }
.login-panel > p:not(.eyebrow) { color: var(--muted); }
.form-stack { display: grid; gap: 16px; margin-top: 28px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
input, select { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid #d9cec3; border-radius: 8px; outline: none; }
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(133,13,26,.12); }
.primary-button, .secondary-button, .danger-button { min-height: 42px; padding: 9px 15px; border-radius: 8px; font-weight: 800; }
.primary-button { color: white; background: var(--red); border: 1px solid var(--red); }
.secondary-button { color: var(--red); background: white; border: 1px solid #d9c9c8; }
.danger-button { color: #a20f1e; background: #fff3f3; border: 1px solid #f0c8cd; }
.error { min-height: 1.2em; color: #a20f1e; font-weight: 700; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { font-size: 48px; }
.admin-actions { display: flex; gap: 8px; }
.admin-tabs { display: flex; gap: 6px; margin: -8px 0 24px; padding: 5px; background: #eee5dc; border-radius: 11px; }
.admin-tabs button { flex: 1; min-height: 44px; padding: 9px 16px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-weight: 800; }
.admin-tabs button.active { color: var(--red); background: white; box-shadow: 0 3px 12px rgba(72,39,25,.1); }
.admin-tab-panel[hidden] { display: none; }
.registration-tabs { display: inline-flex; gap: 5px; margin-bottom: 14px; padding: 4px; background: #eee5dc; border-radius: 9px; }
.registration-tabs button { min-height: 39px; padding: 8px 18px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-weight: 800; }
.registration-tabs button.active { color: var(--red); background: white; box-shadow: 0 2px 9px rgba(72,39,25,.1); }
[data-registration-panel][hidden] { display: none; }
.tab-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.tab-panel-heading h2 { margin: 2px 0 0; color: var(--red-dark); font: 700 30px Georgia, serif; }
.admin-products { display: grid; gap: 10px; }
.registration-settings { padding: 20px; }
.table-layout-settings { padding: 20px; }
.table-layout-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.table-layout-summary span { padding: 7px 10px; color: var(--muted); background: #f4eee7; border-radius: 999px; font-size: 12px; }
.table-layout-summary b { color: var(--red-dark); }
.admin-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-table { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.admin-table > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px; background: #fff5eb; }
.admin-table h3 { margin: 2px 0 0; color: var(--red-dark); }
.admin-table header p { margin: 0; color: var(--muted); font-size: 12px; }
.table-actions { display: flex; gap: 5px; }
.table-actions button { min-height: 34px; padding: 6px 9px; font-size: 11px; }
.table-members { display: grid; }
.table-member, .unassigned-row { display: grid; grid-template-columns: 1fr minmax(150px, 210px); align-items: center; gap: 10px; padding: 10px 13px; border-top: 1px solid var(--line); }
.table-member small, .unassigned-row small { display: block; color: var(--muted); }
.table-member select, .unassigned-row select { min-height: 38px; }
.empty-table { margin: 16px; color: var(--muted); font-size: 13px; }
.unassigned-registrations { margin-top: 20px; }
.unassigned-registrations h3 { margin: 0 0 8px; color: var(--red-dark); font: 700 21px Georgia, serif; }
.unassigned-registrations > div { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.unassigned-row:first-child { border-top: 0; }
.event-settings { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr); align-items: end; gap: 18px; margin-bottom: 18px; padding: 20px; }
.event-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.event-settings > .order-message { grid-column: 2; margin: 0; }
.registration-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.registration-settings-heading h2 { margin: 2px 0 4px; }
.registration-settings-heading p { margin: 0; color: var(--muted); }
.admin-registrations { display: grid; gap: 8px; margin-top: 12px; }
.admin-registration { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, 1.3fr) 90px auto; align-items: center; gap: 14px; padding: 12px; background: #fffaf5; border: 1px solid var(--line); border-radius: 9px; }
.admin-registration p, .admin-registration small { margin: 0; color: var(--muted); }
.access-code { font: 800 18px/1 monospace; letter-spacing: .12em; color: var(--red-dark); }
.registration-ticket-editor { display: grid; gap: 8px; }
.registration-ticket-editor > b { margin-bottom: 3px; }
.registration-ticket-editor label { grid-template-columns: 1fr 90px; align-items: center; }
textarea { width: 100%; min-height: 90px; padding: 10px 12px; border: 1px solid #d9cec3; border-radius: 8px; resize: vertical; }
.logo-settings { display: grid; grid-template-columns: 72px minmax(180px, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 22px; padding: 18px; }
.logo-preview { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; color: white; background: var(--red); border-radius: 50%; font-size: 40px; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-copy h2 { margin: 1px 0 3px; font-size: 19px; }
.logo-copy p { margin: 0; color: var(--muted); }
.logo-form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.file-button { min-height: 42px; display: inline-flex; align-items: center; padding: 9px 15px; color: var(--red); background: white; border: 1px solid #d9c9c8; border-radius: 8px; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.logo-settings > .error { grid-column: 2 / -1; margin: 0; }
.home-images-settings { display: grid; gap: 12px; }
.settings-section-heading h2 { margin: 1px 0 3px; }
.settings-section-heading > p:last-child { margin: 0 0 8px; color: var(--muted); }
.home-image-setting { display: grid; grid-template-columns: 86px minmax(180px, 1fr) auto; align-items: center; gap: 18px; padding: 18px; }
.home-image-preview { width: 86px; height: 86px; display: grid; place-items: center; overflow: hidden; background: #fffaf5; border: 1px solid var(--line); border-radius: 12px; font-size: 44px; }
.home-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.home-image-form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.home-image-setting > .error { grid-column: 2 / -1; margin: 0; }
.admin-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px rgba(72,39,25,.06); }
.admin-product .product-image { width: 64px; height: 64px; }
.admin-product h2 { margin: 1px 0 3px; font-size: 17px; }
.admin-product p { margin: 0; color: var(--muted); }
.admin-product .product-category { color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-product-actions { display: flex; gap: 7px; }
dialog { width: min(620px, calc(100% - 28px)); padding: 0; background: white; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(32,12,8,.3); }
dialog::backdrop { background: rgba(31, 13, 10, .65); backdrop-filter: blur(4px); }
.product-form { padding: clamp(20px, 4vw, 32px); }
.dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; color: var(--red); font: 700 28px Georgia, serif; }
.icon-button { width: 38px; height: 38px; padding: 0; background: #f6f0e8; border: 0; border-radius: 50%; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 25px 0; }
.file-label { grid-column: 1 / -1; }
.file-label small { color: var(--muted); font-weight: 400; }
.dialog-actions { justify-content: flex-end; }

.bar-main { max-width: 1500px; }
.bar-main h1 { margin: 0; color: var(--red-dark); font: 700 clamp(38px, 5vw, 58px)/1 Georgia, serif; }
.bar-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.last-updated { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.order-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.order-column { min-width: 0; overflow: hidden; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 14px; }
.order-column > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: white; background: var(--red); }
.order-column.status-progress > header { background: #b36b0c; }
.order-column.status-ready > header { background: #277043; }
.order-column > header h2 { margin: 0; font: 700 22px Georgia, serif; }
.order-column > header span { min-width: 28px; height: 28px; display: grid; place-items: center; color: inherit; background: rgba(255,255,255,.18); border-radius: 50%; font-weight: 850; }
.order-list { display: grid; gap: 10px; padding: 10px; }
.empty-state { margin: 30px 10px; color: var(--muted); text-align: center; }
.bar-order { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 5px 18px rgba(72,39,25,.07); }
.bar-order > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bar-order h3 { margin: 2px 0 0; color: var(--red-dark); font: 700 22px Georgia, serif; }
.order-amount { display: grid; justify-items: end; color: var(--red); white-space: nowrap; }
.order-amount small { color: var(--muted); font-size: 10px; }
.order-time { color: var(--muted); font-size: 11px; font-weight: 750; }
.elapsed-time { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 7px; color: var(--red-dark); background: #f8eee9; border-radius: 999px; font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-progress .elapsed-time { color: #804800; background: #fff0d5; }
.status-ready .elapsed-time { color: #1d6036; background: #e6f4ea; }
.completed-list .elapsed-time { color: #526058; background: #edf2ee; }
.bar-order ul { display: grid; gap: 7px; margin: 12px 0; padding: 0; list-style: none; }
.bar-order li { display: grid; grid-template-columns: 30px 1fr; gap: 7px; }
.bar-order li strong { color: var(--red); }
.order-registration { margin: 10px 0 -3px; color: var(--muted); font-size: 12px; font-weight: 750; }
.dashboard-links { display: flex; align-items: center; gap: 10px; }
.order-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.order-action { width: 100%; min-height: 42px; color: white; background: var(--red); border: 0; border-radius: 8px; font-weight: 800; }
.order-delete { min-height: 42px; padding: 8px 12px; color: #a20f1e; background: #fff3f3; border: 1px solid #efc9cd; border-radius: 8px; font-weight: 800; }
.order-delete:hover { background: #fde5e8; }
.status-progress .order-action { background: #b36b0c; }
.status-ready .order-action { background: #277043; }
.order-action:disabled { opacity: .55; }
.completed-orders { margin-top: 24px; padding: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; }
.completed-orders summary { cursor: pointer; color: var(--muted); font-weight: 800; }
.completed-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.completed-label { display: grid; place-items: center; padding: 8px; color: #277043; background: #edf7f0; border-radius: 7px; text-align: center; font-size: 12px; font-weight: 800; }

@media (max-width: 980px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cart { position: static; scroll-margin-top: 20px; }
  .order-board { grid-template-columns: 1fr; }
  .completed-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { padding-bottom: 78px; }
  .site-header { min-height: 82px; padding: 10px 15px; }
  .brand-mark { height: 58px; font-size: 28px; }
  .brand-logo { max-width: min(58vw, 220px); }
  .brand-fallback { width: 52px; height: 52px; }
  .admin-link { padding: 8px 10px; font-size: 12px; }
  main { padding: 24px 12px 44px; }
  .charity-banner { display: block; margin-bottom: 12px; padding: 8px 10px; border-radius: 8px; }
  .banner-copy { display: block; line-height: 1.3; }
  .charity-banner span { margin-right: 3px; font-size: 13px; line-height: inherit; vertical-align: baseline; }
  .charity-banner strong { font-size: 10.5px; line-height: inherit; }
  .charity-banner a { display: inline; margin-left: 3px; padding: 0; background: transparent; border: 0; border-radius: 0; font-size: 10px; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
  .menu-grid { grid-template-columns: 1fr; gap: 13px; }
  .category-card { border-radius: 11px; }
  .product-row { grid-template-columns: 48px minmax(0, 1fr) auto 32px; padding-inline: 9px; }
  .product-image { width: 48px; height: 48px; }
  .price { font-size: 12px; }
  .mobile-cart { position: fixed; z-index: 5; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px max(11px, env(safe-area-inset-bottom)); color: white; background: linear-gradient(105deg, var(--red-dark), var(--red)); box-shadow: 0 -6px 20px rgba(66,5,12,.25); }
  .mobile-cart[hidden] { display: none; }
  .mobile-cart span { display: flex; gap: 8px; align-items: baseline; }
  .mobile-cart small { opacity: .85; }
  .mobile-cart button { padding: 9px 12px; color: var(--red); background: white; border: 0; border-radius: 8px; font-weight: 800; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; }
  .admin-actions button { flex: 1; }
  .admin-product { grid-template-columns: 54px 1fr; }
  .admin-product .product-image { width: 54px; height: 54px; }
  .admin-product-actions { grid-column: 1 / -1; }
  .admin-product-actions button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .file-label { grid-column: auto; }
  .logo-settings { grid-template-columns: 60px 1fr; }
  .logo-preview { width: 60px; height: 60px; }
  .logo-form { grid-column: 1 / -1; justify-content: stretch; }
  .logo-form > * { flex: 1 1 100%; justify-content: center; }
  .logo-settings > .error { grid-column: 1 / -1; }
  .home-image-setting { grid-template-columns: 60px 1fr; }
  .home-image-preview { width: 60px; height: 60px; font-size: 34px; }
  .home-image-form { grid-column: 1 / -1; justify-content: stretch; }
  .home-image-form > * { flex: 1 1 100%; justify-content: center; }
  .home-image-setting > .error { grid-column: 1 / -1; }
  .bar-heading { align-items: flex-start; flex-direction: column; }
  .bar-heading .admin-actions { width: 100%; }
  .completed-list { grid-template-columns: 1fr; }
  .choice-page { padding-bottom: 0; }
  .choice-main { min-height: calc(100vh - 82px); padding: 34px 16px 48px; }
  .choice-intro h1 { margin-bottom: 24px; font-size: 38px; }
  .choice-grid { grid-template-columns: 1fr; gap: 14px; }
  .choice-card { min-height: 180px; padding: 24px 18px; }
  .choice-icon { font-size: 50px; }
  .choice-icon img { width: 76px; height: 76px; }
  .spaghetti-quantities { grid-template-columns: 1fr; }
  .admin-registration { grid-template-columns: 1fr; }
  .admin-tables { grid-template-columns: 1fr; }
  .table-member, .unassigned-row { grid-template-columns: 1fr; }
  .event-settings, .event-form { grid-template-columns: 1fr; }
  .event-settings > .order-message { grid-column: 1; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs button { min-width: 130px; }
  .tab-panel-heading { align-items: flex-start; flex-direction: column; }
  .registration-counts { grid-template-columns: 1fr 1fr; }
  .step-actions > * { flex: 1; }
}
