:root {
  --bg: #07111d;
  --bg-soft: #0d1827;
  --panel: rgba(14, 24, 38, 0.86);
  --panel-strong: rgba(18, 31, 50, 0.96);
  --border: rgba(168, 197, 255, 0.14);
  --text: #edf3ff;
  --muted: #a3b4cc;
  --accent: #77d0c4;
  --accent-2: #8db3ff;
  --accent-warm: #ffb870;
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(125, 180, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(119, 208, 196, 0.16), transparent 20%),
    linear-gradient(180deg, #06101b 0%, #081421 55%, #050b13 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
}

body {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.app-layout {
  width: min(1740px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 24px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.main-shell {
  min-width: 0;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0 20px;
}

.sidebar {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 26, 41, 0.98), rgba(8, 15, 25, 0.95));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 16px 12px;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.sidebar-brand {
  display: grid;
  gap: 6px;
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.sidebar-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-nav-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.side-link {
  display: grid;
  gap: 3px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 15, 25, 0.6);
  padding: 11px 12px;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.side-link span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.side-link small {
  color: var(--muted);
  font-size: 12px;
}

.side-link:hover {
  transform: translateX(2px);
  border-color: rgba(141, 179, 255, 0.2);
  background: rgba(10, 18, 30, 0.82);
}

.side-link.active,
.side-link[aria-current="page"] {
  border-color: rgba(119, 208, 196, 0.4);
  background: linear-gradient(135deg, rgba(119, 208, 196, 0.22), rgba(141, 179, 255, 0.2));
}

.sidebar-footer {
  display: grid;
  gap: 10px;
}

.system-pill {
  display: inline-flex;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(119, 208, 196, 0.3);
  background: rgba(119, 208, 196, 0.15);
  font-size: 12px;
  color: var(--text);
}

.system-pill.warning {
  border-color: rgba(255, 184, 112, 0.35);
  background: rgba(255, 184, 112, 0.15);
}

.side-logout {
  width: 100%;
  padding-block: 10px;
}

.topbar {
  display: block;
  align-items: flex-start;
  margin-bottom: 22px;
}

.column-captions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.dashboard-hero__stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-execution-card {
  align-self: start;
  padding: 18px;
}

.dashboard-execution-card .timeline {
  gap: 10px;
}

.dashboard-execution-card .panel-head {
  margin-bottom: 12px;
}

.trading-form-layout__column--right > .button-primary {
  width: 100%;
}

.column-captions h2 {
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.eyebrow,
.section-label,
.run-meta,
.mono,
.badge,
.pill,
.stat-label {
  font-family: "JetBrains Mono", monospace;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2,
h3,
p {
  margin: 0;
}

.lede {
  margin-top: 14px;
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.top-nav {
  margin-top: 16px;
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(141, 179, 255, 0.22);
  background: rgba(141, 179, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.top-nav-link.active {
  border-color: rgba(119, 208, 196, 0.44);
  background: rgba(119, 208, 196, 0.16);
}

.topbar-card {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 29, 46, 0.98), rgba(12, 22, 35, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.topbar-note,
.field-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.strategy-hints {
  display: grid;
  gap: 10px;
}

.strategy-hint {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 13, 22, 0.44);
}

.strategy-hint strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.pill,
.badge,
.metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(119, 208, 196, 0.12);
  border: 1px solid rgba(119, 208, 196, 0.24);
  color: var(--text);
  font-size: 12px;
}

.badge.ghost,
.metric.ghost {
  background: rgba(141, 179, 255, 0.12);
  border-color: rgba(141, 179, 255, 0.24);
}

.badge.success {
  background: rgba(119, 208, 196, 0.16);
  border-color: rgba(119, 208, 196, 0.32);
}

.badge.danger {
  background: rgba(255, 107, 122, 0.14);
  border-color: rgba(255, 107, 122, 0.28);
}

.content {
  display: grid;
  gap: 18px;
}

.toolbar-row {
  display: flex;
  justify-content: flex-start;
}

.flash {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(119, 208, 196, 0.12);
  border: 1px solid rgba(119, 208, 196, 0.28);
}

.hero-grid,
.workspace-grid,
.lists-grid,
.detail-hero {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
}

.workspace-grid,
.lists-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.88fr);
  align-items: start;
}

.workspace-grid > article:nth-child(2) {
  position: sticky;
  top: 14px;
  align-self: start;
}

.column-captions {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.88fr);
  align-items: end;
}

.panel {
  padding: 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-accent {
  background:
    linear-gradient(180deg, rgba(18, 36, 58, 0.98), rgba(12, 22, 35, 0.94)),
    linear-gradient(120deg, rgba(119, 208, 196, 0.12), rgba(141, 179, 255, 0.08));
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-grid-tight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(6, 13, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-label,
.metric-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat strong,
.metric-list strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.timeline {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trading-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: start;
}

.trading-form-layout__column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.trading-form-layout__column--right {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 13, 22, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.strategy-section-head {
  display: grid;
  gap: 4px;
}

.strategy-section-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.strategy-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.strategy-settings-grid .span-2 {
  grid-column: span 2;
}

.action-row,
.helper-band {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-row {
  flex-wrap: wrap;
}

.helper-band {
  grid-column: span 2;
}

.choice-grid {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(6, 13, 22, 0.36);
  display: grid;
  gap: 10px;
  min-inline-size: 0;
}

.choice-grid legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  width: fit-content;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 9, 17, 0.52);
}

.segmented-control__button {
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.segmented-control__button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(141, 179, 255, 0.16);
}

.segmented-control__button.active,
.segmented-control__button[aria-pressed="true"] {
  color: #07111d;
  border-color: rgba(119, 208, 196, 0.34);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(119, 208, 196, 0.16);
}

.mode-switch-card {
  gap: 12px;
}

.compact-field {
  display: grid;
  gap: 6px;
  max-width: 340px;
}

.compact-field select {
  padding: 12px 14px;
  border-radius: 14px;
}

.mode-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tier-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

.tier-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(4, 9, 17, 0.46);
  padding: 10px 12px;
}

.tier-group summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
}

.tier-group summary::-webkit-details-marker {
  display: none;
}

.tier-group summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 8px;
}

.tier-group[open] summary::before {
  content: "▾";
}

.tier-choices {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.choice-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 9, 17, 0.56);
}

.choice-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.choice-item em,
.choice-item small {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.choice-item input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.inline-check span {
  color: var(--text);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.chip {
  border: 1px solid rgba(141, 179, 255, 0.22);
  border-radius: 999px;
  background: rgba(141, 179, 255, 0.08);
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 208, 196, 0.38);
  background: rgba(119, 208, 196, 0.12);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(4, 9, 17, 0.75);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font: inherit;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(4, 9, 17, 0.75);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font: inherit;
  resize: vertical;
  min-height: 96px;
}

select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(4, 9, 17, 0.75);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font: inherit;
  appearance: none;
  line-height: 1.2;
}

input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(119, 208, 196, 0.55);
  box-shadow: 0 0 0 4px rgba(119, 208, 196, 0.12);
}

select[multiple] {
  min-height: 260px;
  padding: 10px;
}

select[multiple] option {
  padding: 8px 10px;
  border-radius: 10px;
}

.span-2 {
  grid-column: span 2;
}

.button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111d;
}

.button-secondary {
  background: rgba(141, 179, 255, 0.12);
  border: 1px solid rgba(141, 179, 255, 0.24);
  color: var(--text);
}

.subtle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.flash-error {
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.28);
}

.chart-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(6, 13, 22, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-head {
  margin-bottom: 10px;
}

.equity-chart {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(119, 208, 196, 0.08), rgba(141, 179, 255, 0.03)),
    rgba(4, 9, 17, 0.75);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(6, 13, 22, 0.68);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(6px);
}

tbody td {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.empty-state,
.empty-card {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.stack {
  display: grid;
  gap: 12px;
}

.scroll-stack {
  overflow: auto;
  padding-right: 4px;
}

.sessions-scroll {
  max-height: 540px;
}

.trades-scroll {
  max-height: 500px;
  overflow: auto;
}

.monitor-divider {
  height: 1px;
  margin: 20px 0 22px;
  background: linear-gradient(90deg, rgba(141, 179, 255, 0), rgba(141, 179, 255, 0.26), rgba(119, 208, 196, 0.18), rgba(141, 179, 255, 0));
}

.monitor-journal-section {
  display: grid;
  gap: 10px;
}

.monitor-journal-loading {
  opacity: 0.58;
  pointer-events: none;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form input {
  width: 180px;
}

.journal-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.journal-filters .filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.run-card,
.trade-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 13, 22, 0.48);
  transition: transform 150ms ease, border-color 150ms ease;
}

.run-card:hover,
.trade-row:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 208, 196, 0.24);
}

