:root {
  --bg: #0e1218;
  --bg-glow: #10273b;
  --panel: rgba(19, 25, 33, 0.92);
  --panel-2: #171e27;
  --text: #eef5fb;
  --muted: #9aa9bb;
  --accent: #39c6ff;
  --accent-2: #2f80ed;
  --border: #2a3644;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(57, 198, 255, 0.12), transparent 25%),
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.1), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #141a22 100%);
}

body:not(.member-auth-cleared) {
  overflow: hidden;
}

body:not(.disclaimer-cleared) {
  overflow: hidden;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

.member-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.96) 0%, rgba(8, 13, 20, 0.98) 100%);
  padding: 28px 16px;
}

.member-auth-gate.is-hidden {
  display: none;
}

.member-auth-shell {
  max-width: 720px;
  margin: 0 auto;
}

.member-auth-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.member-auth-logo {
  width: 92px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
}

.member-auth-card {
  display: grid;
  gap: 18px;
  background: rgba(19, 25, 33, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.member-auth-intro {
  margin: 0;
  color: #d7e4ef;
  line-height: 1.7;
}

.member-auth-form {
  display: grid;
  gap: 14px;
}

.member-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-auth-field {
  display: grid;
  gap: 8px;
}

.member-auth-field span {
  color: #9fc2da;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-auth-field input {
  width: 100%;
  appearance: none;
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
}

.member-auth-field input:focus {
  outline: none;
  border-color: rgba(87, 176, 237, 0.9);
  box-shadow: 0 0 0 3px rgba(57, 198, 255, 0.12);
}

.member-auth-form button {
  appearance: none;
  border: 1px solid rgba(82, 177, 237, 0.72);
  background: linear-gradient(180deg, #1c6ea3 0%, #134d73 100%);
  color: #f2f9ff;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.member-auth-form button:hover {
  transform: translateY(-1px);
}

.member-auth-form .member-auth-secondary {
  border-color: rgba(63, 118, 162, 0.55);
  background: linear-gradient(180deg, rgba(15, 33, 48, 0.98) 0%, rgba(10, 20, 30, 0.96) 100%);
  color: #d9f1ff;
}

.member-auth-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.member-auth-feedback {
  margin: 0;
  line-height: 1.6;
}

.member-auth-feedback[data-tone="muted"] {
  color: #9fb7cb;
}

.member-auth-feedback[data-tone="success"] {
  color: #8ee2b2;
}

.member-auth-feedback[data-tone="error"] {
  color: #ffb3b3;
}

.is-access-hidden {
  display: none !important;
}

.is-access-locked {
  position: relative;
}

.is-access-locked.portal-card,
.is-access-locked.report-home-link,
.is-access-locked.archive-open {
  box-shadow: inset 0 0 0 1px rgba(214, 176, 84, 0.45);
}

.member-access-notice {
  grid-column: 1 / -1;
  margin: 8px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 176, 84, 0.72);
  border-radius: 14px;
  background: rgba(36, 28, 12, 0.94);
  color: #ffd98a;
  font-weight: 800;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.member-session-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 16, 23, 0.92);
  border: 1px solid rgba(78, 132, 176, 0.25);
  border-radius: 18px;
}

.member-session-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-session-label {
  color: #8fdcff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-session-copy strong {
  color: #eaf7ff;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.member-signout-button {
  flex: 0 0 auto;
}

.disclaimer-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(10, 15, 22, 0.98) 100%);
  padding: 28px 16px;
}

.disclaimer-gate.is-hidden {
  display: none;
}

.disclaimer-shell {
  max-width: 860px;
  margin: 0 auto;
}

.disclaimer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.disclaimer-logo {
  width: 88px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
}

