/* ============ Nai Snow — design tokens ============ */
:root {
  --bg: #f2f5f0;
  --surface: #ffffff;
  --surface2: #ebf1ea;
  --ink: #1d2a23;
  --muted: #64756c;
  --jade: #2f7a5f;
  --jade-ink: #245c48;
  --gold: #d9a441;
  --warn: #b3661f;
  --danger: #c0392b;
  --line: rgba(29, 42, 35, 0.12);
  --shadow: 0 2px 10px rgba(29, 42, 35, 0.06);
  --shadow-lg: 0 16px 48px rgba(29, 42, 35, 0.18);
  --r: 16px;
  --font-body: "Manrope", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Noto Sans SC", -apple-system, sans-serif;
}
html[data-theme="dark"] {
  --bg: #121a16;
  --surface: #1b2620;
  --surface2: #253229;
  --ink: #e8efe9;
  --muted: #93a49a;
  --jade: #4fae87;
  --jade-ink: #6ec4a1;
  --gold: #e0b25e;
  --warn: #d99a55;
  --line: rgba(232, 239, 233, 0.12);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}
h1, h2, h3, .logo-text, .btn, .topnav a, .tab span { font-family: var(--font-display); }
button { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; border-radius: 6px; }

.ic { width: 21px; height: 21px; flex-shrink: 0; }
.hidden { display: none !important; }

/* ============ Header ============ */
.hdr {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(14px, 4vw, 36px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: #90de00; color: #fff;
  display: grid; place-items: center;
}
.logo-mark .ic { width: 30px; height: 30px; }
.logo-text { font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--jade); }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }

.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--muted); padding: 9px 14px; border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.topnav button:hover { color: var(--ink); background: var(--surface2); }
.topnav button.active { color: var(--jade-ink); background: color-mix(in srgb, var(--jade) 14%, transparent); }

.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
  position: relative; display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 10px; cursor: pointer;
  font-weight: 700; font-size: 12.5px; color: var(--ink);
  transition: border-color 0.15s, transform 0.1s;
}
.iconbtn:hover { border-color: var(--jade); }
.iconbtn:active { transform: scale(0.95); }
.iconbtn .ic { width: 18px; height: 18px; }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--gold); color: #241c0c;
  min-width: 19px; height: 19px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px;
}
.acctbtn {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  transition: border-color 0.15s;
}
.acctbtn:hover { border-color: var(--jade); }
.acctbtn .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--jade); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.acctbtn.signin { padding: 9px 16px; background: var(--jade); color: #fff; border-color: var(--jade); }

/* ============ Banner ============ */
.banner {
  display: flex; align-items: center; gap: 10px;
  max-width: 1160px; margin: 14px auto 0; width: calc(100% - 28px);
  padding: 12px 16px; border-radius: var(--r);
  background: linear-gradient(105deg, var(--jade), #4c9d76);
  color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.45;
}
.banner .ic { width: 22px; height: 22px; }

/* ============ Layout ============ */
.container { max-width: 1160px; margin: 0 auto; padding: 18px clamp(14px, 4vw, 36px) 110px; }
@media (min-width: 900px) { .container { padding-bottom: 40px; } }

.build-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) {
  .build-grid { grid-template-columns: 1fr 370px; align-items: start; }
  .preview-col { position: sticky; top: 78px; }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card > h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em;
}
.card > h3 .ic { width: 18px; height: 18px; color: var(--jade); }
.card > h3 .opt { color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--font-body); }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.warn-note { color: var(--warn); font-size: 12px; }

