/*
   issuance.market — My Market › Overview

   One instrument of five rows, with an optional Radar strip above it. Every
   selector is namespaced mmx- so nothing here reaches another page; delete this
   file and the Overview components and the surface is gone without residue.

   Square edges throughout. Times, dates and figures are IBM Plex Mono with
   tabular numbers; everything else is Inter. Red means the filing cut-off or a
   late final, green means income, blue marks an arrival. Nothing else is
   coloured for decoration.
*/

.mmx {
    --mmx-ink: #0B1428;
    --mmx-text: #0B1428;
    --mmx-soft: #3D4757;
    --mmx-dim: #5B6577;
    --mmx-faint: #9AA4B2;
    --mmx-line: #D5DBE5;
    --mmx-hair: #E3E8EF;
    --mmx-paper: #F5F7FA;
    --mmx-wash: #F6F8FB;
    --mmx-track: #EEF2F8;
    --mmx-shade: #E0E6EF;
    --mmx-blue: #1F5FD1;
    --mmx-arrive: rgba(31, 95, 209, 0.14);
    --mmx-red: #D23B3B;
    --mmx-red-ink: #B42727;
    --mmx-income: #08783F;
    --mmx-final: #0F2A5C;
    --mmx-prelim: #3B7DDD;
    --mmx-other: #A9B4C4;
    --mmx-mkt: #BCD2F3;
    --mmx-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
    /* Height above an open row's body that belongs to the page: hero, rail,
       the closed rows' headers and the open row's own header. */
    --mmx-chrome: 640px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--mmx-paper);
    color: var(--mmx-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

    .mmx *,
    .mmx *::before,
    .mmx *::after {
        box-sizing: border-box;
    }

.mmx-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px 32px;
}

.mmx-mono {
    font-family: var(--mmx-mono);
    font-variant-numeric: tabular-nums;
}

.mmx-dim {
    color: var(--mmx-dim);
}

.mmx-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mmx-soft);
}

.mmx-sw {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
}

.mmx-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 16px;
    font-size: 11px;
    color: var(--mmx-dim);
}

    .mmx-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.mmx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--mmx-ink);
    border-radius: 0;
    background: var(--mmx-ink);
    color: #FFFFFF;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

    .mmx-btn:hover {
        background: #1B2A47;
        border-color: #1B2A47;
    }

    .mmx-btn svg {
        flex: 0 0 auto;
    }

.mmx-btn--ghost {
    min-height: 40px;
    padding: 0 18px;
    background: #FFFFFF;
    color: var(--mmx-ink);
    letter-spacing: 0.02em;
    text-transform: none;
}

    .mmx-btn--ghost:hover {
        background: #EEF3FA;
        border-color: var(--mmx-ink);
    }

.mmx-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mmx-blue);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

    .mmx-link:hover {
        color: var(--mmx-ink);
    }

.mmx :focus-visible {
    outline: 2px solid var(--mmx-blue);
    outline-offset: 2px;
}

/* ── Page states ─────────────────────────────────────────────────────────── */

.mmx-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid #E8C56B;
    background: #FFF8E6;
    color: #6B4A07;
    font-size: 13px;
}

    .mmx-notice::before {
        content: "";
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        background: #D99A12;
    }

.mmx-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 56px 48px;
    background: #FFFFFF;
    border: 1px solid var(--mmx-line);
}

    .mmx-state strong {
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }

    .mmx-state p {
        margin: 0 0 14px;
        max-width: 460px;
        color: var(--mmx-dim);
        line-height: 1.5;
    }

.mmx-skel {
    display: block;
    background: #E8EDF3;
}

/* ── Radar ───────────────────────────────────────────────────────────────── */

.mmx-radar {
    flex: 0 0 auto;
    background: var(--mmx-ink);
    color: #E2E8F0;
    animation: mmx-appear 320ms ease-out;
}

.mmx-radar-band {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.mmx-radar-band--one {
    grid-template-columns: minmax(0, 1fr);
}

.mmx-radar-cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 24px 18px 22px;
    border-left: 3px solid transparent;
}

    .mmx-radar-cell + .mmx-radar-cell {
        border-left: 1px solid #2A3A55;
    }

    .mmx-radar-cell.is-attention {
        border-left-color: #F87171;
    }

.mmx-radar-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.mmx-radar-kind {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7DD3FC;
}

