/* =====================================================================
   Sonevaa Rewards — customer loyalty app styles.
   Phone first (360–430px), centred ~480px column on bigger screens.
   ===================================================================== */

@font-face { font-family: "Lora"; src: url("assets/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("assets/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("assets/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* brand */
  --rose: #E890A8;
  --rose-deep: #C7567E;
  --wine: #9E3A60;
  --plum: #6E3A5E;
  --gold: #CBA15B;
  --sage: #5F8A77;
  --cocoa: #8A5A48;

  /* surfaces & text (light) */
  --paper: #FFF7F4;
  --surface: #FFFFFF;
  --blush: #FBEDF1;
  --ink: #46303B;
  --muted: #7A5C67;          /* brand muted #8C6E78, deepened a touch for small text contrast */
  --line: #E7CDD6;
  --field: #A87C8C;          /* input borders: 3:1 against paper */
  --link: #9E3A60;
  --focus: #C7567E;
  --on-wine: #FFF7F4;
  --on-wine-soft: #F6D9E2;
  --on-gold: #3E2433;
  --stamp-empty: #D9B3C1;

  /* states */
  --gold-ink: #7E5F26;
  --gold-tint: #F8EEDC;
  --sage-ink: #477060;
  --sage-tint: #E8F0EC;
  --vegan-bg: #E6F1E8;
  --vegan-ink: #35704A;
  --vegan-line: #3C7A50;
  --danger: #A8322D;
  --danger-tint: #FCEBEA;
  --on-danger: #FFFFFF;
  --pos: #477060;
  --neg: #8A5A48;

  --shadow-pass: 0 22px 40px -26px rgba(110, 58, 94, .75);
  --shadow-toast: 0 10px 30px -10px rgba(70, 48, 59, .45);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --tabs-h: 64px;
  --col: 480px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1E1418;
    --surface: #2A1D23;
    --blush: #3A2630;
    --ink: #F7EAEF;
    --muted: #CDB3BE;
    --line: #4B3440;
    --field: #94737F;
    --link: #F2A9BE;
    --focus: #F2A9BE;
    --stamp-empty: #6A4B58;
    --gold-ink: #E8C98B;
    --gold-tint: #3A2D1B;
    --sage-ink: #9FD0B6;
    --sage-tint: #1D2D26;
    --vegan-bg: #1D3324;
    --vegan-ink: #A9DDB8;
    --vegan-line: #6FB385;
    --danger: #F3A39D;
    --danger-tint: #3D1F1F;
    --on-danger: #2A1214;
    --pos: #9FD0B6;
    --neg: #E3B4A2;
    --shadow-pass: 0 22px 40px -24px rgba(0, 0, 0, .8);
    --shadow-toast: 0 10px 30px -10px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.22; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
svg { flex: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus-visible { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- layout ---------- */
.app {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px calc(var(--tabs-h) + 36px + env(safe-area-inset-bottom));
}
body.is-public .app { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (max-width: 359px) { .app { padding-left: 16px; padding-right: 16px; } }
@media (min-width: 560px) {
  body { background: var(--blush); }
  .app { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
}

#view { display: block; }
#view:focus { outline: none; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px;
  padding-top: env(safe-area-inset-top);
}
.topbar:empty { min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; display: block; }   /* the SD seal (wine; light pink in dark mode) */
.back {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; min-width: 44px; padding: 0 14px 0 2px; margin-left: -6px;
  border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.back svg { width: 26px; height: 26px; }
.pill-offline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold-tint); color: var(--gold-ink); font-size: .8125rem; font-weight: 500;
}
.pill-offline svg { width: 16px; height: 16px; }

/* ---------- icons ---------- */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 14px;
  font: 500 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--wine); color: var(--on-wine); }

.btn-secondary { background: var(--surface); color: var(--link); border-color: currentColor; }

.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn-danger-outline { background: var(--surface); color: var(--danger); border-color: currentColor; }
.btn-plain {
  width: auto; min-height: 44px; padding: 0 10px; margin: 0 -10px;
  background: none; border: 0; color: var(--link); text-decoration: underline; text-underline-offset: .18em;
}

.btn-inline { width: auto; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn:active { transform: translateY(1px); }

/* Hover only where there is a real pointer, so styles don't stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--plum); }
  .btn-secondary:hover, .btn-danger-outline:hover { background: var(--blush); }
  .btn-danger:hover { filter: brightness(.94); }
  .btn-plain:hover { text-decoration-thickness: 2px; }
  .pw-toggle:hover, .icon-btn:hover, .back:hover { background: var(--blush); }
  .tabs a:hover .tab-ic { background: var(--blush); }
}
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500;
}

/* ---------- forms ---------- */
.page-head { margin: 4px 0 22px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .legend { font-weight: 500; font-size: .95rem; color: var(--ink); }
.legend .opt, .field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .875rem; color: var(--muted); line-height: 1.5; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 6px; }
.input, .select {
  display: block; width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--field); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: 1.3;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus-visible, .select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--wine); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.input[readonly] { background: var(--blush); border-color: var(--line); }
.input-code { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .4em; text-align: center; padding-left: calc(14px + .4em); }
.select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E3A60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px 20px;
}
@media (prefers-color-scheme: dark) {
  .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A9BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}
.duo { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.pw { position: relative; }
.pw .input { padding-right: 84px; }
.pw-toggle {
  position: absolute; top: 4px; right: 4px; bottom: 4px;
  min-width: 70px; padding: 0 12px;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--link); font-weight: 500; font-size: .95rem;
}


.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; line-height: 1.5; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--wine); cursor: pointer; }
.check-group { display: grid; gap: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--field); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: .95rem; font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: var(--vegan-bg); border-color: var(--vegan-line); color: var(--vegan-ink); }
.chip input:checked + span::before {
  content: ""; width: 16px; height: 16px; margin-left: -4px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; }
