/* lxv-vault.css — the LXV Vault phone app (/vault/), 2026-11-01.
   Maison Mittal palette (Kunal, 2026-10-29) and type (Playfair Display headings,
   Montserrat body). Every colour, size and radius below is a token defined in
   :root — nothing else in this file names a colour or a font size.
   The page loads no theme CSS, so nothing here has to fight Bridge/Elementor. */

:root {
  /* Maison Mittal refined palette — same names as content-snippets/maison-mittal-palette.css */
  --mm-terracotta: #A36D50;
  --mm-french-linen: #E3DCC3;
  --mm-chalk-beige: #D6C2A1;
  --mm-deep-bordeaux: #5C2C27;
  --mm-antique-gold: #C9A66B;
  --mm-graphite-grey: #3A3A3A;
  --mm-obsidian-black: #0D0D0D;

  /* Roles (lighter linen grounds keep it clean; all derived from the palette) */
  --v-bg: color-mix(in srgb, var(--mm-french-linen) 38%, white);
  --v-surface: color-mix(in srgb, var(--mm-french-linen) 10%, white);
  --v-sunk: color-mix(in srgb, var(--mm-french-linen) 70%, white);
  --v-ink: var(--mm-obsidian-black);
  --v-muted: var(--mm-graphite-grey);
  --v-line: color-mix(in srgb, var(--mm-graphite-grey) 14%, transparent);
  --v-line-strong: color-mix(in srgb, var(--mm-graphite-grey) 28%, transparent);
  --v-brand: var(--mm-deep-bordeaux);
  --v-brand-press: color-mix(in srgb, var(--mm-deep-bordeaux) 85%, black);
  --v-on-brand: var(--mm-french-linen);
  --v-dark: var(--mm-obsidian-black);
  --v-on-dark: var(--mm-french-linen);
  --v-gold: var(--mm-antique-gold);
  --v-accent: var(--mm-terracotta);
  --v-accent-text: color-mix(in srgb, var(--mm-terracotta) 72%, black);   /* terracotta that passes 4.5:1 for small text */
  --v-wash: color-mix(in srgb, var(--mm-terracotta) 11%, transparent);
  --v-chip: color-mix(in srgb, var(--mm-chalk-beige) 55%, white);
  --v-scrim: color-mix(in srgb, var(--mm-obsidian-black) 45%, transparent);
  --v-shadow: 0 1px 2px color-mix(in srgb, var(--mm-obsidian-black) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--mm-obsidian-black) 7%, transparent);
  --v-shadow-up: 0 -8px 30px color-mix(in srgb, var(--mm-obsidian-black) 16%, transparent);

  --v-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --v-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-micro: 0.6875rem;   /* 11 */
  --fs-small: 0.8125rem;   /* 13 */
  --fs-body: 0.9375rem;    /* 15 */
  --fs-lead: 1.0625rem;    /* 17 */
  --fs-title: 1.375rem;    /* 22 */
  --fs-display: 1.875rem;  /* 30 */
  --fs-hero: 2.75rem;      /* 44 */

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --r-s: 8px; --r-m: 14px; --r-l: 20px; --r-pill: 999px;
  --tap: 44px;
  --tabbar-h: 64px;
  --max: 560px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v-body {
  margin: 0; background: var(--v-bg); color: var(--v-ink);
  font-family: var(--v-body); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.v-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.v-app { max-width: var(--max); margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.v-boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); background: var(--v-dark); color: var(--v-on-dark); }
.v-boot__mark { font-family: var(--v-display); font-size: var(--fs-hero); color: var(--v-gold); letter-spacing: .04em; }
.v-boot__text { font-size: var(--fs-small); opacity: .8; }
.v-noscript { padding: var(--sp-6); }