.mmx-radar-kind--red {
    color: #FCA5A5;
}

.mmx-radar-meta {
    font-family: var(--mmx-mono);
    font-size: 12px;
    color: #94A3B8;
    white-space: nowrap;
}

    .mmx-radar-meta b {
        font-weight: 400;
        color: #F87171;
    }

.mmx-radar-title {
    font-size: 17px;
    color: #F8FAFC;
}

.mmx-radar-desc {
    font-size: 13px;
    color: #94A3B8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmx-tl {
    max-width: 560px;
    margin-top: 8px;
}

.mmx-tl-line {
    position: relative;
    height: 14px;
    margin: 0 6px;
}

.mmx-tl-base,
.mmx-tl-over {
    position: absolute;
    top: 50%;
}

.mmx-tl-base {
    left: 0;
    right: 50%;
    border-top: 1px solid #475569;
}

.mmx-tl-over {
    left: 50%;
    right: 0;
    border-top: 1px dashed #F87171;
}

.mmx-tl-dot {
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%);
    background: #94A3B8;
}

.mmx-tl-dot--red {
    width: 11px;
    height: 11px;
    background: #F87171;
}

.mmx-tl-steps,
.mmx-radar-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.mmx-radar-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
}

    .mmx-tl-steps b,
    .mmx-radar-facts b {
        display: block;
        font-family: var(--mmx-mono);
        font-size: 13px;
        font-weight: 400;
        color: #F8FAFC;
    }

        .mmx-tl-steps b.is-red {
            color: #F87171;
        }

    .mmx-tl-steps span,
    .mmx-radar-facts span {
        font-size: 11.5px;
        color: #94A3B8;
    }

.mmx-tl-steps > :nth-child(2) {
    text-align: center;
}

.mmx-tl-steps > :nth-child(3) {
    text-align: right;
}

.mmx-week {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.mmx-week-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
}

.mmx-week-bar {
    flex: 1 1 0;
    min-height: 2px;
    padding: 0;
    border: 0;
    background: #2A3A55;
    cursor: pointer;
    transition: height 300ms ease;
}

    .mmx-week-bar:hover {
        background: #3B4E6E;
    }

    .mmx-week-bar.is-heavy {
        background: #60A5FA;
    }

