:root {
  color-scheme: light;
  --ink: #1d1714;
  --muted: #746b65;
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --line: #e6ded2;
  --accent: #ef5b36;
  --accent-dark: #a8341e;
  --plum: #281b2c;
  --sage: #dbe4d8;
  --shadow: 0 24px 80px rgba(54, 36, 25, 0.11);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6eee7;
  --muted: #b9aaa2;
  --cream: #171216;
  --paper: #211a1f;
  --line: #43363e;
  --accent: #ff7048;
  --accent-dark: #ff9a7e;
  --plum: #120e14;
  --sage: #293b31;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% -10%, rgba(239, 91, 54, 0.12), transparent 27rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 84% -10%, rgba(255,112,72,.15), transparent 27rem),
    var(--cream);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.login-gate {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(480px, 1.1fr);
  min-height: 100vh;
  background: var(--paper);
}
.login-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.16), transparent 14rem),
    linear-gradient(145deg, #25172a, #44253a 58%, #d34d31 150%);
}
.login-art::before {
  content: "MOOD";
  position: absolute;
  left: -1rem;
  bottom: -2rem;
  color: rgba(255,255,255,.055);
  font-size: clamp(8rem, 19vw, 18rem);
  font-weight: 950;
  letter-spacing: -.09em;
}
.login-art::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,174,120,.24), rgba(239,91,54,.08) 42%, transparent 70%);
  filter: blur(3px);
  animation: ambient-orbit 14s ease-in-out infinite alternate;
}
.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 15px 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: 0 18px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(15px);
  font-weight: 750;
  text-align: center;
  opacity: 1;
  transition: opacity .45s ease;
  max-width: min(78vw, 280px);
}
.floating-card.cloud-fade-out { opacity: 0; }
.floating-card [data-cloud-lang] {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .6;
}
.card-one { top: 20%; left: 14%; --card-rotation: -4deg; animation: card-drift 6.5s ease-in-out infinite; }
.card-two { top: 44%; right: 10%; --card-rotation: 5deg; animation: card-drift 7.8s ease-in-out -2.2s infinite; }
.card-three { bottom: 30%; left: 24%; --card-rotation: -2deg; animation: card-drift 7.1s ease-in-out -4s infinite; }
.card-four { top: 8%; right: 22%; --card-rotation: 3deg; animation: card-drift 8.4s ease-in-out -1.1s infinite; }
.card-five { bottom: 10%; right: 30%; --card-rotation: -3deg; animation: card-drift 6.9s ease-in-out -3.3s infinite; }
.card-six { top: 62%; left: 6%; --card-rotation: 4deg; animation: card-drift 7.4s ease-in-out -0.6s infinite; }
.card-seven { top: 4%; left: 38%; --card-rotation: -5deg; animation: card-drift 6.2s ease-in-out -2.8s infinite; }
.card-eight { bottom: 42%; right: 6%; --card-rotation: 2deg; animation: card-drift 8.9s ease-in-out -1.7s infinite; }
.card-nine { bottom: 4%; left: 46%; --card-rotation: -4deg; animation: card-drift 7.7s ease-in-out -4.4s infinite; }
.card-ten { top: 34%; left: 58%; --card-rotation: 3deg; animation: card-drift 6.6s ease-in-out -0.3s infinite; }
@media (max-width: 900px) {
  .card-seven, .card-eight, .card-nine, .card-ten { display: none; }
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(540px, calc(100% - 64px));
  margin: auto;
  padding: 64px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -.025em;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-large { align-self: flex-start; margin-bottom: 58px; font-size: 20px; }
.brand-large img { width: 42px; height: 42px; }
.kicker, .rail-label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.login-card h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 6vw, 6.8rem);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.065em;
}
.service-links { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.service-link {
  display: block;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(35,25,20,.1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(35,25,20,.16); }
.service-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.landing-meta { display: flex; align-items: stretch; gap: 9px; max-width: 520px; margin: -12px 0 24px; }
.builders-link { display: flex; flex: 1; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.55); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.builders-link:hover { transform: translateY(-1px); border-color: var(--accent); }
.builders-link > span:last-child { display: grid; gap: 2px; }
.builders-link strong { font-size: 11px; }
.builders-link small { color: var(--muted); font-size: 9px; }
.swiggy-spark { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: #fc5b1b; font-weight: 950; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.55); cursor: pointer; font-size: 10px; font-weight: 900; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle.compact { min-height: 34px; padding: 0 9px; background: transparent; }
.top-builders-link { color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 850; }
.top-builders-link:hover { color: var(--accent-dark); }
.app-links { display: flex; gap: 9px; max-width: 520px; margin: 0 0 24px; }
.app-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.55); text-decoration: none; font-size: 12px; font-weight: 850; transition: transform .18s ease, border-color .18s ease; }
.app-link:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent-dark); }
.app-link-mark { font-size: 13px; }

