:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --surface: #141417;
  --surface-pressed: #1b1b20;
  --surface-active: #26262d;
  --line: #232328;
  --line-subtle: #1d1d22;
  --text: #f4f4f5;
  --muted: #8a8a93;
  --faint: #5e5e68;
  --disabled: #35353d;
  --accent: #6e8bff;
  --positive: #3dd68c;
  --negative: #f26d5b;
  --warning: #e0a458;
  --warning-surface: #1f1912;
  --warning-line: #3a2e1c;
  --recording-surface: #2a1815;
  --recording-line: #4a2620;
  --recording-text: #ffb4a6;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -8%, rgba(110, 139, 255, 0.12), transparent 30rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.positive {
  color: var(--positive) !important;
}

.negative {
  color: var(--negative) !important;
}

.warning {
  color: var(--warning) !important;
}

.eyebrow {
  margin-bottom: 11px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand-logo.large {
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  border-radius: 16px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-pressed);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: #34343c;
  background: var(--surface-active);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: transparent;
  color: var(--bg);
  background: var(--text);
}

.button.primary:hover {
  background: #ffffff;
}

.button.compact {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

.button.full {
  width: 100%;
}

.button.ghost {
  background: transparent;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
}

/* Authentication */

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 26px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card {
  padding: 42px;
}

.auth-back {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 11px;
}

.auth-logo {
  display: block;
  margin-bottom: 26px;
}

.login-card h1 {
  max-width: 480px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.login-card h1 em {
  display: block;
  font-style: normal;
  font-weight: 420;
}

.login-card > .muted {
  max-width: 46ch;
  font-size: 13px;
}

.login-card form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.login-card label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--bg-soft);
  font-size: 13px;
  outline: none;
}

.login-card input::placeholder {
  color: var(--faint);
}

.login-card input:focus {
  border-color: var(--accent);
}

.login-card form .button {
  margin-top: 8px;
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--negative);
  font-size: 11px;
}

.auth-note {
  margin: 5px 0 0;
  color: var(--faint);
  font-size: 9px;
  text-align: center;
}

.form-notice {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--positive);
  font-size: 11px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.auth-links .text-button {
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-links .text-button:hover {
  color: var(--text);
}

.oauth-options {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 11px;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.button.social {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.login-aside {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 40px;
  border-left: 1px solid #24584c;
  background: #0d2923;
}

.login-aside blockquote {
  margin-bottom: 60px;
  font-size: 22px;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.login-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #24584c;
  color: #9ab8b0;
  font-size: 10px;
}

.login-stat-row strong {
  color: var(--text);
  font-size: 11px;
}

/* Authenticated dashboard */

.confidence-pill {
  display: inline-flex !important;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted) !important;
  background: var(--bg-soft);
  font-size: 9px !important;
  font-weight: 650;
}

.dashboard-shell {
  min-height: 100vh;
  background: var(--bg);
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 226px;
  flex-direction: column;
  padding: 22px 18px;
  border-right: 1px solid var(--line-subtle);
  background: var(--bg);
}

.dashboard-sidebar > .brand {
  padding: 0 8px;
}

.dashboard-nav {
  display: grid;
  gap: 4px;
  margin-top: 48px;
}

.dashboard-nav button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 620;
  text-align: left;
}

.dashboard-nav button span {
  width: 17px;
  color: var(--faint);
  font-family: "Apple Symbols", sans-serif;
  font-size: 14px;
  text-align: center;
}

.dashboard-nav button:hover,
.dashboard-nav button.active {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.dashboard-nav button.active span {
  color: var(--accent);
}

.sidebar-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.sidebar-note .status-dot {
  margin-top: 4px;
  margin-right: 0;
}

.sidebar-note p {
  margin: 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.55;
}

.sidebar-note strong {
  color: var(--muted);
  font-size: 9px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 0;
  color: var(--faint);
  background: transparent;
  font-size: 10px;
  text-align: left;
}

.sidebar-logout:hover {
  color: var(--text);
}

.dashboard-body {
  min-height: 100vh;
  margin-left: 226px;
}

.dashboard-mobile-header,
.mobile-tabbar {
  display: none;
}

.dashboard-main {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 46px 0 40px;
}

.capture-lock {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid var(--recording-line);
  border-radius: 12px;
  color: var(--recording-text);
  background: var(--recording-surface);
}

.recording-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--negative);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(242, 109, 91, 0.08);
  }
}

.capture-lock strong {
  font-size: 11px;
}

