:root {
  color: var(--text);
  background: var(--page);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #f4f6f8;
  --surface: #fff;
  --surface-soft: #f8fafb;
  --surface-hover: #f9fbfc;
  --text: #18202a;
  --text-strong: #18202a;
  --text-muted: #5c6673;
  --text-soft: #687483;
  --label: #52606d;
  --border: #d7dde4;
  --border-strong: #b9c2cc;
  --primary: #176b54;
  --primary-text: #fff;
  --secondary-text: #29313b;
  --theme-control-bg: var(--surface);
  --theme-control-border: var(--border-strong);
  --theme-control-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 6px 18px rgba(24, 32, 42, 0.08);
  --theme-option-text: var(--text-soft);
  --theme-option-hover: var(--text);
  --theme-option-active-bg: var(--primary);
  --theme-option-active-text: var(--primary-text);
  --theme-option-active-shadow: rgba(23, 107, 84, 0.25);
  --segmented-active: #27313d;
  --segmented-active-text: #fff;
  --error-border: #d66a5d;
  --error-bg: #fff1ef;
  --error-text: #7a2118;
  --warning-border: #dfb354;
  --warning-bg: #fff8e8;
  --warning-text: #6d4a00;
  --pill-green-bg: #dff4e7;
  --pill-green-text: #14603c;
  --pill-slate-bg: #e7edf3;
  --pill-slate-text: #344150;
  --pill-amber-bg: #fff0cf;
  --pill-amber-text: #815500;
  --profit: #118047;
  --profit-soft: rgba(17, 128, 71, 0.22);
  --loss: #c9403a;
  --loss-soft: rgba(201, 64, 58, 0.22);
  --chart-line: #4f5a68;
  --chart-grid: rgba(92, 102, 115, 0.18);
  --chart-marker: #db4944;
  --chart-blue: #1299d8;
  --chart-blue-soft: rgba(18, 153, 216, 0.2);
  --chart-underlying: #29313b;
  --chart-expiration: #26313d;
  --chart-theoretical: #6d7786;
  --chart-profit-line: #0d9f53;
  --chart-loss-line: #c82f47;
  --chart-cursor-line: rgba(24, 32, 42, 0.82);
  --chart-cursor-dot-fill: #ffffff;
  --chart-cursor-dot-stroke: rgba(24, 32, 42, 0.72);
  --chart-cursor-text-stroke: rgba(255, 255, 255, 0.9);
  --risk-panel: #f8fafb;
  --risk-panel-soft: #eef3f7;
  --risk-text: #18202a;
  --risk-muted: #637080;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f141b;
  --surface: #171e27;
  --surface-soft: #202936;
  --surface-hover: #1d2631;
  --text: #e7edf4;
  --text-strong: #f4f7fb;
  --text-muted: #a6b1bf;
  --text-soft: #96a3b2;
  --label: #b5bfcc;
  --border: #303b49;
  --border-strong: #485566;
  --primary: #24a179;
  --primary-text: #06130f;
  --secondary-text: #dce4ed;
  --theme-control-bg: #111a28;
  --theme-control-border: #243145;
  --theme-control-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 6px 18px rgba(0, 0, 0, 0.16);
  --theme-option-text: #5d6b80;
  --theme-option-hover: #9aa8bd;
  --theme-option-active-bg: var(--primary);
  --theme-option-active-text: var(--primary-text);
  --theme-option-active-shadow: rgba(36, 161, 121, 0.26);
  --segmented-active: #d6e1ed;
  --segmented-active-text: #121922;
  --error-border: #a85850;
  --error-bg: #351b1b;
  --error-text: #ffd8d3;
  --warning-border: #9b7429;
  --warning-bg: #302510;
  --warning-text: #ffe4a3;
  --pill-green-bg: #143d30;
  --pill-green-text: #83e5b1;
  --pill-slate-bg: #2b3542;
  --pill-slate-text: #c8d4e1;
  --pill-amber-bg: #3c2d12;
  --pill-amber-text: #ffd37a;
  --profit: #1bd078;
  --profit-soft: rgba(27, 208, 120, 0.28);
  --loss: #ff514f;
  --loss-soft: rgba(255, 81, 79, 0.28);
  --chart-line: #9aa4b1;
  --chart-grid: rgba(166, 177, 191, 0.16);
  --chart-marker: #ff514f;
  --chart-blue: #20a9f2;
  --chart-blue-soft: rgba(32, 169, 242, 0.22);
  --chart-underlying: #f6f7ff;
  --chart-expiration: rgba(255, 255, 255, 0.9);
  --chart-theoretical: #a8b0c9;
  --chart-profit-line: #10d060;
  --chart-loss-line: #f11745;
  --chart-cursor-line: rgba(255, 255, 255, 0.95);
  --chart-cursor-dot-fill: #ffffff;
  --chart-cursor-dot-stroke: rgba(8, 8, 36, 0.85);
  --chart-cursor-text-stroke: rgba(8, 8, 36, 0.9);
  --risk-panel: #080824;
  --risk-panel-soft: #101432;
  --risk-text: #f4f5ff;
  --risk-muted: #aeb4cb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
}