.button:focus-visible,
.side-link:focus-visible,
.top-nav-link:focus-visible,
.segmented-control__button:focus-visible {
  outline: 2px solid rgba(119, 208, 196, 0.86);
  outline-offset: 2px;
}

.run-card h3,
.trade-row h3 {
  margin-top: 6px;
  font-size: 17px;
}

.metric-list + .chart-card {
  margin-top: 14px;
}

.run-metrics,
.trade-right {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(6, 13, 22, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-hero .badge {
  align-self: flex-start;
}

.run-card .subtle {
  max-width: 560px;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100% - 20px, 1460px);
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
  }

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

  .column-captions,
  .topbar,
  .dashboard-hero,
  .hero-grid,
  .workspace-grid,
  .lists-grid,
  .trading-form-layout,
  .strategy-settings-grid,
  .stat-grid-tight {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .top-nav {
    display: flex;
  }

  .topbar-card {
    min-width: 0;
  }

  .workspace-grid > article:nth-child(2) {
    position: static;
    top: auto;
  }

  .preset-bar {
    gap: 8px;
  }

  .segmented-control {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .app-layout {
    width: calc(100% - 12px);
    gap: 10px;
    padding-top: 8px;
  }

  .main-shell {
    width: 100%;
    padding-top: 4px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .lede {
    font-size: 15px;
    line-height: 1.5;
  }

  .sidebar {
    padding: 12px 10px;
    border-radius: 18px;
  }

  .sidebar-brand h2 {
    font-size: 22px;
  }

  .sidebar-note {
    font-size: 13px;
  }

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

  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  .panel h2 {
    font-size: 22px;
  }

  .button {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .segmented-control {
    gap: 8px;
    padding: 7px;
  }

  .segmented-control__button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }

  input:not([type="checkbox"]),
  select,
  textarea {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .form-grid,
  .stat-grid,
  .trading-form-layout,
  .strategy-settings-grid,
  .workspace-grid,
  .lists-grid,
  .journal-filters {
    grid-template-columns: 1fr;
  }

  .helper-band {
    grid-column: auto;
  }

  .span-2 {
    grid-column: auto;
  }

  .strategy-settings-grid .span-2 {
    grid-column: auto;
  }

  .run-card,
  .trade-row,
  .panel-head {
    flex-direction: column;
  }

  .preset-bar {
    display: grid;
  }

  .chip {
    width: 100%;
    text-align: left;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control__button {
    flex: 1 1 0;
    text-align: center;
  }

  .compact-field {
    max-width: none;
  }

  .choice-item {
    padding: 12px 12px;
  }

  .run-metrics,
  .trade-right {
    justify-items: start;
  }

  .sessions-scroll,
  .trades-scroll {
    max-height: none;
    overflow: visible;
  }
}

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

.auth-shell {
  width: min(520px, calc(100% - 20px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 20px 0;
}

.auth-card h1 {
  margin-top: 2px;
  font-size: clamp(32px, 5vw, 46px);
}