.mmx-week-days {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

    .mmx-week-days span {
        flex: 1 1 0;
        font-family: var(--mmx-mono);
        font-size: 10.5px;
        line-height: 1.25;
        color: #64748B;
        text-align: center;
    }

        .mmx-week-days span.is-heavy {
            color: #F8FAFC;
        }

.mmx-radar-action {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    color: #7DD3FC;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

    .mmx-radar-action:hover {
        color: #FFFFFF;
    }

.mmx-radar-more {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding: 10px 22px 12px 25px;
    border-top: 1px solid #2A3A55;
    font-size: 12px;
}

    .mmx-radar-more > span {
        color: #94A3B8;
    }

    .mmx-radar-more button {
        padding: 0;
        border: 0;
        background: transparent;
        color: #E2E8F0;
        font: inherit;
        cursor: pointer;
    }

        .mmx-radar-more button:hover {
            color: #7DD3FC;
        }

/* ── The instrument ──────────────────────────────────────────────────────── */

.mmx-inst {
    flex: 0 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--mmx-line);
}

.mmx-row + .mmx-row {
    border-top: 1px solid var(--mmx-hair);
}

.mmx-row.is-open {
    box-shadow: inset 3px 0 0 var(--mmx-ink);
}

.mmx-head {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: baseline;
    padding: 22px 28px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mmx-row.is-compact .mmx-head,
.mmx-row.is-open .mmx-head {
    padding-bottom: 20px;
}

.mmx-row:not(.is-open):not(.is-compact) .mmx-head + .mmx-vis {
    padding-top: 18px;
}

.mmx-head:hover .mmx-title {
    color: var(--mmx-blue);
}

.mmx-num {
    font-family: var(--mmx-mono);
    font-size: 13px;
    color: var(--mmx-dim);
}

.mmx-row.is-open .mmx-num {
    color: var(--mmx-ink);
}

.mmx-titles {
    min-width: 0;
}

.mmx-title {
    display: block;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
    transition: color 120ms ease;
}

.mmx-row.is-open .mmx-title {
    font-weight: 600;
}

.mmx-sum {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--mmx-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmx-fig {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
}

.mmx-fig-val {
    padding: 0 2px;
}

    .mmx-fig-val.is-flash {
        animation: mmx-flash 1600ms ease-out;
    }

.mmx-chev {
    flex: 0 0 auto;
    color: var(--mmx-soft);
    transition: transform 160ms ease;
}

.mmx-row.is-open .mmx-chev {
    transform: rotate(180deg);
    color: var(--mmx-ink);
}

.mmx-vis {
    padding: 0 28px 22px 88px;
}

.mmx-body {
    padding: 28px 28px 28px 88px;
    border-top: 1px solid var(--mmx-hair);
    background: var(--mmx-wash);
    animation: mmx-open 220ms ease-out;
}

.mmx-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.mmx-switch {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid #C7CFDB;
    background: #FFFFFF;
}

    .mmx-switch button {
        padding: 9px 16px;
        border: 0;
        border-left: 1px solid #C7CFDB;
        background: transparent;
        color: var(--mmx-soft);
        font: inherit;
        font-size: 13px;
        cursor: pointer;
    }

        .mmx-switch button:first-child {
            border-left: 0;
        }

        .mmx-switch button:hover:not(.is-on) {
            background: #EEF3FA;
        }

        .mmx-switch button.is-on {
            background: var(--mmx-ink);
            color: #FFFFFF;
        }

    .mmx-switch b {
        margin-left: 8px;
        font-family: var(--mmx-mono);
        font-size: 11px;
        font-weight: 400;
        opacity: 0.8;
    }

.mmx-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
}

.mmx-split {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 28px;
    margin-top: 28px;
}

.mmx-split--aside {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.mmx-rule {
    border-top: 1px solid var(--mmx-ink);
}

.mmx-empty-line {
    padding: 14px 0;
    color: var(--mmx-dim);
    font-size: 14px;
}

/* Heat shades, light to dark. */
.mmx-h0 {
    background: #E8EDF5;
}

.mmx-h1 {
    background: #BCD2F3;
}

.mmx-h2 {
    background: #8CB3EC;
}

.mmx-h3 {
    background: #5B90E2;
}

.mmx-h4 {
    background: #2F69CF;
}

.mmx-h5 {
    background: #1D4FA8;
}

.mmx-h6 {
    background: #0B1F4A;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

.mmx-table-wrap {
    overflow-x: auto;
}

.mmx-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 13px;
}

    .mmx-table th {
        padding: 12px 14px 10px 0;
        border-bottom: 1px solid var(--mmx-ink);
        background: var(--mmx-wash);
        color: var(--mmx-dim);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mmx-table td {
        padding: 12px 14px 4px 0;
        vertical-align: baseline;
    }

        .mmx-table th:first-child,
        .mmx-table td:first-child {
            padding-left: 14px;
        }

    .mmx-table .num {
        text-align: right;
        font-family: var(--mmx-mono);
        font-variant-numeric: tabular-nums;
    }

    .mmx-table .strong {
        font-weight: 600;
    }

    .mmx-table td.mmx-mono {
        white-space: nowrap;
    }

    .mmx-table tr.mmx-subline td {
        padding-top: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--mmx-hair);
        color: var(--mmx-dim);
        font-size: 12.5px;
    }

    .mmx-table tbody {
        cursor: pointer;
    }

        .mmx-table tbody:hover td {
            background: #EEF3FA;
        }

        .mmx-table tbody.is-new td {
            animation: mmx-arrive 2400ms ease-out;
        }

    .mmx-table a {
        color: var(--mmx-blue);
        text-decoration: none;
        font-size: 12px;
        white-space: nowrap;
    }

.mmx-income {
    color: var(--mmx-income);
}

.mmx-tag {
    margin-left: 6px;
    font-family: var(--mmx-mono);
    font-size: 10px;
    color: var(--mmx-blue);
}

.mmx-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* ── 01 Today: the filing day ────────────────────────────────────────────── */

.mmx-clock {
    position: relative;
    height: 36px;
    background: var(--mmx-track);
    overflow: hidden;
}

.mmx-clock--lg {
    height: 160px;
    background: #FFFFFF;
    border: 1px solid var(--mmx-hair);
    overflow: visible;
}

.mmx-clock-after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    background: var(--mmx-shade);
}

.mmx-clock--lg .mmx-clock-after {
    background: #EDF1F6;
}

.mmx-clock-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #DCE3EC;
}

.mmx-clock--lg .mmx-clock-tick {
    background: #EEF2F7;
}

.mmx-clock-bar {
    position: absolute;
    bottom: 0;
    width: 4px;
    margin-left: -2px;
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
    transform-origin: bottom;
    animation: mmx-grow 500ms ease-out;
}

.mmx-clock--lg .mmx-clock-bar {
    width: 6px;
    margin-left: -3px;
}

.mmx-clock-bar i {
    display: block;
    flex: 1 1 0;
}

.mmx-clock-cut,
.mmx-clock-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
}

