/* ── Fonts (self-hosted, latin subset only — no external network calls) ── */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/plex-mono-500.woff2") format("woff2");
}

/* ── Design tokens — "Market Weather Station" ───────────────────────────
   A market regime is, literally, a weather regime: a persistent pattern
   read off an instrument. The dial is an aneroid barometer (brass, ivory
   dial, red needle); everything around it stays a quiet, cool station-navy
   so the instrument is the one warm, physical thing on the page. */
:root {
  /* surfaces — cool storm-navy, not the warm charcoal of a "terminal" */
  --ink: #10131c;
  --surface: #181d2b;
  --surface-raised: #212840;
  --line: #2a3150;

  /* text */
  --paper: #e7e3d6;
  --muted: #8d93aa;
  --faint: #565c77;

  /* brand (UI chrome only — never a chart data-series color) */
  --brand: #bd8140;
  --brand-dim: rgba(189, 129, 64, 0.16);
  --brand-ring: rgba(189, 129, 64, 0.35);

  /* the barometer's instrument face and needle — used only by the gauge */
  --parchment: #ede3cc;
  --parchment-ink: #241b10;
  --needle: #b23a2e;

  /* status (fixed — Accumulate / Hold / Reduce) */
  --status-good: #0ca30c;
  --status-good-dim: rgba(12, 163, 12, 0.16);
  --status-warning: #fab219;
  --status-warning-dim: rgba(250, 178, 25, 0.16);
  --status-critical: #d03b3b;
  --status-critical-dim: rgba(208, 59, 59, 0.16);

  /* chart series (storm track: strategy vs. benchmark) */
  --chart-strategy: #d99a1e;
  --chart-benchmark: #5b9ee8;

  /* chart series (backtest history: comparing two past runs) */
  --chart-run-a: #d99a1e;
  --chart-run-b: #7c5cbf;

  /* type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

table {
  border-collapse: collapse;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn--primary {
  background: var(--brand);
  color: var(--parchment-ink);
}
.btn--primary:hover:not(:disabled) {
  background: #d69a5c;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--muted);
  color: var(--paper);
}
.btn--ghost.is-active {
  border-color: var(--brand-ring);
  color: var(--brand);
}
.btn--critical {
  background: var(--status-critical);
  color: var(--paper);
}
.btn--critical:hover:not(:disabled) {
  background: #e35050;
}
.btn--block {
  width: 100%;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.topbar__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand);
  border: 1px solid var(--brand-ring);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
}
.topbar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.topbar__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.topbar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.topbar__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}
.pulse--live {
  background: var(--status-good);
  animation: breathe 2.4s ease-in-out infinite;
}
.pulse--off {
  background: var(--status-critical);
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(12, 163, 12, 0.4);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 4px rgba(12, 163, 12, 0);
  }
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card--log {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: background-color 0.4s ease;
  /* grid items default to min-width:auto, which lets wide content (the
     1080px-min candidates table) blow out the column instead of scrolling
     inside .table-scroll */
  min-width: 0;
}
.card--flash {
  background: var(--brand-dim);
}

.card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.01em;
}
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  display: block;
  margin-bottom: 2px;
}
.card__timestamp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

/* ── Barometer (regime dial) ─────────────────────────────────────────────
   An aneroid barometer face: brass bezel, ivory dial, red needle. Zone
   arcs and ticks are still computed live from the app's real
   REGIME_ACCUMULATE_MIN / REGIME_REDUCE_MAX thresholds — this is a
   reskin of the readout, not a decorative substitute for it. */
.barometer-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}
.barometer {
  width: 100%;
  max-width: 260px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.barometer-needle {
  transform-origin: 150px 150px;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.barometer-zone-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--parchment-ink);
  opacity: 0.72;
}
.barometer-readout {
  text-align: center;
  margin-top: -6px;
}
.barometer-verdict {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.01em;
}
.barometer-verdict--good {
  color: var(--status-good);
}
.barometer-verdict--warning {
  color: var(--status-warning);
}
.barometer-verdict--critical {
  color: var(--status-critical);
}
.barometer-score {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.meters {
  display: grid;
  gap: 8px;
}
.meter {
  display: grid;
  grid-template-columns: 108px 1fr 42px;
  align-items: center;
  gap: 10px;
}
.meter__label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meter__track {
  height: 6px;
  background: var(--surface-raised);
  border-radius: 3px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter__value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ── Storm watch (candidates table) ─────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
}
.table-scroll .candidates-table {
  min-width: 1080px;
}
.candidates-table {
  width: 100%;
  font-size: 13px;
}
.candidates-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 0 8px 8px 8px;
  border-bottom: 1px solid var(--line);
}
.candidates-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.candidates-table tr:last-child td {
  border-bottom: none;
}
.candidates-table__symbol {
  font-family: var(--font-mono);
  font-weight: 500;
}
.candidates-table__close {
  font-family: var(--font-mono);
  color: var(--muted);
}
.score-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-cell__bar {
  width: 52px;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-raised);
  overflow: hidden;
  flex-shrink: 0;
}
.score-cell__fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
}
.score-cell__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  min-width: 34px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--surface-raised);
  color: var(--muted);
  white-space: nowrap;
}
.empty-state {
  color: var(--faint);
  font-size: 13px;
  padding: 12px 4px;
}

