:root {
  --bg: #0b0f12;
  --surface: #11171b;
  --surface-raised: #151d22;
  --surface-soft: #182127;
  --border: #263138;
  --border-strong: #34434b;
  --text: #edf2f2;
  --muted: #8fa0a8;
  --faint: #64747c;
  --teal: #62d4bd;
  --teal-soft: #163d37;
  --amber: #eab96b;
  --amber-soft: #3d2f1a;
  --danger: #ef897f;
  --okx: #aebbc2;
  --sidebar: 224px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; background: var(--teal); color: #07110f; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; border-right: 1px solid var(--border); background: #0d1215; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid #29453f; border-radius: 12px; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .04em; }
.brand small { margin-top: 2px; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-link.is-active { color: var(--text); background: var(--surface-soft); border-left: 2px solid var(--teal); }
.nav-link small { color: var(--faint); font-size: 11px; }
.nav-link-member small { padding: 2px 5px; border: 1px solid #604d2d; border-radius: 999px; color: var(--amber); font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.nav-link.is-disabled { opacity: .55; pointer-events: none; }
.sidebar-note { margin-top: auto; display: flex; align-items: flex-start; gap: 10px; padding: 14px 10px; border-top: 1px solid var(--border); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note small { margin-top: 3px; color: var(--faint); font-size: 11px; line-height: 1.45; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(98, 212, 189, .08); }

main { width: 100%; max-width: 1560px; margin: 0 auto; padding: 28px clamp(20px, 3vw, 48px) 48px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
h3 { margin-bottom: 8px; font-size: 17px; }
.eyebrow { margin-bottom: 6px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.data-status { display: flex; align-items: flex-start; gap: 10px; text-align: right; }
.data-status strong, .data-status small { display: block; }
.data-status strong { font-size: 13px; }
.data-status small { margin-top: 3px; color: var(--faint); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.auth-entry { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--teal); text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.auth-entry:hover { border-color: #35685e; background: var(--teal-soft); }
.page-description { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.login-view[hidden] { display: none; }
.login-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 48px; max-width: 920px; margin: 6vh auto 0; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(98, 212, 189, .07), transparent 48%), var(--surface); }
.login-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.login-copy > p:last-of-type, .login-copy li { color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-copy ul { margin: 20px 0 0; padding-left: 19px; }
.login-form { display: grid; align-content: center; gap: 9px; }
.login-form label { margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.login-form input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: 0; background: #0b1013; color: var(--text); }
.login-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(98, 212, 189, .1); }
.login-form button { min-height: 46px; margin-top: 12px; border: 1px solid #468c7f; border-radius: var(--radius-sm); background: var(--teal); color: #07110f; cursor: pointer; font-weight: 800; }
.login-form button:disabled { cursor: wait; opacity: .6; }
.login-form small { color: var(--faint); font-size: 10px; text-align: center; }
.login-error { margin: 5px 0 0; color: var(--danger); font-size: 12px; line-height: 1.5; }

/* Public-safe system health: calm, evidence-first, and intentionally operational. */
.system-health-view[hidden] { display: none; }
.system-health-view { min-width: 0; }
.health-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(98, 212, 189, .07), transparent 46%), var(--surface); }
.health-hero h2 { font-size: clamp(24px, 2.4vw, 34px); }
.health-hero > div:first-child > p:last-child { max-width: 680px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.health-hero-status { display: grid; justify-items: end; gap: 8px; min-width: 168px; }
.health-hero-status small { color: var(--faint); font-size: 10px; }
.health-refresh { min-height: 34px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #0d1316; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 720; }
.health-refresh:hover { border-color: #35685e; color: var(--teal); }
.health-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 25px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.health-status.is-ok { border-color: #35685e; background: var(--teal-soft); color: var(--teal); }
.health-status.is-warning { border-color: #66512e; background: var(--amber-soft); color: var(--amber); }
.health-status.is-degraded { border-color: #6a3734; background: #3c2222; color: #ffaaa2; }
.health-status.is-unknown { background: var(--surface-soft); color: var(--faint); }
.health-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.health-summary > div { min-width: 0; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0d1316; }
.health-summary dt { color: var(--faint); font-size: 10px; }
.health-summary dd { margin: 7px 0 3px; overflow: hidden; font-size: 21px; font-weight: 780; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.health-summary small { color: var(--muted); font-size: 10px; }
.health-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 14px; }
.health-panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.health-panel-wide { grid-column: 1 / -1; }
.health-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.health-panel-heading h3 { margin: 0; }
.health-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.health-metrics > div { min-width: 0; padding: 12px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.health-metrics > div:last-child { grid-column: 1 / -1; }
.health-metrics dt { color: var(--faint); font-size: 10px; }
.health-metrics dd { margin: 6px 0 0; font-size: 16px; font-weight: 760; font-variant-numeric: tabular-nums; }
.health-component-list { display: grid; gap: 7px; }
.health-component { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 49px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.health-component:last-child { border-bottom: 0; }
.health-component strong, .health-component small { display: block; }
.health-component strong { font-size: 11px; }
.health-component small { margin-top: 3px; color: var(--faint); font-size: 9px; }
.health-component-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.health-component-dot.is-ok { background: var(--teal); box-shadow: 0 0 0 4px rgba(98, 212, 189, .08); }
.health-component-dot.is-warning { background: var(--amber); }
.health-component-dot.is-degraded { background: var(--danger); }
.health-empty { margin: 0; padding: 24px; color: var(--faint); font-size: 11px; text-align: center; }
.health-job-list { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(200px, .75fr)); gap: 10px; }
.health-job { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0d1316; }
.health-job header, .health-job footer, .health-job-compact { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.health-job strong, .health-job small { display: block; }
.health-job strong { font-size: 12px; }
.health-job small { margin-top: 5px; color: var(--faint); font-size: 9px; line-height: 1.45; }
.health-progress { height: 6px; margin: 15px 0 9px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.health-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }
.health-job footer { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.health-job-compact { align-items: flex-start; }
.health-privacy-note { margin: 12px 2px 0; color: var(--faint); font-size: 10px; line-height: 1.55; }

/* Future member research stays visibly separate without exposing data before server-side authorization exists. */
.member-zone[hidden] { display: none; }
.member-zone { min-width: 0; }
.member-zone.is-locked > :not(.member-gate) { display: none; }
.member-gate { max-width: 620px; margin: 8vh auto 0; padding: 42px; border: 1px solid #4c422d; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(234, 185, 107, .09), transparent 50%), var(--surface); text-align: center; }
.member-gate > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border: 1px solid #604d2d; border-radius: 50%; color: var(--amber); font-size: 12px; font-weight: 850; }
.member-gate h2 { font-size: clamp(24px, 3vw, 34px); }
.member-gate > p:not(.eyebrow) { max-width: 470px; margin: 12px auto 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.member-gate a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--amber); color: #171005; text-decoration: none; font-size: 12px; font-weight: 850; }
.member-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 28px; border: 1px solid #4c422d; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(231, 177, 90, .08), transparent 46%), var(--surface); }
.member-hero > div:first-child > p:last-child { max-width: 700px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.member-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.member-title-line h2 { font-size: clamp(24px, 2.4vw, 34px); }
.member-lock-badge { padding: 5px 9px; border: 1px solid #604d2d; border-radius: 999px; background: rgba(231, 177, 90, .08); color: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.member-lock-state { display: flex; align-items: center; gap: 11px; min-width: 225px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0c1114; }
.member-lock-state > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #604d2d; border-radius: 50%; color: var(--amber); font-size: 11px; font-weight: 800; }
.member-lock-state strong, .member-lock-state small { display: block; }
.member-lock-state strong { font-size: 12px; }
.member-lock-state small { margin-top: 3px; color: var(--faint); font-size: 10px; }
.member-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.member-preview-grid article { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.member-preview-grid article > span { color: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.member-preview-grid h3 { margin: 14px 0 7px; }
.member-preview-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.member-boundary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; margin-top: 16px; padding: 16px 18px; border-left: 2px solid var(--amber); background: rgba(231, 177, 90, .045); }
.member-boundary strong { font-size: 11px; }
.member-boundary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.follow-score-section { min-width: 0; margin-top: 16px; padding: 22px; border: 1px solid #4c422d; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(231, 177, 90, .035), transparent 150px), var(--surface); }
.follow-score-section .section-heading > p { max-width: 520px; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: right; }
.follow-score-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 18px 0 12px; }
.follow-score-summary div { min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.follow-score-summary dt { color: var(--faint); font-size: 10px; }
.follow-score-summary dd { margin: 7px 0 0; font-size: 18px; font-weight: 780; font-variant-numeric: tabular-nums; }
.follow-score-toolbar, .follow-ranking-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.follow-ranking-toolbar { padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.012); }
.follow-ranking-toolbar > span { margin-right: 3px; color: var(--muted); font-size: 10px; font-weight: 760; }
.follow-score-filter, .follow-ranking-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 760; }
.follow-score-filter:hover, .follow-score-filter.is-active, .follow-ranking-button:hover, .follow-ranking-button.is-active { border-color: #705a32; background: var(--amber-soft); color: var(--amber); }
.follow-score-table { min-width: 1360px; }
.follow-score-table td { vertical-align: middle; }
.follow-score-table td > small, .follow-score-table td > a + small, .follow-score-table td > div + small { display: block; margin-top: 5px; color: var(--faint); font-size: 9px; }
.follow-score-table code { font-size: 10px; }
.follow-score-cell { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; }
.follow-score-cell > strong { grid-row: 1 / 3; min-width: 50px; color: var(--amber); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.follow-score-cell > small { color: var(--faint); font-size: 9px; }
.follow-positions { display: flex; flex-wrap: wrap; gap: 5px; }
.follow-position { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 999px; font-size: 9px; }
.follow-position i { font-style: normal; font-weight: 800; }
.follow-position i.is-long { color: var(--teal); }
.follow-position i.is-short { color: #ffaaa2; }
.follow-risk-cell { display: grid; gap: 4px; min-width: 145px; }
.follow-risk-cell strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.follow-risk-cell small { color: var(--faint); font-size: 9px; line-height: 1.45; }
.management-cell { display: grid; gap: 4px; min-width: 170px; }
.management-cell > strong { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.management-cell small { color: var(--faint); font-size: 9px; line-height: 1.45; }
.management-cell .is-risk-text { color: var(--danger); }
.follow-score-method { margin-top: 12px; border-top: 1px solid var(--border); }
.follow-score-method summary { padding: 14px 2px 3px; cursor: pointer; color: var(--amber); font-size: 11px; font-weight: 760; }
.follow-score-method > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.follow-score-method p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.follow-score-method > div p { padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.follow-score-method strong { display: block; margin-bottom: 4px; color: var(--text); }
.directional-chart-panel { min-width: 0; margin-top: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.directional-chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.directional-chart-header h3 { margin-bottom: 0; font-size: 20px; }
.directional-chart-header > div:first-child > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.directional-chart-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.directional-segmented { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0b1013; }
.directional-segmented button { min-width: 45px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--faint); cursor: pointer; font-size: 10px; font-weight: 800; }
.directional-segmented button:hover { color: var(--text); }
.directional-segmented button.is-active { background: var(--surface-raised); color: var(--teal); box-shadow: inset 0 0 0 1px #31554f; }
.directional-chart-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 12px; }
.directional-chart-summary div { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.directional-chart-summary dt { color: var(--faint); font-size: 10px; }
.directional-chart-summary dd { margin: 6px 0 0; overflow: hidden; font-size: 16px; font-weight: 760; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.directional-chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 2px 10px; color: var(--muted); font-size: 10px; }
.directional-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.directional-chart-legend i { display: inline-block; width: 18px; height: 2px; background: var(--faint); }
.directional-chart-legend i.is-candle { width: 7px; height: 12px; border: 1px solid var(--teal); background: rgba(98, 212, 189, .24); }
.directional-chart-legend i.is-long { background: var(--teal); }
.directional-chart-legend i.is-short { background: #ff746b; }
.directional-chart-legend small { margin-left: auto; color: var(--faint); font-size: 9px; }
.directional-history-coverage { margin: 0 2px 10px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.directional-chart-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0a0f12; scrollbar-color: var(--border-strong) transparent; }
.directional-chart-wrap { position: relative; min-width: 760px; }
.directional-chart-wrap svg { display: block; width: 100%; height: auto; min-height: 395px; font-family: inherit; touch-action: pan-x; }
.directional-chart-empty { fill: var(--faint); font-size: 12px; }
.directional-grid-line { stroke: #1e2a2f; stroke-width: 1; }
.directional-axis-price, .directional-axis-time { fill: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.directional-heat-cell { shape-rendering: crispEdges; }
.directional-heat-cell.is-long { fill: #46d6b4; }
.directional-heat-cell.is-short { fill: #ff6158; }
.directional-candle line { stroke-width: 1; }
.directional-candle rect { stroke-width: 1; }
.directional-candle.is-up line, .directional-candle.is-up rect { stroke: var(--teal); }
.directional-candle.is-up rect { fill: rgba(98, 212, 189, .28); }
.directional-candle.is-down line, .directional-candle.is-down rect { stroke: #ff746b; }
.directional-candle.is-down rect { fill: rgba(255, 116, 107, .25); }
.directional-candle.is-live rect { stroke-width: 2; stroke-dasharray: 2 2; }
.directional-liquidation-line line, .directional-liquidation-line circle { vector-effect: non-scaling-stroke; }
.directional-liquidation-line text { font-size: 9px; font-weight: 800; paint-order: stroke; stroke: #0a0f12; stroke-width: 3px; }
.directional-liquidation-line.is-long line, .directional-liquidation-line.is-long circle { stroke: var(--teal); fill: var(--teal); }
.directional-liquidation-line.is-long text { fill: var(--teal); }
.directional-liquidation-line.is-short line, .directional-liquidation-line.is-short circle { stroke: #ff746b; fill: #ff746b; }
.directional-liquidation-line.is-short text { fill: #ffaaa2; }
.directional-current-line line { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 5 5; }
.directional-current-line text { fill: var(--amber); font-size: 9px; font-weight: 800; paint-order: stroke; stroke: #0a0f12; stroke-width: 3px; }
.directional-crosshair { pointer-events: none; }
.directional-crosshair line { stroke: rgba(220, 233, 236, .38); stroke-width: 1; stroke-dasharray: 3 4; }
.directional-crosshair circle { fill: #dce9ec; stroke: #0a0f12; stroke-width: 2; }
.directional-chart-tooltip { position: absolute; z-index: 3; width: 220px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: rgba(10, 15, 18, .96); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); pointer-events: none; }
.directional-chart-tooltip[hidden] { display: none; }
.directional-chart-tooltip time { display: block; margin-bottom: 7px; color: var(--faint); font-size: 9px; }
.directional-tooltip-ohlc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.directional-tooltip-liquidation { display: grid; gap: 4px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 10px; }
.directional-tooltip-liquidation span { color: var(--muted); }
.directional-tooltip-liquidation.is-long strong { color: var(--teal); }
.directional-tooltip-liquidation.is-short strong { color: #ffaaa2; }
.directional-liquidation-table-wrap { margin-top: 14px; }
.directional-liquidation-table { min-width: 780px; }
.directional-liquidation-table td:first-child { display: flex; align-items: center; gap: 8px; }
.directional-liquidation-table code { font-size: 10px; }

.page-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 580px; margin-bottom: 20px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0d1316; }
.page-tab { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; }
.page-tab:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.page-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.page-tab.is-active { border-color: var(--border-strong); background: var(--surface-soft); color: var(--text); }
.page-tab.is-active span { color: var(--teal); }
.page-tab span { font-size: 14px; font-weight: 750; }
.page-tab small { color: var(--faint); font-size: 11px; }
.product-page[hidden] { display: none; }

.page-intro { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(500px, 1.2fr); gap: 24px; margin-bottom: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(98, 212, 189, .055), transparent 42%), var(--surface); }
.page-intro > div > p:last-child { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.whale-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; }
.whale-summary div { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(11, 16, 19, .72); }
.whale-summary dt { color: var(--faint); font-size: 10px; letter-spacing: .06em; }
.whale-summary dd { margin: 7px 0 0; overflow: hidden; color: var(--text); font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }

.control-strip { display: flex; align-items: center; gap: 12px; min-height: 54px; margin-bottom: 16px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-sm); background: #0b1013; }
.segmented button { min-width: 52px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: var(--surface-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.market-coverage { margin: 0 8px 0 auto; color: var(--muted); font-size: 13px; }
.market-coverage strong { color: var(--text); }

.error-banner { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #623e3a; border-radius: var(--radius-sm); background: #251716; color: #ffb6af; font-size: 14px; }
.hero-grid { display: grid; grid-template-columns: minmax(310px, .78fr) minmax(440px, 1.22fr); gap: 16px; }
.regime-card, .chart-card, .score-card, .quadrant-card, .proof-card, .market-table-section { border: 1px solid var(--border); background: var(--surface); }
.regime-card, .chart-card, .quadrant-card, .proof-card { border-radius: var(--radius-lg); }
.regime-card { padding: 24px; }
.chart-card { padding: 20px; min-width: 0; }
.card-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.card-heading.compact, .section-heading.compact { align-items: center; }
.confidence-badge, .data-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid #5b492e; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 750; white-space: nowrap; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 36px; }
.price-line strong { font-variant-numeric: tabular-nums; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.045em; }
.price-line span { color: var(--teal); font-size: 15px; font-weight: 750; }
.price-line span.is-negative { color: var(--danger); }
.price-meta { display: flex; flex: 0 0 100%; justify-content: space-between; gap: 16px; margin-top: 2px; text-align: left; }
.price-line small { color: var(--muted); }
.price-line .price-meta small:last-child { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.regime-copy { min-height: 44px; margin: 18px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.evidence-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.evidence-summary span, .evidence-summary strong { display: block; }
.evidence-summary span { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.evidence-summary strong { margin-top: 6px; font-size: 13px; line-height: 1.45; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 2px; background: var(--teal); }
.legend .line-okx { background: var(--okx); }
.price-chart { position: relative; height: 230px; margin: 18px 0 10px; overflow: hidden; cursor: crosshair; touch-action: pan-y; }
.price-chart:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: var(--radius-sm); }
.price-chart svg { width: 100%; height: 100%; display: block; }
.chart-grid { stroke: #263138; stroke-width: 1; }
.chart-binance { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-okx { fill: none; stroke: var(--okx); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.chart-crosshair { position: absolute; inset: 0; pointer-events: none; }
.chart-crosshair[hidden], .chart-tooltip[hidden], .chart-point[hidden] { display: none; }
.chart-crosshair-line { position: absolute; top: 0; bottom: 0; left: var(--cursor-x); border-left: 1px dashed rgba(237, 242, 242, .35); transform: translateX(-.5px); }
.chart-point { position: absolute; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px currentColor; }
.chart-point-binance { color: var(--teal); background: var(--teal); }
.chart-point-okx { color: var(--okx); background: var(--okx); }
.chart-tooltip { position: absolute; z-index: 3; width: 206px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: rgba(11, 15, 18, .96); box-shadow: 0 12px 32px rgba(0, 0, 0, .32); pointer-events: none; font-variant-numeric: tabular-nums; }
.chart-tooltip-time { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.chart-tooltip-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 24px; font-size: 12px; }
.chart-tooltip-row span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chart-tooltip-row strong { color: var(--text); font-size: 13px; }
.tooltip-swatch { width: 7px; height: 7px; border-radius: 50%; background: var(--okx); }
.tooltip-swatch.is-binance { background: var(--teal); }
.chart-tooltip-spread { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--border); }
.chart-tooltip-spread span { grid-row: 1 / span 2; align-self: center; color: var(--faint); font-size: 11px; }
.chart-tooltip-spread strong { color: var(--amber); font-size: 12px; text-align: right; }
.chart-tooltip-spread small { color: var(--muted); font-size: 10px; text-align: right; }
.chart-loading { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 13px; }
.chart-footer { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; }

.scores-section, .evidence-grid, .market-table-section, .terminology-section { margin-top: 32px; }
.section-heading { margin-bottom: 14px; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--faint); font-size: 12px; text-align: right; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 12px; }
.score-card { display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius-md); }
.score-card.is-unavailable { background: #0f1417; }
.score-top { display: flex; justify-content: space-between; gap: 12px; }
.score-top span, .score-top strong { display: block; }
.score-top span { color: var(--muted); font-size: 12px; }
.score-top strong { margin-top: 7px; font-size: 28px; font-variant-numeric: tabular-nums; }
.score-top small { color: var(--teal); font-size: 11px; }
.is-unavailable .score-top small { color: var(--faint); }
.meter { height: 4px; margin: 16px 0; overflow: hidden; background: #263138; }
.meter span { display: block; width: 0; height: 100%; background: var(--teal); transition: width .25s ease; }
.meter.warning span { background: var(--amber); }
.score-description { min-height: 34px; margin: 0; color: var(--faint); font-size: 12px; line-height: 1.55; }
.metric-explainer { margin-top: 16px; border-top: 1px solid var(--border); }
.metric-explainer[open] { border-top-color: #4d5e66; }
.metric-explainer summary, .inline-explainer summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.metric-explainer summary::-webkit-details-marker, .inline-explainer summary::-webkit-details-marker, .glossary-panel summary::-webkit-details-marker { display: none; }
.metric-explainer summary::after, .inline-explainer summary::after { content: "+"; flex: 0 0 auto; color: var(--amber); font-size: 17px; font-weight: 400; line-height: 1; }
.metric-explainer[open] summary::after, .inline-explainer[open] summary::after { content: "−"; }
.metric-explainer summary:hover, .inline-explainer summary:hover { color: var(--text); }
.metric-explainer summary:focus-visible, .inline-explainer summary:focus-visible, .glossary-panel summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.metric-explainer-body { display: grid; gap: 10px; padding: 1px 0 4px; }
.metric-explainer-body > p { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; }
.metric-explainer-body > p strong { color: var(--muted); }
.metric-explainer-body .metric-formula { padding-top: 9px; border-top: 1px dashed var(--border); color: var(--muted); }
.formula-block { padding: 12px; border: 1px solid #5b492e; border-radius: var(--radius-sm); background: rgba(234,185,107,.055); }
.formula-block span, .formula-block strong, .formula-block small { display: block; }
.formula-block span { color: var(--faint); font-size: 10px; letter-spacing: .08em; }
.formula-block strong { margin-top: 6px; color: var(--amber); font-size: 12px; line-height: 1.5; }
.formula-block small { margin-top: 6px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.pressure-breakdown { margin: 0; }
.pressure-breakdown div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pressure-breakdown dt { color: var(--faint); font-size: 11px; }
.pressure-breakdown dd { max-width: 58%; margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pressure-guidance h3 { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.pressure-guidance ul { display: grid; gap: 7px; margin: 0; padding-left: 17px; color: var(--faint); font-size: 11px; line-height: 1.5; }
.pressure-guidance strong { color: var(--muted); }
.metric-explainer-body .explainer-limit { padding-top: 11px; border-top: 1px dashed var(--border); color: var(--faint); font-size: 10px; }

.inline-explainer { margin-top: 14px; border-top: 1px solid var(--border); }
.inline-explainer > div { display: grid; gap: 8px; padding: 2px 0 4px; }
.inline-explainer p { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; }
.inline-explainer p strong { color: var(--muted); }

.evidence-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.quadrant-card, .proof-card { padding: 20px; }
.quadrant { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 270px; margin: 24px 30px 18px; border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.quadrant > div { display: flex; flex-direction: column; justify-content: center; padding: 16px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--faint); }
.quadrant > div strong { color: var(--muted); font-size: 12px; }
.quadrant > div span { margin-top: 5px; font-size: 11px; }
.axis-label { position: absolute; color: var(--faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.axis-oi { right: 0; bottom: -18px; }
.axis-price { left: -24px; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.quadrant-dead-zone { position: absolute; left: 50%; top: 50%; width: 21%; height: 21%; border: 1px dashed rgba(143,160,168,.28); background: rgba(143,160,168,.035); transform: translate(-50%, -50%); }
.quadrant-marker { position: absolute; left: 50%; top: 50%; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--amber); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); box-shadow: 0 0 0 7px rgba(234,185,107,.1); transition: left .25s ease, top .25s ease, border-color .2s ease, box-shadow .2s ease; }
.quadrant-marker.is-ready { border-color: var(--teal); box-shadow: 0 0 0 7px rgba(98,212,189,.1); }
.quadrant-marker.is-divergent { border-color: var(--amber); box-shadow: 0 0 0 7px rgba(234,185,107,.12); }
.quadrant-readout { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0 0 14px; }
.quadrant-readout div { padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,.012); }
.quadrant-readout dt { color: var(--faint); font-size: 10px; }
.quadrant-readout dd { margin: 4px 0 0; color: var(--text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coverage-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.proof-list { margin: 18px 0 0; }
.proof-list div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.proof-list div:last-child { border-bottom: 0; }
.proof-list dt { color: var(--muted); font-size: 12px; }
.proof-list dd { margin: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.glossary-panel { padding: 0 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.glossary-panel[open] { border-color: var(--border-strong); }
.glossary-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; cursor: pointer; list-style: none; }
.glossary-panel > summary span, .glossary-panel > summary small, .glossary-panel > summary strong { display: block; }
.glossary-panel > summary small { margin-bottom: 5px; color: var(--faint); font-size: 10px; letter-spacing: .12em; }
.glossary-panel > summary strong { font-size: 17px; }
.glossary-panel > summary em { color: var(--amber); font-size: 11px; font-style: normal; }
.glossary-panel > summary em::after { content: " ＋"; font-size: 15px; }
.glossary-panel[open] > summary em::after { content: " −"; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; margin: 0; padding: 0 0 20px; border-top: 1px solid var(--border); }
.glossary-grid div { padding: 15px 0; border-bottom: 1px solid var(--border); }
.glossary-grid dt { color: var(--text); font-size: 12px; font-weight: 750; }
.glossary-grid dd { margin: 6px 0 0; color: var(--faint); font-size: 11px; line-height: 1.6; }


.market-table-section { padding: 20px; border-radius: var(--radius-lg); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: right; font-size: 12px; }
th { color: var(--faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
th:first-child, td:first-child, th:nth-child(4), td:nth-child(4) { text-align: left; }
td { color: var(--muted); font-variant-numeric: tabular-nums; }
td strong { color: var(--text); font-size: 13px; }
.change-positive { color: var(--teal); }
.change-negative { color: var(--danger); }
.table-loading { padding: 30px; color: var(--faint); text-align: center !important; }
.state-label { color: var(--amber); }

footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); }
footer p { max-width: 560px; margin: 0; color: var(--faint); font-size: 11px; line-height: 1.5; }

.skeleton { color: transparent; background: var(--surface-soft); border-radius: 4px; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

@media (max-width: 1050px) {
  :root { --sidebar: 76px; }
  .brand > span:last-child, .nav-link:not(.is-active) small, .nav-link { font-size: 0; }
  .brand { justify-content: center; padding-inline: 0; }
  .nav-link { grid-template-columns: 1fr; place-items: center; }
  .nav-link span { font-size: 19px; }
  .sidebar-note div { display: none; }
  .sidebar-note { justify-content: center; }
  .hero-grid, .evidence-grid { grid-template-columns: 1fr; }
  .page-intro { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .member-hero { grid-template-columns: 1fr; }
  .member-lock-state { width: fit-content; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; width: auto; height: auto; padding: 14px 16px; gap: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); align-items: center; }
  .brand { justify-content: flex-start; padding: 0; }
  .brand > span:last-child { display: block; font-size: inherit; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .sidebar nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .nav-link { grid-template-columns: 16px minmax(0, 1fr); min-height: 44px; padding: 0 7px; gap: 5px; place-items: center start; font-size: 12px; white-space: nowrap; }
  .nav-link span { font-size: 15px; }
  .nav-link small, .nav-link:not(.is-active) small { display: none; }
  .nav-link.is-active { border-left: 0; box-shadow: inset 0 0 0 1px rgba(98, 212, 189, .28); }
  .sidebar-note { margin: 0; padding: 0; border: 0; }
  .sidebar-note div { display: block; }
  .sidebar-note strong { font-size: 10px; }
  .sidebar-note small { display: none; }
  .member-hero { gap: 20px; padding: 20px; }
  .health-hero { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .health-hero-status { justify-items: start; min-width: 0; }
  .health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-layout { grid-template-columns: 1fr; }
  .health-panel-wide { grid-column: auto; }
  .health-job-list { grid-template-columns: 1fr; }
  .member-lock-state { width: auto; min-width: 0; }
  .member-preview-grid { grid-template-columns: 1fr; }
  .member-preview-grid article { padding: 18px; }
  .member-boundary { grid-template-columns: 1fr; gap: 7px; }
  .directional-chart-panel { padding: 16px; }
  .directional-chart-header { display: grid; gap: 16px; }
  .directional-chart-controls { justify-content: flex-start; }
  .directional-chart-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directional-chart-legend small { width: 100%; margin-left: 0; }
  .directional-chart-wrap svg { min-height: 395px; }
  main { padding: 20px 16px 36px; }
  .topbar { align-items: center; margin-bottom: 18px; }
  .header-actions { gap: 8px; }
  .data-status { display: none; }
  .auth-entry { min-height: 34px; padding-inline: 10px; font-size: 11px; }
  .login-card { grid-template-columns: 1fr; gap: 26px; margin-top: 0; padding: 22px; }
  .login-copy ul { margin-top: 14px; }
  .member-gate { margin-top: 0; padding: 28px 20px; }
  .topbar .eyebrow { display: none; }
  .page-description { display: none; }
  .page-switcher { max-width: none; margin-bottom: 16px; }
  .page-tab { display: grid; justify-content: start; gap: 2px; min-height: 52px; padding: 7px 11px; }
  .page-tab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-intro { gap: 18px; padding: 18px; }
  .whale-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whale-summary .performance-progress { grid-column: span 2; }
  h1 { font-size: 25px; }
  .data-status strong { font-size: 11px; }
  .data-status small { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .control-strip { flex-wrap: wrap; gap: 8px; }
  .market-coverage { width: 100%; margin: 2px 4px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .regime-card, .chart-card { padding: 18px; }
  .price-line { margin-top: 28px; flex-wrap: wrap; }
  .price-meta { display: grid; width: 100%; margin-left: 0; text-align: left; }
  .price-chart { height: 190px; }
  .score-grid { grid-template-columns: 1fr; }
  .scores-section, .evidence-grid, .market-table-section, .terminology-section { margin-top: 26px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 6px; text-align: left; }
  .section-heading.compact { display: flex; }
  .quadrant { min-height: 230px; margin-inline: 22px 12px; }
  .quadrant > div { padding: 10px; }
  .quadrant > div strong { font-size: 10px; }
  .quadrant-readout { grid-template-columns: 1fr; }
  .glossary-panel { padding: 0 16px; }
  .glossary-panel > summary { min-height: 64px; }
  .glossary-panel > summary em { max-width: 90px; text-align: right; }
  .glossary-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer p + p { margin-top: 8px; }
}

@media (max-width: 360px) {
  .sidebar nav { grid-template-columns: 1fr; }
}

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


/* Market-cap whale radar: additive styles that preserve the original dashboard shell. */
.latest-orders-section { min-width: 0; margin-top: 32px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.latest-order-legend { display: flex; align-items: center; gap: 7px; margin: -2px 0 14px; }
.event-kind { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 24px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.event-kind.is-open { border-color: #35685e; background: #163d37; color: var(--teal); }
.event-kind.is-increase { border-color: #5b492e; background: var(--amber-soft); color: var(--amber); }
.event-kind.is-reduce { background: var(--surface-raised); color: var(--muted); }
.latest-order-filter { min-height: 34px; cursor: pointer; font: inherit; font-size: 10px; transition: opacity .16s ease, box-shadow .16s ease, transform .16s ease; }
.latest-order-filter:hover { transform: translateY(-1px); }
.latest-order-filter:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.latest-order-filter.is-active { box-shadow: 0 0 0 2px rgba(98, 212, 189, .3); }
.latest-order-legend.has-filter .latest-order-filter:not(.is-active) { opacity: .42; }
.latest-orders-table { min-width: 1050px; }
.latest-orders-table td > small, .latest-orders-table td > strong { display: block; }
.latest-orders-table td > small { margin-top: 4px; color: var(--faint); font-size: 9px; }
.latest-orders-table time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.latest-orders-table code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.latest-orders-table tr:first-child { background: rgba(98, 212, 189, .035); }
.market-radar-controls { display: flex; align-items: end; gap: 12px; margin: 14px 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0d1316; }
.market-search-control { display: grid; gap: 4px; }
.market-search-control span { color: var(--faint); font-size: 10px; }
.market-search-control input { width: 180px; min-height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: #0b1013; color: var(--text); }
.market-search-control input:focus { border-color: var(--teal); }
.market-filters button { min-width: 55px; }
.market-radar-coverage { margin: 0 4px 8px auto; color: var(--muted); font-size: 13px; }
.market-radar-coverage strong { color: var(--text); }
.market-table-section, .positions-card, .position-grid > * { min-width: 0; }
.market-table-section table { min-width: 970px; }
.market-select { display: grid; grid-template-columns: 30px 52px 1fr; align-items: center; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.market-select span { color: var(--faint); font-size: 10px; }
.market-select strong { color: var(--text); font-size: 13px; }
.market-select small { margin: 0; overflow: hidden; color: var(--faint); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.market-table-section tr.is-selected { background: rgba(98, 212, 189, .045); }
.market-table-section tr:hover { background: rgba(255, 255, 255, .018); }
.market-more-row { display: flex; justify-content: center; padding-top: 14px; }
.market-more-row button { min-height: 42px; padding: 0 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.market-more-row button:hover { border-color: var(--teal); color: var(--teal); }
.market-more-row button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.market-more-row button[hidden] { display: none; }
.table-state, .side-label { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.table-state { min-height: 23px; padding: 0 8px; border: 1px solid var(--border-strong); color: var(--muted); }
.is-positive { border-color: #35685e !important; background: #163d37 !important; color: var(--teal) !important; }
.is-negative { border-color: #3f5b74 !important; background: #172b3d !important; color: #9fc4e8 !important; }
.is-danger { border-color: #6b3d3a !important; background: #3c2222 !important; color: #ffaaa2 !important; }
.is-warning { border-color: #5b492e !important; background: var(--amber-soft) !important; color: var(--amber) !important; }
.is-neutral { background: var(--surface-raised) !important; }
.is-positive-text { color: var(--teal) !important; }
.is-negative-text { color: var(--danger) !important; }

.positions-section { margin-top: 32px; }
.position-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 16px; }
.positions-card, .method-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.positions-card { padding: 12px 18px; }
.positions-table { min-width: 720px !important; }
.positions-table code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.address-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.address-link span { color: var(--teal); font-size: 11px; }
.address-link:hover code { color: var(--teal); }
.address-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.address-with-tag { display: inline-flex; align-items: center; gap: 8px; min-width: max-content; }
.classification-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 9px; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.classification-tag.is-directional { border-color: #35685e; background: #163d37; color: var(--teal); }
.classification-tag.is-maker { border-color: #5b492e; background: var(--amber-soft); color: var(--amber); }
.classification-tag.is-large { border-color: #31516b; background: #132b3d; color: #8ec7ee; }
.classification-tag.is-tracked { background: var(--surface-raised); color: var(--muted); }
.side-label { min-width: 28px; padding: 3px 6px; }
.side-label.is-long { background: #163d37; color: var(--teal); }
.side-label.is-short { background: #3c2222; color: #ffaaa2; }
.method-card { padding: 22px; }
.method-list { margin: 20px 0 0; }
.method-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.method-list dt { font-size: 12px; font-weight: 750; }
.method-list dd { margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.method-limit { margin: 18px 0 0; color: var(--faint); font-size: 11px; line-height: 1.6; }

.arbitrage-section { margin-top: 32px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.live-trading-section { border-color: #573735; background: linear-gradient(180deg, rgba(117, 52, 47, .08), var(--surface) 130px); }
.paper-trading-section { border-color: #31554f; background: linear-gradient(180deg, rgba(51, 137, 122, .08), var(--surface) 150px); }
.live-money-label { color: #ff8f86; }
.paper-money-label { color: var(--teal); }
.arbitrage-notice { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #4a402a; border-radius: var(--radius-md); background: rgba(234, 185, 107, .055); }
.live-risk-notice { border-color: #573735; background: rgba(190, 68, 58, .08); }
.paper-running-notice { border-color: #31554f; background: rgba(51, 137, 122, .08); }
.arbitrage-notice strong { display: block; font-size: 13px; }
.arbitrage-notice p { max-width: 900px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.arbitrage-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.arbitrage-summary div { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.arbitrage-summary dt { color: var(--faint); font-size: 10px; }
.arbitrage-summary dd { margin: 7px 0 0; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.arbitrage-trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.arbitrage-history-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 10px 2px 0; border-top: 1px solid var(--border); }
.arbitrage-history-controls[hidden] { display: none; }
.arbitrage-history-controls p { margin: 0; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.arbitrage-history-actions { display: flex; align-items: center; gap: 8px; }
.arbitrage-history-controls button { min-height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.arbitrage-history-controls button.is-secondary { background: transparent; color: var(--muted); }
.arbitrage-history-controls button:hover { border-color: var(--amber); color: var(--amber); }
.arbitrage-history-controls button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.arbitrage-history-controls button:disabled { cursor: wait; opacity: .6; }
.arbitrage-trade-card, .arbitrage-loading { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); }
.arbitrage-trade-card { padding: 18px; border-top: 2px solid var(--border-strong); }
.arbitrage-trade-card.is-win { border-top-color: var(--teal); }
.arbitrage-trade-card.is-loss { border-top-color: var(--danger); }
.arbitrage-trade-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.arbitrage-trade-card h3 { margin: 0; font-size: 17px; }
.live-order-error { margin: 14px 0 0; padding: 9px 10px; border-radius: var(--radius-sm); background: rgba(190, 68, 58, .1); color: #ffaaa2; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.arbitrage-loading { grid-column: 1 / -1; padding: 36px; color: var(--faint); text-align: center; font-size: 12px; }
.trade-pnl { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin: 22px 0; }
.trade-pnl span, .trade-pnl small { color: var(--faint); font-size: 10px; }
.trade-pnl strong { font-size: 26px; letter-spacing: -.035em; }
.trade-pnl small { grid-column: 1 / -1; }
.execution-timeline { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; padding: 10px 0; border-block: 1px solid var(--border); color: var(--faint); font-size: 10px; }
.execution-timeline i { display: block; height: 1px; background: var(--border-strong); }
.execution-timeline strong { color: var(--amber); font-size: 10px; white-space: nowrap; }
.trade-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin: 12px 0 0; }
.trade-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.trade-facts dt { color: var(--faint); font-size: 10px; }
.trade-facts dd { margin: 0; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.arbitrage-method { margin-top: 12px; border-top: 1px solid var(--border); }
.arbitrage-method summary { padding: 15px 2px 3px; cursor: pointer; color: var(--amber); font-size: 11px; }
.arbitrage-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.arbitrage-method-grid p { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--faint); font-size: 10px; line-height: 1.55; }
.arbitrage-method-grid strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 11px; }
.live-archive { margin-top: 18px; border-top: 1px solid var(--border-strong); }
.live-archive > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px 4px; cursor: pointer; list-style: none; }
.live-archive > summary::-webkit-details-marker { display: none; }
.live-archive > summary span { display: grid; gap: 4px; }
.live-archive > summary small { color: #ff8f86; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.live-archive > summary strong { font-size: 14px; }
.live-archive > summary em { padding: 5px 8px; border: 1px solid #573735; border-radius: 999px; color: #ffaaa2; font-size: 10px; font-style: normal; }
.live-archive-status { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* Wallet detail keeps the whale workflow dense, evidence-first and shareable by URL. */
.whale-address-detail { min-width: 0; }
.address-back { display: inline-flex; align-items: center; min-height: 38px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.address-back:hover { color: var(--teal); }
.address-back:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: var(--radius-sm); }
.wallet-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(98, 212, 189, .06), transparent 44%), var(--surface); }
.wallet-hero h2 { font-size: clamp(22px, 2vw, 30px); }
.wallet-hero code { display: block; max-width: min(620px, 70vw); margin-top: 8px; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-freshness { display: grid; justify-items: end; gap: 8px; text-align: right; }
.wallet-freshness small { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.wallet-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.wallet-summary-grid div { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.wallet-summary-grid dt { color: var(--faint); font-size: 10px; letter-spacing: .06em; }
.wallet-summary-grid dd { margin: 8px 0 0; overflow: hidden; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.wallet-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 16px; }
.wallet-panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.wallet-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wallet-performance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.wallet-performance-grid div { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.wallet-performance-grid dt { color: var(--faint); font-size: 10px; }
.wallet-performance-grid dd { margin: 7px 0 0; overflow: hidden; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.wallet-panel-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.wallet-evidence-list { margin: 12px 0 0; }
.wallet-evidence-list div { padding: 9px 0; border-bottom: 1px solid var(--border); }
.wallet-evidence-list dt { font-size: 11px; font-weight: 750; }
.wallet-evidence-list dd { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.wallet-pnl-panel, .wallet-positions-panel, .wallet-events-panel { margin-top: 16px; }
.wallet-pnl-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wallet-pnl-heading h3 { margin-bottom: 0; font-size: 20px; }
.wallet-pnl-heading > div:first-child > p:last-child { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.wallet-pnl-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.wallet-pnl-control-group { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0a0f12; }
.wallet-pnl-button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.wallet-pnl-button:hover { color: var(--text); }
.wallet-pnl-button.is-active { background: #1b292d; color: #9aeee0; box-shadow: inset 0 0 0 1px #31554f; }
.wallet-pnl-button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wallet-pnl-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 12px; }
.wallet-pnl-summary div { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0d1316; }
.wallet-pnl-summary dt { color: var(--faint); font-size: 10px; }
.wallet-pnl-summary dd { margin: 6px 0 0; overflow: hidden; font-size: 16px; font-weight: 760; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.wallet-pnl-chart-wrap { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0a0f12; }
.wallet-pnl-chart-wrap svg { display: block; width: 100%; height: auto; min-height: 260px; font-family: inherit; touch-action: pan-y; }
.wallet-pnl-grid { stroke: #223037; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wallet-pnl-zero { stroke: #53646c; stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.wallet-pnl-axis-label { fill: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.wallet-pnl-area { fill: url(#wallet-pnl-area-gradient); opacity: .28; }
.wallet-pnl-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wallet-pnl-focus-line { stroke: #6c7c84; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.wallet-pnl-focus-dot { fill: #0a0f12; stroke: #83e1cf; stroke-width: 3; vector-effect: non-scaling-stroke; }
.wallet-pnl-empty { fill: var(--faint); font-size: 12px; }
.wallet-pnl-tooltip { position: absolute; z-index: 2; width: 210px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: rgba(10, 15, 18, .97); box-shadow: 0 14px 30px rgba(0, 0, 0, .34); pointer-events: none; }
.wallet-pnl-tooltip[hidden] { display: none; }
.wallet-pnl-tooltip time { display: block; margin-bottom: 8px; color: var(--faint); font-size: 10px; }
.wallet-pnl-tooltip dl { display: grid; gap: 6px; margin: 0; }
.wallet-pnl-tooltip div { display: flex; justify-content: space-between; gap: 12px; }
.wallet-pnl-tooltip dt { color: var(--muted); font-size: 10px; }
.wallet-pnl-tooltip dd { margin: 0; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.wallet-pnl-status { margin: 10px 2px 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.wallet-positions-panel .section-heading > p, .wallet-events-panel .section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.wallet-positions-table { min-width: 930px; }
.wallet-positions-table td strong, .wallet-positions-table td small { display: block; }
.wallet-positions-table td small { margin-top: 4px; color: var(--faint); font-size: 9px; }
.wallet-positions-table tr.is-preexisting-position { opacity: .58; }
.wallet-positions-table tr.is-preexisting-position:hover { opacity: .78; }
.wallet-positions-table tr.is-observed-position td:first-child { border-left: 2px solid rgba(98, 212, 189, .55); }
.wallet-event-list { position: relative; display: grid; gap: 0; margin-top: 14px; }
.wallet-event-list::before { position: absolute; top: 12px; bottom: 12px; left: 6px; width: 1px; background: var(--border-strong); content: ""; }
.wallet-event { position: relative; display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; }
.wallet-event:last-child { padding-bottom: 0; }
.wallet-event-marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 12px; border: 3px solid var(--surface); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #35685e; }
.wallet-event.is-secondary { opacity: .56; }
.wallet-event.is-secondary:hover { opacity: .78; }
.wallet-event.is-secondary .wallet-event-marker { background: var(--faint); box-shadow: 0 0 0 1px var(--border-strong); }
.wallet-event.is-primary .wallet-event-body { border-color: #31554f; }
.wallet-event-body { padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0d1316; }
.wallet-event-body header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wallet-event-body header strong, .wallet-event-body header small { display: block; }
.wallet-event-body header strong { font-size: 12px; }
.wallet-event-body header small { margin-top: 4px; color: var(--faint); font-size: 10px; }
.wallet-event-body p { margin: 8px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 1120px) {
  .position-grid { grid-template-columns: 1fr; }
  .wallet-detail-grid { grid-template-columns: 1fr; }
  .arbitrage-method-grid { grid-template-columns: repeat(2, 1fr); }
  .follow-score-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .follow-score-method > div { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .member-hero { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .member-lock-state { min-width: 0; }
  .follow-score-section { padding: 16px; }
  .follow-score-section .section-heading { display: grid; gap: 8px; }
  .follow-score-section .section-heading > p { max-width: none; text-align: left; }
  .follow-score-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-score-filter, .follow-ranking-button { min-height: 40px; }
  .follow-score-method > div { grid-template-columns: 1fr; }
  .latest-orders-section { margin-top: 26px; padding: 16px; }
  .latest-order-legend { align-items: flex-start; flex-wrap: wrap; }
  .latest-order-filter { min-height: 40px; padding-inline: 12px; }
  .whale-summary .performance-progress { grid-column: auto; }
  .market-radar-controls { align-items: stretch; flex-wrap: wrap; }
  .market-search-control, .market-search-control input, .market-filters { width: 100%; }
  .market-search-control input { min-height: 42px; }
  .market-filters button { flex: 1; min-width: 0; min-height: 40px; }
  .market-radar-coverage { width: 100%; margin: 3px 4px; }
  .positions-card { padding: 8px 14px; }
  .wallet-hero { display: grid; gap: 18px; padding: 18px; }
  .wallet-hero code { max-width: calc(100vw - 72px); }
  .wallet-freshness { justify-items: start; text-align: left; }
  .wallet-summary-grid, .wallet-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-pnl-heading { display: grid; gap: 14px; }
  .wallet-pnl-controls { justify-content: flex-start; }
  .wallet-pnl-control-group { flex: 1; }
  .wallet-pnl-button { flex: 1; min-height: 40px; }
  .wallet-pnl-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-pnl-summary div:last-child { grid-column: 1 / -1; }
  .wallet-pnl-chart-wrap svg { min-height: 0; }
  .wallet-pnl-axis-label { font-size: 16px; }
  .wallet-pnl-tooltip { width: 190px; }
  .latest-orders-table .address-with-tag { align-items: flex-start; flex-direction: column; gap: 5px; }
  .wallet-panel { padding: 16px; }
  .wallet-panel-heading, .wallet-positions-panel .section-heading, .wallet-events-panel .section-heading { display: grid; }
  .wallet-positions-panel .section-heading > p, .wallet-events-panel .section-heading > p { max-width: none; text-align: left; }
  .wallet-event-body header { display: grid; gap: 8px; }
  .arbitrage-section { padding: 16px; }
  .arbitrage-notice { grid-template-columns: 1fr; }
  .arbitrage-summary { grid-template-columns: repeat(2, 1fr); }
  .arbitrage-trade-grid, .arbitrage-method-grid { grid-template-columns: 1fr; }
  .arbitrage-history-controls { align-items: stretch; flex-direction: column; }
  .arbitrage-history-actions { width: 100%; }
  .arbitrage-history-actions button { flex: 1; min-height: 42px; }
  .execution-timeline { grid-template-columns: 1fr auto 1fr; }
  .execution-timeline i:nth-of-type(2), .execution-timeline span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