.mmx-clock-cut {
    background: var(--mmx-red);
}

.mmx-clock-now {
    background: var(--mmx-blue);
    transition: left 900ms linear;
}

.mmx-clock-label {
    position: absolute;
    z-index: 2;
    padding-top: 1px;
    padding-bottom: 1px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}

    .mmx-clock-label.is-left {
        transform: translateX(-100%);
        padding-right: 8px;
    }

    .mmx-clock-label.is-right {
        padding-left: 8px;
    }

    .mmx-clock-label b {
        font-weight: 600;
    }

.mmx-clock-leader {
    position: absolute;
    width: 1px;
    background: #B8C4D6;
}

.mmx-axis {
    position: relative;
    height: 18px;
    margin-top: 6px;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
}

.mmx-axis--top {
    margin: 16px 0 0;
}

.mmx-axis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

    .mmx-axis span.is-start {
        transform: none;
    }

    .mmx-axis span.is-end {
        transform: translateX(-100%);
    }

    .mmx-axis span.is-cut {
        color: var(--mmx-red-ink);
    }

    .mmx-axis span.is-now {
        color: var(--mmx-blue);
        transition: left 900ms linear;
    }

.mmx-stages {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 24px;
    align-items: baseline;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--mmx-hair);
}

.mmx-stage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    color: var(--mmx-soft);
}

    .mmx-stage-list button {
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--mmx-text);
        font: inherit;
        cursor: pointer;
    }

        .mmx-stage-list button:hover {
            color: var(--mmx-blue);
        }

/* ── 02 Coming Up ────────────────────────────────────────────────────────── */

.mmx-days {
    display: flex;
    gap: 3px;
    height: 40px;
}

.mmx-days-cell {
    flex: 1 1 0;
    min-width: 2px;
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
    background: #E9EEF6;
}

    .mmx-days-cell.is-weekend {
        background: var(--mmx-wash);
    }

    .mmx-days-cell i {
        display: block;
        flex: 0 0 auto;
        animation: mmx-grow 400ms ease-out;
        transform-origin: bottom;
    }

.mmx-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
}

.mmx-mini {
    display: flex;
    gap: 2px;
    height: 10px;
    margin-top: 14px;
}

    .mmx-mini i {
        display: block;
        transition: flex-grow 400ms ease;
    }

.mmx-kinds {
    margin-top: 10px;
}

.mmx-kind {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--mmx-hair);
}

    .mmx-kind.is-zero {
        color: var(--mmx-faint);
    }

.mmx-kind--total {
    border-bottom: 0;
    font-weight: 600;
}

.mmx-agenda {
    max-height: 640px;
    overflow-y: auto;
    margin-top: 4px;
    padding-right: 8px;
}

.mmx-agenda-date {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0 8px;
    border: 0;
    border-bottom: 1px solid var(--mmx-line);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .mmx-agenda-date strong {
        font-size: 15px;
        font-weight: 600;
    }

    .mmx-agenda-date:hover .mmx-agenda-go {
        color: var(--mmx-blue);
    }

.mmx-agenda-tag {
    margin-left: 10px;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-blue);
}

.mmx-agenda-go {
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
    white-space: nowrap;
}

.mmx-ev {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #EDF0F5;
    font-size: 13px;
}

    .mmx-ev .mmx-sw {
        margin-top: 5px;
    }

    .mmx-ev strong {
        font-weight: 600;
    }

.mmx-ev-desc {
    display: block;
    margin-top: 2px;
    color: var(--mmx-dim);
}

/* ── 03 Schedule Pressure ────────────────────────────────────────────────── */

.mmx-months {
    position: relative;
    height: 16px;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
}

    .mmx-months span {
        position: absolute;
        white-space: nowrap;
    }