button,
input {
  font: inherit;
}

.hidden {
  display: none;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.toolbar {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border);
}

.brand-copy {
  flex: initial;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  justify-content: flex-start;
}

.date-field,
.number-field {
  display: grid;
  gap: 6px;
  color: var(--label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.date-field input,
.number-field input {
  width: 160px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
}

.number-field input {
  width: 118px;
}

.anchor-date-field {
  position: relative;
}

.date-picker {
  position: relative;
}

.date-picker-trigger {
  position: relative;
  width: 160px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.date-picker-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: translateY(-70%) rotate(45deg);
}

.date-picker-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 292px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.date-picker-header,
.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-picker-header {
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 10px;
}

.date-picker-header strong {
  color: var(--text-strong);
  font-size: 14px;
  text-align: center;
  text-transform: none;
}

.date-picker-header button,
.date-picker-day {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--secondary-text);
  cursor: pointer;
}

.date-picker-header button {
  width: 32px;
  height: 32px;
  font-weight: 800;
}

.date-picker-weekdays {
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.date-picker-day {
  height: 32px;
  font-size: 13px;
  font-weight: 700;
}

.date-picker-header button:hover,
.date-picker-day:not(:disabled):hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.date-picker-day.outside-month {
  color: var(--text-soft);
  opacity: 0.55;
}

.date-picker-day.today {
  border-color: var(--border-strong);
}

.date-picker-day.selected {
  background: var(--primary);
  color: var(--primary-text);
}

.date-picker-day:disabled {
  cursor: not-allowed;
  color: var(--text-soft);
  opacity: 0.32;
  text-decoration: line-through;
}

.primary-button,
.secondary-button,
.segmented button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

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

.secondary-button {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--secondary-text);
}

.theme-control {
  display: inline-grid;
  grid-template-columns: repeat(3, 48px);
  align-items: center;
  margin-left: auto;
  height: 38px;
  border: 1px solid var(--theme-control-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--theme-control-bg);
  box-shadow: var(--theme-control-shadow);
}

.theme-option {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--theme-option-text);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.theme-option svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-option:hover {
  color: var(--theme-option-hover);
}

.theme-option.active {
  background: var(--theme-option-active-bg);
  color: var(--theme-option-active-text);
  box-shadow: 0 4px 12px var(--theme-option-active-shadow);
}

.theme-option:focus-visible {
  outline: 2px solid var(--chart-blue);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.alert {
  margin-top: 16px;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
}

.alert-error {
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
}

.alert-warning {
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.run-log {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.run-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.run-log-header h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.run-log-header span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.run-log ol {
  display: grid;
  gap: 2px;
  max-height: 132px;
  margin: 0;
  padding: 6px 10px;
  overflow-y: auto;
  list-style: none;
}

.run-log li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 7px;
  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.2;
}

.run-log time {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.run-log li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.run-log li[data-level="success"] {
  color: var(--profit);
}

.run-log li[data-level="warning"],
.run-log li[data-level="error"] {
  color: var(--warning-text);
}

.run-log li[data-level="error"] {
  color: var(--error-text);
}

.metrics {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.metric span {
  color: var(--text-soft);
  font-size: 13px;
}

.metric strong {
  font-size: 28px;
  line-height: 1;
}

.metric-date-range {
  font-size: 20px;
  line-height: 1.15;
}

.table-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.table-toggle {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.segmented button {
  height: 34px;
  border-radius: 0;
  border-right: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--secondary-text);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented .active {
  background: var(--segmented-active);
  color: var(--segmented-active-text);
}

.row-count {
  color: var(--text-soft);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  padding: 0;
  color: var(--label);
  background: var(--surface-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.sort-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.sort-button:hover,
.sort-button.active {
  background: var(--surface-hover);
  color: var(--text-strong);
}

.sort-button.active::after {
  content: "↓";
  font-size: 12px;
}

.sort-button.active[data-direction="asc"]::after {
  content: "↑";
}

tbody tr:not(.inline-edge-row):hover {
  background: var(--surface-hover);
}

tbody tr.clickable-result-row {
  cursor: pointer;
}

tbody tr.clickable-result-row[aria-expanded="true"] {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

tbody tr.clickable-result-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 44%, transparent);
  outline-offset: -2px;
}

.ticker {
  font-weight: 800;
}

.expirations {
  color: var(--secondary-text);
}

.empty {
  height: 160px;
  color: var(--text-soft);
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill-green {
  background: var(--pill-green-bg);
  color: var(--pill-green-text);
}

.pill-slate {
  background: var(--pill-slate-bg);
  color: var(--pill-slate-text);
}

.pill-amber {
  background: var(--pill-amber-bg);
  color: var(--pill-amber-text);
}

.edge-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.optionstrat-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--chart-blue) 32%, var(--border));
  border-radius: 999px;
  padding: 0 9px;
  color: var(--chart-blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.optionstrat-link:hover,
.optionstrat-link:focus-visible {
  background: var(--chart-blue-soft);
  outline: none;
}

.inline-edge-row > td {
  padding: 0;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}

.inline-edge-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.inline-edge-underlying-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-edge-underlying-price {
  color: var(--text-strong);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.inline-edge-underlying-change {
  display: inline-flex;
  flex-direction: column;
  color: var(--text-soft);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.inline-edge-underlying-change[data-direction="positive"] {
  color: var(--profit);
}

.inline-edge-underlying-change[data-direction="negative"] {
  color: var(--loss);
}

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

.edge-card {
  display: grid;
  gap: 8px;
  min-height: 94px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.edge-card span {
  color: var(--text-soft);
  font-size: 13px;
}

.edge-card strong {
  color: var(--text-strong);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1;
}

.edge-card.edge-profit strong {
  color: var(--profit);
}

.edge-card.edge-loss strong {
  color: var(--loss);
}

.edge-price-card strong.inline-edge-underlying-quote {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.edge-price-card .inline-edge-underlying-price {
  color: var(--text-strong);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.edge-price-card .inline-edge-underlying-change {
  font-size: 16px;
}

.edge-details {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 12px;
}

.edge-detail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.edge-detail-card h3,
.edge-chart-wrap h3 {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.2;
}

.edge-detail-card p {
  margin: 0;
  color: var(--secondary-text);
  line-height: 1.5;
}

.model-notes {
  display: grid;
  gap: 4px;
}

.edge-legs {
  display: grid;
  gap: 8px;
}

.edge-leg {
  display: grid;
  grid-template-columns: minmax(210px, 1.9fr) repeat(4, minmax(54px, 1fr));
  gap: 8px;
  align-items: center;
  color: var(--secondary-text);
  font-size: 15px;
}

.edge-leg-header {
  padding-bottom: 2px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.edge-leg-header span:not(:first-child),
.edge-leg strong {
  text-align: right;
}

.edge-leg-sell > span:first-child {
  color: var(--loss);
}

.edge-leg-buy > span:first-child {
  color: var(--profit);
}

.edge-leg-separator {
  height: 1px;
  background: var(--border);
}

.edge-leg-combo {
  font-weight: 800;
}

.edge-leg strong {
  color: var(--secondary-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.edge-leg-combo > span:first-child,
.edge-leg-combo strong {
  color: var(--text-strong);
}

.edge-chart-wrap {
  border: 1px solid color-mix(in srgb, var(--chart-blue) 25%, transparent);
  border-radius: 8px;
  padding: 14px;
  background: var(--risk-panel);
  color: var(--risk-text);
}

.edge-chart-wrap h3 {
  color: var(--risk-muted);
}

.pnl-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.chart-grid line {
  stroke: var(--chart-grid);
  stroke-dasharray: none;
}

.chart-grid text,
.chart-axis-title,
.chart-empty-text {
  fill: var(--risk-muted);
  font-size: 14px;
}

.chart-zero {
  stroke: var(--chart-expiration);
  stroke-width: 1.2;
}

.chart-area-profit {
  fill: var(--profit-soft);
}

.chart-area-loss {
  fill: var(--loss-soft);
}

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

.chart-line-expiration,
.chart-line-theoretical,
.chart-line-profit,
.chart-line-loss {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-expiration {
  stroke: var(--chart-expiration);
  stroke-width: 2;
}

.chart-line-theoretical {
  stroke: var(--chart-theoretical);
  stroke-dasharray: 7 7;
  stroke-width: 2.2;
}

.chart-line-profit,
.chart-line-loss {
  stroke-width: 4.2;
}

.chart-line-profit {
  stroke: var(--chart-profit-line);
}

.chart-line-loss {
  stroke: var(--chart-loss-line);
}

.chart-probability-area {
  fill: var(--chart-blue-soft);
}

.chart-strike {
  stroke: var(--chart-marker);
  stroke-dasharray: 6 5;
  stroke-width: 2;
}

.chart-strike-label {
  fill: var(--chart-marker);
  font-size: 14px;
  font-weight: 800;
}

.chart-breakeven {
  stroke: var(--chart-blue);
  stroke-width: 1.8;
}

.chart-breakeven-label {
  fill: var(--chart-blue);
  font-size: 14px;
  font-weight: 800;
}

.chart-underlying {
  stroke: var(--chart-underlying);
  stroke-dasharray: 3 4;
  stroke-width: 1.5;
}

.chart-underlying-label {
  fill: var(--chart-underlying);
  font-size: 13px;
  font-weight: 800;
}

.chart-legend line {
  stroke-linecap: round;
  stroke-width: 4;
}

.chart-legend text {
  fill: var(--risk-text);
  font-size: 14px;
}

.legend-expiration {
  stroke: var(--chart-expiration);
}

.legend-theoretical {
  stroke: var(--chart-theoretical);
  stroke-dasharray: 6 5;
}

.legend-probability {
  stroke: var(--chart-blue);
}

.chart-cursor {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.chart-cursor.active {
  opacity: 1;
}

.chart-cursor-line {
  stroke: var(--chart-cursor-line);
  stroke-width: 1.6;
}

.chart-cursor-dot {
  fill: var(--chart-cursor-dot-fill);
  stroke: var(--chart-cursor-dot-stroke);
  stroke-width: 2;
}

.chart-cursor-label,
.chart-cursor-pnl,
.chart-cursor-probability {
  fill: var(--risk-text);
  font-size: 15px;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--chart-cursor-text-stroke);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.chart-cursor-pnl {
  font-size: 18px;
}

.chart-cursor-probability {
  font-size: 14px;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.chart-hit-area:focus {
  outline: none;
}

.chart-hit-area:focus-visible {
  stroke: var(--chart-blue);
  stroke-width: 2;
}

@media (max-width: 1180px) {
  .edge-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 16px;
  }

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

  .controls {
    justify-content: stretch;
  }

  .date-field,
  .number-field,
  .date-field input,
  .date-picker,
  .date-picker-trigger,
  .number-field input,
  .primary-button,
  .secondary-button,
  .theme-control {
    width: 100%;
  }

  .theme-control {
    grid-template-columns: repeat(3, 1fr);
    margin-left: 0;
  }

  .date-picker-popover {
    width: min(292px, calc(100vw - 32px));
  }

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

  .edge-header {
    align-items: stretch;
    flex-direction: column;
  }

  .edge-badge {
    width: fit-content;
  }

  .edge-summary,
  .edge-details {
    grid-template-columns: 1fr;
  }

  .edge-leg {
    grid-template-columns: minmax(160px, 1.5fr) repeat(4, minmax(46px, 1fr));
    gap: 6px;
  }

  .edge-card strong {
    font-size: 22px;
  }

  h1 {
    font-size: 32px;
  }
}
