:root {
  color-scheme: light;
  --ink: #15181d;
  --ink-soft: #303640;
  --muted: #68717f;
  --line: #d9dde3;
  --line-strong: #b9c0ca;
  --paper: #ffffff;
  --surface: #f4f5f7;
  --surface-2: #eceff2;
  --header: #14171c;
  --taiwan: #007f76;
  --taiwan-soft: #e8f4f2;
  --us: #365f8e;
  --us-soft: #eaf0f7;
  --positive: #087a55;
  --negative: #b23b45;
  --warning: #a66b13;
  --warning-soft: #fff5df;
}

/* Personal research book */
.watchlist-workspace {
  width: min(1540px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 34px 34px 64px;
}

.watchlist-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 32px;
  border-left: 5px solid var(--taiwan);
  color: #f7f8fa;
  background: #1b2027;
}

.watchlist-hero p,
.watchlist-market-header p {
  margin: 0 0 8px;
  color: #8fa1b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.watchlist-hero h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.1;
}

.watchlist-hero > div > span {
  color: #bcc5d0;
  font-size: 14px;
}

.watchlist-kpis,
.watchlist-market-header dl {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  margin: 0;
}

.watchlist-kpis div,
.watchlist-market-header dl div {
  padding: 0 18px;
  border-left: 1px solid #3c444f;
}

.watchlist-kpis dt,
.watchlist-market-header dt {
  color: #929dab;
  font-size: 10px;
  font-weight: 750;
}