.v-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: calc(env(safe-area-inset-top) + var(--sp-3)) var(--sp-5) var(--sp-3);
  background: color-mix(in srgb, var(--mm-french-linen) 38%, white); /* = --v-bg, solid for the blur */
  background: color-mix(in srgb, var(--v-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.v-top.is-scrolled { border-bottom-color: var(--v-line); }
.v-mark { font-family: var(--v-display); font-size: var(--fs-title); letter-spacing: .05em; text-decoration: none; }
.v-mark small { font-family: var(--v-body); font-size: var(--fs-micro); letter-spacing: .22em; text-transform: uppercase; color: var(--v-accent-text); margin-left: var(--sp-2); vertical-align: middle; }
.v-avatar {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--v-line-strong);
  background: var(--v-surface); font-size: var(--fs-small); font-weight: 600; cursor: pointer;
  display: grid; place-items: center; text-decoration: none; color: var(--v-ink);
}
.v-order__items { display: flex; flex-direction: column; gap: var(--sp-2); padding: 0 var(--sp-4) var(--sp-4); }

.v-main { flex: 1; padding: var(--sp-2) var(--sp-5) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--sp-8) + 96px); }  /* + room for the Ask button (fix list B2: 96px so the last card clears it) */
/* Fix list B1: no Ask button over the welcome / sign-in screens or any open sheet. */
body:has(.v-onb) .v-ask-fab, body:has(.v-signin) .v-ask-fab, body:has(.v-sheet-wrap) .v-ask-fab { display: none; }
.v-view { display: flex; flex-direction: column; gap: var(--sp-6); animation: v-in .28s var(--ease); }
@keyframes v-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.v-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--v-surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--v-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.v-tabs__in { width: 100%; max-width: var(--max); display: flex; }
.v-tab {
  flex: 1; min-height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--v-muted); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .02em;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.v-tab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.v-tab[aria-current="page"] { color: var(--v-brand); font-weight: 600; }
.v-tab[aria-current="page"] svg { transform: translateY(-1px); stroke-width: 1.8; }
.v-tab { position: relative; }
/* Shop-tab cart count (2026-11-02) */
.v-badge {
  position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: var(--mm-deep-bordeaux, var(--v-brand)); color: var(--mm-french-linen, var(--v-surface));
  font-size: 0.6875rem; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0;
}

/* ── Type ──────────────────────────────────────────────────────────────── */
.v-eyebrow { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--v-accent-text); margin: 0; }
.v-h1 { font-family: var(--v-display); font-weight: 400; font-size: var(--fs-display); line-height: 1.12; margin: 0; letter-spacing: -.005em; }
.v-h2 { font-family: var(--v-display); font-weight: 400; font-size: var(--fs-title); line-height: 1.2; margin: 0; }
.v-h3 { font-size: var(--fs-body); font-weight: 600; margin: 0; }
.v-muted { color: var(--v-muted); }
.v-small { font-size: var(--fs-small); }
.v-p { margin: 0; }
.v-head { display: flex; flex-direction: column; gap: var(--sp-1); padding-top: var(--sp-2); }
.v-sec { display: flex; flex-direction: column; gap: var(--sp-3); }
.v-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }

/* ── Controls ──────────────────────────────────────────────────────────── */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-width: 0; max-width: 100%; text-align: center; overflow-wrap: anywhere;
  min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-pill);
  border: 0; background: var(--v-brand); color: var(--v-on-brand);
  font-size: var(--fs-body); font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent;
}
.v-btn:active { transform: scale(.98); background: var(--v-brand-press); }
.v-btn[disabled] { opacity: .55; cursor: default; }
.v-btn--ghost { background: transparent; color: var(--v-ink); box-shadow: inset 0 0 0 1px var(--v-line-strong); }
.v-btn--ghost:active { background: var(--v-wash); }
.v-btn--gold { background: var(--v-gold); color: var(--v-dark); }
.v-btn--block { width: 100%; }
.v-btn--sm { min-height: var(--tap); padding: 0 var(--sp-4); font-size: var(--fs-small); }
.v-row-btns { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.v-row-btns > * { flex: 1 1 140px; }

.v-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--v-brand); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.v-link::after { content: '\2192'; transition: transform .2s var(--ease); }
.v-link:hover::after { transform: translateX(3px); }
.v-link--plain::after { content: none; }
.v-on-dark .v-link { color: var(--v-gold); }

.v-chips { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--sp-5)); padding: 2px var(--sp-5); }
.v-chips::-webkit-scrollbar { display: none; }
.v-chip {
  flex: none; min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-pill);
  border: 1px solid var(--v-line-strong); background: transparent; font-size: var(--fs-small); font-weight: 500; cursor: pointer; white-space: nowrap;
}
.v-chip[aria-pressed="true"] { background: var(--v-ink); color: var(--v-on-dark); border-color: var(--v-ink); }

.v-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--v-sunk); }
.v-seg button { min-height: var(--tap); border: 0; border-radius: var(--r-pill); background: transparent; font-size: var(--fs-small); font-weight: 600; color: var(--v-muted); cursor: pointer; }
.v-seg button[aria-pressed="true"] { background: var(--v-surface); color: var(--v-ink); box-shadow: var(--v-shadow); }

