@font-face {
  font-family: "IA Sans";
  src: url("../../../static/font/GT-America-Standard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IA Sans";
  src: url("../../../static/font/GT-America-Standard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IA Sans";
  src: url("../../../static/font/GT-America-Standard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IA Serif";
  src: url("../../../static/font/CanelaDeck-Regular-Web.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #050505;
  --ink: #111111;
  --ink-2: #2c2c2c;
  --muted: #626262;
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --paper-3: #eceae4;
  --line: #d9d6ce;
  --line-dark: #262626;
  --wine: #c71f2d;
  --gold: #c71f2d;
  --blue: #111111;
  --green: #08744b;
  --red: #c71f2d;
  --red-soft: #f4f4f2;
  --red-line: rgba(199, 31, 45, 0.28);
  --amber: #c71f2d;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IA Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
}

body,
button,
input,
select,
textarea,
a,
h1,
h2,
h3,
p,
span,
small,
time {
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-family: "IA Serif", Georgia, serif;
  font-size: 3.45rem;
  line-height: 0.95;
}

h2 {
  font-family: "IA Serif", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.ia-market-header {
  background: var(--black);
  color: var(--paper);
  border-bottom: 3px solid var(--red);
}

.utility-row,
.brand-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.utility-inner,
.brand-inner,
.utility-copy,
.utility-actions {
  display: flex;
  align-items: center;
}

.utility-inner {
  min-height: 36px;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.utility-copy,
.utility-actions {
  gap: 18px;
  min-width: 0;
}

.utility-copy span,
.utility-actions a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-actions a:hover,
.footer-inner a:hover {
  color: var(--gold);
}

.brand-inner {
  min-height: 82px;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IA Serif", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 0.13em;
  bottom: 0.13em;
  left: 0;
  width: 4px;
  background: var(--red);
}

.status-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
  max-width: 50%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.status-stack span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  min-width: 104px;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--paper);
  font-weight: 700;
}

.status-pill.is-live {
  color: var(--paper);
  border-color: rgba(199, 31, 45, 0.7);
}

.status-pill.is-delayed {
  color: var(--paper);
  border-color: rgba(199, 31, 45, 0.7);
}

.status-pill.is-error {
  color: var(--paper);
  border-color: rgba(199, 31, 45, 0.7);
}

.search-field,
.select-field,
.filter-select-field,
.sort-field,
.pager-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-label,
.pager-controls label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

input:focus,
select:focus,
button:focus-visible {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 0;
}

.command-button,
.rank-button,
.filter-button,
.pager-button,
.text-button {
  min-height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.command-button {
  min-width: 0;
  padding: 0 12px;
  background: var(--black);
  color: var(--paper);
  border-color: var(--black);
}

.icon-command,
.pager-button {
  display: inline-grid;
  place-items: center;
}

.icon-command {
  width: 46px;
  min-width: 46px;
  padding: 0;
}

.icon-command svg,
.pager-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.command-button:hover,
.command-button[aria-pressed="true"] {
  background: var(--wine);
  color: var(--paper);
}

.controls-band {
  order: 1;
  background: var(--paper);
  border-bottom: 1px solid var(--red-line);
}

.controls-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(132px, 0.62fr)) 104px 128px 46px;
  gap: 12px;
  align-items: end;
  padding: 16px 0;
}

.action-group,
.rank-controls {
  display: grid;
  gap: 8px;
}

.action-group {
  grid-template-columns: 46px;
  justify-content: end;
}

.overview-band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--red-line);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 42px;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lede {
  max-width: 800px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1rem;
}

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

.rank-button {
  height: 46px;
  padding: 0 13px;
  background: transparent;
}

.rank-button.is-active,
.rank-button:hover {
  background: var(--black);
  color: var(--paper);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--red);
  border-left: 1px solid var(--ink);
}

.kpi-box {
  position: relative;
  min-width: 0;
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.kpi-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--red);
}

.kpi-box span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kpi-box strong {
  min-width: 0;
  overflow: hidden;
  color: var(--black);
  font-family: "IA Serif", Georgia, serif;
  font-size: clamp(1.22rem, 1.45vw, 1.58rem);
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-map-band,
.detail-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.table-band {
  order: 2;
}

.filter-band {
  display: none;
}

.market-map-band {
  order: 4;
  padding: 38px 0 76px;
}

.detail-band {
  order: 5;
}

.market-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.32fr);
  gap: 42px;
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.36fr);
  gap: 0;
  border-left: 1px solid var(--line);
}

.distribution-panel,
.mover-panel,
.detail-panel,
.watch-panel {
  min-width: 0;
  padding: 0;
}

