:root {
  color-scheme: light;
  --ink: #101417;
  --muted: #61707a;
  --line: #d9e2e3;
  --paper: #f5f8f8;
  --surface: #ffffff;
  --teal: #006b64;
  --teal-dark: #004b47;
  --mint: #e3f4f1;
  --charcoal: #101417;
  --charcoal-soft: #1a2426;
  --red: #d44943;
  --gold: #f2b705;
  --gold-dark: #bf8f34;
  --shadow: 0 18px 44px rgba(16, 20, 23, 0.12);
  --button-shadow: 0 12px 24px rgba(16, 20, 23, 0.16);
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, a { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar,
.top-actions,
.brand,
.section-head,
.detail-top,
.balance-top,
.profit-row,
.wallet-strip,
.positions article,
.operation-card,
.market-row,
.metric-row,
.request-card,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  min-height: 52px;
}

.brand {
  justify-content: flex-start;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
}

.top-actions {
  justify-content: flex-end;
}

.language-switch,
.product-tabs,
.mini-tabs,
.app-menu {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  background: #e9f0f0;
}

.language-switch { grid-template-columns: repeat(2, 40px); }
.product-tabs { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }
.mini-tabs { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.app-menu { grid-template-columns: repeat(4, 1fr); margin: 12px 0; }

.language-switch button,
.product-tabs button,
.mini-tabs button,
.app-menu button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.language-switch .active,
.product-tabs .active,
.mini-tabs .active,
.app-menu .active {
  background: var(--surface);
  color: var(--teal);
  box-shadow: 0 8px 18px rgba(16, 20, 23, 0.06);
}

.install-button,
.staff-link,
.action-grid button,
.action-grid a,
.comment-form button,
.chat-form button,
.wallet-strip button,
.bank-form button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-soft));
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--button-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.staff-link:hover,
.action-grid button:hover,
.action-grid a:hover,
.comment-form button:hover,
.chat-form button:hover,
.wallet-strip button:hover,
.bank-form button:hover,
.auth-actions button:hover,
.verification-grid button:hover,
.verification-form button:hover,
.forgot-button:hover,
.quick-grid button:hover,
.bottom-tabs button:hover {
  transform: translateY(-1px);
}

.install-button {
  min-height: 38px;
  padding: 0 14px;
}

.staff-link {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0 14px;
}

.mobile-product {
  background: #eef4f4;
}

.mobile-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 96px;
  background: #f8fbfb;
}

.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-screen {
  display: none;
}

.mobile-screen.active {
  display: block;
}

