:root {
  --bg: #070b12;
  --panel: #101827;
  --panel-2: #151f32;
  --line: #243044;
  --text: #e5edf7;
  --muted: #94a3b8;
  --gold: #d6a84f;
  --blue: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #facc15;
  --orange: #fb923c;
  --brown: #a87c52;
}

* { box-sizing: border-box; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(36,48,68,.65); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,80,120,.85); }
* { scrollbar-width: thin; scrollbar-color: rgba(36,48,68,.65) transparent; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 30%),
    linear-gradient(135deg, #05070d, var(--bg));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

/* ── Sidebar ── */
.sidebar {
  padding: 32px 22px;
  background: rgba(4,6,12,.97);
  box-shadow: 1px 0 0 rgba(255,255,255,.025), 20px 0 48px rgba(0,0,0,.2);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 30%, rgba(8, 216, 233, .2), transparent 62%),
    linear-gradient(135deg, #071827, #020812);
  border: 1px solid rgba(56, 189, 248, .28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28), 0 0 22px rgba(8, 216, 233, .08);
  color: var(--text);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .1em;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.side-nav { display: grid; gap: 2px; }

/* ── Nav icon ── */
.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .15s;
}
.side-nav a:hover .nav-icon,
.side-nav a.active .nav-icon { opacity: 1; }

.side-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, color .15s;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
}

.side-nav a.active { color: var(--gold); }

.nav-section {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 14px 6px;
}

/* ── Main ── */
.main { padding: 32px 36px 40px 40px; min-width: 0; }

/* ── Hero ── */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  min-height: 276px;
  padding: 48px 48px;
  border: 1px solid rgba(98,139,190,.42);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,12,24,.96) 0%, rgba(5,12,24,.88) 55%, rgba(5,12,24,.46) 100%),
    linear-gradient(90deg, rgba(5,12,24,.40) 0%, rgba(5,12,24,.22) 58%, rgba(5,12,24,.10) 100%),
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(56,189,248,.16) 0%, transparent 52%),
    radial-gradient(ellipse 58% 70% at 88% 10%, rgba(56,189,248,.10) 0%, transparent 56%),
    url("assets/hero-wave.png") center calc(100% - 2px) / 112% auto no-repeat,
    linear-gradient(150deg, rgba(8,16,31,.98) 0%, rgba(3,8,16,.99) 100%);
  box-shadow: 0 36px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
  margin-bottom: 24px;
}

/* 星屑のような微細ドット */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(56,189,248,.72) 1px, transparent 1.5px),
    radial-gradient(rgba(56,189,248,.28) 1px, transparent 1.5px);
  background-position: 0 0, 13px 11px;
  background-size: 96px 76px, 58px 52px;
  opacity: .32;
  pointer-events: none;
  z-index: 0;
}

/* 背景画像の下端をカードに馴染ませる */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(3,8,16,.28), transparent);
  pointer-events: none;
  z-index: 0;
}

/* テキストを装飾の前面に */
.hero > * { position: relative; z-index: 1; }
.hero > div:first-child {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: #f2b744;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 0 46px rgba(56,189,248,.22), 0 8px 24px rgba(0,0,0,.42);
}

.hero .sub {
  color: #b5c4d8;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.date-card {
  width: 168px;
  min-width: 160px;
  align-self: flex-start;
  padding: 16px 16px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(19,29,46,.82), rgba(12,19,31,.82));
  border: 1px solid rgba(148,163,184,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 56px rgba(0,0,0,.28);
  text-align: center;
}

.date-card span {
  display: block;
  color: #aebbd0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.date-card strong {
  display: block;
  margin-top: 9px;
  font-size: 19px;
  color: #f2b744;
  letter-spacing: .02em;
}

.date-card em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #b5c4d8;
  margin-top: 4px;
}

/* ── Summary cards ── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.card {
  background: rgba(10,15,28,.9);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 22px;
}

.card.highlight {
  background: linear-gradient(135deg, rgba(214,168,79,.18), rgba(16,24,39,.9));
  border-color: rgba(214,168,79,.3);
}

.label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p  { margin: 0; color: var(--muted); font-size: 13px; }

/* ── Content grid ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  background: rgba(10,15,28,.9);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.panel.wide  { grid-column: 1 / -1; }
.panel.full  { grid-column: 1 / -1; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.panel-head h3 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.panel-head span { color: var(--muted); font-size: 12px; }

/* ── Report callout-style sections ── */
.report-body {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.85;
}

.report-body strong { color: var(--text); }

.report-body .topic {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.report-body .topic:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.topic-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  font-size: 13px;
}

