/* Velora. Quiet luxury: ivory, ink, one champagne accent. App first on phones. */

:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-2: #F2EFEA;
  --ink: #15130F;
  --ink-2: #2B2721;
  --muted: #6B655B;
  --faint: #8E877C;
  --line: #ECE6DC;
  --line-2: #E2DBD0;
  --accent: #B08D57;
  --accent-ink: #8A6A3A;
  --accent-soft: #F2E6CF;
  --accent-soft-ink: #6B4E22;
  --ok: #2E8B57;
  --ok-soft: #E7F3EC;
  --ok-ink: #1F5132;
  --info-soft: #E8EEF8;
  --info-ink: #264A7A;
  --bad: #B3261E;
  --bad-soft: #FBEAE8;
  --warn-soft: #FBF1DE;
  --warn-ink: #7A5212;
  --btn: #15130F;
  --btn-ink: #FFFFFF;
  --tone: #D8CFC3;
  --shadow: 0 1px 2px rgba(21,19,15,.04), 0 8px 24px rgba(21,19,15,.06);
  --shadow-lg: 0 24px 64px rgba(21,19,15,.18);
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 22px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tab-h: 64px;
  --top-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E0C; --surface: #181613; --surface-2: #211E1A; --ink: #F3EEE6; --ink-2: #DED7CC;
    --muted: #A49C8F; --faint: #8A8276; --line: #2A2622; --line-2: #36312B; --accent: #C9A46B; --accent-ink: #D9B784;
    --accent-soft: #2E2518; --accent-soft-ink: #E6CFA3; --ok-soft: #13261B; --ok-ink: #8FD3A9; --info-soft: #172234; --info-ink: #9DB9E6;
    --bad-soft: #2E1513; --warn-soft: #2B2112; --warn-ink: #E3C07F; --btn: #F3EEE6; --btn-ink: #15130F; --tone: #2B2722;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E0C; --surface: #181613; --surface-2: #211E1A; --ink: #F3EEE6; --ink-2: #DED7CC;
  --muted: #A49C8F; --faint: #8A8276; --line: #2A2622; --line-2: #36312B; --accent: #C9A46B; --accent-ink: #D9B784;
  --accent-soft: #2E2518; --accent-soft-ink: #E6CFA3; --ok-soft: #13261B; --ok-ink: #8FD3A9; --info-soft: #172234; --info-ink: #9DB9E6;
  --bad-soft: #2E1513; --warn-soft: #2B2112; --warn-ink: #E3C07F; --btn: #F3EEE6; --btn-ink: #15130F; --tone: #2B2722;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.b { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-md { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 620px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 32px; padding-bottom: 64px; }
