:root {
  --bg: #f6f4ee;
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --ink: #1d252b;
  --muted: #66727a;
  --line: #ded8ca;
  --steel: #2c6f73;
  --cyan: #1687a7;
  --amber: #b97817;
  --red: #b3463c;
  --green: #2f7a4f;
  --shadow: 0 14px 40px rgba(34, 39, 42, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.brand-left,
.brand-center {
  min-width: 0;
}

.brand-center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 24px;
}

.company-link {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.company-link:hover {
  color: var(--steel);
  text-decoration: underline;
}

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

.update-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff2da;
  border-bottom: 1px solid #e8c985;
  color: #5c3a08;
  font-size: 14px;
}

.update-banner[hidden] {
  display: none;
}

.update-banner button {
  min-height: 30px;
  border: 1px solid var(--amber);
  border-radius: 8px;
  background: var(--amber);
  color: white;
  cursor: pointer;
}

.freshness {
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  font-size: 12px;
}

.freshness strong {
  display: block;
  color: var(--amber);
}

.icon-button,
.input-row button {
  border: 1px solid var(--steel);
  background: var(--steel);
  color: white;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  min-height: 38px;
}

.icon-button.secondary {
  background: transparent;
  color: var(--steel);
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 18px;
}

.sidebar,
.right-rail {
  align-self: start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 102px);
  overflow: auto;
}