.watchlist-kpis dd,
.watchlist-market-header dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.watchlist-entry-band {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.watchlist-entry-form {
  display: grid;
  grid-template-columns: 220px minmax(210px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}

.watchlist-entry-form label {
  display: grid;
  gap: 6px;
}

.watchlist-entry-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.watchlist-entry-form input,
.watchlist-entry-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.watchlist-entry-form input:focus,
.watchlist-entry-form select:focus {
  border-color: var(--us);
  box-shadow: 0 0 0 2px rgba(54, 95, 142, 0.13);
}

.watchlist-entry-form .primary-command {
  min-width: 112px;
  height: 42px;
  border: 0;
  cursor: pointer;
}

.watchlist-flash {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid;
  font-size: 13px;
}

.watchlist-flash.success {
  border-color: var(--positive);
  color: #075b41;
  background: #e9f5ef;
}

.watchlist-flash.error {
  border-color: var(--negative);
  color: #8c2833;
  background: #faecee;
}

.watchlist-market {
  margin-top: 30px;
  border-top: 4px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.watchlist-market.market-taiwan {
  border-top-color: var(--taiwan);
}

.watchlist-market.market-us {
  border-top-color: var(--us);
}

.watchlist-market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.watchlist-market-header h2 {
  margin: 0 0 5px;
  font-size: 21px;
}

.watchlist-market-header > div > span {
  color: var(--muted);
  font-size: 12px;
}

.watchlist-market-header dl div {
  min-width: 104px;
  border-color: var(--line);
}

.watchlist-market-header dd {
  color: var(--ink);
  font-size: 18px;
}

.watchlist-table-wrap {
  overflow-x: auto;
}

.watchlist-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.watchlist-table th,
.watchlist-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.watchlist-table th {
  color: #596270;
  background: #f0f2f4;
  font-size: 10px;
  font-weight: 820;
}

.watchlist-table th:nth-child(1) { width: 188px; }
.watchlist-table th:nth-child(2) { width: 102px; }
.watchlist-table th:nth-child(3) { width: 74px; }
.watchlist-table th:nth-child(4) { width: 92px; }
.watchlist-table th:nth-child(5) { width: 210px; }
.watchlist-table th:nth-child(6) { width: 190px; }
.watchlist-table th:nth-child(7) { width: 245px; }
.watchlist-table th:nth-child(8) { width: 64px; }

.watchlist-table tbody tr:hover {
  background: #f8f9fa;
}

.watchlist-table td > strong,
.watchlist-table td > small,
.watchlist-security strong,
.watchlist-security span,
.watchlist-security small {
  display: block;
}

.watchlist-table td > small,
.watchlist-security span,
.watchlist-security small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.watchlist-security small {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-probability-cell small {
  display: flex !important;
  justify-content: space-between;
  gap: 8px;
}

.watchlist-probability {
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #e4e7eb;
}

.watchlist-probability .prob-up { fill: #17805d; }
.watchlist-probability .prob-flat { fill: #a9b1bc; }
.watchlist-probability .prob-down { fill: #ba4651; }

.watchlist-information {
  line-height: 1.45;
}

.watchlist-information a {
  color: #315f91;
  text-decoration: none;
}

.watchlist-information a:hover {
  text-decoration: underline;
}

.watchlist-remove {
  padding: 6px 8px;
  border: 1px solid #d8aeb3;
  border-radius: 4px;
  color: #9c323d;
  background: #fff;
  cursor: pointer;
}

.watchlist-remove:hover {
  background: #faecee;
}

.data-pending {
  color: var(--muted);
  font-size: 11px;
}

.watchlist-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.watchlist-empty strong {
  color: var(--ink-soft);
  font-size: 17px;
}

.watchlist-empty span {
  margin-top: 6px;
  font-size: 12px;
}

.watchlist-market-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  color: var(--muted);
  background: #f4f5f7;
  font-size: 11px;
}

.watchlist-market-footer nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.watchlist-market-footer nav > a:not(.primary-command) {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  background: #fff;
  text-decoration: none;
}

.watchlist-report-index {
  margin: 24px 18px;
}

.watchlist-report-content {
  align-items: start;
}

@media (max-width: 1100px) {
  .watchlist-workspace {
    padding: 24px 20px 48px;
  }

  .watchlist-hero,
  .watchlist-market-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .watchlist-entry-form {
    grid-template-columns: 180px minmax(180px, 1fr) minmax(220px, 1.3fr);
  }

  .watchlist-entry-form .primary-command {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .watchlist-workspace {
    padding: 14px 12px 38px;
  }

  .watchlist-hero {
    padding: 24px 20px;
  }

  .watchlist-hero h1 {
    font-size: 28px;
  }

  .watchlist-kpis,
  .watchlist-market-header dl {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watchlist-kpis div,
  .watchlist-market-header dl div {
    padding: 9px 10px;
    border-left: 0;
    border-top: 1px solid #3c444f;
  }

  .watchlist-market-header dl div {
    border-color: var(--line);
  }

  .watchlist-entry-form {
    grid-template-columns: 1fr;
  }

  .watchlist-entry-form .primary-command {
    grid-column: auto;
    width: 100%;
  }

  .watchlist-market-header {
    padding: 20px 16px;
  }

  .watchlist-market-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .watchlist-market-footer nav {
    width: 100%;
    overflow-x: auto;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.positive {
  color: var(--positive) !important;
}

.negative {
  color: var(--negative) !important;
}

.global-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #2a2f37;
  color: #f7f8fa;
  background: var(--header);
}

.global-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}

.brand-monogram {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #66707e;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: 0;
}

.brand-copy small {
  color: #929ba8;
  font-size: 10px;
  text-transform: uppercase;
}

.global-nav {
  height: 64px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.global-nav::-webkit-scrollbar {
  display: none;
}

.global-nav a {
  min-width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: #aeb5bf;
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: #fff;
  background: #1d2128;
}

.global-nav a[aria-current="page"] {
  border-bottom-color: #c6ccd4;
}

.global-nav .nav-taiwan[aria-current="page"] {
  border-bottom-color: #39aaa1;
}

.global-nav .nav-us[aria-current="page"] {
  border-bottom-color: #7298c5;
}

.global-account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.private-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aeb5bf;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.private-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cc38a;
  box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.12);
}

.text-command {
  padding: 7px 0;
  border: 0;
  color: #d9dde4;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.text-command:hover {
  color: #fff;
  text-decoration: underline;
}

.primary-command,
.secondary-command {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-command {
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
}

.primary-command:hover {
  background: #303640;
}

.secondary-command {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #fff;
}

.secondary-command:hover {
  border-color: var(--ink-soft);
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.page-kicker,
.market-masthead > div > p,
.work-section-heading p,
.ops-section-title p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.page-heading h1,
.market-masthead h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.page-heading > div > p:last-child,
.market-masthead > div > span {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-meta {
  min-width: 190px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.heading-meta span,
.heading-meta small {
  color: var(--muted);
  font-size: 11px;
}

.heading-meta strong {
  font-size: 22px;
}

.dashboard-shell,
.market-shell,
.ops-shell,
.analytics-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.research-standard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.research-standard > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.research-standard > div:last-child {
  border-right: 0;
}

.research-standard span {
  grid-row: 1 / 3;
  color: #929aa5;
  font-size: 11px;
  font-weight: 850;
}

.research-standard strong {
  font-size: 11px;
  text-transform: uppercase;
}

.research-standard small {
  color: var(--muted);
  font-size: 9px;
}

.market-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  padding: 24px 0 48px;
}

.market-board {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
}

.market-board.market-taiwan {
  border-top-color: var(--taiwan);
}

.market-board.market-us {
  border-top-color: var(--us);
}

.market-board-header {
  min-height: 105px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.market-board-header p,
.report-market-id p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.market-board-header h2,
.report-market-id h2 {
  margin: 0;
  font-size: 26px;
}

.market-board-header > div > span,
.report-market-id > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.market-state {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.market-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}

.market-state.ready i {
  background: var(--positive);
}

.market-dateline,
.market-metrics,
.ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.market-dateline > div,
.market-metrics > div,
.ops-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.market-dateline > div:last-child,
.market-metrics > div:last-child,
.ops-summary > div:last-child {
  border-right: 0;
}

.market-dateline span,
.market-metrics span,
.ops-summary span {
  color: var(--muted);
  font-size: 10px;
}

.market-dateline strong,
.market-metrics strong,
.ops-summary strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.ops-summary small {
  color: var(--muted);
  font-size: 10px;
}

.index-tape {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.index-quote {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.index-quote:last-child {
  border-right: 0;
}

.index-quote span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-quote strong {
  font-size: 19px;
}

.index-quote em {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.breadth-panel,
.focus-preview,
.workflow-panel {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-track li {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 0 10px 0 14px;
  border-left: 2px solid #adb4be;
}

.workflow-track li.published,
.workflow-track li.degraded,
.workflow-track li.ingested,
.workflow-track li.validated,
.workflow-track li.promoted,
.workflow-track li.rejected_challenger,
.workflow-track li.qualified_challenger {
  border-left-color: var(--positive);
}

.workflow-track li.blocked,
.workflow-track li.error {
  border-left-color: var(--negative);
}

.workflow-track li.pending,
.workflow-track li.pending_data,
.workflow-track li.no_predictions,
.workflow-track li.not_run {
  border-left-color: var(--warning);
}

.workflow-track span,
.workflow-track small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-track strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-label,
.work-section-heading,
.ops-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-label > span {
  font-size: 12px;
  font-weight: 850;
}

.section-label small,
.work-section-heading > span,
.ops-section-title > span {
  color: var(--muted);
  font-size: 10px;
}

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

.breadth-bars label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 0;
  background: #e4e7eb;
  appearance: none;
}

progress::-webkit-progress-bar {
  background: #e4e7eb;
}

progress::-webkit-progress-value {
  background: #68717f;
}

progress::-moz-progress-bar {
  background: #68717f;
}

progress.advance::-webkit-progress-value {
  background: var(--positive);
}

progress.advance::-moz-progress-bar {
  background: var(--positive);
}

progress.decline::-webkit-progress-value {
  background: var(--negative);
}

progress.decline::-moz-progress-bar {
  background: var(--negative);
}

progress.flat::-webkit-progress-value {
  background: #a0a7b0;
}

progress.flat::-moz-progress-bar {
  background: #a0a7b0;
}

progress.attention {
  width: 68px;
}

.market-taiwan progress.attention::-webkit-progress-value,
.market-taiwan .coverage-list progress::-webkit-progress-value {
  background: var(--taiwan);
}

.market-taiwan progress.attention::-moz-progress-bar,
.market-taiwan .coverage-list progress::-moz-progress-bar {
  background: var(--taiwan);
}

.market-us progress.attention::-webkit-progress-value,
.market-us .coverage-list progress::-webkit-progress-value {
  background: var(--us);
}

.market-us progress.attention::-moz-progress-bar,
.market-us .coverage-list progress::-moz-progress-bar {
  background: var(--us);
}

.compact-table-wrap,
.work-table-wrap,
.ops-table-wrap {
  overflow-x: auto;
}

.compact-table-wrap {
  margin-top: 11px;
}

.compact-table,
.work-table,
.ops-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.compact-table {
  table-layout: fixed;
  font-size: 10px;
}

.compact-table th,
.compact-table td {
  padding: 8px 7px;
  border-bottom: 1px solid #e9ebee;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.compact-table th {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.compact-table th:first-child {
  width: 28px;
}

.compact-table th:nth-child(2) {
  width: 116px;
}

.compact-table td strong,
.work-table td strong {
  display: block;
}

.compact-table td small,
.work-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.market-takeaway {
  min-height: 62px;
  margin: 0;
  padding: 17px 20px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.restricted-panel {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  border-bottom: 1px solid var(--line);
}

.restricted-reasons {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 12px 12px 12px 28px;
  border-left: 3px solid var(--warning);
  color: #6f4d18;
  background: var(--warning-soft);
  font-size: 10px;
  line-height: 1.5;
}

.restricted-operations {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.restricted-panel > p,
.market-empty > p {
  margin: 0 0 8px;
  color: var(--us);
  font-size: 10px;
  font-weight: 850;
}

.restricted-panel h3,
.market-empty h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.restricted-panel > span,
.market-empty > span {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.restricted-panel dl,
.market-empty dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.restricted-panel dl div,
.market-empty dl div {
  padding: 13px 13px 13px 0;
}

.restricted-panel dt,
.market-empty dt {
  color: var(--muted);
  font-size: 10px;
}

.restricted-panel dd,
.market-empty dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 800;
}

.market-board-footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 20px;
  background: #fafbfc;
}

.market-board.market-taiwan .primary-command,
.market-page.market-taiwan .primary-command {
  border-color: var(--taiwan);
  background: var(--taiwan);
}

.market-board.market-us .primary-command,
.market-page.market-us .primary-command {
  border-color: var(--us);
  background: var(--us);
}

.market-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 24px;
  border-bottom: 4px solid var(--line-strong);
}

.workspace-nav {
  min-height: 44px;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}

.workspace-nav a {
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-nav a:hover {
  color: var(--ink);
  background: #f7f8f9;
}

.workspace-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink-soft);
}

.market-taiwan .workspace-nav a[aria-current="page"] {
  border-bottom-color: var(--taiwan);
}

.market-us .workspace-nav a[aria-current="page"] {
  border-bottom-color: var(--us);
}

.market-page.market-taiwan .market-masthead {
  border-bottom-color: var(--taiwan);
}

.market-page.market-us .market-masthead {
  border-bottom-color: var(--us);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.qc-badge.pass {
  border-color: rgba(8, 122, 85, 0.4);
  color: var(--positive);
  background: #eef8f4;
}

.qc-badge.warn {
  border-color: rgba(166, 107, 19, 0.4);
  color: var(--warning);
  background: var(--warning-soft);
}

.qc-badge.fail {
  border-color: rgba(178, 59, 69, 0.4);
  color: var(--negative);
  background: #fff0f1;
}

.market-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
}

.market-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 20px;
  margin-top: 22px;
}

.market-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 250px;
  align-items: start;
  gap: 16px;
  margin-top: 20px;
}

.intelligence-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

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

.quote-matrix > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 12px 14px;
  border-right: 1px solid #e9ebee;
  border-bottom: 1px solid #e9ebee;
}

.quote-matrix > div:nth-child(2n) {
  border-right: 0;
}

.quote-matrix span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-matrix strong {
  font-size: 13px;
}

.quote-matrix em {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.theme-list {
  display: grid;
}

.theme-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #e9ebee;
}

.theme-list > div:last-child {
  border-bottom: 0;
}

.theme-list strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-list span {
  color: var(--muted);
  font-size: 8px;
}

.theme-list em {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.breadth-detail {
  display: flex;
  flex-direction: column;
}

.breadth-number {
  display: grid;
  place-items: center;
  padding: 18px 10px 12px;
}

.breadth-number strong {
  font-size: 27px;
}

.breadth-number span {
  color: var(--muted);
  font-size: 9px;
}

.breadth-composition {
  display: grid;
  gap: 5px;
  padding: 0 16px 12px;
}

.breadth-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 0;
  border-top: 1px solid var(--line);
}

.breadth-legend div {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px;
  border-right: 1px solid var(--line);
}

.breadth-legend div:last-child {
  border-right: 0;
}

.breadth-legend dt {
  color: var(--muted);
  font-size: 8px;
}

.breadth-legend dd {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
}

.focus-workbench,
.market-rail > section,
.market-archive,
.ops-section {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.focus-workbench {
  min-width: 0;
  overflow: hidden;
}

.work-section-heading,
.ops-section-title {
  min-height: 65px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.work-section-heading h2,
.ops-section-title h2 {
  margin: 0;
  font-size: 15px;
}

.work-table {
  min-width: 880px;
  font-size: 11px;
}

.work-table th,
.work-table td,
.ops-table-wrap th,
.ops-table-wrap td {
  padding: 10px 11px;
  border-bottom: 1px solid #e8eaed;
  text-align: left;
  vertical-align: middle;
}

.work-table th,
.ops-table-wrap th {
  color: var(--muted);
  background: #f8f9fa;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.work-table tr:last-child td,
.ops-table-wrap tr:last-child td {
  border-bottom: 0;
}

.work-table td:nth-child(7) {
  min-width: 112px;
}

.work-table td:nth-child(7) progress {
  display: inline-block;
  margin-right: 7px;
}

.market-rail {
  display: grid;
  align-content: start;
  gap: 16px;
}

.rail-metrics {
  margin: 0;
}

.rail-metrics div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 1.2fr);
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #e9ebee;
}

.rail-metrics div:last-child {
  border-bottom: 0;
}

.rail-metrics dt {
  color: var(--muted);
  font-size: 10px;
}

.rail-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
}

.coverage-list {
  padding: 6px 16px 14px;
}

.rail-command {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: #f8f9fa;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}

.rail-command:hover {
  background: #eef0f3;
}

.source-pulse-list {
  display: grid;
  padding: 4px 14px 10px;
}

.source-pulse-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eceef1;
}

.source-pulse-list > div:last-child {
  border-bottom: 0;
}

.source-pulse-list i,
.gate-list i,
.model-timeline i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3ad;
}

.source-pulse-list i.ok,
.gate-list i.pass,
.model-timeline i.champion {
  background: var(--positive);
}

.source-pulse-list i.error,
.gate-list i.fail,
.model-timeline i.rejected {
  background: var(--negative);
}

.source-pulse-list span {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-pulse-list strong {
  font-size: 9px;
}

.source-pulse-list > p,
.benchmark-list > p,
.gate-list > p,
.session-list > p,
.model-timeline > p {
  margin: 0;
  padding: 14px 2px;
  color: var(--muted);
  font-size: 10px;
}

.screener-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(5, minmax(120px, 0.75fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.screener-controls label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.screener-controls label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.screener-controls input,
.screener-controls select {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
}

.screener-controls input:focus,
.screener-controls select:focus {
  outline: 2px solid rgba(54, 95, 142, 0.14);
  border-color: var(--us);
}

.screener-controls button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--ink-soft);
  border-radius: 3px;
  color: #fff;
  background: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.market-taiwan .screener-controls button {
  border-color: var(--taiwan);
  background: var(--taiwan);
}

.market-us .screener-controls button {
  border-color: var(--us);
  background: var(--us);
}

.screener-summary,
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.screener-summary > div,
.analytics-metrics > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px 15px;
  border-right: 1px solid var(--line);
}

.screener-summary > div:last-child,
.analytics-metrics > div:last-child {
  border-right: 0;
}

.screener-summary span,
.analytics-metrics span,
.analytics-metrics small {
  color: var(--muted);
  font-size: 9px;
}

.screener-summary strong,
.analytics-metrics strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.universe-table-panel,
.analytics-panel {
  min-width: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.universe-table-wrap,
.calibration-table-wrap {
  overflow-x: auto;
}

.universe-table,
.calibration-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 10px;
}

.universe-table th,
.universe-table td,
.calibration-table th,
.calibration-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7e9ec;
  text-align: left;
  vertical-align: middle;
}

.universe-table th,
.calibration-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f4f6f8;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.universe-table tr:last-child td,
.calibration-table tr:last-child td {
  border-bottom: 0;
}

.universe-table tr.focus-row td {
  background: #fafcfc;
}

.market-us .universe-table tr.focus-row td {
  background: #fafbfd;
}

.universe-table td strong,
.universe-table td small {
  display: block;
}

.universe-table td small,
.muted-value {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.focus-rank,
.source-grade {
  display: inline-flex;
  min-width: 29px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 8px;
  font-weight: 850;
}

.market-taiwan .focus-rank {
  border-color: rgba(0, 127, 118, 0.4);
  color: var(--taiwan);
}

.market-us .focus-rank {
  border-color: rgba(54, 95, 142, 0.4);
  color: var(--us);
}

.source-grade.grade-a,
.source-grade.grade-b {
  border-color: rgba(8, 122, 85, 0.35);
  color: var(--positive);
}

.analytics-heading {
  align-items: center;
}

.governance-banner {
  display: grid;
  grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  background: #fff;
}

.governance-banner.live_qualified {
  border-left-color: var(--positive);
}

.governance-banner.review_required {
  border-left-color: var(--negative);
}

.governance-banner > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.governance-banner span,
.governance-banner small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.governance-banner strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.governance-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.analytics-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.analytics-grid.lower {
  margin-bottom: 48px;
}

.benchmark-list,
.gate-list,
.session-list,
.model-timeline {
  display: grid;
}

.benchmark-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 1.5fr) 64px 110px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e9ebee;
}

.benchmark-list span,
.benchmark-list strong,
.benchmark-list small {
  font-size: 9px;
}

.benchmark-list small {
  color: var(--muted);
}

.benchmark-list > div:first-child {
  border-left: 3px solid var(--positive);
  background: #f7fbf9;
}

.gate-list > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #e9ebee;
}

.gate-list span,
.gate-list strong {
  font-size: 9px;
}

.calibration-table {
  min-width: 760px;
}

.dual-bars {
  width: 180px;
  display: grid;
  gap: 4px;
}

.dual-bars progress.observed::-webkit-progress-value {
  background: var(--positive);
}

.dual-bars progress.observed::-moz-progress-bar {
  background: var(--positive);
}

.session-list > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 70px 100px;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e9ebee;
  font-size: 9px;
}

.session-list span,
.session-list em,
.model-timeline time,
.model-timeline span {
  color: var(--muted);
  font-style: normal;
}

.model-timeline > div {
  display: grid;
  grid-template-columns: 8px 140px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #e9ebee;
  font-size: 9px;
}

.model-timeline i {
  grid-row: 1 / 3;
}

.model-timeline span {
  grid-column: 3;
}

.report-actions {
  display: flex;
  gap: 8px;
}

.coverage-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 9px 0;
}

.coverage-list span,
.coverage-list strong {
  font-size: 10px;
}

.coverage-list span {
  color: var(--muted);
}

.coverage-list progress {
  grid-column: 1 / -1;
}

.market-empty {
  margin-top: 24px;
  padding: 56px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--us);
  background: #fff;
}

.market-empty dl {
  max-width: 760px;
  margin-bottom: 24px;
}

.market-archive {
  margin: 20px 0 48px;
  overflow: hidden;
}

.filter-tabs,
.market-tabs {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}

.filter-tabs a,
.market-tabs a {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-right: 1px solid var(--line-strong);
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-tabs a:last-child,
.market-tabs a:last-child {
  border-right: 0;
}

.filter-tabs a[aria-current="page"],
.market-tabs a[aria-current="page"] {
  color: #fff;
  background: var(--ink-soft);
}

.market-tabs .tab-taiwan[aria-current="page"] {
  background: var(--taiwan);
}

.market-tabs .tab-us[aria-current="page"] {
  background: var(--us);
}

.archive-list {
  display: grid;
}

.archive-list > a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #e8eaed;
  text-decoration: none;
  font-size: 11px;
}

.archive-list > a:last-child {
  border-bottom: 0;
}

.archive-list > a:hover {
  background: #f8f9fa;
}

.archive-list time,
.archive-list span {
  color: var(--muted);
}

.archive-list > p {
  margin: 0;
  padding: 24px 18px;
  color: var(--muted);
  font-size: 12px;
}

.report-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.report-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 22px 18px;
  border-right: 1px solid #2d333c;
  color: #f3f5f7;
  background: #1b1f25;
  overflow-y: auto;
}

.report-market-id {
  padding: 4px 6px 18px;
  border-bottom: 3px solid #59616d;
}

.market-taiwan .report-market-id {
  border-bottom-color: var(--taiwan);
}

.market-us .report-market-id {
  border-bottom-color: var(--us);
}

.report-market-id p,
.report-market-id > span {
  color: #919aa6;
}

.market-home-link,
.ops-link {
  display: block;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #3b424d;
  border-radius: 4px;
  color: #dce1e7;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
}

.market-home-link:hover,
.ops-link:hover {
  border-color: #687381;
  background: #242931;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
  border-top: 1px solid #333944;
  border-bottom: 1px solid #333944;
}

.archive-stats div {
  display: grid;
  gap: 3px;
  padding: 10px 4px;
  text-align: center;
}

.archive-stats strong {
  font-size: 15px;
}

.archive-stats span {
  color: #8f98a4;
  font-size: 9px;
}

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

.report-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 10px;
  border-left: 3px solid transparent;
  color: #c8ced6;
  text-decoration: none;
  font-size: 10px;
}

.report-link time {
  color: #8e97a3;
}

.report-link:hover,
.report-link.active {
  border-left-color: #c9d0d8;
  color: #fff;
  background: #252a32;
}

.market-taiwan .report-link.active {
  border-left-color: #39aaa1;
}

.market-us .report-link.active {
  border-left-color: #7298c5;
}

.report-workspace {
  min-width: 0;
}

.report-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 30px 21px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.report-topbar h1 {
  margin: 8px 0 7px;
  font-size: 22px;
}

.report-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 10px;
}

.incident-warning,
.qc-blockers {
  margin: 13px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--warning);
  color: #6f4d18;
  background: var(--warning-soft);
  font-size: 11px;
}

