:root {
    --qb-bg: #1a1a27;
    --qb-logo-bg: #1d1b28;
    --qb-panel: #1e1e2d;
    --qb-panel-2: #252536;
    --qb-card-bg: rgba(255, 255, 255, 0.05);
    --qb-card-bg-strong: rgba(255, 255, 255, 0.07);
    --qb-about-section-bg: #22222f;
    --qb-border: rgba(255, 255, 255, 0.10);
    --qb-text: rgba(255, 255, 255, 0.88);
    --qb-muted: rgba(255, 255, 255, 0.62);
    --qb-blue: #6ba3d8;
    --qb-emphasis-blue: #6BA3D8;
    --qb-green: #13ae80;
    --qb-red: #ff5d63;
    --qb-better: #76a8ff;
    --qb-worse: #ff5d63;
    --qb-amber: #e5aa4e;
    --qb-purple: #7e6fff;
    --qb-sp500-section-rgb: 117, 167, 255;
    --qb-non-sp500-section-rgb: 229, 170, 78;
    --qb-sp500-section-header: rgba(var(--qb-sp500-section-rgb), 0.18);
    --qb-non-sp500-section-header: rgba(var(--qb-non-sp500-section-rgb), 0.18);
    --qb-sp500-section-tint: rgba(var(--qb-sp500-section-rgb), 0.11);
    --qb-non-sp500-section-tint: rgba(var(--qb-non-sp500-section-rgb), 0.11);
    --qb-order-type-market: #3dcb6c;
    --qb-order-type-marketable-limit: #69d98d;
    --qb-order-type-inside-quote-limit: #75a7ff;
    --qb-order-type-at-quote-limit: #e5aa4e;
    --qb-order-type-near-quote-limit: #c29565;
    --qb-order-type-non-marketable-limit: var(--qb-order-type-near-quote-limit);
    --qb-order-type-directed: #171a22;
    --qb-card-radius: 6px;
    --qb-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    --site-max-width: 1180px;
    --site-gutter: clamp(12px, 2vw, 24px);
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--qb-bg);
    color: var(--qb-text);
}

a {
    color: var(--qb-blue);
}

h1:focus {
    outline: none;
}

.page-wrap {
    width: min(100% - (var(--site-gutter) * 2), var(--site-max-width));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.rule605-list-page {
    padding-bottom: 14px;
}

.rule605-firm-page {
    padding-top: 18px;
}

.hero-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 470px);
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--qb-green);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.display-title {
    margin: 4px 0 8px;
    font-size: clamp(2.2rem, 6vw, 5.2rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
}

.lede {
    max-width: 760px;
    color: var(--qb-muted);
    font-size: 1rem;
}

.site-page-header {
    display: grid;
    gap: 0;
}

.site-page-header > h1,
.site-page-header > .site-page-title-row {
    margin: 0;
}

.site-page-header > .lede {
    margin: 1rem 0;
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.primary-action {
    border: 1px solid rgba(126, 111, 255, 0.75);
    border-radius: 4px;
    background: rgba(126, 111, 255, 0.22);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 8px 12px;
}

.primary-action:disabled {
    cursor: wait;
    opacity: 0.65;
}

.perf-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(6, minmax(90px, auto));
    gap: 0;
    overflow-x: auto;
    font-size: 0.9rem;
}

.perf-grid > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 10px;
    white-space: nowrap;
}

.perf-grid-head {
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
}

.hero-art {
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--qb-card-radius);
    background:
        linear-gradient(115deg, rgba(29, 27, 40, 0.55), rgba(29, 27, 40, 0.12)),
        url("../img/rule605-overview-strip.svg") center / cover no-repeat;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.metric-card,
.panel {
    min-width: 0;
    background: var(--qb-card-bg);
    border: 1px solid var(--qb-border);
    border-radius: var(--qb-card-radius);
    box-shadow: var(--qb-card-shadow);
}

.metric-card {
    padding: 16px;
}

.metric-label {
    color: var(--qb-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    margin-top: 4px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
}

.panel {
    padding: 8px;
    margin-bottom: 10px;
}

.panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.panel-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 850;
}

.broker-list-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.broker-section-filter {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
}