.app-downloads-label { margin-top: 4px; }
.app-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; margin: 0 0 14px; }
.app-download-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.app-download-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(35,25,20,.1); }
.app-download-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(239,91,54,.16); }
.app-download-icon { flex: 0 0 26px; width: 26px; height: 26px; fill: var(--ink); }
.app-download-copy { display: grid; gap: 1px; line-height: 1.25; }
.app-download-copy strong { font-size: 13px; }
.app-download-copy small { color: var(--muted); font-size: 10.5px; }
.app-download-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 420px) {
  .app-downloads { grid-template-columns: 1fr; }
}
.login-actions { display: grid; gap: 10px; max-width: 430px; }
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.login-button:hover { transform: translateY(-1px); box-shadow: 0 12px 35px rgba(35,25,20,.08); }
.login-button.swiggy { color: #fff; border-color: var(--accent); background: var(--accent); }
.login-button.demo { background: transparent; }
.provider-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: rgba(0,0,0,.06); }
.unavailable { opacity: .48; }
.fine-print { max-width: 430px; margin: 18px 0 0; color: #988e86; font-size: 12px; line-height: 1.55; }

@keyframes ambient-orbit {
  from { transform: translate(-28%, -20%) scale(.85); }
  to { transform: translate(72%, 85%) scale(1.15); }
}
@keyframes card-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--card-rotation)); }
  50% { transform: translate3d(0, -12px, 0) rotate(calc(var(--card-rotation) + 1.5deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .login-art::after, .floating-card { animation: none !important; }
}

.participant-gate { min-height: 100vh; background: linear-gradient(150deg, #f8f3eb 0%, #fffdf8 55%, #f8e7dd 130%); }
.participant-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 30px; border-bottom: 1px solid var(--line); }
.private-pill { padding: 7px 10px; border-radius: 999px; color: #42604a; background: var(--sage); font-size: 11px; font-weight: 900; }
.participant-shell { display: grid; place-items: start center; padding: 58px 20px 90px; }
.participant-card { width: min(680px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.participant-card h1 { max-width: 590px; margin: 0 0 16px; font-family: Georgia, serif; font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.participant-summary { margin: 0; color: var(--muted); line-height: 1.5; }
.participant-stage { margin: 24px 0 4px; }
.stage-message { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; color: #55493f; background: #f1ece4; }
.stage-message span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.stage-message.success { color: #315c43; background: #e3eee4; }
.stage-message.voting { color: #5d362a; background: #ffe7dc; }
.stage-message.error { color: #8a2918; background: #ffe4da; }
.participant-card .preference-form { margin-top: 20px; padding-top: 0; border-top: 0; }
.choice-field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 900; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--cream); }
.segmented button { min-height: 38px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 850; }
.segmented button.selected { color: #fff; background: var(--plum); }
.participant-vote { display: grid; gap: 14px; margin-top: 18px; }
.participant-vote .options { margin-top: 0; }
.participant-vote > button { min-height: 48px; border: 0; border-radius: 14px; color: #fff; background: var(--accent); font-weight: 900; cursor: pointer; }
.stage-label { margin: 0; color: var(--accent-dark); font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.participant-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.participant-footer small { max-width: 470px; color: var(--muted); line-height: 1.45; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(100,78,60,.13);
  background: rgba(247,242,233,.8);
  backdrop-filter: blur(18px);
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.demo-badge { padding: 6px 9px; border-radius: 999px; color: #7a351f; background: #ffe0d1; font-size: 11px; font-weight: 900; }
.demo-badge.live { color: #315c43; background: #e3eee4; }
.top-nav-link { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 850; }
.top-nav-link:hover { color: var(--ink); }
.user-chip { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); }
.user-chip span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--plum); }
.text-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }

html[data-theme="dark"] :is(
  .login-button.google,
  .login-button.demo,
  .builders-link,
  .theme-toggle,
  .topbar,
  .rail-link.active,
  .surface,
  .recommendation-deck,
  .option-card,
  .bubble,
  .participant-card,
  .enterprise-flow article,
  .manager-input-review,
  .docs-diagram,
  .truth-grid article,
  .docs-table-wrap
) { background-color: #241d22; }
html[data-theme="dark"] :is(input, select, textarea, .composer, .meal-dial, #managerInputs article, .coverage-person, .fulfilment-block) {
  color: var(--ink);
  border-color: var(--line);
  background: #1c171b;
}
html[data-theme="dark"] :is(.option-card, .surface, .recommendation-deck, .participant-card) {
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
}
html[data-theme="dark"] .participant-gate { background: linear-gradient(150deg, #171216, #211a1f 58%, #38211f 130%); }
html[data-theme="dark"] .group-next-step { color: #ffd7c9; background: #3a231f; }
html[data-theme="dark"] .invite-code { color: #ffd6c9; background: #38231f; }
html[data-theme="dark"] .demo-badge { color: #ffc3ad; background: #46261f; }
html[data-theme="dark"] .moment-message .bubble {
  color: #e2d5ce;
  background: #2b2228;
}
html[data-theme="dark"] :is(.quick-replies button, .outline-button) {
  color: #fff8f2;
  border-color: #67535f;
  background: #342a30;
}
html[data-theme="dark"] :is(.quick-replies button, .outline-button):hover {
  color: #160f13;
  border-color: #ff9a7e;
  background: #ffb29c;
}
html[data-theme="dark"] .discovery-choices button {
  color: #fff8f2;
  border-color: #67535f;
  background: #342a30;
}
html[data-theme="dark"] .discovery-choices button:hover {
  border-color: #ff9a7e;
  background: #46363f;
}
html[data-theme="dark"] .discovery-choices button.selected {
  color: #160f13;
  border-color: #ff9a7e;
  background: #ff9a7e;
}
html[data-theme="dark"] .apply-meal-dial {
  color: #170d0a;
  background: #ff8a68;
}
html[data-theme="dark"] .apply-meal-dial:hover { background: #ff9f83; }
html[data-theme="dark"] .composer .voice-input {
  color: #fff8f2;
  border-color: #67535f;
  background: #342a30;
}
html[data-theme="dark"] .composer .voice-input:hover {
  color: #160f13;
  border-color: #ff9a7e;
  background: #ffb29c;
}
html[data-theme="dark"] .composer .voice-input.listening {
  color: #160f13;
  border-color: #ff9a7e;
  background: #ff9a7e;
}
html[data-theme="dark"] :is(.composer textarea::placeholder, input::placeholder, textarea::placeholder) {
  color: #bcaea6;
  opacity: 1;
}
html[data-theme="dark"] :is(.budget-dial small, .composer-hint) { color: #c5b7af; }
html[data-theme="dark"] button:disabled {
  color: #aa9da5;
  border-color: #493c44;
  background: #292228;
  opacity: 1;
}

.app-shell { display: grid; grid-template-columns: 230px minmax(0, 860px); justify-content: center; gap: 64px; min-height: calc(100vh - 72px); padding: 48px 32px 100px; }
.app-shell.docs-active { grid-template-columns: minmax(0, 1120px); gap: 0; }
.app-shell.docs-active .rail { display: none; }
.app-shell.docs-active .docs-view { width: 100%; }
.rail { position: sticky; top: 32px; display: flex; flex-direction: column; min-height: calc(100vh - 136px); align-self: start; }
.rail-label { padding-left: 12px; color: #9a8d83; }
.rail-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 13px;
  color: var(--muted); background: transparent; text-align: left; font-weight: 850; cursor: pointer;
}
.rail-link.active { color: var(--ink); background: rgba(255,255,255,.72); box-shadow: 0 8px 30px rgba(53,36,25,.06); }
.rail-link span { color: var(--accent); }
.rail-memory { margin-top: 28px; padding: 0 12px; }
.rail-section-head { display: flex; align-items: baseline; justify-content: space-between; }
.rail-section-head .rail-label { padding: 0; }
.rail-section-head > span { color: var(--muted); font-size: 10px; font-weight: 900; }
.memory-list { display: grid; gap: 7px; }
.memory-list article { display: grid; gap: 3px; padding-left: 9px; border-left: 2px solid #d8cabe; }
.memory-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.memory-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.memory-list .memory-addon { color: #8d4e38; }
.rail-spacer { flex: 1; min-height: 50px; }
.rail-note { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.45); }
.rail-note div { display: grid; gap: 3px; }
.rail-note small { color: var(--muted); line-height: 1.4; }
.pulse { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #3b8d68; box-shadow: 0 0 0 5px rgba(59,141,104,.12); }
.developer-panel { margin-top: 14px; color: var(--muted); font-size: 11px; }
.developer-panel summary { padding: 10px 14px; cursor: pointer; font-weight: 850; }
.developer-panel pre { max-height: 250px; overflow: auto; padding: 12px; border-radius: 12px; background: #211a18; color: #ddd2c8; white-space: pre-wrap; }

.view { min-width: 0; }
.conversation-head { max-width: 680px; padding: 24px 0 32px; }
.conversation-head h2, .group-hero h2 {
  margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 500; line-height: .95; letter-spacing: -.055em;
}
.conversation-head > p:last-child, .group-hero p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.chat-thread { display: grid; gap: 18px; max-width: 760px; min-height: 190px; padding: 8px 0 24px; }
.message { display: flex; align-items: flex-start; gap: 10px; }
.message.user { justify-content: flex-end; }
.avatar { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; overflow: hidden; border-radius: 10px; background: #ff9639; box-shadow: 0 5px 16px rgba(100,50,20,.12); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bubble { max-width: 650px; padding: 15px 18px; border-radius: 6px 20px 20px 20px; background: rgba(255,255,255,.75); box-shadow: 0 10px 36px rgba(61,42,29,.055); line-height: 1.55; }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 12px; }
.moment-message .bubble { color: #5e5048; background: #fff6ee; }
.message.user .bubble { color: #fff; border-radius: 20px 6px 20px 20px; background: var(--plum); }
.message.error .bubble { color: #8a2918; background: #ffe4da; }
.typing { display: flex; gap: 5px; padding: 19px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #93857c; animation: blink 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; }.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { to { opacity: .25; transform: translateY(-3px); } }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px 41px; }
.quick-replies:empty { display: none; }
.quick-replies button, .outline-button {
  min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.62); cursor: pointer; font-size: 12px; font-weight: 850;
}
.meal-dial {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .8fr) auto; align-items: end; gap: 18px;
  max-width: 800px; margin: 0 0 16px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.58); box-shadow: 0 10px 32px rgba(61,42,29,.04);
}
.meal-dial.only-budget { grid-template-columns: minmax(260px, 1fr) auto; }
.meal-dial.only-discovery { grid-template-columns: minmax(0, 1fr) auto; }
.dial-choice > span, .budget-dial b { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.discovery-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.discovery-choices button {
  min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 800; cursor: pointer;
}
.discovery-choices button.selected { color: #fff; border-color: var(--plum); background: var(--plum); }
.budget-dial { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; margin: 0; }
.budget-dial > span { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center; gap: 12px; }
.budget-dial output { color: var(--accent-dark); font-size: 15px; font-weight: 900; }
.budget-dial input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); cursor: pointer; }
.budget-dial small:last-child { text-align: right; }
.apply-meal-dial { min-height: 40px; padding: 9px 13px; border: 0; border-radius: 12px; color: #fff; background: var(--accent); font-size: 11px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.composer {
  display: grid; grid-template-columns: 1fr 42px 48px; align-items: end; gap: 8px; max-width: 800px; padding: 10px 10px 10px 18px;
  border: 1px solid #d8cec1; border-radius: 22px; background: #fff; box-shadow: var(--shadow);
}
.composer textarea { width: 100%; max-height: 140px; resize: none; border: 0; outline: 0; padding: 12px 0; background: transparent; color: var(--ink); line-height: 1.45; }
.composer button, form > button, #confirmGroupCart {
  display: grid; place-items: center; min-height: 46px; border: 0; border-radius: 14px; padding: 10px 16px; color: #fff; background: var(--accent); font-weight: 900; cursor: pointer;
}
.composer button { width: 48px; padding: 0; border-radius: 15px; font-size: 22px; }
.composer .voice-input { width: 42px; min-height: 42px; border: 1px solid var(--line); color: var(--muted); background: #f8f3eb; font-size: 17px; }
.composer .voice-input:hover { color: var(--accent-dark); border-color: #d7bbaa; }
.composer .voice-input.listening { color: #fff; border-color: var(--accent); background: var(--accent); animation: voicePulse 1.1s ease-in-out infinite alternate; }
.mic-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes voicePulse { to { box-shadow: 0 0 0 7px rgba(239,91,54,.12); } }
button:disabled { opacity: .4; cursor: not-allowed; }
.quick-replies button:hover, .outline-button:hover, .discovery-choices button:hover { border-color: #d7bbaa; }
:is(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.composer-hint { margin: 10px 0 0 18px; color: #998e86; font-size: 11px; }

.recommendation-deck, .surface, .channel-section {
  margin-top: 38px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,248,.8); box-shadow: var(--shadow);
}
.deck-head, .option-head, .surface-head, .group-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.deck-head h3 { max-width: 610px; margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.3; white-space: pre-line; }
.search-coverage { margin: 10px 0 16px; color: var(--muted); font-size: 13px; }
.search-coverage::before { content: "⌖"; margin-right: 7px; color: var(--accent); }
.options { display: grid; gap: 11px; margin-top: 23px; }
.option-card { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; transition: .16s ease; }
.option-card:hover { transform: translateY(-1px); border-color: #c9b8a9; }
.option-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239,91,54,.1); }
.option-rank { color: #b6aaa0; font-family: Georgia, serif; font-size: 19px; }
.option-head p { margin: 0 0 4px; color: var(--accent-dark); font-size: 10px; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.option-head h4 { margin: 0; font-size: 19px; }
.select-pill { padding: 7px 10px; border-radius: 999px; color: var(--muted); background: var(--cream); font-size: 11px; font-weight: 900; }
.selected .select-pill { color: #fff; background: var(--accent); }
.dish-line { margin: 14px 0 10px; font-weight: 750; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { padding: 5px 8px; border-radius: 999px; color: #53604f; background: #edf1e8; font-size: 11px; font-weight: 850; }
.reason { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.pairings { margin-top: 18px; padding: 20px; border-radius: 17px; color: #fff; background: var(--plum); }
.pairings h4 { margin: 0; font-family: Georgia, serif; font-size: 22px; }
.pairings .kicker { color: #f5a98e; }
.pairing-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.pairing-why { max-width: 290px; color: #d6cad5; font-size: 11px; }
.pairing-why summary { color: #fff; cursor: pointer; font-weight: 850; }
.pairing-why p { margin: 8px 0 0; line-height: 1.5; }
.pairing-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.pairing-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px; min-height: 108px; padding: 15px 15px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #fff; background: rgba(255,255,255,.07); text-align: left; cursor: pointer; }
.pairing-card:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.11); }
.pairing-card.selected { border-color: #f5a98e; background: rgba(239,91,54,.18); box-shadow: 0 0 0 2px rgba(245,169,142,.15); }
.pairing-card small { grid-column: 1 / -1; padding-right: 20px; color: #cfc3cf; line-height: 1.35; }
.pairing-check { position: absolute; right: 11px; bottom: 10px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; font-size: 14px; font-weight: 950; }
.pairing-card.selected .pairing-check { border-color: #f5a98e; color: var(--plum); background: #f5a98e; }
.pairing-price { font-weight: 850; }
.pairing-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); color: #cfc3cf; font-size: 12px; }
.pairing-summary strong { color: #fff; font-size: 16px; }
.cart-review-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px 18px; border: 1px solid #d9cdc0; border-radius: 16px; background: #fff; }
.cart-review-bar > div { display: flex; align-items: center; gap: 12px; }
.cart-review-bar > div > div { display: grid; gap: 3px; }
.cart-review-bar small { color: var(--muted); font-size: 11px; }
.cart-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffe8dd; font-size: 20px; }
.cart-review-bar button { display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; border-radius: 12px; padding: 10px 14px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 900; }
.cart-review-bar button span:first-child { padding-right: 12px; border-right: 1px solid rgba(255,255,255,.3); }
.cart-output { margin-top: 14px; padding: 18px; border-radius: 15px; color: #dceadb; background: #1e2a22; white-space: pre-wrap; }

.group-hero { align-items: end; padding: 24px 0 32px; }
.group-hero > div { max-width: 670px; }
.group-seal { padding: 9px 12px; border: 1px solid #b9c8b5; border-radius: 999px; color: #446040; background: var(--sage); font-size: 11px; font-weight: 900; }
.enterprise-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 18px; }
.enterprise-flow article { display: flex; gap: 10px; min-height: 128px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.enterprise-flow article > span { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: var(--plum); font-size: 11px; font-weight: 950; }
.enterprise-flow article div { display: grid; align-content: start; gap: 6px; }
.enterprise-flow small { color: var(--muted); line-height: 1.4; }
.group-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 16px; }
.group-grid.review-mode { grid-template-columns: 1fr; }
.surface { margin-top: 0; padding: 22px; box-shadow: 0 15px 50px rgba(54,36,25,.07); }
.surface-head { justify-content: flex-start; }
.surface-head > span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--plum); font-size: 11px; font-weight: 900; }
.surface-head h3 { margin: 0 0 4px; }.surface-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.group-create, .preference-form { display: grid; gap: 12px; }
.surface-head { margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 900; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fff; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239,91,54,.1); }
.progress-track { height: 8px; margin: 24px 0 16px; overflow: hidden; border-radius: 99px; background: #eee6dc; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s; }
.group-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.group-actions button { min-height: 38px; border: 0; border-radius: 999px; padding: 8px 13px; color: #fff; background: var(--accent); font-size: 11px; font-weight: 900; cursor: pointer; }
.group-actions .outline-button { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.invite-code { margin: 8px 0 14px; padding: 10px 12px; border-radius: 11px; color: #543428; background: #fff1e8; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.manager-input-review { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); }
.review-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-heading small { color: var(--muted); font-size: 10px; }
#managerInputs { display: grid; gap: 8px; max-height: 290px; overflow: auto; }
#managerInputs article { padding: 10px 11px; border-radius: 11px; background: var(--paper); }
#managerInputs article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#managerInputs span { padding: 3px 7px; border-radius: 99px; color: #466044; background: var(--sage); font-size: 9px; font-weight: 900; }
#managerInputs p { margin: 6px 0 4px; color: var(--ink); font-size: 12px; }
#managerInputs small { color: var(--muted); font-size: 10px; }
.preference-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.group-results { margin-top: 16px; }
.group-next-step { margin: 14px 0; padding: 13px 15px; border-left: 4px solid var(--accent); border-radius: 10px; color: #563b31; background: #fff1e8; font-size: 12px; font-weight: 800; line-height: 1.5; }
.fulfilment-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.fulfilment-line span { padding: 5px 8px; border-radius: 99px; color: #4b5f48; background: var(--sage); font-size: 9px; font-weight: 900; }
.coverage-panel { display: grid; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.coverage-title, .coverage-person { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.coverage-title span { color: var(--muted); font-size: 10px; font-weight: 900; }
.coverage-person { padding: 9px 10px; border-radius: 10px; background: #f7f4ef; }
.coverage-person > div { display: grid; gap: 2px; }
.coverage-person > div:nth-child(2) { justify-items: end; text-align: right; }
.coverage-person strong { font-size: 11px; }
.coverage-person small { color: var(--muted); font-size: 9px; }
.coverage-person > div:nth-child(2) span { color: #41613f; font-size: 9px; font-weight: 950; text-transform: uppercase; }
.coverage-person.compromise { border: 1px solid #ecb199; background: #fff0e8; }
.coverage-person.compromise > div:nth-child(2) span { color: #a44025; }
.group-cart-panel { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.group-cart-panel h4 { margin: 0; font-size: 13px; }
.fulfilment-block { padding: 10px 12px; border-radius: 10px; background: #f7f4ef; font-size: 11px; }
.fulfilment-block p { margin: 4px 0 0; color: var(--muted); }
.coverage-person.unanswered { border: 1px dashed #c8bcae; }
.coverage-person p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.group-addon-panel { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr); gap: 18px; margin: 18px 0; padding: 18px; border-radius: 16px; color: #fff; background: var(--plum); }
.group-addon-panel h4 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.group-addon-panel > div > small { color: #cfc3cf; line-height: 1.45; }
#groupAddOnOptions { display: grid; gap: 7px; }
#groupAddOnOptions button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #fff; background: rgba(255,255,255,.06); text-align: left; cursor: pointer; }
#groupAddOnOptions button.selected { border-color: #f7a388; background: rgba(239,91,54,.24); box-shadow: 0 0 0 2px rgba(239,91,54,.18); }
#groupAddOnOptions button span { display: grid; gap: 3px; }
#groupAddOnOptions button small { color: #cfc3cf; font-size: 9px; }
#groupAddOnOptions button b { white-space: nowrap; font-size: 11px; }
.channel-section { margin-top: 40px; background: var(--plum); color: #fff; }
.channel-section h3 { margin: 0; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.channel-copy { max-width: 700px; margin: 8px 0 0; color: #cfc3cf; line-height: 1.5; }
.channel-section .kicker { color: #f6a58a; }
.channel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.channel-cards article { display: grid; align-content: start; gap: 8px; padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.channel-cards small { color: #cfc3cf; line-height: 1.4; }
.channel-cards em { margin-top: 5px; color: #f5a98e; font-size: 10px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.channel-logo { width: 36px; height: 36px; object-fit: contain; }
.integration-faq { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.06); }
.integration-faq summary { cursor: pointer; font-weight: 900; }
.integration-faq ol { display: grid; gap: 8px; margin: 14px 0 10px; padding-left: 20px; color: #d6cad5; font-size: 12px; line-height: 1.5; }
.integration-faq p { margin: 0; color: #d6cad5; font-size: 12px; line-height: 1.5; }
.integration-faq code { color: #fff; }

.docs-view { width: min(1040px, calc(100vw - 340px)); }
.docs-hero { padding: 24px 0 34px; border-bottom: 1px solid var(--line); }
.docs-hero h2 { max-width: 790px; margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7vw, 6.6rem); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.docs-hero > p:last-of-type { max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.truth-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.truth-strip span { padding: 7px 10px; border-radius: 999px; color: #3f5b43; background: #e4ede2; font-size: 10px; font-weight: 900; }
.docs-layout { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 34px; padding-top: 40px; }
.docs-toc { position: sticky; top: 28px; display: grid; align-content: start; gap: 10px; align-self: start; padding: 14px 0; border-top: 1px solid var(--line); }
.docs-toc strong { margin-bottom: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.docs-toc a { color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 750; }
.docs-toc a:hover { color: var(--accent-dark); }
.docs-content { display: grid; gap: 54px; min-width: 0; }
.docs-section { scroll-margin-top: 28px; }
.docs-heading { display: grid; grid-template-columns: 1fr minmax(260px, .9fr); gap: 32px; align-items: end; margin-bottom: 18px; }
.docs-heading > div { display: flex; align-items: center; gap: 12px; }
.docs-heading span { color: var(--accent); font-family: Georgia, serif; font-size: 16px; }
.docs-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.docs-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.docs-diagram { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.docs-diagram img { display: block; width: 100%; height: auto; }
.docs-diagram figcaption { display: flex; justify-content: flex-end; padding: 9px 13px; border-top: 1px solid var(--line); background: #faf6ef; }
.docs-diagram a { color: var(--accent-dark); font-size: 10px; font-weight: 850; text-decoration: none; }
.truth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.truth-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.65); }
.truth-grid p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.call-sequence { display: grid; grid-template-columns: 90px 1fr; gap: 9px 15px; margin-top: 12px; padding: 16px; border-radius: 14px; color: #d9cedb; background: var(--plum); font-size: 11px; line-height: 1.5; }
.call-sequence code { color: #f7a589; font-weight: 900; }
.truth-boundary, .docs-note { margin-top: 12px; padding: 15px 17px; border-left: 3px solid var(--accent); background: #fff5ed; }
.truth-boundary p, .docs-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.truth-boundary p { margin: 5px 0 0; }
.docs-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.docs-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 10.5px; line-height: 1.45; }
.docs-table th, .docs-table td { padding: 11px 12px; border-bottom: 1px solid #eee6dc; text-align: left; vertical-align: top; }
.docs-table th { color: #5f544c; background: #f6f0e7; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.docs-table td:nth-child(2) { font-weight: 800; }
.docs-table code, .docs-heading code { color: #873721; background: #fff0e8; }
.code-block { overflow: auto; margin: 12px 0 0; padding: 18px; border-radius: 14px; color: #e9e0e8; background: #211923; font-size: 10.5px; line-height: 1.55; }
.ranking-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.ranking-list li { display: grid; grid-template-columns: 25px 145px 1fr; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.65); counter-increment: ranking; }
.ranking-list li::before { content: counter(ranking); display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #fff; background: var(--plum); font-size: 10px; font-weight: 900; }
.ranking-list span { color: var(--muted); font-size: 11px; }
.docs-gaps { padding: 24px; border-radius: 18px; color: #fff; background: var(--plum); }
.docs-gaps .docs-heading { margin-bottom: 12px; }
.docs-gaps .docs-heading span, .docs-gaps .docs-heading p { color: #f5a98e; }
.docs-gaps ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 30px; margin: 0; padding-left: 18px; color: #d9cedb; font-size: 11px; line-height: 1.5; }

@media (max-width: 900px) {
  .login-gate { grid-template-columns: 1fr; }.login-art { display: none; }
  .top-builders-link { display: none; }
  .app-shell { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .docs-view { width: 100%; }
  .rail { position: static; flex-direction: row; min-height: auto; align-items: center; overflow: auto; }
  .rail-label, .rail-spacer, .rail-note, .developer-panel, .rail-memory { display: none; }
  .rail-link { width: auto; white-space: nowrap; }
  .group-grid, .enterprise-flow { grid-template-columns: 1fr 1fr; }
  .meal-dial { grid-template-columns: 1fr 1fr; }.apply-meal-dial { grid-column: 1 / -1; }
  .docs-layout { grid-template-columns: 1fr; }.docs-toc { position: static; grid-template-columns: repeat(6, auto); overflow-x: auto; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 16px; }.user-chip strong, .text-button { display: none; }
  .app-shell { padding: 16px 14px 70px; }
  .conversation-head h2, .group-hero h2 { font-size: 3rem; }
  .quick-replies { margin-left: 0; }
  .meal-dial { grid-template-columns: 1fr; padding: 14px; }.apply-meal-dial { grid-column: auto; }
  .recommendation-deck, .surface, .channel-section { padding: 18px; border-radius: 18px; }
  .deck-head, .group-hero { display: grid; }
  .option-card { grid-template-columns: 1fr; }.option-rank { display: none; }
  .pairing-list, .channel-cards, .two-col, .enterprise-flow { grid-template-columns: 1fr; }
  .pairing-head, .participant-footer { display: grid; }
  .pairing-why { max-width: none; }
  .cart-review-bar, .docs-heading { display: grid; }
  .cart-review-bar button { justify-content: space-between; }
  .truth-grid { grid-template-columns: 1fr; }
  .docs-toc { grid-template-columns: repeat(6, max-content); }
  .ranking-list li { grid-template-columns: 25px 1fr; }.ranking-list span { grid-column: 2; }
  .docs-gaps ul { grid-template-columns: 1fr; }
  .participant-topbar { padding: 0 16px; }
  .participant-shell { padding: 24px 12px 60px; }
  .participant-card { padding: 24px 18px; border-radius: 20px; }
  .login-card { width: min(100% - 36px, 540px); }.brand-large { margin-bottom: 40px; }
  .group-addon-panel { grid-template-columns: 1fr; }
  .landing-meta { display: grid; grid-template-columns: 1fr auto; }
}
