@font-face {
  font-family: "FinWiz Display";
  src: url("fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FinWiz Display";
  src: url("fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060b12;
  --surface: #0b1520;
  --surface-strong: #0d1b28;
  --surface-soft: #111d29;
  --line: #243747;
  --line-strong: #365165;
  --text: #f2f7fa;
  --muted: #9fb2c1;
  --cyan: #2bc9d1;
  --green: #39ca78;
  --amber: #efbd4b;
  --coral: #f06b66;
  --blue: #59a9f7;
  --violet: #ad7cf5;
  --font: "FinWiz Display", "Atkinson Hyperlegible", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body {
  background:
    linear-gradient(105deg, rgba(43, 201, 209, 0.05), transparent 36%),
    linear-gradient(255deg, rgba(240, 107, 102, 0.035), transparent 34%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  outline-color: var(--cyan);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.macro-pulse-app {
  width: 100%;
  max-width: 2200px;
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 14px 18px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
}

.macro-pulse-app > *,
.pulse-content > *,
.control-bar > *,
.lower-grid > * {
  min-width: 0;
}

.control-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 18, 0.94);
}

.brand-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 10px;
  border-left: 3px solid var(--cyan);
}

.control-group,
.date-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.segmented-control button {
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

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

.segmented-control button:hover,
.segmented-control button.is-active {
  background: #12303a;
  color: #d9fbfd;
}

.date-control input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 0 8px;
  color-scheme: dark;
}

.command-button,
.lang-button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.command-button-primary {
  border-color: #278b92;
  background: #10343a;
}

.lang-button {
  margin-left: auto;
  min-width: 42px;
  color: var(--cyan);
}

.masthead {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px;
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #0a1821, #101722 58%, #17161d);
}

.masthead-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.product-mark {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #287984;
  border-radius: 4px;
  padding: 5px 7px;
}

.masthead h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.masthead-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.health-badge {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.health-healthy {
  color: var(--green);
}

.health-degraded {
  color: var(--amber);
}

.health-stale,
.health-unavailable {
  color: var(--coral);
}

.status-message {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(43, 201, 209, 0.8);
}

.pulse-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  gap: 8px;
}

.hero-band {
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(440px, 1.65fr) minmax(210px, 0.7fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.regime-block,
.story-block,
.health-block {
  min-width: 0;
  padding: 16px 18px;
}

.regime-block,
.story-block {
  border-right: 1px solid var(--line);
}

.regime-block {
  border-left: 4px solid var(--cyan);
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.regime-name {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
}

.confidence-line {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confidence-line strong {
  color: var(--cyan);
  font-size: 22px;
}

.shift-line {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.headline {
  max-width: 850px;
  margin: 4px 0 15px;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 800;
}

.story-factors {
  display: flex;
  gap: 24px;
}

.story-factors p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.story-factors strong {
  color: var(--text);
  font-size: 14px;
  text-transform: none;
}

.health-block strong {
  display: block;
  color: var(--text);
  font-size: 21px;
}

.health-block > p:not(.section-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.snapshot-label {
  color: var(--amber) !important;
  font-weight: 800;
}

.indicator-section {
  min-height: 0;
}

.section-heading-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 5px 5px;
}

.section-heading-row h2 {
  margin: 0;
  color: #bed0dd;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading-row span {
  color: var(--muted);
  font-size: 11px;
}

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

.indicator-card {
  position: relative;
  min-width: 0;
  min-height: 164px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal-color, var(--cyan));
  border-radius: 6px;
  background: var(--surface-strong);
  overflow: hidden;
}

.indicator-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--signal-color, var(--cyan));
  opacity: 0.55;
}

.indicator-label {
  margin: 0;
  color: #cbd9e2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.indicator-value {
  margin: 12px 0 2px;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.indicator-value-state {
  font-size: 27px;
}

.indicator-change {
  color: var(--signal-color, var(--cyan));
  font-size: 15px;
  font-weight: 900;
}

.indicator-state {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.indicator-impact {
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.tone-supportive {
  --signal-color: var(--green);
}

.tone-counterforce {
  --signal-color: var(--coral);
}

.tone-mixed {
  --signal-color: var(--amber);
}

.tone-unavailable {
  --signal-color: #6f8090;
}

.lower-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 1fr;
  gap: 7px;
}

.market-panel,
.change-panel,
.watch-panel {
  min-width: 0;
  min-height: 0;
  border-top: 2px solid var(--panel-accent, var(--blue));
  background: var(--surface);
  overflow: hidden;
}

.market-panel {
  --panel-accent: var(--blue);
}

.change-panel {
  --panel-accent: var(--violet);
}

.watch-panel {
  --panel-accent: var(--amber);
}

.market-list,
.change-list {
  display: grid;
}

.market-row,
.change-row {
  min-height: 49px;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-top: 1px solid var(--line);
}

.market-row {
  grid-template-columns: minmax(100px, 1fr) auto auto;
}

.market-name,
.change-name {
  min-width: 0;
  color: #dce7ed;
  font-size: 14px;
  font-weight: 800;
}

.market-meta {
  color: var(--muted);
  font-size: 11px;
}

.market-change,
.change-delta {
  min-width: 72px;
  text-align: right;
  font-size: 19px;
  font-weight: 900;
}

.value-up,
.impact-supports,
.impact-supportive {
  color: var(--green);
}

.value-down,
.impact-opposes,
.impact-counterforce {
  color: var(--coral);
}

.value-flat,
.impact-neutral,
.impact-mixed {
  color: var(--muted);
}

.change-row {
  grid-template-columns: minmax(90px, 1fr) auto;
}

.change-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.watch-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: watch;
}

.watch-list li {
  counter-increment: watch;
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: #dce7ed;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.watch-list li::before {
  content: counter(watch);
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #826b31;
  border-radius: 50%;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.empty-copy {
  margin: 0;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
}

.method-panel {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.method-panel summary {
  cursor: pointer;
  padding: 10px 6px;
  color: #bdd1de;
  font-size: 13px;
  font-weight: 800;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  padding: 4px 6px 16px;
}

.method-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.source-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 12px;
}

.source-list dt {
  color: #d9e5ec;
  font-weight: 800;
}

.source-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.series-audit {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 4px;
}

.series-audit h3 {
  margin: 0 0 7px;
  color: #d9e5ec;
  font-size: 13px;
}

.series-source-list {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.series-source-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.15fr) repeat(5, minmax(90px, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(54, 81, 101, 0.55);
  font-size: 12px;
}

.series-source-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.series-source-header {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.series-health {
  font-weight: 800;
}

.series-health-healthy {
  color: var(--green);
}

.series-health-degraded {
  color: var(--amber);
}

.series-health-stale,
.series-health-unavailable {
  color: var(--coral);
}

.unavailable-panel {
  min-height: 300px;
  display: grid;
  place-content: center;
  text-align: center;
  border-top: 3px solid var(--coral);
  background: var(--surface);
}

.unavailable-panel h2 {
  margin: 4px 0 8px;
}

.unavailable-panel p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

body.capture {
  overflow: hidden;
}

body.capture .macro-pulse-app {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  max-width: none;
  padding: 10px 12px;
}

body.capture .control-bar,
body.mode-broadcast .control-bar,
body.mode-news .control-bar,
body.capture .method-panel,
body.mode-broadcast .method-panel,
body.mode-news .method-panel {
  display: none;
}

body.mode-broadcast .macro-pulse-app,
body.mode-news .macro-pulse-app {
  height: 100vh;
  min-height: 0;
  max-width: none;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

body.mode-broadcast .pulse-content,
body.mode-news .pulse-content {
  height: 100%;
  grid-template-rows: minmax(0, 28fr) minmax(0, 25fr) minmax(0, 47fr);
}

body.mode-broadcast .indicator-section,
body.mode-news .indicator-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

body.mode-broadcast .indicator-grid,
body.mode-news .indicator-grid,
body.mode-broadcast .indicator-card,
body.mode-news .indicator-card {
  min-height: 0;
  height: 100%;
}

body.mode-broadcast .lower-grid,
body.mode-news .lower-grid,
body.mode-broadcast .market-panel,
body.mode-broadcast .change-panel,
body.mode-broadcast .watch-panel,
body.mode-news .market-panel,
body.mode-news .change-panel,
body.mode-news .watch-panel {
  height: 100%;
}

body.mode-news .hero-band {
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.8fr) minmax(220px, 0.62fr);
  border-top: 3px solid var(--cyan);
}

body.mode-news .regime-name {
  font-size: 58px;
}

body.mode-news .headline {
  font-size: 30px;
}

body.mode-news .change-panel {
  display: none;
}

body.mode-news .lower-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

@media (min-width: 1600px) and (min-height: 900px) {
  body.mode-broadcast .hero-band,
  body.mode-news .hero-band {
    grid-template-columns: minmax(370px, 0.72fr) minmax(700px, 2fr) minmax(310px, 0.65fr);
  }

  body.mode-broadcast .regime-name,
  body.mode-news .regime-name {
    font-size: 64px;
  }

  body.mode-broadcast .headline,
  body.mode-news .headline {
    font-size: 30px;
  }

  body.mode-broadcast .confidence-line,
  body.mode-broadcast .confidence-line strong,
  body.mode-news .confidence-line,
  body.mode-news .confidence-line strong {
    font-size: 24px;
  }

  body.mode-broadcast .indicator-label,
  body.mode-news .indicator-label {
    font-size: 20px;
  }

  body.mode-broadcast .indicator-value,
  body.mode-news .indicator-value {
    font-size: 34px;
  }

  body.mode-broadcast .indicator-value-state,
  body.mode-news .indicator-value-state {
    font-size: 29px;
  }

  body.mode-broadcast .indicator-change,
  body.mode-broadcast .indicator-state,
  body.mode-broadcast .indicator-impact,
  body.mode-news .indicator-change,
  body.mode-news .indicator-state,
  body.mode-news .indicator-impact {
    font-size: 19px;
  }

  body.mode-broadcast .market-name,
  body.mode-broadcast .change-name,
  body.mode-broadcast .watch-list li,
  body.mode-news .market-name,
  body.mode-news .change-name,
  body.mode-news .watch-list li {
    font-size: 19px;
  }

  body.mode-broadcast .market-change,
  body.mode-broadcast .change-delta,
  body.mode-news .market-change,
  body.mode-news .change-delta {
    font-size: 24px;
  }

  body.mode-broadcast .market-meta,
  body.mode-broadcast .change-meta,
  body.mode-news .market-meta,
  body.mode-news .change-meta {
    font-size: 15px;
  }

  body.mode-broadcast .market-row,
  body.mode-broadcast .change-row,
  body.mode-news .market-row,
  body.mode-news .change-row {
    min-height: 65px;
  }

  body.mode-broadcast .watch-list li,
  body.mode-news .watch-list li {
    min-height: 78px;
  }
}

@media (max-width: 1100px) {
  .control-bar {
    flex-wrap: wrap;
  }

  .hero-band {
    grid-template-columns: 0.9fr 1.45fr;
  }

  .health-block {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

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

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

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

@media (max-width: 700px) {
  .macro-pulse-app {
    width: 100%;
    max-width: 100%;
    padding: 6px;
    overflow-x: clip;
  }

  .control-bar {
    width: 100%;
    gap: 6px;
  }

  .control-group,
  .date-control {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .masthead-title {
    align-items: flex-start;
    width: 100%;
  }

  .masthead h1 {
    font-size: 21px;
  }

  .masthead-meta {
    width: 100%;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 8px;
    font-size: 11px;
  }

  .segmented-control {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .segmented-control button {
    min-width: 0;
    padding-inline: 8px;
  }

  .date-control input {
    min-width: 0;
    max-width: 100%;
  }

  .hero-band {
    display: block;
  }

  .regime-block,
  .story-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .regime-name {
    font-size: 39px;
  }

  .headline {
    font-size: 21px;
  }

  .story-factors {
    display: grid;
    gap: 7px;
  }

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

  .indicator-card {
    min-height: 150px;
  }

  .series-source-header {
    display: none;
  }

  .series-source-row {
    grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.2fr);
    gap: 4px 8px;
    padding: 8px 4px;
  }

  .series-source-row > span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }
}

@media (max-height: 760px) and (min-width: 900px) {
  body.mode-broadcast .macro-pulse-app,
  body.mode-news .macro-pulse-app {
    padding: 5px 8px;
    gap: 4px;
  }

  body.mode-broadcast .masthead,
  body.mode-news .masthead {
    min-height: 48px;
    padding: 5px 9px;
  }

  body.mode-broadcast .masthead h1,
  body.mode-news .masthead h1 {
    font-size: 21px;
  }

  body.mode-broadcast .pulse-content,
  body.mode-news .pulse-content {
    grid-template-rows: 124px 142px minmax(260px, 1fr);
    gap: 4px;
  }

  body.mode-news .pulse-content {
    grid-template-rows: 150px 142px minmax(250px, 1fr);
  }

  body.mode-broadcast .hero-band,
  body.mode-news .hero-band {
    min-height: 0;
  }

  body.mode-broadcast .regime-block,
  body.mode-broadcast .story-block,
  body.mode-broadcast .health-block,
  body.mode-news .regime-block,
  body.mode-news .story-block,
  body.mode-news .health-block {
    padding: 9px 12px;
  }

  body.mode-broadcast .regime-name,
  body.mode-news .regime-name {
    font-size: 36px;
  }

  body.mode-broadcast .confidence-line,
  body.mode-news .confidence-line {
    margin-top: 5px;
  }

  body.mode-broadcast .confidence-line strong,
  body.mode-news .confidence-line strong {
    font-size: 18px;
  }

  body.mode-broadcast .headline,
  body.mode-news .headline {
    margin: 2px 0 8px;
    font-size: 20px;
  }

  body.mode-news .health-block {
    padding: 8px 10px;
  }

  body.mode-news .health-block strong {
    font-size: 19px;
    line-height: 1.05;
  }

  body.mode-news .health-block > p:not(.section-kicker) {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.25;
  }

  body.mode-broadcast .indicator-card,
  body.mode-news .indicator-card {
    min-height: 112px;
    padding: 7px 9px;
  }

  body.mode-broadcast .indicator-value,
  body.mode-news .indicator-value {
    margin-top: 6px;
    font-size: 24px;
  }

  body.mode-broadcast .indicator-value-state,
  body.mode-news .indicator-value-state {
    font-size: 22px;
  }

  body.mode-broadcast .indicator-state,
  body.mode-news .indicator-state {
    margin-top: 5px;
  }

  body.mode-broadcast .indicator-impact,
  body.mode-news .indicator-impact {
    display: none;
  }

  .market-row,
  .change-row {
    min-height: 41px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .watch-list li {
    min-height: 48px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* Makropuls presentation system */
body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(89, 169, 247, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 169, 247, 0.022) 1px, transparent 1px),
    linear-gradient(105deg, rgba(43, 201, 209, 0.055), transparent 36%),
    linear-gradient(255deg, rgba(240, 107, 102, 0.035), transparent 34%),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0, rgba(43, 201, 209, 0.022) 48%, transparent 51%);
  background-size: 100% 6px;
  opacity: 0.55;
}

.macro-pulse-app {
  height: auto;
  min-height: 100dvh;
  grid-template-rows: auto auto auto;
  align-content: start;
  padding: 8px 12px 10px;
  gap: 7px;
  overflow: visible;
}

.control-bar {
  position: relative;
  z-index: 20;
  min-height: 42px;
  border: 1px solid rgba(54, 81, 101, 0.75);
  border-top-color: rgba(43, 201, 209, 0.75);
  background: rgba(6, 11, 18, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.control-drawer-trigger {
  display: none;
}

.masthead {
  min-height: 58px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  background:
    linear-gradient(90deg, rgba(43, 201, 209, 0.08), transparent 34%),
    linear-gradient(90deg, #091620, #0e1722 66%, #151720);
}

.masthead h1 {
  font-size: clamp(24px, 1.55vw, 32px);
}

.product-mark,
.health-badge {
  letter-spacing: 0;
}

.pulse-content {
  height: auto;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 7px;
  overflow: visible;
}

.hero-band {
  min-height: 0;
  grid-template-columns: minmax(245px, 0.72fr) minmax(560px, 1.72fr) minmax(220px, 0.56fr);
  border: 1px solid var(--line);
  border-left: 0;
  background:
    linear-gradient(115deg, rgba(43, 201, 209, 0.05), transparent 34%),
    rgba(11, 21, 32, 0.96);
  overflow: hidden;
}

.regime-block,
.story-block,
.health-block {
  padding: 14px 17px;
}

.regime-block {
  display: grid;
  align-content: center;
  border-left: 4px solid var(--cyan);
  background: linear-gradient(105deg, rgba(43, 201, 209, 0.07), transparent 76%);
}

.regime-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.regime-name {
  width: 100%;
  max-width: 100%;
  font-size: clamp(34px, 2.6vw, 56px);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.confidence-meter {
  --confidence: 0%;
  position: relative;
  flex: 0 0 auto;
  min-width: 94px;
  min-height: 52px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 10px 10px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 13, 21, 0.72);
  overflow: hidden;
}

.confidence-meter::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: var(--confidence);
  height: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(43, 201, 209, 0.68);
}

.confidence-value {
  color: var(--cyan);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.confidence-unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.confidence-caption {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-line {
  margin-top: 6px;
  font-size: 12px;
}

.story-block {
  display: grid;
  grid-template-columns: minmax(280px, 1.22fr) minmax(230px, 0.78fr);
  align-items: stretch;
  gap: 22px;
}

.story-copy {
  min-width: 0;
  display: grid;
  align-content: center;
}

.headline {
  max-width: 920px;
  margin: 4px 0 13px;
  font-size: clamp(22px, 1.55vw, 31px);
  line-height: 1.16;
}

.regime-spectrum {
  min-width: 0;
  align-self: center;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.regime-spectrum-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.regime-score-list {
  display: grid;
  gap: 5px;
}

.regime-score-row {
  display: grid;
  grid-template-columns: minmax(102px, 0.95fr) minmax(48px, 1.2fr) 30px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.regime-score-row.is-leading {
  color: var(--text);
}

.regime-score-label {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.regime-score-track {
  position: relative;
  height: 4px;
  background: rgba(54, 81, 101, 0.62);
}

.regime-score-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #6b8190;
}

.regime-score-row.is-leading .regime-score-fill {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(43, 201, 209, 0.65);
}

.regime-score-value {
  text-align: right;
  font-size: 11px;
}

.health-block {
  display: grid;
  align-content: center;
  background: rgba(7, 16, 25, 0.52);
}

.health-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.health-light {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6f8090;
}

.health-light-healthy {
  background: var(--green);
  box-shadow: 0 0 12px rgba(57, 202, 120, 0.66);
}

.health-light-degraded,
.health-light-stale {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(239, 189, 75, 0.55);
}

.health-light-unavailable {
  background: var(--coral);
}

.health-block strong {
  font-size: clamp(17px, 1.2vw, 22px);
}

.health-block > p:not(.section-kicker) {
  font-size: 12px;
}

.indicator-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.section-heading-row {
  min-height: 25px;
}

.indicator-grid {
  height: auto;
}

.indicator-card {
  min-height: 176px;
  height: auto;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(18px, auto) auto;
  align-content: start;
  padding: 10px 12px 9px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 60%),
    var(--surface-strong);
}

.indicator-card::after {
  display: none;
}

.indicator-value {
  margin: 7px 0 2px;
  font-size: clamp(25px, 1.75vw, 34px);
}

.indicator-value-state {
  font-size: clamp(21px, 1.5vw, 29px);
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.indicator-state {
  margin-top: 6px;
}

.indicator-impact {
  margin-bottom: 7px;
}

.indicator-footer {
  align-self: end;
  display: grid;
  grid-template-columns: auto minmax(45px, 1fr);
  align-items: center;
  gap: 9px;
}

.indicator-score {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-axis {
  position: relative;
  height: 3px;
  background:
    linear-gradient(90deg, var(--coral), #6f8090 50%, var(--green));
}

.signal-axis::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 1px;
  background: #d7e2e8;
  opacity: 0.45;
}

.signal-axis-marker {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--signal-color);
  box-shadow: 0 0 8px var(--signal-color);
  transform: translate(-50%, -50%);
}

.lower-grid {
  height: auto;
  grid-template-columns: 1.1fr 0.9fr 1fr;
}

.market-panel,
.change-panel,
.watch-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid rgba(36, 55, 71, 0.55);
}

.market-list,
.change-list,
.watch-list {
  min-height: 0;
}

.market-list {
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.change-list {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.watch-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.market-row,
.change-row,
.watch-list li {
  min-height: 0;
}

.market-row {
  grid-template-columns: minmax(92px, 1fr) minmax(72px, auto) auto;
}

.market-meta {
  color: #aec1ce;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.change-meta {
  font-variant-numeric: tabular-nums;
}

.method-panel {
  min-height: 34px;
  background: rgba(6, 11, 18, 0.86);
}

.method-panel[open] {
  position: fixed;
  z-index: 40;
  inset: 7vh 3vw;
  padding: 8px 14px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 11, 18, 0.985);
  overflow: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.62);
}

.method-panel[open] summary {
  position: sticky;
  z-index: 2;
  top: -8px;
  background: var(--bg);
}

body.mode-broadcast,
body.mode-news {
  overflow: hidden;
}

body.mode-broadcast .macro-pulse-app,
body.mode-news .macro-pulse-app {
  height: 100dvh;
  min-height: 620px;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 8px 10px 10px;
}

body.mode-broadcast .pulse-content,
body.mode-news .pulse-content {
  height: 100%;
  overflow: hidden;
}

body.mode-broadcast .indicator-grid,
body.mode-news .indicator-grid,
body.mode-broadcast .lower-grid,
body.mode-news .lower-grid {
  height: 100%;
}

body.mode-broadcast .indicator-card,
body.mode-news .indicator-card {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

body.mode-broadcast .control-bar,
body.mode-news .control-bar {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 50%;
  width: min(1160px, calc(100vw - 32px));
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  transition: transform 180ms ease, opacity 140ms ease;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.68);
}

body.mode-broadcast.controls-open .control-bar,
body.mode-news.controls-open .control-bar {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body.mode-broadcast .control-drawer-trigger,
body.mode-news .control-drawer-trigger {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 50%;
  width: 96px;
  height: 44px;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  transition: top 180ms ease;
}

body.mode-broadcast .control-drawer-trigger::before,
body.mode-news .control-drawer-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 13px;
  border-top: 3px solid var(--cyan);
  background: rgba(10, 24, 33, 0.96);
}

.control-drawer-chevron {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateX(-50%) rotate(45deg);
  transition: transform 180ms ease;
}

body.controls-open .control-drawer-chevron {
  top: 6px;
  transform: translateX(-50%) rotate(225deg);
}

body.mode-broadcast.controls-open .control-drawer-trigger,
body.mode-news.controls-open .control-drawer-trigger {
  top: 50px;
}

body.capture .control-bar,
body.capture .control-drawer-trigger {
  display: none;
}

body.mode-broadcast .masthead,
body.mode-news .masthead {
  min-height: 59px;
}

body.mode-broadcast .pulse-content {
  grid-template-rows: minmax(230px, 0.98fr) minmax(190px, 0.82fr) minmax(290px, 1.45fr);
}

body.mode-broadcast .hero-band {
  grid-template-columns: minmax(300px, 0.72fr) minmax(650px, 1.8fr) minmax(260px, 0.58fr);
  border-top: 2px solid var(--cyan);
}

body.mode-broadcast .regime-name {
  font-size: clamp(54px, 4.6vw, 88px);
}

body.mode-broadcast .confidence-value {
  font-size: clamp(30px, 2vw, 42px);
}

body.mode-broadcast .headline {
  font-size: clamp(28px, 2vw, 39px);
}

body.mode-broadcast .indicator-label {
  font-size: clamp(15px, 1.05vw, 21px);
}

body.mode-broadcast .indicator-value {
  font-size: clamp(31px, 2.1vw, 42px);
}

body.mode-broadcast .indicator-value-state {
  font-size: clamp(22px, 1.7vw, 35px);
}

body.mode-broadcast .indicator-change,
body.mode-broadcast .indicator-state,
body.mode-broadcast .indicator-impact {
  font-size: clamp(14px, 0.92vw, 18px);
}

body.mode-broadcast .market-name,
body.mode-broadcast .change-name,
body.mode-broadcast .watch-list li {
  font-size: clamp(16px, 1vw, 20px);
}

body.mode-broadcast .market-change,
body.mode-broadcast .change-delta {
  font-size: clamp(21px, 1.35vw, 27px);
}

body.mode-news .pulse-content {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: minmax(235px, 0.44fr) minmax(365px, 1fr);
}

body.mode-news .hero-band {
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 0.68fr) minmax(650px, 1.85fr) minmax(250px, 0.58fr);
  border-top: 3px solid var(--cyan);
}

body.mode-news .regime-name {
  font-size: clamp(49px, 3.8vw, 74px);
}

body.mode-news .headline {
  font-size: clamp(29px, 2.1vw, 40px);
}

body.mode-news .indicator-section {
  grid-column: 1;
  grid-row: 2;
}

body.mode-news .indicator-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

body.mode-news .lower-grid {
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: 0.92fr 1.08fr;
}

body.mode-news .change-panel {
  display: none;
}

body.mode-news .market-name,
body.mode-news .watch-list li {
  font-size: clamp(15px, 0.96vw, 19px);
}

body.mode-news .market-change {
  font-size: clamp(20px, 1.35vw, 27px);
}

.regime-lead {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: rgba(43, 201, 209, 0.07);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.regime-lead:empty {
  display: none;
}

.regime-lead-narrow {
  border-color: rgba(239, 189, 75, 0.48);
  color: var(--amber);
  background: rgba(239, 189, 75, 0.08);
}

.regime-lead-strong {
  color: var(--green);
  border-color: rgba(57, 202, 120, 0.4);
  background: rgba(57, 202, 120, 0.07);
}

.shift-line {
  color: #91a8b7;
}

.health-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(55, 83, 103, 0.55);
}

.health-metrics p {
  min-width: 0;
  margin: 0;
}

.health-metrics strong,
.health-metrics span {
  display: block;
}

.health-metrics strong {
  color: var(--text);
  font-size: clamp(16px, 1.08vw, 21px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.health-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.section-context {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.impact-legend {
  color: #adc0cc;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.indicator-score.impact-support {
  color: var(--green);
}

.indicator-score.impact-counterforce {
  color: var(--coral);
}

.indicator-score.impact-neutral {
  color: var(--muted);
}

.change-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.period-pulse {
  --change-share: 0%;
  position: relative;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px 15px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(43, 201, 209, 0.08), transparent 72%),
    rgba(8, 19, 29, 0.65);
  overflow: hidden;
}

.period-pulse::before,
.period-pulse::after {
  content: "";
  position: absolute;
  inset: auto 12px 8px;
  height: 3px;
}

.period-pulse::before {
  background: rgba(84, 111, 129, 0.45);
}

.period-pulse::after {
  right: auto;
  width: var(--change-share);
  max-width: calc(100% - 24px);
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(43, 201, 209, 0.5);
}

.period-pulse.is-stable::after {
  width: calc(100% - 24px);
  background: #6f8796;
  box-shadow: none;
}

.period-pulse strong {
  color: var(--text);
  font-size: 14px;
}

.period-pulse span {
  color: #a9bdca;
  font-size: 11px;
  line-height: 1.25;
}

.change-list .change-row {
  flex: 0 0 auto;
  min-height: 64px;
}

.change-delta {
  min-width: 88px;
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
}

.stable-signals {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid rgba(36, 55, 71, 0.55);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

body.mode-broadcast .regime-lead,
body.mode-news .regime-lead {
  font-size: clamp(11px, 0.74vw, 14px);
}

body.mode-broadcast .health-metrics strong,
body.mode-news .health-metrics strong {
  font-size: clamp(17px, 1.2vw, 23px);
}

@media (max-width: 1280px) and (min-width: 701px) {
  .hero-band {
    grid-template-columns: minmax(220px, 0.68fr) minmax(500px, 1.72fr) minmax(195px, 0.55fr);
  }

  .story-block {
    gap: 13px;
  }

  .regime-spectrum {
    padding-left: 13px;
  }

  .indicator-card {
    padding-inline: 9px;
  }

  .indicator-impact {
    font-size: 11px;
  }

  .impact-legend {
    display: none;
  }

  body.mode-news .hero-band {
    grid-template-columns: minmax(220px, 0.64fr) minmax(520px, 1.75fr) minmax(190px, 0.55fr);
  }
}

@media (max-width: 1500px) and (min-width: 1241px) {
  .health-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 820px) and (min-width: 900px) {
  .macro-pulse-app {
    min-height: 650px;
    padding-block: 5px;
    gap: 5px;
  }

  .control-bar {
    min-height: 38px;
    padding-block: 3px;
  }

  .masthead {
    min-height: 50px;
    padding-block: 6px;
  }

  body.mode-broadcast .pulse-content,
  body.mode-news .pulse-content {
    grid-template-rows: minmax(160px, 0.9fr) minmax(148px, 0.78fr) minmax(218px, 1.28fr) auto;
    gap: 5px;
  }

  .regime-block,
  .story-block,
  .health-block {
    padding-block: 10px;
  }

  .headline {
    margin-bottom: 8px;
  }

  body.mode-broadcast .shift-line,
  body.mode-news .shift-line {
    display: none;
  }

  .regime-lead {
    margin-top: 6px;
  }

  .indicator-card {
    padding-block: 7px;
  }

  .indicator-state {
    margin-top: 3px;
  }

  .indicator-impact {
    margin-bottom: 3px;
  }

  .period-pulse {
    min-height: 56px;
    padding-block: 7px 13px;
  }

  .change-list .change-row {
    min-height: 49px;
  }

  .stable-signals {
    padding-block: 5px;
    font-size: 9px;
  }

  body.mode-broadcast .pulse-content {
    grid-template-rows: minmax(215px, 0.9fr) minmax(150px, 0.68fr) minmax(225px, 1.18fr);
  }

  body.mode-news .pulse-content {
    grid-template-rows: minmax(215px, 0.48fr) minmax(320px, 1fr);
  }

  body.mode-broadcast .regime-name,
  body.mode-news .regime-name {
    font-size: clamp(40px, 3.4vw, 58px);
  }

  body.mode-broadcast .headline,
  body.mode-news .headline {
    font-size: clamp(22px, 1.7vw, 30px);
  }

  body.mode-broadcast .indicator-card,
  body.mode-news .indicator-card {
    min-height: 0;
    padding-block: 7px;
  }

  body.mode-broadcast .indicator-card {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }

  body.mode-broadcast .indicator-state {
    display: none;
  }

  body.mode-broadcast .indicator-value-state {
    font-size: 19px;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  body.mode-broadcast .indicator-impact,
  body.mode-news .indicator-impact {
    display: block;
  }
}

@media (max-width: 1240px) and (min-width: 701px) {
  body,
  body.mode-broadcast,
  body.mode-news {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .macro-pulse-app,
  body.mode-broadcast .macro-pulse-app,
  body.mode-news .macro-pulse-app {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto;
    align-content: start;
    overflow: visible;
  }

  .control-bar {
    flex-wrap: wrap;
    gap: 7px;
  }

  .control-bar > .control-group,
  .control-bar > .date-control,
  .control-bar > .command-button,
  .control-bar > .lang-button {
    flex-shrink: 0;
  }

  .control-label {
    display: none;
  }

  .brand-link {
    margin-right: auto;
  }

  .lang-button {
    margin-left: 0;
  }

  .pulse-content,
  body.mode-broadcast .pulse-content,
  body.mode-news .pulse-content {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    overflow: visible;
  }

  .hero-band,
  body.mode-broadcast .hero-band,
  body.mode-news .hero-band {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .regime-block,
  .story-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .regime-name,
  body.mode-broadcast .regime-name,
  body.mode-news .regime-name {
    font-size: clamp(40px, 5.8vw, 58px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .story-block {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  }

  .health-block {
    grid-column: 1;
    min-height: 128px;
    border-top: 0;
  }

  .indicator-section,
  body.mode-news .indicator-section {
    grid-column: 1;
    grid-row: auto;
  }

  .indicator-grid,
  body.mode-news .indicator-grid {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(158px, auto);
  }

  .indicator-card,
  body.mode-broadcast .indicator-card,
  body.mode-news .indicator-card {
    height: auto;
    min-height: 158px;
  }

  .indicator-impact,
  body.mode-broadcast .indicator-impact,
  body.mode-news .indicator-impact {
    display: block;
    min-height: 15px;
  }

  .lower-grid,
  body.mode-news .lower-grid {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    grid-template-columns: 1fr;
  }

  .market-list,
  .change-list,
  .watch-list {
    height: auto;
  }

  .market-row,
  .change-row {
    min-height: 52px;
  }

  .watch-list li {
    min-height: 62px;
  }

  body.mode-news .change-panel {
    display: none;
  }
}

@media (max-width: 899px) and (min-width: 701px) {
  body.mode-broadcast.controls-open .control-drawer-trigger,
  body.mode-news.controls-open .control-drawer-trigger {
    top: 95px;
  }
}

@media (max-height: 940px) and (min-width: 1101px) {
  .regime-block,
  .story-block,
  .health-block {
    padding-block: 12px;
  }

  .period-pulse {
    min-height: 58px;
    padding-block: 8px 13px;
  }

  .change-list .change-row {
    min-height: 52px;
  }

  .stable-signals {
    padding-block: 6px;
  }
}

@media (max-height: 780px) and (min-width: 1101px) {
  .regime-block,
  .story-block,
  .health-block {
    padding-block: 8px;
  }

  .indicator-card,
  body.mode-broadcast .indicator-card,
  body.mode-news .indicator-card {
    padding-block: 5px;
  }

  body.mode-broadcast .indicator-impact,
  body.mode-news .indicator-impact {
    display: none;
  }

  .health-metrics {
    margin-top: 8px;
    padding-top: 7px;
  }

  .period-pulse {
    min-height: 50px;
    padding-block: 6px 12px;
  }

  .change-list .change-row {
    min-height: 44px;
  }

  .stable-signals {
    padding-block: 4px;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .macro-pulse-app,
  body.mode-broadcast .macro-pulse-app,
  body.mode-news .macro-pulse-app {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto auto auto;
    padding: 5px;
    overflow: visible;
  }

  .control-bar,
  body.mode-broadcast .control-bar,
  body.mode-news .control-bar {
    position: static;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
    padding-block: 5px;
  }

  .lang-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  .control-group {
    width: auto;
  }

  .control-group:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .control-group:nth-of-type(2) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .control-label {
    display: none;
  }

  .segmented-control {
    width: 100%;
  }

  #period-control,
  #mode-control {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segmented-control button {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding-inline: 6px;
  }

  .date-control {
    grid-column: 1 / -1;
    grid-row: 4;
    width: auto;
  }

  #clear-snapshot {
    grid-column: 1;
    grid-row: 5;
  }

  #refresh-button {
    grid-column: 2;
    grid-row: 5;
  }

  .date-control input {
    width: 100%;
    height: 44px;
  }

  .command-button,
  .lang-button {
    min-height: 44px;
    padding-inline: 8px;
  }

  .brand-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .control-drawer-trigger,
  body.mode-broadcast .control-drawer-trigger,
  body.mode-news .control-drawer-trigger {
    display: none;
  }

  .masthead,
  body.mode-broadcast .masthead,
  body.mode-news .masthead {
    min-height: 0;
    padding: 8px 9px;
  }

  .masthead-title {
    align-items: center;
  }

  .product-mark {
    font-size: 9px;
  }

  .masthead h1 {
    font-size: 21px;
  }

  .pulse-content,
  body.mode-broadcast .pulse-content,
  body.mode-news .pulse-content {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    overflow: visible;
  }

  .hero-band,
  body.mode-broadcast .hero-band,
  body.mode-news .hero-band {
    grid-column: 1;
    display: block;
  }

  .regime-block,
  .story-block,
  .health-block {
    padding: 14px;
  }

  .regime-lockup {
    align-items: center;
  }

  .regime-name,
  body.mode-broadcast .regime-name,
  body.mode-news .regime-name {
    font-size: clamp(31px, 10vw, 40px);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .story-block {
    display: grid;
    grid-template-columns: 1fr;
  }

  .regime-spectrum {
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .indicator-section,
  body.mode-news .indicator-section {
    grid-column: 1;
    grid-row: auto;
  }

  .indicator-section .section-heading-row {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .indicator-section .section-context {
    flex: 1 0 100%;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3px;
  }

  #indicator-reference {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
  }

  .indicator-grid,
  body.mode-news .indicator-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .indicator-card,
  body.mode-broadcast .indicator-card,
  body.mode-news .indicator-card {
    min-height: 170px;
  }

  .indicator-value-state,
  body.mode-broadcast .indicator-value-state,
  body.mode-news .indicator-value-state {
    font-size: 18px;
  }

  .lower-grid,
  body.mode-news .lower-grid {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    grid-template-columns: 1fr;
  }

  body.mode-news .change-panel {
    display: grid;
  }

  .market-row,
  .change-row {
    min-height: 50px;
  }

  .watch-list li {
    min-height: 58px;
  }

  .method-panel[open] {
    inset: 2vh 3vw;
  }

  .method-panel summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .indicator-grid,
  body.mode-news .indicator-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