.row.wrap { max-width: none; margin: 0; padding: 0; }
.dir > *, .feed-layout > *, .book-layout > *, .prof-main > *, .hero-grid > *, .cols > *, .shell > * { min-width: 0; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.logo img { height: 30px; width: auto; }
.top-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; }
.top-nav a { color: var(--ink-2); }
.top-nav a.on { color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.top-search { flex: 1; max-width: 380px; position: relative; }
.top-search input { width: 100%; height: 42px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px 0 42px; outline: none; font-size: 14px; }
.top-search input:focus { border-color: var(--ink); }
.top-search .ic { position: absolute; left: 14px; top: 10px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.dot { position: absolute; top: 8px; right: 8px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 5px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; margin: 0 6px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: 22px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-size: 14px; text-align: left; color: var(--ink); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

/* Mobile app bar */
.appbar { display: none; }

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 14.5px;
  transition: transform .08s ease, opacity .15s; white-space: nowrap; text-align: center;
}
.btn:hover { color: var(--btn-ink); opacity: .92; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--line); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { color: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-bad { background: var(--bad); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.link { color: var(--accent-ink); font-weight: 600; }
.link:hover { text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .n { opacity: .55; font-weight: 400; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.gold { background: var(--accent-soft); color: var(--accent-soft-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge.info { background: var(--info-soft); color: var(--info-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.dark { background: var(--ink); color: var(--accent-soft); letter-spacing: .08em; font-size: 10.5px; }
.live-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--ok); display: inline-block; }
.vbadge { color: var(--accent); flex: 0 0 auto; }
.ribbon { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; padding: 5px 9px; border-radius: 9px; }
.ribbon.spotlight { background: #15130F; color: #F2E6CF; }
.ribbon.premium { background: #fff; color: #15130F; }
.ribbon.featured { background: #F2E6CF; color: #6B4E22; }

/* ---------- Avatars ---------- */
.av { border-radius: 50%; object-fit: cover; background: var(--tone); flex: 0 0 auto; }
.av-txt { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: hsl(var(--h) 30% 28%); background: hsl(var(--h) 30% 86%); letter-spacing: .02em; }
.ring { padding: 3px; border-radius: 50%; border: 2px solid var(--accent); display: inline-flex; }
.ring.seen { border-color: var(--line-2); }

/* ---------- Cards, panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel h2, .panel h3 { font-size: 17px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head { margin-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--accent-ink); text-transform: uppercase; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic { color: var(--faint); margin: 0 auto 12px; display: block; }
.empty h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 22px; margin-bottom: 6px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 13px; font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; outline: none; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B655B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 42px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.15; }
.seg span small { font-size: 10.5px; color: var(--ok); font-weight: 600; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.option:has(input:checked) { border: 2px solid var(--ink); padding: 13px; background: color-mix(in srgb, var(--accent-soft) 30%, var(--surface)); }
.option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--muted); text-align: center; padding: 20px; cursor: pointer; }
.file-drop:hover { border-color: var(--ink); }
.file-drop input { display: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.previews img, .previews video { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: var(--tone); }
.err { color: var(--bad); font-size: 13px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: 76px; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 13px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; }
.toast.error { background: var(--bad); color: #fff; }
.toast.success .ic { color: #8FD3A9; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Home hero ---------- */
.hero { padding: 56px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; line-height: 1.55; }
.hero-search { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line-2); border-radius: 40px; padding: 6px; margin-top: 28px; max-width: 640px; box-shadow: var(--shadow); }
.hero-search label { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 18px; border-right: 1px solid var(--line); min-width: 0; }
.hero-search label:last-of-type { border-right: 0; }
.hero-search label b { font-size: 11.5px; }
.hero-search select, .hero-search input { border: 0; outline: none; background: transparent; padding: 0; font-size: 15px; appearance: none; width: 100%; }
.hero-search .btn { height: 56px; border-radius: 30px; padding: 0 28px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-art .ph { aspect-ratio: 3/5; border-radius: 22px; background: var(--tone) center/cover no-repeat; }
.hero-art .ph:nth-child(1) { margin-top: 44px; }
.hero-art .ph:nth-child(3) { margin-top: 72px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Directory ---------- */
.dir { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--top-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.filters h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.filters .fgroup { display: flex; flex-direction: column; gap: 9px; }
.filters .fgroup > b { font-size: 13px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 22px 18px; }
.tcard { display: flex; flex-direction: column; gap: 10px; position: relative; }
.tcard .ph { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--tone); }
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tcard:hover .ph img { transform: scale(1.035); }
.tcard.spotlight .ph { outline: 2px solid var(--accent); outline-offset: 3px; }
.tcard.lg { grid-column: span 2; }
.tcard.lg .ph { aspect-ratio: 8/5; }
.tcard .today { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.94); color: #1F5132; border-radius: 10px; padding: 4px 9px; font-size: 11px; font-weight: 600; }
.tcard .travel { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(21,19,15,.82); color: #fff; border-radius: 9px; padding: 4px 9px; font-size: 11px; }
.tcard .fav { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 18px; border: 0; background: rgba(255,255,255,.94); color: #15130F; display: flex; align-items: center; justify-content: center; }
.tcard .fav.on { color: var(--bad); }
.tcard .meta { display: flex; justify-content: space-between; gap: 10px; }
.tcard .name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.tcard .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .rate { font-size: 13.5px; font-weight: 600; white-space: nowrap; text-align: right; }
.tcard .rate small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; flex: 0 0 auto; }
.strip .tcard { width: 200px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.city-tile { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.city-tile:hover { border-color: var(--ink); }
.city-tile b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.dark-band { background: #15130F; color: #F3EEE6; }
.dark-band .muted { color: #A49C8F; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; border: 1px solid #3A352D; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--serif); font-size: 34px; color: #E6CFA3; }
.step h3 { font-size: 17px; }

/* ---------- Stories ---------- */
.stories { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex: 0 0 auto; font-size: 11.5px; color: var(--ink-2); }
.story span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-view { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; }
.story-view .frame { position: relative; width: min(100%, 460px); height: min(100%, 820px); background: #111; overflow: hidden; }
.story-view .frame img, .story-view .frame video { width: 100%; height: 100%; object-fit: cover; }
.story-view .bars { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; z-index: 3; }
.story-view .bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-view .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-view .who { position: absolute; left: 14px; top: 24px; z-index: 3; color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.story-view .x { position: absolute; right: 8px; top: 18px; z-index: 4; color: #fff; }
.story-view .tap { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; background: transparent; border: 0; }
.story-view .tap.l { left: 0; } .story-view .tap.r { right: 0; }

/* ---------- Feed post ---------- */
.feed { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 560px) 320px; gap: 48px; justify-content: center; align-items: start; }
.feed-side { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who b { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.post-head .who small { color: var(--muted); font-size: 12px; }
.media { position: relative; background: var(--tone); }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 100%; scroll-snap-align: center; }
.media img, .media video { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--tone); }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: background .2s, width .2s; }
.dots i.on { background: #fff; width: 14px; }
.counter { position: absolute; right: 12px; top: 12px; background: rgba(21,19,15,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; }
.locked { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--tone); }
.locked img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.locked .over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(21,19,15,.15), rgba(21,19,15,.55)); }
.locked .over .lk { width: 56px; height: 56px; border-radius: 28px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.locked .over p { font-size: 14px; opacity: .92; max-width: 280px; }
.locked .btn { background: #fff; color: #15130F; }
.heart-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0); color: #fff; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.heart-pop.go { animation: pop .8s ease; }
@keyframes pop { 15% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 30% { transform: translate(-50%,-50%) scale(.95); } 80% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
.post-actions { display: flex; align-items: center; padding: 4px 6px; }
.post-actions .icon-btn.on { color: var(--bad); }
.post-actions .icon-btn.saved { color: var(--ink); }
.post-body { padding: 0 16px 16px; font-size: 14px; line-height: 1.5; }
.post-body .likes { font-weight: 600; }
.post-body .when { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.comments { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.comment-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.comment-form input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; }
.comment-form button { border: 0; background: none; color: var(--accent-ink); font-weight: 600; }

/* ---------- Profile ---------- */
.prof { padding-top: 36px; }
.prof-av { grid-row: span 2; align-self: start; }
.prof-info { grid-column: 2; }
.prof-top { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: center; }
.prof-av { width: 170px; height: 170px; }
.prof-av .av { width: 100% !important; height: 100% !important; }
.prof h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: -.02em; }
.prof .handle { color: var(--muted); font-size: 14px; }
.prof .stats { display: flex; gap: 28px; font-size: 15px; margin: 14px 0; flex-wrap: wrap; }
.prof .stats b { font-weight: 600; }
.prof .bio { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 640px; white-space: pre-line; }
.prof-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.prof-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 28px; }
.prof-side { position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.highlights { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 20px 0 6px; }
.tabs { display: flex; justify-content: center; gap: 36px; border-top: 1px solid var(--line-2); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 15px 0 13px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; border-top: 2px solid transparent; margin-top: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-top-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pgrid a { position: relative; aspect-ratio: 4/5; background: var(--tone); overflow: hidden; border-radius: 4px; display: block; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; }
.pgrid .lockov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; background: rgba(21,19,15,.38); font-size: 12px; font-weight: 600; text-align: center; padding: 6px; }
.pgrid .vid { position: absolute; right: 8px; top: 8px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.pgrid .hover { position: absolute; inset: 0; background: rgba(21,19,15,.4); color: #fff; display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.pgrid a:hover .hover { opacity: 1; }
.rate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate-grid div { padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.rate-grid b { font-size: 15px; }
.comp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; font-size: 14px; }
.comp small { display: block; color: var(--muted); font-size: 12px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.stars { color: var(--accent); display: inline-flex; gap: 1px; }

/* ---------- Messages ---------- */
.chat-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--top-h)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list h2 { font-size: 20px; padding: 20px 20px 12px; }
.convo { display: flex; gap: 12px; align-items: center; padding: 12px 20px; }
.convo:hover, .convo.on { background: var(--surface-2); }
.convo .grow b { display: flex; justify-content: space-between; font-size: 14px; }
.convo .grow small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .grow small { color: var(--ink); font-weight: 600; }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: min(76%, 460px); padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-media { padding: 0; overflow: hidden; width: 240px; }
.msg-media img, .msg-media video { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.msg-media .cap { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.msg-time { font-size: 11px; color: var(--faint); align-self: center; margin: 8px 0 2px; }
.safety-note { align-self: center; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 12.5px; max-width: 92%; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; border-radius: 22px; border: 1px solid var(--line-2); padding: 11px 16px; resize: none; outline: none; background: var(--surface); font-size: 14.5px; }
.composer .icon-btn { background: var(--surface-2); }
.composer .send { background: var(--ink); color: var(--bg); }
.composer .send:hover { background: var(--ink); color: var(--bg); opacity: .9; }
.attach-bar { display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--surface-2); font-size: 13px; }

/* ---------- Booking ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.summary { position: sticky; top: calc(var(--top-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-row.total { font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 15px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 14px; }
.tl .dotc { display: flex; flex-direction: column; align-items: center; }
.tl .dotc i { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: center; color: #fff; }
.tl.done .dotc i { background: var(--ok); border-color: var(--ok); }
.tl.now .dotc i { border-color: var(--accent); background: var(--accent-soft); }
.tl .dotc s { flex: 1; width: 2px; background: var(--line-2); min-height: 18px; text-decoration: none; }
.tl:last-child .dotc s { display: none; }
.tl .tx { padding-bottom: 18px; font-size: 14px; }
.tl .tx small { display: block; color: var(--muted); font-size: 12.5px; }
.code-box { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.code-box span { width: 46px; height: 58px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--serif); font-size: 30px; display: flex; align-items: center; justify-content: center; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 26px; font-family: var(--serif); height: 60px; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* ---------- Wallet ---------- */
.balance-card { border-radius: var(--r-lg); padding: 26px; background: #15130F; color: #F3EEE6; position: relative; overflow: hidden; }
.balance-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(230,207,163,.25); }
.balance-card .amt { font-family: var(--serif); font-size: 44px; letter-spacing: -.02em; margin: 6px 0 2px; }
.balance-card .muted { color: #A49C8F; }
.amount-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-pick label { position: relative; }
.amount-pick input { position: absolute; opacity: 0; }
.amount-pick span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.amount-pick input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .amt-in { color: var(--ok-ink); font-weight: 600; }
.table .amt-out { color: var(--ink); font-weight: 600; }

/* ---------- Dashboards (studio, admin) ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a.on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.side a .cnt { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 8px; background: var(--accent); color: #fff; }
.side .grp { font-size: 11px; letter-spacing: .12em; color: var(--faint); font-weight: 600; padding: 16px 12px 6px; text-transform: uppercase; }
.admin .side { background: #15130F; border-color: #15130F; }
.admin .side a { color: #CFC8BC; }
.admin .side a:hover, .admin .side a.on { background: #2B2721; color: #fff; }
.admin .side .grp { color: #8E877C; }
.main { padding: 30px 36px 60px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.main-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.main-head h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.02em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi b { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.kpi .trend { font-size: 12.5px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-row i { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; display: block; }
.bar-row i b { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 180px; border-bottom: 1px solid var(--line); }
.spark i { flex: 1; background: var(--tone); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.spark i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); border-radius: 3px 3px 0 0; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 24px; font-size: 13.5px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - var(--top-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: #15130F center/cover no-repeat; position: relative; display: flex; align-items: flex-end; padding: 48px; color: #F3EEE6; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,19,15,.1), rgba(21,19,15,.75)); }
.auth-art div { position: relative; font-family: var(--serif); font-size: 34px; line-height: 1.15; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form form { width: 100%; max-width: 400px; }
.auth-form h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin-bottom: 6px; }

/* ---------- Dialog as sheet ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 64px); box-shadow: var(--shadow-lg); }
dialog.sheet::backdrop { background: rgba(21,19,15,.5); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheetIn .22s ease; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px); } }
.sheet-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: calc(100vh - 64px); }
.sheet-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 4px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; flex: 1; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; font-size: 14px; }

/* ---------- Prose pages ---------- */
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 28px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 14px; }

/* =========================================================
   Phones: becomes an app. Top app bar, bottom tabs, sheets.
   ========================================================= */
@media (max-width: 860px) {
  :root { --top-h: 56px; }
  body { font-size: 15px; }
  body.has-tabs { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  .wrap, .wrap-md { padding: 0 16px; }
  .page { padding-top: 16px; padding-bottom: 32px; }
  .top { display: none; }
  .appbar {
    display: flex; position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 6px 0;
    align-items: center; gap: 4px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-bottom: 1px solid transparent;
  }
  .appbar.scrolled { border-bottom-color: var(--line); }
  .appbar .title { flex: 1; font-weight: 600; font-size: 16.5px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .appbar .logo { flex: 1; padding-left: 12px; font-size: 25px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--muted); position: relative; }
  .tabbar a.on { color: var(--ink); font-weight: 600; }
  .tabbar a .dot { top: 4px; right: calc(50% - 22px); }
  .tabbar .create { color: var(--ink); }
  .foot { display: none; }
  .toasts { top: calc(64px + env(safe-area-inset-top, 0px)); }

  .hero { padding: 20px 0 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { display: none; }
  .hero p.lead { font-size: 16px; }
  .hero-search { flex-direction: column; border-radius: 22px; padding: 8px; gap: 4px; }
  .hero-search label { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .hero-search label:last-of-type { border-bottom: 0; }
  .hero-search .btn { height: 50px; border-radius: 14px; }
  .chips.scroll { margin: 0 -16px; padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }

  .dir { grid-template-columns: 1fr; gap: 16px; }
  .filters { display: none; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .tcard .ph { border-radius: 14px; }
  .tcard.lg { grid-column: span 2; }
  .tcard .meta { flex-direction: column; gap: 0; }
  .tcard .rate { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; }
  .tcard .rate small { display: inline; }
  .tcard .name { font-size: 14px; }
  .tcard .sub { font-size: 12px; }
  .strip .tcard { width: 150px; }

  .feed-layout { grid-template-columns: 1fr; gap: 0; }
  .feed-side { display: none; }
  .feed { gap: 0; margin: 0 -16px; }
  .post { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }

  .prof { padding-top: 8px; }
  .prof-av { grid-row: auto; }
  .tcard .today { font-size: 0; gap: 0; padding: 0; width: 14px; height: 14px; border-radius: 7px; justify-content: center; border: 2px solid #fff; background: var(--ok); }
  .tcard .today .live-dot { display: none; }
  .ribbon { font-size: 9.5px; padding: 4px 7px; left: 8px; top: 8px; }
  .prof-top { grid-template-columns: 86px minmax(0, 1fr); gap: 18px; }
  .prof-av { width: 86px; height: 86px; }
  .prof h1 { font-size: 22px; }
  .prof .stats { gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 0; font-size: 12.5px; color: var(--muted); }
  .prof .stats b { display: block; color: var(--ink); font-size: 17px; }
  .prof .stats .rt { display: none; }
  .prof-info { grid-column: 1 / -1; }
  .prof-top > div:nth-child(2) { align-self: center; }
  .prof-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
  .prof-actions .btn { padding: 0 8px; font-size: 14px; }
  .prof-main { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .prof-side { position: static; order: 2; }
  .tabs { justify-content: space-around; gap: 0; margin: 12px -16px 0; }
  .tabs a { flex: 1; justify-content: center; letter-spacing: 0; }
  .tabs a .lbl { display: none; }
  .pgrid { gap: 2px; margin: 0 -16px; }
  .pgrid a { border-radius: 0; }

  .chat-shell { grid-template-columns: 1fr; height: auto; border: 0; }
  .chat-shell.in-thread .chat-list { display: none; }
  .chat-shell:not(.in-thread) .thread { display: none; }
  .thread { height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px)); }
  .thread-head { display: none; }
  body.chat-open { padding-bottom: 0; }
  body.chat-open .tabbar { display: none; }

  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .amount-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px 12px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .side .grp, .side .side-brand { display: none; }
  .side a { white-space: nowrap; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 18px; font-size: 13px; }
  .admin .side a { border-color: #36312B; }
  .side a .ic { display: none; }
  .main { padding: 18px 16px 40px; }
  .main-head h1 { font-size: 26px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi b { font-size: 22px; }
  .bar-row { grid-template-columns: 90px 1fr 80px; }

  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
  .auth-form { padding: 24px 20px 40px; align-items: flex-start; }

  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; left: 0; right: 0; border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: var(--safe-b); }
  dialog.sheet[open] { animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); }
  .sheet-grab { display: block; }
  .sheet-body { padding: 10px 18px 22px; max-height: 92vh; }
  @keyframes sheetUp { from { transform: translateY(100%); } }

  .desk-only { display: none !important; }
}
@media (min-width: 861px) {
  .mob-only { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