.disclaimer-card {
  background: rgba(19, 25, 33, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.disclaimer-card h2 {
  margin-bottom: 10px;
}

.disclaimer-intro {
  margin: 0 0 18px 0;
  color: #d7e4ef;
  line-height: 1.6;
}

.disclaimer-copy {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(10, 16, 23, 0.84);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.disclaimer-copy p {
  margin: 0;
  color: #d7e4ef;
  line-height: 1.7;
}

.disclaimer-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.disclaimer-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: rgba(10, 16, 23, 0.74);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #e3edf6;
}

.disclaimer-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.disclaimer-actions {
  margin-top: 20px;
}

.disclaimer-actions button {
  appearance: none;
  border: 1px solid rgba(82, 177, 237, 0.72);
  background: linear-gradient(180deg, #1c6ea3 0%, #134d73 100%);
  color: #f2f9ff;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.disclaimer-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.disclaimer-actions button:not(:disabled):hover {
  transform: translateY(-1px);
}

.disclaimer-note {
  margin: 16px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  margin-bottom: 18px;
}

.hero-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex: 0 0 360px;
  max-width: 360px;
}

[hidden] {
  display: none !important;
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
}

.portal-view {
  display: none;
}

.portal-view.is-active {
  display: block;
}

.eyebrow {
  margin: 0 0 10px 0;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

.subhead,
.section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.subhead {
  max-width: 780px;
  margin: 14px 0 0 0;
}

.hero-note {
  margin-top: 10px;
}

.hero-logo {
  width: 124px;
  max-width: 24vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  opacity: 0.96;
}

.market-tone-card {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(11, 20, 31, 0.98) 0%, rgba(9, 16, 24, 0.96) 100%);
  border: 1px solid rgba(79, 160, 219, 0.26);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(109, 210, 255, 0.08);
}

.market-tone-card.is-compact {
  gap: 6px;
  padding: 12px 14px;
  width: auto;
  min-width: 300px;
  max-width: 420px;
}

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

.market-tone-eyebrow {
  margin-bottom: 8px;
}

.market-tone-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.market-tone-primary strong {
  color: #e7f8ff;
  font-size: 22px;
  line-height: 1.2;
}

.market-tone-inline {
  display: none;
  margin: 2px 0 0 0;
  color: #e7f8ff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.market-tone-card.is-compact .market-tone-primary strong {
  font-size: 18px;
}

.market-tone-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 160, 255, 0.28);
  background: rgba(18, 35, 53, 0.82);
  color: #d8f4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-tone-status.is-calibrating {
  border-color: rgba(125, 183, 255, 0.35);
  background: rgba(28, 44, 72, 0.88);
  color: #e0efff;
}

.market-tone-summary,
.market-tone-posture {
  margin: 0;
  color: #d5e3ee;
  line-height: 1.65;
}

.market-tone-summary {
  font-size: 15px;
}

.market-tone-posture {
  color: #9fc2da;
  font-size: 14px;
}

.market-tone-posture strong {
  color: #eef7ff;
  font-weight: 700;
}

.market-tone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #8fb3cc;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-tone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(82, 173, 231, 0.35);
  background: rgba(17, 39, 60, 0.8);
  color: #dff6ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.market-tone-link:hover,
.market-tone-link:focus-visible {
  background: rgba(30, 64, 94, 0.9);
}

.market-tone-card.is-compact .market-tone-posture {
  display: none;
}

.market-tone-card.is-compact .market-tone-primary,
.market-tone-card.is-compact .market-tone-link,
.market-tone-card.is-compact .market-tone-summary,
.market-tone-card.is-compact .market-tone-meta {
  display: none;
}

.market-tone-card.is-compact .market-tone-inline {
  display: block;
}

.market-tone-card.is-compact .market-tone-eyebrow {
  margin: 0;
}