.mover-panel {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.detail-panel,
.watch-panel {
  padding: 24px;
  border-right: 1px solid var(--line);
}

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

.panel-head h2 {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-head h2::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 24px;
  background: var(--red);
}

.panel-head span,
.panel-head button {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.country-bars {
  display: grid;
  gap: 8px;
}

.country-bar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.country-bar-name,
.country-bar-value {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 18px;
  background: var(--paper-3);
  border: 1px solid var(--red-line);
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--red);
}

.mover-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--red-line);
  border-bottom: 1px solid var(--red-line);
}

.watch-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mover-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--red-line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.watch-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
}

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

.mover-item:hover {
  color: var(--red);
}

.mover-company {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mover-company strong,
.watch-item strong,
.detail-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mover-company em,
.watch-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mover-change {
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.filter-band {
  background: var(--black);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.filter-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 22px;
  padding: 24px 0;
}

.filter-row > div {
  min-width: 0;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 112px;
  overflow: auto;
  padding-right: 2px;
}

.button-grid.dense {
  max-height: 150px;
}

.filter-button {
  min-height: 34px;
  max-width: 210px;
  padding: 0 9px;
  overflow: hidden;
  background: #0f0f0f;
  color: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-button.is-active,
.filter-button:hover {
  background: var(--paper);
  color: var(--black);
}

.table-band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.table-shell {
  padding: 36px 0 44px;
}

.table-toolbar {
  margin-bottom: 16px;
}

.table-toolbar p {
  margin-top: 5px;
  color: var(--muted);
}

.table-pagination {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

.pager-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.pager-controls select {
  width: 90px;
  height: 36px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.pager-navigation {
  display: grid;
  grid-template-columns: 42px minmax(72px, auto) 42px;
  align-items: center;
  gap: 8px;
}

.pager-button {
  width: 42px;
  min-width: 42px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

#pageLabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.pager-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-top: 3px solid var(--red);
  background: var(--paper);
}

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

.market-table th,
.market-table td {
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.market-table th {
  background: var(--black);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-table th[data-sort] {
  cursor: pointer;
}

.market-table th.is-sorted::after {
  content: "  ↓";
  color: var(--gold);
}

.market-table tbody tr {
  background: var(--paper);
}

.market-table tbody tr:hover,
.market-table tbody tr.is-selected {
  background: var(--red-soft);
}

.detail-row td {
  padding: 0;
  background: var(--paper);
}

.inline-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 36px 40px 40px;
  border-top: 2px solid var(--ink);
}

.inline-detail-copy {
  min-width: 0;
}

.inline-detail-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inline-detail-title {
  display: block;
  padding-bottom: 0.08em;
  font-family: "IA Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 4.55rem);
  line-height: 1.08;
  overflow: visible;
  overflow-wrap: anywhere;
}

.inline-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.inline-detail-meta span {
  max-width: 260px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.inline-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  background: transparent;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.inline-detail-metric {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.inline-detail-metric span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.inline-detail-metric strong {
  min-width: 0;
  overflow: hidden;
  font-family: "IA Serif", Georgia, serif;
  font-size: clamp(1.15rem, 1.7vw, 1.72rem);
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-rank {
  width: 72px;
}

.col-name {
  width: 342px;
}

.col-country {
  width: 150px;
}

.col-sector {
  width: 170px;
}

.col-cap {
  width: 170px;
}

.col-price {
  width: 132px;
}

.col-change {
  width: 100px;
}

.col-spark {
  width: 184px;
}

.rank-cell,
.num-cell,
.change-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.company-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.company-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.company-name,
.company-ticker,
.clip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-name {
  color: var(--ink);
  font-weight: 700;
}

.company-ticker {
  color: var(--muted);
  font-size: 0.76rem;
}

.sector-badge {
  --sector-line: rgba(98, 98, 98, 0.38);
  display: inline-flex;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 2px solid var(--sector-line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-detail-meta .sector-badge {
  border-color: var(--line);
  border-left: 2px solid var(--sector-line);
  background: var(--paper);
  color: var(--muted);
}

.sector-technology {
  --sector-line: rgba(36, 95, 143, 0.42);
}

.sector-semiconductors {
  --sector-line: rgba(85, 52, 138, 0.42);
}

.sector-platforms {
  --sector-line: rgba(30, 111, 134, 0.42);
}

.sector-finance {
  --sector-line: rgba(15, 111, 85, 0.42);
}

.sector-energy {
  --sector-line: rgba(154, 90, 0, 0.44);
}

.sector-healthcare {
  --sector-line: rgba(50, 117, 79, 0.42);
}

.sector-consumer {
  --sector-line: rgba(199, 31, 45, 0.4);
}

.sector-industrials {
  --sector-line: rgba(78, 95, 106, 0.42);
}

.sector-automotive {
  --sector-line: rgba(37, 92, 111, 0.42);
}

.sector-real-estate {
  --sector-line: rgba(119, 98, 38, 0.42);
}

.sector-media {
  --sector-line: rgba(95, 75, 139, 0.42);
}

.sector-diversified {
  --sector-line: rgba(102, 102, 102, 0.36);
}

.change-up {
  color: var(--green);
}

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

.spark {
  width: 150px;
  height: 42px;
  display: block;
}

.spark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.empty-cell,
.empty-detail {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.34fr);
}

.detail-panel {
  min-height: 210px;
}

.detail-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-logo {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--paper-2);
}

.detail-name {
  font-family: "IA Serif", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.detail-meta span {
  max-width: 180px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.detail-metric {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--paper);
}

.detail-metric span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-metric strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  font-weight: 700;
}

.detail-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-button {
  min-height: 32px;
  padding: 0 8px;
  background: transparent;
}

.footer-band {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .overview-grid,
  .market-map-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    min-height: auto;
    padding-top: 38px;
  }

  .market-map-grid,
  .detail-grid {
    border-left: 0;
  }

  .market-map-grid {
    gap: 34px;
  }

  .mover-panel {
    padding-top: 30px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-panel,
  .watch-panel {
    border-left: 1px solid var(--line);
  }

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

  .search-field {
    grid-column: span 2;
  }

  .select-field,
  .sort-field {
    grid-column: span 1;
  }

  .action-group {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .utility-inner,
  .brand-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
  }

  .utility-row {
    display: none;
  }

  .brand-inner {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    padding: 8px 0;
  }

  .utility-actions,
  .utility-copy {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-mark {
    flex: 0 0 auto;
    font-size: 1.62rem;
  }

  .status-stack {
    align-items: end;
    justify-items: end;
    max-width: 132px;
  }

  #sourceStatus {
    display: none;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .filter-select-field,
  .select-field {
    grid-column: span 1;
    width: auto;
    flex: auto;
  }

  .sort-field,
  .action-group {
    grid-column: span 1;
  }

  .rank-controls,
  .action-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-button {
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 0;
    font-size: 0.74rem;
  }

  .icon-command {
    width: 100%;
    min-width: 0;
    height: 46px;
  }

  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .kpi-box {
    min-height: 90px;
    padding: 14px;
  }

  .kpi-box strong {
    font-size: 1.22rem;
  }

  .overview-grid {
    gap: 16px;
    padding: 26px 0;
  }

  .lede {
    display: none;
  }

  .rank-controls {
    overflow-x: auto;
    margin-top: 0;
  }

  .rank-button {
    min-height: 40px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .country-bar {
    grid-template-columns: 86px minmax(0, 1fr) 78px;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-pagination {
    justify-content: stretch;
    padding-top: 16px;
  }

  .pager-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: end;
    gap: 12px;
  }

  .pager-controls label {
    width: 86px;
  }

  .pager-controls select {
    width: 86px;
  }

  .pager-navigation {
    justify-self: end;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .market-table {
    min-width: 1040px;
  }

  .market-table col.col-rank {
    width: 292px;
  }

  .market-table col.col-name {
    width: 150px;
  }

  .market-table col.col-country {
    width: 170px;
  }

  .market-table col.col-sector {
    width: 170px;
  }

  .market-table col.col-cap {
    width: 132px;
  }

  .market-table col.col-price {
    width: 100px;
  }

  .market-table col.col-change {
    width: 184px;
  }

  .market-table col.col-spark {
    width: 0;
  }

  .market-table th:nth-child(1),
  .market-table td:nth-child(1) {
    display: none;
  }

  .market-table .detail-row td {
    display: table-cell;
    position: static;
    width: auto;
    background: var(--paper);
  }

  .market-table th:nth-child(2),
  .market-table td:nth-child(2) {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 292px;
    min-width: 292px;
    max-width: 292px;
    background: var(--paper);
    box-shadow: 3px 0 0 var(--red), 12px 0 18px rgba(5, 5, 5, 0.08);
  }

  .market-table th:nth-child(2) {
    background: var(--black);
    color: var(--paper);
  }

  .market-table td:nth-child(2) {
    padding-right: 18px;
  }

  .company-text {
    gap: 5px;
    padding: 2px 0;
  }

  .company-name {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.12;
  }

  .inline-detail {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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