.mmx-strip {
    display: flex;
    gap: 1px;
    height: 28px;
    margin-top: 4px;
}

    .mmx-strip i {
        display: block;
        flex: 1 1 0;
        min-width: 1px;
        transition: background-color 300ms ease;
    }

        .mmx-strip i.is-past {
            opacity: 0.35;
        }

.mmx-peak {
    position: relative;
    height: 20px;
    margin-top: 4px;
}

    .mmx-peak span {
        position: absolute;
        top: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: var(--mmx-mono);
        font-size: 11px;
        white-space: nowrap;
        transition: left 400ms ease;
    }

        .mmx-peak span::before {
            content: "";
            width: 0;
            height: 0;
            margin-left: -5px;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 6px solid var(--mmx-ink);
        }

.mmx-scale {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
}

    .mmx-scale i {
        display: block;
        width: 12px;
        height: 12px;
    }

.mmx-heat {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 8px;
    margin-top: 16px;
}

.mmx-heat-cols,
.mmx-heat-grid {
    display: grid;
    grid-template-columns: repeat(var(--mmx-weeks, 26), minmax(0, 1fr));
    gap: 3px;
}

.mmx-heat-cols {
    height: 18px;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
}

    .mmx-heat-cols span {
        white-space: nowrap;
        overflow: visible;
    }

.mmx-heat-grid {
    grid-template-rows: repeat(5, 20px);
    grid-auto-flow: column;
}

.mmx-heat-rows {
    display: grid;
    grid-template-rows: repeat(5, 20px);
    row-gap: 3px;
    align-items: center;
    font-family: var(--mmx-mono);
    font-size: 11px;
    color: var(--mmx-dim);
}

.mmx-heat-cell {
    padding: 0;
    border: 0;
    cursor: pointer;
    transition: background-color 300ms ease;
}

    .mmx-heat-cell:hover {
        outline: 1px solid var(--mmx-ink);
        outline-offset: 0;
    }

    .mmx-heat-cell.is-past {
        opacity: 0.35;
    }

    .mmx-heat-cell.is-selected {
        outline: 2px solid var(--mmx-red);
        outline-offset: 1px;
    }

.mmx-heat-blank {
    display: block;
}

/* The open view's Highcharts heatmap sits on a white card, as it did before. */
.mmx-pressure-chart {
    min-height: 250px;
    padding: 8px 4px 4px;
    background: #FFFFFF;
    border: 1px solid var(--mmx-hair);
}

.mmx-dayhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mmx-ink);
}

    .mmx-dayhead strong {
        font-size: 16px;
        font-weight: 600;
    }

.mmx-busiest {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--mmx-soft);
}

    .mmx-busiest button {
        margin-left: 14px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--mmx-text);
        font-family: var(--mmx-mono);
        font-size: 13px;
        cursor: pointer;
    }

        .mmx-busiest button:hover {
            color: var(--mmx-blue);
        }

/* ── 04 Composition ──────────────────────────────────────────────────────── */

.mmx-stack {
    display: flex;
    gap: 2px;
    height: 22px;
}

    .mmx-stack i {
        display: block;
        min-width: 2px;
        transition: flex-grow 500ms ease;
    }

.mmx-stack-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mmx-soft);
}

    .mmx-stack-keys b {
        font-family: var(--mmx-mono);
        font-weight: 400;
    }

.mmx-rank-row {
    width: 100%;
    display: grid;
    grid-template-columns: 12px minmax(0, 280px) minmax(0, 1fr) 56px 48px;
    column-gap: 14px;
    align-items: center;
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid var(--mmx-hair);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .mmx-rank-row:hover {
        background: #EEF3FA;
    }

    .mmx-rank-row.is-selected {
        background: #E9EEF6;
        box-shadow: inset 3px 0 0 var(--mmx-ink);
        font-weight: 600;
    }

    .mmx-rank-row .name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mmx-rank-row .num {
        text-align: right;
        font-family: var(--mmx-mono);
        font-weight: 400;
    }

.mmx-rank-track {
    position: relative;
    height: 8px;
    background: #EDF1F6;
}

    .mmx-rank-track i {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        transition: width 500ms ease;
    }

.mmx-pick {
    padding-top: 18px;
}

.mmx-pick-name {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mmx-pick-figure {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 14px 0 24px;
}

    .mmx-pick-figure b {
        font-size: 44px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.02em;
    }

.mmx-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--mmx-dim);
}