.broker-section-filter label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.broker-section-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.broker-section-filter span {
    display: block;
    padding: 5px 10px;
    color: var(--qb-muted);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.broker-section-filter input:checked + span {
    color: #07101e;
    background: var(--qb-green);
}

.broker-month-nav {
    display: flex;
    align-items: center;
}

.muted {
    color: var(--qb-muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.period-navigator {
    display: inline-grid;
    grid-template-columns: 22px minmax(76px, auto) 22px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.period-navigator--small {
    grid-template-columns: 18px 68px 18px;
    gap: 5px;
    font-size: 0.72rem;
}

.period-navigator--large {
    grid-template-columns: 26px minmax(92px, auto) 26px;
    gap: 7px;
    font-size: 0.9rem;
}

.period-navigator-label {
    text-align: center;
    font-weight: 900;
}

.period-navigator-button {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.period-navigator--small .period-navigator-button {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 1rem;
}

.period-navigator--large .period-navigator-button {
    width: 26px;
    height: 26px;
    font-size: 1.2rem;
}

.period-navigator-button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.10);
}

.period-navigator-button:disabled {
    color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
    cursor: default;
}

.data-table th {
    color: #fff;
    background: var(--qb-card-bg-strong);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: middle;
}

.data-table td.numeric,
.data-table th.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rule605-breakdown-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.735rem;
}

.rule605-breakdown-table th,
.rule605-breakdown-table td {
    padding: 6px 6px;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.rule605-breakdown-scroll {
    overflow-x: hidden;
}

.rule605-breakdown-col-order-type {
    width: 11%;
}

.rule605-breakdown-col-order-size {
    width: 10%;
}

.rule605-breakdown-col-orders,
.rule605-breakdown-col-covered {
    width: 9%;
}

.rule605-breakdown-col-executed,
.rule605-breakdown-col-not-exec,
.rule605-breakdown-col-routed,
.rule605-breakdown-col-improved,
.rule605-breakdown-col-at-nbbo,
.rule605-breakdown-col-outside {
    width: 7%;
}

.rule605-breakdown-col-eff,
.rule605-breakdown-col-quote {
    width: 6%;
}

.rule605-breakdown-col-eq {
    width: 7%;
}

.rule605-breakdown-table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.rule605-breakdown-table thead tr:first-child th {
    text-align: center;
}

.rule605-breakdown-table th[rowspan] {
    vertical-align: middle;
}

.rule605-breakdown-table tbody td {
    color: rgba(224, 231, 245, 0.72);
}

.rule605-breakdown-table tbody tr.breakdown-subtotal td {
    color: rgba(235, 240, 252, 0.94);
    font-weight: 900;
}

.rule605-breakdown-table tbody tr.breakdown-subtotal td:first-child,
.rule605-breakdown-table tbody tr.breakdown-subtotal td:nth-child(2) {
    color: #e8eeff;
}

.rule605-breakdown-table .breakdown-group {
    color: rgba(235, 240, 252, 0.92);
    text-align: center;
}

.rule605-breakdown-table .breakdown-volume {
    background-color: rgba(126, 111, 255, 0.18);
}

.rule605-breakdown-table .breakdown-execution {
    background-color: rgba(31, 166, 102, 0.16);
}

.rule605-breakdown-table .breakdown-improvements {
    background-color: rgba(117, 167, 255, 0.14);
}

.rule605-breakdown-table .breakdown-eq {
    background-color: rgba(255, 93, 99, 0.16);
}

.rule605-retail-routes-panel {
    margin-top: 8px;
}

.rule605-retail-routes-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
    font-size: 0.68rem;
}

.rule605-retail-routes-table th,
.rule605-retail-routes-table td {
    padding: 5px 6px;
    line-height: 1.15;
}

.rule605-retail-routes-table thead tr:first-child th {
    text-align: center;
}

.rule605-retail-routes-table th[rowspan] {
    vertical-align: middle;
}

.rule605-retail-routes-table th:first-child,
.rule605-retail-routes-table td:first-child {
    width: 138px;
}

.rule605-retail-routes-table th:nth-child(2),
.rule605-retail-routes-table td:nth-child(2) {
    width: 64px;
}

.retail-section-heading {
    color: rgba(235, 240, 252, 0.94);
}

.retail-section-sp500 {
    background: var(--qb-sp500-section-header) !important;
}

.retail-section-other {
    background: var(--qb-non-sp500-section-header) !important;
}

.retail-broker-name {
    max-width: 132px;
    color: #f2f6ff;
    font-weight: 900;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.retail-broker-crd {
    margin-top: 2px;
    color: var(--qb-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.retail-route-estimate-note {
    color: #fff;
    cursor: help;
}

.retail-route-overall {
    color: #fff;
    font-weight: 950;
}

.retail-route-block {
    min-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.retail-route-block.retail-block-sp500 {
    box-shadow: inset 3px 0 0 rgba(117, 167, 255, 0.48);
}

.retail-route-block.retail-block-other {
    box-shadow: inset 3px 0 0 rgba(229, 170, 78, 0.50);
}

.retail-route-block.retail-block-market {
    background: color-mix(in srgb, var(--qb-order-type-market) 14%, transparent);
}

.retail-route-block.retail-block-marketable-limit {
    background: color-mix(in srgb, var(--qb-order-type-marketable-limit) 13%, transparent);
}

.retail-route-block.retail-block-limit {
    background: color-mix(in srgb, var(--qb-order-type-non-marketable-limit) 14%, transparent);
}

.retail-route-pct {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 950;
}

.retail-route-payment {
    color: #dce8ff;
    font-weight: 850;
}

.retail-route-payment-negative {
    color: var(--qb-red);
}

.retail-route-cph {
    color: rgba(224, 231, 245, 0.62);
    font-size: 0.62rem;
    font-weight: 800;
}

.retail-route-detail {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: 1px;
    white-space: nowrap;
}

.rule605-list-period {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.45rem;
    color: var(--qb-muted);
    font-size: 0.84rem;
    white-space: nowrap;
}

.rule605-list-period strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}

.rule605-notional-cell {
    min-width: 218px;
}

.rule605-notional-capsule {
    display: grid;
    grid-template-columns: minmax(104px, 1fr) minmax(92px, 0.82fr);
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    max-width: 252px;
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: var(--qb-card-radius);
    background: transparent;
}

.rule605-notional-main {
    display: flex;
    align-items: center;
    padding: 7px 9px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.rule605-marketable-pct {
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 6px 8px;
    text-align: right;
    border-left: 1px solid rgba(225, 232, 245, 0.12);
    background: rgba(61, 203, 108, 0.05);
}

.rule605-marketable-pct span {
    color: var(--qb-muted);
    font-size: 0.55rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.rule605-marketable-pct strong {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.rule605-order-type-cell {
    min-width: 245px;
}

.rule605-order-type-bar {
    display: flex;
    width: 235px;
    height: 16px;
    overflow: hidden;
    border: 1px solid rgba(225, 232, 245, 0.16);
    border-radius: 999px;
    background: rgba(225, 232, 245, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.rule605-order-type-segment {
    display: block;
    min-width: 0;
    height: 100%;
}

.rule605-order-type-segment:not(:last-child) {
    box-shadow:
        inset -1px 0 rgba(7, 16, 30, 0.92),
        inset -2px 0 rgba(255, 255, 255, 0.12);
}

.rule605-order-type-segment.market {
    background: var(--qb-order-type-market);
}

.rule605-order-type-segment.marketable-limit {
    background: var(--qb-order-type-marketable-limit);
}

.rule605-order-type-segment.inside-quote-limit {
    background: var(--qb-order-type-inside-quote-limit);
}

.rule605-order-type-segment.at-quote-limit {
    background: var(--qb-order-type-at-quote-limit);
}

.rule605-order-type-segment.near-quote-limit {
    background: var(--qb-order-type-near-quote-limit);
}

.rule605-order-type-segment.other {
    background: rgba(225, 232, 245, 0.42);
}

.order-type-bg-market {
    background: var(--qb-order-type-market);
}

.order-type-bg-marketable-limit {
    background: var(--qb-order-type-marketable-limit);
}

.order-type-bg-inside-quote-limit {
    background: var(--qb-order-type-inside-quote-limit);
}

.order-type-bg-at-quote-limit {
    background: var(--qb-order-type-at-quote-limit);
}

.order-type-bg-near-quote-limit,
.order-type-bg-non-marketable-limit {
    background: var(--qb-order-type-near-quote-limit);
}

.order-type-bg-directed {
    background: var(--qb-order-type-directed);
}

.rule605-type-tag {
    max-width: calc(100% - 8px);
    padding: 1px 4px;
    font-size: 0.42rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
    white-space: nowrap;
}

.rule605-type-tag.tag-market-maker {
    max-width: none;
    min-width: 74px;
    padding: 1px 9px 1px 5px;
    text-align: center;
}

.rule605-secondary-type-tag {
    color: rgba(225, 232, 245, 0.72);
    background: rgba(225, 232, 245, 0.08);
    border: 1px solid rgba(225, 232, 245, 0.16);
}

.rule605-minor-market-maker-type-tag {
    color: rgba(255, 214, 126, 0.86);
    background: rgba(255, 184, 65, 0.12);
    border: 1px solid rgba(255, 184, 65, 0.34);
}

.rule605-affiliated-type-tag {
    color: rgba(105, 226, 192, 0.9);
    background: rgba(30, 188, 148, 0.13);
    border: 1px solid rgba(30, 188, 148, 0.34);
}

.rule605-institutional-type-tag {
    color: rgba(174, 195, 255, 0.9);
    background: rgba(126, 166, 255, 0.12);
    border: 1px solid rgba(126, 166, 255, 0.32);
}

.rule605-group-label-row td {
    padding: 9px 12px;
    color: rgba(225, 232, 245, 0.86);
    background: linear-gradient(90deg, rgba(126, 111, 255, 0.14), rgba(126, 111, 255, 0.035));
    border-top: 1px solid rgba(126, 111, 255, 0.28);
    border-bottom: 1px solid rgba(126, 111, 255, 0.18);
}

.rule605-group-label-row span {
    display: inline-block;
    margin-right: 12px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rule605-group-label-row small {
    color: rgba(225, 232, 245, 0.58);
    font-size: 0.72rem;
}

.rule605-group-separator-row td {
    padding-top: 14px;
    background: linear-gradient(90deg, rgba(225, 232, 245, 0.09), rgba(225, 232, 245, 0.02));
    border-top-color: rgba(225, 232, 245, 0.24);
}

.rule605-group-minormarketmakers td {
    padding-top: 14px;
    background: linear-gradient(90deg, rgba(255, 184, 65, 0.105), rgba(255, 184, 65, 0.024));
    border-top-color: rgba(255, 184, 65, 0.28);
    border-bottom-color: rgba(255, 184, 65, 0.13);
}

.rule605-group-bankaffiliatedmarketmakers td {
    padding-top: 14px;
    background: linear-gradient(90deg, rgba(30, 188, 148, 0.1), rgba(30, 188, 148, 0.024));
    border-top-color: rgba(30, 188, 148, 0.25);
    border-bottom-color: rgba(30, 188, 148, 0.12);
}

.rule605-group-institutionalmarketmaker td {
    padding-top: 14px;
    background: linear-gradient(90deg, rgba(126, 166, 255, 0.1), rgba(126, 166, 255, 0.024));
    border-top-color: rgba(126, 166, 255, 0.25);
    border-bottom-color: rgba(126, 166, 255, 0.12);
}

.rule605-additional-venue-row {
    color: rgba(225, 232, 245, 0.76);
}

.rule605-firm-list-table tbody tr:last-child td {
    border-bottom: 0;
}

.rule605-ranked-metric-cell {
    white-space: nowrap;
}

.rule605-metric-rank {
    display: inline-block;
    min-width: 48px;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.rule605-metric-rank-gold {
    color: #ffe7a4;
    background: rgba(229, 170, 78, 0.10);
    border-color: rgba(229, 170, 78, 0.46);
}

.rule605-metric-rank-silver {
    color: #edf0f5;
    background: rgba(220, 225, 233, 0.10);
    border-color: rgba(220, 225, 233, 0.42);
}

.rule605-metric-rank-bronze {
    color: #f0c39a;
    background: rgba(194, 149, 101, 0.10);
    border-color: rgba(194, 149, 101, 0.46);
}

.broker-section-list {
    --broker-side-widget-height: 304px;
    display: grid;
    gap: 12px;
}

.broker-section {
    padding: 16px 18px;
    background: var(--qb-card-bg);
    border: 1px solid var(--qb-border);
    border-radius: var(--qb-card-radius);
    box-shadow: var(--qb-shadow);
}

.broker-row-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 14px;
    align-items: start;
}

.broker-row-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.broker-section-header {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(250px, 0.8fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.broker-section-title {
    display: -webkit-box;
    min-width: 0;
    color: #fff;
    font-size: clamp(1.25rem, 1.4vw, 1.7rem);
    font-weight: 850;
    line-height: 1.05;
    text-decoration: none;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.broker-section-title:hover {
    color: var(--qb-blue);
}

.broker-section-metrics {
    display: grid;
    grid-template-columns: minmax(122px, 1fr) minmax(112px, 0.9fr);
    gap: 0;
    justify-self: stretch;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: var(--qb-card-radius);
}

.broker-metric-cell {
    position: relative;
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 10px;
}

.broker-metric-pfof {
    background: rgba(107, 163, 216, 0.05);
    border-radius: var(--qb-card-radius) 0 0 var(--qb-card-radius);
    text-align: right;
}

.broker-metric-shares {
    background: rgba(229, 170, 78, 0.05);
    border-left: 1px solid rgba(225, 232, 245, 0.10);
    border-radius: 0 var(--qb-card-radius) var(--qb-card-radius) 0;
    text-align: right;
}

.broker-section-metrics span {
    color: var(--qb-muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-section-metrics strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.broker-shares-label {
    display: inline-flex;
    justify-content: flex-end;
    width: fit-content;
    justify-self: end;
}

.broker-shares-tooltip {
    display: none;
    width: min(400px, calc(100vw - 32px));
    max-width: min(400px, calc(100vw - 32px));
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.broker-info-hover .broker-shares-tooltip {
    left: auto;
    right: 18px;
    top: auto;
    bottom: calc(100% + 8px);
    z-index: 80;
    display: none;
    color: rgba(225, 232, 245, 0.92);
    background: rgba(13, 18, 32, 0.98);
    text-align: left;
}

.broker-info-hover.is-open .broker-shares-tooltip {
    display: block;
}

.broker-shares-tooltip-title {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.broker-shares-tooltip-lead {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.broker-shares-tooltip p {
    margin: 0;
    color: rgba(225, 232, 245, 0.78);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.broker-shares-tooltip-subtitle {
    margin: 10px 0 5px;
    color: rgba(225, 232, 245, 0.58);
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.broker-shares-tooltip-routes {
    display: grid;
    gap: 3px;
}

.broker-shares-tooltip-routes div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 4px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.035);
}

.broker-section-metrics .broker-shares-tooltip-routes span {
    overflow: hidden;
    color: rgba(225, 232, 245, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.broker-section-metrics .broker-shares-tooltip-routes strong {
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
}

.broker-pfof-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.broker-shares-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.broker-notes-button,
.broker-info-hover {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    color: #dfe8ff;
    font-size: 0.66rem;
    font-weight: 950;
    line-height: 1;
    background: rgba(126, 111, 255, 0.18);
    border: 1px solid rgba(126, 111, 255, 0.56);
    border-radius: 999px;
    cursor: pointer;
    text-transform: none;
}

.broker-section-metrics .broker-info-hover {
    color: #dfe8ff;
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: none;
}

.broker-notes-button:hover,
.broker-notes-button:focus-visible,
.broker-info-hover:hover,
.broker-info-hover:focus-visible {
    color: #fff;
    background: rgba(126, 111, 255, 0.34);
    outline: none;
}

.broker-route-strip {
    width: 100%;
    padding: 8px 10px 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: var(--qb-card-radius);
}

.broker-side-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: var(--broker-side-widget-height);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.broker-route-map-box {
    box-sizing: border-box;
    width: 100%;
    height: var(--broker-side-widget-height);
    min-height: 0;
    border: 1px solid rgba(225, 232, 245, 0.22);
    border-width: 0;
    background: var(--qb-bg);
    overflow: hidden;
}

.broker-flow-panel {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    width: 52px;
    height: var(--broker-side-widget-height);
    min-height: 0;
    padding: 7px 5px 8px;
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: var(--qb-card-radius);
    background: rgba(255, 255, 255, 0.018);
}

.broker-flow-head {
    display: block;
    width: 100%;
    color: rgba(225, 232, 245, 0.64);
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.broker-flow-body {
    display: block;
    min-height: 0;
}

.broker-flow-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 95%;
    height: 100%;
    margin: 0 auto;
    overflow: visible;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
}

.broker-flow-segment {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 1px;
}

.broker-flow-segment-label {
    position: absolute;
    display: inline-block;
    left: 50%;
    top: 50%;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.52rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    pointer-events: none;
}

.broker-flow-segment.market {
    background: var(--qb-order-type-market);
}

.broker-flow-segment.marketable-limit {
    background: var(--qb-order-type-marketable-limit);
}

.broker-flow-segment.non-marketable-limit {
    background: var(--qb-order-type-non-marketable-limit);
}

.broker-flow-segment.directed {
    background: var(--qb-order-type-directed);
}

.broker-flow-tooltip {
    left: auto;
    right: 0;
    top: 0;
    width: 190px;
    padding: 9px 10px;
}

.broker-flow-tooltip-title {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.broker-flow-tooltip-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: rgba(225, 232, 245, 0.78);
    font-size: 0.68rem;
    line-height: 1.4;
}

.broker-flow-tooltip-row span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.broker-flow-tooltip-row strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.broker-flow-tooltip i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex: 0 0 auto;
}

.broker-flow-tooltip i.market {
    background: var(--qb-order-type-market);
}

.broker-flow-tooltip i.marketable-limit {
    background: var(--qb-order-type-marketable-limit);
}

.broker-flow-tooltip i.non-marketable-limit {
    background: var(--qb-order-type-non-marketable-limit);
}

.broker-flow-tooltip i.directed {
    background: var(--qb-order-type-directed);
}

.broker-flow-legend {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 4px;
    color: rgba(225, 232, 245, 0.68);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.1;
}

.broker-flow-legend div {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
}

.broker-flow-legend span {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.broker-route-map-svg {
    display: block;
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.broker-route-map-frame {
    fill: var(--qb-bg);
    stroke: rgba(225, 232, 245, 0.16);
    stroke-width: 1;
}

.broker-route-map-quality-wash {
    fill: url("#broker-route-map-quality-wash");
}

.broker-route-map-grid {
    stroke: rgba(225, 232, 245, 0.12);
    stroke-width: 0.7;
    shape-rendering: crispEdges;
}

.broker-route-map-axis-title {
    fill: rgba(225, 232, 245, 0.58);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-route-map-better,
.broker-route-map-worse {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.03em;
}

.broker-route-map-better {
    fill: #33d17a;
}

.broker-route-map-worse {
    fill: #ff5d63;
}

.broker-route-map-connection {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-opacity: 0.62;
}

.broker-route-map-connection.is-zero-current-route {
    stroke-dasharray: 6 6;
    stroke-opacity: 0.42;
}

.broker-route-map-broker-well {
    fill: url("#broker-route-map-well");
    stroke: rgba(0, 0, 0, 0.72);
    stroke-width: 1;
}

.broker-route-map-broker-label {
    fill: rgba(225, 232, 245, 0.72);
    font-size: 9px;
    font-weight: 900;
    pointer-events: none;
}

.broker-route-map-maker-circle {
    stroke: none;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.20));
}

.broker-route-map-maker.is-zero-current-route .broker-route-map-maker-circle {
    opacity: 0.5;
}

.broker-route-map-maker.is-zero-current-route .broker-route-map-maker-halo {
    opacity: 0.5;
}

.broker-route-map-maker-halo {
    fill: none;
    stroke-width: 1;
    stroke-opacity: 0.92;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.10));
}

.broker-route-map-maker-label {
    fill: var(--qb-text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 8.8px;
    font-weight: 900;
    paint-order: stroke;
    stroke: #181724;
    stroke-width: 2.8px;
    stroke-linejoin: round;
    pointer-events: none;
}

.broker-route-map-other-box {
    fill: rgba(13, 18, 32, 0.84);
    stroke: rgba(225, 232, 245, 0.24);
    stroke-width: 0.75;
}

.broker-route-map-other-circle {
    stroke: none;
    filter: drop-shadow(0 0 2px rgba(225, 232, 245, 0.16));
}

.broker-route-map-other-halo {
    fill: none;
    stroke-width: 1;
    stroke-opacity: 0.88;
}

.broker-route-map-other-caption {
    fill: rgba(225, 232, 245, 0.58);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-route-map-tooltip-anchor {
    cursor: help;
}

.broker-route-map-hover-target {
    fill: transparent;
    stroke: transparent;
    pointer-events: all;
}

.broker-route-map-tooltip-object {
    display: none;
    overflow: visible;
    pointer-events: none;
}

.broker-route-map-tooltip-anchor:hover .broker-route-map-tooltip-object,
.broker-route-map-tooltip-anchor:focus .broker-route-map-tooltip-object,
.broker-route-map-tooltip-anchor:focus-within .broker-route-map-tooltip-object {
    display: block;
}

.broker-route-map-tooltip {
    box-sizing: border-box;
    width: 166px;
    padding: 7px 8px;
    color: rgba(225, 232, 245, 0.94);
    background: rgba(13, 18, 32, 0.98);
    border: 1px solid rgba(225, 232, 245, 0.20);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.44);
}

.broker-route-map-tooltip-compact {
    width: 118px;
}

.broker-route-map-tooltip-title {
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.broker-route-map-tooltip-name {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(225, 232, 245, 0.70);
    font-size: 8px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.broker-route-map-tooltip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.1;
}

.broker-route-map-tooltip-grid span {
    color: rgba(225, 232, 245, 0.56);
    font-weight: 850;
    text-transform: uppercase;
}

.broker-route-map-tooltip-grid strong {
    justify-self: end;
    color: #fff;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.broker-route-map-tooltip-grid strong.negative {
    color: var(--qb-red);
}

.broker-flow-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex: 0 0 auto;
}

.broker-flow-legend i.market {
    background: var(--qb-order-type-market);
}

.broker-flow-legend i.marketable-limit {
    background: var(--qb-order-type-marketable-limit);
}

.broker-flow-legend i.non-marketable-limit {
    background: var(--qb-order-type-non-marketable-limit);
}

.broker-flow-legend i.directed {
    background: var(--qb-order-type-directed);
}

.broker-route-comparison {
    --route-label-width: 108px;
    --route-delta-width: 72px;
    --route-change-width: 48px;
    --route-gap: 12px;
    display: grid;
    gap: 6px;
    position: relative;
}

.broker-route-column-head {
    display: grid;
    grid-template-columns: var(--route-label-width) minmax(180px, 1fr) var(--route-delta-width) var(--route-change-width);
    gap: var(--route-gap);
    align-items: end;
    min-height: 16px;
    color: rgba(225, 232, 245, 0.52);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.broker-route-flow-head {
    grid-column: 1 / 3;
}

.broker-route-trend-head {
    grid-column: 3 / 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.broker-route-trend-info {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
    font-size: 0.54rem;
    text-transform: none;
    letter-spacing: 0;
}

.broker-route-trend-tooltip {
    left: calc(100% + 8px);
    right: auto;
    top: calc(100% + 7px);
    width: min(350px, calc(100vw - 32px));
    max-width: min(350px, calc(100vw - 32px));
    text-align: left;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

.broker-route-destination {
    display: grid;
    grid-template-columns: var(--route-label-width) minmax(180px, 1fr) var(--route-delta-width) var(--route-change-width);
    gap: var(--route-gap);
    align-items: center;
    min-height: 20px;
    min-width: 0;
}

.broker-route-threshold {
    position: absolute;
    top: 22px;
    bottom: 0;
    left: calc(var(--route-label-width) + var(--route-gap));
    width: calc(100% - var(--route-label-width) - var(--route-delta-width) - var(--route-change-width) - (var(--route-gap) * 3));
    pointer-events: none;
}

.broker-route-threshold::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 12px;
    left: 90.909%;
    border-left: 1px dashed rgba(225, 232, 245, 0.42);
}

.broker-route-threshold span {
    position: absolute;
    left: 90.909%;
    bottom: -2px;
    transform: translateX(-50%);
    color: rgba(225, 232, 245, 0.66);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.broker-route-note-table {
    display: grid;
    gap: 5px;
    min-width: 740px;
}

.broker-route-note-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) 92px minmax(420px, 2.6fr);
    gap: 14px;
    align-items: start;
    color: rgba(225, 232, 245, 0.84);
    font-size: 0.7rem;
    line-height: 1.25;
}

.broker-route-note-header {
    color: rgba(225, 232, 245, 0.54);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-route-note-row span {
    min-width: 0;
}

.broker-route-note-row span:first-child,
.broker-route-note-row span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.broker-route-note-empty {
    color: rgba(225, 232, 245, 0.58);
    font-size: 0.7rem;
}

.broker-notes-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 26px;
    background: rgba(1, 5, 14, 0.72);
    backdrop-filter: blur(3px);
}

.broker-notes-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(980px, calc(100vw - 36px));
    max-height: min(760px, calc(100vh - 42px));
    color: rgba(225, 232, 245, 0.9);
    background: rgba(16, 22, 38, 0.98);
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: var(--qb-card-radius);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
    overflow: hidden;
}

.broker-notes-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    padding: 16px 18px 13px;
    border-bottom: 1px solid rgba(225, 232, 245, 0.10);
}

.broker-notes-dialog-eyebrow {
    color: var(--qb-green);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.broker-notes-dialog h2 {
    margin: 4px 0 3px;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.1;
}

.broker-notes-dialog p {
    margin: 0;
    color: var(--qb-muted);
    font-size: 0.78rem;
}

.broker-notes-close {
    flex: 0 0 auto;
    padding: 7px 12px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: 6px;
    cursor: pointer;
}

.broker-notes-close:hover,
.broker-notes-close:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    outline: none;
}

.broker-notes-dialog-body {
    min-height: 0;
    padding: 14px 18px 18px;
    overflow: auto;
}

.broker-route-label {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.05;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.broker-route-label:not(.broker-route-link-label):hover {
    color: var(--qb-blue);
}

.broker-route-label-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: visible;
}

.broker-route-link-label,
.broker-route-market-maker-label,
.broker-route-static-label {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.broker-route-market-maker-label {
    overflow: visible;
}

.broker-route-link-label {
    cursor: pointer;
}

.broker-route-symbol {
    color: var(--qb-blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 120ms ease, text-decoration-color 120ms ease;
}

.broker-route-link-label:hover .broker-route-symbol,
.broker-route-link-label:focus-visible .broker-route-symbol,
.broker-route-market-maker-label:hover .broker-route-symbol,
.broker-route-market-maker-label:focus-within .broker-route-symbol {
    color: #9dc2ff;
    text-decoration-color: currentColor;
}

.broker-route-value {
    color: rgba(255, 255, 255, 0.84);
}

.broker-route-static-symbol {
    color: rgba(225, 232, 245, 0.88);
}

.broker-route-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #dfe8ff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    background: rgba(126, 111, 255, 0.18);
    border: 1px solid rgba(126, 111, 255, 0.56);
    border-radius: 999px;
}

.broker-route-info:hover,
.broker-route-info:focus-visible {
    color: #fff;
    background: rgba(126, 111, 255, 0.34);
    outline: none;
}

.broker-route-tooltip-anchor {
    position: relative;
    cursor: help;
}

.broker-route-label.broker-route-tooltip-anchor {
    overflow: visible;
}

.broker-route-bar {
    position: relative;
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
}

.broker-route-bar.broker-route-tooltip-anchor {
    overflow: visible;
}

.broker-route-bar span {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.10);
}

.broker-route-other {
    background: rgba(185, 190, 205, 0.45);
}

.broker-route-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 20;
    display: none;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 10px 12px;
    color: rgba(225, 232, 245, 0.92);
    background: rgba(13, 18, 32, 0.98);
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: var(--qb-card-radius);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.broker-route-tooltip-anchor:hover .broker-route-tooltip,
.broker-route-tooltip-anchor:focus .broker-route-tooltip,
.broker-route-tooltip-anchor:focus-within .broker-route-tooltip {
    display: block;
}

.broker-route-tooltip-title {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.broker-route-tooltip-table {
    display: grid;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
}

.broker-route-tooltip-row {
    display: grid;
    grid-template-columns: minmax(170px, max-content) repeat(6, 74px);
    column-gap: 10px;
    align-items: baseline;
    font-size: 0.68rem;
    line-height: 1.2;
    width: max-content;
}

.broker-route-tooltip-head {
    color: rgba(225, 232, 245, 0.58);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-route-tooltip-group-head {
    color: rgba(225, 232, 245, 0.70);
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.broker-route-tooltip-group {
    justify-self: center;
    text-align: center;
}

.broker-route-tooltip-group-latest {
    grid-column: 2 / span 3;
}

.broker-route-tooltip-group-average {
    grid-column: 5 / span 3;
}

.broker-route-tooltip-destination {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.broker-route-tooltip-number {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.broker-route-tooltip-row strong {
    color: #fff;
}

.broker-route-tooltip-row strong.negative {
    color: var(--qb-red);
}

.broker-route-tooltip-empty {
    color: var(--qb-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.broker-route-trend-tooltip {
    left: calc(100% + 8px);
    right: auto;
    width: min(350px, calc(100vw - 32px));
    max-width: min(350px, calc(100vw - 32px));
    white-space: normal;
    overflow-wrap: anywhere;
}

.broker-info-hover .broker-shares-tooltip {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 32px));
    max-width: min(360px, calc(100vw - 32px));
}

.broker-route-change {
    position: relative;
    width: 100%;
    height: 22px;
    border-radius: 3px;
    background:
        linear-gradient(to bottom, transparent calc(50% - 1px), rgba(225, 232, 245, 0.30) calc(50% - 1px), rgba(225, 232, 245, 0.30) calc(50% + 1px), transparent calc(50% + 1px)),
        rgba(255, 255, 255, 0.025);
}

.broker-route-trend-trigger {
    grid-column: 3 / 5;
    display: grid;
    grid-template-columns: var(--route-delta-width) var(--route-change-width);
    gap: var(--route-gap);
    align-items: center;
    margin: -2px -3px;
    padding: 2px 3px;
    color: inherit;
    font: inherit;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.broker-route-trend-trigger:hover,
.broker-route-trend-trigger:focus-visible {
    background: rgba(126, 111, 255, 0.10);
    outline: 1px solid rgba(126, 111, 255, 0.34);
}

.broker-route-trend-trigger .broker-route-change {
    width: 100%;
}

.route-change-bar {
    position: absolute;
    width: 4px;
    min-height: 1px;
    border-radius: 999px;
}

.route-change-bar:nth-child(1) { left: 2px; }
.route-change-bar:nth-child(2) { left: 8px; }
.route-change-bar:nth-child(3) { left: 14px; }
.route-change-bar:nth-child(4) { left: 20px; }
.route-change-bar:nth-child(5) { left: 26px; }
.route-change-bar:nth-child(6) { left: 32px; }
.route-change-bar:nth-child(7) { left: 38px; }
.route-change-bar:nth-child(8) { left: 44px; }
.route-change-bar:nth-child(9) { left: 50px; }
.route-change-bar:nth-child(10) { left: 56px; }
.route-change-bar:nth-child(11) { left: 62px; }
.route-change-bar:nth-child(12) { left: 68px; }

.route-change-bar.up {
    bottom: 50%;
    height: var(--bar-height);
    background: var(--qb-better);
}

.route-change-bar.down {
    top: 50%;
    height: var(--bar-height);
    background: var(--qb-worse);
}

.route-change-bar.gap {
    top: calc(50% - 1px);
    height: 2px;
    background: rgba(225, 232, 245, 0.22);
}

.broker-route-change-value {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.broker-route-change-value.up {
    color: var(--qb-better);
}

.broker-route-change-value.down {
    color: var(--qb-worse);
}

.broker-route-empty {
    color: var(--qb-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.broker-route-warning {
    color: var(--qb-amber);
    font-size: 0.7rem;
    font-weight: 800;
}

.broker-route-trend-dialog {
    width: min(900px, calc(100vw - 36px));
    max-height: min(720px, calc(100vh - 42px));
}

.broker-route-trend-dialog-head h2 {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.15;
}

.broker-route-trend-heading-name {
    color: #8f83ff;
}

.broker-route-trend-dialog-body {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 12px;
    overflow: auto;
}

.broker-route-trend-dialog-left {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.broker-route-trend-select {
    display: grid;
    gap: 0;
    color: rgba(225, 232, 245, 0.68);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.broker-route-trend-select select {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(225, 232, 245, 0.18);
    border-radius: 6px;
}

.broker-route-trend-select select:focus {
    outline: 1px solid rgba(126, 111, 255, 0.62);
}

.broker-route-trend-select option {
    color: #fff;
    background: #151b2b;
}

.broker-route-trend-table {
    max-height: 446px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(225, 232, 245, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 111, 255, 0.48) rgba(255, 255, 255, 0.05);
}

.broker-route-trend-dialog-left.has-other-select .broker-route-trend-table {
    max-height: 402px;
}

.broker-route-trend-table::-webkit-scrollbar {
    width: 7px;
}

.broker-route-trend-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.broker-route-trend-table::-webkit-scrollbar-thumb {
    background: rgba(126, 111, 255, 0.50);
    border-radius: 999px;
}

.broker-route-trend-table-row {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    gap: 8px;
    align-items: baseline;
    padding: 6px 8px;
    color: rgba(225, 232, 245, 0.82);
    font-size: 0.72rem;
    border-bottom: 1px solid rgba(225, 232, 245, 0.075);
}

.broker-route-trend-table-row:last-child {
    border-bottom: 0;
}

.broker-route-trend-table-head {
    color: rgba(225, 232, 245, 0.58);
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.035);
}

.broker-route-trend-table-head span:nth-child(2),
.broker-route-trend-table-head span:nth-child(3) {
    text-align: right;
}

.broker-route-trend-table-row strong {
    text-align: right;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.broker-route-trend-table-row .up {
    color: #76a8ff;
}

.broker-route-trend-table-row .down {
    color: #ff5d63;
}

.broker-route-trend-table-row .flat,
.broker-route-trend-table-row .is-zero {
    color: rgba(225, 232, 245, 0.42);
}

.broker-route-trend-dialog-charts {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.broker-route-trend-chart-card {
    min-width: 0;
    padding: 8px 8px 0;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(225, 232, 245, 0.12);
    border-radius: 8px;
}

.broker-route-trend-chart-title {
    color: rgba(225, 232, 245, 0.86);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-route-trend-venues {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
    padding: 10px 12px;
    color: rgba(225, 232, 245, 0.74);
    font-size: 0.72rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid rgba(225, 232, 245, 0.13);
    border-radius: 8px;
}

.broker-route-trend-venues strong {
    flex: 0 0 auto;
    color: rgba(225, 232, 245, 0.90);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.broker-route-trend-venues span {
    min-width: 0;
}

@media (max-width: 820px) {
    .broker-row-shell {
        grid-template-columns: 1fr;
    }

    .broker-section-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .broker-section-title {
        white-space: normal;
    }

    .broker-side-panel,
    .broker-route-map-box {
        width: 100%;
    }

    .broker-flow-panel {
        width: 100%;
    }

    .broker-route-strip {
        width: 100%;
    }

    .broker-route-comparison {
        --route-label-width: 88px;
        --route-delta-width: 72px;
        --route-change-width: 42px;
        --route-gap: 8px;
    }

    .broker-route-trend-dialog-body {
        grid-template-columns: 1fr;
    }
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    color: #07101e;
    background: var(--qb-green);
    font-size: 0.72rem;
    font-weight: 900;
}

.tag-market-maker {
    box-sizing: border-box;
    min-width: 88px;
    padding-right: 12px;
    text-align: center;
    color: #1c1200;
    background: var(--qb-amber);
}

.mini-link {
    font-weight: 800;
    text-decoration: none;
}

.firm-code-link {
    color: var(--qb-blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 120ms ease, text-decoration-color 120ms ease;
}

.firm-code-link:hover,
.firm-code-link:focus-visible {
    color: #9dc2ff;
    text-decoration-color: currentColor;
    outline: none;
}

.site-nav-link {
    color: rgba(225, 232, 245, 0.72);
    text-decoration: none;
    padding: 14px 12px;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #fff;
    border-bottom-color: var(--qb-green);
    text-decoration: none;
}

.methodology-link {
    margin-left: auto;
}

.two-column {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
}

.scatter-frame {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.scatter-frame svg {
    width: 100%;
    height: auto;
    display: block;
}

.site-page-title-row,
.market-overview-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 8px 0 18px;
}

.site-page-title,
.market-overview-title {
    margin: 0;
    color: var(--qb-text);
    font-size: clamp(1.9rem, 3vw, 2.35rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: 0;
}

.page-wrap > h1:not(.display-title) {
    margin: 0;
    color: var(--qb-text);
    font-size: clamp(1.9rem, 3vw, 2.35rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: 0;
}

.site-page-title-accent,
.market-overview-title-accent {
    color: var(--qb-green);
}

.page-wrap > .site-page-title {
    margin-bottom: 8px;
}

.site-section-heading {
    margin: 0 0 12px;
    color: var(--qb-green);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0;
}

.performance-weight-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.performance-weight-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 5px;
    border: 1px solid rgba(225, 232, 245, 0.2);
    border-radius: 999px;
    background: rgba(225, 232, 245, 0.07);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.performance-weight-label {
    color: rgba(196, 204, 220, 0.62);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    cursor: default;
    user-select: none;
}

.performance-weight-button {
    min-width: 66px;
    padding: 5px 10px;
    color: rgba(225, 232, 245, 0.78);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.performance-weight-button:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.075);
}

.performance-weight-button.selected {
    color: #06131c;
    background: linear-gradient(180deg, #7ff4e6, #35d2bf);
    border-color: rgba(148, 255, 240, 0.85);
    box-shadow: 0 0 0 1px rgba(50, 220, 170, 0.28), 0 6px 18px rgba(0, 214, 170, 0.18);
}

.rule605-page-title-row h1 {
    margin: 0;
}

.rule605-firm-title-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.performance-weight-button:not(.selected):hover {
    color: #fff;
    background: rgba(225, 232, 245, 0.08);
}

.market-overview-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 0 0 16px;
}

.market-chart-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 10px;
    background: var(--qb-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--qb-card-radius);
    box-shadow: var(--qb-card-shadow);
}

.market-chart-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
}

.market-chart-period {
    flex: 0 0 auto;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.metric-label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.market-metric-heading {
    font-weight: 950;
}

.metric-heading-eq {
    color: var(--qb-green);
}

.metric-heading-nbbo {
    color: var(--qb-blue);
}

.metric-heading-improvement {
    color: #4fd1c5;
}

.metric-heading-notional {
    color: #e7b461;
}

.market-chart-period-stack {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.chart-corner-toggle.home-chart-toggle {
    position: static;
}

.chart-corner-toggle.home-net-improvement-toggle {
    margin-left: 6px;
    transform: translateY(-1px);
}

.market-chart-shell {
    position: relative;
    min-width: 0;
}

.market-chart-inner-title {
    position: absolute;
    top: 30px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    color: rgba(245, 248, 255, 0.86);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.metric-info-button {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    padding: 0;
    color: #0b1020;
    background: rgba(220, 226, 245, 0.72);
    border: 0;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.metric-info-button:hover {
    color: #fff;
    background: var(--qb-blue);
}

.market-headline-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    font-size: clamp(1.55rem, 2.7vw, 2.5rem);
    font-weight: 950;
    line-height: 1;
}

.market-headline-value span {
    font-size: 0.92rem;
    font-weight: 900;
}

.firm-comparison {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 10px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.firm-comparison-head,
.firm-bar-axis {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--qb-muted);
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.firm-comparison-head span:first-child {
    color: var(--qb-text);
}

.firm-comparison-head span:last-child {
    text-align: right;
}

.firm-bars {
    --average-position: 50%;
    display: grid;
    gap: 4px;
}

.firm-average-line {
    display: none;
}

.firm-bar-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 18px;
}

.firm-bar-label {
    display: grid;
    grid-template-columns: 4.8ch max-content;
    align-items: baseline;
    column-gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.firm-bar-symbol {
    color: var(--qb-blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 120ms ease, text-decoration-color 120ms ease;
}

.firm-bar-value {
    justify-self: start;
    color: rgba(255, 255, 255, 0.82);
}

.firm-bar-label:hover .firm-bar-symbol,
.firm-bar-label:focus-visible .firm-bar-symbol {
    color: #9dc2ff;
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.firm-bar-track {
    position: relative;
    height: 8px;
    overflow: visible;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.firm-bar-track::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: var(--average-position);
    border-left: 1px dashed rgba(255, 255, 255, 0.72);
    transform: translateX(-0.5px);
}

.firm-bar-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
}

.firm-bar-fill-eq {
    background: linear-gradient(90deg, rgba(255, 93, 99, 0.4), rgba(19, 174, 128, 0.9));
}

.firm-bar-fill-nbbo {
    background: linear-gradient(90deg, rgba(107, 163, 216, 0.36), rgba(107, 163, 216, 0.94));
}

.firm-bar-fill-improvement {
    background: linear-gradient(90deg, rgba(79, 209, 197, 0.28), rgba(18, 184, 134, 0.95));
}

.firm-bar-axis {
    display: grid;
    grid-template-columns: 112px 1fr 1fr 1fr;
    margin-top: 2px;
}

.firm-bar-axis span:first-child {
    grid-column: 2;
}

.firm-bar-axis span:nth-child(2) {
    text-align: center;
}

.firm-bar-axis span:last-child {
    text-align: right;
}

.market-overview-extra-grid,
.market-overview-diagnostics-grid {
    margin-top: 18px;
}

.market-notional-card {
    gap: 8px;
}

.market-notional-latest {
    display: grid;
    grid-template-columns: minmax(142px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    min-height: 130px;
}

.market-notional-pie {
    display: grid;
    place-items: center;
    min-width: 0;
}

.market-notional-pie svg {
    width: min(100%, 148px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.market-notional-halo {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1;
}

.market-notional-table {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: clamp(54px, 7vw, 90px);
    justify-content: start;
    min-width: 0;
}

.market-notional-column {
    display: grid;
    row-gap: 7px;
    min-width: max-content;
}

.market-notional-row {
    display: grid;
    grid-template-columns: 13px 4.8ch max-content;
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
}

.market-notional-row {
    width: 100%;
    min-height: 20px;
    padding: 0;
    color: var(--qb-text);
    background: transparent;
    border: 0;
    font-size: 0.73rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: left;
    cursor: pointer;
}

.market-notional-row span:last-child {
    justify-self: start;
    color: #fff;
    padding-left: 0;
    font-variant-numeric: tabular-nums;
}

.market-notional-row:hover .firm-bar-symbol,
.market-notional-row:focus-visible .firm-bar-symbol {
    color: #9dc2ff;
    text-decoration-color: currentColor;
}

.market-notional-swatch {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.market-notional-stack {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.market-notional-stack-title {
    margin: 0 0 -4px 2px;
    color: var(--qb-text);
    font-size: 0.75rem;
    font-weight: 950;
}

.market-diagnostic-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diagnostic-period-label {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.market-diagnostic-card .panel-heading {
    min-height: 28px;
    margin-bottom: 0;
}

.market-diagnostic-card .realised-spread-chart,
.market-diagnostic-card .execution-speed-chart {
    box-sizing: border-box;
    height: 174px;
    margin-top: 2px;
}

.dynamic-view-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
    width: 100%;
    margin-top: 16px;
    padding: clamp(16px, 2vw, 22px);
    background: var(--qb-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--qb-card-radius);
    box-shadow: var(--qb-card-shadow);
}

.dynamic-view-copy {
    min-width: 0;
    padding: 4px 0 0;
}

.dynamic-view-title {
    margin: 0 0 12px;
    color: var(--qb-text);
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    line-height: 1.03;
    font-weight: 850;
}

.dynamic-view-text {
    max-width: 34rem;
    margin: 0 0 22px;
    color: var(--qb-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.dynamic-controls-panel {
    min-width: 0;
    margin: 0;
    padding: 14px 14px 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--qb-card-radius);
}

.dynamic-controls-panel legend {
    width: auto;
    float: none;
    padding: 0 8px;
    margin: 0;
    color: var(--qb-muted);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scatter-square-shell {
    position: relative;
    justify-self: end;
    width: min(100%, 640px);
    aspect-ratio: 1 / 1;
    margin: 0;
}

.market-overview-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.market-scatter-bg {
    fill: transparent;
    stroke: none;
}

.market-scatter-plot-bg {
    fill: url(#publicScatterPlotBg);
    stroke: rgba(255, 255, 255, 0.08);
}

.market-scatter-quality-wash {
    fill: url(#publicScatterQualityWash);
    opacity: 0.04;
    pointer-events: none;
}

.market-scatter-grid {
    stroke: rgba(165, 174, 205, 0.16);
    stroke-width: 1;
}

.market-scatter-axis,
.market-scatter-axis-tick {
    stroke: rgba(220, 226, 245, 0.68);
    stroke-width: 1.2;
}

.market-scatter-axis-label,
.market-scatter-axis-title,
.market-scatter-firm-label,
.market-scatter-good-label,
.market-scatter-worse-label,
.market-scatter-current-month {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.market-scatter-axis-label {
    fill: var(--qb-muted);
    font-size: 12px;
    font-weight: 700;
}

.market-scatter-axis-title {
    fill: var(--qb-text);
    font-size: 14px;
    font-weight: 800;
}

.market-scatter-current-month {
    fill: #ffffff;
    font-size: 21px;
    font-weight: 950;
    paint-order: stroke;
    stroke: #181724;
    stroke-width: 5px;
    stroke-linejoin: round;
}

.market-scatter-good-label {
    fill: #33d17a;
    font-size: 13px;
    font-weight: 900;
    opacity: 0.94;
}

.market-scatter-worse-label {
    fill: #ff5252;
    font-size: 13px;
    font-weight: 900;
    opacity: 0.94;
}

.market-scatter-tail {
    fill: none;
    stroke-dasharray: 7 6;
    stroke-linecap: round;
    cursor: pointer;
}

.market-scatter-tail-dot {
    cursor: pointer;
}

.market-scatter-firm {
    cursor: pointer;
}

.market-scatter-bubble {
    opacity: 0.34;
    filter: url(#publicScatterGlow);
    stroke: rgba(255, 255, 255, 0.84);
    stroke-width: 1.6;
    transition: cx 650ms ease, cy 650ms ease, r 650ms ease, opacity 160ms ease;
}

.market-scatter-bubble-core {
    opacity: 0.86;
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 0.9;
    transition: cx 650ms ease, cy 650ms ease, r 650ms ease, opacity 160ms ease;
}

.market-scatter-firm:hover .market-scatter-bubble,
.market-scatter-firm:hover .market-scatter-bubble-core {
    opacity: 1;
    stroke-width: 2.4;
}

.market-scatter-firm-label {
    fill: var(--qb-text);
    font-size: 14px;
    font-weight: 900;
    pointer-events: none;
    paint-order: stroke;
    stroke: #181724;
    stroke-width: 4px;
    stroke-linejoin: round;
    transition: x 650ms ease, y 650ms ease;
}

.market-scatter-controls {
    display: grid;
    grid-template-columns: auto auto auto minmax(140px, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    min-height: 30px;
    margin-top: 0;
}

.market-scatter-controls .scatter-control-button {
    height: 26px;
    padding: 0 10px;
    color: var(--qb-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--qb-border);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 24px;
    cursor: pointer;
}

.market-scatter-controls .scatter-control-button:hover:not(:disabled) {
    background: rgba(126, 111, 255, 0.18);
    border-color: rgba(126, 111, 255, 0.55);
}

.market-scatter-controls .scatter-play-button {
    min-width: 54px;
    color: #ffffff;
    background: rgba(126, 111, 255, 0.22);
    border-color: rgba(126, 111, 255, 0.62);
}

.scatter-play-menu-wrap {
    position: relative;
    display: inline-grid;
}

.scatter-play-backdrop {
    position: fixed;
    z-index: 15;
    inset: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: default;
}

.scatter-play-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    display: grid;
    gap: 4px;
    min-width: 190px;
    padding: 6px;
    background: rgba(21, 21, 33, 0.98);
    border: 1px solid rgba(126, 111, 255, 0.45);
    border-radius: var(--qb-card-radius);
    box-shadow: var(--qb-card-shadow);
}

.scatter-play-menu button {
    width: 100%;
    padding: 7px 8px;
    color: var(--qb-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}

.scatter-play-menu button:hover {
    color: #fff;
    background: rgba(126, 111, 255, 0.20);
    border-color: rgba(126, 111, 255, 0.45);
}

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

.market-scatter-controls .scatter-period-slider {
    width: 100%;
    height: 24px;
    accent-color: var(--qb-purple);
}

.market-scatter-controls .scatter-control-period {
    min-width: 92px;
    color: var(--qb-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.scatter-venue-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.scatter-venue-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 21px;
    padding: 3px 7px;
    color: rgba(224, 231, 245, 0.58);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.scatter-venue-toggle:hover,
.scatter-venue-toggle.selected {
    color: #fff;
    border-color: rgba(126, 111, 255, 0.46);
    background: rgba(126, 111, 255, 0.14);
}

.scatter-venue-toggle input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.scatter-venue-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.scatter-venue-separator {
    width: 1px;
    height: 18px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.18);
}

.scatter-notional-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 4px;
    padding: 5px 8px;
    color: rgba(225, 232, 245, 0.72);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(225, 232, 245, 0.12);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.scatter-notional-toggle input {
    width: 13px;
    height: 13px;
    accent-color: var(--qb-purple);
}

.scatter-notional-toggle:hover {
    color: #fff;
    border-color: rgba(126, 111, 255, 0.42);
}

.scatter-tail-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
}

.scatter-tail-controls .scatter-notional-toggle {
    margin-top: 0;
}

.scatter-tail-months {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 25px;
    color: rgba(225, 232, 245, 0.70);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scatter-tail-months input {
    width: 56px;
    height: 25px;
    padding: 0 6px;
    color: var(--qb-text);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(225, 232, 245, 0.14);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 850;
}

.scatter-tail-months input:disabled {
    opacity: 0.45;
}

.market-scatter-tooltip {
    position: fixed;
    z-index: 2000;
    width: 238px;
    pointer-events: none;
    padding: 10px 12px;
    color: var(--qb-text);
    background: rgba(30, 30, 45, 0.96);
    border: 1px solid rgba(107, 163, 216, 0.34);
    border-radius: var(--qb-card-radius);
    box-shadow: var(--qb-card-shadow);
}

.tooltip-code {
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.tooltip-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    font-size: 0.74rem;
}

.tooltip-grid span {
    color: var(--qb-muted);
}

.tooltip-grid strong {
    color: #dfe8ff;
    font-variant-numeric: tabular-nums;
}

.market-info-tooltip {
    width: 270px;
}

.tooltip-body {
    color: var(--qb-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.tooltip-link-hint {
    margin-top: 8px;
    color: var(--qb-blue);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chart-label {
    fill: var(--qb-muted);
    font-size: 12px;
    font-weight: 700;
}

.axis-line,
.grid-line {
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1;
}

.firm-circle {
    cursor: pointer;
    transition: opacity 140ms ease, transform 140ms ease;
}

.firm-circle:hover {
    opacity: 0.82;
}

.empty-state {
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--qb-card-radius);
    color: var(--qb-muted);
}

.firm-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 10px;
}

.firm-title-line {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: nowrap;
}

.firm-title-line .period-navigator {
    flex: 0 0 auto;
    margin-left: 2px;
}

.firm-header h1 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.45rem, 2.45vw, 2.25rem);
    line-height: 1.08;
    font-weight: 850;
}

.notional-card {
    display: inline-grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(168px, 0.9fr);
    gap: 12px;
    align-items: center;
    align-self: stretch;
    min-width: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 12px 14px;
    border: 1px solid rgba(107, 163, 216, 0.28);
    border-radius: var(--qb-card-radius);
    background: var(--qb-card-bg);
}

.notional-value {
    margin-top: 2px;
    color: #fff;
    font-size: clamp(2.25rem, 3.35vw, 3.25rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

.notional-breakdown {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.notional-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--qb-muted);
    white-space: nowrap;
    min-width: 0;
}

.notional-breakdown span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notional-breakdown strong {
    color: #dfe8ff;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.marketable-panel {
    align-self: stretch;
    display: grid;
    align-content: center;
    padding: 12px 14px;
    border: 1px solid rgba(107, 163, 216, 0.28);
    border-radius: var(--qb-card-radius);
    background: var(--qb-card-bg);
}

.marketable-grid {
    display: grid;
    grid-template-columns: minmax(124px, 0.86fr) minmax(176px, 1.28fr) minmax(205px, 1.58fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: var(--qb-card-radius);
    background: rgba(255, 255, 255, 0.055);
}

.marketable-stat,
.marketable-eq,
.price-performance {
    min-height: 86px;
    padding: 12px 14px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.14);
    border: 0;
}

.marketable-stat {
    padding-right: 19px;
}

.marketable-eq {
    padding-left: 19px;
}

.marketable-stat span,
.marketable-eq span,
.price-labels span {
    color: var(--qb-muted);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.marketable-stat {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: end;
}

.marketable-stat span {
    display: block;
    padding-right: 5px;
    align-self: start;
    white-space: nowrap;
}

.marketable-stat strong {
    display: block;
    margin-top: 0;
    align-self: end;
    color: #dfe8ff;
    font-size: clamp(1.38rem, 1.9vw, 2.02rem);
    line-height: 1;
}

.marketable-eq {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 4px;
}

.eq-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding-left: 5px;
}

.marketable-eq strong {
    justify-self: end;
    max-width: 100%;
    padding-left: 5px;
    text-align: right;
    align-self: end;
    color: #fff;
    font-size: clamp(1.85rem, 2.65vw, 2.65rem);
    line-height: 0.94;
    font-weight: 950;
    white-space: nowrap;
}

.marketable-eq small {
    padding-bottom: 0;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.period-highlight {
    color: #fff;
    font-weight: 900;
}

.price-performance {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    min-width: 0;
}

.price-labels {
    align-self: start;
}

.price-bar {
    align-self: center;
}

.price-values {
    align-self: end;
}

.price-labels,
.price-values {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    text-align: center;
}

.price-labels span:first-child,
.price-values strong:first-child {
    color: var(--qb-blue);
}

.price-labels span:last-child,
.price-values strong:last-child {
    color: var(--qb-red);
}

.price-values strong {
    color: #dfe8ff;
    font-size: 0.98rem;
}

.price-bar {
    display: flex;
    height: 18px;
    margin: 0 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.price-improved {
    background: linear-gradient(180deg, #9dc2ff, var(--qb-blue));
}

.price-at {
    background: linear-gradient(180deg, #d4d7df, #8f96a3);
}

.price-outside {
    background: var(--qb-red);
}

.rule605-analysis-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.rule605-analysis-layout > .panel {
    display: flex;
    flex-direction: column;
}

.chart-panel {
    min-width: 0;
    padding: 6px 2px 2px;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--qb-card-radius);
    background: var(--qb-card-bg);
}

.chart-panel-with-toggle {
    position: relative;
}

.chart-corner-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(5, 11, 24, 0.62);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.chart-corner-toggle-button {
    min-width: 34px;
    padding: 2px 6px;
    border: 0;
    border-radius: 999px;
    color: rgba(225, 232, 245, 0.7);
    background: transparent;
    font-family: inherit;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
}

.chart-corner-toggle-button.selected {
    color: #03121d;
    background: #4fd1c5;
}

.trend-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.order-type-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
}

.rule605-latest-diagnostics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    margin-top: 8px;
}

.rule605-latest-diagnostics-grid > .panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.realised-spread-strip {
    margin-top: 8px;
}

.rule605-latest-diagnostics-grid .realised-spread-strip {
    margin-top: 0;
}

.realised-spread-heading {
    align-items: flex-end;
}

.realised-spread-heading-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.diagnostic-panel-title {
    color: var(--qb-green);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
}

.diagnostic-period-label {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.diagnostic-info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.diagnostic-info-tooltip {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 30;
    display: none;
    pointer-events: none;
}

.diagnostic-info-wrap:hover .diagnostic-info-tooltip,
.diagnostic-info-wrap:focus-within .diagnostic-info-tooltip {
    display: block;
}

.diagnostic-info-tooltip .tooltip-code,
.diagnostic-info-tooltip .tooltip-body {
    display: block;
}

.realised-spread-toggle {
    position: static;
}

.realised-spread-chart {
    position: relative;
    margin-top: 10px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--qb-card-radius);
    background: var(--qb-card-bg);
    overflow: hidden;
}

.rule605-latest-diagnostics-grid .panel-heading {
    min-height: 24px;
}

.rule605-latest-diagnostics-grid .realised-spread-chart,
.rule605-latest-diagnostics-grid .execution-speed-chart {
    box-sizing: border-box;
    height: 174px;
    margin-top: 10px;
}

.compact-empty-state {
    padding: 12px;
}

.realised-spread-body {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(140px, 1fr) 80px;
    column-gap: 10px;
}

.realised-spread-labels,
.realised-spread-bars,
.realised-spread-values {
    display: grid;
    grid-template-rows: repeat(5, 15px);
    row-gap: 9px;
}

.realised-spread-bars {
    position: relative;
    padding-bottom: 10px;
}

.realised-spread-label,
.realised-spread-value {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.05;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.realised-spread-value {
    justify-content: flex-end;
    text-align: right;
    color: rgba(205, 220, 255, 0.92);
    font-variant-numeric: tabular-nums;
}

.realised-spread-track {
    position: relative;
    z-index: 1;
    height: 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.realised-spread-track::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(255, 255, 255, 0.07) 46%, rgba(255, 93, 99, 0.22));
}

.realised-spread-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 2px;
    border-radius: 999px;
}

.realised-spread-bar-adverse {
    background: linear-gradient(90deg, rgba(229, 170, 78, 0.52), rgba(255, 93, 99, 0.92));
}

.realised-spread-bar-favorable {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.92), rgba(79, 209, 197, 0.62));
}

.realised-spread-zero-line {
    position: absolute;
    top: -3px;
    bottom: -12px;
    left: var(--realized-zero);
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.42);
    transform: translateX(-0.5px);
    z-index: 2;
    pointer-events: none;
}

.realised-spread-zero-line span {
    position: absolute;
    bottom: -2px;
    left: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.execution-speed-chart {
    display: grid;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--qb-card-radius);
    background: var(--qb-card-bg);
}

.execution-speed-row {
    display: grid;
    grid-template-columns: 150px minmax(140px, 1fr);
    gap: 10px;
    align-items: center;
}

.execution-speed-label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.05;
}

.execution-speed-bar {
    display: flex;
    width: 100%;
    height: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.execution-speed-segment {
    min-width: 1px;
    height: 100%;
}

.execution-speed-0-9 {
    background: #22c55e;
}

.execution-speed-10-29 {
    background: #4fd1c5;
}

.execution-speed-30-59 {
    background: #75a7ff;
}

.execution-speed-60-299 {
    background: #e5aa4e;
}

.execution-speed-5-30m {
    background: #ff5d63;
}

.execution-speed-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
}

.execution-speed-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.execution-speed-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    margin: -16px 0 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.chart-legend-compact {
    margin-top: -16px;
    margin-bottom: 8px;
}

.legend-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.legend-dot-eq {
    background: #ff5d63;
}

.legend-dot-quoted {
    background: rgba(229, 170, 78, 0.62);
}

.legend-dot-effective {
    background: rgba(117, 167, 255, 0.62);
}

.legend-dot-improvement-cents {
    background: #4fd1c5;
}

.legend-dot-improvement-bps {
    background: #e5aa4e;
}

.eq-size-chart {
    display: flex;
    flex-direction: column;
    height: 320px;
    min-width: 0;
    padding: 9px 12px 7px;
}

.custom-chart-title {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
}

.eq-size-svg {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

.eq-size-grid-line {
    stroke: #40475d;
    stroke-width: 1;
}

.eq-size-axis-line,
.eq-size-tick {
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 1.6;
}

.eq-size-axis-label,
.eq-size-x-label {
    fill: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.eq-size-axis-label {
    text-anchor: end;
    font-weight: 650;
}

.eq-size-x-label {
    text-anchor: middle;
}

.eq-size-market-bar {
    fill: var(--qb-order-type-market);
}

.eq-size-limit-bar {
    fill: var(--qb-order-type-marketable-limit);
}

.eq-size-combined-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eq-size-combined-marker {
    fill: rgba(255, 255, 255, 0.96);
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 2;
}

.eq-size-combined-label {
    fill: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 850;
    paint-order: stroke;
    stroke: rgba(8, 13, 29, 0.95);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.eq-size-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.eq-size-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eq-size-legend-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1px solid rgba(255, 255, 255, 0.86);
}

.eq-size-market-dot {
    background: var(--qb-order-type-market);
}

.eq-size-limit-dot {
    background: var(--qb-order-type-marketable-limit);
}

.eq-size-combined-dot {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
}

.delta-good {
    color: var(--qb-better);
}

.delta-bad {
    color: var(--qb-worse);
}

.admin-details {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--qb-card-radius);
    background: rgba(255, 255, 255, 0.025);
}

.admin-details summary {
    cursor: pointer;
    color: var(--qb-muted);
    font-weight: 850;
}

.reference-section {
    margin: 24px 0;
}

.reference-section > summary {
    margin-bottom: 14px;
    color: var(--qb-green);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reference-section > summary::marker {
    color: var(--qb-green);
}

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

.definition {
    padding: 16px;
    background: var(--qb-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--qb-card-radius);
}

.definition h2 {
    margin: 0 0 8px;
    color: var(--qb-blue);
    font-size: inherit;
    font-weight: 850;
    letter-spacing: 0;
}

.definition p {
    margin: 0;
}

.methodology-panel {
    margin-top: 0;
}

.methodology-subtitle {
    margin: 18px 0 8px;
    color: var(--qb-green);
    font-size: 1rem;
    font-weight: 850;
}

.methodology-section-title {
    margin: 14px 0 6px;
    color: var(--qb-green);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #f6e58d;
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.loading-progress {
    position: relative;
    display: block;
    width: 4rem;
    height: 4rem;
    margin: 30vh auto 1rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.45rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--qb-green);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    display: none;
}

@media (max-width: 980px) {
    .hero-strip,
    .two-column,
    .firm-header,
    .rule605-analysis-layout,
    .rule605-latest-diagnostics-grid,
    .section-grid,
    .dynamic-view-panel,
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .marketable-grid,
    .notional-card {
        grid-template-columns: 1fr;
    }

    .firm-title-line {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .firm-header h1 {
        white-space: normal;
    }

    .hero-art {
        min-height: 96px;
    }

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

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

@media (max-width: 760px) {
    .page-wrap {
        width: min(100% - 24px, var(--site-max-width));
        padding-top: 16px;
    }

    .site-page-title-row,
    .market-overview-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin: 4px 0 14px;
    }

    .rule605-firm-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .site-page-title,
    .market-overview-title {
        width: 100%;
        margin: 0;
        font-size: clamp(1.32rem, 6vw, 1.9rem);
        line-height: 1.05;
        white-space: normal;
    }

    .performance-weight-toggle {
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
    }

    .market-overview-chart-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .market-chart-card {
        padding: 10px 8px 0;
    }

    .market-headline-value {
        font-size: clamp(1.45rem, 8vw, 2.15rem);
    }

    .dynamic-view-panel {
        gap: 14px;
        padding: 12px;
    }

    .dynamic-view-title {
        margin: 0 0 8px;
        font-size: clamp(1.32rem, 6vw, 1.9rem);
    }

    .dynamic-view-text {
        margin-bottom: 14px;
        font-size: 0.9rem;
    }

    .scatter-square-shell {
        justify-self: stretch;
        width: 100%;
    }

    .market-scatter-controls {
        grid-template-columns: auto auto auto minmax(0, 1fr);
        gap: 6px;
    }

    .market-scatter-controls .scatter-period-slider {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .market-scatter-controls .scatter-control-period {
        grid-column: 4;
        grid-row: 1;
        margin-left: auto;
    }

    .trend-secondary-grid {
        grid-template-columns: 1fr;
    }

    .order-type-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .site-page-title,
    .market-overview-title,
    .dynamic-view-title {
        font-size: clamp(1.12rem, 6vw, 1.45rem);
    }

    .market-chart-card .apexcharts-canvas {
        max-width: 100%;
    }

    .market-scatter-tooltip {
        width: min(238px, calc(100vw - 28px));
    }
}

.rule606-firm-page {
    padding-top: 24px;
}

.rule606-firm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.rule606-firm-title-wrap {
    min-width: 0;
}

.rule606-firm-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.rule606-firm-control-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.rule606-firm-control-title {
    color: rgba(255, 255, 255, .88);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: .02em;
    white-space: nowrap;
}

.rule606-firm-website-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: 118px;
    padding: 7px 9px;
    border: 1px solid rgba(92, 211, 170, .36);
    border-radius: 7px;
    color: var(--qb-green);
    background: rgba(92, 211, 170, .055);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.rule606-firm-website-link span {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    color: #06150f;
    background: var(--qb-green);
    font-size: .78rem;
    line-height: 1;
}

.rule606-firm-website-link:hover,
.rule606-firm-website-link:focus-visible {
    border-color: rgba(92, 211, 170, .72);
    color: #fff;
    background: rgba(92, 211, 170, .14);
}

.rule606-firm-head h1 {
    margin: 4px 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: .98;
    font-weight: 900;
}

.rule606-firm-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.rule606-firm-panel {
    padding: 14px;
}

.rule606-heading-with-period {
    align-items: flex-start;
}

.rule606-heading-with-period .market-chart-period {
    margin-top: 1px;
}

.panel-subtitle {
    margin: 3px 0 0;
    color: var(--qb-muted);
    font-size: .82rem;
}

.rule606-venue-mix {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.rule606-pie {
    display: grid;
    place-items: center;
    min-width: 0;
}

.rule606-pie svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25));
}

.rule606-pie-large svg {
    max-width: 150px;
}

.rule606-pie-small svg {
    max-width: 112px;
}

.rule606-pie path {
    stroke: var(--qb-panel);
    stroke-width: 1.4;
}

.rule606-pie-hole {
    fill: var(--qb-panel);
    stroke: rgba(255, 255, 255, .12);
    stroke-width: 1;
}

.rule606-pie-empty,
.rule606-trend-empty {
    display: grid;
    place-items: center;
    min-height: 120px;
    color: var(--qb-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rule606-venue-legend {
    min-width: 0;
    display: grid;
    gap: 3px;
    font-size: .73rem;
}

.rule606-venue-legend-head,
.rule606-venue-legend-row {
    display: grid;
    grid-template-columns: minmax(68px, 1fr) 58px 70px 14px 58px 60px;
    column-gap: 6px;
    align-items: center;
}

.rule606-venue-legend-head {
    color: var(--qb-muted);
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.12;
    text-transform: uppercase;
}

.rule606-venue-legend-head > span:nth-child(2),
.rule606-venue-legend-row > :nth-child(2) {
    margin-right: 8px;
}

.rule606-venue-legend-head > span:nth-child(4),
.rule606-venue-legend-row > :nth-child(4) {
    grid-column: 5;
}

.rule606-venue-legend-head > span:nth-child(5),
.rule606-venue-legend-row > :nth-child(5) {
    grid-column: 6;
}

.rule606-venue-legend-row {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.rule606-payment-head {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
    height: 100%;
    padding: 3px 0;
    text-align: right;
    cursor: help;
}

.rule606-venue-legend-row strong,
.rule606-venue-legend-row .numeric {
    color: #fff;
    text-align: right;
    white-space: nowrap;
}

.rule606-route-pct {
    font-size: .82rem;
    font-weight: 950;
}

.rule606-payment-cell {
    padding: 3px 0;
}

.rule606-venue-name {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rule606-venue-name i,
.rule606-flow-legend i,
.rule606-trend-legend i {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.rule606-trend-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.rule606-trend-axis {
    stroke: rgba(255, 255, 255, .44);
    stroke-width: 1;
}

.rule606-trend-grid {
    stroke: rgba(255, 255, 255, .10);
    stroke-width: 1;
}

.rule606-trend-line {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .92;
}

.rule606-trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    color: var(--qb-muted);
    font-size: .75rem;
    font-weight: 750;
}

.rule606-trend-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.rule606-flow-panel {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--qb-card-radius);
    background: rgba(255, 255, 255, .035);
}

.rule606-flow-panel-sp500 {
    background:
        linear-gradient(0deg, var(--qb-sp500-section-tint), var(--qb-sp500-section-tint)),
        rgba(255, 255, 255, .035);
}

.rule606-flow-panel-other {
    background:
        linear-gradient(0deg, var(--qb-non-sp500-section-tint), var(--qb-non-sp500-section-tint)),
        rgba(255, 255, 255, .035);
}

.rule606-flow-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.rule606-flow-panel-title span {
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
}

.rule606-flow-panel-title strong {
    color: var(--qb-muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rule606-flow-panel-title .rule606-section-label-sp500 {
    color: var(--qb-blue);
}

.rule606-flow-panel-title .rule606-section-label-other {
    color: var(--qb-green);
}

.rule606-flow-panel-body {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.rule606-flow-legend {
    min-width: 0;
    display: grid;
    gap: 4px;
    font-size: .68rem;
    justify-content: start;
}

.rule606-flow-legend div,
.rule606-flow-legend-head {
    display: grid;
    grid-template-columns: minmax(82px, 106px) 42px 58px 14px 58px 48px;
    column-gap: 5px;
    justify-content: start;
    align-items: center;
}

.rule606-flow-legend div > :nth-child(4),
.rule606-flow-legend-head > :nth-child(4) {
    grid-column: 5;
}

.rule606-flow-legend div > :nth-child(5),
.rule606-flow-legend-head > :nth-child(5) {
    grid-column: 6;
}

.rule606-flow-legend-head {
    color: var(--qb-muted);
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rule606-flow-legend-head > span {
    justify-self: end;
    text-align: right;
}

.rule606-flow-legend-head > span:first-child {
    justify-self: start;
    text-align: left;
}

.rule606-flow-legend span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--qb-muted);
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rule606-flow-legend strong {
    color: #fff;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-size: .66rem;
}

.rule606-route-matrix-panel {
    margin-top: 12px;
}

.rule606-route-matrix-table {
    min-width: 1040px;
}

.rule606-route-matrix-table th:first-child,
.rule606-route-matrix-table td:first-child {
    width: 150px;
}

.rule606-route-matrix-table th:nth-child(2),
.rule606-route-matrix-table td:nth-child(2) {
    width: 70px;
}

.rule606-route-venue-name {
    max-width: 144px;
}

.rule606-route-venue-other {
    color: rgba(224, 231, 245, .72);
}

.rule606-anomaly-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    color: var(--qb-muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rule606-anomaly-note button {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--qb-muted);
    background: rgba(255, 255, 255, .06);
    font-size: .68rem;
    font-weight: 900;
    cursor: default;
}

.rule606-anomaly-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: none;
    width: min(520px, calc(100vw - 32px));
    padding: 12px 13px;
    border: 1px solid rgba(126, 111, 255, .35);
    border-radius: 7px;
    color: var(--qb-text);
    background: #0c1120;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}

.rule606-anomaly-note:hover .rule606-anomaly-popover,
.rule606-anomaly-note:focus-within .rule606-anomaly-popover {
    display: block;
}

.rule606-anomaly-popover strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: .82rem;
}

.rule606-anomaly-popover p {
    margin: 0 0 8px;
    color: var(--qb-muted);
    font-size: .72rem;
    line-height: 1.35;
}

.rule606-anomaly-popover ul {
    display: grid;
    gap: 3px;
    max-height: 260px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.rule606-anomaly-popover li {
    display: grid;
    grid-template-columns: 72px 86px minmax(96px, 1fr) 58px;
    gap: 8px;
    align-items: center;
    color: var(--qb-muted);
    font-size: .7rem;
}

.rule606-anomaly-popover li strong {
    margin: 0;
    color: #ff5d63;
    font-size: .7rem;
    text-align: right;
}

.rule606-anomaly-popover em {
    display: block;
    margin-top: 8px;
    color: var(--qb-muted);
    font-size: .7rem;
}

.about-page {
    display: grid;
    gap: 18px;
}

.about-page-title {
    max-width: none;
    margin: 0 0 4px;
    font-size: clamp(1.55rem, 2.45vw, 2.18rem);
}

@media (min-width: 980px) {
    .about-page-title {
        white-space: nowrap;
    }
}

.about-section {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--qb-border);
    border-radius: var(--qb-card-radius);
    background: var(--qb-about-section-bg);
    box-shadow: var(--qb-card-shadow);
    color: var(--qb-text);
    font-size: 1rem;
    line-height: 1.55;
}

.about-intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .68fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: start;
}

.about-intro-copy {
    min-width: 0;
}

.about-intro-logo {
    display: block;
    width: min(100%, 405px);
    height: auto;
    margin: 0 0 22px;
    border-radius: 4px;
}

.about-intro-visual {
    min-width: 0;
    width: 75%;
    justify-self: center;
}

.about-intro-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
}

.about-section .site-section-heading {
    text-transform: uppercase;
}

.site-blue-emphasis,
.glossary-page .muted strong {
    color: var(--qb-emphasis-blue);
    font-weight: 400;
}

.about-section p {
    max-width: 980px;
    margin: 0 0 22px;
    color: var(--qb-muted);
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section ul {
    max-width: 980px;
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--qb-muted);
}

.about-section li {
    margin-bottom: 12px;
}

.about-site-links {
    display: grid;
    gap: 10px;
    margin: 12px 0 28px;
    width: 100%;
    max-width: none;
}

.about-site-links a {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
    color: var(--qb-text);
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease;
}

.about-site-links a:hover,
.about-site-links a:focus-visible {
    border-color: rgba(92, 211, 170, .38);
    background: rgba(92, 211, 170, .055);
}

.about-site-links strong {
    color: var(--qb-green);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-site-links span {
    color: var(--qb-muted);
}

.legal-page h1 {
    margin: 4px 0 10px;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 850;
    letter-spacing: 0;
}

.legal-panel {
    max-width: 920px;
    margin-top: 22px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--qb-card-radius);
    background: rgba(255, 255, 255, .035);
    box-shadow: var(--qb-card-shadow);
    color: var(--qb-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.legal-panel h2 {
    margin: 28px 0 8px;
    color: #d7d4e7;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.legal-panel h2:first-of-type {
    margin-top: 0;
}

.legal-panel p {
    margin: 0 0 16px;
}

.legal-updated {
    color: rgba(255, 255, 255, .48);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .rule606-firm-head,
    .rule606-firm-control-row,
    .rule606-firm-top-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rule606-firm-title-wrap {
        min-width: 0;
    }

    .rule606-firm-control-left {
        align-items: flex-start;
    }

    .rule606-firm-control-title {
        white-space: normal;
    }

    .rule606-venue-mix,
    .rule606-flow-panel-body {
        grid-template-columns: 1fr;
    }

    .rule606-flow-grid {
        grid-template-columns: 1fr;
    }

    .rule606-venue-legend-head,
    .rule606-venue-legend-row {
        grid-template-columns: minmax(90px, 1fr) 52px 60px;
    }

    .rule606-venue-legend-head span:nth-child(n+4),
    .rule606-venue-legend-row span:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 700px) {
    .about-intro-section {
        grid-template-columns: 1fr;
    }

    .about-intro-logo {
        width: min(100%, 405px);
        margin-bottom: 22px;
    }

    .about-intro-visual {
        width: 100%;
    }

    .about-intro-visual img {
        max-height: 70vh;
        object-fit: contain;
    }

    .about-site-links a {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.site-footer {
    width: 100%;
    padding: 12px var(--site-gutter) 28px;
    color: var(--qb-muted);
}

.qubology-footer-research {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 5px;
    font-size: .76rem;
    line-height: 1.45;
}

.qubology-footer-research-brand {
    grid-row: 1 / span 2;
    padding-right: 18px;
    color: var(--qb-text);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.qubology-footer-research-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.qubology-footer {
    position: relative;
    width: min(100%, var(--site-max-width));
    margin: 0 auto;
    background-color: var(--qb-panel);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.qubology-footer-gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--qb-blue), transparent);
    opacity: .5;
}

.qubology-footer-content {
    padding: 28px 20px 24px;
}

.qubology-footer-top,
.qubology-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.qubology-footer-brand,
.qubology-footer-actions,
.qubology-footer-icons,
.qubology-footer-meta {
    display: flex;
    align-items: center;
}

.qubology-footer-brand {
    gap: 10px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.qubology-brand-pulse {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--qb-blue);
    animation: qubology-footer-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

@keyframes qubology-footer-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.qubology-footer-actions {
    gap: 26px;
}

.qubology-footer-icons {
    gap: 24px;
}

.qubology-footer-icon-link {
    display: block;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.qubology-footer-icon-wrap {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background-color .25s ease;
}

.qubology-footer-icon-wrap svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.qubology-footer-icon-link[aria-label="Email"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="Email"]:focus-visible .qubology-footer-icon-wrap {
    background-color: var(--qb-blue);
}

.qubology-footer-icon-link[aria-label="LinkedIn"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="LinkedIn"]:focus-visible .qubology-footer-icon-wrap {
    background-color: #0077b5;
}

.qubology-footer-icon-link[aria-label="YouTube"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="YouTube"]:focus-visible .qubology-footer-icon-wrap {
    background-color: #ff0000;
}

.qubology-footer-icon-link[aria-label="RSS"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="RSS"]:focus-visible .qubology-footer-icon-wrap {
    background-color: #f26522;
}

.qubology-footer-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, .1);
}

.qubology-footer-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: color .3s ease;
}

.qubology-footer-link:hover,
.qubology-footer-link:focus-visible {
    color: var(--qb-blue);
}

.qubology-footer-divider {
    height: 1px;
    margin: 18px 0 12px;
    background-color: rgba(255, 255, 255, .05);
}

.qubology-footer-research-divider {
    margin: 14px 0 12px;
}

.qubology-footer-bottom {
    color: rgba(255, 255, 255, .3);
    font-size: .76rem;
}

.qubology-footer-meta {
    gap: 18px;
    white-space: nowrap;
}

.cookie-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .58);
}

.cookie-dialog {
    width: min(100%, 520px);
    max-height: min(84vh, 760px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: var(--qb-panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .44);
    color: var(--qb-text);
}

.cookie-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 12px;
}

.cookie-dialog-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.cookie-dialog-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .75);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-policy-content {
    overflow-y: auto;
    padding: 0 22px 8px;
    color: var(--qb-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.cookie-policy-content h3 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: .98rem;
}

.cookie-policy-content p {
    margin: 0 0 12px;
}

.cookie-policy-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.cookie-policy-content li {
    margin-bottom: 8px;
}

.cookie-policy-content hr {
    border: 0;
    height: 1px;
    margin: 14px 0;
    background: rgba(255, 255, 255, .08);
}

.cookie-dialog-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px 20px;
}

.cookie-dialog-confirm {
    border: 1px solid rgba(107, 163, 216, .75);
    border-radius: 6px;
    background: rgba(107, 163, 216, .22);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 8px 14px;
}

@media (max-width: 700px) {
    .qubology-footer-research {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .qubology-footer-research-brand {
        grid-row: auto;
        padding-right: 0;
        padding-bottom: 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .qubology-footer-content {
        padding: 24px 18px;
    }

    .qubology-footer-top,
    .qubology-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .qubology-footer-actions {
        flex-wrap: wrap;
        gap: 18px;
    }

    .qubology-footer-icons {
        gap: 14px;
    }

    .qubology-footer-separator {
        display: none;
    }

    .qubology-footer-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
        white-space: normal;
    }
}