.v-input {
  width: 100%; min-height: 48px; padding: 0 var(--sp-4); border-radius: var(--r-m);
  border: 1px solid var(--v-line-strong); background: var(--v-surface); font-size: 1rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.v-wheel-controls, .v-wheel-result { min-width: 0; }
.v-wheel-view { gap: var(--sp-4); }
.v-wheel-summary { min-height: var(--tap); cursor: pointer; padding: var(--sp-3) 0; font-size: var(--fs-small); font-weight: 600; }
.v-wheel-filters[open] .v-wheel-summary { margin-bottom: var(--sp-2); }
.v-wheel-controls select { min-width: 0; max-width: 100%; }
.v-wheel-result { overflow-wrap: anywhere; }
.v-wheel-wines { margin: 0; padding-left: var(--sp-5); display: grid; gap: var(--sp-2); }
.v-wheel-wine { border-top: 1px solid var(--v-line); padding-top: var(--sp-3); }
.v-card { background: var(--v-surface); border-radius: var(--r-l); padding: var(--sp-5); box-shadow: var(--v-shadow); display: flex; flex-direction: column; gap: var(--sp-3); }
.v-card--flat { box-shadow: none; border: 1px solid var(--v-line); }
.v-card--wash { background: var(--v-wash); box-shadow: none; }
.v-card--dark { background: var(--v-dark); color: var(--v-on-dark); box-shadow: none; }
.v-card--dark .v-eyebrow { color: var(--v-gold); }
.v-card--dark .v-muted { color: var(--v-on-dark); opacity: .78; }
.v-card--link { text-decoration: none; transition: transform .15s var(--ease); }
.v-card--link:active { transform: scale(.99); }

.v-hero { position: relative; overflow: hidden; padding: var(--sp-6); gap: var(--sp-2); }
.v-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--mm-antique-gold) 35%, transparent); pointer-events: none;
}
.v-hero__num { font-family: var(--v-display); font-size: var(--fs-hero); line-height: 1; }
.v-hero__num span { font-size: var(--fs-title); margin-left: var(--sp-2); }
.v-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-3); margin-top: var(--sp-2); }

.v-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.v-split { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.v-split > :first-child { min-width: 0; }

/* Horizontal scroller */
.v-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sp-5); scrollbar-width: none; margin: 0 calc(-1 * var(--sp-5)); padding: 2px var(--sp-5) var(--sp-2); }
.v-rail::-webkit-scrollbar { display: none; }
.v-rail > * { scroll-snap-align: start; }

.v-tile { display: flex; flex-direction: column; border-radius: var(--r-m); overflow: hidden; background: var(--v-surface); box-shadow: var(--v-shadow); text-decoration: none; min-width: 0; }
.v-tile__img { aspect-ratio: 16 / 10; background: var(--v-sunk) center / cover no-repeat; }
.v-tile__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: 4px; }
.v-tile__title { font-weight: 600; font-size: var(--fs-small); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }

/* Dated rows (events, visits) */
.v-date { flex: none; width: 48px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.v-date b { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .12em; color: var(--v-accent-text); }
.v-date span { font-family: var(--v-display); font-size: var(--fs-title); }

/* ── Lists ─────────────────────────────────────────────────────────────── */
.v-list { list-style: none; margin: 0; padding: 0; background: var(--v-surface); border-radius: var(--r-l); box-shadow: var(--v-shadow); overflow: hidden; }
.v-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); min-height: 64px; border-top: 1px solid var(--v-line); }
.v-item:first-child { border-top: 0; }
.v-item--btn { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; }
.v-item--btn:first-child { border-top: 0; }
.v-item--btn:active { background: var(--v-wash); }
.v-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v-item__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-item__sub { font-size: var(--fs-small); color: var(--v-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-item__end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.v-count { font-family: var(--v-display); font-size: var(--fs-title); line-height: 1; color: var(--v-brand); }
.v-count--zero { color: var(--v-muted); opacity: .6; }
.v-chev { flex: none; width: 18px; height: 18px; stroke: var(--v-muted); fill: none; stroke-width: 1.6; }

.v-thumb { flex: none; width: 40px; height: 56px; border-radius: var(--r-s); background: var(--v-sunk) center / contain no-repeat; display: grid; place-items: center; }
.v-thumb--bottle::before { content: ''; width: 12px; height: 40px; border-radius: 5px 5px 2px 2px; background: var(--v-brand); }
.v-thumb--spice::before { content: ''; width: 22px; height: 26px; border-radius: 5px; background: var(--v-accent); }

.v-empty { text-align: center; padding: var(--sp-8) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }

/* ── Skeleton ──────────────────────────────────────────────────────────── */
.v-skel { border-radius: var(--r-l); background: linear-gradient(90deg, var(--v-sunk), var(--v-surface), var(--v-sunk)); background-size: 200% 100%; animation: v-shimmer 1.2s linear infinite; }
@keyframes v-shimmer { to { background-position: -200% 0; } }

/* ── Sheet (bottom drawer) ─────────────────────────────────────────────── */
.v-sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: var(--v-scrim); animation: v-fade .2s; }
@keyframes v-fade { from { opacity: 0; } }
.v-sheet {
  width: 100%; max-width: var(--max); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--v-bg); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--v-shadow-up);
  padding: var(--sp-3) var(--sp-5) calc(env(safe-area-inset-bottom) + var(--sp-6));
  display: flex; flex-direction: column; gap: var(--sp-5); animation: v-up .28s var(--ease);
}
@keyframes v-up { from { transform: translateY(40px); opacity: .4; } }
.v-sheet__grab { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--v-line-strong); }
.v-sheet__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.v-close { width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--v-sunk); cursor: pointer; display: grid; place-items: center; }
.v-close svg { width: 18px; height: 18px; stroke: var(--v-ink); stroke-width: 1.8; fill: none; }

