* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f5f7fa;
  color: #1f2937;

  font-family:
    "Microsoft JhengHei",
    "Noto Sans TC",
    Arial,
    sans-serif;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
  min-height: 82px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr) minmax(220px, 420px);
  align-items: center;
  justify-content: space-between;

  gap: 24px;
  padding: 14px 32px;

  position: sticky;
  top: 0;
  z-index: 100;

  box-shadow:
    0 1px 3px
    rgba(0, 0, 0, 0.03);
}


.brand-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #111827;
}


.brand-subtitle {
  color: #6b7280;
  font-size: 13px;
  margin-top: 3px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
  display: flex;
  width: 420px;
  max-width: 100%;
  min-width: 0;
}


.search-box input {
  width: 100%;
  min-width: 0;
  height: 44px;

  border: 1px solid #d1d5db;
  border-right: 0;

  border-radius: 8px 0 0 8px;

  padding: 0 14px;
  font-size: 16px;

  outline: none;
}


.search-box input:focus {
  border-color: #2563eb;
}


.search-box button {
  width: auto;
  min-width: 96px;
  flex: 0 0 auto;
  height: 44px;

  border: 0;

  border-radius: 0 8px 8px 0;

  background: #2563eb;
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;

  cursor: pointer;
}


.search-box button:hover {
  background: #1d4ed8;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: 1180px;

  max-width:
    calc(100% - 32px);

  margin:
    30px auto 50px;
}


/* =========================================================
   STOCK HEADER
========================================================= */

.stock-header {
  display: flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap: 30px;

  margin-bottom: 20px;
}