/* ============ Option tiles & chips ============ */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 9px; }
.tile {
  text-align: left; cursor: pointer;
  background: var(--surface2); border: 1.5px solid transparent; border-radius: 13px;
  padding: 11px 12px; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.tile:hover { border-color: color-mix(in srgb, var(--jade) 45%, transparent); }
.tile:active { transform: scale(0.98); }
.tile.sel { border-color: var(--jade); background: color-mix(in srgb, var(--jade) 12%, var(--surface)); }
.tile .t-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tile .t-name { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.tile .t-swatch { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tile .t-price { font-size: 12px; font-weight: 700; color: var(--jade-ink); white-space: nowrap; flex-shrink: 0; }
.tile .t-desc { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 5px; }
.tile .t-warn { font-size: 11px; color: var(--warn); margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid transparent; background: var(--surface2); color: var(--ink);
  border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: color-mix(in srgb, var(--jade) 45%, transparent); }
.chip.sel { border-color: var(--jade); background: color-mix(in srgb, var(--jade) 12%, var(--surface)); color: var(--jade-ink); }
.chip .ic { width: 16px; height: 16px; }
.chip-badge { background: var(--gold); color: #241c0c; border-radius: 999px; font-size: 10px; padding: 2.5px 8px; font-weight: 800; letter-spacing: 0.02em; }

/* ============ Builder accordion (mobile) & mini preview ============ */
.mini-preview { display: none; }
.acc-chev, .acc-val { display: none; }
@media (max-width: 999px) {
  .mini-preview {
    position: sticky; top: 62px; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 7px 14px 7px 10px; margin-bottom: 12px; box-shadow: var(--shadow);
  }
  .mini-preview .mp-name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
  .mini-preview .mp-price { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
  .card.acc > h3 { margin-bottom: 0; cursor: pointer; user-select: none; }
  .card.acc.open > h3 { margin-bottom: 12px; }
  .card.acc .acc-body { display: none; }
  .card.acc.open .acc-body { display: block; }
  .card.acc { scroll-margin-top: 130px; }
  .acc-val {
    display: block; margin-left: auto; font-family: var(--font-body); font-weight: 700;
    font-size: 11.5px; color: var(--jade-ink); max-width: 42%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .card.acc.open .acc-val { visibility: hidden; }
  .acc-chev { display: block; transition: transform 0.2s; }
  .acc-chev .ic { width: 17px; height: 17px; color: var(--muted); }
  .card.acc.open .acc-chev { transform: rotate(180deg); }
}

/* ============ Cup preview ============ */
.preview-card { text-align: center; }
.cup-wrap { display: flex; justify-content: center; padding: 6px 0 2px; }
.cup-liquid { animation: pour 0.55s cubic-bezier(0.2, 0.8, 0.3, 1); transform-origin: 50% 100%; }
@keyframes pour { from { transform: scaleY(0.82); opacity: 0.6; } }
.steam { animation: steam 2.6s ease-in-out infinite; }
.steam.s2 { animation-delay: 1.1s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(4px); }
  35% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-7px); }
}
.pearl { animation: sink 0.5s ease-out; }
@keyframes sink { from { transform: translateY(-26px); opacity: 0; } }
.preview-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-top: 4px; }
.preview-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; min-height: 2.4em; }

.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.summary-row.total { font-weight: 800; font-size: 18px; font-family: var(--font-display); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary-row .green { color: var(--jade-ink); font-weight: 700; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; cursor: pointer;
  background: var(--jade); color: #fff;
  font-size: 15.5px; font-weight: 700; padding: 14px; border-radius: 13px;
  transition: transform 0.1s, filter 0.15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: transparent; color: var(--jade-ink); border: 1.5px solid var(--jade); }
.btn.ghost { background: var(--surface2); color: var(--ink); }
.btn.small { font-size: 13.5px; padding: 10px 14px; border-radius: 11px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }

/* Toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 0; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 999px; background: var(--surface2); border: 1.5px solid var(--line); transition: 0.2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; left: 3px; top: 3px; background: var(--muted); transition: 0.2s; }
.switch input:checked + .slider { background: var(--jade); border-color: var(--jade); }
.switch input:checked + .slider::before { background: #fff; transform: translateX(17px); }

/* ============ Favorites ============ */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fav-card { display: flex; flex-direction: column; }
.fav-card .fav-cup { display: flex; justify-content: center; padding: 4px 0; }
.fav-card .f-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; text-align: center; }
.fav-card .f-desc { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; margin: 5px 0 10px; flex: 1; }
.fav-card .f-price { text-align: center; font-weight: 800; font-size: 16px; margin-bottom: 10px; }

/* ============ Orders ============ */
.order-item { border-bottom: 1px solid var(--line); padding: 13px 0; }
.order-item:last-child { border-bottom: 0; }
.o-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.o-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.o-rate { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.stars { display: inline-flex; gap: 3px; }
.stars button { border: 0; background: none; cursor: pointer; padding: 1px; color: var(--line); }
.stars button .ic { width: 19px; height: 19px; }
.stars button.on { color: var(--gold); }

.empty { text-align: center; color: var(--muted); padding: 44px 20px; font-size: 14px; line-height: 1.6; }
.empty .ic { width: 44px; height: 44px; display: block; margin: 0 auto 12px; color: var(--jade); opacity: 0.6; }

/* ============ Profile ============ */
.profile-grid { display: grid; gap: 0; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; } }
.sub-badge { display: inline-block; background: var(--jade); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.sub-badge.gold { background: var(--gold); color: #241c0c; }
textarea, input[type="text"], input[type="email"] {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface2); color: var(--ink);
  border-radius: 11px; padding: 11px 13px; font-size: 14px; font-family: var(--font-body);
  outline: none; resize: vertical; transition: border-color 0.15s;
}
textarea:focus, input:focus { border-color: var(--jade); }

.aspect-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.aspect-row .a-name { font-size: 13.5px; }

/* ============ Tabbar (mobile) ============ */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px max(6px, env(safe-area-inset-bottom));
}
.tab {
  flex: 1; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0;
  border-radius: 12px; transition: color 0.15s;
}
.tab .ic { width: 22px; height: 22px; }
.tab span { font-size: 10.5px; font-weight: 600; }
.tab.active { color: var(--jade-ink); }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (max-width: 899px) { .topnav { display: none; } .logo-text small { display: none; } }
@media (max-width: 560px) { .iconbtn span { display: none; } }

/* ============ AI widget ============ */
#aiFab {
  position: fixed; right: 18px; bottom: 84px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--jade); color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--jade) 55%, transparent);
  display: grid; place-items: center;
  transition: transform 0.15s, filter 0.15s;
}
#aiFab:hover { transform: scale(1.07); filter: brightness(1.08); }
#aiFab .ic { width: 28px; height: 28px; }
.fab-dot { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
@media (min-width: 900px) { #aiFab { bottom: 24px; right: 24px; } }

.panel {
  position: fixed; z-index: 46; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) {
  .panel { right: 24px; bottom: 94px; width: 400px; height: min(600px, calc(100vh - 130px)); border-radius: 20px; }
}
@media (max-width: 699px) {
  .panel { left: 0; right: 0; bottom: 0; height: 88vh; border-radius: 20px 20px 0 0; }
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.panel-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.panel-title .ic { color: var(--jade); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; }

.chat { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--jade); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: var(--surface2); border-bottom-left-radius: 5px; }
.msg.typing { color: var(--muted); font-style: italic; }
.mem-chip { align-self: flex-start; font-size: 11.5px; color: var(--jade-ink); background: color-mix(in srgb, var(--jade) 12%, transparent); border-radius: 999px; padding: 4px 11px; font-weight: 700; }

.drink-card {
  align-self: flex-start; width: 100%;
  background: var(--surface); border: 1.5px solid var(--jade); border-radius: 15px; padding: 13px;
}
.drink-card .dc-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.drink-card .dc-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.drink-card .dc-price { font-weight: 800; margin-bottom: 10px; }

.chat-input { display: flex; gap: 8px; padding-top: 12px; flex-shrink: 0; }
.chat-input input {
  flex: 1; border: 1.5px solid var(--line); background: var(--surface2); color: var(--ink);
  border-radius: 999px; padding: 12px 16px; font-size: 14.5px; outline: none;
}
.chat-input input:focus { border-color: var(--jade); }
.chat-input button {
  border: 0; background: var(--jade); color: #fff; border-radius: 50%;
  width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.chat-input button:disabled, .chat-input input:disabled { opacity: 0.5; cursor: default; }
.quota-note { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.quota-note a { color: var(--jade-ink); font-weight: 700; text-decoration: underline; }

.lock-box { text-align: center; padding: 26px 10px; }
.lock-box .ic { width: 54px; height: 54px; color: var(--jade); margin-bottom: 12px; }
.lock-box h3 { font-size: 17px; margin-bottom: 8px; }
.lock-box p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.progress-track { background: var(--surface2); border-radius: 999px; height: 10px; margin: 18px 0 8px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--jade), #4c9d76); height: 100%; border-radius: 999px; transition: width 0.3s; }

/* ============ Cart drawer ============ */
.overlay { position: fixed; inset: 0; z-index: 44; background: rgba(10, 16, 12, 0.45); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; z-index: 47; display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) { .drawer { top: 0; right: 0; bottom: 0; width: 420px; border-left: 1px solid var(--line); } }
@media (max-width: 699px) { .drawer { left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 20px 20px 0 0; } }

.cart-item { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-item .ci-cup { flex-shrink: 0; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-name { font-weight: 800; font-size: 13.5px; }
.cart-item .ci-desc { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item .ci-price { font-weight: 800; font-size: 14px; }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 27px; height: 27px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; display: grid; place-items: center; }
.qty button .ic { width: 14px; height: 14px; }
.qty b { font-size: 14px; min-width: 16px; text-align: center; }

/* ============ Google login ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10, 16, 12, 0.5); padding: 18px; }
.gcard {
  position: relative; width: 100%; max-width: 400px;
  background: var(--surface); border-radius: 26px; padding: 40px 36px 32px;
  box-shadow: var(--shadow-lg); text-align: center;
  animation: pop 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }
.gclose { position: absolute; top: 12px; right: 12px; border: 0; background: none; }
.glogo { width: 40px; height: 40px; margin-bottom: 14px; }
.gcard h2 { font-family: var(--font-body); font-weight: 500; font-size: 22px; margin-bottom: 6px; }
.gsub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.gacct {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer;
  padding: 13px 6px; font-size: 14px; transition: background 0.15s;
}
.gacct:last-of-type { border-bottom: 1px solid var(--line); }
.gacct:hover { background: var(--surface2); }
.gacct .avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.gacct .g-name { font-weight: 700; font-size: 13.5px; }
.gacct .g-mail { font-size: 12px; color: var(--muted); }
.gacct.other .avatar { background: var(--surface2); color: var(--muted); }
.gother { display: flex; gap: 8px; margin-top: 16px; }
.gother .btn { width: auto; }

/* ============ App dialog ============ */
.dlg {
  width: 100%; max-width: 360px;
  background: var(--surface); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.dlg h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.dlg input { margin-bottom: 4px; }
.dlg .btn-row { justify-content: flex-end; }
.dlg .btn { width: auto; padding-left: 20px; padding-right: 20px; }

.chip-price { color: var(--muted); font-weight: 600; font-size: 12px; }
.chip.sel .chip-price { color: var(--jade-ink); }

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%);
  z-index: 70; background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center;
  animation: pop 0.2s ease-out;
}
@media (min-width: 900px) { .toast { bottom: 30px; } }

/* ============ Motion & a11y ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