.hero-aside.is-compact {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.hero-aside.is-compact .market-tone-card {
  order: 1;
}

.hero-aside.is-compact .hero-logo {
  order: 2;
}

.hero-actions {
  margin-top: 18px;
}


.portal-home {
  margin-top: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

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

.product-panel {
  display: grid;
  gap: 10px;
  background: rgba(10, 16, 23, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.product-title {
  font-size: 30px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.product-copy {
  margin: 0;
  color: #d7e4ef;
  line-height: 1.7;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.resource-block {
  margin-top: 18px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

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

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

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

.resource-feature-card {
  min-height: unset;
}

.resource-feature-card span:last-child {
  max-width: 960px;
}

.tool-shell {
  display: grid;
  gap: 18px;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.tool-field {
  display: grid;
  gap: 8px;
}

.tool-field span {
  color: #9fc2da;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-field input,
.tool-field select {
  width: 100%;
  appearance: none;
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
}

.tool-field input:focus,
.tool-field select:focus {
  outline: none;
  border-color: rgba(87, 176, 237, 0.9);
  box-shadow: 0 0 0 3px rgba(57, 198, 255, 0.12);
}

.tool-actions {
  display: flex;
  align-items: end;
}

.tool-results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.report-hub-backtesting {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.report-hub-scorecard-body {
  display: grid;
  gap: 14px;
}

.scorecard-summary {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.scorecard-summary-card,
.scorecard-branch-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.scorecard-summary-card {
  display: grid;
  gap: 12px;
}

.scorecard-summary-card h3,
.scorecard-branch-card h3 {
  margin: 6px 0 0 0;
  color: var(--accent);
}

.scorecard-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scorecard-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 33, 48, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.45);
  color: #dff3ff;
  font-size: 13px;
  font-weight: 700;
}

.scorecard-summary-note {
  margin: 0;
  color: #d7e4ef;
  line-height: 1.65;
}

.scorecard-exclusions {
  display: grid;
  gap: 6px;
  color: #9fc2da;
  font-size: 14px;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  align-items: start;
}

.scorecard-branch-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.scorecard-branch-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.scorecard-branch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  min-width: 360px;
  max-width: 460px;
  width: 100%;
}

.scorecard-stat {
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.32);
}

.scorecard-stat-label {
  display: block;
  color: #9fc2da;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scorecard-stat-value {
  display: block;
  margin-top: 6px;
  color: #eef7ff;
  font-size: 22px;
  font-weight: 800;
}

.scorecard-audited-count,
.scorecard-empty-note {
  margin: 0;
  color: #d7e4ef;
  line-height: 1.6;
}

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

.scorecard-band-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.32);
}

.scorecard-watch-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.32);
}

.scorecard-band-card h4 {
  margin: 0 0 12px 0;
  color: #eaf6ff;
  font-size: 16px;
}

.scorecard-watch-card h4 {
  margin: 0 0 8px 0;
  color: #eaf6ff;
  font-size: 16px;
}

.scorecard-watch-note {
  margin: 0 0 12px 0;
  color: #a8c0d5;
  line-height: 1.5;
}

.scorecard-band-table {
  display: grid;
  gap: 8px;
}

.scorecard-band-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 17, 25, 0.88);
  border: 1px solid rgba(45, 84, 112, 0.35);
}

.scorecard-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scorecard-band-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #eef7ff;
  font-weight: 700;
}

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

.scorecard-band-metric {
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.24);
  text-align: center;
}

.scorecard-band-metric-label {
  display: block;
  color: #9fc2da;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scorecard-band-metric strong {
  display: block;
  margin-top: 6px;
  color: #eef7ff;
  font-size: 16px;
}

.scorecard-band-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
}

.scorecard-band-dot.is-green {
  background: #27ae60;
}

.scorecard-band-dot.is-blue {
  background: #2f80ed;
}

.scorecard-band-dot.is-yellow {
  background: #f2c94c;
}

.scorecard-band-dot.is-orange {
  background: #f2994a;
}

.scorecard-band-dot.is-red {
  background: #eb5757;
}

.scorecard-band-dot.is-unknown {
  background: #7c8ea3;
}

.scorecard-watch-table {
  display: grid;
  gap: 8px;
}

.scorecard-watch-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 17, 25, 0.88);
  border: 1px solid rgba(45, 84, 112, 0.35);
}

.scorecard-watch-row.is-expandable {
  display: grid;
  padding: 0;
}

.scorecard-watch-row.is-expandable {
  display: block;
  padding: 0;
}

.scorecard-watch-summary,
details.scorecard-watch-row > summary.scorecard-watch-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

details.scorecard-watch-row > summary.scorecard-watch-summary::-webkit-details-marker,
.scorecard-watch-summary::-webkit-details-marker {
  display: none;
}