/* ── 05 Recent Activity ──────────────────────────────────────────────────── */

.mmx-line {
    width: 100%;
    display: grid;
    grid-template-columns: 64px 12px minmax(0, 1fr) 76px 52px;
    column-gap: 12px;
    align-items: center;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .mmx-line:hover .what strong {
        color: var(--mmx-blue);
    }

    .mmx-line.is-new {
        animation: mmx-arrive 2400ms ease-out;
    }

    .mmx-line .time {
        font-family: var(--mmx-mono);
        font-size: 12px;
        color: var(--mmx-dim);
    }

    .mmx-line .what {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .mmx-line .what strong {
            font-weight: 600;
        }

        .mmx-line .what span {
            color: var(--mmx-dim);
        }

    .mmx-line .num {
        font-family: var(--mmx-mono);
        font-size: 13px;
        text-align: right;
    }

/* ── Motion ──────────────────────────────────────────────────────────────── */

@keyframes mmx-flash {
    0% {
        background: var(--mmx-arrive);
        box-shadow: 0 0 0 4px var(--mmx-arrive);
    }

    100% {
        background: transparent;
        box-shadow: 0 0 0 4px transparent;
    }
}

@keyframes mmx-arrive {
    0% {
        background: rgba(31, 95, 209, 0.18);
    }

    100% {
        background: transparent;
    }
}

@keyframes mmx-grow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes mmx-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mmx-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Fixed workspace: cap an open row so the rows below stay in view ─────── */

@media (min-width: 1281px) {
    .mmx-body {
        max-height: max(420px, calc(100dvh - var(--mmx-chrome)));
        overflow-y: auto;
    }
}

/* ── Side window and smaller ─────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .mmx-split,
    .mmx-split--aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .mmx-radar-band {
        grid-template-columns: minmax(0, 1fr);
    }

    .mmx-radar-cell + .mmx-radar-cell {
        border-left: 0;
        border-top: 1px solid #2A3A55;
    }

    .mmx-stages {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }
}

@media (max-width: 1000px) {
    .mmx-scroll {
        padding: 16px 20px 24px;
    }

    .mmx-head {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        column-gap: 12px;
        padding: 18px 20px 0;
    }

    .mmx-row.is-compact .mmx-head,
    .mmx-row.is-open .mmx-head {
        padding-bottom: 16px;
    }

    .mmx-title,
    .mmx-fig {
        font-size: 19px;
    }

    .mmx-sum {
        font-size: 13px;
    }

    .mmx-vis {
        padding: 0 20px 18px 64px;
    }

    .mmx-body {
        padding: 22px 20px;
    }

    .mmx-line {
        grid-template-columns: 50px 10px minmax(0, 1fr) 64px;
    }

        .mmx-line .protection {
            display: none;
        }

    .mmx-rank-row {
        grid-template-columns: 12px minmax(0, 1fr) 90px 48px 40px;
    }

    .mmx-clock-label .detail {
        display: none;
    }

    .mmx-state {
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .mmx-fig {
        font-size: 16px;
        gap: 8px;
    }

    .mmx-vis {
        padding-left: 20px;
    }

    .mmx-rank-row {
        grid-template-columns: 12px minmax(0, 1fr) 48px 40px;
    }

        .mmx-rank-row .mmx-rank-track {
            display: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    .mmx *,
    .mmx *::before,
    .mmx *::after {
        animation: none !important;
        transition: none !important;
    }

    /* An arrival still shows; it simply holds instead of fading. */
    .mmx-line.is-new,
    .mmx-table tbody.is-new td {
        background: rgba(31, 95, 209, 0.10);
    }
}

/* A wrapper that lays out as if absent, for render fragments that need one root. */
.mmx-contents {
    display: contents;
}

/* ══ Open views: one structure for all five ═══════════════════════════════
   Chart first (legend top right), four figures under it, a 300px column on the
   right (a ranked list or the selected item), detail full width below. */

.mmx-grid2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 40px;
    row-gap: 28px;
    align-items: start;
}

.mmx-viewhead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.mmx-detail {
    margin-top: 32px;
}

.mmx-dash {
    display: inline-block;
    width: 14px;
    border-top: 1.5px dashed var(--mmx-dim);
}

.mmx-sw--ring {
    background: #FFFFFF;
    border: 2px solid var(--mmx-final);
}

/* Figures */