.weekly-watchlist { margin: 0 0 24px; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.weekly-watchlist [hidden] { display: none !important; }
.weekly-watchlist-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.weekly-watchlist h2 { margin: 0; color: #111827; }
.weekly-watchlist-meta, .weekly-watchlist-disclaimer { margin: 6px 0 0; color: #6b7280; font-size: 13px; }
.weekly-watchlist-history-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #475569; font-size: 13px; }
.weekly-watchlist-history-controls select { padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.watchlist-history-label { display: inline-block; margin-top: 8px; color: #64748b; font-size: 12px; font-weight: 700; }
.weekly-watchlist-disclaimer { max-width: 420px; text-align: right; }
.weekly-watchlist-state { padding: 22px 0; color: #6b7280; }
.weekly-watchlist-state.error { color: #b91c1c; }
.weekly-watchlist-table { display: grid; gap: 8px; margin-top: 16px; }
.weekly-watchlist-table .watchlist-item { display: grid; grid-template-columns: 2fr 1fr 2fr 3fr; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid #f1f5f9; }
.weekly-watchlist-cards { display: none; }
.watchlist-item { padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.watchlist-item.top-rank { border-color: #c7d2fe; background: #f8faff; }
.watchlist-item-title, .watchlist-scores, .watchlist-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.watchlist-rank { font-weight: 800; color: #4f46e5; }
.watchlist-movement { padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.rank-up { background: #ecfdf5; color: #166534; }
.rank-down { background: #fff7ed; color: #9a3412; }
.rank-new { background: #eff6ff; color: #1d4ed8; }
.watchlist-stock-link { color: #111827; font-weight: 750; text-decoration: none; }
.watchlist-stock-link:hover, .watchlist-stock-link:focus { text-decoration: underline; }
.watchlist-market { padding: 2px 7px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 12px; }
.watchlist-total-score { font-weight: 800; color: #1f2937; }
.watchlist-score { color: #4b5563; font-size: 13px; }
.watchlist-label { font-size: 12px; font-weight: 700; color: #475569; }
.reason-chip, .risk-chip { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.reason-chip { background: #ecfdf5; color: #166534; }
.risk-chip { background: #fff7ed; color: #9a3412; }

@media (max-width: 760px) {
  .weekly-watchlist { padding: 15px; }
  .weekly-watchlist-header { display: block; }
  .weekly-watchlist-disclaimer { text-align: left; }
  .weekly-watchlist-table { display: none; }
  .weekly-watchlist-cards { display: grid; gap: 10px; margin-top: 16px; }
  .watchlist-scores { gap: 10px; }
}


.stock-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}


.stock-title-row h1 {
  font-size: 30px;
  margin: 0;
  color: #111827;
}


.stock-code {
  color: #6b7280;
  font-size: 18px;
  font-weight: 700;
}


.market-badge {
  background: #eef2ff;
  color: #4f46e5;

  border-radius: 20px;

  padding: 5px 10px;

  font-size: 12px;
  font-weight: 700;
}


.trade-date {
  color: #9ca3af;
  margin-top: 8px;
  font-size: 13px;
}


.price-area {
  text-align: right;
}


.latest-price {
  font-size: 39px;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}


.price-change {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
}


.price-up {
  color: #dc2626;
}


.price-down {
  color: #16a34a;
}


.price-flat {
  color: #6b7280;
}


/* =========================================================
   SUMMARY
========================================================= */

.summary-grid {
  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 12px;

  margin-bottom: 22px;
}


.summary-card {
  background: #ffffff;

  border:
    1px solid #e5e7eb;

  border-radius: 12px;

  padding: 18px;
}


.summary-label {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}


.summary-value {
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
}


/* =========================================================
   PANEL
========================================================= */

.panel {
  background: #ffffff;

  border:
    1px solid #e5e7eb;

  border-radius: 14px;

  padding: 22px;

  margin-bottom: 20px;
}


.panel-header {
  display: flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap: 20px;

  margin-bottom: 18px;
}


.panel h2 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}


.panel-description {
  color: #9ca3af;
  font-size: 13px;
  margin-top: 5px;
}


.period-change {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.range-coverage-note {
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
  line-height: 1.5;
}


/* =========================================================
   CONTROL
========================================================= */

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}


.segmented-control {
  display: flex;
  gap: 4px;

  background: #f3f4f6;

  border-radius: 9px;

  padding: 4px;
}


.range-control {
  max-width: min(100%, 760px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.range-control .range-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.range-btn,
.chart-type-btn {
  border: 0;
  background: transparent;

  border-radius: 6px;

  padding: 7px 13px;

  cursor: pointer;

  color: #6b7280;

  font-weight: 700;

  font-family: inherit;
}


.range-btn:disabled {
  cursor: wait;
  opacity: .55;
}

.range-btn.active,
.chart-type-btn.active {
  background: #ffffff;
  color: #2563eb;

  box-shadow:
    0 1px 4px
    rgba(0, 0, 0, 0.1);
}


/* =========================================================
   INDICATORS
========================================================= */

.indicator-toolbar {
  min-height: 42px;

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 15px;

  margin:
    -3px 0 12px;

  padding:
    8px 12px;

  border-radius: 8px;

  background: #f8fafc;
}


.indicator-title {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}


.indicator-option {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  cursor: pointer;

  font-size: 13px;

  font-weight: 700;
}


.ma5-option {
  color: #7c3aed;
}


.ma20-option {
  color: #ea580c;
}


.ma60-option {
  color: #0891b2;
}

.reference-line-option {
  color: #475569;
}


.visible-extreme-option {
  color: #b91c1c;
}


.crossover-option {
  color: #a16207;
}


.support-resistance-option {
  color: #0f766e;
}


.indicator-action {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}


.indicator-action:hover {
  background: #f1f5f9;
}


.indicator-hint {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}


/* =========================================================
   PRICE CHARTS
========================================================= */

.chart-scroll-shell {
  overflow: hidden;
}

.chart-scroll-content {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.chart-wrapper {
  position: relative;
  height: 440px;
  min-width: 0;
  max-width: 100%;
}


.volume-chart-wrapper {
  position: relative;
  height: 220px;
  min-width: 0;
  max-width: 100%;
}


.swing-level-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #dbe4ea;
  border-radius: 11px;
  background: #fbfdff;
}


.swing-level-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}


.swing-level-heading h3 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
}


.swing-level-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}


.swing-state {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  text-align: right;
}


.swing-state span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}


.swing-state strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}


.swing-status-breakout {
  color: #b91c1c;
}


.swing-status-breakdown {
  color: #15803d;
}


.swing-status-neutral {
  color: #475569;
}


.swing-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}


.swing-level-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #ffffff;
}


.swing-level-card > span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}


.swing-level-card > strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}


.swing-level-card > p,
.swing-state-detail {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}


.swing-support-card {
  border-top: 3px solid rgba(21, 128, 61, .58);
}


.swing-resistance-card {
  border-top: 3px solid rgba(185, 28, 28, .58);
}


.swing-state-detail {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e5e7eb;
}


/* =========================================================
   K-LINE EXPLANATIONS
========================================================= */

.price-structure-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.price-structure-heading h3 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
}

.price-structure-heading p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.price-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.price-structure-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #f8fafc;
}

.price-structure-label {
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.price-structure-value {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.price-structure-detail {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.beginner-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.beginner-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #ffffff;
}

.beginner-section-title {
  margin: 18px 0 9px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.beginner-return-grid,
.beginner-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.beginner-return-card,
.beginner-level-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.beginner-return-card span,
.beginner-level-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.beginner-return-card strong,
.beginner-level-card strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 18px;
}

.support-resistance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.beginner-ma-table {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #ffffff;
}

.beginner-ma-row {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(95px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 13px;
}

.beginner-ma-row:first-child {
  border-top: 0;
}

.beginner-ma-head {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.beginner-ma-row strong {
  color: #111827;
}

.beginner-mobile-details {
  margin-top: 16px;
}

.beginner-mobile-details > summary,
.technical-mobile-summary {
  display: none;
}

.beginner-mobile-details-body {
  min-width: 0;
}

.mobile-technical-details {
  display: block;
}

.technical-panel-body {
  min-width: 0;
}

.market-glossary {
  margin-top: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  background: #ffffff;
  overflow: hidden;
}

.market-glossary summary {
  padding: 13px 15px;
  cursor: pointer;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  user-select: none;
}

.market-glossary[open] summary {
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.market-glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 4px 15px;
}

.market-glossary-grid > div {
  min-width: 0;
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.market-glossary-grid strong {
  color: #111827;
  font-size: 13px;
}

.market-glossary-grid p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.market-glossary-note {
  margin: 0;
  padding: 10px 15px 14px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
   TECHNICAL ANALYSIS
========================================================= */

.technical-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.technical-summary-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.technical-main-value {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.technical-text-value {
  font-size: 19px;
}

.technical-state {
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.technical-summary-text {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}

.technical-empty {
  margin-bottom: 18px;
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

.technical-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.technical-chart-card {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  overflow: hidden;
}

.technical-chart-title {
  margin-bottom: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.technical-chart-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 230px;
}


/* =========================================================
   REVENUE
========================================================= */

.revenue-summary-grid {
  display: grid;

  grid-template-columns:
    1.5fr 1fr 1fr 1fr;

  gap: 12px;

  margin-bottom: 22px;
}


.revenue-summary-card {
  background: #f8fafc;

  border:
    1px solid #e5e7eb;

  border-radius: 12px;

  padding: 18px;
}


.revenue-main-value {
  font-size: 25px;

  font-weight: 800;

  color: #111827;
}


.revenue-period {
  margin-top: 6px;

  color: #9ca3af;

  font-size: 12px;
}


.revenue-rate {
  font-size: 22px;

  font-weight: 800;
}


.revenue-chart-wrapper {
  position: relative;

  height: 370px;
  min-width: 0;
  max-width: 100%;
}


.revenue-empty {
  margin:
    20px 0;

  padding: 20px;

  text-align: center;

  color: #9ca3af;

  border:
    1px dashed #d1d5db;

  border-radius: 10px;
}


/* =========================================================
   FUTURE
========================================================= */

.future-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

  min-width: 0;
}


.future-card {
  background: #ffffff;

  border:
    1px solid #e5e7eb;

  border-radius: 12px;

  padding: 20px;

  min-width: 0;
}


.future-card-title {
  font-size: 18px;
  font-weight: 800;
}


.future-card-subtitle {
  margin-top: 4px;

  font-size: 12px;

  color: #2563eb;

  font-weight: 700;
}


.future-card p {
  margin:
    10px 0 0;

  color: #6b7280;

  line-height: 1.7;

  font-size: 14px;
}


/* =========================================================
   MESSAGE
========================================================= */

.error-box {
  padding:
    14px 18px;

  border-radius: 8px;

  margin-bottom: 20px;

  background: #fef2f2;

  color: #b91c1c;

  border:
    1px solid #fecaca;
}


.loading-box {
  padding: 12px;

  text-align: center;

  color: #6b7280;
}


.hidden {
  display: none;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  color: #9ca3af;

  text-align: center;

  padding: 20px;

  font-size: 12px;
}


.main-nav { display: flex; gap: 8px; align-items: center; justify-content: center; overflow-x: auto; }
.main-nav-link { color: #374151; text-decoration: none; font-weight: 700; white-space: nowrap; padding: 8px 10px; border-radius: 8px; }
.main-nav-link:hover, .main-nav-link.active { color: #1d4ed8; background: #eff6ff; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

  .price-structure-grid,
  .beginner-snapshot-grid,
  .beginner-return-grid,
  .beginner-level-grid,
  .market-glossary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }


  .revenue-summary-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .technical-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 900px) {

  .topbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;

    padding:
      15px 20px;
  }


  .search-box {
    width: 100%;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }


  .stock-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .price-area {
    text-align: left;
  }


  .future-grid {
    grid-template-columns:
      1fr;
  }


  .chart-panel-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .chart-controls {
    justify-content:
      flex-start;

    width: 100%;
  }

  .technical-chart-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .container {
    max-width:
      calc(100% - 14px);

    margin-top: 14px;
  }

  .panel {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .panel-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .panel h2 {
    font-size: 18px;
  }

  .stock-title-row h1 {
    font-size: 25px;
  }

  .latest-price {
    font-size: 34px;
  }

  .summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-card {
    padding: 12px;
  }

  .summary-value {
    font-size: 17px;
  }

  .revenue-summary-grid {
    grid-template-columns:
      1fr;
  }

  .chart-controls {
    width: 100%;
    gap: 8px;
    flex-direction:
      column;
    align-items:
      stretch;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .segmented-control::-webkit-scrollbar,
  .indicator-toolbar::-webkit-scrollbar {
    display: none;
  }

  .range-btn,
  .chart-type-btn {
    flex: 1 0 auto;
    min-width: 58px;
    padding: 7px 10px;
  }

  .indicator-toolbar {
    flex-wrap: nowrap;
    gap: 10px;
    margin: -2px 0 10px;
    padding: 8px 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .indicator-title,
  .indicator-option {
    flex: 0 0 auto;
    white-space: nowrap;
  }


  .swing-level-heading {
    display: block;
  }

  .swing-state {
    width: 100%;
    margin-top: 10px;
    text-align: left;
  }

  .swing-level-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .swing-level-panel {
    padding: 12px;
  }

  .chart-scroll-shell {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .chart-scroll-shell::-webkit-scrollbar {
    height: 6px;
  }

  .chart-scroll-shell::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  .chart-scroll-shell::-webkit-scrollbar-track {
    background: transparent;
  }

  .chart-scroll-content-wide {
    min-width: 820px;
  }

  .chart-scroll-content-medium {
    min-width: 680px;
  }

  .chart-wrapper.chart-scroll-shell,
  .volume-chart-wrapper.chart-scroll-shell {
    overflow-x: hidden;
  }

  .chart-wrapper .chart-scroll-content-wide,
  .volume-chart-wrapper .chart-scroll-content-wide {
    min-width: 100%;
  }

  .indicator-hint {
    margin-left: 0;
  }

  .chart-wrapper canvas,
  .volume-chart-wrapper canvas {
    touch-action: pan-y;
  }

  .chart-wrapper {
    height: 300px;
  }

  .volume-chart-wrapper {
    height: 165px;
  }

  .revenue-chart-wrapper {
    height: 300px;
  }

  .price-structure-panel {
    margin-top: 14px;
    padding-top: 14px;
  }

  .price-structure-heading p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.55;
  }

  .beginner-snapshot-grid,
  .price-structure-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .beginner-card,
  .price-structure-card {
    padding: 12px;
  }

  .price-structure-label {
    margin-bottom: 5px;
  }

  .price-structure-value {
    font-size: 16px;
  }

  .price-structure-detail {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
  }

  .beginner-section-title {
    margin: 14px 0 7px;
  }

  .beginner-return-grid,
  .beginner-level-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .beginner-return-card,
  .beginner-level-card {
    padding: 10px 11px;
  }

  .beginner-return-card strong,
  .beginner-level-card strong {
    font-size: 16px;
  }

  .beginner-mobile-details {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
  }

  .beginner-mobile-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
  }

  .beginner-mobile-details > summary::-webkit-details-marker,
  .technical-mobile-summary::-webkit-details-marker {
    display: none;
  }

  .beginner-mobile-details > summary::after,
  .technical-mobile-summary::after {
    content: "＋";
    margin-left: 10px;
    color: #64748b;
    font-size: 16px;
  }

  .beginner-mobile-details[open] > summary::after,
  .mobile-technical-details[open] > .technical-mobile-summary::after {
    content: "－";
  }

  .beginner-mobile-details[open] > summary {
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
  }

  .beginner-mobile-details-body {
    padding: 10px;
  }

  .support-resistance-grid,
  .market-glossary-grid {
    grid-template-columns: 1fr;
  }

  .beginner-ma-row {
    min-width: 500px;
    padding: 9px 10px;
    gap: 8px;
    font-size: 12px;
  }

  .market-glossary {
    margin-top: 10px;
  }

  .market-glossary summary {
    padding: 11px 12px;
    font-size: 13px;
  }

  .market-glossary-grid {
    padding:
      4px 8px;
  }

  .mobile-technical-details {
    display: block;
    padding: 0;
  }

  .technical-mobile-summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    cursor: pointer;
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
    list-style: none;
  }

  .technical-mobile-summary small {
    margin-left: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
  }

  .technical-mobile-summary::after {
    margin-left: auto;
  }

  .mobile-technical-details[open] > .technical-mobile-summary {
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
  }

  .technical-panel-body {
    padding: 14px;
  }

  .technical-panel-body > .panel-header {
    display: none;
  }

  .technical-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .technical-summary-card {
    padding: 12px;
  }

  .technical-main-value {
    font-size: 20px;
  }

  .technical-chart-grid {
    gap: 10px;
  }

  .technical-chart-wrapper {
    height: 190px;
  }

}

.financial-panel { grid-column: 1 / -1; min-width: 0; width: 100%; overflow: hidden; }
.financial-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.financial-metrics, .financial-metrics div { min-width: 0; }
.financial-metrics div { padding: 12px; background: #f8fafc; border-radius: 8px; }
.financial-metrics span, .financial-metrics strong { display: block; }
.financial-metrics span { color: #6b7280; font-size: 13px; }
.financial-metrics strong { margin-top: 6px; font-size: 22px; color: #111827; }
.financial-chart { height: 220px; margin-top: 18px; position: relative; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.financial-empty { padding: 18px 0; color: #9ca3af; text-align: center; }
@media (max-width: 600px) {
  .financial-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-chart { height: 190px; overflow-x: auto; overflow-y: hidden; }
}
.weekly-landing-heading { margin-bottom: 18px; }
.weekly-landing-heading h1 { margin-bottom: 6px; }
.weekly-landing-heading p { color: #6b7280; margin: 0; }


/* =========================================================
   PRE-MARKET THEMES
========================================================= */

.themes-page {
  max-width: min(1240px, calc(100% - 32px));
}

.themes-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.themes-kicker {
  margin-bottom: 7px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.themes-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
}

.themes-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.themes-refresh {
  min-width: 106px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.themes-refresh:hover {
  background: #f8fafc;
}

.themes-refresh:disabled {
  cursor: default;
  opacity: .55;
}

.themes-summary {
  padding: 18px 20px;
}

.themes-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.themes-summary-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
}

.themes-summary-grid span,
.themes-summary-grid strong {
  display: block;
}

.themes-summary-grid span {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
}

.themes-summary-grid strong {
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 15px;
}

.themes-coverage {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.themes-content [hidden] {
  display: none !important;
}

.themes-state {
  margin-bottom: 20px;
  padding: 28px 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  text-align: center;
}

.themes-state-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.themes-empty strong,
.themes-empty span {
  display: block;
}

.themes-empty strong {
  color: #334155;
  font-size: 17px;
}

.themes-empty span {
  margin-top: 7px;
  font-size: 13px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.theme-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.theme-card-top {
  border-color: #c7d2fe;
}

.theme-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.theme-card-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.theme-card-title-wrap h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.theme-rank {
  flex: 0 0 auto;
  color: #4f46e5;
  font-weight: 800;
}

.theme-heat {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
}

.theme-heat span {
  color: #64748b;
  font-size: 12px;
}

.theme-heat strong {
  color: #111827;
  font-size: 25px;
}

.theme-source {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
}

.theme-source a {
  color: #64748b;
  text-decoration: none;
}

.theme-source a:hover,
.theme-source a:focus {
  text-decoration: underline;
}

.theme-heat-bar {
  height: 7px;
  margin: 14px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.theme-heat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}

.theme-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.theme-metric {
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  background: #f8fafc;
}

.theme-metric-label,
.theme-metric strong {
  display: block;
}

.theme-metric-label {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
}

.theme-metric strong {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 14px;
}

.theme-metric strong.price-up {
  color: #dc2626;
}

.theme-metric strong.price-down {
  color: #16a34a;
}

.theme-metric strong.price-flat {
  color: #6b7280;
}

.theme-institutional {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

.theme-related {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.theme-related h3 {
  margin: 0 0 9px;
  color: #475569;
  font-size: 13px;
}

.theme-stock-list {
  display: grid;
  gap: 7px;
}

.theme-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.theme-stock-row:last-child {
  border-bottom: 0;
}

.theme-stock-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.theme-stock-rank {
  flex: 0 0 auto;
  min-width: 24px;
  color: #6366f1;
  font-size: 11px;
  font-weight: 800;
}

.theme-stock-link {
  overflow: hidden;
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-stock-link:hover,
.theme-stock-link:focus {
  text-decoration: underline;
}

.theme-stock-activity {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
}

.theme-related-empty {
  color: #94a3b8;
  font-size: 12px;
}

.themes-method {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.themes-method h2 {
  margin: 0 0 7px;
}

.themes-method p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.themes-method .themes-disclaimer {
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
}

@media (max-width: 1000px) {
  .themes-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .themes-method {
    display: block;
  }

  .themes-method .themes-disclaimer {
    max-width: none;
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .themes-page {
    max-width: calc(100% - 20px);
  }

  .themes-hero {
    display: block;
  }

  .themes-hero h1 {
    font-size: 26px;
  }

  .themes-refresh {
    width: 100%;
    margin-top: 14px;
  }

  .themes-summary-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    padding: 16px;
  }

  .theme-card-header {
    gap: 10px;
  }

  .theme-card-title-wrap h2 {
    font-size: 18px;
  }

  .theme-heat strong {
    font-size: 22px;
  }

  .theme-stock-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-stock-activity {
    justify-content: flex-start;
  }
}


/* =========================================================
   USER AUTH
========================================================= */

.auth-session-strip {
  width: 1180px;
  max-width: calc(100% - 32px);
  margin: 10px auto -16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.auth-session-name {
  font-weight: 700;
}

.auth-logout-button {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-logout-button:hover {
  background: #f8fafc;
}

.login-page {
  min-height: 100vh;
  background: #f5f7fa;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.login-brand {
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.login-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
}

.login-card h1 {
  margin: 30px 0 8px;
  color: #111827;
  font-size: 23px;
}

.login-description,
.login-note {
  color: #64748b;
  line-height: 1.65;
}

.login-description {
  margin: 0 0 20px;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  font: inherit;
  letter-spacing: .04em;
}

.login-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.login-form button {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-form button:hover {
  background: #1d4ed8;
}

.login-form button:disabled {
  cursor: default;
  opacity: .6;
}

.login-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.login-message-error {
  background: #fef2f2;
  color: #b91c1c;
}

.login-note {
  margin: 18px 0 0;
  font-size: 12px;
}

@media (max-width: 600px) {
  .auth-session-strip {
    max-width: calc(100% - 20px);
    margin-top: 8px;
  }

  .login-shell {
    padding: 14px;
  }

  .login-card {
    padding: 25px 20px;
  }
}


/* =========================================================
   ACCOUNT MANAGEMENT
========================================================= */

.auth-manage-link {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.auth-manage-link:hover {
  background: #f8fafc;
}

.accounts-page {
  max-width: min(1180px, calc(100% - 32px));
}

.accounts-hero,
.accounts-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.accounts-hero {
  margin-bottom: 18px;
}

.accounts-hero h1,
.accounts-create-panel h2,
.accounts-list-panel h2 {
  margin: 0;
  color: #111827;
}

.accounts-hero p,
.accounts-list-header p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
}

.accounts-create-panel,
.accounts-list-panel {
  padding: 20px;
}

.accounts-create-panel {
  margin-bottom: 18px;
}

.accounts-create-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.accounts-create-form label,
.accounts-dialog label {
  display: grid;
  gap: 6px;
}

.accounts-create-form label span,
.accounts-dialog label span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.accounts-create-form input,
.accounts-create-form select,
.accounts-role-select,
.accounts-dialog input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.accounts-create-form button,
.accounts-dialog-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.accounts-create-form button:disabled,
.accounts-dialog-actions button:disabled {
  cursor: default;
  opacity: .55;
}

.accounts-form-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
}

.accounts-message {
  margin: 16px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
}

.accounts-message-error,
.accounts-state-error {
  background: #fef2f2;
  color: #b91c1c;
}

.accounts-state {
  margin-top: 16px;
  padding: 20px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.accounts-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.accounts-user-card {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(140px, .8fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.accounts-user-identity,
.accounts-user-details {
  min-width: 0;
}

.accounts-user-identity strong,
.accounts-user-identity span,
.accounts-user-details span {
  display: block;
}

.accounts-user-identity strong {
  color: #111827;
}

.accounts-user-identity span,
.accounts-user-details span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.accounts-user-role {
  min-width: 0;
}

.accounts-role-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.accounts-role-superadmin {
  background: #ede9fe;
  color: #6d28d9;
}

.accounts-role-admin {
  background: #dbeafe;
  color: #1d4ed8;
}

.accounts-role-user {
  background: #f1f5f9;
  color: #475569;
}

.accounts-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.accounts-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.accounts-action:hover:not(:disabled) {
  background: #f8fafc;
}

.accounts-action.danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.accounts-action:disabled {
  cursor: default;
  opacity: .45;
}

.accounts-dialog {
  width: min(420px, calc(100% - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .20);
}

.accounts-dialog::backdrop {
  background: rgba(15, 23, 42, .42);
}

.accounts-dialog form {
  padding: 22px;
}

.accounts-dialog h2 {
  margin: 0 0 8px;
}

.accounts-dialog p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
}

.accounts-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

.accounts-dialog-actions .secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}

@media (max-width: 900px) {
  .accounts-create-form {
    grid-template-columns: 1fr 1fr;
  }

  .accounts-user-card {
    grid-template-columns: 1fr 1fr;
  }

  .accounts-user-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .accounts-page {
    max-width: calc(100% - 20px);
  }

  .accounts-hero {
    display: block;
  }

  .accounts-hero > button {
    width: 100%;
    margin-top: 12px;
  }

  .accounts-create-form,
  .accounts-user-card {
    grid-template-columns: 1fr;
  }
}


/* V8h admin-only prediction preview */
.prediction-preview-panel {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.prediction-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.prediction-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.prediction-preview-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

.prediction-preview-card span,
.prediction-preview-card strong,
.prediction-preview-card small {
  display: block;
}

.prediction-preview-card span {
  color: #6b7280;
  font-size: 13px;
}

.prediction-preview-card strong {
  margin-top: 7px;
  color: #111827;
  font-size: 21px;
}

.prediction-preview-card small {
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .prediction-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .prediction-preview-grid {
    grid-template-columns: 1fr;
  }
}


/* One-day realtime intraday date selector */
.intraday-date-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.intraday-date-control input {
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.intraday-date-control.hidden {
  display: none;
}
