:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #66717f;
  --line: #d9dee6;
  --accent: #0c6b58;
  --accent-strong: #084d43;
  --warn: #a15c00;
  --bad: #aa2735;
  --good: #127849;
  --chip: #edf2f0;
  --shadow: 0 14px 38px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

.awake-control {
  position: fixed;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 220;
  display: grid;
  gap: 2px;
  min-width: 128px;
  border: 1px solid rgba(12, 107, 88, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.16);
  backdrop-filter: blur(12px);
}

.awake-control label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.awake-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.awake-control small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.awake-control small[data-state="on"] {
  color: var(--good);
}

.awake-control small[data-state="blocked"] {
  color: var(--bad);
}

.awake-control small[data-state="paused"] {
  color: var(--warn);
}

.mode-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.mode-panel {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mode-panel h1 {
  margin-bottom: 16px;
}

.mode-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mode-actions button,
.mode-actions a {
  min-height: 48px;
  font-weight: 900;
}

.mode-actions .featured-mode-link {
  min-height: 86px;
  border-color: #087a60;
  color: #fff;
  background: linear-gradient(135deg, #087a60, #0d63ce);
  font-size: 22px;
  box-shadow: 0 14px 30px rgba(8, 122, 96, .18);
}

.mode-actions .featured-mode-link:hover {
  border-color: #065f49;
  background: linear-gradient(135deg, #065f49, #0b55b5);
}

.other-pages-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.other-pages-block summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.other-pages-block summary:focus-visible {
  outline: 3px solid rgba(17,102,216,.25);
  outline-offset: 2px;
}

.other-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.mode-actions a,
.mode-switch a,
.mode-tabs a {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

.mode-actions a:hover,
.mode-switch a:hover,
.mode-tabs a:hover {
  border-color: #8fb2d4;
  background: #f0f7ff;
}

.mode-actions .less-risk-link,
.mode-switch .low-risk-link,
.mode-tabs .low-risk-link {
  border-color: #b8ddc8;
  color: #0b6b4d;
  background: #ecfff5;
}

.mode-actions .less-risk-link:hover,
.mode-switch .low-risk-link:hover,
.mode-tabs .low-risk-link:hover {
  border-color: #65bd8c;
  background: #dffbea;
}

.mode-gate.swipy-landing {
  display: block;
  min-height: 100vh;
  padding: 22px;
  background:
    linear-gradient(125deg, rgba(255, 177, 77, .22), rgba(255, 114, 94, .12) 34%, rgba(29, 183, 132, .12) 68%, rgba(255, 255, 255, .94)),
    #fff8ee;
}

.swipy-nav {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.swipy-logo,
.swipy-nav-actions a {
  text-decoration: none;
  color: #09213f;
}

.swipy-logo {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.swipy-logo::first-letter {
  color: #f97316;
}

.swipy-nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.swipy-nav-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #f0c99a;
  border-radius: 999px;
  background: rgba(255, 252, 245, .86);
  font-weight: 850;
}

.swipy-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(242, 169, 92, .44);
  border-radius: 28px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 28px 70px rgba(116, 64, 24, .14);
  overflow: hidden;
}

.swipy-copy h1 {
  margin: 10px 0 6px;
  color: #071a33;
  font-size: clamp(54px, 7vw, 92px);
  line-height: .92;
  letter-spacing: 0;
}

.swipy-tagline {
  margin: 0 0 18px;
  color: #ea580c;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.08;
  font-weight: 950;
}

.swipy-intro {
  max-width: 560px;
  margin: 0;
  color: #28415f;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 700;
}

.swipy-pants-joke {
  max-width: 520px;
  margin: 14px 0 0;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.swipy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.swipy-primary,
.swipy-secondary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
}

.swipy-primary {
  border: 1px solid #d95f10;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 14px 32px rgba(249, 115, 22, .28);
}

.swipy-secondary {
  border: 1px solid #f1cba2;
  color: #0b2850;
  background: #fffaf3;
}

.swipy-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.swipy-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ffd1a3;
  border-radius: 999px;
  color: #9a3412;
  background: #fff3df;
  font-size: 13px;
  font-weight: 900;
}

.swipy-visual {
  margin: 0;
}

.swipy-visual img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 22px 56px rgba(7, 26, 51, .18);
}

.swipy-dayback-banner {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, .58fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #f1c36f;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7d8, #fffdf5);
  box-shadow: 0 16px 40px rgba(127, 73, 17, .10);
}

.swipy-dayback-copy {
  padding: 6px 8px;
}

.swipy-dayback-copy h2 {
  margin: 6px 0 8px;
  color: #082033;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.swipy-dayback-copy p {
  margin: 0;
  color: #5f4630;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 750;
}

.swipy-dayback-banner img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid #eac77a;
  border-radius: 12px;
  background: #fff;
}

.swipy-tool-panel {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  padding: 22px;
  border: 1px solid rgba(242, 169, 92, .38);
  border-radius: 18px;
  background: rgba(255, 253, 248, .86);
  box-shadow: 0 16px 42px rgba(116, 64, 24, .08);
}

.swipy-tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.swipy-tool-heading h2 {
  margin: 0;
  color: #071a33;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

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

.swipy-tools .featured-mode-link {
  min-height: 78px;
  border: 1px solid #f1c36f;
  color: #7c2d12;
  background: #fff4dc;
  font-size: 22px;
  border-radius: 14px;
}

.swipy-tools .featured-mode-link:hover {
  border-color: #f97316;
  color: #6b210d;
  background: #ffe8bd;
}

.swipy-tools .other-pages-block {
  grid-column: 1 / -1;
  background: #fffaf3;
}

.swipy-tools .other-pages-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.swipy-tools button,
.swipy-tools a {
  border-radius: 12px;
  min-height: 52px;
  padding: 10px 12px;
  text-align: center;
}

.swipy-tools .other-pages-grid .less-risk-link {
  color: #075f4b;
  background: #ecfff7;
}

.swipy-landing a:focus-visible,
.swipy-landing button:focus-visible,
.swipy-landing summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .32);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .mode-gate.swipy-landing {
    padding: 16px;
  }

  .swipy-nav {
    align-items: flex-start;
  }

  .swipy-nav-actions a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .swipy-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    border-radius: 20px;
  }

  .swipy-dayback-banner {
    grid-template-columns: 1fr;
  }

  .swipy-copy h1 {
    font-size: clamp(46px, 13vw, 66px);
  }

  .swipy-visual img {
    max-height: 360px;
  }

  .swipy-tool-heading {
    display: block;
  }

  .swipy-tools,
  .swipy-tools .other-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mode-gate.swipy-landing {
    padding: 12px;
  }

  .swipy-nav {
    margin-bottom: 12px;
  }

  .swipy-logo {
    font-size: 20px;
  }

  .swipy-nav-actions {
    gap: 6px;
  }

  .swipy-nav-actions a {
    padding: 0 10px;
  }

  .swipy-panel,
  .swipy-tool-panel,
  .swipy-dayback-banner {
    padding: 18px;
  }

  .swipy-dayback-banner img {
    max-height: 160px;
  }

  .swipy-hero-actions,
  .swipy-tools,
  .swipy-tools .other-pages-grid {
    grid-template-columns: 1fr;
  }

  .swipy-primary,
  .swipy-secondary {
    width: 100%;
  }

  .swipy-tools .featured-mode-link,
  .swipy-tools button,
  .swipy-tools a {
    min-height: 58px;
  }
}