.mmx-stats {
    display: grid;
    margin-top: 16px;
    border-top: 1px solid var(--mmx-hair);
}

.mmx-stat {
    min-width: 0;
    padding: 10px 0 0 16px;
    border-left: 1px solid var(--mmx-hair);
}

    .mmx-stat:first-child {
        padding-left: 0;
        border-left: 0;
    }

.mmx-stat-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mmx-dim);
    white-space: nowrap;
}

.mmx-stat-val {
    margin-top: 4px;
    font-family: var(--mmx-mono);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    color: var(--mmx-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .mmx-stat-val .is-flash {
        animation: mmx-flash 1600ms ease-out;
    }

.mmx-stat-sub {
    margin-left: 6px;
    font-size: 12px;
    color: var(--mmx-dim);
}

/* Right-hand column */

.mmx-aside {
    min-width: 0;
}

.mmx-aside-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mmx-ink);
}

    .mmx-aside-head > span:first-child {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.1em;
        color: var(--mmx-ink);
    }

    .mmx-aside-head .mmx-mono {
        font-size: 11px;
        color: var(--mmx-dim);
    }

.mmx-aside .mmx-aside {
    margin-top: 18px;
}

.mmx-rank {
    display: block;
    width: 100%;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid var(--mmx-hair);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

button.mmx-rank {
    cursor: pointer;
}

    button.mmx-rank:hover .name {
        color: var(--mmx-blue);
    }

.mmx-rank-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
}

    .mmx-rank-top .mmx-mono {
        font-size: 12px;
    }

.mmx-rank-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

    .mmx-rank-name .name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.mmx-mark {
    flex: 0 0 auto;
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--mmx-final);
}

    .mmx-mark.is-off {
        background: transparent;
    }

.mmx-rank-detail {
    display: block;
    margin: 3px 0 0 15px;
    font-size: 12px;
    color: var(--mmx-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmx-rank-bar {
    display: block;
    height: 3px;
    margin: 5px 0 0 15px;
    background: #E6EBF2;
}

    .mmx-rank-bar i {
        display: block;
        height: 3px;
        transition: width 500ms ease;
    }

.mmx-aside-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--mmx-dim);
}

.mmx-kv {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--mmx-hair);
    font-size: 13px;
}

.mmx-ranked {
    margin-top: 20px;
    border-top: 1px solid var(--mmx-ink);
    background: #FFFFFF;
}

/* ── The market's day (Issuance Today, and behind 01 Today) ───────────────── */

.mmx-mkt {
    position: relative;
    height: 150px;
    background: #F7F9FC;
    border: 1px solid var(--mmx-hair);
    border-bottom-color: #C7CFDB;
}

.mmx-mkt--lg {
    height: 220px;
    background: #FFFFFF;
}

.mmx-mkt-ahead,
.mmx-mkt-after,
.mmx-mkt-tick {
    position: absolute;
    top: 0;
    bottom: 0;
}

.mmx-mkt-ahead {
    right: 0;
    background: var(--mmx-track);
    transition: left 900ms linear;
}

.mmx-mkt--lg .mmx-mkt-ahead {
    background: #F3F6FA;
}

.mmx-mkt-after {
    right: 0;
    background: rgba(160, 172, 190, 0.12);
}

.mmx-mkt-tick {
    width: 1px;
    background: var(--mmx-hair);
}

.mmx-mkt--lg .mmx-mkt-tick {
    background: #EEF2F7;
}

/* In the large chart the top 66px hold the labels; the plot is below them. */
.mmx-mkt-plot {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    bottom: 0;
}

.mmx-mkt-cols {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 1px;
}

    .mmx-mkt-cols i {
        display: block;
        flex: 1 1 0;
        min-width: 0;
        background: var(--mmx-mkt);
        transition: height 400ms ease, background-color 400ms ease;
    }

        .mmx-mkt-cols i.is-recent {
            background: var(--mmx-prelim);
        }

    .mmx-mkt-cols.is-faint i {
        background: #DDE5F1;
    }

.mmx-mkt-avg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

    .mmx-mkt-avg polyline {
        fill: none;
        stroke: var(--mmx-dim);
        stroke-width: 1.5;
        stroke-dasharray: 4 3;
        vector-effect: non-scaling-stroke;
    }

.mmx-mkt--lg .mmx-mkt-avg polyline {
    stroke: #8A94A6;
    stroke-width: 1.25;
}

