:root {
  --ground: #F6F1E7; --sand: #EDE4D3; --line: #D9CDB8; --card: #FFFFFF;
  --ink: #2A1717; --brown: #4B2E2E; --muted: #5E4A45; --faint: #6E5C57;
  --saffron: #E9A94F; --saffron-soft: #FBE8C8; --saffron-ink: #5A3608;
  --green: #156A41; --danger: #A32D2D;
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); -webkit-text-size-adjust: 100%; }
a { color: var(--brown); }
button { font-family: var(--body); }
.app { max-width: 480px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 24px; }
.screen.pad-nav { padding-bottom: 96px; }
h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; color: var(--faint); }
.spacer { flex: 1; }
.center { text-align: center; }
.btn { display: block; width: 100%; text-align: center; text-decoration: none; border: none; cursor: pointer;
  background: var(--brown); color: #FFF; font-weight: 600; font-size: 17px; padding: 16px; border-radius: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--brown); font-weight: 500; font-size: 15px; padding: 10px; }
.btn.outline { background: #FFF; color: var(--ink); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; }
.btn.soon { background: #F1EADD; color: var(--muted); border: 1.5px dashed #CBBBA2; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; }
.back { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--sand); border: none; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field input { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFF; padding: 0 12px; font: 16px var(--body); color: var(--ink); }
.field input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.consent { display: flex; flex-direction: column; gap: 10px; background: var(--sand); border-radius: 14px; padding: 14px; }
.consent label { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #3A2828; }
.consent input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; flex-shrink: 0; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--faint); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.error { color: var(--danger); font-size: 14px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); background: var(--sand); border-radius: 12px; padding: 12px 14px; }
.gift { display: flex; gap: 12px; align-items: center; background: var(--saffron-soft); border-radius: 16px; padding: 14px 16px; color: var(--saffron-ink); font-size: 15px; line-height: 1.35; }
.hero { position: relative; }
.hero svg.art { display: block; width: 100%; height: auto; }
.hero .logo { position: absolute; left: 20px; top: 20px; width: 64px; height: 64px; border-radius: 18px; background: var(--ground); display: flex; align-items: center; justify-content: center; }
.sheet { margin-top: -36px; position: relative; background: var(--ground); border-radius: 28px 28px 0 0; }
.digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.digits input { height: 58px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFF; text-align: center; font: 700 26px var(--display); color: var(--ink); width: 100%; }
.step { background: var(--card); border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.step b { display: block; font-size: 16px; margin-bottom: 2px; }
.step span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.qrcard { background: var(--brown); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #F6E9D2; }
.qrcard .top { display: flex; width: 100%; justify-content: space-between; align-items: center; font-size: 13px; }
.qrcard .top b { letter-spacing: .06em; text-transform: uppercase; }
.qrbox { background: #FFF; border-radius: 16px; padding: 12px; line-height: 0; }
.qrbox svg { width: 210px; height: 210px; }
.pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--green); color: #FFF; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; border: none; cursor: pointer; }
.stampcard { background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.stampcard .head { display: flex; justify-content: space-between; font-size: 15px; }
.stampcard .head b { font-weight: 600; }
.dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed #CBBBA2; }
.dot.on { background: var(--green); border: none; }
.free { height: 24px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--saffron-soft); color: var(--saffron-ink); }
.reward { background: var(--card); border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.badge { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 700 13px var(--display); }
.toast { background: var(--saffron); color: #3D2405; border-radius: 18px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #FFF; border-top: 1px solid #E6DCCB; padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 12px; color: var(--faint); padding: 6px; min-height: 44px; }
.nav a.active { color: var(--brown); font-weight: 600; }
.list-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--faint); padding: 0 4px; }
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--sand); flex-shrink: 0; }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: #D61A1B; color: #FFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.setgroup { background: var(--card); border-radius: 18px; padding: 4px 16px; display: flex; flex-direction: column; }
.sethead { font: 700 16px var(--display); padding: 12px 0 4px; }
.setrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border: none; border-top: 1px solid #F0E8DA; background: none; width: 100%;
  font: 16px var(--body); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.setrow > span:first-child { flex: 1; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: #CBBBA2; position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFF; transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.msg { background: var(--card); border: none; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; font-family: var(--body); width: 100%; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.tile b { font: 700 28px var(--display); }
.field textarea { min-height: 120px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFF; padding: 10px 12px; font: 16px var(--body); color: var(--ink); resize: vertical; }
.field select { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFF; padding: 0 10px; font: 16px var(--body); color: var(--ink); }
.mtabs { display: flex; gap: 6px; overflow-x: auto; }
.mtabs .tab { flex-shrink: 0; text-decoration: none; padding: 10px 14px; border-radius: 999px; background: var(--sand); color: var(--brown); font-weight: 600; font-size: 14px; }
.mtabs .tab.on { background: var(--brown); color: #FFF; }
.loading { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--faint); }
/* Chat (Talk to us / Ask DC) */
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chat-intro { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #FFF; color: var(--brown); border-radius: 999px; padding: 9px 14px; font: 500 14px var(--body); cursor: pointer; text-align: left; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; background: var(--brown); color: #FFF; border-bottom-right-radius: 6px; }
.bubble.assistant { align-self: flex-start; background: #FFF; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.system { align-self: center; background: var(--sand); color: var(--muted); font-size: 13px; }
.proposal { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--saffron-soft); color: var(--saffron-ink); display: flex; flex-direction: column; gap: 10px; white-space: normal; }
.proposal .pill { justify-content: center; }
.ghostpill { background: #FFF; color: var(--brown); border: 1.5px solid var(--line); }
.typing { display: flex; gap: 5px; align-items: center; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .6; } }
.handoff { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; align-self: flex-start; }
.chat-input { position: sticky; bottom: 84px; display: flex; gap: 8px; background: var(--ground); padding: 6px 0; }
.manager-chat .chat-input { bottom: 0; }
.chat-input input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFF; padding: 0 16px; font: 16px var(--body); color: var(--ink); }
.chat-input input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.send { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.send:disabled { opacity: .45; cursor: default; }