.switch-row .switch-text { display: grid; gap: 2px; }
.switch {
  -webkit-appearance: none; appearance: none; flex: none;
  position: relative; width: 52px; height: 32px; margin: 0;
  border-radius: 999px; background: var(--field); cursor: pointer;
  transition: background-color .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.switch:checked { background: var(--wine); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-error {
  padding: 12px 14px; border-radius: 12px;
  background: var(--danger-tint); color: var(--danger);
  font-size: .95rem; font-weight: 500; line-height: 1.45;
}
.form-foot { text-align: center; color: var(--muted); }
.form-foot a { font-weight: 500; }

/* ---------- notices & banners ---------- */
.note {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 14px;
  background: var(--gold-tint); color: var(--gold-ink); font-size: .95rem; line-height: 1.5;
}
.note .i { width: 22px; height: 22px; margin-top: 1px; }
.note-sage { background: var(--sage-tint); color: var(--sage-ink); }
.note-rose { background: var(--blush); color: var(--link); }
.banner {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px; margin: 0 0 12px;
  font-weight: 500; line-height: 1.4;
}
.banner .bi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.banner .bi .i { width: 22px; height: 22px; }
.banner small { display: block; font-weight: 400; font-size: .875rem; opacity: .95; }
.banner-gold { background: var(--gold-tint); color: var(--gold-ink); }
.banner-gold .bi { background: var(--gold); color: var(--on-gold); }
.banner-rose { background: var(--blush); color: var(--link); }
.banner-rose .bi { background: var(--wine); color: var(--on-wine); }

/* ---------- welcome ---------- */
.welcome { padding-top: calc(18px + env(safe-area-inset-top)); }
.arch {
  position: relative; isolation: isolate;
  max-width: 340px; margin: 0 auto;
  aspect-ratio: 340 / 318;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 30px 30px; text-align: center; color: var(--on-wine);
}
.arch-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.arch .glyph { width: 92px; height: 92px; margin-bottom: 8px; display: block; }
.arch h1 { color: var(--on-wine); font-size: 2.125rem; line-height: 1.15; }
.arch .at { margin-top: 6px; color: var(--on-wine-soft); font-size: .95rem; }
.benefits { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.benefits li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; }
.benefits .bi { width: 42px; height: 42px; border-radius: 13px; background: var(--blush); color: var(--link); display: grid; place-items: center; }
.cta { display: grid; gap: 12px; margin-top: 30px; }
.welcome-links { margin-top: 14px; text-align: center; }
.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 22px; margin-top: 18px; font-size: .875rem; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ---------- the card ---------- */
.greet { font-size: 1.75rem; margin: 2px 0 16px; }
.pass {
  position: relative; isolation: isolate;
  background: var(--wine); color: var(--on-wine);
  border-radius: 28px; padding: 18px 18px 16px;
  box-shadow: var(--shadow-pass);
}
.pass::after {
  content: ""; position: absolute; inset: 7px; z-index: -1;
  border: 1px solid rgba(203, 161, 91, .45); border-radius: 22px; pointer-events: none;
}
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; }
.pass-name { min-width: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--on-wine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px 4px 9px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.tier-chip .i { width: 16px; height: 16px; }
.pass-qr { background: #FFFFFF; border-radius: 20px; padding: 18px 16px 14px; text-align: center; }
.qr { display: block; width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
.code {
  margin-top: 10px; padding-left: .24em;
  font-family: var(--mono); font-size: 1.2rem; font-weight: 600; letter-spacing: .24em;
  color: #2B1D24; overflow-wrap: anywhere;
}
.pass-foot { margin-top: 13px; text-align: center; font-weight: 500; }

.section { margin-top: 30px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.count { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.count strong { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; }
.stamp-grid {
  margin: 14px 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px;
}
.stamp {
  aspect-ratio: 1 / 1; max-width: 64px; width: 100%; justify-self: center;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px dashed var(--stamp-empty); color: var(--stamp-empty);
}
.stamp svg { width: 56%; height: 56%; }
.stamp.is-filled { background: var(--wine); border-color: var(--wine); border-style: solid; color: var(--gold); }
.stamp.is-new { animation: stamp-in .55s cubic-bezier(.2, .9, .3, 1.35) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes stamp-in { from { transform: scale(.3) rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.points-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.points-num { font-family: var(--serif); font-weight: 600; font-size: 2.75rem; line-height: 1; color: var(--ink); }
.points-label { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.next-reward { margin-top: 12px; font-size: .95rem; }
.next-reward a { font-weight: 500; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.tier-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tier-name { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.tier-name .i { width: 20px; height: 20px; color: var(--gold-ink); }
.tier-mult { color: var(--muted); font-size: .875rem; }
.bar { height: 10px; border-radius: 999px; background: var(--blush); overflow: hidden; }
.bar > span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--wine); }
.bar-gold > span { background: var(--gold); }
.bar-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .875rem; color: var(--muted); }

.install {
  position: relative; margin-top: 24px; padding: 16px 52px 16px 16px;
  border-radius: 18px; border: 1.5px dashed var(--field); background: transparent;
}
.install h2 { font-size: 1.05rem; margin-bottom: 4px; }
.install p { font-size: .95rem; color: var(--muted); }
.install .share { display: inline-block; vertical-align: -4px; width: 20px; height: 20px; color: var(--link); }
.install .btn { margin-top: 12px; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted);
}

.install .icon-btn { position: absolute; top: 6px; right: 6px; }
.updated { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: .875rem; }
.updated .btn-plain { margin: 0; font-size: .875rem; font-weight: 500; }

/* ---------- rewards ---------- */
.lede { color: var(--muted); }
.lede strong { color: var(--ink); }
.reward-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.reward { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 18px; }
.reward.is-ready { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.reward-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.reward h2, .reward h3 { font-size: 1.15rem; }
.cost {
  flex: none; padding: 3px 11px; border-radius: 999px; margin-top: 1px;
  background: var(--blush); color: var(--link); font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.reward-desc { margin-top: 6px; }
.reward-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: .8125rem;
}
.reward-state { margin-top: 14px; }
.ready { display: flex; gap: 8px; align-items: flex-start; color: var(--sage-ink); font-weight: 500; font-size: .95rem; }
.ready .i { width: 20px; height: 20px; margin-top: 1px; }
.subhead { margin-top: 34px; }
.how { margin-top: 26px; }

/* ---------- activity ---------- */
.day { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--muted); margin: 26px 0 8px; }
.act-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.act { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.act-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--link); }
.act-ic .i { width: 21px; height: 21px; }
.act-ic.k-free_drink, .act-ic.k-birthday { background: var(--gold-tint); color: var(--gold-ink); }
.act-ic.k-welcome { background: var(--sage-tint); color: var(--sage-ink); }
.act-ic.k-refund, .act-ic.k-adjust { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.act-title { font-weight: 500; }
.act-note { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.act-time { color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.act-delta { display: grid; justify-items: end; gap: 2px; font-size: .875rem; font-weight: 600; white-space: nowrap; padding-top: 1px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.empty { text-align: center; padding: 36px 8px 8px; }
.empty .i { width: 40px; height: 40px; color: var(--rose-deep); margin-bottom: 8px; }
.empty h2 { font-size: 1.2rem; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 32ch; margin: 0 auto; }
.empty .btn { margin-top: 16px; }

/* ---------- profile ---------- */
.who { display: grid; gap: 2px; margin: 4px 0 6px; }
.who h1 { overflow-wrap: anywhere; }
.who p { color: var(--muted); overflow-wrap: anywhere; }
.block { margin-top: 30px; }
.block > h2 { margin-bottom: 14px; }
.block .panel { display: grid; gap: 20px; }
.readonly-row { display: grid; gap: 2px; }
.readonly-row .k { font-weight: 500; font-size: .95rem; }
.readonly-row .v { font-family: var(--serif); font-size: 1.15rem; }
.stack { display: grid; gap: 12px; }
.cafe { font-style: normal; display: grid; gap: 10px; }
.cafe .line { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.cafe .i { width: 20px; height: 20px; color: var(--link); margin-top: 2px; }
.cafe a { display: inline-flex; min-height: 44px; align-items: center; margin-top: -12px; margin-bottom: -12px; }
.danger-zone { border-color: var(--danger-tint); }
.danger-zone h3 { color: var(--danger); }
.confirm { display: grid; gap: 16px; padding-top: 4px; }

/* ---------- offline / loading ---------- */
.loading { display: grid; place-items: center; gap: 14px; padding: 30vh 0 0; color: var(--muted); text-align: center; }
.loading img { width: 56px; height: 56px; border-radius: 14px; }
.center-msg { padding-top: 12vh; text-align: center; display: grid; gap: 12px; justify-items: center; }
.center-msg .i { width: 44px; height: 44px; color: var(--rose-deep); }
.center-msg p { color: var(--muted); max-width: 34ch; }
.center-msg .btn { max-width: 280px; margin-top: 8px; }

/* ---------- bottom tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs ul { list-style: none; margin: 0 auto; padding: 0 4px; max-width: var(--col); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--tabs-h); text-decoration: none;
  color: var(--muted); font-size: .8125rem; font-weight: 500;
}
.tab-ic { position: relative; display: grid; place-items: center; width: 56px; max-width: 100%; height: 30px; border-radius: 999px; transition: background-color .15s ease; }
/* a gold dot on the Order tab while an order is on the go */
.tabs a.has-order .tab-ic::after {
  content: ""; position: absolute; top: 2px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px var(--surface);
}
.tab-ic .i { width: 23px; height: 23px; }
.tabs a[aria-current="page"] { color: var(--link); }
.tabs a[aria-current="page"] .tab-ic { background: var(--blush); }
.tabs a:focus-visible { outline-offset: -4px; border-radius: 14px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; z-index: 30;
  bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom));
  width: max-content; max-width: min(440px, calc(100% - 32px));
  transform: translate(-50%, 8px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--plum); color: #FFF7F4;
  font-weight: 500; font-size: .95rem; line-height: 1.4; text-align: center;
  box-shadow: var(--shadow-toast);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast:empty { padding: 0; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.is-public .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
body.has-basket .toast { bottom: calc(var(--tabs-h) + 88px + env(safe-area-inset-bottom)); }
body.is-public.has-basket .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* =====================================================================
   Ordering
   ===================================================================== */
body.has-basket .app { padding-bottom: calc(var(--tabs-h) + 112px + env(safe-area-inset-bottom)); }
body.is-public.has-basket .app { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

/* welcome: a way in for people at the café */
.order-link {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  margin-top: 22px; padding: 14px 14px 14px 16px; min-height: 44px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.order-link .bi { width: 42px; height: 42px; border-radius: 13px; background: var(--blush); color: var(--link); display: grid; place-items: center; }
.order-link strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.order-link small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.order-link > .i { width: 20px; height: 20px; color: var(--muted); }

/* card: link to the order on the go */
.order-banner { grid-template-columns: 40px minmax(0, 1fr) 20px; margin: 0 0 18px; text-decoration: none; }
.order-banner > .i { width: 20px; height: 20px; }

/* location card */
.loc { display: grid; gap: 14px; }
.loc-head { display: flex; align-items: center; gap: 12px; }
.loc-head .bi { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--link); display: grid; place-items: center; }
.loc-head .bi .i { width: 22px; height: 22px; }
.loc-head h2 { font-size: 1.2rem; }
.loc-lead { color: var(--muted); font-size: .95rem; }
.geo:empty { display: none; }
.geo-busy { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.geo-busy .i { width: 20px; height: 20px; color: var(--link); }
@media (prefers-reduced-motion: no-preference) { .geo-busy .i { animation: bob 1s ease-in-out infinite alternate; } }
@keyframes bob { to { transform: translateY(-3px); } }
.geo-help ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; }
.geo-help p + p { margin-top: 6px; }
.note-sage .i { color: var(--sage-ink); }

/* menu */
#menu-wrap { margin-top: 18px; }
.menu-msg { margin-top: 16px; }
.cat-nav {
  position: sticky; top: 0; z-index: 10;
  margin: 0 -20px; padding: 10px 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.cat-scroll {
  position: relative; display: flex; gap: 8px; padding: 0 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cat-chip[aria-current="true"] { background: var(--wine); border-color: var(--wine); color: var(--on-wine); }
.cat-chip:focus-visible { outline-offset: -1px; }
@media (max-width: 359px) { .cat-nav { margin: 0 -16px; } .cat-scroll { padding: 0 16px; } }

.menu-sec { margin-top: 26px; scroll-margin-top: 76px; }
.menu-sec > h2 { font-size: 1.25rem; margin-bottom: 4px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li + li { border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start;
  width: 100%; min-height: 56px; padding: 14px 0; margin: 0;
  border: 0; background: none; color: inherit; text-align: left; border-radius: 10px;
}
.item:focus-visible { outline-offset: 2px; }
.item-main { display: grid; gap: 3px; min-width: 0; }
.item-name { font-weight: 500; line-height: 1.35; }
.item-desc {
  color: var(--muted); font-size: .875rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.item-price { text-align: right; font-weight: 600; white-space: nowrap; line-height: 1.35; }
.item-price small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.item.is-muted .item-name, .item.is-muted .item-price { color: var(--muted); }
.dtag, .stag {
  display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: 6px;
  font-size: .75rem; font-weight: 500; line-height: 1.3;
}
.dtag { background: var(--vegan-bg); color: var(--vegan-ink); }
.stag { background: var(--gold-tint); color: var(--gold-ink); }
.stag-out { background: var(--danger-tint); color: var(--danger); }
.menu-foot { margin-top: 26px; padding: 14px 16px; border-radius: 14px; background: var(--blush); color: var(--link); font-size: .9rem; font-weight: 500; }

/* basket bar */
.basket-bar {
  position: fixed; left: 0; right: 0; z-index: 19;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding: 10px 16px 12px; pointer-events: none;
}
body.is-public .basket-bar { bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.basket-bar .btn {
  display: flex; max-width: calc(var(--col) - 32px); margin: 0 auto; pointer-events: auto;
  box-shadow: 0 12px 28px -10px rgba(110, 58, 94, .7);
}
.basket-bar .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sheets (native modal <dialog>) */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet {
  width: 100%; max-width: var(--col); max-height: 92vh; max-height: 92dvh;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 -12px 40px -14px rgba(0, 0, 0, .45);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(43, 24, 33, .55); }
@media (prefers-color-scheme: dark) {
  .sheet { box-shadow: 0 0 0 1px var(--line), 0 -12px 40px -14px rgba(0, 0, 0, .7); }
  .sheet::backdrop { background: rgba(0, 0, 0, .6); }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up .26s cubic-bezier(.2, .8, .3, 1); }
}
@keyframes sheet-up { from { transform: translateY(48px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) { .sheet { margin: auto; border-radius: 24px; max-height: 86vh; } }
.sheet-in { display: block; }
.sheet-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 16px 8px 10px 20px; background: var(--paper);
}
.sheet-head h2 { font-size: 1.4rem; padding-top: 7px; min-width: 0; overflow-wrap: anywhere; }
.sheet-x { flex: none; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sheet-x:hover { background: var(--blush); } }
.sheet-main { display: grid; gap: 20px; padding: 2px 20px 22px; }
.sheet-foot {
  position: sticky; bottom: 0; z-index: 2; display: grid; gap: 12px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
.sheet-desc { color: var(--muted); }
.sheet-desc + .item-tags { margin-top: 8px; }
.sheet-price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.stamp-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.stamp-hint .i { width: 20px; height: 20px; color: var(--gold-ink); }

.allergens { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.allergens h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.allergens .alg-ask { color: var(--link); font-weight: 500; font-size: .9rem; }

.optset .legend { display: block; margin-bottom: 8px; }
.opts { display: grid; gap: 8px; }
.opts-2 { grid-template-columns: 1fr 1fr; }
.opt-row {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt-row input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--wine); cursor: pointer; }
.opt-name { flex: 1; min-width: 0; font-weight: 500; }
.opt-price { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.opt-row:has(input:checked) { border-color: var(--wine); background: var(--blush); }
.opt-row:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-row input:focus-visible { outline: none; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1.5px solid var(--field); border-radius: 999px; background: var(--surface);
}
.step-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--link);
}
.step-btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.step-btn[aria-disabled="true"] { color: var(--field); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .step-btn:not([aria-disabled="true"]):hover { background: var(--blush); } }
.qty-v { min-width: 2.2ch; text-align: center; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.textarea { min-height: 76px; resize: vertical; }

/* basket */
.bl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bl { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.bl-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bl-name { font-weight: 500; overflow-wrap: anywhere; }
.bl-sub { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.bl-price { font-weight: 600; white-space: nowrap; }
.bl-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-remove { margin: 0; font-size: .95rem; }
.bl-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 500; }
.bl-total strong { font-family: var(--serif); font-size: 1.35rem; }
.ol-list + .bl-total { margin-top: 14px; }
.limit-msg { padding: 12px 14px; border-radius: 12px; background: var(--danger-tint); color: var(--danger); font-size: .95rem; font-weight: 500; }
.foot-lead { color: var(--muted); font-size: .95rem; text-align: center; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pair .btn { padding: 0 12px; }
.btn[aria-disabled="true"] { opacity: .55; }
.sheet .empty { padding: 20px 0 4px; }
.sheet .empty .i { width: 40px; height: 40px; color: var(--rose-deep); margin-bottom: 8px; }
.sheet .empty h3 { margin-bottom: 6px; }

/* order status */
.ostat { display: grid; gap: 22px; }
.ostat-card {
  position: relative; isolation: isolate; text-align: center;
  background: var(--wine); color: var(--on-wine);
  border-radius: 26px; padding: 20px 18px 18px; box-shadow: var(--shadow-pass);
}
.ostat-card::after {
  content: ""; position: absolute; inset: 7px; z-index: -1;
  border: 1px solid rgba(203, 161, 91, .45); border-radius: 20px; pointer-events: none;
}
.ostat-k { color: var(--on-wine-soft); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ostat-no { font-family: var(--serif); font-weight: 600; font-size: 3.75rem; line-height: 1.05; margin-top: 2px; font-variant-numeric: lining-nums; }
.ostat-type { margin-top: 6px; color: var(--on-wine-soft); font-size: .95rem; overflow-wrap: anywhere; }
.ostat.is-closed .ostat-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.ostat.is-closed .ostat-card::after { display: none; }
.ostat.is-closed .ostat-k, .ostat.is-closed .ostat-type { color: var(--muted); }
.ostat.is-closed .ostat-no { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.ostat-live h2 { font-size: 1.45rem; }
.ostat-live p { margin-top: 4px; color: var(--muted); }
.ostat-rest { display: grid; gap: 18px; }
.os-sub { font-size: 1.15rem; margin-bottom: 10px; }
.os-note { margin-top: 10px; overflow-wrap: anywhere; }
.cancel-box { display: grid; gap: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); isolation: isolate; }
.step { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: .875rem; line-height: 1.3; color: var(--muted); }
.step + .step::before {
  content: ""; position: absolute; z-index: -1; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--stamp-empty);
}
.step.is-done::before { background: var(--wine); }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--stamp-empty); background: var(--paper); color: var(--muted); font-weight: 600;
}
.step.is-done .dot { background: var(--wine); border-color: var(--wine); color: var(--gold); }
.step .dot .i { width: 18px; height: 18px; stroke-width: 2.6; }
.step.is-current { color: var(--ink); font-weight: 600; }
.step.is-current .dot { box-shadow: 0 0 0 5px var(--blush); }
@media (prefers-reduced-motion: no-preference) {
  .steps .step.is-current:not(:last-child) .dot { animation: pulse 1.8s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px var(--blush); } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- which store, confirm, pay (more than one Sonevaa; payment in the app) ---------- */
.menu-store { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; color: var(--muted); font-size: .9rem; }
.menu-store .i { width: 18px; height: 18px; flex: none; color: var(--wine); }
.menu-store strong { color: var(--ink); font-weight: 600; }
.store-pick { display: grid; gap: 8px; }
.store-alt { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0; }
.store-alt .btn-plain { min-height: 44px; padding: 0; text-align: left; }
.store-box { border: 1px solid var(--line); border-left: 4px solid var(--wine); border-radius: 16px; padding: 14px 16px; background: var(--blush); }
.sb-k { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.sb-addr { color: var(--ink); margin-top: 2px; overflow-wrap: anywhere; }
.sb-dist { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.sb-dist .i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--wine); }
.cf-list { margin-top: 4px; }
.foot-hint { text-align: center; margin-top: 8px; }
.pay-lead { margin: 0 0 4px; overflow-wrap: anywhere; }
.sumup-box { min-height: 220px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); }
.sumup-box > .muted { padding: 18px 4px; text-align: center; }
.pay-safe { display: flex; gap: 8px; align-items: flex-start; }
.pay-safe .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sage-ink); }
.pay-wait { margin: 2px 0 4px; }
.ostat-store { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 247, 244, .25); color: var(--on-wine); font-weight: 500; overflow-wrap: anywhere; }
.ostat-store .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.ostat-store small { display: block; color: var(--on-wine-soft); font-weight: 400; font-size: .85rem; }
.ostat.is-closed .ostat-store { color: var(--ink); border-top-color: var(--line); }
.ostat.is-closed .ostat-store small { color: var(--muted); }

/* =====================================================================
   Getting around (6 Nov 2026): home-screen steps, links on the welcome
   screen, the online shop on the Order tab, and the Account list.
   ===================================================================== */
.hs-steps { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .95rem; color: var(--muted); }
.hs-steps li { padding-left: 2px; }
.hs-steps strong { color: var(--ink); font-weight: 600; }
.hs-steps .share { display: inline-block; vertical-align: -4px; width: 20px; height: 20px; color: var(--link); }
.install .small, .acc-body .small { margin-top: 8px; color: var(--muted); }
.install-later a { font-weight: 500; }

.link-list { display: grid; gap: 12px; margin-top: 22px; }
.link-list .order-link { margin-top: 0; }

.shop-card { display: grid; gap: 14px; }
.shop-card .btn { margin-top: 2px; }
.menu-title { margin-top: 30px; }
.menu-sub { margin-top: 4px; }
.shop-link { margin-top: 16px; }

/* Account: one row per section; it opens in place */
.who.panel { display: grid; gap: 2px; margin: 0 0 18px; }
.who-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); overflow-wrap: anywhere; }
.acc-list { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.acc + .acc { border-top: 1px solid var(--line); }
.acc > summary {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  min-height: 64px; padding: 12px 14px 12px 16px; cursor: pointer; list-style: none;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 20px; }
.acc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--blush); color: var(--link); display: grid; place-items: center; }
.acc-ic .i { width: 21px; height: 21px; }
.acc-t strong { display: block; font-weight: 500; color: var(--ink); }
.acc-t small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc > summary > .i { width: 20px; height: 20px; color: var(--muted); transition: transform .15s ease; }
.acc[open] > summary > .i { transform: rotate(90deg); }
.acc[open] > summary { background: var(--blush); }
.acc[open] > summary .acc-ic { background: var(--surface); }
.acc-body { padding: 16px 16px 20px; display: grid; gap: 16px; }
.acc-body > p { color: var(--ink); }
.signout { margin-top: 18px; }
.acc-danger { margin-top: 18px; border-color: var(--danger-tint); }
.acc.danger .acc-ic { background: var(--danger-tint); color: var(--danger); }
.acc.danger .acc-t strong { color: var(--danger); }
.acc.danger[open] > summary { background: var(--danger-tint); }
@media (hover: hover) and (pointer: fine) {
  .acc > summary:hover { background: var(--blush); }
  .acc.danger > summary:hover { background: var(--danger-tint); }
}
@media (prefers-reduced-motion: reduce) { .acc > summary > .i { transition: none; } }
/* takeaway pick-up time: a day, then one list of times */
.when-days { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scrollbar-width: thin; }
.when-days .cat-chip { flex: none; }
.when-days .cat-chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--on-wine); }