/* Wine detail */
.v-wine-hero { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-4); align-items: end; }
.v-wine-hero__img { height: 200px; border-radius: var(--r-m); background: var(--v-sunk) center / contain no-repeat; display: grid; place-items: center; }
.v-wine-hero__img.is-empty::before { content: ''; width: 26px; height: 120px; border-radius: 10px 10px 4px 4px; background: var(--v-brand); }
.v-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; background: var(--v-surface); border-radius: var(--r-m); padding: var(--sp-3) 0; box-shadow: var(--v-shadow); }
.v-stats > div { display: flex; flex-direction: column; gap: 2px; }
.v-stats > div + div { border-left: 1px solid var(--v-line); }
.v-stats b { font-family: var(--v-display); font-weight: 400; font-size: var(--fs-title); line-height: 1.1; }
.v-stats span { font-size: var(--fs-micro); color: var(--v-muted); letter-spacing: .04em; }
.v-notes { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.v-notes dt, .v-notes dd { margin: 0; padding: var(--sp-3) 0; border-top: 1px solid var(--v-line); font-size: var(--fs-small); }
.v-notes dt { font-weight: 600; }
.v-notes dd { color: var(--v-muted); }

/* Onboarding */
.v-onb { min-height: 100dvh; display: flex; flex-direction: column; background: var(--v-dark); color: var(--v-on-dark); padding: calc(env(safe-area-inset-top) + var(--sp-8)) var(--sp-6) calc(env(safe-area-inset-bottom) + var(--sp-6)); gap: var(--sp-6); }
.v-onb__mark { font-family: var(--v-display); font-size: var(--fs-hero); color: var(--v-gold); letter-spacing: .04em; line-height: 1; }
.v-onb__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); }
.v-onb .v-h1 { font-size: var(--fs-display); }
.v-onb p { margin: 0; opacity: .85; }
.v-onb__icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mm-antique-gold) 40%, transparent); }
.v-dots { display: flex; gap: 6px; }
.v-dots i { width: 6px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--mm-french-linen) 30%, transparent); transition: width .2s; }
.v-dots i.is-on { width: 20px; background: var(--v-gold); }
.v-onb .v-btn--ghost { color: var(--v-on-dark); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mm-french-linen) 35%, transparent); }
.v-steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--sp-2); opacity: .9; }

/* Sign in */
.v-signin { min-height: 100dvh; display: flex; flex-direction: column; background: var(--v-dark); color: var(--v-on-dark); }
.v-signin__top { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-3); padding: calc(env(safe-area-inset-top) + var(--sp-8)) var(--sp-6) var(--sp-8); }
.v-signin__card { background: var(--v-bg); color: var(--v-ink); border-radius: var(--r-l) var(--r-l) 0 0; padding: var(--sp-6) var(--sp-6) calc(env(safe-area-inset-bottom) + var(--sp-6)); display: flex; flex-direction: column; gap: var(--sp-4); }
.v-tick { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--r-m); background: var(--v-wash); }
.v-tick svg { flex: none; width: 22px; height: 22px; stroke: var(--v-brand); fill: none; stroke-width: 2; }