details.scorecard-watch-row > summary.scorecard-watch-summary::marker,
.scorecard-watch-summary::marker {
  content: "";
  display: none;
}

.scorecard-watch-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.scorecard-watch-name {
  color: #eef7ff;
  font-weight: 700;
  line-height: 1.4;
}

.scorecard-watch-time {
  color: #97b7d0;
  font-size: 13px;
  line-height: 1.3;
}

.scorecard-watch-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr)) auto;
  align-items: stretch;
  gap: 8px;
  justify-self: stretch;
}

.scorecard-watch-chip {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.24);
  text-align: center;
}

.scorecard-watch-chip-label {
  display: block;
  color: #9fc2da;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.scorecard-watch-chip strong {
  display: block;
  margin-top: 6px;
  color: #eef7ff;
  font-size: 16px;
  text-align: center;
}

.scorecard-watch-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.24);
  color: #dff3ff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 36px;
  justify-self: end;
  align-self: center;
}

.scorecard-watch-toggle::before {
  content: "+";
}

.scorecard-watch-row[open] .scorecard-watch-toggle::before {
  content: "-";
}

.scorecard-watch-expand {
  padding: 0 12px 12px;
}

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

.scorecard-watch-expand-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(12, 23, 34, 0.88);
  border: 1px solid rgba(45, 84, 112, 0.30);
}

.scorecard-watch-expand-card h5 {
  margin: 0 0 10px 0;
  color: #eaf6ff;
  font-size: 14px;
}

.surf-options-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.surf-options-review-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(9, 17, 25, 0.88);
  border: 1px solid rgba(45, 84, 112, 0.35);
}

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

.surf-options-review-head h3 {
  margin: 0;
  color: #eef7ff;
  font-size: 20px;
}

.surf-options-review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.surf-options-review-chip {
  min-height: 74px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 28, 41, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.24);
  text-align: center;
}

.surf-options-review-label {
  display: block;
  color: #9fc2da;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.surf-options-review-chip strong {
  display: block;
  margin-top: 6px;
  color: #eef7ff;
  font-size: 15px;
  line-height: 1.25;
}

.surf-options-review-note {
  margin: 12px 0 0 0;
  color: #b6cfe3;
  line-height: 1.45;
}

.tool-result-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

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

.tool-result-head h3 {
  margin: 6px 0 0 0;
  color: var(--accent);
  font-size: 24px;
}

.tool-result-confidence {
  color: #27ae60;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.tool-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: #9fc2da;
  font-size: 13px;
}

.tool-result-meta span {
  background: rgba(15, 33, 48, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.45);
  border-radius: 999px;
  padding: 7px 10px;
}

.tool-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tool-result-grid .value {
  font-size: 16px;
}

.tool-result-grid-secondary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(63, 118, 162, 0.26);
}

.tool-result-note {
  margin-top: 16px;
}

.tool-result-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 33, 48, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.45);
  color: #dff6ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-card {
  display: grid;
  gap: 8px;
  width: 100%;
  appearance: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  background: rgba(10, 16, 23, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(87, 176, 237, 0.9);
  background: rgba(14, 22, 31, 0.98);
}

.portal-kicker {
  color: #8fdcff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.portal-card strong {
  color: var(--accent);
  font-size: 20px;
}

.portal-card span:last-child {
  color: #d7e4ef;
  line-height: 1.6;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.navigation-note {
  margin: -2px 0 14px 0;
  color: #9fc2da;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-footer {
  margin: 20px 0 10px;
  text-align: center;
}

.dashboard-footer p {
  margin: 0;
  color: rgba(204, 222, 239, 0.72);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.execution-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(13, 20, 28, 0.92);
  border: 1px solid rgba(63, 118, 162, 0.45);
  border-radius: 14px;
  color: #d6e3ee;
  line-height: 1.65;
}

.execution-note strong {
  color: #8fdcff;
}

.report-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(63, 118, 162, 0.55);
  background: linear-gradient(180deg, rgba(15, 33, 48, 0.98) 0%, rgba(10, 20, 30, 0.96) 100%);
  color: #b5e6ff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.report-home-link:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 176, 237, 0.9);
  background: linear-gradient(180deg, rgba(18, 40, 58, 1) 0%, rgba(11, 24, 35, 0.98) 100%);
  color: #eaf7ff;
}