.qc-blockers {
  display: grid;
  gap: 4px;
  border-left-color: var(--negative);
  color: #7d2e35;
  background: #fff0f1;
}

.report-content-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 960px);
  justify-content: center;
  gap: 22px;
  padding: 24px 28px 56px;
}

.section-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  border-top: 3px solid var(--ink-soft);
  background: #fff;
}

.section-nav p {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.section-nav a {
  padding: 9px 12px;
  border-bottom: 1px solid #e9ebee;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 10px;
  line-height: 1.35;
}

.section-nav a:hover {
  color: #000;
  background: #f4f6f8;
}

.report-document {
  min-width: 0;
  padding: 34px 40px 46px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink-soft);
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 31, 39, 0.05);
}

.market-taiwan .report-document {
  border-top-color: var(--taiwan);
}

.market-us .report-document {
  border-top-color: var(--us);
}

.report-document h1,
.report-document h2,
.report-document h3,
.report-document h4 {
  scroll-margin-top: 88px;
  color: var(--ink);
  line-height: 1.25;
}

.report-document h1 {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 27px;
}

.report-document h2 {
  margin: 38px 0 14px;
  padding: 9px 0 9px 12px;
  border-left: 4px solid var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.market-taiwan .report-document h2 {
  border-left-color: var(--taiwan);
}

.market-us .report-document h2 {
  border-left-color: var(--us);
}

.report-document h3 {
  margin: 27px 0 11px;
  font-size: 15px;
}

.report-document h4 {
  margin: 22px 0 9px;
  font-size: 13px;
}

.report-document p,
.report-document li {
  font-size: 12px;
  line-height: 1.75;
}

.report-document ul,
.report-document ol {
  padding-left: 22px;
}

.report-document hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.report-document table {
  width: 100%;
  margin: 14px 0 24px;
  border-collapse: collapse;
  font-size: 10px;
}

.report-document th,
.report-document td {
  padding: 9px 8px;
  border-right: 1px solid #e4e7eb;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  vertical-align: top;
}

.report-document th:last-child,
.report-document td:last-child {
  border-right: 0;
}

.report-document th {
  color: #3e4652;
  background: #edf0f3;
  font-weight: 850;
}

.report-document tr:nth-child(even) td {
  background: #fafbfc;
}

.report-document blockquote {
  margin: 18px 0;
  padding: 13px 16px;
  border-left: 4px solid var(--warning);
  background: var(--warning-soft);
}

.report-document blockquote p {
  margin: 0;
}

.report-document code {
  padding: 2px 4px;
  border-radius: 3px;
  background: #edf0f3;
  overflow-wrap: anywhere;
}

.report-document pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 4px;
  color: #f3f5f7;
  background: #171a1f;
}