/* Toast */
.v-toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--sp-4) + 60px); z-index: 60;
  transform: translateX(-50%); width: calc(100% - 2 * var(--sp-5)); max-width: calc(var(--max) - 2 * var(--sp-5));
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  background: var(--v-dark); color: var(--v-on-dark); border-radius: var(--r-m); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  font-size: var(--fs-small); box-shadow: var(--v-shadow-up); animation: v-up .25s var(--ease);
}
.v-toast button { min-height: 40px; padding: 0 var(--sp-3); border: 0; background: none; color: var(--v-gold); font-weight: 600; cursor: pointer; }

/* Banner prompt on Home (install / notifications not done yet) */
.v-prompt { display: flex; flex-direction: row; gap: var(--sp-3); align-items: center; text-align: left; }
.v-tile__img--none { aspect-ratio: auto; height: 6px; background: var(--v-accent); }
.v-prompt__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.v-prompt .v-item__main { gap: 0; }

/* Close (×) on the Home set-up card */
.v-x { flex: none; width: var(--tap); height: var(--tap); margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-3)) calc(-1 * var(--sp-2)) 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.v-x svg { width: 16px; height: 16px; stroke: var(--v-muted); stroke-width: 1.8; fill: none; }
.v-ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* Form fields */
.v-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-label { font-size: var(--fs-small); font-weight: 600; }
.v-textarea { min-height: 96px; padding: var(--sp-3) var(--sp-4); resize: vertical; line-height: 1.45; }
select.v-input { appearance: auto; }

/* Ask LXV */
.v-ask-fab {
  position: fixed; z-index: 35;
  right: max(var(--sp-4), calc((100vw - var(--max)) / 2 + var(--sp-4)));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--sp-4));
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 52px; padding: 0 var(--sp-5) 0 var(--sp-4);
  border: 0; border-radius: var(--r-pill); background: var(--v-dark); color: var(--v-gold);
  font-size: var(--fs-body); font-weight: 600; cursor: pointer; box-shadow: var(--v-shadow-up);
}
.v-ask-fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.v-ask-fab:active { transform: scale(.97); }
.v-sheet--chat { height: 92dvh; gap: var(--sp-3); overflow: hidden; }
.v-chat__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-1) 0; }
.v-chat__m { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.v-chat__m.me { align-self: flex-end; background: var(--v-brand); color: var(--v-on-brand); border-bottom-right-radius: 6px; }
.v-chat__m.it { align-self: flex-start; background: var(--v-surface); box-shadow: var(--v-shadow); border-bottom-left-radius: 6px; }
.v-chat__m.it a { color: var(--v-brand); font-weight: 600; }
.v-chat__m.err { background: var(--v-wash); }
.v-chat__acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.v-chat__acts .v-chip { display: inline-flex; align-items: center; min-height: 40px; white-space: normal; text-align: left; text-decoration: none; color: var(--v-ink); }
.v-chat__acts .v-chip[aria-pressed="true"] { color: var(--v-on-dark); }
.v-chat__cards { margin-top: var(--sp-1); }
.v-chat__dots { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--v-surface); box-shadow: var(--v-shadow); }
.v-chat__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--v-muted); opacity: .35; animation: v-dot 1s infinite; }
.v-chat__dots i:nth-child(2) { animation-delay: .15s; } .v-chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes v-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.v-chat__bar { display: flex; align-items: flex-end; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--v-line); }
.v-chat__input { flex: 1; min-width: 0; min-height: var(--tap); max-height: 120px; padding: 11px var(--sp-4); border-radius: 22px; border: 1px solid var(--v-line-strong); background: var(--v-surface); font-size: 1rem; line-height: 1.35; resize: none; }

@media (min-width: 600px) {
  .v-main { padding-left: var(--sp-6); padding-right: var(--sp-6); }
  .v-rail { grid-auto-columns: minmax(220px, 46%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 2026-11-02 QA FIX 1 + 4: the way out to the website, and the signed-out notice ── */
.v-top__end { display: flex; align-items: center; gap: var(--sp-2); }
.v-site {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-2);
  font-size: var(--fs-small); font-weight: 500; color: var(--v-muted); text-decoration: none;
}
.v-site:active { color: var(--v-ink); }
.v-signin__home { text-decoration: none; align-self: flex-start; }
.v-signin__note {
  margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m);
  background: var(--v-surface); font-size: var(--fs-small); font-weight: 600; text-align: center;
}
