:root {
  color-scheme: light;
  --ink: #1e2937;
  --ink-soft: #4f5c6d;
  --muted: #748092;
  --canvas: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #f0f2f4;
  --line: #e2e6eb;
  --line-strong: #cbd3dd;
  --primary: #245fca;
  --primary-hover: #174ba8;
  --primary-soft: #edf3ff;
  --success: #287454;
  --warning: #946528;
  --radius: 10px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid #8eb2f3; outline-offset: 3px; }
code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink);
  font: .92em ui-monospace, SFMono-Regular, Consolas, monospace;
}
.muted { color: var(--muted); font-size: 14px; line-height: 1.65; }
.small { font-size: 12px; }
.eyebrow {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn.text-button { min-height: 36px; padding: 7px 10px; background: transparent; color: var(--ink-soft); }
.btn.text-button:hover { background: var(--surface-soft); color: var(--ink); }
.btn.lg { min-height: 46px; padding: 12px 20px; }
.btn.small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.btn.full { width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.brand-mark.lg { width: 42px; height: 42px; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink-soft); font-size: 13px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-account {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
}
.nav-account:hover { border-color: var(--line-strong); text-decoration: none; }
.nav-email { max-width: 150px; overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; }
.nav-account .avatar.small { width: 28px; height: 28px; font-size: 11px; }
.nav-auth { display: flex; align-items: center; gap: 4px; }

.hero { background: #f7f8fa; border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid;
  max-width: 1180px;
  min-height: 510px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  margin: 0 auto;
  padding: 76px 32px;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.13;
}
.hero h1 span { color: var(--primary); }
.hero-sub { max-width: 52ch; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}
.hero-points li::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 800; }
.hero-visual {
  max-width: 460px;
  justify-self: end;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.visual-label { margin-bottom: 22px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.flow-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.flow-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 750;
}
.destination-icon { background: var(--primary-soft); color: var(--primary); }
.flow-card b, .flow-card small { display: block; }
.flow-card b { font-size: 13px; }
.flow-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.flow-state { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.flow-line { display: flex; height: 48px; justify-content: center; }
.flow-line span { width: 1px; height: 100%; background: var(--line-strong); }
.flow-footnote, .visual-footnote { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.platform-strip {
  display: flex;
  max-width: 1180px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 0 auto;
  padding: 23px 32px;
  border-bottom: 1px solid var(--line);
}
.platform-strip span { color: var(--ink-soft); font-size: 12px; }
.platform-strip .strip-label { margin-right: 8px; color: var(--muted); font-weight: 700; }

.section { max-width: 1180px; margin: 0 auto; padding: 76px 32px; }
.section-soft { max-width: none; background: var(--canvas); }
.section-soft > * { max-width: 1116px; margin-right: auto; margin-left: auto; }
.section-head { max-width: 660px; margin-bottom: 30px; }
.section-head h2, .onboarding h2, .personal-heading h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.25;
}
.section-head > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); font-size: 14px; }
.steps, .capability-grid, .privacy-grid { display: grid; gap: 14px; }
.steps { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.steps li, .capability, .privacy-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.step-number, .capability-mark { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.steps h3, .capability h3, .privacy-grid h3 { margin: 18px 0 8px; font-size: 16px; letter-spacing: -.015em; }
.steps p, .capability p, .privacy-grid p { color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.capability-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.capability-mark { display: inline-block; margin-bottom: 4px; }
.capability h3 { margin-top: 0; }
.privacy-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.privacy-grid article { padding: 20px; }
.privacy-grid h3 { margin-top: 0; }
.section-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.marketing-plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
.loading-note { grid-column: 1/-1; padding: 18px 0; color: var(--muted); }
.marketing-plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.marketing-plan h3 { font-size: 15px; }
.marketing-plan .plan-description { color: var(--muted); font-size: 12px; }
.marketing-plan .plan-price { color: var(--primary); font-size: 24px; font-weight: 750; letter-spacing: -.04em; }
.marketing-plan .btn { margin-top: auto; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 16px 36px 16px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 16px; right: 4px; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 24px 18px 0; color: var(--ink-soft); font-size: 13px; }

.onboarding {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}
.onboarding-copy { max-width: 520px; }
.onboarding-copy p:last-child { margin-top: 10px; color: var(--muted); }
.portal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-auth, .portal-signed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-auth .form-msg, .portal-signed .form-msg { flex-basis: 100%; }
.signed-label { color: var(--success); font-size: 13px; font-weight: 700; }
.download-link { color: var(--ink-soft); font-size: 13px; }

.footer {
  display: flex;
  max-width: 1180px;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 32px;
  color: var(--muted);
  font-size: 12px;
}
.footer p { margin-right: auto; }

.personal-page { max-width: 1180px; min-height: 80vh; margin: 0 auto; padding: 44px 32px 80px; }
.personal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.personal-heading .muted { margin-top: 8px; }
.personal-tabs {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.personal-tabs a { padding: 8px 11px; border-radius: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.personal-tabs a:hover { background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.auth-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.auth-gate h2, .load-error h2, .panel-heading h2, .activity-heading h2 { font-size: 17px; letter-spacing: -.02em; }
.auth-gate .muted { margin-top: 5px; }
.auth-gate .form-msg { flex-basis: 100%; }
.personal-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: start; gap: 14px; }
.personal-grid > * { min-width: 0; }
.personal-grid .account-card { grid-column: span 5; }
.personal-grid .agent-invite-panel { grid-column: span 7; }
.personal-grid .account-message { grid-column: 1/-1; }
.personal-grid .buy-panel { grid-column: span 7; }
.personal-grid .redeem-panel { grid-column: span 5; }
.personal-grid .logout-row { grid-column: 1/-1; display: flex; justify-content: flex-end; }
.account-card, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.account-card { padding: 22px; }
.account-card .account-email { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; font-size: 15px; font-weight: 700; }
.avatar { display: inline-grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 800; }
.account-rows { display: grid; gap: 9px; margin-top: 17px; }
.account-row { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: 12px; }
.account-row b { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.progress-wrap { margin-top: 15px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress-fill { height: 100%; border-radius: inherit; background: var(--primary); }
.progress-note { margin-top: 7px; color: var(--muted); font-size: 11px; }
.trial-flag { margin-top: 14px; padding: 11px; border-left: 3px solid var(--warning); background: #fbf7ef; color: var(--warning); font-size: 11px; }
.panel { padding: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.agent-invite-panel > .muted { margin-bottom: 15px; }
.invite-row { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.invite-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.invite-row code { overflow-wrap: anywhere; }
.invite-link { min-width: 0; flex: 1 1 190px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); color: var(--ink-soft); font-size: 12px; }
.invite-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 16px; }
.invite-stats span { padding: 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); font-size: 11px; }
.invite-stats b { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.invitees-list { max-height: 240px; overflow: auto; margin: 10px 0 0; padding: 0; list-style: none; }
.invitees-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.invitees-list .inv-email { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; }
.invitees-list .inv-meta { flex: none; color: var(--muted); font-size: 10px; text-align: right; }
.plan-list { display: grid; gap: 8px; }
.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.plan-info strong { display: block; font-size: 13px; }
.plan-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.plan-buy { display: flex; flex: none; align-items: center; gap: 10px; }
.plan-buy b { color: var(--primary); font-size: 13px; font-variant-numeric: tabular-nums; }
.plan-buy button { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font-size: 12px; }
.pay-area { margin-top: 14px; padding: 15px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--canvas); }
.pay-amount { margin-bottom: 7px; font-weight: 700; }
.pay-area .btn { margin: 5px 6px 0 0; }
.qr { max-width: 240px; margin: 10px 0; }
.qr svg { max-width: 100%; height: auto; }
.portal-form { display: grid; grid-template-columns: 1fr; gap: 11px; }
.portal-form label { margin-top: 4px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.portal-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.portal-form input:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); }
.portal-form.inline { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.portal-form.inline label { grid-column: 1/-1; }
.form-msg { min-height: 18px; color: var(--muted); font-size: 12px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: #b33b35; }
.logout-row { padding-top: 2px; }
.activity-panel { margin-top: 18px; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.activity-heading .eyebrow { margin-bottom: 6px; }
.activity-status { color: var(--muted); font-size: 12px; }
.usage-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; margin: 14px 0; }
.stat-card { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.stat-card strong { display: block; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat-card span { color: var(--muted); font-size: 11px; }
.order-list { display: grid; }
.order-row { display: grid; gap: 4px; padding: 13px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.order-row strong { font-size: 12px; }
.order-row p { color: var(--muted); font-size: 11px; }
.load-status { padding: 16px 0; color: var(--muted); font-size: 13px; }
.load-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.load-error [role="alert"] { margin-top: 7px; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 13px; }

.auth-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16,24,36,.56);
  backdrop-filter: blur(2px);
}
.auth-mask[hidden] { display: none !important; }
.auth-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(20,30,45,.18);
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
}
.auth-close:hover { background: var(--surface-soft); color: var(--ink); }
.auth-head { display: flex; align-items: center; gap: 12px; margin: 3px 34px 20px 0; }
.auth-head h2 { font-size: 20px; letter-spacing: -.025em; }
.auth-head .muted { margin-top: 4px; font-size: 12px; }
.tabs { display: flex; gap: 4px; margin-bottom: 17px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.tab { flex: 1; min-height: 38px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20,30,45,.08); }
.auth-dialog .portal-form { gap: 8px; }
.auth-dialog .portal-form input { margin-bottom: 5px; }
.auth-dialog .portal-form .full { margin-top: 5px; }
.auth-proof { margin-top: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch button { border: 0; padding: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; }
.auth-switch button:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 32px; padding: 58px 24px; }
  .hero-visual { justify-self: start; max-width: 580px; }
  .steps, .capability-grid, .privacy-grid { grid-template-columns: 1fr; }
  .onboarding { align-items: flex-start; flex-direction: column; }
  .personal-grid .account-card, .personal-grid .agent-invite-panel,
  .personal-grid .buy-panel, .personal-grid .redeem-panel { grid-column: 1/-1; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 64px; }
  .nav { min-height: 58px; gap: 10px; padding: 0 14px; }
  .nav-links { display: none; }
  .nav-actions { gap: 4px; }
  .nav-auth .btn.primary { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .nav-email { display: none; }
  .hero-inner { gap: 28px; padding: 48px 18px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-sub { font-size: 14px; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { flex: 1 1 160px; }
  .hero-points { gap: 8px 14px; }
  .hero-visual { padding: 18px; }
  .platform-strip { gap: 8px 14px; padding: 18px; }
  .section { padding: 54px 18px; }
  .section-head { margin-bottom: 20px; }
  .section-head h2, .onboarding h2 { font-size: 26px; }
  .steps li, .capability { padding: 18px; }
  .marketing-plans { grid-template-columns: 1fr; }
  .onboarding { padding: 42px 18px; }
  .portal, .portal-auth, .portal-signed { width: 100%; }
  .portal-auth .btn, .portal-signed .btn { flex: 1 1 auto; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 22px 18px; }
  .personal-page { padding: 30px 16px 56px; }
  .personal-heading { align-items: flex-start; }
  .personal-heading > .btn { padding: 8px 10px; }
  .personal-tabs { top: 58px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .personal-tabs a { flex: none; }
  .panel, .account-card { padding: 17px; }
  .invite-row { align-items: flex-start; }
  .invite-label { flex-basis: 100%; }
  .invite-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .invitees-list li { flex-direction: column; gap: 4px; }
  .invitees-list .inv-meta { text-align: left; }
  .activity-heading { align-items: flex-start; flex-direction: column; }
  .portal-form.inline { grid-template-columns: 1fr; }
  .portal-form.inline .btn { width: 100%; }
  .plan { align-items: flex-start; flex-direction: column; }
  .plan-buy { width: 100%; justify-content: space-between; }
  .auth-gate, .load-error { align-items: flex-start; flex-direction: column; }
  .auth-dialog { max-height: calc(100dvh - 16px); padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; }
}
@media (max-width: 380px) {
  .nav-account { padding-right: 7px; }
  .nav-actions { gap: 2px; }
  .invite-stats { grid-template-columns: 1fr; }
  .invite-row { gap: 6px; }
  .hero-cta .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