.handover {
  margin-top: 14px;
  padding: 14px;
  background: rgba(56,189,248,.07);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── Currency ranking table ── */
.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fx-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.fx-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  vertical-align: top;
  font-size: 13.5px;
}

.fx-table tr:last-child td { border-bottom: none; }
.fx-table tr:hover td { background: rgba(255,255,255,.02); }

.rank-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
}

.rank-s { background: rgba(250,204,21,.15); color: var(--yellow); border: 1px solid rgba(250,204,21,.3); }
.rank-a { background: rgba(148,163,184,.12); color: var(--muted); border: 1px solid rgba(148,163,184,.25); }
.rank-b { background: rgba(36,48,68,.5); color: #64748b; border: 1px solid var(--line); }

.trend-up   { color: var(--green); font-weight: 600; }
.trend-down { color: var(--red);   font-weight: 600; }
.trend-range{ color: var(--muted); }

/* ── Points list ── */
.points-block { margin-bottom: 16px; }
.points-block:last-child { margin-bottom: 0; }
.points-block .block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.points-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.points-list li {
  font-size: 13.5px;
  color: #cbd5e1;
  padding-left: 14px;
  position: relative;
}

.points-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.1;
}

.points-list li strong { color: var(--text); }
.badge-important {
  display: inline-block;
  background: rgba(239,68,68,.2);
  color: var(--red);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Fundamentals table ── */
.fund-table th { color: var(--green); }

/* ── Sentiment columns ── */
.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Archive (sidebar inline) ── */
.archive-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.archive-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.archive-list a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.archive-list .active a { color: var(--gold); background: rgba(214,168,79,.08); }

/* ── Badge ── */
.badge-live {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  background: rgba(34,197,94,.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,.3);
  vertical-align: middle;
  margin-left: 8px;
}

/* ── Portal: section label ── */
.hub-section { margin: 28px 0 14px; }
.hub-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.05);
}

/* ── Portal: featured report ── */
.report-feature {
  background: rgba(10,15,28,.9);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.report-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.report-feature-header h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.4;
}

/* ── Today Priority Section ── */
.today-priority-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 16px;
}
.market-holiday-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(214,168,79,.08);
  border: 1px solid rgba(214,168,79,.22);
  border-radius: 12px;
  flex-wrap: wrap;
}
.mh-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.mh-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.mh-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.priority-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(16,24,39,.84);
  border: 1px solid rgba(214,168,79,.18);
}
.key-events-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}
.key-events-list li {
  font-size: 13px;
  color: var(--text);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  line-height: 1.45;
}
.key-events-list li:last-child,
.key-events-list li:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
@media (max-width: 640px) {
  .key-events-list {
    grid-template-columns: 1fr;
  }
  .mh-desc {
    display: none;
  }
}

/* ── Button ── */
.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--gold), #9a6e20);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .82; text-decoration: none; }

/* ── Archive search ── */
.archive-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.archive-search-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.archive-search-input::placeholder { color: var(--muted); }
.archive-search-input:focus { border-color: rgba(214,168,79,.4); }
.archive-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Portal: archive card grid ── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.archive-card {
  display: block;
  padding: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.archive-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(214,168,79,.3);
  text-decoration: none;
}
.archive-card-date {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--gold);
  margin-bottom: 6px;
}
.archive-card-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0;
}
.archive-card-sub {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* ── Portal: live market news ── */
.fx-news-panel {
  border-color: rgba(56,189,248,.22);
  background: linear-gradient(180deg, rgba(10,15,28,.94), rgba(7,12,22,.94));
}
.fx-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.fx-news-source-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.18);
  background: rgba(56,189,248,.08);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}
.fx-news-translate-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.07);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}
.fx-news-item a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(21,31,50,.68);
  border: 1px solid rgba(255,255,255,.05);
  transition: border-color .16s, background .16s, transform .16s;
}
.fx-news-item a::after {
  content: "›";
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}
.fx-news-item a:hover {
  background: rgba(21,31,50,.92);
  border-color: rgba(56,189,248,.22);
  text-decoration: none;
  transform: translateY(-1px);
}
.fx-news-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}
.fx-news-item strong {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.38;
}
.fx-news-empty {
  color: var(--muted);
  padding: 16px;
  border-radius: 12px;
  background: rgba(21,31,50,.48);
  border: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}
.fx-news-more {
  display: inline-flex;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.fx-news-more:hover { text-decoration: underline; }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255,255,255,.04);
  background: rgba(3,5,10,.99);
  padding: 22px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
}
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Legal pages ── */
.legal-body {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.9;
}
.legal-body h3 {
  color: var(--text);
  font-size: 15px;
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin-bottom: 4px; }