.report-document a {
  color: #176c82;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.ops-heading {
  align-items: center;
}

.ops-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.ops-section {
  margin-top: 18px;
  overflow: hidden;
}

.ops-table-wrap table {
  min-width: 760px;
  font-size: 10px;
}

.run-status {
  padding-left: 8px;
  border-left: 3px solid #8c949f;
  font-weight: 850;
}

.run-status.published,
.run-status.complete,
.run-status.ingested,
.run-status.validated,
.run-status.ok {
  border-color: var(--positive);
}

.run-status.degraded,
.run-status.pending,
.run-status.pending_data,
.run-status.no_predictions {
  border-color: var(--warning);
}

.run-status.blocked,
.run-status.error {
  border-color: var(--negative);
}

.error-cell {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.ops-link-list {
  display: grid;
  max-height: 390px;
  overflow-y: auto;
}

.ops-link-list > a,
.ops-link-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #e8eaed;
  text-decoration: none;
  font-size: 10px;
}

.ops-link-list span,
.ops-link-list em {
  color: var(--muted);
  font-style: normal;
}

.ops-link-list > p {
  margin: 0;
  padding: 20px 16px;
  color: var(--muted);
  font-size: 11px;
}

.site-compliance-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 24px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #eceff2;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

.site-compliance-footer a {
  text-decoration: none;
}