/* ── Storm track (backtest) ──────────────────────────────────────────────── */
.backtest-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
}
.stat__benchmark {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.stat__value--pos {
  color: var(--status-good);
}
.stat__value--neg {
  color: var(--status-critical);
}

.equity-chart {
  width: 100%;
  height: 120px;
  overflow: visible;
}
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ── Station log (activity) ─────────────────────────────────────────────── */
.activity-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.activity-log li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.activity-log li:last-child {
  border-bottom: none;
}
.activity-log__time {
  color: var(--faint);
  white-space: nowrap;
}
.activity-log__msg {
  color: var(--paper);
}

/* ── Footer / disclaimer ─────────────────────────────────────────────── */
.disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 24px 32px 24px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Trades page ─────────────────────────────────────────────────────── */
.trades-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.filter-bar .field {
  margin-bottom: 0;
  min-width: 140px;
}
.filter-bar .field input,
.filter-bar .field select {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--paper);
}
/* ── Scorecard: KPI tile grid ───────────────────────────────────────────
   Each metric is its own bordered tile (not text stacked in one shared
   card) — the row reads as a station dispatch summary at a glance. */
.scorecard-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}
.scorecard-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.01em;
}
.scorecard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 860px) {
  .scorecard {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.15s ease,
    background-color 0.4s ease;
}
.stat-tile:hover {
  border-color: var(--faint);
}
.stat-tile--flash {
  background: var(--brand-dim);
}
.stat-tile__label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-tile__delta {
  font-size: 14px;
}
.stat-tile__value--pos {
  color: var(--status-good);
}
.stat-tile__value--neg {
  color: var(--status-critical);
}
.stat-tile__caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.tag--won {
  background: var(--status-good-dim);
  color: var(--status-good);
}
.tag--lost {
  background: var(--status-critical-dim);
  color: var(--status-critical);
}
.tag--open {
  background: var(--brand-dim);
  color: var(--brand);
}
.tag--restart {
  background: var(--status-warning-dim);
  color: var(--status-warning);
}
.tag--flat {
  background: var(--surface-raised);
  color: var(--muted);
}
.note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Signals pages (Nifty Signals / Forex Signals) ──────────────────────── */
.signals-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#signals-table tbody tr[data-symbol] {
  cursor: pointer;
}
#signals-table tbody tr[data-symbol]:hover {
  background: var(--surface-raised);
}
#chart-card[hidden] {
  display: none;
}
.signal-chart {
  width: 100%;
  height: 360px;
}

/* ── Backtests page ──────────────────────────────────────────────────── */
.backtests-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#compare-card[hidden] {
  display: none;
}
#history-table td input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
.compare-grid__heading {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px 0;
}
#compare-diff table {
  width: 100%;
  font-size: 13px;
  margin-top: 6px;
}
#compare-diff th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 0 8px 8px 8px;
  border-bottom: 1px solid var(--line);
}
#compare-diff td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ── Settings page ───────────────────────────────────────────────────── */
.settings-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.settings-intro code {
  font-family: var(--font-mono);
  background: var(--surface-raised);
  border-radius: 4px;
  padding: 1px 5px;
}
.settings-section {
  gap: 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
@media (max-width: 700px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-field--risky .settings-field__label {
  color: var(--status-critical);
}
.settings-field__label {
  font-size: 12.5px;
  color: var(--muted);
}
.settings-field__control input[type="text"],
.settings-field__control input[type="number"],
.settings-field__control input[type="time"],
.settings-field__control select {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--paper);
}
.settings-field__control input:focus,
.settings-field__control select:focus {
  border-color: var(--brand);
}
.settings-field__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.settings-field__help {
  font-size: 11.5px;
  color: var(--faint);
}
.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-status {
  font-size: 12.5px;
}
.settings-status--ok {
  color: var(--status-good);
}
.settings-status--error {
  color: var(--status-critical);
}
.settings-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--status-critical);
  border-radius: var(--radius-sm);
  background: var(--status-critical-dim);
}
.settings-confirm[hidden] {
  display: none;
}
.settings-confirm__msg {
  font-size: 13px;
  flex: 1;
}

/* Toggle switch — used for bool fields (execution.enabled, allow_live_orders, etc). */
.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.toggle__track {
  position: absolute;
  inset: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
  pointer-events: none;
}
.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
.toggle input:checked ~ .toggle__track {
  background: var(--brand-dim);
  border-color: var(--brand-ring);
}
.toggle input:checked ~ .toggle__track .toggle__thumb {
  transform: translateX(18px);
  background: var(--brand);
}
.toggle input:focus-visible ~ .toggle__track {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Login page ──────────────────────────────────────────────────────────
   Isobars: concentric pressure-contour rings radiating from one corner,
   the same visual language as the barometer dial, at low enough opacity
   to read as texture rather than decoration. */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    repeating-radial-gradient(
      circle at 12% 18%,
      rgba(189, 129, 64, 0.09) 0,
      rgba(189, 129, 64, 0.09) 1px,
      transparent 1px,
      transparent 44px
    ),
    var(--ink);
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.login-card__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand);
  border: 1px solid var(--brand-ring);
  border-radius: var(--radius-sm);
  display: inline-block;
  padding: 3px 7px;
  margin-bottom: 16px;
}
.login-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px 0;
}
.login-card__subtitle {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 24px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12.5px;
  color: var(--muted);
}
.field input {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--paper);
}
.field input:focus {
  border-color: var(--brand);
}
.login-error {
  color: var(--status-critical);
  font-size: 13px;
  margin: 12px 0 0 0;
}

/* ── Motion ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .barometer-needle,
  .meter__fill,
  .card,
  .stat-tile,
  .btn,
  .toggle__track,
  .toggle__thumb {
    transition: none !important;
  }
  .pulse--live {
    animation: none;
  }
}
