:root {
  --ink: #080908;
  --panel: #10110f;
  --panel-2: #151611;
  --line: #2e3027;
  --gold: #ddb13c;
  --gold-bright: #f2cf67;
  --mint: #75d0ab;
  --red: #e16b68;
  --text: #f4f1e8;
  --muted: #9c9b91;
  --soft: #c6c1b2;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--ink); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); color: var(--text); letter-spacing: 0; }
body.is-locked { overflow: hidden; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(221, 177, 60, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 177, 60, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.toast {
  position: fixed;
  z-index: 100;
  top: calc(16px + var(--safe-top));
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  transform: translate(-50%, -20px);
  border: 1px solid rgba(221, 177, 60, 0.7);
  background: #15140f;
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.auth-screen {
  min-height: 100svh;
  padding: calc(30px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  background:
    linear-gradient(140deg, rgba(221, 177, 60, 0.09), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(117, 208, 171, 0.06), transparent 34%),
    #080908;
}
.auth-screen::after {
  content: "";
  position: absolute;
  top: 106px;
  right: -118px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(221, 177, 60, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(221, 177, 60, 0.018), inset 0 0 0 78px rgba(221, 177, 60, 0.018);
  pointer-events: none;
}
.auth-brand, .app-brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(221, 177, 60, 0.58);
  border-radius: 50%;
  background: #a87917;
}
.brand-seal img { width: 34px; height: auto; }
.brand-seal.small { width: 38px; height: 38px; }
.brand-seal.small img { width: 27px; }
.auth-brand strong, .app-brand strong { display: block; font-size: 19px; }
.auth-brand small, .app-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.auth-copy { position: relative; z-index: 1; margin: 62px 0 36px; }
.auth-copy p, .view-heading p, .section-title p, .progress-dialog > p, .drawer-header p, .install-dialog > p {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}
.auth-copy h1 { margin: 0; font-size: 46px; line-height: 1.08; }
.auth-copy > span { display: block; max-width: 400px; margin-top: 20px; color: var(--soft); font-size: 14px; line-height: 1.8; }
.auth-panel { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; border-top: 1px solid var(--gold); padding-top: 18px; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.segmented button { min-height: 42px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; }
.segmented button:last-child { border-right: 0; }
.segmented button.is-active { background: rgba(221, 177, 60, 0.13); color: var(--gold-bright); }
.auth-form { display: grid; gap: 17px; padding: 24px 0 0; }
label { display: grid; gap: 8px; color: var(--soft); font-size: 12px; }
input, textarea {
  width: 100%;
  border: 1px solid #44463b;
  border-radius: 0;
  outline: none;
  background: #0c0d0b;
  color: var(--text);
}
input { height: 48px; padding: 0 14px; }
textarea { min-height: 76px; padding: 12px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(221, 177, 60, 0.08); }
.inline-field { display: grid; grid-template-columns: 1fr 116px; }
.inline-field input { border-right: 0; }
.inline-field button { border: 1px solid var(--gold); background: transparent; color: var(--gold-bright); font-size: 12px; }
.primary-button, .run-button {
  min-height: 50px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: #090a08;
  font-weight: 800;
}
.primary-button:disabled, .run-button:disabled { opacity: 0.55; cursor: wait; }
.form-status { min-height: 22px; margin: 14px 0 0; color: var(--gold-bright); font-size: 12px; line-height: 1.6; }
.form-status.is-error { color: var(--red); }
.auth-boundary { margin: 34px 0 0; color: #6f7069; font-size: 10px; text-align: center; }

.app-shell { min-height: 100svh; }
.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: calc(66px + var(--safe-top));
  align-items: center;
  gap: 9px;
  padding: var(--safe-top) 14px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.96);
  backdrop-filter: blur(12px);
}
.app-brand { min-width: 0; margin-right: auto; }
.app-brand strong { font-size: 15px; }
.app-brand small { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 11px; }
.account-button { display: grid; min-width: 72px; min-height: 40px; place-content: center; border: 1px solid #383a31; background: #0d0f0d; color: var(--text); }
.account-button span { max-width: 70px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-button b { margin-top: 2px; color: var(--gold); font-size: 12px; }

.app-main { width: min(100%, 720px); min-height: calc(100svh - 66px); margin: 0 auto; padding: 28px 16px calc(94px + var(--safe-bottom)); }
.app-view { display: none; }
.app-view.is-active { display: block; animation: view-in 220ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.view-heading { margin-bottom: 24px; }
.view-heading h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.view-heading > span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.market-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-strip article { min-width: 0; padding: 15px 8px; border-right: 1px solid var(--line); }
.market-strip article:last-child { border-right: 0; }
.market-strip span, .market-strip strong, .market-strip em { display: block; font-style: normal; }
.market-strip span { color: var(--muted); font-size: 10px; }
.market-strip strong { margin-top: 8px; font-size: 16px; white-space: nowrap; }
.market-strip em { margin-top: 4px; color: var(--mint); font-size: 11px; }
.market-strip em.is-down { color: var(--red); }

.market-pulse { margin: 14px 0 34px; padding: 18px; border-left: 3px solid var(--gold); background: #11120f; }
.market-pulse > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.market-pulse span { color: var(--muted); font-size: 11px; }
.market-pulse strong { color: var(--gold-bright); font-size: 28px; }
.market-pulse em { color: var(--soft); font-size: 12px; font-style: normal; }
.pulse-bars { height: 4px; margin: 14px 0; background: #292a24; }
.pulse-bars i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold), var(--mint)); transition: width 500ms ease; }
.market-pulse ul { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.market-pulse li { flex: none; color: var(--soft); font-size: 11px; }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.section-title h2 { margin: 0; font-size: 21px; }
.section-title > span { color: var(--muted); font-size: 10px; }
.section-title.compact { margin-top: 30px; }
.section-title.compact h2 { font-size: 18px; }

.strategy-list { display: grid; gap: 10px; }
.strategy-option { display: grid; gap: 9px; width: 100%; padding: 17px; border: 1px solid var(--line); border-left: 3px solid transparent; background: #0e0f0d; color: var(--text); text-align: left; }
.strategy-option.is-active { border-color: rgba(221, 177, 60, 0.66); border-left-color: var(--gold); background: #17150e; }
.strategy-option > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.strategy-option b { font-size: 17px; }
.strategy-option em { color: var(--gold); font-size: 10px; font-style: normal; }
.strategy-option strong { color: var(--gold-bright); font-size: 12px; }
.strategy-option small { color: var(--muted); font-size: 11px; line-height: 1.65; }
.run-button { display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 18px; }
.run-button span { font-size: 15px; }
.run-button small { font-size: 10px; font-weight: 700; }

.result-section { margin-top: 42px; }
.result-list, .community-list, .validation-list { display: grid; gap: 8px; }
.empty-state { display: grid; min-height: 148px; place-items: center; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 24px; background: #0f100e; }
.empty-state.tall { min-height: 320px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; text-align: center; }
.result-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) 54px; gap: 12px; align-items: center; min-height: 74px; padding: 12px 14px; border: 1px solid var(--line); background: #0e0f0d; color: var(--text); text-align: left; }
.result-rank { color: var(--gold); font-size: 18px; font-weight: 800; }
.result-main { min-width: 0; }
.result-main strong, .result-main span { display: block; }
.result-main strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.result-main span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.result-score { color: var(--gold-bright); font-size: 22px; font-weight: 800; text-align: right; }
.is-positive { color: var(--mint) !important; }
.is-negative { color: var(--red) !important; }

.single-result-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 170px; padding: 22px 18px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: #0f100e; cursor: pointer; }
.single-result-card span { color: var(--gold); font-size: 10px; }
.single-result-card h2 { margin: 8px 0 0; font-size: 22px; }
.single-result-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.single-result-card > strong { color: var(--gold-bright); font-size: 36px; }

.stock-search { display: grid; gap: 12px; padding: 18px; border-top: 1px solid var(--gold); background: #11120f; }
.research-scope { display: flex; gap: 8px; margin: 14px 0 24px; overflow-x: auto; scrollbar-width: none; }
.research-scope span { flex: none; padding: 7px 10px; border: 1px solid var(--line); color: var(--soft); font-size: 10px; }
.single-summary { border-top: 1px solid var(--gold); background: #0f100e; }
.single-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; }
.single-summary h2 { margin: 0; font-size: 24px; }
.single-summary h2 span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.decision-badge { padding: 9px 11px; border: 1px solid var(--gold); color: var(--gold-bright); font-size: 12px; }
.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-grid div { padding: 14px 7px; border-right: 1px solid var(--line); text-align: center; }
.score-grid div:last-child { border-right: 0; }
.score-grid span, .score-grid strong { display: block; }
.score-grid span { color: var(--muted); font-size: 9px; }
.score-grid strong { margin-top: 6px; color: var(--gold-bright); font-size: 19px; }
.open-report { width: calc(100% - 32px); min-height: 44px; margin: 16px; border: 1px solid var(--gold); background: transparent; color: var(--gold-bright); }

.community-note { margin-bottom: 18px; padding: 16px; border-left: 3px solid var(--mint); background: #10130f; }
.community-note strong { color: var(--mint); font-size: 13px; }
.community-note p { margin: 7px 0 0; color: var(--soft); font-size: 11px; line-height: 1.7; }
.community-card { padding: 17px; border: 1px solid var(--line); background: #0f100e; }
.community-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.community-card h2 { margin: 0; font-size: 17px; }
.community-card header span { flex: none; color: var(--gold); font-size: 11px; }
.community-card p { margin: 11px 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.community-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-card footer small { color: #77786f; }
.community-card button { min-height: 38px; padding: 0 14px; border: 1px solid var(--gold); background: transparent; color: var(--gold-bright); font-size: 11px; }

.validation-horizons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); }
.validation-horizons span { padding: 14px; border-right: 1px solid var(--line); color: var(--gold-bright); text-align: center; }
.validation-horizons span:last-child { border-right: 0; }
.validation-card { padding: 16px; border: 1px solid var(--line); background: #0f100e; }
.validation-card header { display: flex; justify-content: space-between; gap: 14px; }
.validation-card h2 { margin: 0; font-size: 15px; }
.validation-card header strong { color: var(--gold); }
.validation-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); }
.validation-metrics div { padding-top: 12px; }
.validation-metrics span, .validation-metrics strong { display: block; }
.validation-metrics span { color: var(--muted); font-size: 9px; }
.validation-metrics strong { margin-top: 5px; color: var(--soft); font-size: 13px; }

.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.account-summary div { min-width: 0; padding: 18px 9px; border-right: 1px solid var(--line); }
.account-summary div:last-child { border-right: 0; }
.account-summary span, .account-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary span { color: var(--muted); font-size: 9px; }
.account-summary strong { margin-top: 8px; color: var(--gold-bright); font-size: 16px; }
.account-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.account-actions button { min-height: 84px; padding: 14px; border: 1px solid var(--line); background: #0f100e; color: var(--text); text-align: left; }
.account-actions strong, .account-actions span { display: block; }
.account-actions strong { color: var(--gold-bright); font-size: 13px; }
.account-actions span { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ledger-panel { margin-top: 26px; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ledger-row strong, .ledger-row span { display: block; }
.ledger-row strong { font-size: 12px; }
.ledger-row span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.ledger-row b { color: var(--gold-bright); font-size: 14px; }
.ledger-row b.is-negative { color: var(--red); }
.logout-button { width: 100%; min-height: 44px; margin-top: 36px; border: 1px solid #4a302e; background: transparent; color: #cf7a73; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: calc(64px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.97);
  backdrop-filter: blur(14px);
}
.bottom-nav button { display: grid; place-content: center; gap: 3px; border: 0; border-right: 1px solid rgba(46, 48, 39, 0.5); background: transparent; color: #777970; }
.bottom-nav button:last-child { border-right: 0; }
.bottom-nav i { display: grid; width: 24px; height: 24px; margin: 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-style: normal; }
.bottom-nav span { font-size: 9px; }
.bottom-nav button.is-active { color: var(--gold-bright); }

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}
.progress-dialog, .install-dialog { position: relative; width: min(100%, 420px); padding: 30px 24px; border: 1px solid rgba(221, 177, 60, 0.58); background: #0d0e0c; }
.progress-mark { display: grid; width: 58px; height: 58px; margin-bottom: 25px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: #9b7019; animation: breathe 1.8s ease-in-out infinite; }
.progress-mark img { width: 38px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(221, 177, 60, 0.05); } }
.progress-dialog h2, .install-dialog h2 { margin: 0; font-size: 23px; }
.progress-dialog > span:not(.progress-mark) { display: block; margin-top: 10px; color: var(--soft); font-size: 12px; }
.progress-track { height: 5px; margin: 26px 0 10px; border: 1px solid #4d4d40; background: #171811; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--mint)); transition: width 420ms ease; }
.progress-dialog > strong { color: var(--gold-bright); font-size: 18px; }
.progress-dialog > small { display: block; margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.modal-close, .drawer-header > button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: 24px; }
.install-dialog .modal-close { position: absolute; top: 14px; right: 14px; }
.install-dialog #install-steps { margin: 24px 0; color: var(--soft); font-size: 13px; line-height: 1.9; }
.install-dialog ol { margin: 0; padding-left: 20px; }
.recharge-modal .install-dialog > small { display: block; margin-top: 20px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.recharge-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.recharge-options button { min-height: 52px; border: 1px solid var(--gold); background: #17150e; color: var(--gold-bright); font-weight: 800; }
.recharge-options button:disabled { opacity: 0.55; }

.drawer { position: fixed; z-index: 70; inset: 0; overflow: hidden; background: var(--ink); }
.drawer-header { position: sticky; z-index: 2; top: 0; display: flex; min-height: calc(72px + var(--safe-top)); align-items: center; gap: 14px; padding: var(--safe-top) 16px 0; border-bottom: 1px solid var(--line); background: rgba(8, 9, 8, 0.96); }
.drawer-header h2 { margin: 0; font-size: 17px; }
.drawer-header p { margin-bottom: 3px; font-size: 8px; }
.drawer-content { height: calc(100svh - 72px - var(--safe-top)); overflow-y: auto; padding: 18px 16px calc(30px + var(--safe-bottom)); }
.report-hero { padding: 18px; border-top: 1px solid var(--gold); background: #11120f; }
.report-hero header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-hero h3 { margin: 0; font-size: 25px; }
.report-hero h3 span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 400; }
.report-hero header strong { color: var(--gold-bright); font-size: 30px; }
.report-hero > p { margin: 17px 0 0; color: var(--soft); font-size: 13px; line-height: 1.85; }
.dimension-list { display: grid; gap: 8px; margin-top: 14px; }
.dimension { border: 1px solid var(--line); background: #0f100e; }
.dimension summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 54px; padding: 0 15px; color: var(--text); list-style: none; cursor: pointer; }
.dimension summary::-webkit-details-marker { display: none; }
.dimension summary strong { font-size: 14px; }
.dimension summary span { color: var(--gold-bright); font-size: 19px; font-weight: 800; }
.dimension-body { padding: 0 15px 16px; border-top: 1px solid var(--line); }
.dimension-body ul { margin: 14px 0; padding-left: 18px; color: var(--soft); font-size: 12px; line-height: 1.75; }
.dimension-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.report-conditions { display: grid; gap: 8px; margin-top: 14px; }
.report-conditions article { padding: 15px; border-left: 3px solid var(--gold); background: #11120f; }
.report-conditions article:nth-child(2) { border-left-color: var(--red); }
.report-conditions strong { display: block; color: var(--gold-bright); font-size: 12px; }
.report-conditions p { margin: 8px 0 0; color: var(--soft); font-size: 12px; line-height: 1.75; }
.chat-panel { margin-top: 22px; border-top: 1px solid var(--gold); padding-top: 16px; }
.chat-panel h3 { margin: 0; font-size: 17px; }
.suggested-questions { display: flex; gap: 7px; margin: 13px 0; overflow-x: auto; scrollbar-width: none; }
.suggested-questions button { flex: none; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); background: #0f100e; color: var(--soft); font-size: 10px; }
.chat-messages { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.chat-message { padding: 12px; border: 1px solid var(--line); color: var(--soft); font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.chat-message.user { margin-left: 28px; border-color: rgba(221, 177, 60, 0.5); background: #19160e; color: var(--text); }
.chat-message.assistant { margin-right: 14px; background: #0f110f; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 68px; gap: 8px; margin-top: 10px; }
.chat-form button { border: 1px solid var(--gold); background: var(--gold); color: #090a08; font-weight: 800; }

@media (min-width: 760px) {
  .auth-screen { padding-right: calc((100% - 700px) / 2); padding-left: calc((100% - 700px) / 2); }
  .app-header { padding-right: calc((100% - 720px) / 2 + 14px); padding-left: calc((100% - 720px) / 2 + 14px); }
  .bottom-nav { right: calc((100% - 720px) / 2); left: calc((100% - 720px) / 2); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
  .drawer { right: calc((100% - 720px) / 2); left: calc((100% - 720px) / 2); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
}

@media (max-width: 370px) {
  .auth-screen { padding-right: 18px; padding-left: 18px; }
  .auth-copy h1 { font-size: 40px; }
  .market-strip strong { font-size: 14px; }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-grid div:nth-child(2) { border-right: 0; }
  .score-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