.is-hidden-button {
  display: none;
}

.current-report > .report-panel {
  margin-top: 18px;
}

.report-refresh-button {
  appearance: none;
  border: 1px solid #3d5167;
  background: linear-gradient(180deg, #1e3449 0%, #172837 100%);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
}

.report-refresh-button:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 176, 237, 0.9);
  background: linear-gradient(180deg, rgba(18, 40, 58, 1) 0%, rgba(11, 24, 35, 0.98) 100%);
  color: #eaf7ff;
}

.report-refresh-button.is-loading {
  cursor: wait;
  opacity: 0.88;
}

.report-refresh-button.is-success {
  border-color: rgba(39, 174, 96, 0.85);
  background: linear-gradient(180deg, rgba(28, 73, 50, 0.98) 0%, rgba(20, 54, 39, 0.96) 100%);
  color: #e9fff2;
}

.report-refresh-button.is-error {
  border-color: rgba(235, 87, 87, 0.85);
  background: linear-gradient(180deg, rgba(88, 34, 34, 0.98) 0%, rgba(60, 24, 24, 0.96) 100%);
  color: #fff1f1;
}

.report-refresh-button:disabled {
  transform: none;
  opacity: 0.88;
}

.summary-strip,
.schedule-strip,
.meta-grid,
.quick-nav,
.legend {
  display: grid;
  gap: 10px;
}

.summary-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 18px;
}

.meta-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
}

.meta-grid-section {
  display: grid;
  gap: 8px;
}

.meta-grid-group-label {
  color: #8eb7d7;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 0 2px;
}

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

.schedule-strip {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 14px;
}

.summary-card,
.meta-card,
.stat-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 13px;
}

.label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.summary-card .value {
  font-size: 18px;
}

.summary-card .label {
  color: #8eb7d7;
}

.schedule-meta-card {
  min-width: 0;
}

.schedule-meta-card .value {
  white-space: normal;
  line-height: 1.5;
  word-break: break-word;
}

.meta-card .value,
.stat-card .value {
  font-size: 14px;
  color: #d9e6f2;
}

.scorecard-snapshot-card .label {
  color: #8eb7d7;
}

.scorecard-snapshot-card .value {
  color: #eef7ff;
}

.quick-nav {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 16px;
}

.quick-nav a {
  text-decoration: none;
  color: #7fd7ff;
  background: linear-gradient(180deg, rgba(15, 33, 48, 0.98) 0%, rgba(10, 20, 30, 0.96) 100%);
  border: 1px solid rgba(63, 118, 162, 0.55);
  border-radius: 999px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(132, 207, 255, 0.08);
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.quick-nav a:hover {
  color: #b8ecff;
  border-color: rgba(87, 176, 237, 0.9);
  background: linear-gradient(180deg, rgba(23, 49, 69, 1) 0%, rgba(12, 25, 37, 0.98) 100%);
  transform: translateY(-1px);
}

.legend {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 18, 25, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 14px;
  color: #dcecf7;
  font-size: 15px;
  font-weight: 700;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.section-head {
  margin-bottom: 14px;
}

.section-head p {
  margin: 8px 0 0 0;
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.guide-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.guide-card h3 {
  margin: 0 0 10px 0;
  color: #8fdcff;
  font-size: 18px;
}

.guide-card-content {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.guide-card.is-collapsible .guide-card-content {
  max-height: 255px;
}

.guide-card.is-collapsible:not(.is-expanded) .guide-card-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 23, 0) 0%, rgba(10, 16, 23, 0.98) 100%);
}

.guide-card.is-expanded .guide-card-content {
  max-height: none;
  overflow: visible;
}

.guide-card p {
  margin: 0 0 10px 0;
  color: #d6e3ee;
  line-height: 1.65;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
  color: #d6e3ee;
}

.guide-card li {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.guide-card li:last-child {
  margin-bottom: 0;
}

.guide-card-toggle {
  margin-top: 14px;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(69, 160, 255, 0.45);
  background: rgba(20, 43, 66, 0.72);
  color: #dff5ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.guide-card-toggle:hover,
.guide-card-toggle:focus-visible {
  background: rgba(32, 66, 97, 0.88);
}

.scout-branch-card .scout-branch-meta {
  color: var(--muted);
  font-size: 13px;
}

.scout-branch-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scout-branch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}

.scout-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(76, 144, 201, 0.45);
  background: rgba(20, 33, 46, 0.9);
  color: #c8ddef;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.scout-branch-card .ticker-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scout-overflow-note {
  color: #8fdcff !important;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 0;
}

.scout-branch-card .product-actions {
  margin-top: auto;
  padding-top: 14px;
}

#shared-scout-board {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.archive-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.archive-top {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.archive-stamp {
  color: #8fdcff;
  font-weight: 800;
  line-height: 1.45;
}