/* ── Coming Soon badge ── */
.badge-soon {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  background: rgba(148,163,184,.1);
  color: var(--muted);
  border: 1px solid var(--line);
  vertical-align: middle;
}

/* ── Coming Soon placeholder block ── */
.coming-soon-block {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}
.coming-soon-icon { font-size: 38px; margin-bottom: 12px; }
.coming-soon-block p { margin: 4px 0; }

/* ── 4H day-trading suitability ranking ── */
.daytrade-panel { overflow: hidden; }
.daytrade-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.daytrade-table-wrap { overflow-x: auto; }
.daytrade-table { min-width: 720px; }
.daytrade-table th, .daytrade-table td { white-space: nowrap; }
.daytrade-rank { color: var(--blue); font-weight: 800; text-align: center; }
.daytrade-verdict {
  display: inline-block;
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.rank-best { color: #0f766e; background: #ccfbf1; }
.rank-good { color: #1d4ed8; background: #dbeafe; }
.rank-watch { color: #a16207; background: #fef3c7; }
.rank-skip { color: #64748b; background: #f1f5f9; }
.rank-out { color: #991b1b; background: #fee2e2; }
.daytrade-note, .daytrade-empty { color: var(--muted); font-size: 11px; }
.daytrade-note { margin: 12px 0 0; line-height: 1.65; }
.daytrade-empty { padding: 28px !important; text-align: center; }

/* ── Sidebar archive — hidden on mobile ── */
.sidebar-archive { }

/* ── Twemoji emoji image size fix ── */
img.emoji {
  height: 1em !important;
  width: 1em !important;
  display: inline !important;
  vertical-align: -0.1em;
  margin: 0 0.05em 0 0.1em;
}

/* ── Mobile-only portal layout ── */
.mobile-header,
.mobile-hero,
.mobile-quick-grid,
.mobile-latest-card,
.mobile-report-hero,
.mobile-report-jump-grid,
.mobile-bottom-nav {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.2);
    padding: 16px;
  }
  .brand { margin-bottom: 12px; }
  .logo { width: 64px; height: 64px; }
  .side-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .side-nav a { white-space: nowrap; padding: 8px 12px; }
  .nav-section { display: none; }
  .sidebar-archive { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .report-feature-header { flex-direction: column; }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 34px 28px;
    gap: 22px;
  }
  .hero .sub { font-size: 17px; }
  .date-card { align-self: stretch; min-width: 0; }
  .col2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body.home-page,
  body.report-page {
    background: #070b12;
    padding-bottom: 72px;
  }

  .home-page .mobile-header,
  .report-page .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    padding: 12px 16px;
    background: rgba(3,5,10,.98);
    border-bottom: 1px solid rgba(255,255,255,.05);
  }

  .home-page .mobile-brand,
  .report-page .mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
  }
  .home-page .mobile-brand:hover,
  .report-page .mobile-brand:hover { text-decoration: none; }
  .home-page .mobile-brand img,
  .report-page .mobile-brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(56,189,248,.28);
    background: #071827;
  }
  .home-page .mobile-brand span,
  .report-page .mobile-brand span { display: grid; line-height: 1.25; }
  .home-page .mobile-brand strong,
  .report-page .mobile-brand strong {
    font-size: 20px;
    letter-spacing: .12em;
  }
  .home-page .mobile-brand em,
  .report-page .mobile-brand em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
  }

  .home-page .mobile-menu-button,
  .report-page .mobile-menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(56,189,248,.25);
    border-radius: 12px;
    background: rgba(16,24,39,.84);
    text-decoration: none;
  }
  .home-page .mobile-menu-button span,
  .report-page .mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
  }

  .home-page .app {
    display: block;
    min-height: auto;
  }
  .home-page .sidebar,
  .report-page .sidebar { display: none; }
  .home-page .main {
    padding: 0 16px 24px;
  }
  .home-page .main > .hero,
  .home-page .desktop-latest-section,
  .home-page .desktop-report-feature {
    display: none;
  }

  .report-page .app {
    display: block;
    min-height: auto;
  }
  .report-page .main {
    padding: 0 16px 24px;
  }
  .report-page .main > .hero {
    display: none;
  }

  .home-page .mobile-hero {
    display: block;
    margin: 14px 16px 12px;
    min-height: 148px;
    padding: 20px 20px 18px;
    border: 1px solid rgba(98,139,190,.38);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(5,12,24,.92) 0%, rgba(5,12,24,.74) 62%, rgba(5,12,24,.34) 100%),
      url("assets/hero-wave.png") center bottom / 140% auto no-repeat,
      linear-gradient(150deg, rgba(8,16,31,.98), rgba(3,8,16,.99));
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  }
  .home-page .mobile-hero .eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .home-page .mobile-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: 0;
  }
  .home-page .mobile-hero p {
    margin: 0;
    color: #b5c4d8;
    font-size: 13px;
    line-height: 1.45;
  }
  .home-page .mobile-update {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(56,189,248,.08);
    border: 1px solid rgba(56,189,248,.18);
    color: var(--muted);
    font-size: 11px;
  }

  .report-page .mobile-report-hero {
    display: block;
    margin: 14px 16px 12px;
    min-height: 126px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(98,139,190,.36);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(5,12,24,.94) 0%, rgba(5,12,24,.76) 66%, rgba(5,12,24,.38) 100%),
      url("assets/hero-wave.png") center bottom / 145% auto no-repeat,
      linear-gradient(150deg, rgba(8,16,31,.98), rgba(3,8,16,.99));
    box-shadow: 0 18px 44px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.05);
  }
  .report-page .mobile-report-hero .eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .report-page .mobile-report-hero h1 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: 0;
  }
  .report-page .mobile-report-hero p {
    margin: 0;
    color: #b5c4d8;
    font-size: 13px;
    line-height: 1.45;
  }

  .home-page .mobile-quick-grid,
  .report-page .mobile-report-jump-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 16px 12px;
  }
  .home-page .mobile-quick-grid a,
  .report-page .mobile-report-jump-grid a {
    min-height: 62px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(16,24,39,.92);
    border: 1px solid rgba(255,255,255,.07);
    color: var(--text);
    text-decoration: none;
    display: grid;
    align-content: center;
    gap: 2px;
  }
  .home-page .mobile-quick-grid a:hover,
  .report-page .mobile-report-jump-grid a:hover { text-decoration: none; }
  .home-page .mobile-quick-grid span,
  .report-page .mobile-report-jump-grid span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
  }
  .home-page .mobile-quick-grid strong,
  .report-page .mobile-report-jump-grid strong {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .home-page .mobile-latest-card {
    display: block;
    margin: 0 16px 18px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16,24,39,.96), rgba(10,15,28,.96));
    border: 1px solid rgba(214,168,79,.28);
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
  }
  .home-page .mobile-latest-card .eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .home-page .mobile-latest-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.36;
  }
  .home-page .mobile-latest-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
  .home-page .mobile-latest-points {
    display: grid;
    gap: 10px;
    margin: 12px 0 14px;
  }
  .home-page .mobile-latest-points div {
    padding: 12px;
    border-radius: 13px;
    background: rgba(10,15,28,.84);
    border: 1px solid rgba(214,168,79,.18);
  }
  .home-page .mobile-latest-points span {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  .home-page .mobile-latest-points strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
  }
  .home-page .mobile-latest-points p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.55;
  }
  .home-page .mobile-latest-card .btn-primary {
    width: 100%;
    padding: 11px 16px;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
  }

  .summary-grid  { grid-template-columns: 1fr; }
  .today-priority-grid { grid-template-columns: 1fr; }
  .archive-grid  { grid-template-columns: 1fr; }
  .hub-section   { margin: 20px 0 10px; }
  .panel,
  .report-feature {
    border-radius: 16px;
    padding: 16px;
    overflow-x: auto;
  }
  .content-grid { gap: 14px; }
  .card { padding: 16px; border-radius: 16px; }
  .card h3 { font-size: 17px; line-height: 1.35; }
  .fx-news-item a {
    grid-template-columns: 64px minmax(0, 1fr) 16px;
    gap: 4px 10px;
    min-height: 0;
    padding: 12px;
  }
  .fx-news-item strong {
    font-size: 13px;
  }
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .report-body {
    font-size: 13.5px;
    line-height: 1.78;
  }
  .fx-table {
    min-width: 540px;
  }
  .coming-soon-block {
    padding: 22px 14px;
  }
  .footer {
    padding: 18px 16px 88px;
  }

  .home-page .mobile-bottom-nav,
  .report-page .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(5,11,20,.98);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -12px 30px rgba(0,0,0,.32);
  }
  .home-page .mobile-bottom-nav a,
  .report-page .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }
  .home-page .mobile-bottom-nav a.active,
  .report-page .mobile-bottom-nav a.active {
    color: var(--gold);
  }
}