#sheetModeBtn,
#slimModeBtn,
#comingModeBtn,
#spyHedgeModeBtn,
#tradedModeBtn,
#notesModeBtn,
#tradeJournalModeBtn,
#dashboardModeBtn,
#dailyReviewModeBtn,
[data-mode-select="sheet"],
[data-mode-select="slim"],
[data-mode-select="coming"],
[data-mode-select="spyHedge"],
[data-mode-select="traded"],
[data-mode-select="notes"],
[data-mode-select="tradeJournal"],
[data-mode-select="dashboard"],
[data-mode-select="dailyReview"] {
  display: none !important;
}

#closePairModeBtn {
  border-color: #f3b7c6;
  color: #8f2043;
  background: #ffe8ef;
}

#closePairModeBtn:hover {
  border-color: #df7d99;
  background: #ffd6e2;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  justify-content: flex-start;
  gap: 8px;
  width: min(100%, 680px);
  max-width: 100%;
  margin: 0 0 12px;
  position: relative;
  z-index: 80;
}

.mode-switch button {
  min-width: 0;
  min-height: 32px;
  font-size: 13px;
  font-weight: 800;
}

.mode-switch a {
  min-width: 0;
  min-height: 32px;
  font-size: 13px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  font-weight: 900;
}

.mode-tabs a {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  font-weight: 900;
}

.mode-tabs button + button,
.mode-tabs button + a,
.mode-tabs a + button,
.mode-tabs a + a {
  border-left: 1px solid var(--line);
}

body[data-mode="classic"] .mode-tabs [data-mode-select="classic"],
body[data-mode="slim"] .mode-switch [data-mode-select="slim"],
body[data-mode="sheet"] .mode-switch [data-mode-select="sheet"],
body[data-mode="coming"] .mode-switch [data-mode-select="coming"],
body[data-mode="closePair"] .mode-switch [data-mode-select="closePair"],
body[data-mode="traded"] .mode-switch [data-mode-select="traded"],
body[data-mode="tradingDesk"] .mode-switch [data-mode-select="tradingDesk"],
body[data-mode="notes"] .mode-switch [data-mode-select="notes"],
body[data-mode="tradeJournal"] .mode-switch [data-mode-select="tradeJournal"],
body[data-mode="dashboard"] .mode-switch [data-mode-select="dashboard"],
body[data-mode="dailyReview"] .mode-switch [data-mode-select="dailyReview"],
body[data-mode="classic"] .mode-switch [data-mode-select="classic"],
body[data-mode="classic"] .mode-tabs [data-mode-select="classic"],
body[data-mode="slim"] .mode-tabs [data-mode-select="slim"],
body[data-mode="sheet"] .mode-tabs [data-mode-select="sheet"],
body[data-mode="coming"] .mode-tabs [data-mode-select="coming"],
body[data-mode="closePair"] .mode-tabs [data-mode-select="closePair"],
body[data-mode="traded"] .mode-tabs [data-mode-select="traded"],
body[data-mode="tradingDesk"] .mode-tabs [data-mode-select="tradingDesk"],
body[data-mode="notes"] .mode-tabs [data-mode-select="notes"],
body[data-mode="tradeJournal"] .mode-tabs [data-mode-select="tradeJournal"],
body[data-mode="dashboard"] .mode-tabs [data-mode-select="dashboard"],
body[data-mode="dailyReview"] .mode-tabs [data-mode-select="dailyReview"] {
  color: #fff;
  background: var(--accent);
}

.slim-shell,
.sheet-shell,
.coming-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.sheet-shell {
  width: min(1480px, calc(100vw - 20px));
}

.slim-board,
.sheet-board,
.coming-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.slim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.slim-head h1 {
  margin-bottom: 6px;
}

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

.slim-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.slim-summary strong {
  color: var(--ink);
}

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

.slim-stock-card {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.slim-stock-card.error {
  padding: 14px;
}

.slim-stock-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f3;
}

.slim-stock-head strong {
  display: block;
  font-size: 22px;
}

.slim-stock-head span {
  color: var(--muted);
  font-size: 13px;
}

.slim-price {
  text-align: right;
}

.slim-price b {
  display: block;
  font-size: 20px;
}

.slim-hedge-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfd;
}

.slim-hedge-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.slim-option-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.slim-option {
  padding: 12px 14px;
}

.slim-option + .slim-option {
  border-left: 1px solid #edf0f3;
}

.slim-option strong,
.slim-option span {
  display: block;
}

.slim-option strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.slim-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.slim-option .good {
  color: var(--good);
  font-weight: 800;
}

.slim-option .bad {
  color: var(--bad);
  font-weight: 800;
}

.slim-option .action-links {
  justify-content: flex-start;
  margin-top: 8px;
}

.slim-option .suggest-alert-btn {
  margin-top: 8px;
}

.sheet-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
}

.sheet-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.sheet-table th,
.sheet-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #e7ebf0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sheet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #4d5966;
  background: #f1f4f7;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-table th:nth-child(1),
.sheet-table td:nth-child(1) {
  width: 72px;
}

.sheet-table th:nth-child(2),
.sheet-table td:nth-child(2),
.sheet-table th:nth-child(4),
.sheet-table td:nth-child(4),
.sheet-table th:nth-child(6),
.sheet-table td:nth-child(6),
.sheet-table th:nth-child(8),
.sheet-table td:nth-child(8),
.sheet-table th:nth-child(10),
.sheet-table td:nth-child(10),
.sheet-table th:nth-child(11),
.sheet-table td:nth-child(11),
.sheet-table th:nth-child(12),
.sheet-table td:nth-child(12) {
  width: 70px;
}

.sheet-table th:nth-child(3),
.sheet-table td:nth-child(3) {
  width: 64px;
}

.sheet-table th:nth-child(5),
.sheet-table td:nth-child(5),
.sheet-table th:nth-child(7),
.sheet-table td:nth-child(7),
.sheet-table th:nth-child(9),
.sheet-table td:nth-child(9) {
  width: 86px;
}

.sheet-table th:nth-child(13),
.sheet-table td:nth-child(13) {
  width: 82px;
}

.sheet-table th:nth-child(14),
.sheet-table td:nth-child(14) {
  width: 120px;
}

.sheet-table strong,
.sheet-table span {
  display: block;
}

.sheet-table span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.sheet-table .good {
  color: var(--good);
  font-weight: 800;
}

.sheet-table .bad {
  color: var(--bad);
  font-weight: 800;
}