.site-compliance-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.icp-number {
  color: var(--ink-soft);
  font-weight: 750;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding-top: 24px;
  color: #fff;
  background: #171a1f;
}

.login-shell {
  width: min(980px, calc(100% - 32px));
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.8fr);
  border: 1px solid #3a4049;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: #22272e;
}

.login-brand::before,
.login-brand::after {
  position: absolute;
  right: 48px;
  left: 48px;
  content: "";
  border-top: 1px solid #3b424c;
}

.login-brand::before {
  top: 72px;
}

.login-brand::after {
  top: 118px;
}

.brand-mark {
  position: absolute;
  top: 38px;
  left: 48px;
  padding: 7px 9px;
  border: 1px solid #68727f;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
}

.login-brand h1 {
  max-width: 430px;
  margin: 0 0 15px;
  font-size: 37px;
  line-height: 1.08;
}

.login-brand p {
  max-width: 430px;
  margin: 0;
  color: #aeb6c0;
  font-size: 13px;
  line-height: 1.7;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid #48505b;
  border-bottom: 1px solid #48505b;
}

.market-strip span {
  padding: 11px 8px 11px 0;
  color: #c6ccd4;
  font-size: 10px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 42px;
  color: var(--ink);
  background: #fff;
}

.panel-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.login-panel h2 {
  margin: 9px 0 25px;
  font-size: 24px;
}