.section-head.compact {
  margin-bottom: 12px;
  padding: 4px 0 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.quick-grid button {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(16, 20, 23, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-grid span,
.quick-grid em {
  display: block;
  font-style: normal;
}

.quick-grid span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(242, 183, 5, 0.18);
  color: var(--charcoal);
  line-height: 34px;
  font-weight: 900;
}

.market-card,
.profile-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-card {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 4px;
  place-items: center;
  border-radius: 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 100%);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(16, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 32px rgba(16, 20, 23, 0.08);
  transform: translateX(-50%);
}

.bottom-tabs button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  place-items: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.bottom-tabs span {
  font-size: 1.05rem;
  line-height: 1;
}

.bottom-tabs b {
  font-size: 0.72rem;
}

.bottom-tabs .active {
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 10px 20px rgba(16, 20, 23, 0.16);
}

.hero-strip {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 1.45rem; letter-spacing: 0; }
h3 { margin-bottom: 6px; font-size: 1.02rem; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.52; }

.product-view { display: none; }
.product-view.active { display: block; }

.section-head {
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px 0;
}

.access-badge,
.balance-pill,
.panel-title span {
  border-radius: 999px;
  white-space: nowrap;
}

.access-badge {
  padding: 7px 10px;
  background: #e8f7ee;
  color: #177245;
  font-size: 0.78rem;
  font-weight: 900;
}

.access-badge.neutral { background: #f6edda; color: #8a641d; }

.crm-layout,
.banking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 16px;
  align-items: start;
}

.client-list,
.client-detail,
.banking-summary,
.phone-frame,
.flow-grid article,
.security-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(16, 20, 23, 0.07);
}

.client-list,
.client-detail,
.banking-summary {
  padding: 16px;
}

.crm-pane,
.app-pane { display: none; }
.crm-pane.active,
.app-pane.active { display: grid; gap: 10px; }

.request-card {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.request-card.selected {
  border-color: rgba(0, 107, 100, 0.44);
  background: var(--mint);
}

small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.metric-row,
.chat-ticket,
.comments-panel,
.operation-card,
.market-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-top {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.balance-pill {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: var(--mint);
}

.balance-pill span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.balance-pill strong { color: var(--teal-dark); }

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.action-grid button,
.action-grid a {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 10px;
  text-align: center;
}

.comments-panel { background: #fbfcfc; }
.panel-title { align-items: flex-start; }
.panel-title span { padding: 6px 8px; background: #eef4f4; color: var(--muted); font-size: 0.75rem; font-weight: 850; }

.comment-feed {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.comment-feed p {
  margin: 0;
  padding: 10px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.comment-form,
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.comment-form input,
.chat-form input,
.bank-form input,
.bank-form select {
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
}

.bank-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-panel {
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 92px);
  align-content: center;
  margin-bottom: 14px;
  padding: 22px 16px;
}

.auth-language-row {
  display: flex;
  justify-content: flex-end;
}

.auth-hero,
.auth-form,
.forgot-form,
.reset-form,
.auth-mode-tabs,
.auth-footnote {
  width: 100%;
}

.auth-hero {
  display: grid;
  justify-items: start;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f6 100%);
  border: 1px solid rgba(0, 107, 100, 0.16);
  box-shadow: 0 18px 42px rgba(16, 20, 23, 0.09);
}

.auth-emblem {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.auth-hero h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.auth-hero p:last-child {
  margin-bottom: 0;
}

.auth-form,
.forgot-form,
.reset-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 20, 23, 0.06);
}

.auth-form label,
.forgot-form label,
.reset-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-form label.hidden {
  display: none;
}

.settings-card,
.status-card,
.transaction-row,
.empty-state {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.settings-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.settings-row,
.transaction-row,
.ledger-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction-list {
  display: grid;
  gap: 8px;
}

.transaction-row small {
  color: var(--muted);
  text-transform: uppercase;
}

.logout-button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--red);
  font-weight: 850;
}

.ledger-state {
  margin-top: 14px;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
}

.ledger-state b {
  color: #d7f7e8;
}

.auth-form input,
.forgot-form input,
.reset-form input {
  min-height: 52px;
  border: 1px solid #cbd8da;
  border-radius: 8px;
  padding: 0 14px;
  background: #fbfdfd;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
}

.auth-form input:focus,
.forgot-form input:focus,
.reset-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 107, 100, 0.12);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  background: #e9f0f0;
}

.auth-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-mode-tabs .active {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 8px 18px rgba(16, 20, 23, 0.06);
}

.auth-actions {
  display: grid;
}

.auth-actions button {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #ffd966);
  color: var(--charcoal);
  box-shadow: 0 14px 28px rgba(191, 143, 52, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
  font-size: 1rem;
  font-weight: 950;
}

.reset-form button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-soft));
  color: #fff;
  box-shadow: var(--button-shadow);
  font-weight: 950;
}

.auth-actions button:disabled,
.reset-form button:disabled,
.chat-form button:disabled,
.bank-form button:disabled,
.verification-grid button:disabled,
.verification-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.auth-footnote {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.forgot-button {
  min-height: 42px;
  border: 1px solid rgba(0, 107, 100, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cf-turnstile {
  min-height: 65px;
}

.verification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.verification-grid button,
.verification-form button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-soft));
  color: #fff;
  font-weight: 850;
  box-shadow: var(--button-shadow);
}

.verification-form {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
}