.mmx-mkt-mark {
    position: absolute;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: var(--mmx-final);
    outline: 2px solid #FFFFFF;
    animation: mmx-appear 400ms ease-out;
    transition: bottom 400ms ease;
}

    .mmx-mkt-mark.is-ring {
        background: #FFFFFF;
        border: 2px solid var(--mmx-final);
    }

/* The user's filings in 01 Today: full-height bars in their document colour. */
.mmx-mine {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 6px;
    margin-left: -3px;
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
    transform-origin: bottom;
    animation: mmx-grow 500ms ease-out;
}

    .mmx-mine i {
        display: block;
        flex: 1 1 0;
    }

/* ── Issuance Today band ─────────────────────────────────────────────────── */

.mmx-band {
    flex: 0 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--mmx-line);
    animation: mmx-appear 300ms ease-out;
}

.mmx-band-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: baseline;
    padding: 22px 28px 0;
}

.mmx-band-live {
    width: 8px;
    height: 8px;
    background: #2FBF71;
    align-self: center;
}

.mmx-band-fig {
    text-align: right;
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
}

    .mmx-band-fig .mmx-fig-val {
        display: inline-block;
    }

.mmx-band-figsub {
    display: block;
    margin-top: 4px;
    font-family: var(--mmx-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--mmx-dim);
}

.mmx-band-body {
    padding: 18px 28px 24px 88px;
}

/* Where the workspace has a fixed height, the band takes the space left under the rows and
   gives it to the chart (150px to 460px), so the page ends at the footer, not in a gap. */
.mmx-band {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

    .mmx-band .mmx-band-body {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .mmx-band .mmx-grid2 {
        flex: 1 1 auto;
        align-items: stretch;
    }

.mmx-band-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .mmx-band-main .mmx-mkt {
        flex: 1 1 150px;
        height: auto;
        min-height: 150px;
        max-height: 460px;
    }

/* ── 02 Coming Up, open: thirty days as columns ──────────────────────────── */

.mmx-daycols {
    display: flex;
    gap: 3px;
    height: 170px;
    padding-top: 8px;
    background: #FFFFFF;
    border: 1px solid var(--mmx-hair);
    border-bottom-color: #C7CFDB;
}

.mmx-daycol {
    flex: 1 1 0;
    min-width: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 0;
    border: 0;
    background: #FFFFFF;
    cursor: pointer;
    transition: opacity 200ms ease;
}

    .mmx-daycol.is-weekend {
        background: #F1F4F9;
    }

    .mmx-daycol.is-out {
        opacity: 0.35;
    }

    .mmx-daycol.is-today {
        box-shadow: inset 0 -3px 0 var(--mmx-blue);
    }

    .mmx-daycol:hover {
        outline: 1px solid var(--mmx-ink);
        outline-offset: -1px;
        opacity: 1;
    }

    .mmx-daycol.is-selected {
        outline: 2px solid var(--mmx-red);
        outline-offset: -2px;
        opacity: 1;
    }

/* The day picked in the chart, in the agenda. */
.mmx-agenda-day {
    transition: background-color 300ms ease;
}

    .mmx-agenda-day.is-selected {
        background: #EEF3FA;
        box-shadow: inset 3px 0 0 var(--mmx-ink);
    }

        .mmx-agenda-day.is-selected .mmx-agenda-date,
        .mmx-agenda-day.is-selected .mmx-ev {
            padding-left: 12px;
            padding-right: 8px;
        }

.mmx-agenda-date:focus:not(:focus-visible) {
    outline: none;
}

.mmx-daycol i {
    display: block;
    flex: 0 0 auto;
    transform-origin: bottom;
    animation: mmx-grow 400ms ease-out;
}

@media (max-width: 1100px) {
    .mmx-grid2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1000px) {
    .mmx-band-head {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        column-gap: 12px;
        padding: 18px 20px 0;
    }

    .mmx-band-fig {
        font-size: 19px;
    }

    .mmx-band-body {
        padding: 16px 20px 20px;
    }
}

@media (max-width: 640px) {
    /* 192 columns do not fit with gaps at phone width; without them they stay on the ticks. */
    .mmx-mkt-cols {
        gap: 0;
    }

    .mmx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 10px;
    }

    .mmx-stat:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .mmx-band-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mmx-band-live {
        display: none;
    }
}