.login-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--negative);
  color: var(--negative);
  background: #fff0f1;
  font-size: 11px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
}

.login-form input:focus {
  outline: 2px solid rgba(54, 95, 142, 0.18);
  border-color: var(--us);
}

.login-form button,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.login-form button {
  margin-top: 5px;
  color: #fff;
  background: #22272e;
}

.login-form button:hover {
  background: #383f48;
}

.login-page .site-compliance-footer {
  border-color: #30353d;
  color: #8c95a1;
  background: #171a1f;
}

.login-page .icp-number {
  color: #c7cdd5;
}

.empty-state {
  min-height: calc(100vh - 64px);
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
}

/* Data-led visual system */

.brand-monogram {
  display: block;
  border: 0;
  object-fit: cover;
}

.board-visual-summary {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(190px, 0.72fr);
  align-items: center;
  gap: 18px;
  min-height: 154px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.board-brief-copy {
  min-width: 0;
}

.board-brief-copy > p,
.executive-copy > p,
.report-brief-copy > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.board-brief-copy h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.board-brief-copy > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.board-probability {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.breadth-donut {
  position: relative;
  width: 156px;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.breadth-donut.compact {
  width: 112px;
}

.breadth-donut svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.breadth-donut circle {
  fill: none;
  stroke-width: 4.1;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.breadth-ring-bg {
  stroke: #e6e9ed;
}

.breadth-ring-advance {
  stroke: var(--positive);
}

.breadth-ring-flat {
  stroke: #939ca8;
}

.breadth-ring-decline {
  stroke: var(--negative);
}

.breadth-donut-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 3px;
  padding: 0 25px;
  text-align: center;
}

.breadth-donut-label strong {
  font-size: 11px;
  line-height: 1.2;
}

.breadth-donut-label strong.neutral {
  color: var(--ink-soft);
}

.breadth-donut-label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.probability-visual {
  min-width: 0;
  margin-top: 12px;
}

svg.probability-stack {
  width: 100%;
  height: 16px;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  background: #e8ebef;
}

.probability-visual.compact svg.probability-stack {
  height: 11px;
}

rect.prob-up {
  fill: var(--positive);
}

rect.prob-flat {
  fill: #8e98a5;
}

rect.prob-down {
  fill: var(--negative);
}

.probability-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
}

.probability-legend div {
  min-width: 0;
}

.probability-legend dt,
.probability-legend dd {
  margin: 0;
  font-size: 9px;
}

.probability-legend dt {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.probability-legend dd {
  margin-top: 3px;
  font-weight: 850;
}

.probability-legend i,
.donut-key i,
.chart-key {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 2px;
}

i.prob-up,
.donut-key i.advance {
  background: var(--positive);
}

i.prob-flat,
.donut-key i.flat {
  background: #8e98a5;
}

i.prob-down,
.donut-key i.decline {
  background: var(--negative);
}

.visual-empty {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: #f7f8fa;
  font-size: 9px;
}

.board-theme-pulse {
  padding: 14px 20px 18px;
  border-bottom: 1px solid var(--line);
}

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

.theme-heatmap.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 10px 0 0;
}

.theme-heat {
  min-width: 0;
  min-height: 61px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #dfe3e7;
  border-left-width: 3px;
  color: var(--ink-soft);
  background: #f5f6f8;
}

.theme-heat span,
.theme-heat strong,
.theme-heat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-heat span {
  font-size: 9px;
  font-weight: 800;
}

.theme-heat strong {
  font-size: 12px;
}

.theme-heat small {
  color: inherit;
  opacity: 0.72;
  font-size: 8px;
}

.heat-positive {
  border-left-color: var(--positive);
}

.heat-positive.heat-1 {
  background: #f3faf7;
}

.heat-positive.heat-2 {
  background: #e7f5ef;
}

.heat-positive.heat-3 {
  background: #d4eee3;
}

.heat-positive.heat-4 {
  color: #075d43;
  background: #bae4d3;
}

.heat-positive.heat-5 {
  color: #fff;
  background: #137b5b;
}

.heat-negative {
  border-left-color: var(--negative);
}

.heat-negative.heat-1 {
  background: #fff7f7;
}

.heat-negative.heat-2 {
  background: #fdebec;
}

.heat-negative.heat-3 {
  background: #f8d9dc;
}

.heat-negative.heat-4 {
  color: #8b2c35;
  background: #efc0c5;
}

.heat-negative.heat-5 {
  color: #fff;
  background: #ad3c47;
}

.heat-flat {
  border-left-color: #8e98a5;
  background: #eef0f3;
}

.market-executive-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 250px minmax(260px, 0.82fr);
  min-height: 250px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.executive-copy,
.executive-breadth,
.executive-probability {
  min-width: 0;
  padding: 24px;
}

.executive-breadth,
.executive-probability {
  border-left: 1px solid var(--line);
  background: #fafbfc;
}

.executive-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.executive-copy > span {
  max-width: 760px;
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.executive-facts,
.report-brief-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.executive-facts div,
.report-brief-facts div {
  min-width: 0;
  padding: 12px 11px 0 0;
}

.executive-facts dt,
.report-brief-facts dt {
  color: var(--muted);
  font-size: 8px;
}

.executive-facts dd,
.report-brief-facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 850;
}

.executive-facts dd.neutral,
.report-brief-facts dd.neutral {
  color: var(--ink-soft);
}

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

.visual-heading span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.visual-heading strong {
  font-size: 9px;
}

.executive-breadth .breadth-donut {
  margin: 6px auto 0;
}

.donut-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 4px;
}

.donut-key span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.executive-probability .probability-visual {
  margin-top: 26px;
}

.call-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.call-counts span {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 3px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.call-counts span:last-child {
  border-right: 0;
}

.call-counts strong {
  color: var(--ink);
  font-size: 12px;
}

.mover-panel {
  min-width: 0;
}

.mover-columns {
  display: grid;
  gap: 12px;
  padding: 10px 14px 14px;
}

.mover-columns > div > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.mover-columns > div > small {
  color: var(--muted);
  font-size: 8px;
}

.mover-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 7px;
  min-height: 25px;
}

.mover-row span,
.mover-row strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mover-row strong {
  text-align: right;
}

.mover-row progress {
  width: 100%;
  height: 6px;
}

.row-probability {
  width: 108px;
  height: 5px;
  display: block;
  margin: 4px 0;
  border-radius: 1px;
  overflow: hidden;
  background: #e8ebef;
}

.analytics-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.92fr);
  gap: 16px;
}

