:root {
  --hp-navy: #06172c;
  --hp-ink: #101a2f;
  --hp-muted: #5f6f88;
  --hp-teal: #007d8e;
  --hp-line: #d7dfe9;
  --hp-positive: #16813f;
  --hp-adverse: #e1322f;
  --hp-forecast: #f06422;
  --hp-header: 76px;
  --hp-status: 54px;
}

* { box-sizing: border-box; }
html { background: #fff; }
body.homepage-v1-active {
  margin: 0;
  color: var(--hp-ink);
  background: #fff;
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  overflow-x: hidden;
}
button, a { font: inherit; }

.site-header {
  height: var(--hp-header);
  display: grid;
  grid-template-columns: 220px minmax(650px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  color: #fff;
  background: var(--hp-navy);
  border-bottom: 1px solid #24374e;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 42px; height: 48px; object-fit: contain; }
.brand span { display: grid; gap: 3px; }
.brand strong { font-size: 20px; line-height: 1; }
.brand small { font-size: 11px; font-weight: 600; }
.primary-nav { height: 100%; display: flex; align-items: stretch; justify-content: center; gap: clamp(18px, 2vw, 34px); min-width: 0; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; color: #f7f9fc; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary-nav a.is-active { color: #21d6d1; }
.primary-nav a.is-active::after { position: absolute; right: 0; bottom: 11px; left: 0; height: 2px; content: ""; background: #21d6d1; }
.header-tools { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.verification { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.verification svg { width: 18px; color: #4dd56c; fill: #4dd56c; stroke: var(--hp-navy); }
.language { display: inline-flex; overflow: hidden; border: 1px solid #5d7088; border-radius: 4px; }
.language a, .account { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; color: #fff; text-decoration: none; }
.language a + a { border-left: 1px solid #5d7088; }
.language a.is-active { background: rgba(255,255,255,.08); }
.account { gap: 7px; border: 1px solid #5d7088; border-radius: 4px; }
.account svg { width: 18px; }
html[lang="en"] .site-header { grid-template-columns: 176px minmax(650px, 1fr) auto; gap: 8px; }
html[lang="en"] .brand { gap: 7px; }
html[lang="en"] .brand strong { font-size: 17px; }
html[lang="en"] .brand small { font-size: 9px; line-height: 1.25; }
html[lang="en"] .primary-nav { gap: clamp(9px, 1.15vw, 18px); }
html[lang="en"] .primary-nav a { font-size: 12px; }
html[lang="en"] .verification { gap: 4px; font-size: 11px; }
html[lang="en"] .header-tools { gap: 6px; }
html[lang="en"] .language a, html[lang="en"] .account { padding-right: 8px; padding-left: 8px; font-size: 11px; }

.homepage { width: 100%; background: #fff; }
.status-bar {
  height: var(--hp-status);
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(360px, 1.1fr) minmax(360px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--hp-line);
}
.status-bar > strong { font-size: 18px; }
.status-bar p { min-width: 0; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-bar p b { margin-left: 8px; color: var(--hp-teal); font-size: 15px; font-weight: 700; }
.status-bar > div { display: flex; justify-content: flex-end; align-items: center; gap: 20px; color: #37445b; white-space: nowrap; }
.status-bar button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: inherit; border: 0; background: transparent; cursor: pointer; }
.status-bar button svg { width: 15px; }

.metric-strip { min-height: 260px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hp-line); }
.metric { position: relative; min-width: 0; padding: 20px 40px 18px; }
.metric + .metric { border-left: 1px solid var(--hp-line); }
.metric__top { min-height: 23px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.metric__eyebrow { color: #637089; font-size: 14px; font-weight: 700; }
.metric__identity { padding: 3px 9px; color: var(--hp-forecast); border: 1px solid #ff9d68; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.metric h2 { min-height: 25px; margin: 8px 0 7px; font-size: 17px; line-height: 1.4; }
.metric__value { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric__value strong { font-size: 46px; line-height: 1; }
.metric__value span { font-size: 16px; }
.metric__spec { min-height: 22px; margin: 0 0 12px; color: #26344e; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric__date { margin: -6px 0 10px; color: #607089; font-size: 12px; line-height: 1.35; }
.metric__facts { display: grid; gap: 8px; margin: 0; }
.metric__facts div { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 13px; }
.metric__facts dt { color: #40506a; white-space: nowrap; }
.metric__facts dd { min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.metric--supply .metric__facts dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="en"] .metric { padding-right: 30px; padding-left: 30px; }
html[lang="en"] .metric__facts { gap: 6px; }
html[lang="en"] .metric__facts div { gap: 9px; }
html[lang="en"] .metric__facts dt { font-size: 12px; }
html[lang="en"] .metric__facts dd { font-size: 12px; }
.tone-positive { color: var(--hp-positive); }
.tone-adverse { color: var(--hp-adverse); }
.tone-forecast { color: var(--hp-forecast); }
.metric[data-state]:not([data-state="ready"])::after { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #6c4d18; background: rgba(255,250,239,.96); content: attr(data-state-label); font-weight: 700; text-align: center; }

.workbench { min-height: 420px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr); border-bottom: 1px solid var(--hp-line); }
.trend-panel { min-width: 0; min-height: 420px; position: relative; padding: 16px 30px 10px; border-right: 1px solid var(--hp-line); }
.panel-header { min-height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--hp-line); }
.panel-header h1 { margin: 0 0 10px; font-size: 22px; line-height: 1; }
.trend-tabs { align-self: stretch; display: flex; justify-content: flex-start; gap: 32px; }
.trend-tabs button, .period-tabs button { min-height: 36px; padding: 0 11px; color: inherit; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.trend-tabs button { position: relative; font-size: 15px; }
.trend-tabs button.is-active { color: var(--hp-teal); font-weight: 700; }
.trend-tabs button.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: var(--hp-teal); }
.period-tabs { display: inline-flex; overflow: hidden; border: 1px solid #becada; border-radius: 4px; }
.period-tabs button { min-height: 30px; }
.period-tabs button + button { border-left: 1px solid #becada; }
.period-tabs button.is-active { color: #fff; background: #005f72; }
.chart-summary { min-height: 58px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0 0; }
.chart-summary > div { display: grid; gap: 8px; }
.chart-summary strong { font-size: 15px; }
.chart-summary span { font-size: 13px; }
.chart-summary p { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; }
.chart-summary p i { width: 10px; height: 10px; border-radius: 50%; background: var(--hp-teal); }
.chart-summary p em { font-style: normal; }
.chart { width: 100%; height: 285px; min-height: 285px; }
.chart-text-summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.judgement-panel { min-width: 0; min-height: 420px; padding: 17px 30px 10px; }
.judgement-panel h2 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--hp-line); font-size: 20px; }
.judgement-list { display: grid; }
.judgement-item { min-width: 0; min-height: 70px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; border-bottom: 1px solid var(--hp-line); }
.judgement-item__icon { width: 44px; height: 44px; display: grid; place-items: center; color: #005f72; border: 1.5px solid var(--hp-teal); border-radius: 50%; }
.judgement-item__icon svg { width: 24px; }
.judgement-item h3 { margin: 0 0 4px; color: #005f72; font-size: 17px; }
.judgement-item p { margin: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.judgement-item.tone-forecast .judgement-item__icon, .judgement-item.tone-forecast h3 { color: var(--hp-forecast); border-color: var(--hp-forecast); }
.judgement-item.tone-adverse p { color: var(--hp-adverse); }
.judgement-panel footer { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #31415c; font-size: 12px; }
.judgement-panel footer span + span { padding-left: 18px; border-left: 1px solid #becada; }
.judgement-panel footer b { color: #005f72; }

.cross-signals { min-height: 105px; display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 20px; padding: 0 30px; }
.cross-signals h2 { margin: 0; font-size: 24px; }
.cross-signals > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cross-signal { min-width: 0; min-height: 74px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; padding: 0 34px; }
.cross-signal + .cross-signal { border-left: 1px solid var(--hp-line); }
.cross-signal__icon { width: 52px; height: 52px; display: grid; place-items: center; color: #005f72; border: 1.5px solid var(--hp-teal); border-radius: 50%; }
.cross-signal__icon svg { width: 27px; }
.cross-signal strong { display: block; margin-bottom: 6px; font-size: 17px; }
.cross-signal b { color: #006b78; font-size: 16px; line-height: 1.45; }

.methodology-dialog { width: min(620px, calc(100% - 32px)); padding: 0; border: 1px solid #becada; border-radius: 4px; box-shadow: 0 20px 60px rgba(6,23,44,.22); }
.methodology-dialog::backdrop { background: rgba(6,23,44,.38); }
.methodology-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hp-line); }
.methodology-dialog h2 { margin: 0; font-size: 20px; }
.methodology-dialog header button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; }
.methodology-dialog > div { padding: 22px; }
.methodology-dialog li { margin-bottom: 12px; line-height: 1.65; }

@media (min-width: 1180px) and (max-width: 1600px) {
  :root { --hp-header: 68px; --hp-status: 48px; }
  .site-header { grid-template-columns: 195px minmax(555px, 1fr) auto; gap: 9px; padding: 0 12px; }
  .brand img { width: 36px; height: 42px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 10px; }
  .primary-nav { gap: clamp(12px, 1.45vw, 22px); }
  .primary-nav a { font-size: 13px; }
  .header-tools { gap: 7px; }
  .verification { font-size: 12px; }
  .language a, .account { padding: 0 9px; font-size: 12px; }
  html[lang="en"] .site-header { grid-template-columns: 145px minmax(570px, 1fr) auto; }
  html[lang="en"] .brand small { display: none; }
  html[lang="en"] .primary-nav { gap: 8px; }
  html[lang="en"] .primary-nav a { font-size: 10px; }
  html[lang="en"] .verification b { font-size: 0; }
  html[lang="en"] .verification b::after { content: "4/4 verified"; font-size: 10px; }
  .status-bar { padding: 0 24px; }
  .status-bar > strong { font-size: 16px; }
  .status-bar p b { font-size: 14px; }
  .metric { padding: 15px 28px 14px; }
  .metric-strip { min-height: 245px; }
  .metric h2 { min-height: 23px; font-size: 16px; }
  .metric__value strong { font-size: 40px; }
  .metric__facts { gap: 6px; }
  .workbench, .trend-panel, .judgement-panel { min-height: 390px; }
  .trend-panel { padding: 14px 24px 10px; }
  .judgement-panel { padding: 16px 24px 10px; }
  .judgement-item { min-height: 64px; }
  .judgement-item p { font-size: 12px; }
  html[lang="en"] .metric { padding-right: 24px; padding-left: 24px; }
  html[lang="en"] .metric h2 { font-size: 15px; }
  html[lang="en"] .metric__value span { font-size: 14px; }
  html[lang="en"] .judgement-item h3 { font-size: 15px; }
  html[lang="en"] .judgement-item p { font-size: 11px; line-height: 1.35; }
  .chart { height: 260px; min-height: 260px; }
  .cross-signals { min-height: 95px; grid-template-columns: 160px 1fr; padding: 0 24px; }
  .cross-signal { padding: 0 24px; }
  .cross-signal strong, .cross-signal b { font-size: 15px; }
}

@media (min-width: 1180px) and (max-width: 1600px) and (max-height: 820px) {
  .metric-strip { min-height: 245px; }
  .workbench { min-height: 390px; }
  .cross-signals { min-height: 95px; }
}

@media (min-width: 1180px) and (max-width: 1600px) and (min-height: 821px) and (max-height: 920px) {
  .workbench, .trend-panel, .judgement-panel { min-height: 370px; }
  .chart { height: 240px; min-height: 240px; }
  .cross-signals { min-height: 76px; }
}

@media (min-width: 1400px) {
  .homepage {
    height: calc(100vh - var(--hp-header));
    display: grid;
    grid-template-rows: var(--hp-status) 258px minmax(0, 1fr) 130px;
  }
  .metric-strip, .workbench, .trend-panel, .judgement-panel, .cross-signals { min-height: 0; }
  .trend-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
  .chart { height: 100%; min-height: 220px; }
  .judgement-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .judgement-list { grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .judgement-item { min-height: 0; }
}

/* Safari and other browsers can leave substantially less page height than the
   physical screen. Keep the decision workspace intact and drop the secondary
   cross-signal summary when the usable desktop viewport is short. */
@media (min-width: 1180px) and (max-height: 840px) {
  :root {
    --hp-header: 60px;
    --hp-status: 42px;
  }

  .site-header {
    height: var(--hp-header);
  }

  .homepage {
    height: calc(100vh - var(--hp-header));
    min-height: 0;
    display: grid;
    grid-template-rows: var(--hp-status) 222px minmax(0, 1fr);
    overflow: hidden;
  }

  .cross-signals {
    display: none;
  }

  .metric-strip,
  .workbench,
  .trend-panel,
  .judgement-panel {
    min-height: 0;
  }

  .metric {
    padding: 13px 22px 11px;
  }

  .metric__value {
    margin-top: 8px;
  }

  .metric__value strong {
    font-size: 42px;
  }

  .metric__facts {
    gap: 5px;
    margin-top: 6px;
  }

  .trend-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .chart {
    height: 100%;
    min-height: 150px;
  }

  .judgement-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

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

  .judgement-item {
    min-height: 0;
    padding: 8px 0;
  }
}

@media (min-width: 1080px) and (max-width: 1179px) and (max-height: 840px) {
  :root {
    --hp-header: 60px;
    --hp-status: 42px;
  }

  .site-header {
    height: var(--hp-header);
    min-height: var(--hp-header);
  }

  .homepage {
    height: calc(100vh - var(--hp-header));
    min-height: 0;
    display: grid;
    grid-template-rows: var(--hp-status) 176px minmax(0, 1fr);
    overflow: hidden;
  }

  .status-bar {
    height: var(--hp-status);
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 0 30px;
  }

  .status-bar p {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
    text-align: center;
  }

  .metric-strip {
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric {
    min-height: 0;
    padding: 10px 16px 8px;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 0;
  }

  .metric:nth-child(3) {
    border-left: 1px solid var(--hp-line);
  }

  .metric h2 {
    min-height: 30px;
    margin-top: 3px;
    margin-bottom: 3px;
    font-size: 14px;
  }

  .metric__value {
    margin-bottom: 3px;
  }

  .metric__value strong {
    font-size: 34px;
  }

  .metric__value span,
  .metric__spec,
  .metric__facts dd {
    font-size: 12px;
  }

  .metric__spec {
    min-height: 18px;
    margin-bottom: 3px;
  }

  .metric__facts {
    gap: 1px;
  }

  .metric__facts div {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 15px;
    line-height: 1.2;
  }

  .metric__facts dt {
    font-size: 11px;
  }

  .metric__facts dd {
    font-size: 11px;
    line-height: 1.2;
  }

  .workbench {
    min-height: 0;
    grid-template-columns: minmax(0, 2fr) minmax(350px, 1fr);
  }

  .trend-panel,
  .judgement-panel {
    min-height: 0;
  }

  .trend-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: 10px 18px 6px;
    border-right: 1px solid var(--hp-line);
    border-bottom: 0;
  }

  .panel-header h1,
  .judgement-panel h2 {
    font-size: 17px;
  }

  .chart {
    height: 100%;
    min-height: 145px;
  }

  .judgement-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 10px 18px 6px;
  }

  .judgement-panel h2 {
    padding-bottom: 6px;
  }

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

  .judgement-item {
    min-height: 0;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
    padding: 3px 0;
  }

  .judgement-item__icon {
    width: 24px;
    height: 24px;
  }

  .judgement-item h3 {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .judgement-item p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .judgement-panel footer {
    min-height: 26px;
    font-size: 10px;
  }

  .cross-signals {
    display: none;
  }
}

@media (min-width: 1400px) and (max-width: 1600px) and (min-height: 841px) and (max-height: 920px) {
  .homepage { grid-template-rows: var(--hp-status) 290px minmax(0, 1fr) 76px; }
}

@media (max-width: 1179px) {
  .site-header { height: auto; min-height: 72px; grid-template-columns: auto 1fr auto; }
  .primary-nav { justify-content: flex-start; overflow-x: auto; }
  .verification { display: none; }
  .status-bar { height: auto; min-height: 68px; grid-template-columns: 1fr auto; padding-top: 10px; padding-bottom: 10px; }
  .status-bar p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-top: 1px solid var(--hp-line); border-left: 0; }
  .metric:nth-child(4) { border-top: 1px solid var(--hp-line); }
  .workbench { grid-template-columns: 1fr; }
  .trend-panel { border-right: 0; border-bottom: 1px solid var(--hp-line); }
  .cross-signals { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 24px; }
}

@media (min-width: 721px) and (max-width: 1079px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 54px 42px;
    padding: 0 18px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 18px;
    justify-content: center;
    overflow: visible;
    border-top: 1px solid #24374e;
  }

  html[lang="en"] .primary-nav {
    gap: 12px;
  }

  html[lang="en"] .primary-nav a {
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; padding: 9px 12px; }
  .brand img { width: 34px; height: 40px; }
  .brand small { font-size: 10px; }
  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    height: auto;
    min-height: 96px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    border-top: 1px solid #24374e;
  }
  .primary-nav a {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding: 4px 5px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .primary-nav a.is-active::after { bottom: 1px; }
  .account { width: 42px; padding: 0; justify-content: center; }
  .account span { display: none; }
  .language a { min-height: 36px; padding: 0 8px; font-size: 12px; }
  html[lang="en"] .site-header { grid-template-columns: 1fr auto; }
  html[lang="en"] .brand small { display: block; }
  html[lang="en"] .primary-nav { gap: 0; }
  html[lang="en"] .primary-nav a { font-size: 10px; }
  .status-bar { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .status-bar > strong { font-size: 16px; }
  .status-bar p { grid-column: auto; grid-row: auto; white-space: normal; overflow: visible; }
  .status-bar p b { display: block; margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
  .status-bar > div { justify-content: space-between; font-size: 12px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 330px; padding: 16px 14px; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric h2 { min-height: 66px; font-size: 15px; }
  .metric__value { align-items: flex-end; gap: 4px; white-space: normal; }
  .metric__value strong { font-size: 31px; }
  .metric__value span { font-size: 12px; overflow-wrap: anywhere; }
  .metric__spec { min-height: 38px; font-size: 13px; white-space: normal; }
  .metric__facts div { grid-template-columns: 1fr; gap: 2px; }
  .metric__facts dt { font-size: 12px; }
  .metric__facts dd { font-size: 13px; }
  .metric__identity { padding: 2px 5px; font-size: 10px; }
  .metric--demand .metric__value {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .metric--demand .metric__value span {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .metric--supply .metric__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .trend-panel { min-height: 560px; padding: 20px 14px 12px; }
  .panel-header { grid-template-columns: 1fr; gap: 5px; }
  .panel-header h1 { font-size: 20px; }
  .trend-tabs { gap: 4px; justify-content: space-between; }
  .trend-tabs button { flex: 1; padding: 0 4px; font-size: 14px; }
  .period-tabs { justify-self: start; margin-bottom: 8px; }
  .chart-summary { flex-direction: column; }
  .chart-summary p { font-size: 12px; }
  .chart { height: 350px; min-height: 350px; }
  .judgement-panel { min-height: 470px; padding: 20px 14px 10px; }
  .judgement-item { min-height: 96px; grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
  .judgement-item__icon { width: 40px; height: 40px; }
  .judgement-panel footer { flex-wrap: wrap; justify-content: flex-start; padding: 12px 0; gap: 8px 14px; }
  .cross-signals { display: block; padding: 22px 14px 28px; }
  .cross-signals h2 { margin-bottom: 12px; font-size: 20px; }
  .cross-signals > div { grid-template-columns: 1fr; }
  .cross-signal { min-height: 86px; padding: 12px 0; }
  .cross-signal + .cross-signal { border-top: 1px solid var(--hp-line); border-left: 0; }
}

/* Must follow the generic tablet rules: Safari desktop windows can be narrower
   than 1180 CSS pixels while still requiring the full horizontal dashboard. */
@media (min-width: 1080px) and (max-width: 1179px) and (max-height: 840px) {
  .site-header {
    height: var(--hp-header);
    min-height: var(--hp-header);
  }

  .status-bar {
    height: var(--hp-status);
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .status-bar p {
    grid-column: auto;
    grid-row: auto;
    padding-bottom: 0;
    text-align: center;
  }

  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 0;
  }

  .metric:nth-child(3) {
    border-left: 1px solid var(--hp-line);
  }

  .workbench {
    grid-template-columns: minmax(0, 2fr) minmax(350px, 1fr);
  }

  .trend-panel {
    border-right: 1px solid var(--hp-line);
    border-bottom: 0;
  }
}