.side-pill {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.side-pill.call {
  color: #0d5c39;
  background: #dff3e9;
}

.side-pill.put {
  color: #8f1f2c;
  background: #ffe2e6;
}

.coming-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.coming-picker button {
  min-height: 38px;
  font-weight: 900;
}

.coming-picker button.selected {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.market-strip > div {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.market-strip > div:last-child {
  border-right: 0;
}

.market-strip strong,
.market-strip small {
  display: block;
}

.market-strip strong {
  font-size: 20px;
}

.market-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.market-strip small.good {
  color: var(--good);
}

.market-strip small.bad {
  color: var(--bad);
}

.market-strip a {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.market-strip a:hover {
  text-decoration: underline;
}

.source-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.source-toggle-row button {
  min-height: 32px;
  font-size: 13px;
  font-weight: 900;
}

.source-toggle-row span {
  color: var(--muted);
  font-size: 13px;
}

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

.coming-result {
  padding: 16px;
}

.coming-stock-quote {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.coming-stock-quote:hover {
  border-color: #9fb8d1;
  background: #f8fbff;
}

.coming-stock-quote strong {
  font-size: 22px;
}

.coming-stock-quote small {
  min-width: 0;
  color: var(--muted);
  text-align: right;
}

.close-pair-stock-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid #0b66c3;
  background: linear-gradient(135deg, #0b66c3, #0f8f72);
  color: #fff;
  box-shadow: 0 16px 36px rgba(11, 102, 195, 0.24);
  grid-template-columns: none;
}

.close-pair-stock-price > .label,
.close-pair-stock-price > strong,
.close-pair-stock-price > span:not(.close-pair-premarket):not(.close-pair-max-pain):not(.reversal-box),
.close-pair-stock-price > small {
  flex: 0 0 auto;
}

.close-pair-stock-price > small {
  min-width: 170px;
  flex: 1 1 170px;
}

.close-pair-stock-price .label,
.close-pair-stock-price small {
  color: rgba(255, 255, 255, 0.88);
}

.close-pair-stock-price strong {
  font-size: 30px;
  line-height: 1;
}

.close-pair-stock-price .good,
.close-pair-stock-price .bad,
.close-pair-stock-price .flat {
  color: #fff;
}

.close-pair-premarket {
  display: grid;
  gap: 2px;
  min-width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.close-pair-premarket b {
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.close-pair-premarket strong {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.close-pair-premarket small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.close-pair-premarket.muted {
  opacity: 0.72;
}

.close-pair-max-pain {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  white-space: normal;
  overflow-wrap: anywhere;
}

.close-pair-max-pain b {
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
}

.close-pair-max-pain small {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  white-space: normal;
}

.close-pair-max-pain .good,
.close-pair-max-pain .bad,
.close-pair-max-pain .flat {
  color: #fff;
}

.reversal-box {
  display: inline-grid;
  gap: 2px;
  min-height: 42px;
  align-content: center;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  padding: 6px 10px;
  color: #394653;
  background: #f8fafc;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.reversal-box b {
  display: block;
  color: currentColor;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reversal-box.good {
  border-color: #8fd7ad;
  color: #0f6f38;
  background: #eaf8ef;
}

.reversal-box.bad {
  border-color: #f2a7a7;
  color: #a51f1f;
  background: #fff0f0;
}

.reversal-box.flat {
  border-color: #d8dee8;
  color: #526170;
  background: #f8fafc;
}

.close-pair-stock-price .reversal-box {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.close-pair-stock-price .reversal-box.bad {
  border-color: #ffd0d0;
  color: #fff;
  background: rgba(165, 31, 31, 0.58);
}

.close-pair-stock-price .reversal-box.good {
  border-color: #c8f7d9;
  color: #fff;
  background: rgba(15, 111, 56, 0.52);
}

.close-pair-stock-link {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.close-pair-stock-link:hover {
  background: rgba(255, 255, 255, 0.26);
}

.trade-quality-card {
  display: grid;
  gap: 14px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 35, 55, 0.08);
}

.trade-quality-card.good {
  border-color: #7fc89a;
  background: linear-gradient(180deg, #f0fff5, #ffffff);
}

.trade-quality-card.watch {
  border-color: #e3a348;
  background: linear-gradient(180deg, #fff7e8, #ffffff);
}

.trade-quality-card.bad {
  border-color: #ea8d8d;
  background: linear-gradient(180deg, #fff0f0, #ffffff);
}

.trade-quality-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e3a348;
  box-shadow: 0 0 0 5px rgba(227, 163, 72, 0.16);
}

.trade-quality-card.good .score-dot {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16);
}

.trade-quality-card.bad .score-dot {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.14);
}

.trade-quality-head h2 {
  margin: 2px 0;
  color: #0f2235;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.trade-quality-head p {
  margin: 0;
  color: #526170;
  font-weight: 800;
}

.trade-quality-grid,
.trade-quality-components {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.trade-quality-grid span,
.trade-quality-components span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  align-content: center;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 10px;
  color: #10263a;
  background: #f8fafc;
  font-weight: 900;
}

.trade-quality-grid b,
.trade-quality-components b {
  color: #526170;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trade-quality-components {
  grid-template-columns: repeat(6, minmax(86px, 1fr));
}

.trade-quality-components span {
  min-height: 48px;
  text-align: center;
}

.next-expiration-pair {
  display: grid;
  gap: 12px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbff;
}

.next-expiration-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.next-expiration-head h2,
.next-expiration-head p {
  margin: 0;
}

.next-pair-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-pair-meta span {
  display: grid;
  gap: 3px;
  min-width: 112px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 8px 10px;
  color: #10263a;
  background: #ffffff;
  font-weight: 900;
}

.next-pair-meta b {
  color: #526170;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pair-option-quality {
  border-color: #e3a348 !important;
  background: #fff7e8 !important;
}

.pair-option-quality.good {
  border-color: #7fc89a !important;
  background: #effff4 !important;
}

.pair-option-quality.bad {
  border-color: #ea8d8d !important;
  background: #fff0f0 !important;
}

.pair-option-quality strong {
  color: #10263a;
  font-size: 18px;
  line-height: 1;
}

.pair-option-quality small {
  color: #526170;
  font-size: 11px;
  font-weight: 900;
}

.stock-data-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 84px 18px 18px;
  background: rgba(15, 23, 42, 0.14);
}

.stock-data-popup.show {
  display: flex;
}

.stock-data-card {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.22);
}

.stock-data-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #d8e0e8;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.stock-data-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 28px;
}

.stock-data-head h2 {
  margin: 2px 0;
  font-size: 28px;
}

.stock-data-head p {
  margin: 0;
  color: var(--muted);
}

.stock-data-price {
  display: grid;
  gap: 2px;
  text-align: right;
}

.stock-data-price strong {
  font-size: 30px;
}

.stock-data-price small {
  color: var(--muted);
}

.stock-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.stock-data-grid span {
  min-width: 0;
  border: 1px solid #e1e8ee;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stock-data-grid b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock-data-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.stock-data-actions a {
  border: 1px solid #0b66c3;
  border-radius: 6px;
  padding: 8px 10px;
  color: #0b66c3;
  font-weight: 900;
  text-decoration: none;
}

.coming-card {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.coming-card + .coming-card {
  margin-top: 12px;
}

.hedge-summary-grid,
.hedge-pair-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.checkpoint-status {
  margin-top: 10px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.checkpoint-status.good {
  border-color: #a9d8bb;
  background: #f2fbf5;
  color: #138a45;
}

.checkpoint-status.flat {
  color: var(--muted);
}

.history-collapse {
  margin-top: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
}

.history-collapse summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 900;
}

.history-collapse .option-table,
.history-collapse .empty-state {
  border-top: 1px solid #e7edf3;
}

.history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.history-title strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.journal-board {
  display: grid;
  gap: 18px;
}

.journal-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.journal-input-panel,
.journal-output-panel {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.journal-input-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.journal-input-panel textarea {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: 14px/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.journal-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.journal-template-row button {
  min-height: 38px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 14px;
}

.journal-output-panel {
  overflow: hidden;
}

.journal-output {
  padding: 16px;
}

.journal-week-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.journal-week-strip div {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.journal-week-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

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

.journal-table td:last-child,
.journal-table th:last-child {
  min-width: 260px;
}

.journal-rules {
  margin-top: 16px;
  border-top: 1px solid #e7edf3;
  padding-top: 14px;
}

.journal-rules h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.journal-rules ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

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

.journal-entry {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.journal-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.journal-entry-head h2 {
  margin: 0;
  font-size: 20px;
}

.journal-entry-head button {
  min-height: 34px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 12px;
}

.journal-entry time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.journal-entry pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 14px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.dashboard-board {
  display: grid;
  gap: 18px;
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-status-grid div,
.dashboard-card {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-status-grid div {
  padding: 12px;
}

.dashboard-status-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dashboard-grid.lower {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(240px, 0.8fr) minmax(240px, 0.8fr);
}

.dashboard-card {
  padding: 16px;
}

.dashboard-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
}

.dashboard-fields,
.dashboard-metrics,
.dashboard-review {
  display: grid;
  gap: 10px;
}

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

.dashboard-fields label,
.dashboard-review label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-fields input,
.dashboard-fields select,
.dashboard-review textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font: 14px/1.3 inherit;
  text-transform: none;
}

.dashboard-fields input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}

.dashboard-checklist {
  display: grid;
  gap: 8px;
}

.dashboard-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--ink);
  font-weight: 800;
}

.dashboard-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.dashboard-metrics div {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

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

.dashboard-review textarea {
  min-height: 92px;
  resize: vertical;
}

.dashboard-rule {
  margin: 14px 0 0;
  border-top: 1px solid #e7edf3;
  padding-top: 12px;
  color: var(--ink);
  font-weight: 900;
}

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

.hedge-summary-grid div,
.hedge-leg {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.hedge-summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

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

.hedge-leg h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}

.hedge-leg-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hedge-leg p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hedge-leg.call {
  border-left: 5px solid #138a45;
}

.hedge-leg.put {
  border-left: 5px solid #bd2d2d;
}

.coming-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.coming-top h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.coming-metrics {
  margin-top: 12px;
}

.opening-estimate {
  margin-top: 12px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}

.opening-estimate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.opening-estimate-head strong {
  font-size: 12px;
  text-align: right;
}

.opening-estimate-head .warn {
  color: #9a5a00;
}

.opening-estimate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.opening-estimate-grid span {
  min-width: 0;
  border: 1px solid #e1e8ee;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
  font-weight: 900;
}

.opening-estimate-grid b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coming-detail {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
}

.coming-detail strong {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.coming-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.traded-option-btn {
  min-height: 34px;
  border: 1px solid #9fb2c3;
  border-radius: 8px;
  padding: 7px 14px;
  color: #15324b;
  background: #f7fbff;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.traded-option-btn:hover {
  background: #eaf4ff;
}

.traded-option-btn.is-traded {
  border-color: #0f8f5b;
  color: #fff;
  background: #12945f;
}

.traded-option-btn.is-traded:hover {
  background: #0c7a4d;
}

.option-test-btn {
  border:1px solid #82691b!important;
  background:#4c3d11!important;
  color:#ffe28a!important;
  font-weight:900!important;
}

.option-test-btn:hover {
  background:#655118!important;
}

.option-test-btn.selected {
  border-color:#62dca5!important;
  background:#1f6a4a!important;
  color:#d7ffed!important;
}

.test-action-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.open-test-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #f1c27d;
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.open-test-inline:hover {
  background: #ffedd5;
  border-color: #fb923c;
}

.global-reset-test {
  position:fixed;
  top:12px;
  right:14px;
  z-index:10000;
  min-height:40px;
  border:1px solid #ff9aa5;
  border-radius:11px;
  padding:9px 14px;
  background:#531e28;
  color:#ffd8dc;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
  font-size:11px;
  font-weight:950;
  cursor:pointer;
}

.global-reset-test:hover { background:#712a36; }

.traded-option-section {
  margin-top: 12px;
  border: 1px solid #f0adc3;
  border-radius: 8px;
  padding: 14px;
  background: #fff7fa;
  box-shadow: 0 12px 28px rgba(143, 31, 77, 0.08);
}

.traded-option-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.traded-option-head h2 {
  margin: 2px 0 4px;
  font-size: 22px;
}

.traded-option-head p,
.traded-option-note {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.traded-option-note {
  margin-top: 4px;
  font-size: 13px;
}

.traded-option-head button {
  min-height: 34px;
  border: 1px solid #bd2d2d;
  border-radius: 8px;
  padding: 7px 12px;
  color: #9b1d1d;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.traded-price-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(90px, 0.45fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.traded-price-row label,
.traded-risk-row label,
.traded-price-card {
  min-width: 0;
  border: 1px solid #e8c9d5;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.traded-price-row label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.traded-risk-row label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.traded-price-row input {
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.traded-risk-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.traded-risk-row input {
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.traded-price-card strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.traded-price-card small {
  display: block;
  margin-top: 3px;
  font-weight: 800;
}

.traded-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.traded-option-grid span {
  min-width: 0;
  border: 1px solid #ead2dc;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  font-weight: 900;
}

.traded-option-grid b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.traded-option-actions {
  justify-content: flex-start;
}

.traded-board {
  max-width: 1280px;
}

.traded-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.traded-compact-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.traded-paste-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e2ed;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  background: #fafeff;
}

.traded-paste-panel textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.traded-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) 88px 62px repeat(4, minmax(92px, 0.72fr)) auto;
  align-items: stretch;
  gap: 8px;
  border: 1px solid #d6e2ed;
  border-left: 6px solid #8aa0b5;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 33, 43, 0.07);
}

.traded-row.winner {
  border-left-color: #15945f;
}

.traded-row.loser {
  border-left-color: #c44545;
}

.traded-row-main,
.traded-row > div,
.traded-row label {
  min-width: 0;
  border: 1px solid #e5edf4;
  border-radius: 7px;
  padding: 8px;
  background: #fafeff;
}

.traded-row-main {
  display: grid;
  gap: 2px;
  align-content: center;
}

.traded-row-main strong {
  font-size: 16px;
}

.traded-row-main span,
.traded-row-note,
.traded-row > div span,
.traded-row label span,
.traded-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.traded-added-time {
  color: #0b6b55 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.traded-row > div strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.traded-row input {
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  padding: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.traded-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.traded-row-actions button,
.traded-row-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #cbd8e4;
  border-radius: 7px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.traded-row-actions button:last-child {
  border-color: #f0b8b8;
  color: #a72f2f;
}

.traded-ai-logic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px 1fr 1.5fr;
  gap: 8px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  padding: 10px;
  background: #f7fafc;
}

.traded-ai-logic.good {
  border-left: 5px solid #15945f;
}

.traded-ai-logic.warn {
  border-left: 5px solid #c47a10;
}

.traded-ai-logic.bad {
  border-left: 5px solid #c44545;
}

.traded-ai-score,
.traded-ai-plan,
.traded-ai-reasons {
  min-width: 0;
}

.traded-ai-score {
  display: grid;
  align-content: center;
  border: 1px solid #d7e1eb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.traded-ai-score strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.traded-ai-logic.good .traded-ai-score strong {
  color: #127849;
}

.traded-ai-logic.warn .traded-ai-score strong {
  color: #a15c00;
}

.traded-ai-logic.bad .traded-ai-score strong {
  color: #aa2735;
}

.traded-ai-score small {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.traded-ai-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.traded-ai-plan span,
.traded-ai-reasons span {
  border: 1px solid #dce5ee;
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  color: #263746;
  font-size: 12px;
  font-weight: 900;
}

.traded-ai-plan b,
.traded-ai-reasons b {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.traded-ai-reasons {
  display: grid;
  gap: 7px;
}

.ai-desk-shell {
  width: min(1480px, calc(100vw - 24px));
}

.ai-desk-board {
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f8fb;
  box-shadow: var(--shadow);
}

.ai-desk-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  color: #eaf6ff;
  background: linear-gradient(135deg, #0b2437, #123f5b 58%, #0c6b58);
}

.ai-desk-hero h1 {
  margin: 4px 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.ai-desk-hero p {
  margin: 0;
  color: #cfe7f3;
  font-weight: 800;
}

.ai-desk-hero .label {
  color: #9ce8da;
}

.ai-desk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ai-desk-actions button,
.ai-desk-actions a {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 900;
}

.ai-desk-actions button.selected {
  color: #fff;
  background: #123f5b;
}

.ai-desk-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #d7e0ea;
  background: #fff;
}

.ai-desk-meta > div {
  padding: 14px 16px;
  border-right: 1px solid #d7e0ea;
}

.ai-desk-meta > div:last-child {
  border-right: 0;
}

.ai-desk-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.ai-desk-result {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ai-desk-score {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) 1fr;
  gap: 16px;
  border: 1px solid #d4dee9;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.ai-desk-score strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

.ai-desk-score.good strong {
  color: #127849;
}

.ai-desk-score.warn strong {
  color: #a15c00;
}

.ai-desk-score.bad strong {
  color: #aa2735;
}

.ai-desk-reasons {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ai-desk-reasons span {
  border: 1px solid #dce4ed;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f7fafc;
  color: #263746;
  font-weight: 800;
}

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

.ai-desk-card,
.ai-desk-empty-card {
  border: 1px solid #d4dee9;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
}

.ai-desk-empty-card {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 180px;
}

.ai-desk-empty-card strong {
  font-size: 22px;
}

.ai-desk-card h2 {
  margin: 5px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
}

.ai-desk-quote-card h2 {
  font-size: clamp(42px, 7vw, 70px);
  line-height: 0.95;
}

.ai-desk-quote-card {
  border-color: #b8d9f2;
  background: #eaf7ff;
}

.ai-desk-quote-card .ai-desk-card-grid span {
  border-color: #c7e1f4;
  background: #f7fcff;
}

.ai-desk-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.ai-desk-card-grid,
.ai-desk-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ai-desk-card-grid span,
.ai-desk-components span {
  min-height: 56px;
  border: 1px solid #dde5ee;
  border-radius: 8px;
  padding: 9px;
  background: #f7fafc;
  color: #263746;
  font-weight: 900;
}

.ai-desk-card-grid b,
.ai-desk-components b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.ai-desk-card-grid em {
  display: block;
  font-style: normal;
}

.risk-card {
  border-color: #bfd8d2;
  background: #f2faf7;
}

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

.ai-desk-option-card {
  display: grid;
  border: 1px solid #d4dee9;
  border-left: 5px solid #0c6b58;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.ai-desk-option-card.put {
  border-left-color: #8f2043;
}

.ai-desk-option-card.selected {
  border-color: #8dddb5;
  border-left-color: #15945f;
  background: #eafff3;
  box-shadow: 0 0 0 3px rgba(21, 148, 95, 0.12);
}

.ai-desk-option-card.selected .ai-desk-option-head > strong {
  border-color: #87d7ad;
  color: #0f6f45;
  background: #d8f8e7;
}

.ai-desk-option-slim {
  display: grid;
  grid-template-columns: 20px minmax(100px,.7fr) minmax(150px,1fr) minmax(180px,1.2fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 950;
}

.ai-desk-option-slim::-webkit-details-marker {
  display: none;
}

.ai-desk-option-slim::before {
  content: "+";
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #0b5e8f;
  background: #e6f3fb;
}

.ai-desk-option-card[open] > .ai-desk-option-slim::before {
  content: "-";
}

.ai-desk-option-slim span {
  color: var(--ink);
  font-size: 13px;
}

.ai-desk-option-slim b {
  overflow: hidden;
  color: #0b5e8f;
  font: 12px ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-desk-option-slim em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-desk-option-slim strong {
  display: grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid #87d7ad;
  border-radius: 999px;
  padding: 4px 10px;
  color: #0f6f45;
  background: #d8f8e7;
  white-space: nowrap;
}

.ai-desk-option-card > .ai-desk-option-head,
.ai-desk-option-card > .ai-desk-card-grid,
.ai-desk-option-card > .coming-actions {
  margin-left: 15px;
  margin-right: 15px;
}

.ai-desk-option-card > .ai-desk-option-head {
  margin-top: 15px;
}

.ai-desk-option-card > .coming-actions {
  margin-bottom: 15px;
}

.ai-desk-option-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ai-desk-option-head h2 {
  margin: 4px 0;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: 0;
}

.ai-desk-option-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.ai-desk-option-head > strong {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  min-height: 54px;
  border: 1px solid #c8d9df;
  border-radius: 8px;
  color: #0c6b58;
  background: #eefbf6;
  font-size: 22px;
}

.ai-desk-journal {
  display: grid;
  gap: 10px;
}

.ai-desk-journal textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  font: inherit;
}

.notes-shell {
  width: min(1280px, calc(100vw - 24px));
}

.notes-board {
  display: grid;
  gap: 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 16px;
  background: #f4f8fb;
  box-shadow: var(--shadow);
}

.notes-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 130px;
  gap: 10px;
  align-items: end;
}

.notes-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.notes-count {
  display: grid;
  min-height: 44px;
  align-content: center;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}

.notes-count strong {
  font-size: 18px;
}

.notes-grid {
  display: grid;
  gap: 12px;
}

.note-card {
  display: grid;
  gap: 10px;
  border: 1px solid #d4dee9;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.note-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.note-card h2 {
  margin: 4px 0;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.note-score {
  display: grid;
  min-width: 120px;
  align-content: center;
  justify-items: center;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  padding: 10px;
  background: #f7fafc;
  text-align: center;
}

.note-score span {
  color: #0c6b58;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.note-score small {
  color: var(--ink);
  font-weight: 900;
}

.note-metrics,
.note-reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.note-metrics span,
.note-reasons span {
  min-height: 54px;
  border: 1px solid #dde5ee;
  border-radius: 8px;
  padding: 8px;
  background: #f7fafc;
  color: #263746;
  font-weight: 900;
}

.note-metrics b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.note-card textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 11px;
  resize: vertical;
  font: inherit;
  font-weight: 800;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-actions a,
.note-actions button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid #c6bedf;
  border-radius: 7px;
  padding: 0 11px;
  color: #312846;
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.note-actions button {
  border-color: #f0b8b8;
  color: #a72f2f;
  cursor: pointer;
}

.floating-quote {
  position: fixed;
  top: 58px;
  right: 18px;
  z-index: 50;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 28px);
  border: 1px solid rgba(12, 107, 88, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.16);
  backdrop-filter: blur(10px);
}

.floating-quote.hidden {
  display: none;
}

.floating-quote span:first-child {
  font-weight: 800;
}

.floating-quote strong {
  font-size: 18px;
}

.floating-quote .good {
  color: var(--good);
}

.floating-quote .bad {
  color: var(--bad);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1880px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.input-panel,
.results-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.input-panel {
  padding: 18px;
  position: sticky;
  top: 18px;
  overflow-anchor: none;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status {
  display: inline-grid;
  place-items: center;
  width: 92px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--muted);
  background: #fafafa;
}

.status.live {
  color: var(--accent-strong);
  border-color: #a7cbc1;
  background: #e9f5f1;
}

.status.error {
  color: var(--bad);
  border-color: #efb2ba;
  background: #fff0f2;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #394653;
}

.symbol-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.symbol-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink);
  background: #fbfcfd;
}

.symbol-search button {
  height: 46px;
  min-width: 96px;
}

.track-note {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.track-note h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.track-note p {
  line-height: 1.35;
}

textarea {
  display: block;
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  line-height: 1.35;
  color: var(--ink);
  background: #fbfcfd;
}

textarea:focus,
input:focus {
  outline: 2px solid rgba(12, 107, 88, 0.18);
  border-color: var(--accent);
}

.toolbar,
.settings-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-tickers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quick-tickers button {
  min-height: 36px;
  padding: 0 8px;
  font-weight: 800;
  color: #314139;
  background: #edf2f0;
}

.quick-tickers button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: #e9f5f1;
}

.scanner-control {
  margin-top: 14px;
}

.platform-panel {
  margin-top: 14px;
}

.platform-panel textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  background: #fbfcfd;
  color: var(--ink);
}

.platform-panel button {
  width: 100%;
  margin-top: 8px;
}

.save-toggle {
  margin-top: 8px;
  align-items: flex-start;
}

.save-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.alert-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.alert-panel button {
  width: 100%;
  margin-top: 8px;
}

.alert-log {
  margin-top: 10px;
  max-height: 150px;
  overflow: auto;
  border: 1px solid #e4e8ee;
  border-radius: 6px;
  padding: 8px;
  color: #384553;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.action-popout {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  width: min(520px, calc(100vw - 28px));
  transform: translate(-50%, -140%);
  border: 2px solid #c1121f;
  border-radius: 8px;
  padding: 14px 16px;
  color: #a00012;
  background: #fff4f4;
  box-shadow: 0 18px 45px rgba(160, 0, 18, 0.2);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  pointer-events: none;
}

.action-popout.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.action-popout strong,
.action-popout span {
  display: block;
}

.action-popout strong {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.05;
}

.action-popout span {
  font-size: 15px;
  line-height: 1.35;
}

.latest-alert-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 22px;
  background: rgba(23, 33, 43, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.latest-alert-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.latest-alert-card {
  width: min(620px, calc(100vw - 28px));
  margin-top: 10px;
  border: 2px solid #0c6b58;
  border-radius: 10px;
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(23, 33, 43, 0.28);
}

.latest-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.latest-alert-kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-alert-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.latest-alert-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.latest-alert-tickers,
.latest-alert-prices {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-bottom: 12px;
}

.latest-alert-prices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.latest-alert-tickers span,
.latest-alert-prices span {
  min-width: 0;
  border: 1px solid #d9eee8;
  border-radius: 8px;
  padding: 10px;
  background: #f0faf6;
}

.latest-alert-prices span {
  border-color: #dbe4f0;
  background: #f7f9fc;
}

.latest-alert-tickers b,
.latest-alert-tickers strong,
.latest-alert-prices b,
.latest-alert-prices strong {
  display: block;
}

.latest-alert-tickers b,
.latest-alert-prices b {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.latest-alert-tickers strong,
.latest-alert-prices strong {
  overflow-wrap: anywhere;
  color: #073f37;
  font-size: 16px;
}

.latest-alert-prices strong {
  color: #26313c;
  font-size: 18px;
}

.latest-alert-card p {
  color: #314050;
  font-size: 15px;
  line-height: 1.45;
}

.latest-alert-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.latest-alert-actions button,
.latest-alert-actions .open-test-inline {
  min-height: 42px;
  font-weight: 900;
}

.latest-alert-actions .trade-alert {
  color: #fff;
  border-color: var(--good);
  background: var(--good);
}

.latest-alert-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.segmented label {
  position: relative;
  min-height: 38px;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #41505f;
  font-weight: 800;
}

.segmented label + label {
  border-left: 1px solid var(--line);
}

.segmented input:checked + span {
  color: #fff;
  background: var(--accent);
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: #26313c;
  background: #fff;
  cursor: pointer;
}

button:hover {
  border-color: #b6bec9;
  background: #f9fafb;
}

button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

button.primary:hover {
  background: var(--accent-strong);
}

.toggle,
.compact-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.compact-field input {
  width: 76px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

.results-panel {
  overflow: hidden;
  overflow-anchor: none;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.summary-strip > div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.summary-strip > div:last-child {
  border-right: 0;
}

.label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-strip strong {
  display: block;
  font-size: 18px;
}

.choice-panel {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 16px;
  background: #ffffff;
}

.choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.choice-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.choice-head button {
  min-height: 34px;
  white-space: nowrap;
}

.sync-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sync-row .compact-field input {
  width: 150px;
  text-transform: lowercase;
}

.sync-status {
  color: var(--muted);
  font-size: 13px;
}

.tomorrow-plan {
  margin-bottom: 12px;
}

.tomorrow-head {
  margin-bottom: 8px;
}

.tomorrow-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

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

.tomorrow-card {
  border: 1px solid #d9e6e2;
  border-radius: 8px;
  padding: 12px;
  background: #fbfefd;
}

.tomorrow-card.muted {
  border-color: #e4e8ee;
  background: #fbfcfd;
}

.tomorrow-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.tomorrow-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.15;
}

.tomorrow-card .contract-cell {
  display: block;
  overflow-wrap: anywhere;
  color: #40505f;
  font-size: 12px;
  font-weight: 800;
}

.tomorrow-card p {
  margin-top: 8px;
  font-size: 13px;
}

.tomorrow-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.tomorrow-metrics span {
  min-width: 0;
  border: 1px solid #e1e8ee;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
  font-weight: 900;
}

.tomorrow-metrics b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tomorrow-card .action-links {
  justify-content: flex-start;
  margin-top: 10px;
}

.choice-history {
  overflow-x: auto;
  border: 1px solid #e2e7ed;
  border-radius: 8px;
  background: #fbfcfd;
}

.sheet-choice-panel {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
  background: #ffffff;
}

.choice-empty {
  padding: 14px;
  font-size: 14px;
}

.choice-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  font-size: 13px;
}

.choice-table th,
.choice-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7ebf0;
  text-align: left;
  vertical-align: top;
}

.choice-table th {
  color: #4d5966;
  background: #f1f4f7;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-table tr:last-child td {
  border-bottom: 0;
}

.choice-table th:nth-child(2),
.choice-table td:nth-child(2) {
  width: 76px;
}

.choice-table th:nth-child(3),
.choice-table td:nth-child(3) {
  min-width: 160px;
}

.choice-table strong,
.choice-table span {
  display: block;
}

.choice-table span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.choice-stock-cell {
  display: grid;
  gap: 3px;
  min-width: 148px;
}

.choice-stock-cell strong {
  color: #17212b;
  font-size: 16px;
  line-height: 1;
}

.choice-stock-cell b {
  display: block;
  width: fit-content;
  border-radius: 6px;
  padding: 5px 8px;
  color: #073f37;
  background: #dff1eb;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.choice-stock-cell span {
  max-width: 180px;
  overflow-wrap: anywhere;
}

.choice-table .contract-cell {
  max-width: 180px;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.choice-table .action-links {
  margin: 0;
}

.choice-clear-btn {
  min-height: 30px;
  border-color: #f0b7bf;
  padding: 0 10px;
  color: #9d2632;
  background: #fff0f2;
  font-size: 12px;
  font-weight: 900;
}

.choice-clear-btn:hover {
  border-color: #d56f7a;
  color: #7f1d28;
  background: #ffe3e7;
}

.choice-pill {
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.choice-pill.traded {
  color: #fff;
  background: #12945f;
}

.choice-pill.reference {
  color: #312846;
  background: #dcd4f4;
}

.choice-pill.scanned {
  color: #084d43;
  background: #dff1eb;
}

.tomorrow-metrics .good {
  color: var(--good);
}

.tomorrow-metrics .bad {
  color: var(--bad);
}

.cards {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.cards.empty {
  min-height: 520px;
  place-items: center;
}

.empty-state {
  text-align: center;
  max-width: 320px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.stock-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.symbol-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.symbol {
  font-size: 24px;
  font-weight: 800;
}

.tag {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
  color: #314139;
}

.trend-tag.good {
  color: #0d5c39;
  background: #dff3e9;
}

.trend-tag.bad {
  color: #8f1f2c;
  background: #ffe2e6;
}

.trend-tag.flat {
  color: #4f5b66;
  background: #edf0f3;
}

.stock-chart-link {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid #a7cbc1;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--accent-strong);
  background: #e9f5f1;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.stock-chart-link:hover {
  border-color: var(--accent);
  background: #dff1eb;
}

.meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.price-box {
  text-align: right;
}

.price {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.change.good {
  color: var(--good);
}

.change.bad {
  color: var(--bad);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  border-bottom: 1px solid var(--line);
}

.option-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card {
  border: 2px solid #0c6b58;
  border-radius: 8px;
  padding: 16px;
  background: #ecf8f4;
  box-shadow: 0 12px 30px rgba(12, 107, 88, 0.12);
}

.reversal-card {
  border: 2px solid #7b5b15;
  border-radius: 8px;
  padding: 16px;
  background: #fff8e8;
  box-shadow: 0 12px 30px rgba(123, 91, 21, 0.11);
}

.next-week-card {
  border: 2px solid #315f86;
  border-radius: 8px;
  padding: 16px;
  background: #eef7ff;
  box-shadow: 0 12px 30px rgba(49, 95, 134, 0.11);
}

.scanner-card {
  border: 2px solid #5c5179;
  border-radius: 8px;
  padding: 16px;
  background: #f6f3ff;
  box-shadow: 0 12px 30px rgba(92, 81, 121, 0.1);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.overall-card {
  border: 3px solid #0c6b58;
  border-radius: 8px;
  padding: 18px;
  background: #e9f8f2;
  box-shadow: 0 16px 36px rgba(12, 107, 88, 0.16);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.closest-options-card {
  border: 2px solid #245b86;
  border-radius: 8px;
  padding: 14px;
  background: #f3f8fc;
  box-shadow: 0 12px 30px rgba(36, 91, 134, 0.1);
}

.max-pain-card {
  border: 2px solid #6b5b1f;
  border-radius: 8px;
  padding: 14px;
  background: #fff9e6;
  box-shadow: 0 12px 30px rgba(107, 91, 31, 0.1);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.max-pain-card .scanner-head strong {
  color: #4b3d0c;
  font-size: 24px;
}

.max-pain-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.max-pain-summary span {
  min-height: 58px;
  border: 1px solid rgba(107, 91, 31, 0.18);
  border-radius: 6px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.max-pain-summary b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.max-pain-summary em {
  font-style: normal;
}

.max-pain-table tr.max-pain-row {
  background: #ffefb6;
  box-shadow: inset 4px 0 0 #8a6b00;
  font-weight: 800;
}

.max-pain-card p {
  margin-top: 10px;
  color: #51451b;
  font-size: 13px;
}

.daily-review-board {
  overflow: visible;
}

.daily-review-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.daily-review-summary div {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.daily-review-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.daily-review-result {
  padding: 16px;
}

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

.daily-review-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: #fff;
}

.daily-review-section + .daily-review-section {
  margin-top: 14px;
}

.daily-review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.daily-review-section-head.good {
  background: #eaf8f0;
}

.daily-review-section-head.bad {
  background: #fff0f2;
}

.daily-review-section-head strong {
  font-size: 22px;
}

.daily-review-table {
  min-width: 760px;
}


.closest-options-card .scanner-head {
  margin-bottom: 10px;
}

.closest-options-card .scanner-head strong {
  color: #173d5a;
  font-size: 22px;
}

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

.closest-option-column {
  min-width: 0;
  border: 1px solid #d7e3ee;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.closest-option-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.closest-option-title strong {
  font-size: 15px;
}

.closest-option-row {
  display: grid;
  grid-template-columns: minmax(126px, 1.15fr) minmax(78px, 0.75fr) minmax(78px, 0.7fr) minmax(130px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border-top: 1px solid #edf1f5;
  padding: 9px 0;
}

.closest-option-row:first-of-type {
  border-top: 0;
}

.closest-option-row > div {
  min-width: 0;
}

.closest-option-row strong,
.closest-option-row b,
.closest-option-row small {
  display: block;
}

.closest-option-row strong {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1;
}

.closest-option-row b {
  font-size: 16px;
}

.closest-option-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.closest-option-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.closest-option-actions .action-links {
  justify-content: flex-end;
  gap: 4px;
}

.closest-option-actions .action-links a,
.closest-option-actions .platform-symbol {
  min-height: 26px;
  padding: 0 7px;
  font-size: 12px;
}

.closest-option-actions .suggest-alert-btn {
  min-height: 28px;
  padding: 0 10px;
}

.overall-card .scanner-head strong {
  color: #073f37;
  font-size: 30px;
}

.overall-card .tag {
  color: #073f37;
  background: #cdeee3;
}

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

.scanner-head strong {
  display: block;
  margin-top: 5px;
  color: #3b3157;
  font-size: 24px;
  line-height: 1.1;
}

.scanner-best {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid rgba(92, 81, 121, 0.18);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.scanner-best span {
  color: var(--muted);
  font-size: 13px;
}

.scanner-best .contract-line {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #312846;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.scanner-best span.good {
  color: var(--good);
  font-weight: 800;
}

.scanner-best span.bad {
  color: var(--bad);
  font-weight: 800;
}

.scanner-best b {
  color: #312846;
  font-size: 20px;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.scanner-best .action-links {
  justify-content: flex-start;
  margin-top: 4px;
}

.action-links a,
.action-links button {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid #c6bedf;
  border-radius: 6px;
  padding: 0 9px;
  color: #312846;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.action-links button {
  cursor: pointer;
}

.action-links a:hover,
.action-links button:hover {
  border-color: #5c5179;
  background: #eee8ff;
}

.platform-symbol {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 0 9px;
  color: #394653;
  background: #f8fafc;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.suggest-alert-btn {
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.suggest-alert-btn:hover {
  background: var(--accent-strong);
}

.decision-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 6px;
  min-width: 126px;
}

.decision-btn {
  min-height: 30px;
  padding: 0 9px;
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 900;
}

.choice-card strong,
.reversal-card strong,
.next-week-card strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.choice-card strong {
  color: #073f37;
}

.reversal-card strong {
  color: #5d3f06;
}

.next-week-card strong {
  color: #1f486b;
}

.choice-card p,
.reversal-card p,
.next-week-card p {
  max-width: 860px;
  font-size: 16px;
}

.choice-card p {
  color: #23443d;
}

.reversal-card p {
  color: #4f4025;
}

.next-week-card p {
  color: #27485f;
}

.choice-card p + p,
.reversal-card p + p,
.next-week-card p + p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.choice-card .open-move,
.reversal-card .open-move,
.next-week-card .open-move {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
}

.open-move.good,
.option-table .good {
  color: var(--good);
}

.open-move.bad,
.option-table .bad {
  color: var(--bad);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 107, 88, 0.22);
}

.reference-grid div {
  min-height: 64px;
  border: 1px solid rgba(12, 107, 88, 0.18);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.66);
}

.reversal-card .reference-grid {
  border-top-color: rgba(123, 91, 21, 0.24);
}

.reversal-card .reference-grid div {
  border-color: rgba(123, 91, 21, 0.18);
}

.next-week-card .reference-grid {
  border-top-color: rgba(49, 95, 134, 0.24);
}

.next-week-card .reference-grid div {
  border-color: rgba(49, 95, 134, 0.18);
}

.reference-grid b {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.1;
}

.reference-grid .good {
  color: var(--good);
}

.reference-grid .bad {
  color: var(--bad);
}

.option-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.option-panel.focus {
  border-color: #86b9ab;
  box-shadow: inset 0 0 0 1px #86b9ab;
}

.option-panel h2 {
  margin: 0;
  padding: 12px 14px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.option-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.option-table th,
.option-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #edf0f4;
  text-align: right;
  white-space: nowrap;
}

.option-table th:nth-child(1),
.option-table td:nth-child(1) {
  width: 48px;
}

.option-table th:nth-child(2),
.option-table td:nth-child(2) {
  width: 82px;
}

.option-table th:nth-child(3),
.option-table td:nth-child(3),
.option-table th:nth-child(4),
.option-table td:nth-child(4),
.option-table th:nth-child(6),
.option-table td:nth-child(6),
.option-table th:nth-child(7),
.option-table td:nth-child(7),
.option-table th:nth-child(9),
.option-table td:nth-child(9),
.option-table th:nth-child(10),
.option-table td:nth-child(10) {
  width: 66px;
}

.option-table th:nth-child(5),
.option-table td:nth-child(5),
.option-table th:nth-child(8),
.option-table td:nth-child(8) {
  width: 92px;
}

.option-table th:nth-child(11),
.option-table td:nth-child(11) {
  width: 58px;
}

.option-table th:nth-child(12),
.option-table td:nth-child(12) {
  width: 132px;
}

.option-table th:first-child,
.option-table td:first-child {
  text-align: left;
}

.option-table tr.focus-row {
  background: #edf7f3;
}

.option-table tr.practical-row {
  background: #dff3ed;
  box-shadow: inset 4px 0 0 #0c6b58;
  font-weight: 800;
}

.option-table tr.practical-row td:first-child::after {
  content: " choice";
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #073f37;
  background: #b8ded3;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.option-table tr.reversal-row {
  background: #fff4d9;
  box-shadow: inset 4px 0 0 #9a6c0a;
  font-weight: 800;
}

.option-table tr.reversal-row td:first-child::after {
  content: " reversal";
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #5d3f06;
  background: #f2d58d;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.option-table tr.scanner-best-row {
  background: #ebe5ff;
  box-shadow: inset 4px 0 0 #5c5179;
  font-weight: 800;
}

.option-table tr.scanner-best-row td:first-child::after {
  content: " best";
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  color: #342a52;
  background: #d7ccff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.scanner-table {
  display: table;
}

.option-table tr:last-child td {
  border-bottom: 0;
}

.metric {
  min-height: 76px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.metric:nth-child(4n) {
  border-right: 0;
}

.metric b {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.insight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px;
  padding: 14px 16px;
}

.note {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #384553;
  line-height: 1.45;
}

.note.warn {
  background: #fff6e8;
  color: var(--warn);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mini-table td {
  padding: 6px 0;
  border-bottom: 1px solid #edf0f4;
}

.mini-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .slim-cards {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
  }

  textarea {
    min-height: 300px;
  }

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

  .metric:nth-child(2n) {
    border-right: 0;
  }

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

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

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

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

  .closest-options-grid {
    grid-template-columns: 1fr;
  }

  .coming-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-strip {
    grid-template-columns: 1fr;
  }

  .market-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-strip > div:last-child {
    border-bottom: 0;
  }

  .coming-top {
    display: block;
  }

  .journal-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-status-grid,
  .dashboard-grid,
  .dashboard-grid.lower,
  .dashboard-review {
    grid-template-columns: 1fr;
  }

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

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

  .traded-row-main,
  .traded-row-actions {
    grid-column: 1 / -1;
  }

  .traded-row-actions {
    justify-content: stretch;
  }

  .traded-row-actions button {
    flex: 1;
  }

  .ai-desk-hero,
  .ai-desk-score {
    display: block;
  }

  .ai-desk-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .ai-desk-meta,
  .ai-desk-grid,
  .ai-desk-low-risk-grid {
    grid-template-columns: 1fr;
  }

  .ai-desk-option-slim {
    grid-template-columns: 20px 1fr auto;
  }

  .ai-desk-option-slim span,
  .ai-desk-option-slim b,
  .ai-desk-option-slim em {
    grid-column: 2;
  }

  .ai-desk-option-slim em {
    white-space: normal;
  }

  .ai-desk-option-slim strong {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .ai-desk-meta > div {
    border-right: 0;
    border-bottom: 1px solid #d7e0ea;
  }

  .ai-desk-card-grid,
  .ai-desk-components {
    grid-template-columns: 1fr;
  }

  .notes-toolbar,
  .note-metrics,
  .note-reasons {
    grid-template-columns: 1fr;
  }

  .note-card-head {
    display: grid;
  }

  .note-score {
    justify-items: start;
    text-align: left;
  }

}

@media (max-width: 640px) {
  .mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .floating-quote {
    left: 10px;
    right: 10px;
    top: 56px;
    justify-content: space-between;
  }

  .shell {
    width: min(100vw - 20px, 1420px);
    padding: 10px 0;
  }

  .input-panel {
    padding: 14px;
  }

  .brand-row {
    grid-template-columns: minmax(0, 1fr) 92px;
    min-height: 32px;
    margin-bottom: 12px;
    align-items: center;
  }

  .brand-row h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand-row p {
    display: none;
  }

  .summary-strip,
  .metric-grid,
  .journal-week-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip > div,
  .metric {
    border-right: 0;
  }

  .metric {
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .order-head {
    display: block;
  }

  .symbol-search {
    grid-template-columns: 1fr;
  }

  .slim-option-pair,
  .other-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-tabs,
  .coming-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slim-head,
  .slim-summary {
    display: block;
  }

  .slim-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .slim-option + .slim-option {
    border-top: 1px solid #edf0f3;
    border-left: 0;
  }

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

  .max-pain-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-review-summary,
  .daily-review-grid {
    grid-template-columns: 1fr;
  }

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

  .coming-stock-quote {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .close-pair-stock-price {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coming-stock-quote small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .close-pair-stock-price > small,
  .close-pair-premarket,
  .close-pair-max-pain,
  .close-pair-stock-price .reversal-box,
  .close-pair-stock-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .close-pair-stock-link {
    min-height: 34px;
  }

  .trade-quality-grid,
  .trade-quality-components {
    grid-template-columns: 1fr 1fr;
  }

  .trade-quality-head {
    align-items: flex-start;
  }

  .stock-data-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .stock-data-head {
    display: block;
  }

  .stock-data-price {
    margin-top: 10px;
    text-align: left;
  }

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

  .hedge-summary-grid,
  .hedge-pair-grid {
    grid-template-columns: 1fr;
  }

  .hedge-leg-top {
    display: block;
  }

  .hedge-leg-top .traded-option-btn {
    width: 100%;
    margin-top: 10px;
  }

  .traded-option-head {
    display: block;
  }

  .traded-option-head button {
    margin-top: 10px;
  }

  .traded-price-row {
    grid-template-columns: 1fr;
  }

  .traded-risk-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .traded-ai-logic {
    grid-template-columns: 1fr;
  }

  .traded-ai-plan {
    grid-template-columns: 1fr;
  }

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

  .journal-input-panel textarea {
    min-height: 300px;
  }

  .journal-template-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-fields {
    grid-template-columns: 1fr;
  }

  .dashboard-status-grid strong {
    font-size: 20px;
  }

  .opening-estimate-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .opening-estimate-head strong {
    text-align: left;
  }

  .option-table {
    font-size: 13px;
  }

  .scanner-head {
    display: block;
  }

  .scanner-card {
    overflow-x: auto;
  }

  .option-table th,
  .option-table td {
    padding: 8px 7px;
  }

  .closest-option-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closest-option-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .closest-option-actions .action-links {
    justify-content: flex-start;
  }

  .choice-card strong,
  .reversal-card strong,
  .next-week-card strong {
    font-size: 24px;
  }

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

  .price-box {
    text-align: left;
    margin-top: 12px;
  }
}
