:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8ecf4;
  background: #0b1019;
  font-size: 15px;
  font-synthesis: none;
  --bg: #0b1019;
  --card: #131a29;
  --card-raised: #182236;
  --border: #263249;
  --border-soft: rgba(148, 163, 184, .14);
  --text: #e8ecf4;
  --muted: #9aa6ba;
  --primary: #6366f1;
  --primary-strong: #4f46e5;
  --primary-soft: rgba(99, 102, 241, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 100px;
  background: radial-gradient(ellipse at 82% -18%, rgba(79, 70, 229, .15), transparent 44%), var(--bg);
  color: var(--text);
}
button, input, textarea, select { font: inherit; }
button { padding: 9px 13px; border: 1px solid #34415a; border-radius: 9px; background: #202b3f; color: #e1e7f1; cursor: pointer; font-size: 12px; font-weight: 650; transition: filter .15s, border-color .15s, background .15s; }
button:hover:not(:disabled):not(.qty-step):not(.course-chip):not(.dock-button) { filter: brightness(1.12); border-color: #52617d; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
a { color: #a5b4fc; }
a:hover { color: #c7d2fe; }
.hidden { display: none !important; }

.site-header, main { width: min(100% - 40px, 1040px); margin-inline: auto; }
.site-header {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #e8ecf4; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #c7d2fe; background: var(--primary-soft); border: 1px solid rgba(129, 140, 248, .24); border-radius: 10px; font-size: 17px; }
.organiser-link { color: #b2bdd0; text-decoration: none; font-size: 13px; font-weight: 600; }
.organiser-link span { color: #818cf8; margin-left: 3px; }

main { padding-top: 34px; }
.hero { padding: 22px 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #a5b4fc; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #818cf8; box-shadow: 0 0 14px rgba(129, 140, 248, .6); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin: 12px 0 8px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.hero > p { max-width: 620px; margin-bottom: 17px; color: #aab4c6; font-size: 15px; line-height: 1.65; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid rgba(129, 140, 248, .22); border-radius: 999px; background: var(--primary-soft); color: #c7d2fe; font-size: 12px; font-weight: 650; }
.pill-muted { border-color: var(--border); background: rgba(148, 163, 184, .08); color: #b0bbce; }

.panel { margin: 15px 0; padding: 23px; border: 1px solid var(--border); border-radius: 17px; background: rgba(19, 26, 41, .94); box-shadow: 0 5px 24px rgba(0, 0, 0, .12); }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 19px; }
.step-number { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(129, 140, 248, .24); border-radius: 10px; background: var(--primary-soft); color: #a5b4fc; font-size: 12px; font-weight: 800; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-caption { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
label { display: block; margin-bottom: 7px; color: #cbd3e1; font-size: 12px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid #303d55; border-radius: 10px; outline: none; background: #0d1421; color: var(--text); padding: 11px 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: #69768d; }
input:focus, textarea:focus, select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
textarea { min-height: 84px; resize: vertical; }

.search-wrap { position: relative; display: block; margin: 2px 0 14px; }
.search-wrap input { height: 46px; padding-left: 42px; background: #0d1421; }
.search-icon { position: absolute; z-index: 1; top: 6px; left: 14px; color: #8290a9; font-size: 25px; line-height: 30px; }
.course-nav { position: sticky; z-index: 5; top: 8px; display: flex; gap: 7px; overflow-x: auto; margin: 0 -4px 15px; padding: 5px 4px 10px; scrollbar-width: thin; }
.course-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: #151e2e; color: #bac5d7; cursor: pointer; font-size: 12px; font-weight: 650; transition: background .16s, border-color .16s, color .16s; }
.course-chip:hover { border-color: #59627e; color: #edf0f7; }
.course-chip.active { border-color: rgba(129, 140, 248, .55); background: rgba(79, 70, 229, .22); color: #d9ddff; }
.course-chip span { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: rgba(129, 140, 248, .22); color: #d9ddff; font-size: 10px; }
.course-section { margin-top: 20px; }
.course-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--border-soft); }
.course-heading h3 { margin: 0; color: #e3e8f2; font-size: 14px; font-weight: 750; }
.course-heading > span { color: #7f8ba1; font-size: 11px; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dish-card { min-width: 0; padding: 14px; border: 1px solid #29364c; border-radius: 13px; background: #151e2e; transition: border-color .16s, background .16s, box-shadow .16s; }
.dish-card:hover { border-color: #3b4962; background: #172236; }
.dish-card.is-selected { border-color: rgba(129, 140, 248, .65); background: linear-gradient(145deg, rgba(79, 70, 229, .12), #151e2e 52%); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .13); }
.dish-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dish-copy { min-width: 0; }
.dish-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.dish-title-row h4 { margin: 1px 0 5px; color: #e7ebf3; font-size: 13px; line-height: 1.4; font-weight: 700; }
.dish-price { flex: 0 0 auto; color: #c2cbe0; font-size: 12px; font-weight: 700; }
.price-note { color: #8290a9; font-size: 10px; font-weight: 500; }
.dish-description { margin: 0; color: #98a5ba; font-size: 11px; line-height: 1.5; }
.dish-allergens { margin: 6px 0 0; color: #c2a67a; font-size: 10px; line-height: 1.4; }
.quantity-control { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 3px; border: 1px solid #303d55; border-radius: 10px; background: #0e1522; }
.qty-step { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #dce1ed; cursor: pointer; font-size: 19px; line-height: 1; }
.qty-step:hover:not(:disabled) { background: rgba(129, 140, 248, .17); color: #c7d2fe; }
.qty-step:disabled { color: #526078; cursor: default; }
.quantity-control input.qty { width: 26px; height: 30px; padding: 0; border: 0; background: transparent; text-align: center; font-size: 12px; font-weight: 750; appearance: textfield; -moz-appearance: textfield; }
.quantity-control input.qty::-webkit-inner-spin-button, .quantity-control input.qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.configure { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.size-label { max-width: 300px; }
.size-label select { margin-top: 6px; padding: 9px 10px; font-size: 12px; }
.optiongroup { min-width: 0; margin: 11px 0 0; padding: 11px 0 0; border: 0; border-top: 1px solid var(--border-soft); }
.optiongroup legend { padding: 0; color: #d3daea; font-size: 12px; font-weight: 700; }
.option-requirement { margin-left: 5px; color: #8491a8; font-size: 10px; font-weight: 500; }
.option-list { display: grid; gap: 3px; margin-top: 7px; }
.optionline { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 0; padding: 5px 7px; border-radius: 8px; color: #b9c4d6; cursor: pointer; font-size: 11px; font-weight: 500; }
.optionline:hover { background: rgba(148, 163, 184, .06); }
.optionline input[type="checkbox"], .optionline input[type="radio"] { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; padding: 0; accent-color: var(--primary); }
.option-copy { min-width: 0; flex: 1; }
.option-price { color: #8c99b0; font-size: 10px; }
.optqty { width: 56px; padding: 5px 6px; font-size: 11px; }

.review-panel { scroll-margin-top: 18px; }
.empty-cart { padding: 14px; border: 1px dashed #34415a; border-radius: 10px; color: #95a2b7; background: rgba(13, 20, 33, .55); font-size: 12px; line-height: 1.5; }
.cart-lines { display: grid; gap: 0; }
.cart-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.cart-line div { display: grid; gap: 4px; }
.cart-line strong { color: #e3e8f2; font-size: 12px; }
.cart-line span { color: #91a0b6; font-size: 11px; }
.cart-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px 16px; color: #a8b4c8; font-size: 12px; }
.cart-total-row strong { color: #d9ddff; font-size: 15px; }
.notes-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 7px; }
.optional { color: #8491a8; font-size: 10px; font-weight: 500; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 17px; }
.primary-button, .button { min-height: 42px; padding: 10px 17px; border: 1px solid rgba(165, 180, 252, .3); border-radius: 10px; background: linear-gradient(180deg, #6366f1, #4f46e5); color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 12px rgba(79,70,229,.18); transition: filter .15s, transform .15s, box-shadow .15s; }
.primary-button:hover:not(:disabled), .button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(79,70,229,.26); }
.primary-button:disabled, button:disabled { opacity: .48; cursor: not-allowed; }
.hint { color: #8794aa; font-size: 11px; }
.allergy-note { margin: 14px 0 0; color: #8491a8; font-size: 11px; line-height: 1.55; }
.status { margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(52, 211, 153, .22); border-radius: 10px; background: rgba(16, 185, 129, .1); color: #a7f3d0; font-size: 13px; }
.status.error { border-color: rgba(248, 113, 113, .26); background: rgba(239, 68, 68, .1); color: #fecaca; }
.order-dock { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100vw - 1040px) / 2)); border-top: 1px solid rgba(129, 140, 248, .2); background: rgba(14, 20, 33, .94); box-shadow: 0 -8px 30px rgba(0, 0, 0, .22); backdrop-filter: blur(16px); }
.order-dock > div { display: grid; gap: 3px; }
.order-dock strong { color: #e7ebf4; font-size: 12px; }
.order-dock span { color: #9ba8bd; font-size: 11px; }
.dock-button { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px 13px; border: 1px solid rgba(165, 180, 252, .26); border-radius: 9px; background: var(--primary-soft); color: #d9ddff; cursor: pointer; font-size: 12px; font-weight: 700; }
.dock-button:hover:not(:disabled) { background: rgba(99, 102, 241, .25); }
.dock-button:disabled { color: #748098; }
.footer { padding: 26px 18px 28px; color: #68758c; text-align: center; font-size: 11px; }
.footer span { color: #818cf8; }

/* Organiser dashboard styles share the Notes app's slate cards and indigo accents. */
.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.metric { padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: #151e2e; }
.metric b { display: block; font-size: 27px; }
.metric span { color: var(--muted); font-size: 12px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itemedit { display: grid; grid-template-columns: 1fr 1.2fr 1.7fr .7fr auto; align-items: center; gap: 8px; margin: 9px 0; }
.itemedit input { padding: 9px; }
.secondary { border: 1px solid var(--border); background: #202b3f; color: #e1e7f1; }
.danger { border: 1px solid rgba(248, 113, 113, .2); background: rgba(185, 28, 28, .35); color: #fecaca; }
.small { min-height: 32px; padding: 7px 10px; font-size: 11px; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 11px 9px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; font-size: 12px; }
th { color: #a5b4fc; font-size: 11px; }
.scroll { overflow-x: auto; }
.importpanel { margin: 12px 0; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #151e2e; }
.importpanel input { margin: 9px 0; }

@media (max-width: 720px) {
  .site-header, main { width: min(100% - 28px, 1040px); }
  main { padding-top: 23px; }
  .panel { padding: 17px; border-radius: 14px; }
  .grid, .three, .dish-grid { grid-template-columns: 1fr; }
  .dish-title-row { gap: 7px; }
  .dish-card { padding: 13px; }
  .course-nav { margin-right: -8px; margin-left: -8px; }
  .order-dock { padding: 10px 14px; }
  .itemedit { grid-template-columns: 1fr 1fr; }
  .itemedit input:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 420px) {
  .site-header { min-height: 60px; }
  .brand { gap: 7px; font-size: 10px; }
  .brand-mark { width: 27px; height: 27px; }
  .organiser-link { font-size: 11px; }
  h1 { font-size: 36px; }
  .hero { padding-top: 14px; }
  .section-heading { gap: 10px; }
  .order-dock { gap: 8px; }
  .dock-button { padding-inline: 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