.capture-lock p {
  margin: 2px 0 0;
  color: #c98075;
  font-size: 9.5px;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  margin-bottom: 9px;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-header > div:first-child > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.mobile-like-header {
  align-items: center;
  margin-bottom: 20px;
}

.mobile-like-header h1 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.home-overview {
  padding: 16px 2px 12px;
}

.home-profit {
  display: block;
  margin-top: 4px;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.home-profit-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-header-actions {
  display: flex;
  gap: 8px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 9px;
}

.metric-card,
.stats-card {
  min-height: 128px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.metric-card.featured {
  border-color: #29345c;
  background: #15171e;
}

.metric-card span,
.metric-card small,
.stats-card span,
.stats-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.metric-card span,
.stats-card span {
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 17px 0 7px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 620;
  letter-spacing: -0.045em;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.chart-card {
  margin-top: 9px;
  padding: 20px;
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.card-heading h2,
.card-heading h3 {
  margin-bottom: 5px;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.card-heading p {
  margin-bottom: 0;
  color: var(--faint);
  font-size: 9px;
}

.card-heading .eyebrow {
  margin-bottom: 6px;
}

.stats-warning {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--warning-line);
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-surface);
  font-size: 9px;
  font-weight: 650;
}

.bankroll-chart {
  min-height: 230px;
  padding: 8px 0 0;
}

.bankroll-chart > .muted {
  display: grid;
  min-height: 210px;
  margin: 0;
  place-items: center;
  color: var(--faint);
  font-size: 10px;
}

.bankroll-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.bankroll-chart .grid {
  stroke: var(--line-subtle);
  stroke-width: 1;
}

.bankroll-chart .zero {
  stroke: #34343c;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.bankroll-chart .axis {
  fill: var(--faint);
  font-size: 9px;
}

.bankroll-chart .line-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bankroll-chart .area-accent {
  fill: rgba(110, 139, 255, 0.08);
  stroke: none;
}

.bankroll-chart .endpoint {
  fill: var(--accent);
}

.dashboard-section,
.dashboard-pane:not([data-dashboard-pane="home"]) {
  padding-top: 70px;
  scroll-margin-top: 20px;
}

.dashboard-pane[data-dashboard-pane="account"] + .dashboard-pane[data-dashboard-pane="account"] {
  padding-top: 28px;
}

.home-level-card {
  margin-top: 9px;
  padding: 20px;
}

.home-level-card .edge-value {
  margin-top: 26px;
}

.home-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 9px;
}

.home-stat-card {
  min-height: 125px;
}

.dashboard-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.dashboard-section-title h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dashboard-section-title > p {
  max-width: 390px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  text-align: right;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 9px;
}

.edge-card {
  min-height: 210px;
  padding: 20px;
}

.compact-heading {
  margin-bottom: 0;
}

.edge-value {
  display: block;
  margin-top: 38px;
  font-size: 36px;
  font-weight: 620;
  letter-spacing: -0.045em;
}

.edge-detail {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 10px;
}

.analysis-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.stats-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
}

.stats-card strong {
  display: block;
  margin: auto 0 7px;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.breakdowns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 9px;
}

.breakdowns > .dashboard-card {
  padding: 20px;
}

.breakdown-table {
  display: grid;
  gap: 0;
  margin-top: 17px;
}

.breakdown-row {
  padding: 12px 0;
  border-top: 1px solid var(--line-subtle);
}

.breakdown-row-head,
.breakdown-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.breakdown-row-head {
  font-size: 11px;
}

.breakdown-row-meta {
  margin-top: 5px;
  color: var(--faint);
  font-size: 8.5px;
}

.breakdown-bar {
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-active);
}

.breakdown-bar span {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.sessions-list {
  display: grid;
  gap: 7px;
}

.session-row {
  display: grid;
  grid-template-columns: 1.45fr 0.68fr 0.68fr auto 18px;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: inherit;
  background: var(--surface);
  text-align: left;
}

.session-row:hover {
  border-color: #34343c;
  background: var(--surface-pressed);
}

.session-row strong,
.session-row span {
  display: block;
  font-size: 10px;
}

.session-row .sub {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8.5px;
}

.session-chevron {
  color: var(--faint);
  font-size: 17px !important;
  text-align: right;
}

.status {
  display: inline-flex !important;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-surface);
  font-size: 8px !important;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.completed {
  color: var(--positive);
  background: rgba(61, 214, 140, 0.07);
}

.status.failed {
  color: var(--negative);
  background: rgba(242, 109, 91, 0.07);
}

.empty-state {
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--faint);
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 24px;
}

.empty-state h3 {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
}

.empty-state p {
  margin-bottom: 0;
  font-size: 9.5px;
}

.security-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8.5px;
}

.usage-card {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.8fr;
  gap: 34px;
  align-items: center;
  padding: 22px;
}

.usage-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.usage-message {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.usage-item > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
}

.usage-item strong {
  color: var(--text);
}