.analytics-visual-grid .analytics-panel {
  margin-top: 16px;
}

.chart-frame {
  min-width: 0;
  padding: 13px 16px 4px;
  background: #fcfcfd;
  overflow: hidden;
}

.line-chart,
.calibration-chart {
  width: 100%;
  height: 250px;
  display: block;
}

.chart-gridline {
  stroke: #e3e6ea;
  stroke-width: 1;
}

.chart-gridline.vertical {
  stroke: #eef0f2;
}

.zero-line {
  stroke: #87919e;
  stroke-dasharray: 4 4;
  stroke-width: 1.2;
}

.axis-label,
.axis-title {
  fill: #737d89;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
}

.axis-label.x {
  font-size: 8px;
}

.axis-title {
  font-size: 8px;
  font-weight: 750;
}

.trend-area {
  fill: rgba(0, 127, 118, 0.09);
}

.market-us .trend-area {
  fill: rgba(54, 95, 142, 0.1);
}

.trend-line {
  fill: none;
  stroke: var(--taiwan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.market-us .trend-line {
  stroke: var(--us);
}

.trend-point {
  stroke: #fff;
  stroke-width: 2;
}

.trend-point.above {
  fill: var(--positive);
}

.trend-point.below {
  fill: var(--negative);
}

.ideal-line {
  stroke: #7b8591;
  stroke-dasharray: 5 4;
  stroke-width: 1.4;
}

.calibration-point {
  fill: rgba(0, 127, 118, 0.72);
  stroke: #fff;
  stroke-width: 2;
}

.market-us .calibration-point {
  fill: rgba(54, 95, 142, 0.76);
}

.chart-caption {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 16px 12px;
  border-top: 1px solid #eef0f2;
  color: var(--muted);
  font-size: 8px;
}

.chart-caption span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-caption strong {
  margin-left: auto;
  font-size: 9px;
}

.chart-key.skill,
.chart-key.calibration {
  background: var(--taiwan);
}

.market-us .chart-key.skill,
.market-us .chart-key.calibration {
  background: var(--us);
}

.chart-key.baseline,
.chart-key.ideal {
  height: 2px;
  border-radius: 0;
  background: #7b8591;
}

.chart-empty {
  min-height: 250px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 30px;
  color: var(--muted);
  background: #fafbfc;
  text-align: center;
}

.chart-empty strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.chart-empty span {
  font-size: 9px;
}

.report-visual-brief {
  width: min(1172px, calc(100% - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 180px minmax(230px, 0.72fr);
  align-items: stretch;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink-soft);
  background: #fff;
}

.market-taiwan .report-visual-brief {
  border-top-color: var(--taiwan);
}

.market-us .report-visual-brief {
  border-top-color: var(--us);
}

.report-brief-copy,
.report-brief-chart,
.report-brief-probability {
  min-width: 0;
  padding: 20px;
}

.report-brief-chart,
.report-brief-probability {
  border-left: 1px solid var(--line);
  background: #fafbfc;
}

.report-brief-copy h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.report-brief-copy > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.report-brief-facts {
  margin-top: 16px;
}

.report-brief-chart .breadth-donut {
  margin: 0 auto;
}

.mini-breadth-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
  text-align: center;
}

.mini-breadth-key span {
  font-size: 8px;
}

.report-brief-probability .probability-visual {
  margin-top: 22px;
}

.report-theme-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 17px;
}

.report-theme-strip > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 7px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-soft);
  background: #f0f2f4;
  font-size: 8px;
}

