.jn-market-id {
    --jmi-ink: #101e31;
    --jmi-muted: #4f6075;
    --jmi-line: #dbe3ec;
    --jmi-red: #b13c42;
    --jmi-green: #11836a;
    --jmi-gray: #8797ad;
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
    padding: 43px 0 27px;
    color: var(--jmi-ink);
    font: 400 14px/1.5 var(--ja-font, Inter, system-ui, sans-serif);
}

.jmi-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 23px;
}
.jmi-eyebrow {
    margin: 0 0 4px;
    color: #354c6a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .105em;
    text-transform: uppercase;
}
.jmi-heading h1 {
    margin: 0;
    font: 650 clamp(38px, 5.5vw, 64px)/1.05 var(--ja-font-serif, 'Source Serif 4', Georgia, serif);
    letter-spacing: -.055em;
}
.jmi-subtitle { margin: 8px 0 0; color: var(--jmi-muted); font-size: 15px; }
.jmi-status {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    padding: 6px 10px;
    background: #e6f3ee;
    border: 1px solid #cfebe0;
    border-radius: 999px;
    color: #155e50;
    font-size: 12px;
    font-weight: 700;
}
.jmi-status > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.jn-market-id[data-market-status="stale"] .jmi-status { color: #793c14; background: #fff0d9; border-color: #f3dfbd; }
.jn-market-id[data-market-status="unavailable"] .jmi-status { color: #49596e; background: #e7edf4; border-color: #dbe3ec; }

.jmi-board { display: grid; grid-template-columns: 1.24fr 1fr; gap: 16px; }
.jmi-panel, .jmi-quote { border-radius: 14px; min-width: 0; }
.jmi-panel { background: #fff; border: 1px solid var(--jmi-line); }
.jmi-quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 252px;
    padding: 28px 31px 25px;
    background: linear-gradient(125deg, #0e223a, #1b3555);
    color: white;
}
.jmi-ticker { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: #d0deef; font-size: 13px; }
.jmi-ticker strong {
    padding: 3px 7px;
    border: 1px solid #ffffff32;
    border-radius: 5px;
    background: #ffffff14;
    color: #f5faff;
    font-size: 11px;
    letter-spacing: .065em;
}
.jmi-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.jmi-number strong { font-size: clamp(42px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.075em; }
.jmi-number > span { color: #c4d3e5; font-size: 14px; font-weight: 500; }
.jmi-change {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    margin-top: 12px;
    color: #d0deef;
    font-size: 12px;
}
.jmi-change-pill {
    padding: 4px 8px;
    border-radius: 6px;
    background: #344764;
    color: #e7eff9;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.jmi-change-pill[data-direction="-1"] { background: #533643; color: #ffdde3; }
.jmi-change-pill[data-direction="1"] { background: #214a47; color: #d4fae8; }
.jmi-meta {
    display: grid;
    grid-template-columns: minmax(70px, .55fr) minmax(0, 1.45fr);
    gap: 9px 16px;
    padding-top: 15px;
    border-top: 1px solid #ffffff38;
}
.jmi-meta > div { display: grid; gap: 3px; }
.jmi-meta span { color: #c4d3e5; font-size: 12px; }
.jmi-meta strong, .jmi-meta time { font-size: 13px; font-weight: 650; }

.jmi-session { padding: 24px 25px; }
.jmi-panel-heading { display: flex; gap: 8px 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.jmi-panel-heading h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.jmi-panel-heading > time, .jmi-panel-heading > span { color: var(--jmi-muted); font-size: 12px; }
.jmi-range { margin: 18px 0 13px; }
.jmi-range-labels, .jmi-range-values { display: flex; justify-content: space-between; gap: 12px; }
.jmi-range-labels { color: var(--jmi-muted); font-size: 11px; }
.jmi-range-values { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.jmi-range-track { position: relative; height: 7px; margin: 6px 0 5px; background: #dce7f2; border-radius: 12px; }
.jmi-range-track span {
    position: absolute;
    left: var(--position);
    top: -3px;
    height: 13px;
    width: 3px;
    border-radius: 3px;
    background: #164780;
    transform: translateX(-50%);
}
.jmi-stats { margin: 12px 0 0; }
.jmi-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding: 8px 0; border-top: 1px solid #e6ecf2; }
.jmi-stats > div:last-child { padding-bottom: 0; }
.jmi-stats dt, .jmi-breadth-stats dt { color: var(--jmi-muted); font-size: 13px; }
.jmi-stats dd, .jmi-breadth-stats dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.jmi-breadth { margin-top: 16px; padding: 20px 25px; }
.jmi-breadth-track { display: flex; gap: 3px; height: 8px; margin: 14px 0 12px; border-radius: 7px; overflow: hidden; }
.jmi-breadth-track > span { flex: var(--count); background: var(--movement); }
.jmi-breadth [data-movement="positive"] { --movement: var(--jmi-green); }
.jmi-breadth [data-movement="neutral"] { --movement: var(--jmi-gray); }
.jmi-breadth [data-movement="negative"] { --movement: var(--jmi-red); }
.jmi-breadth-stats { display: flex; flex-wrap: wrap; gap: 24px; margin: 10px 0 0; }
.jmi-breadth-stats > div { display: flex; align-items: baseline; gap: 7px; }
.jmi-breadth-stats dt > span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--movement); }
.jmi-note { margin: 12px 0 0; color: var(--jmi-muted); font-size: 12px; }

@media (max-width: 730px) {
    .jn-market-id { width: calc(100% - 32px); padding-top: 23px; }
    .jmi-heading { gap: 12px; margin-bottom: 14px; }
    .jmi-subtitle { margin-top: 6px; font-size: 13px; }
    .jmi-board { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .jmi-quote { gap: 18px; min-height: 0; padding: 20px; }
    .jmi-number strong { font-size: clamp(43px, 12vw, 64px); }
    .jmi-ticker { margin-bottom: 7px; }
    .jmi-change { margin-top: 9px; }
    .jmi-meta { padding-top: 12px; }
    .jmi-session, .jmi-breadth { padding: 16px 18px; }
    .jmi-breadth { margin-top: 12px; }
}

@media (max-width: 360px) {
    .jn-market-id { width: calc(100% - 24px); }
    .jmi-quote, .jmi-session, .jmi-breadth { padding-inline: 15px; }
    .jmi-breadth-stats { gap: 13px; }
}

.jmi-nav {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid #d7e0eb;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}
.jmi-nav a { padding: .7rem 0; color: inherit; }
.jmi-nav a[aria-current="page"] {
  border-bottom: 2px solid #b82036;
  font-weight: 700;
}
.jmi-movers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.jmi-movers h2 { margin: 0 0 .4rem; }
.jmi-table-wrap { overflow-x: auto; }
.jmi-table { width: 100%; text-align: left; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.jmi-table th, .jmi-table td { border-bottom: 1px solid #d7e0eb; padding: .6rem .5rem; }
.jmi-table td, .jmi-table thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.jmi-table small { display: block; font-weight: 400; }
.jmi-table [data-direction="1"] { color: #087453; }
.jmi-table [data-direction="-1"] { color: #b82036; }
@media (max-width: 540px) {
  .jmi-table { min-width: 31rem; }
}
.jmi-stock-list { display: grid; gap: .65rem; margin: 1rem 0; padding: 0; list-style: none; }
.jmi-stock-list a { display: block; padding: .7rem .8rem; background: #f1f5f9; color: #172437; }