.archive-watch {
  color: #eef5fb;
  font-size: 18px;
  font-weight: 800;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.archive-open {
  appearance: none;
  border: 1px solid rgba(82, 177, 237, 0.72);
  background: linear-gradient(180deg, #18344b 0%, #112536 100%);
  color: #f2f9ff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.schedule-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.schedule-title {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.schedule-days {
  color: #9fc2da;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.schedule-list {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 54, 68, 0.65);
}

.schedule-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-time {
  color: #7fd7ff;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-name {
  color: #d9e6f2;
  font-weight: 600;
}

.ticker-chip {
  display: grid;
  gap: 4px;
  align-content: center;
  background: rgba(10, 16, 23, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.ticker-chip-symbol {
  color: #eef7ff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ticker-chip-meta {
  color: #8fb3cc;
  font-size: 12px;
  line-height: 1.35;
}

.pick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.planner-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.planner-card.is-call {
  box-shadow: inset 0 0 0 1px rgba(72, 214, 205, 0.14);
}

.planner-card.is-put {
  box-shadow: inset 0 0 0 1px rgba(168, 112, 255, 0.14);
}

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

.planner-ticker {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.planner-phase {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.planner-score {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

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

.planner-fit {
  color: #9fc2da;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-fit.is-call {
  color: #79efe8;
}

.planner-fit.is-put {
  color: #d7b1ff;
}

.planner-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.planner-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(69, 160, 255, 0.32);
  background: rgba(14, 25, 38, 0.9);
  color: #dcefff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.planner-chip.is-call {
  border-color: rgba(72, 214, 205, 0.42);
  background: rgba(11, 57, 61, 0.36);
  color: #d6fffc;
}

.planner-chip.is-put {
  border-color: rgba(168, 112, 255, 0.42);
  background: rgba(54, 29, 84, 0.38);
  color: #f0deff;
}

.planner-chip.is-warning {
  border-color: rgba(242, 153, 74, 0.42);
  background: rgba(92, 48, 14, 0.34);
  color: #ffd8b0;
}

.planner-levels {
  display: grid;
  gap: 10px;
}

.planner-level {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16, 27, 39, 0.9);
  border: 1px solid rgba(66, 82, 102, 0.28);
}

.planner-level-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.planner-level-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.planner-level strong {
  font-size: 16px;
}

.planner-level span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-level em {
  color: #d6e3ee;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.planner-note {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(66, 82, 102, 0.28);
  color: rgba(158, 177, 198, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.table-direction-chip {
  white-space: nowrap;
}

.table-fit-label {
  display: inline-flex;
  align-items: center;
}

.pick-card {
  background: rgba(10, 16, 23, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

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

.pick-ticker {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pick-phase {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.pick-event-flag {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(242, 153, 74, 0.42);
  background: rgba(92, 48, 14, 0.34);
  color: #ffd8b0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.pick-conf {
  font-size: 26px;
  font-weight: 800;
}

.pick-score-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.pick-risk-rank {
  max-width: 120px;
  color: #9fc2da;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.pick-metric-column {
  display: grid;
  gap: 10px;
}

.pick-context-note {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(66, 82, 102, 0.28);
  color: rgba(158, 177, 198, 0.72);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pick-header-grid span,
.pick-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.pick-header-grid strong,
.pick-grid strong {
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #425266 transparent;
}

.table-scroll-top {
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #425266 transparent;
  margin-bottom: 8px;
  min-height: 16px;
}

.table-scroll-spacer {
  height: 1px;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.table-search,
.table-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.table-search {
  min-width: 180px;
  flex: 1 1 220px;
}

.table-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 3 1 440px;
}

.table-search span,
.table-filter span {
  color: #9fc2da;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-search input,
.table-filter select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 16, 23, 0.96);
  color: #d6e3ee;
  padding: 0 12px;
  font-size: 14px;
}

.table-search input::placeholder {
  color: #89a2b7;
}

.table-reset-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(69, 160, 255, 0.45);
  background: rgba(20, 43, 66, 0.72);
  color: #dff5ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.table-reset-button:hover,
.table-reset-button:focus-visible {
  background: rgba(32, 66, 97, 0.88);
}

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

th,
td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  background: rgba(19, 25, 33, 0.98);
  vertical-align: bottom;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.table-sort-button.is-active {
  color: #8fdcff;
}

.table-sort-indicator {
  color: #89a2b7;
  font-size: 12px;
}

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

#harbor-table-wrap tbody tr,
#harbor-table-wrap tbody td {
  color: #eef5fb !important;
}

.resource-footnote {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(69, 160, 255, 0.22);
  border-radius: 14px;
  background: rgba(11, 19, 28, 0.72);
  display: grid;
  gap: 8px;
  color: #cbd9e6;
  font-size: 14px;
  line-height: 1.6;
}

.resource-footnote strong {
  color: #eef5fb;
}

.empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .page {
    padding: 12px;
  }

  .member-auth-gate {
    padding: 16px 12px;
  }

  .member-auth-card {
    padding: 18px;
    border-radius: 18px;
  }

  .member-auth-actions {
    flex-direction: column;
  }

  .member-auth-brand {
    align-items: flex-start;
  }

  .member-auth-logo {
    width: 76px;
  }

  .disclaimer-gate {
    padding: 16px 12px;
  }

  .disclaimer-card {
    padding: 18px;
    border-radius: 18px;
  }

  .disclaimer-brand {
    align-items: flex-start;
  }

  .disclaimer-logo {
    width: 72px;
  }

  .hero,
  .panel {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .hero-aside {
    flex: 0 0 320px;
    max-width: 320px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

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

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

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

  .meta-grid,
  .legend,
  .pick-cards {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 88px;
    max-width: 28vw;
  }

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

  table {
    min-width: 860px;
  }
}

@media (max-width: 1100px) {
  .product-grid-equities {
    grid-template-columns: 1fr;
  }

  .resource-feature-grid,
  .shared-tools-grid,
  .scorecard-grid,
  .scorecard-band-groups,
  .shared-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-brand {
    flex-direction: column;
  }

  .hero-aside {
    align-items: stretch;
    max-width: none;
    width: 100%;
    flex: none;
  }

  .hero-aside.is-compact {
    width: 100%;
    justify-content: space-between;
  }

  .hero-logo {
    align-self: flex-end;
  }
}

@media (max-width: 760px) {
  .resource-feature-grid,
  .shared-tools-grid,
  .scorecard-grid,
  .scorecard-band-groups,
  .shared-info-grid {
    grid-template-columns: 1fr;
  }

  .scorecard-branch-head {
    flex-direction: column;
  }

  .scorecard-branch-stats {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
  }

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

  .scorecard-watch-row {
    grid-template-columns: 1fr;
  }

  .scorecard-watch-summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

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

  .scorecard-watch-metrics {
    width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scorecard-watch-expand-grid {
    grid-template-columns: 1fr;
  }

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

  .market-tone-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-session-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .meta-grid-row {
    grid-template-columns: 1fr;
  }
}