.report-theme-strip > span.heat-positive {
  border-left-color: var(--positive);
}

.report-theme-strip > span.heat-negative {
  border-left-color: var(--negative);
}

.report-theme-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: 224px minmax(0, 1fr) auto;
    padding: 0 18px;
  }

  .market-split {
    grid-template-columns: 1fr;
  }

  .market-board {
    min-height: auto;
  }

  .market-work-grid {
    grid-template-columns: 1fr;
  }

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

  .research-standard > div:nth-child(2) {
    border-right: 0;
  }

  .research-standard > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .breadth-detail {
    grid-column: 1 / -1;
  }

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

  .screener-controls .search-control {
    grid-column: span 2;
  }

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

  .analytics-metrics > div:nth-child(3) {
    border-right: 0;
  }

  .analytics-metrics > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

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

  .report-content-grid {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .analytics-visual-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  }
}

@media (max-width: 900px) {
  .global-header {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 10px;
  }

  .global-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 47px;
  }

  .global-nav a {
    flex: 1;
    min-width: 82px;
  }

  .private-indicator {
    display: none;
  }

  .page-heading,
  .market-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-meta {
    justify-items: start;
  }

  .report-shell {
    grid-template-columns: 1fr;
  }

  .report-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .report-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .report-content-grid {
    grid-template-columns: 1fr;
  }

  .section-nav {
    position: relative;
    top: auto;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .section-nav p {
    grid-column: 1 / -1;
  }

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

  .market-intelligence-grid,
  .analytics-grid,
  .analytics-visual-grid {
    grid-template-columns: 1fr;
  }

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

  .executive-copy {
    grid-column: 1 / -1;
  }

  .executive-breadth {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .executive-probability {
    border-top: 1px solid var(--line);
  }

  .report-visual-brief {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .report-brief-probability {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .breadth-detail {
    grid-column: auto;
  }

  .governance-banner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .screener-controls .search-control {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .dashboard-shell,
  .market-shell,
  .ops-shell,
  .analytics-shell {
    width: min(100% - 24px, 1480px);
  }

  .global-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .global-account {
    gap: 8px;
  }

  .global-nav a {
    padding: 0 9px;
    font-size: 11px;
  }

  .page-heading h1,
  .market-masthead h1 {
    font-size: 25px;
  }

  .market-board-header,
  .report-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-visual-summary {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .board-probability {
    grid-column: 1 / -1;
    padding: 15px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .market-executive-brief {
    grid-template-columns: 1fr;
  }

  .executive-copy {
    grid-column: auto;
  }

  .executive-breadth,
  .executive-probability {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .executive-facts,
  .report-brief-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-visual-brief {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .report-brief-chart,
  .report-brief-probability {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .report-brief-chart {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .mini-breadth-key {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .chart-frame {
    padding-right: 5px;
    padding-left: 5px;
  }

  .line-chart,
  .calibration-chart {
    height: 220px;
  }

  .chart-caption {
    flex-wrap: wrap;
  }

  .chart-caption strong {
    width: 100%;
    margin-left: 0;
  }

  .market-dateline,
  .market-metrics,
  .ops-summary,
  .screener-summary,
  .analytics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-dateline > div:nth-child(2n),
  .market-metrics > div:nth-child(2n),
  .ops-summary > div:nth-child(2n),
  .screener-summary > div:nth-child(2n),
  .analytics-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .market-metrics > div:last-child,
  .ops-summary > div:last-child,
  .screener-summary > div:last-child,
  .analytics-metrics > div:last-child {
    border-top: 1px solid var(--line);
  }

  .research-standard {
    grid-template-columns: 1fr;
  }

  .research-standard > div,
  .research-standard > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-standard > div:last-child {
    border-bottom: 0;
  }

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

  .workspace-nav a {
    min-width: 118px;
  }

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

  .screener-controls .search-control,
  .screener-controls button {
    grid-column: 1 / -1;
  }

  .quote-matrix {
    grid-template-columns: 1fr;
  }

  .quote-matrix > div,
  .quote-matrix > div:nth-child(2n) {
    border-right: 0;
  }

  .benchmark-list > div {
    grid-template-columns: minmax(120px, 1fr) 64px;
  }

  .benchmark-list progress,
  .benchmark-list small {
    grid-column: 1 / -1;
  }

  .session-list > div {
    grid-template-columns: 82px minmax(0, 1fr) auto;
  }

  .session-list em {
    grid-column: 2 / -1;
  }

  .model-timeline > div {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .model-timeline time {
    grid-column: 2;
  }

  .model-timeline span {
    grid-column: 2;
  }

  .report-actions {
    width: 100%;
    flex-direction: column;
  }

  .index-tape,
  .breadth-bars,
  .market-rail {
    grid-template-columns: 1fr;
  }

  .index-quote {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .index-quote:last-child {
    border-bottom: 0;
  }

  .compact-table {
    min-width: 620px;
  }

  .restricted-panel,
  .market-empty {
    min-height: 0;
    padding: 28px 22px;
  }

  .restricted-panel dl,
  .market-empty dl {
    grid-template-columns: 1fr;
  }

  .market-board-footer,
  .masthead-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    width: 100%;
  }

  .work-section-heading,
  .ops-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-list > a {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .archive-list > a span {
    display: none;
  }

  .report-topbar,
  .report-content-grid {
    padding-right: 14px;
    padding-left: 14px;
  }

  .report-document {
    padding: 24px 16px 32px;
  }

  .report-document h1 {
    font-size: 23px;
  }

  .report-document table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ops-heading {
    align-items: stretch;
  }

  .market-tabs a {
    flex: 1;
  }

  .ops-link-list > a,
  .ops-link-list > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .ops-link-list em {
    display: none;
  }

  .login-page {
    padding-top: 12px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand,
  .login-panel {
    padding: 32px 24px;
  }

  .login-brand {
    min-height: 280px;
  }

  .login-brand::before,
  .login-brand::after {
    right: 24px;
    left: 24px;
  }

  .brand-mark {
    left: 24px;
  }

  .login-brand h1 {
    font-size: 30px;
  }
}