.verification-form input,
.verification-form select {
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

.bank-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.bank-form button {
  min-height: 48px;
}

.comment-form button,
.chat-form button {
  min-width: 84px;
  padding: 0 12px;
}

.banking-layout {
  grid-template-columns: minmax(310px, 400px) 1fr;
}

.phone-frame {
  padding: 16px;
  background: #f8fbfb;
}

.phone-status,
.client-header,
.balance-top,
.profit-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.phone-status {
  padding: 0 8px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.client-header {
  align-items: flex-start;
  margin-bottom: 12px;
}

.round-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font-weight: 900;
}

.balance-panel {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
}

.balance-panel p,
.balance-panel span { color: rgba(255,255,255,0.78); }
.balance-panel strong { display: block; margin-top: 12px; font-size: 2rem; letter-spacing: 0; }
.balance-panel button { border: 0; border-radius: 6px; padding: 6px 9px; background: rgba(255,255,255,0.14); color: #fff; font-weight: 850; }
.profit-row b { color: #d7f7e8; }

.trend-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 7px;
  height: 70px;
  margin: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.trend-line span {
  height: 28px;
  border-radius: 6px 6px 0 0;
  background: rgba(255,255,255,0.7);
}
.trend-line span:nth-child(2) { height: 44px; }
.trend-line span:nth-child(3) { height: 34px; }
.trend-line span:nth-child(4) { height: 55px; }
.trend-line span:nth-child(5) { height: 49px; }
.trend-line span:nth-child(6) { height: 66px; background: #d7b463; }

.wallet-strip {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.wallet-strip p { margin-bottom: 4px; font-size: 0.78rem; }
.wallet-strip button { min-height: 34px; padding: 0 12px; }

.positions {
  display: grid;
  gap: 8px;
}
.positions article {
  min-height: 62px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}
.positions div { flex: 1; }
.asset-dot { width: 12px; height: 12px; border-radius: 50%; }
.green { background: var(--teal); }
.gold { background: var(--gold); }
.red { background: var(--red); }
.up { color: #177245; }
.down { color: var(--red); }

.fine-print {
  margin: 0;
  font-size: 0.82rem;
}

.support-screen {
  min-height: calc(100vh - 190px);
}

.support-heading {
  align-items: flex-start;
}

.support-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #177245;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.support-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1bbf68;
  box-shadow: 0 0 0 4px rgba(27, 191, 104, 0.14);
}

.support-card {
  display: grid;
  min-height: 430px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f8 100%);
  box-shadow: 0 16px 40px rgba(16, 20, 23, 0.1);
}

.support-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  padding: 14px;
  overflow-y: auto;
}

.support-chat p { margin: 0; }

.chat-bubble {
  display: grid;
  gap: 4px;
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 12px;
  line-height: 1.35;
}

.chat-bubble b {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 950;
}

.chat-bubble span {
  color: inherit;
}

.support-bubble {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.client-bubble {
  align-self: flex-end;
  background: var(--charcoal);
  color: #fff;
}

.support-chat .client-bubble {
  color: #fff;
}

.support-compose {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(16, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.support-compose input {
  min-height: 52px;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
}

.chat-form .send-button {
  display: inline-grid;
  min-width: 104px;
  min-height: 52px;
  grid-template-columns: auto auto;
  place-items: center;
  gap: 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #ffd966);
  color: var(--charcoal);
  box-shadow: 0 12px 24px rgba(191, 143, 52, 0.24);
}

.chat-form .send-button span,
.chat-form .send-button b {
  color: inherit;
  line-height: 1;
}

.banking-summary ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.flow-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.security-grid { grid-template-columns: repeat(3, 1fr); }

.flow-grid article,
.security-grid article {
  padding: 16px;
}

.flow-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #11191c;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.visible { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .hero-strip,
  .crm-layout,
  .banking-layout,
  .flow-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .product-tabs { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 20px, 1240px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; justify-content: space-between; }
  .product-tabs,
  .app-menu { grid-template-columns: 1fr; }
  .mini-tabs { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .detail-top,
  .section-head,
  .wallet-strip,
  .positions article { align-items: flex-start; flex-wrap: wrap; }
  .comment-form,
  .chat-form { grid-template-columns: 1fr; }
  .mobile-shell { width: 100%; }
  .verification-form { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .mobile-product {
    background: linear-gradient(135deg, #e8f2f1, #f8fbfb);
  }

  .mobile-shell {
    width: min(1180px, calc(100% - 56px));
    display: grid;
    grid-template-columns: minmax(380px, 470px) minmax(0, 1fr);
    gap: 32px;
    padding: 24px;
    background: transparent;
  }

  .mobile-topbar,
  .auth-panel,
  .app-content {
    grid-column: 1 / -1;
  }

  .auth-panel,
  .app-content {
    width: min(860px, 100%);
    margin: 0 auto;
  }

  .auth-panel {
    grid-template-columns: minmax(300px, 360px) minmax(340px, 390px);
    grid-template-rows: auto auto auto auto auto auto;
    column-gap: 22px;
    align-items: start;
    align-content: start;
    padding-top: 12px;
    min-height: auto;
  }

  .auth-language-row {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .auth-hero {
    grid-column: 1;
    grid-row: 2 / span 4;
    min-height: 300px;
    align-content: center;
  }

  .auth-mode-tabs { grid-column: 2; grid-row: 2; }
  .auth-form { grid-column: 2; grid-row: 3; }
  .forgot-form { grid-column: 2; grid-row: 4; }
  .reset-form { grid-column: 2; grid-row: 5; }
  .auth-footnote { grid-column: 2; grid-row: 6; }

  .app-content {
    max-width: 1040px;
  }

  .bottom-tabs {
    position: sticky;
    left: auto;
    bottom: 0;
    width: 100%;
    transform: none;
  }
}