.sidebar {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.nav-group {
  margin-bottom: 14px;
}

.nav-group strong {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.nav-item {
  width: 100%;
  min-height: 36px;
  margin: 4px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-item.active,
.nav-item:hover {
  border-color: #aac8c4;
  background: #eaf3ef;
}

.content {
  min-width: 0;
}

.control-row,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.control-row {
  margin-bottom: 14px;
  position: sticky;
  top: 86px;
  z-index: 4;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(222, 216, 202, 0.92);
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(10px);
}

.control-row h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.control-row p,
.panel-head p,
.verdict-card p,
.indicator-card p,
.news-feed p {
  color: var(--muted);
  line-height: 1.55;
}

.range-status {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px solid #aac8c4;
  border-radius: 8px;
  background: #eaf3ef;
  color: var(--steel) !important;
  font-size: 13px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  min-width: 340px;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

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

.segmented button.active {
  background: var(--ink);
  color: white;
}

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

.verdict-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.verdict-card {
  padding: 16px;
  min-height: 154px;
}

.verdict-card span,
.indicator-card span {
  color: var(--muted);
  font-size: 12px;
}

.verdict-card strong {
  display: block;
  margin: 8px 0;
  font-size: 19px;
}

.verdict-card.accent {
  border-top: 4px solid var(--steel);
}

.verdict-card.warning {
  border-top: 4px solid var(--amber);
}

.panel {
  padding: 16px;
  margin-bottom: 14px;
}

.jump-section {
  scroll-margin-top: 172px;
}

.section-focus {
  outline: 3px solid rgba(44, 111, 115, 0.24);
  box-shadow: 0 0 0 6px rgba(44, 111, 115, 0.08), var(--shadow);
  transition: outline-color 180ms ease, box-shadow 180ms ease;
}

.panel.compact {
  margin-bottom: 12px;
}

.panel h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f1ed;
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.amber {
  background: #fff2da;
  color: var(--amber);
}

.status-pill.red {
  background: #fae7e3;
  color: var(--red);
}

.status-pill.cyan {
  background: #e5f5f8;
  color: var(--cyan);
}

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

.macro-compass-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-top: 12px;
}

.compass-stage {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(44, 111, 115, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(44, 111, 115, 0.06) 1px, transparent 1px),
    #fffdf8;
  background-size: 28px 28px;
  overflow: hidden;
}

.compass-stage canvas {
  display: block;
  width: 100%;
  height: 360px;
}

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

.gauge-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.gauge-card strong {
  display: block;
  margin-bottom: 4px;
}

.gauge-card p {
  margin-bottom: 2px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.gauge-card details {
  grid-column: 1 / -1;
}

.gauge-card summary {
  cursor: pointer;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.gauge-ring {
  --score: 50;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, white 0 56%, transparent 57%),
    conic-gradient(var(--steel) calc(var(--score) * 1%), #efe9dc 0);
}

.gauge-ring span {
  font-weight: 900;
  color: var(--ink);
}

.expansion-map {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.kondratiev-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
  margin-top: 12px;
}

.kondratiev-chart {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  overflow: hidden;
}

.kondratiev-chart canvas {
  display: block;
  width: 100%;
  height: 260px;
}

.kondratiev-notes {
  display: grid;
  gap: 8px;
}

.kondratiev-notes article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.kondratiev-notes strong {
  display: block;
  margin: 6px 0;
}

.kondratiev-notes p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.expansion-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(180px, 0.9fr) minmax(120px, 0.5fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.expansion-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.expansion-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ratio-bar {
  position: relative;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #f4f1e9;
}

.ratio-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c6f73, #b97817);
}

.ratio-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

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

.reference-card,
.global-card {
  padding: 13px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}

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

.reference-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.reference-card dl div {
  padding: 8px;
  border-radius: 8px;
  background: #f4f1e9;
}

.reference-card dt {
  color: var(--muted);
  font-size: 12px;
}

.reference-card dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.reference-card p,
.global-card p,
.integration-card p,
.age-row p,
.data-note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.distribution {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 30px;
  margin: 10px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f1e9;
}

.distribution .zone {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #455057;
}

.distribution .low {
  background: #fae7e3;
}

.distribution .normal {
  background: #e8f1ed;
}

.distribution .high {
  background: #fff2da;
}

.distribution i {
  position: absolute;
  top: 3px;
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: var(--ink);
  transform: translateX(-2px);
  box-shadow: 0 0 0 3px rgba(29, 37, 43, 0.1);
}

.line-chart {
  display: block;
  width: 100%;
  height: 130px;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.demography-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.age-grid {
  display: grid;
  gap: 8px;
}

.age-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.age-value {
  text-align: right;
}

.age-value span {
  display: block;
  font-weight: 800;
}

.age-value em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.birth-death-grid {
  min-width: 0;
}

.mini-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  background: #edf4f1;
  color: var(--steel);
  font-weight: 800;
}

.data-note {
  margin-top: 10px;
  font-size: 12px;
}

.indicator-card {
  min-height: 146px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 8px;
}

.range-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f1e9;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.indicator-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
}

.indicator-value strong {
  font-size: 22px;
}

.trend {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.trend.down {
  color: var(--red);
}

.spark {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 3px;
  height: 34px;
  margin-top: 10px;
}

.spark i {
  display: block;
  min-height: 6px;
  background: #8eb9b5;
  border-radius: 3px 3px 0 0;
}

.mini-line {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--steel);
  font-weight: 800;
}

.rank-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.cycle-cell {
  min-height: 155px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cycle-cell strong {
  display: block;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  margin: 0 6px 6px 0;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f0eee7;
  color: #384047;
  font-size: 12px;
}

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

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

.integration-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.install-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.install-card strong {
  display: block;
  margin-bottom: 8px;
}

.install-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.global-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.global-trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trend-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.trend-card p {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.gold-reserve-panel {
  margin-top: 12px;
}

.gold-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.gold-card p {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.gold-params {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.gold-params div {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.gold-params dt {
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.gold-params dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

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

.signal-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.signal-card.hot {
  border-top: 4px solid var(--red);
}

.signal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.signal-head time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.signal-head strong {
  display: block;
  margin-bottom: 4px;
}

.signal-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.money-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.money-flow span {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 8px;
  background: #edf4f1;
  color: #27484a;
  font-size: 12px;
  line-height: 1.4;
}

.signal-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.signal-detail div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.signal-detail dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.signal-detail dd {
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}

.source-card {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.source-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.right-rail {
  min-width: 0;
}

.news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item strong {
  display: block;
  margin-bottom: 5px;
}

.news-item time {
  color: var(--muted);
  font-size: 12px;
}

.decoded-news {
  display: grid;
  gap: 7px;
}

.decode-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.decode-list div {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.decode-list dt {
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
}

.decode-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.chat-log,
.comments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  margin: 10px 0;
}

.bubble,
.comment {
  padding: 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  line-height: 1.55;
  font-size: 14px;
}

.bubble.user {
  background: #edf4f1;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
}

.input-row.stacked {
  grid-template-columns: 1fr;
}

.input-row input,
.input-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 10px;
  outline: 0;
}

.input-row textarea {
  min-height: 78px;
  resize: vertical;
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .indicator-grid,
  .source-grid,
  .integration-grid,
  .install-grid,
  .signal-grid,
  .global-trend-grid,
  .global-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .macro-compass-layout {
    grid-template-columns: 1fr;
  }

  .kondratiev-layout {
    grid-template-columns: 1fr;
  }

  .demography-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar,
  .control-row,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .brand-center {
    order: -1;
  }

  .company-link {
    text-align: center;
  }

  .control-row {
    top: 168px;
  }

  .jump-section {
    scroll-margin-top: 250px;
  }

  .topbar-actions,
  .segmented {
    width: 100%;
  }

  .topbar-actions {
    justify-content: center;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sidebar,
  .right-rail {
    position: static;
    max-height: none;
  }

  .verdict-grid,
  .two-col,
  .cycle-matrix,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .indicator-grid,
  .source-grid,
  .reference-grid,
  .integration-grid,
  .install-grid,
  .signal-grid,
  .gauge-grid,
  .global-trend-grid,
  .global-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .control-row {
    top: 210px;
  }

  .jump-section {
    scroll-margin-top: 292px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .freshness {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .indicator-grid,
  .source-grid,
  .reference-grid,
  .integration-grid,
  .install-grid,
  .signal-grid,
  .gauge-grid,
  .global-trend-grid,
  .global-grid {
    grid-template-columns: 1fr;
  }

  .macro-compass-layout {
    grid-template-columns: 1fr;
  }

  .kondratiev-layout {
    grid-template-columns: 1fr;
  }

  .compass-stage {
    min-height: 300px;
  }

  .compass-stage canvas {
    height: 300px;
  }

  .gold-params {
    grid-template-columns: 1fr;
  }

  .kondratiev-chart {
    min-height: 240px;
  }

  .kondratiev-chart canvas {
    height: 240px;
  }

  .age-row,
  .reference-card dl,
  .signal-detail,
  .table-row {
    grid-template-columns: 1fr;
  }

  .age-value {
    text-align: left;
  }
}