.progress-track,
.usage-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-active);
}

.progress-track span,
.usage-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 250ms ease;
}

.usage-actions {
  display: grid;
  gap: 7px;
}

.dashboard-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 9px;
}

.plan-summary {
  min-height: 158px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.plan-summary.selected {
  border-color: #3b466f;
  background: #15171e;
}

.plan-summary p,
.plan-summary span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 9px;
}

.plan-summary strong {
  display: block;
  margin: 16px 0 6px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.plan-summary strong small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.plan-actions {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.plan-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
}

.upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 20px;
}

.upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--accent);
  background: var(--bg-soft);
  font-size: 17px;
  font-weight: 700;
}

.upload-copy h3 {
  margin-bottom: 5px;
  font-size: 14px;
}

.upload-copy p,
.compliance-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 9px;
}

.capture .upload-icon {
  border-color: var(--recording-line);
  color: var(--recording-text);
  background: var(--recording-surface);
}

.capture.recording .upload-icon {
  animation: pulse 1.2s ease-in-out infinite;
}

.consent-row {
  grid-column: 2 / -1;
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.consent-row input {
  accent-color: var(--accent);
}

.progress-wrap {
  grid-column: 2 / -1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  padding: 25px 0 0;
  border-top: 1px solid var(--line-subtle);
  color: var(--faint);
  font-size: 8.5px;
}

.dashboard-footer p {
  margin-bottom: 0;
}

/* Feedback and session details */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 390px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-pressed);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

dialog {
  width: min(720px, calc(100% - 30px));
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 25px;
}

#session-detail > h2 {
  margin-bottom: 7px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.detail-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
}

.detail-metrics span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
}

.game-line {
  display: grid;
  grid-template-columns: 36px 1fr repeat(3, 0.7fr);
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.game-line span {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-grid {
    grid-template-columns: 1.3fr 0.8fr;
  }

  .analysis-side {
    grid-template-columns: 1fr;
  }

  .stats-card {
    min-height: 101px;
  }
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 570px;
  }

  .login-aside {
    display: none;
  }

  .dashboard-sidebar {
    width: 190px;
  }

  .dashboard-body {
    margin-left: 190px;
  }

  .dashboard-main {
    width: calc(100% - 36px);
  }

  .analysis-grid,
  .breakdowns {
    grid-template-columns: 1fr;
  }

  .analysis-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .usage-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--bg);
  }

  .login-shell {
    align-items: start;
    padding: 14px;
  }

  .login-layout {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-card {
    min-height: calc(100vh - 28px);
    padding: 26px 18px;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-body {
    margin-left: 0;
  }

  .dashboard-mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line-subtle);
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(16px);
  }

  .dashboard-mobile-header .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .dashboard-main {
    width: calc(100% - 28px);
    padding: 28px 0 100px;
  }

  .dashboard-header {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-header-actions {
    width: 100%;
  }

  .dashboard-header-actions .button {
    flex: 1;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .metric-card {
    min-height: 122px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 23px;
  }

  .chart-card {
    padding: 16px 14px;
  }

  .bankroll-chart {
    min-height: 180px;
    overflow-x: auto;
  }

  .bankroll-chart svg {
    min-width: 580px;
  }

  .dashboard-section {
    padding-top: 58px;
  }

  .dashboard-section-title {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-section-title > p {
    text-align: left;
  }

  .analysis-side,
  .dashboard-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-row {
    grid-template-columns: minmax(0, 1fr) auto 14px;
  }

  .session-row .hide-mobile {
    display: none;
  }

  .security-label {
    display: none;
  }

  .plan-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .upload-card > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .consent-row,
  .progress-wrap {
    grid-column: 1 / -1;
  }

  .dashboard-footer {
    display: grid;
  }

  .mobile-tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 4px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-subtle);
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar button {
    display: grid;
    padding: 0;
    border: 0;
    gap: 3px;
    place-items: center;
    color: var(--faint);
    background: transparent;
    font-size: 8px;
    font-weight: 600;
  }

  .mobile-tabbar button span {
    font-family: "Apple Symbols", sans-serif;
    font-size: 14px;
    line-height: 18px;
  }

  .mobile-tabbar button.active {
    color: var(--text);
  }

  .toast {
    right: 14px;
    bottom: 86px;
    left: 14px;
    max-width: none;
  }

  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .game-line {
    grid-template-columns: 28px 1fr 0.8fr;
  }

  .game-line .optional {
    display: none;
  }
}

@media (max-width: 430px) {
  .overview-grid,
  .analysis-side,
  .dashboard-pricing-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 108px;
  }

  .stats-card {
    min-height: 120px;
  }

  .session-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .session-chevron {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
