
/* MemryX palette, scoped to the Model eXplorer page. */
html:has(.mx-title-icon) {
    --mx-brand-blue: #38acce;
    --pst-color-primary: var(--mx-brand-blue);
    --pst-color-link: #21758e;
    --pst-color-link-hover: #10264a;
    --mx-accent-text: #21758e;
}
html[data-theme="dark"]:has(.mx-title-icon) {
    --pst-color-link: #38acce;
    --pst-color-link-hover: #80d1e8;
    --mx-accent-text: #38acce;
}
h1:has(.mx-title-icon) { color: #10264a; }
.mx-title-icon { width: 1em; height: 1em; margin-left: .05em; vertical-align: -.13em; fill: currentColor; color: var(--mx-brand-blue, #38acce); }
.mx-title-icon.mx-title-ready { animation: mx-title-turn 2s ease-in-out 1; transform-origin: center; }
@keyframes mx-title-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mx-title-icon.mx-title-ready { animation: none; } }
[data-theme="dark"] h1:has(.mx-title-icon) { color: #38acce; }
:root {
    --mx-search-control-height: 2.5rem;
    --mx-search-padding-y: .6rem;
    --mx-search-base-height: calc(var(--mx-search-control-height) + 2 * var(--mx-search-padding-y) + 1px);
}
#mx-category-nav {
    position: fixed; inset: var(--mx-banner-bottom, 0px) auto 0 0; z-index: 100; display: flex; flex-direction: column;
    width: var(--mx-rail-width, 3.5rem); height: calc(100dvh - var(--mx-banner-bottom, 0px)); max-height: none; padding: 0; box-sizing: border-box;
    border: 0; border-right: 1px solid var(--pst-color-border, #ccc); border-radius: 0;
    background: var(--pst-color-background, #fff); overflow: hidden;
    transition: width .18s ease;
}
#mx-category-nav.mx-expanded { box-shadow: 4px 0 16px #0002; }
#mx-category-nav a[hidden], #mx-category-nav[hidden], #mx-sticky-toolbar[hidden], .mx-filter-chips[hidden] { display: none; }
.mx-nav-links { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
#mx-category-nav a, #mx-category-nav .mx-nav-toggle {
    display: flex; align-items: center; gap: .65rem; min-height: 3rem; width: 100%;
    padding: .3rem .5rem; box-sizing: border-box; border: 0; border-radius: 0;
    color: var(--pst-color-text-base, #222); background: transparent; text-decoration: none;
}
#mx-category-nav .mx-nav-toggle { height: var(--mx-search-base-height); min-height: var(--mx-search-base-height); max-height: var(--mx-search-base-height); flex-shrink: 0; cursor: pointer; font: inherit; font-weight: 600; border-bottom: 1px solid var(--pst-color-border, #ccc); }
#mx-category-nav a:hover, #mx-category-nav a[aria-current="location"] { background: var(--pst-color-surface, #eee); color: var(--pst-color-primary, #165c92); }
#mx-category-nav a[aria-current="location"] { box-shadow: inset 3px 0 var(--pst-color-primary, #165c92); }
#mx-category-nav :focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: -3px; }
#mx-category-nav svg { box-sizing: border-box; width: 2.4rem; height: 2.4rem; flex-shrink: 0; padding: .6rem; fill: currentColor; }
#mx-category-nav.mx-expanded svg.mx-category-icon {
    border-radius: .75rem; color: var(--pst-color-primary, #165c92);
    background: color-mix(in srgb, var(--pst-color-primary, #165c92) 9%, var(--pst-color-background, #fff));
}
.mx-nav-label { display: none; flex: 1; font-size: .875rem; text-align: left; }
#mx-category-nav.mx-expanded .mx-nav-label { display: block; }
/* Reveal the rail and its reserved space together, without shifting the loader. */
html:not(.mx-page-loading) .mx-rail-content { padding-left: 3.5rem; }
@media (prefers-reduced-motion: reduce) { #mx-category-nav { transition: none; } }
@media print { #mx-category-nav { display: none !important; } html:not(.mx-page-loading) .mx-rail-content { padding-left: 0; } }
.mx-model-category { scroll-margin-top: var(--mx-navigation-offset, 6rem); }
#mx-sticky-toolbar { position: fixed; left: var(--mx-rail-width, 3.5rem); right: 0; width: auto; transition: left .18s ease; box-sizing: border-box; z-index: 99; padding: var(--mx-search-padding-y) .8rem; border: 0; border-bottom: 1px solid var(--pst-color-border, #ccc); border-radius: 0; background: var(--pst-color-background, #fff); box-shadow: none; }
.mx-search-title svg, .mx-sticky-lens svg { width: 1.3rem; height: 1.3rem; fill: currentColor; color: var(--pst-color-primary); }
.mx-sticky-lens { display: grid; place-items: center; width: 1.5rem; min-height: var(--mx-search-control-height); flex-shrink: 0; }
.mx-sticky-row { display: flex; align-items: flex-start; gap: .6rem; }
#mx-sticky-count { display: inline-flex; align-items: center; gap: .4rem; }

.mx-sticky-fields { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; gap: .6rem; align-items: center; }
.mx-sticky-fields label { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; min-width: 0; flex: 1 1 9rem; }
#mx-sticky-toolbar :is(input, select, button), .mx-filter-chips button { font: inherit; color: var(--pst-color-text-base, #222); background: var(--pst-color-background, #fff); border: 1px solid var(--pst-color-border, #aaa); border-radius: .35rem; padding: .35rem .5rem; min-width: 0; }
#mx-sticky-toolbar .mx-sticky-fields :is(input,select,button) { height: var(--mx-search-control-height); min-height: var(--mx-search-control-height); box-sizing: border-box; }
#mx-sticky-toolbar :focus-visible, .mx-filter-chips button:focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: 2px; }
#mx-sticky-toolbar button, .mx-filter-chips button { cursor: pointer; }
#mx-sticky-count { white-space: nowrap; font-size: .8rem; height: var(--mx-search-control-height); box-sizing: border-box; padding: 0; }
.mx-filter-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.mx-filter-chips button { font-size: .8rem; }
.mx-overview div { position: relative; }
.mx-overview [data-facet] { position: absolute; inset: 0; width: 100%; border-radius: 1rem; border: 0; background: transparent; cursor: pointer; }
.mx-overview div:has([data-facet]:hover) { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 6%, var(--pst-color-background, #fff)); }
.mx-overview div:has([data-facet][aria-pressed="true"]) { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 12%, var(--pst-color-background, #fff)); }
.mx-overview [data-facet]:focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: -2px; }
table.mx-model-table col:nth-child(13), table.mx-model-table thead th:nth-child(13) { width: 5%; }
@media (max-width: 767px) {
    .mx-sticky-fields { flex-wrap: wrap; gap: .35rem; }
    .mx-sticky-fields label { flex-basis: 40%; }
    #mx-sticky-count { flex: 1; }
}

.mx-explorer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin: 1.25rem 0; }
.mx-search-card { min-width: 0; padding: 1.25rem; }
.mx-search-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
.mx-summary-card { min-width: 0; }
.mx-search-card #mx-controls { display: grid; gap: .85rem; margin: 0; }
.mx-search-field { position: relative; display: flex; align-items: center; border-radius: 2rem; background: var(--pst-color-surface, #f2f4f5); }
.mx-search-field svg { position: absolute; left: 1rem; width: 1.25rem; height: 1.25rem; color: var(--pst-color-text-muted, #555); pointer-events: none; }
.mx-search-card #searchBox { width: 100%; min-width: 0; height: 3.4rem; padding: .75rem 1rem .75rem 3rem; font: inherit; color: var(--pst-color-text-base, #222); background: transparent; border: 0; border-radius: inherit; }
.mx-search-card #searchBox::placeholder { color: var(--pst-color-text-muted, #555); opacity: 1; }
.mx-search-field:focus-within { box-shadow: inset 0 0 0 2px var(--pst-color-primary, #165c92); }
.mx-search-card #searchBox:focus { outline: none; }
.mx-category-field { position: relative; display: block; border-radius: .75rem; background: var(--pst-color-surface, #f2f4f5); border-bottom: 1px solid var(--pst-color-text-muted, #777); }
.mx-category-field span { position: absolute; top: .4rem; left: 1rem; font-size: .72rem; color: var(--pst-color-text-muted, #555); pointer-events: none; }
.mx-search-card #mx-category { width: 100%; height: 3.5rem; padding: 1.25rem .75rem .35rem 1rem; font: inherit; color: var(--pst-color-text-base, #222); background: transparent; border: 0; border-radius: inherit; }
.mx-search-card #mx-category option { background: var(--pst-color-background, #fff); color: var(--pst-color-text-base, #222); }
.mx-category-field:focus-within { border-bottom-color: var(--pst-color-primary, #165c92); box-shadow: 0 1px 0 var(--pst-color-primary, #165c92); }
.mx-category-field:focus-within span { color: var(--mx-accent-text, #21758e); }
.mx-search-card #mx-category:focus { outline: none; }
.mx-search-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.mx-search-card #mx-result-count { margin: 0; font-size: .8rem; color: var(--pst-color-text-muted, #555); }
.mx-search-card #mx-reset { font: inherit; font-size: .85rem; font-weight: 600; padding: .4rem .7rem; border: 0; border-radius: 2rem; color: var(--mx-accent-text, #21758e); background: transparent; cursor: pointer; }
.mx-search-card #mx-reset:hover { background: var(--pst-color-surface, #f2f4f5); }
.mx-search-card #mx-reset:focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); }
.mx-search-card #mx-no-results { margin: .5rem 0 0; }
@media (min-width: 992px) {
    .mx-explorer-top { align-items: stretch; }
    .mx-summary-card { display: grid; }
    .mx-summary-card .mx-overview { grid-template-rows: repeat(3, 1fr); }
}
@media (max-width: 991px) { .mx-explorer-top { grid-template-columns: 1fr; } }

.mx-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 .75rem; }
.mx-overview div { padding: .75rem .9rem; }
.mx-overview dt { line-height: 1.35; font-size: .85rem; font-weight: normal; color: var(--pst-color-text-muted, #555); }
.mx-overview dd { font-size: 1.8rem; line-height: 1.2; font-weight: bold; margin: .35rem 0 0; color: var(--pst-color-text-base, #222); }
/* PyData applies a large bottom margin to definition lists. */
.mx-summary-card .mx-overview { margin: 0 !important; }
.mx-explorer-top > .mx-overview-note { grid-column: 1 / -1; font-size: .73rem; line-height: 1.45; color: var(--pst-color-text-muted, #555); margin: -.5rem 0 0; }
@media (max-width: 575px) {
    .mx-overview { grid-template-columns: 1fr; gap: .5rem; }
    .mx-overview div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1rem; }
    .mx-overview dt { min-height: 0; }
    .mx-overview dd { font-size: 1.5rem; margin: 0; }
}
.mx-table-scroll { max-width: 100%; overflow-x: auto; }
table.mx-model-table { width: 100%; }
table.mx-model-table td:is(:nth-child(1), :nth-child(5), :nth-child(7), :nth-child(8), :nth-child(9)) { text-align: right; font-variant-numeric: tabular-nums; }
table.mx-model-table td:nth-child(2) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
table.mx-model-table :is(th, td):nth-child(n+3) { white-space: normal; }
.mx-model-category[hidden], table.mx-model-table tr[hidden], #mx-no-results[hidden] { display: none !important; }
#mx-plot { width: 100%; }
.mx-source-link { display: inline; overflow-wrap: anywhere; }
.mx-source-tail { white-space: nowrap; }
.mx-dfp-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25em; max-width: 100%; }
.mx-dfp-link .mx-action-icon { color: inherit; }
.mx-external-link-icon { display: inline-block; width: .85em; height: .85em; vertical-align: -.1em; }
#mx-plot[aria-busy="true"] { min-height: 12rem; display: grid; place-items: center; }
.mx-plot-loading-status { display: flex; align-items: center; justify-content: center; gap: .85rem; }
.mx-category-tile.mx-no-matches, #mx-category-nav a[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.mx-category-tile.mx-no-matches a { cursor: not-allowed; }
/* Shared surfaces: search, statistics, disclosures and category tiles. */
.mx-search-card, .mx-overview > div, .mx-info-panels details.sd-dropdown, .mx-category-buttons .mx-category-tile {
    border: 1px solid var(--pst-color-border, #d6dbe0) !important;
    border-radius: 1rem;
    background: var(--pst-color-background, #fff);
    box-shadow: 0 2px 5px #0000000a !important;
}
.mx-overview > div:has([data-facet][aria-pressed="true"]) { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 12%, var(--pst-color-background, #fff)); }
.mx-overview > div:has([data-facet]:hover):not(:has([aria-pressed="true"])) { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 6%, var(--pst-color-background, #fff)); }
.mx-info-panels { display: grid; gap: .75rem; margin: 1.25rem 0 1.5rem; }
.mx-info-panels > .sd-container-fluid, .mx-info-panels details.sd-dropdown { margin: 0 !important; padding: 0 !important; }
.mx-info-panels .sd-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 !important; }
.mx-info-panels .sd-row > .sd-col { width: auto; padding: 0 !important; margin: 0 !important; }
.mx-info-panels details.sd-dropdown { overflow: hidden; align-self: start; }
.mx-info-panels summary.sd-summary-title { display: flex; align-items: center; min-height: 3.5rem; gap: .75rem; padding: .75rem 1rem !important; border: 0 !important; background: transparent !important; color: var(--pst-color-text-base, #222) !important; font-size: .9rem; }
.mx-info-panels details.sd-dropdown > summary.sd-summary-title { background: var(--pst-color-background, #fff) !important; }
.mx-info-panels details.sd-dropdown > summary.sd-summary-title::before { display: none !important; }
.mx-info-panels summary:hover { background: var(--pst-color-surface, #f5f5f5) !important; }
.mx-info-panels .sd-summary-icon { position: static; color: var(--pst-color-primary, #165c92); }
.mx-info-panels .sd-summary-text { flex: 1; }
.mx-info-panels .sd-summary-state-marker { position: static; margin-left: auto; color: var(--pst-color-text-muted, #555); }
.mx-info-panels .sd-summary-content { border: 0; padding: .25rem 1rem 1rem; }
#mx-plot-panel, #mx-plot-panel > .sd-summary-content {
    background: var(--pst-color-background, #fff) !important;
}
.mx-category-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .85rem; }
.mx-category-heading h2 { font-size: 1.2rem; margin: 0 !important; padding: 0; border: 0; }
.mx-category-heading p { margin: 0 !important; font-size: .8rem; color: var(--pst-color-text-muted, #555); }
.mx-category-buttons { margin: 0 0 1.5rem !important; }
.mx-category-buttons > .sd-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0 !important; }
.mx-category-buttons > .sd-row > .sd-col { width: auto; padding: 0 !important; margin: 0 !important; }
.mx-category-buttons .mx-category-tile > a.sd-stretched-link { position: absolute; inset: 0; border-radius: inherit; }
.mx-category-buttons .mx-category-tile { transition: background .15s, transform .15s; }
.mx-category-buttons .mx-category-tile:hover, .mx-category-buttons .mx-category-tile:focus-within { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 6%, var(--pst-color-background, #fff)) !important; transform: translateY(-2px); }
.mx-category-buttons .mx-category-tile:focus-within { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: 2px; }
.mx-category-buttons .sd-card-body { background: transparent !important; border-radius: inherit; padding: .8rem 1rem; display: flex; flex-direction: row; align-items: center; gap: .65rem; }
.mx-category-buttons .mx-category-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: .65rem; margin: 0 !important; font-size: .9rem; font-weight: 600 !important; line-height: 1.35; min-height: 3rem; }
.mx-category-icon { display: inline-block; fill: currentColor; vertical-align: middle; }
.mx-category-title svg { flex-shrink: 0; width: 2.4rem; height: 2.4rem; padding: .6rem; border-radius: .75rem; color: var(--pst-color-primary, #165c92); background: color-mix(in srgb, var(--pst-color-primary, #165c92) 9%, var(--pst-color-background, #fff)); }
.mx-category-meta { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; margin: 0; }
.mx-category-arrow { color: var(--pst-color-primary, #165c92); font-size: 1.15rem; }
@media (max-width: 1199px) { .mx-category-buttons > .sd-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .mx-info-panels .sd-row { grid-template-columns: 1fr; }
    .mx-category-buttons > .sd-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .mx-category-buttons > .sd-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mx-category-buttons .mx-category-tile > a.sd-stretched-link { position: absolute; inset: 0; border-radius: inherit; }
.mx-category-buttons .mx-category-tile { transition: none; transform: none; } }
/* Flush category tables, with a shared, synchronized floating heading. */
.mx-model-category { overflow: hidden; border: 1px solid var(--pst-color-border, #d6dbe0) !important; border-radius: 1rem; background: var(--pst-color-background, #fff); box-shadow: 0 2px 5px #0000000a !important; margin: 0 0 1rem !important; }
.mx-model-category .mx-category-table-title, #mx-table-dock .mx-dock-title { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.4rem; margin: 0 !important; padding: .8rem 1rem !important; font: inherit; font-size: .95rem; font-weight: 600; color: var(--pst-color-text-base, #222) !important; background: var(--pst-color-background, #fff) !important; border: 0 !important; border-bottom: 1px solid var(--pst-color-border, #d6dbe0) !important; text-align: left; }
.mx-category-table-title svg.mx-category-icon, .mx-dock-title svg.mx-category-icon { color: var(--pst-color-primary, #165c92); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.mx-category-table-body, .mx-model-category .mx-table-scroll { padding: 0 !important; margin: 0 !important; border: 0 !important; }
:is(table.mx-model-table, table.mx-dock-table) { border-collapse: separate; border-spacing: 0; margin: 0 !important; width: 100%; font-size: .85rem; }
:is(table.mx-model-table, table.mx-dock-table) :is(th, td) { padding: .65rem .8rem; vertical-align: middle; line-height: 1.4; border: 0; border-bottom: 1px solid var(--pst-color-border, #d6dbe0); }
:is(table.mx-model-table, table.mx-dock-table) :is(th, td) > p { padding: 0 !important; margin: 0 !important; }
:is(table.mx-model-table, table.mx-dock-table) { --mx-table-row-bg: #fff; --mx-table-stripe-bg: #f5f6f7; --mx-table-head-bg: color-mix(in srgb, var(--pst-color-primary, #165c92) 9%, var(--pst-color-background, #fff)); }
html[data-theme="dark"] :is(table.mx-model-table, table.mx-dock-table) {
    --mx-table-row-bg: #181f27;
    --mx-table-stripe-bg: #1d2630;
    --mx-table-head-bg: #23303c;
    --mx-table-text: #e6edf3;
    --pst-color-link: #7dd3ee;
    --pst-color-link-hover: #b3eafa;
    --pst-color-success: #8adca9;
}
:is(table.mx-model-table, table.mx-dock-table) th { padding-top: .95rem; padding-bottom: .95rem; font-size: .85rem; font-weight: 600; color: var(--mx-table-text, var(--pst-color-text-base, #222)); background: var(--mx-table-head-bg) !important; box-shadow: none !important; white-space: nowrap; }
:is(table.mx-model-table, table.mx-dock-table) thead th { text-align: left; }
table.mx-model-table tbody tr:nth-child(even of :not([hidden], .mx-subgroup-row)) { --mx-table-row-bg: var(--mx-table-stripe-bg); }
table.mx-model-table tbody tr { background: var(--mx-table-row-bg); }
table.mx-model-table tbody td { color: var(--mx-table-text, var(--pst-color-text-base, #222)); background: var(--mx-table-row-bg) !important; box-shadow: none !important; border-bottom-color: color-mix(in srgb, var(--pst-color-border, #d6dbe0) 45%, var(--mx-table-row-bg)); }
table.mx-model-table tbody td:is(:nth-child(2), :nth-child(7)) { font-weight: 600; }
table.mx-model-table tbody td:nth-child(13) a { font-weight: 600; }
table.mx-model-table .mx-model-badges { font-weight: 400; }
table.mx-model-table tbody tr:hover td { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 5%, var(--mx-table-row-bg)) !important; }
table.mx-model-table tbody tr:last-child td { border-bottom: 0; }
table.mx-model-table tbody tr:has(.mx-subgroup-label) > :is(td, th) { background: color-mix(in srgb, var(--mx-table-head-bg) 65%, white) !important; text-align: left; font-weight: 600; padding: .5rem .8rem; }
html[data-theme="dark"] table.mx-model-table tbody tr:has(.mx-subgroup-label) > :is(td, th) { background: #202b35 !important; }
.mx-subgroup-toggle { display: flex; align-items: center; gap: .55rem; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mx-subgroup-triangle { flex: 0 0 .75em; width: .75em; height: .75em; fill: currentColor; }
.mx-subgroup-toggle:focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: 3px; }
#mx-table-dock { position: fixed; z-index: 90; box-sizing: border-box; overflow: hidden; border: 1px solid var(--pst-color-border, #d6dbe0); border-radius: 0; background: var(--pst-color-background, #fff); box-shadow: 0 3px 8px #00000018; }
#mx-table-mask { position: fixed; top: 0; z-index: 89; background: var(--pst-color-background, #fff); }
#mx-table-dock[hidden], #mx-table-mask[hidden] { display: none; }
#mx-table-dock .mx-dock-viewport { overflow: hidden; }
#mx-table-dock table.mx-dock-table { table-layout: fixed; }
#mx-table-dock .mx-dock-title:focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: -3px; }
@media print { #mx-table-dock, #mx-table-mask { display: none !important; } }
/* Override PyData's accent on both the disclosure title and its body. */
.bd-article details.sd-dropdown > summary.sd-card-header,
.bd-article details.sd-dropdown > summary.sd-card-header + div.sd-summary-content { border-left: 0 !important; }
.mx-framework { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.mx-framework svg.mx-framework-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; color: var(--pst-color-text-base, #222); }
.mx-framework-tensorflow svg.mx-framework-icon, .mx-framework-tflite svg.mx-framework-icon { color: #b85200; }
.mx-framework-keras svg.mx-framework-icon { color: #c00000; }
html[data-theme="dark"] .mx-framework-tensorflow svg.mx-framework-icon,
html[data-theme="dark"] .mx-framework-tflite svg.mx-framework-icon { color: #ffb66b; }
html[data-theme="dark"] .mx-framework-keras svg.mx-framework-icon { color: #ff8585; }
.mx-guided-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.mx-guided-fields label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; color: var(--pst-color-text-muted, #555); }
.mx-guided-fields input, .mx-guided-fields select { width: 100%; min-width: 0; padding: .65rem; border: 1px solid var(--pst-color-border, #ccc); border-radius: .75rem; font: inherit; color: var(--pst-color-text-base, #222); background: var(--pst-color-surface, #f2f4f5); }
.mx-guided-fields :is(input, select):focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: 2px; }
.mx-guided-help { font-size: .75rem; color: var(--pst-color-text-muted, #555); margin: .3rem 0 0 !important; }
@media(max-width: 575px) { .mx-guided-fields { grid-template-columns: 1fr; } }
.mx-compare-checkbox { margin: 0; width: 1rem; height: 1rem; accent-color: var(--pst-color-primary, #165c92); vertical-align: middle; }
#mx-comparison-tray[hidden] { display: none; }
#mx-comparison-tray { position: fixed; bottom: .75rem; left: 1rem; right: 4rem; z-index: 110; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem; border: 1px solid var(--pst-color-border, #ccc); border-radius: 1rem; background: var(--pst-color-background, #fff); color: var(--pst-color-text-base, #222); box-shadow: 0 3px 16px #0003; }
.mx-comparison-list { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 100%; max-height: 6rem; overflow-y: auto; }
:is(#mx-comparison-tray, #mx-comparison-dialog) button { padding: .4rem .7rem; border: 1px solid var(--pst-color-border, #ccc); border-radius: .6rem; font: inherit; color: var(--pst-color-text-base, #222); background: var(--pst-color-surface, #f2f4f5); cursor: pointer; }
:is(#mx-comparison-tray, #mx-comparison-dialog) button:disabled { opacity: .5; cursor: default; }
:is(#mx-comparison-tray, #mx-comparison-dialog) :focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: 2px; }
#mx-comparison-dialog { width: min(95vw, 90rem); max-width: 95vw; max-height: 90dvh; padding: 1.25rem; border: 1px solid var(--pst-color-border, #ccc); border-radius: 1rem; color: var(--pst-color-text-base, #222); background: var(--pst-color-background, #fff); }
#mx-comparison-title { padding-right: 3rem; }
#mx-comparison-dialog .mx-comparison-close { position: absolute; top: .65rem; right: .65rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; }
#mx-comparison-dialog::backdrop { background: #0008; }
.mx-comparison-scroll { overflow-x: auto; margin-top: 1rem; }
.mx-comparison-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.mx-comparison-table :is(th, td) { padding: .85rem 1rem; border-bottom: 1px solid var(--pst-color-border, #ccc); vertical-align: middle; text-align: center; overflow-wrap: anywhere; }
.mx-comparison-table th { background: var(--pst-color-surface, #f2f4f5); }
.mx-comparison-table th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; }
.mx-comparison-number { font-variant-numeric: tabular-nums; }
.mx-comparison-best { background: color-mix(in srgb, var(--pst-color-primary, #165c92) 14%, var(--pst-color-background, #fff)); }
.mx-comparison-badge { display: block; min-height: 1em; line-height: 1; font-size: .7rem; margin-top: .35rem; }
.mx-comparison-table :is(th, td) > p { margin: 0 !important; padding: 0 !important; }
body.mx-comparing { padding-bottom: 12rem; }
@media(max-width: 767px) { #mx-comparison-tray { bottom: 4rem; left: .5rem; right: .5rem; font-size: .8rem; } }
.mx-result-badge { display: inline-block; padding: .12rem .45rem; border-radius: .45rem; font-weight: 600; font-variant-numeric: tabular-nums; color: inherit; background: color-mix(in srgb, var(--pst-color-text-muted, #555) 10%, var(--pst-color-background, #fff)); }
.mx-comparison-footnotes { margin-top: .75rem; font-size: .75rem; color: var(--pst-color-text-muted, #555); }
.mx-comparison-footnotes p { margin: .2rem 0; }
.mx-multitask-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mx-model-icon-hint, .mx-multitask-badge, .mx-latency-hint { cursor: help; }
a.mx-resource-link { cursor: pointer; text-decoration: none; }
a.mx-resource-link:hover > span:not(.mx-resource-arrow) { text-decoration: underline; text-underline-offset: .15em; }
.mx-resource-arrow { font-size: .95em; line-height: 1; }
.mx-model-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .3rem; }
a.mx-resource-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mx-model-icon-hint, .mx-multitask-badge {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .3em; padding: .25em .4em; margin-inline: .08em; border: 0; border-radius: .4em;
  font-size: .78em; white-space: nowrap;
  color: var(--mx-accent-text, #21758e) !important;
  background: color-mix(in srgb, var(--pst-color-primary, #165c92) 9%, var(--pst-color-background, #fff)) !important;
  vertical-align: middle; line-height: 1;
}
/* Resource and optimization colors stay distinct from Faster (green) and New (purple). */
.mx-status-tutorial { --mx-status-text: #1759a6; --mx-status-bg: #edf4fc; }
.mx-status-extension { --mx-status-text: #475569; --mx-status-bg: #f1f5f9; }
.mx-status-example { --mx-status-text: #a12669; --mx-status-bg: #fdf0f7; }
.mx-status-optimized { --mx-status-text: #855000; --mx-status-bg: #fff5dc; }
html[data-theme="dark"] .mx-status-tutorial { --mx-status-text: #93c5fd; --mx-status-bg: #172d48; }
html[data-theme="dark"] .mx-status-extension { --mx-status-text: #cbd5e1; --mx-status-bg: #283342; }
html[data-theme="dark"] .mx-status-example { --mx-status-text: #f5a9d0; --mx-status-bg: #402238; }
html[data-theme="dark"] .mx-status-optimized { --mx-status-text: #fcd34d; --mx-status-bg: #3c2e14; }
.mx-model-icon-hint:is(.mx-status-tutorial, .mx-status-example, .mx-status-optimized, .mx-status-extension) {
  color: var(--mx-status-text) !important;
  background: var(--mx-status-bg) !important;
}
a.mx-model-icon-hint.mx-resource-link:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--mx-status-text) 8%, var(--mx-status-bg)) !important;
}
.mx-model-icon-hint .mx-model-status-icon { color: inherit !important; width: 1.2em; height: 1.2em; display: inline-block; vertical-align: middle; fill: currentColor; }
.mx-model-icon-hint:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mx-action-icon { display: inline-block; width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; flex-shrink: 0; }
.mx-multitask-badge .mx-action-icon { width: 1.2em; height: 1.2em; }
.mx-panel-icon { width: 1.15em; height: 1.15em; margin-right: .65em; fill: currentColor; color: var(--pst-color-primary, #165c92); vertical-align: -.2em; }
.mx-sdk-change { display: inline-block; padding: .2em .45em; border-radius: .4em; font-size: .78em; white-space: nowrap; }
.mx-sdk-up { color: var(--pst-color-success, #19733a); background: color-mix(in srgb, var(--pst-color-success, #19733a) 10%, var(--pst-color-background, #fff)); }
.mx-sdk-down { color: var(--pst-color-danger, #b42318); background: color-mix(in srgb, var(--pst-color-danger, #b42318) 10%, var(--pst-color-background, #fff)); }
.mx-sdk-new { color: #7543c7; background: color-mix(in srgb, #7543c7 12%, var(--pst-color-background, #fff)); }
html[data-theme="dark"] .mx-sdk-new { color: #c6a4ff; background: color-mix(in srgb, #c6a4ff 12%, var(--pst-color-background, #14181e)); }
.mx-overview > div { display: flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 575px) {
  .mx-overview > div { flex-direction: row; flex-wrap: wrap; }
}
/* Fit all benchmark columns within the available page width. */
table.mx-model-table { table-layout: fixed; width: 100% !important; min-width: 0 !important; }
:is(table.mx-model-table, table.mx-dock-table) :is(th, td) { padding-inline: .35rem; white-space: normal !important; overflow-wrap: anywhere; }
table.mx-model-table .mx-framework { flex-wrap: wrap; gap: .2rem; white-space: normal; }
table.mx-model-table :is(.mx-model-icon-hint, .mx-multitask-badge, .mx-sdk-change) { max-width: 100%; box-sizing: border-box; white-space: normal; }
table.mx-model-table col:nth-child(1), table.mx-model-table thead th:nth-child(1) { width: 3%; }
table.mx-model-table col:nth-child(2), table.mx-model-table thead th:nth-child(2) { width: 16%; }
table.mx-model-table col:nth-child(3), table.mx-model-table thead th:nth-child(3) { width: 10%; }
table.mx-model-table col:nth-child(4), table.mx-model-table thead th:nth-child(4) { width: 8%; }
table.mx-model-table col:nth-child(5), table.mx-model-table thead th:nth-child(5) { width: 6%; }
table.mx-model-table col:nth-child(6), table.mx-model-table thead th:nth-child(6) { width: 8%; }
table.mx-model-table col:nth-child(7), table.mx-model-table thead th:nth-child(7) { width: 5%; }
table.mx-model-table col:nth-child(8), table.mx-model-table thead th:nth-child(8) { width: 6%; }
table.mx-model-table col:nth-child(9), table.mx-model-table thead th:nth-child(9) { width: 6%; }
table.mx-model-table col:nth-child(10), table.mx-model-table thead th:nth-child(10) { width: 8%; }
table.mx-model-table col:nth-child(11), table.mx-model-table thead th:nth-child(11) { width: 10%; }
table.mx-model-table col:nth-child(12), table.mx-model-table thead th:nth-child(12) { width: 9%; }
@media (max-width: 767px) {
  table.mx-model-table, table.mx-model-table tbody { display: block; width: 100%; }
  table.mx-model-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.mx-model-table tbody tr:not([hidden]) { display: block; padding: .4rem 0; }
  table.mx-model-table tbody td { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .5rem; padding: .4rem .65rem; text-align: left !important; }
  table.mx-model-table tbody td::before { content: attr(data-column-label); font-weight: 600; }
  table.mx-model-table tbody tr.mx-subgroup-row > th { display: block; width: 100%; box-sizing: border-box; }
  #mx-table-dock, #mx-table-mask { display: none !important; }
}
.mx-category-table-title, .mx-dock-title { flex-wrap: wrap; }
.mx-sdk-change { display: inline-flex; align-items: center; gap: .3em; max-width: 100%; box-sizing: border-box; white-space: normal; line-height: 1.35; }
.mx-sdk-change > span { min-width: 0; overflow-wrap: anywhere; }
.mx-sdk-neutral { color: var(--pst-color-text-muted, #555); background: var(--pst-color-surface, #f2f4f5); }
.mx-overview > div { min-width: 0; box-sizing: border-box; }
.mx-overview dd { margin-inline: 0 !important; }
.mx-group-changes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-left: .45rem; vertical-align: middle; }
.mx-group-changes .mx-sdk-change { font-size: .72em; }
.mx-sdk-change svg.mx-action-icon { color: inherit; fill: currentColor; width: 1.1em; height: 1.1em; }
.mx-category-total { display: inline-block; padding: .2em .5em; border-radius: .4em; font-size: .78em; font-weight: 500; color: var(--pst-color-text-muted, #555); background: var(--pst-color-surface, #f2f4f5); white-space: nowrap; }
:is(table.mx-model-table, table.mx-dock-table) thead th { overflow-wrap: normal; word-break: normal; font-size: .78rem; text-align: center; }
:is(table.mx-model-table, table.mx-dock-table) thead th:first-child { text-align: center; padding-inline: .2rem; white-space: nowrap !important; }
.mx-sort-button { display: inline-flex; align-items: center; justify-content: center; gap: .3em; width: 100%; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
@media (min-width: 768px) {
  table.mx-model-table tbody td { text-align: center; }
  table.mx-model-table tbody td:is(:nth-child(2), :nth-child(3), :nth-child(11), :nth-child(12), :nth-child(13)) { text-align: left; }
  table.mx-model-table tbody td:is(:nth-child(5), :nth-child(7), :nth-child(8), :nth-child(9)) { text-align: right; font-variant-numeric: tabular-nums; }
  :is(table.mx-model-table, table.mx-dock-table) thead th:not(:last-child),
  table.mx-model-table tbody tr:not(.mx-subgroup-row) > td:not(:last-child) {
    border-right: 1px solid color-mix(in srgb, var(--pst-color-border, #d6dbe0) 40%, transparent);
  }
}
.mx-sort-button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mx-sort-button > span:first-child > p { padding: 0 !important; margin: 0 !important; }
.mx-sort-arrow { display: block; flex: 0 0 .65rem; width: .65rem; height: .9rem; color: var(--pst-color-text-muted, #555); }
.mx-sort-arrow path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .4; }
th[aria-sort="ascending"] .mx-sort-up, th[aria-sort="descending"] .mx-sort-down { color: var(--pst-color-primary, #165c92); opacity: 1; }
th[aria-sort="ascending"] .mx-sort-down, th[aria-sort="descending"] .mx-sort-up { opacity: .15; }
.mx-sort-button:focus-visible { outline: 2px solid var(--pst-color-primary, #165c92); outline-offset: 3px; border-radius: .2rem; }
.mx-category-table-title .mx-group-changes, .mx-dock-title .mx-group-changes { display: contents; margin: 0; }
.mx-model-category .mx-category-table-title, #mx-table-dock .mx-dock-title { gap: .5rem; }
/* Keep all category-heading badges at the same visual size. */
:is(.mx-category-table-title, .mx-dock-title) :is(.mx-category-total, .mx-sdk-change) {
  display: inline-flex; align-items: center; gap: .3em;
  box-sizing: border-box; min-height: 1.65rem;
  padding: .2rem .45rem; font-size: .75rem; font-weight: 500; line-height: 1.2;
}
/* Badge outlines follow their text color in both themes. */
:is(.mx-sdk-change, .mx-category-total, .mx-model-icon-hint, .mx-multitask-badge, .mx-result-badge) {
    border: 1px solid currentColor; box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) { #mx-sticky-toolbar { transition: none; } }

/* Navigation and compact filtering adapt independently of the data tables. */
.mx-nav-links { scrollbar-width: thin; }
.mx-nav-links::-webkit-scrollbar { width: 4px; }
.mx-nav-links::-webkit-scrollbar-thumb { background: var(--pst-color-border, #aaa); }
#mx-category-nav a, #mx-category-nav .mx-nav-toggle { padding-inline: .35rem; }
#mx-sticky-filter-toggle { font: inherit; padding: .35rem .5rem; color: var(--pst-color-text-base); background: var(--pst-color-background); border: 1px solid var(--pst-color-border); border-radius: .35rem; }
.mx-flat-sort[hidden] { display: none; }
.mx-flat-sort { display: none; margin: .5rem 0; }
.mx-view-toggle { display: inline-flex; margin-left: auto; flex-shrink: 0; border: 1px solid var(--pst-color-border); border-radius: .4rem; overflow: hidden; }
.mx-view-toggle button { font: inherit; font-size: .75rem; font-weight: 500; padding: .3rem .6rem; border: 0; background: var(--pst-color-background); color: var(--pst-color-text-muted); cursor: pointer; }
.mx-view-toggle button[aria-pressed="true"] { color: var(--mx-accent-text, #21758e); background: color-mix(in srgb, var(--pst-color-primary) 12%, var(--pst-color-background)); }
.mx-view-toggle button:focus-visible { outline: 2px solid var(--pst-color-primary); outline-offset: -2px; }
.mx-browse-disclosure > summary { cursor: pointer; font-weight: 600; margin-block: .75rem; }
.mx-grouped .mx-sort-arrow { display: none; }
.mx-grouped .mx-sort-button:disabled { color: inherit; opacity: 1; cursor: default; pointer-events: none; }
.mx-grouped .mx-sort-button:disabled:hover { background: transparent; }
#mx-sticky-filter-toggle { display: none; }
#mx-help-popup { position: fixed; z-index: 2000; max-width: min(24rem, calc(100vw - 2rem)); padding: .65rem .85rem; border: 1px solid var(--pst-color-border); border-radius: .4rem; background: var(--pst-color-background); color: var(--pst-color-text-base); box-shadow: 0 3px 12px #0003; font-size: .85rem; }
[data-mx-help] { cursor: help; }
@media (max-width: 767px) {
    .mx-flat-sort:not([hidden]) { display: block; }
    #mx-sticky-toolbar { left: 3.5rem; }
    #mx-sticky-filter-toggle { display: inline-flex; }
    #mx-sticky-toolbar:not(.mx-filters-open) .mx-sticky-fields > :not(:first-child):not(#mx-sticky-count):not(#mx-sticky-filter-toggle) { display: none; }
    #mx-sticky-toolbar:not(.mx-filters-open) > .mx-filter-chips { display: none; }
    #mx-sticky-toolbar { max-height: calc(100dvh - var(--mx-banner-bottom, 0px)); overflow-y: auto; }
    #mx-sticky-toolbar .mx-sticky-fields > label:first-child { flex-basis: 100%; }
}
