@media (max-width: 63.999rem) {
    dialog[data-gs-sheet="1"].sheet {
        position: fixed !important;
        inset-block-start: calc(var(--gs-vt, 0px) + var(--gs-vh, 100dvh)) !important;
        inset-block-end: auto !important;
        inset-inline: 0 !important;
        width: auto !important;
        max-width: 44rem !important;
        max-height: calc(var(--gs-vh, 100dvh) - 1rem - env(safe-area-inset-top, 0px)) !important;
        margin: 0 auto !important;
        border: 0 !important;
        border-radius: 1.25rem 1.25rem 0 0 !important;
        background: var(--surface) !important;
        color: var(--ink);
        box-shadow: 0 -18px 60px -22px rgb(0 0 0 / 0.55) !important;
        overflow: hidden !important;
        transform: translate3d(0, calc(-100% + var(--gs-y, 0px)), 0);
        translate: none !important;
        transition: none !important;
        will-change: transform;
        overscroll-behavior: contain;
    }

    dialog[data-gs-sheet="1"].sheet[open] {
        display: flex;
        flex-direction: column;
    }

    /* The header scrolls with the page, so the reader sheet uses the full
       viewport instead of leaving a fixed gap for it. */
    dialog[data-gs-sheet="1"].reader-sheet {
        height: calc(var(--gs-vh, 100dvh) - 0.5rem) !important;
        max-height: calc(var(--gs-vh, 100dvh) - 0.5rem) !important;
        border-radius: 1.1rem 1.1rem 0 0 !important;
    }

    dialog[data-gs-sheet="1"].reader-sheet::backdrop {
        background: var(--scrim-soft, rgb(8 10 16 / 0.45));
    }

    dialog[data-gs-sheet="1"].reader-sheet .reader-body {
        touch-action: auto;
    }

    dialog[data-gs-sheet="1"].sheet .filters-head,
    dialog[data-gs-sheet="1"].sheet .reader-bar {
        touch-action: none;
        cursor: grab;
    }
}

@media (min-width: 48.001rem) and (max-width: 63.999rem) {
    dialog[data-gs-sheet="1"].filter-sheet:has(.glance-dd[data-open="1"]) {
        overflow: visible !important;
    }

    dialog[data-gs-sheet="1"].filter-sheet .filters-head {
        position: relative;
        padding-top: 1.15rem;
    }

    dialog[data-gs-sheet="1"].filter-sheet .filters-head::before {
        content: "";
        position: absolute;
        top: 0.35rem;
        left: 50%;
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 999px;
        background: var(--line-strong);
        pointer-events: none;
        transform: translateX(-50%);
    }
}

@media (max-width: 48rem), (max-width: 63.999rem) and (pointer: coarse) {
    dialog[data-gs-sheet="1"].cdlg,
    dialog[data-gs-sheet="1"].glance-confirm,
    dialog[data-gs-sheet="1"].oe-dialog[data-osc-dialog-ready],
    dialog[data-gs-sheet="1"].msg-report-dialog,
    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal {
        position: fixed !important;
        inset-block-start: calc(var(--gs-vt, 0px) + var(--gs-vh, 100dvh)) !important;
        inset-block-end: auto !important;
        inset-inline: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: 44rem !important;
        max-height: calc(var(--gs-vh, 100dvh) - 1rem - env(safe-area-inset-top, 0px)) !important;
        margin: 0 auto !important;
        border: 0 !important;
        border-top: 1px solid var(--line) !important;
        border-radius: 1.25rem 1.25rem 0 0 !important;
        background: var(--surface) !important;
        color: var(--ink);
        box-shadow: 0 -18px 60px -22px rgb(0 0 0 / 0.55) !important;
        overflow: hidden !important;
        transform: translate3d(0, calc(-100% + var(--gs-y, 0px)), 0);
        translate: none !important;
        transition: none !important;
        will-change: transform;
        overscroll-behavior: contain;
    }

    dialog[data-gs-sheet="1"].cdlg[open],
    dialog[data-gs-sheet="1"].glance-confirm[open],
    dialog[data-gs-sheet="1"].oe-dialog[data-osc-dialog-ready][open],
    dialog[data-gs-sheet="1"].msg-report-dialog[open],
    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal[open] {
        display: flex;
        flex-direction: column;
    }

    dialog[data-gs-sheet="1"].cdlg {
        padding: 0 !important;
    }

    dialog[data-gs-sheet="1"].glance-confirm {
        padding: calc(var(--sp-5, 1.25rem) + 0.35rem) var(--sp-5, 1.25rem) max(var(--sp-5, 1.25rem), env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
    }

    dialog[data-gs-sheet="1"].oe-dialog[data-osc-dialog-ready] {
        padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
        overflow: hidden !important;
    }

    dialog[data-gs-sheet="1"].msg-report-dialog {
        padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
        overflow-y: auto !important;
    }

    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal {
        padding: 0 !important;
    }

    dialog[data-gs-sheet="1"].oe-dialog[data-osc-dialog-ready] .oe-dialog-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    dialog[data-gs-sheet="1"].cdlg::before,
    dialog[data-gs-sheet="1"].glance-confirm::before,
    dialog[data-gs-sheet="1"].oe-dialog[data-osc-dialog-ready]::before,
    dialog[data-gs-sheet="1"].msg-report-dialog::before,
    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal::before {
        content: "";
        position: absolute;
        z-index: 5;
        top: 0.45rem;
        left: 50%;
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 999px;
        background: var(--line-strong, rgb(15 23 42 / 0.18));
        transform: translateX(-50%);
        pointer-events: none;
    }

    dialog[data-gs-sheet="1"].cdlg .cdlg-head {
        padding-top: 1.3rem !important;
    }

    dialog[data-gs-sheet="1"].oe-dialog[data-osc-dialog-ready] .oe-dialog-head {
        padding-top: 1.3rem !important;
    }

    dialog[data-gs-sheet="1"].msg-report-dialog .msg-report-dialog-form {
        padding-top: 1.3rem !important;
    }

    dialog[data-gs-sheet="1"].msg-report-dialog[open] {
        animation: none !important;
    }

    dialog[data-gs-sheet="1"] .filters-head,
    dialog[data-gs-sheet="1"] .reader-bar,
    dialog[data-gs-sheet="1"] .cdlg-head,
    dialog[data-gs-sheet="1"] .oe-dialog-head,
    dialog[data-gs-sheet="1"] .msg-report-dialog-head,
    dialog[data-gs-sheet="1"] .glance-dd-head,
    dialog[data-gs-sheet="1"] [data-sheet-handle] {
        touch-action: none;
        cursor: grab;
    }

    dialog[data-gs-sheet="1"].is-gs-dragging,
    dialog[data-gs-sheet="1"].is-gs-dragging * {
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    dialog[data-gs-sheet="1"].is-gs-dragging {
        cursor: grabbing;
    }

    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal > .glance-dd-panel {
        position: static !important;
        z-index: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        min-height: 0;
        margin: 0 !important;
        padding: 1.3rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        overflow: hidden !important;
    }

    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal > .glance-dd-panel .glance-dd-head {
        flex: 0 0 auto;
        min-height: 2.25rem;
        margin: -0.55rem 0 0.2rem;
    }

    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal .glance-dd-search {
        flex: 0 0 auto;
    }

    dialog[data-gs-sheet="1"].glance-dd-dialog.is-modal .glance-dd-list {
        flex: 1 1 auto;
        min-height: 0;
    }
}

dialog[data-gs-sheet="1"]::backdrop {
    background: var(--scrim-soft, rgb(8 10 16 / 0.45));
    opacity: var(--gs-scrim, 1);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: none !important;
}

dialog[data-gs-sheet="1"].is-gs-opening::backdrop {
    animation: gs-scrim-in 0.4s cubic-bezier(.22, 1, .36, 1) both;
}

dialog[data-gs-sheet="1"].is-gs-closing::backdrop {
    opacity: 0;
    transition: opacity var(--gs-scrim-out-duration, 0.24s) cubic-bezier(.4, 0, 1, 1) !important;
}

dialog[data-gs-sheet="1"].is-gs-settling::backdrop {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(.22, 1, .36, 1) !important;
}

@keyframes gs-scrim-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

html.glance-sheet-lock body {
    /* overflow: clip keeps the page from scrolling without creating a body
       scroll container, so sticky list headings keep their pinned position
       while a modal sheet is open. */
    overflow: hidden !important;
    overflow: clip !important;
    overscroll-behavior: none !important;
}

@media (prefers-reduced-motion: reduce) {
    dialog[data-gs-sheet="1"].is-gs-opening::backdrop {
        animation: none !important;
    }
}

@media (forced-colors: active) {
    dialog[data-gs-sheet="1"]::before {
        background: CanvasText;
    }
}

@media (max-width: 63.999rem) {
    .discovery-backdrop,
    .glance-search-dialog::backdrop,
    .saved-pop::backdrop,
    dialog[data-gs-sheet="1"]::backdrop,
    .sheet::backdrop,
    .glance-confirm::backdrop,
    .oe-dialog::backdrop,
    .msg-report-dialog::backdrop,
    .glance-lightbox::backdrop,
    .cdlg::backdrop {
        -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
        backdrop-filter: blur(12px) saturate(1.1) !important;
    }
}

@media (max-width: 63.999rem) {
    .saved-pop:popover-open {
        animation: glance-saved-in var(--panel-open) var(--panel-ease);
    }

    .saved-pop:popover-open::backdrop {
        animation: glance-saved-scrim-in var(--panel-open) ease;
    }

    @keyframes glance-saved-in {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: none; }
    }

    @keyframes glance-saved-scrim-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .saved-pop:popover-open,
    .saved-pop:popover-open::backdrop {
        animation: none !important;
    }
}

/* Paint/damage details in the reader use a darkening scrim only, like the
   full item page; this also keeps the header visible. */
dialog.detail-paint-dialog::backdrop,
dialog[data-gs-sheet="1"].detail-paint-dialog::backdrop {
    background: var(--scrim-soft) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* While the paint list is open inside the reader, the reader's blurred
   backdrop would blur the header again. Use only the paint scrim. */
html:has(dialog.detail-paint-dialog[open]) dialog[data-gs-sheet="1"].reader-sheet[open]::backdrop {
    background: var(--scrim-soft) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
    backdrop-filter: blur(12px) saturate(1.1) !important;
}


/* Neutral focus language: no red rings on touch, form fields or programmatic
   focus. The accent stays for primary actions, not for focus chrome. */
:root {
    --focus: color-mix(in oklab, var(--ink) 48%, transparent) !important;
}

:focus-visible {
    outline-color: var(--focus) !important;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.oe-input:focus-visible {
    border-color: color-mix(in oklab, var(--ink) 42%, var(--line-strong)) !important;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 10%, transparent) !important;
}

#ad-title:focus,
#ad-title:focus-visible,
.reader #ad-title:focus,
.reader #ad-title:focus-visible,
.reader-sheet #ad-title:focus,
.reader-sheet #ad-title:focus-visible {
    outline: none !important;
}


dialog.ad-report-dialog::backdrop,
dialog[data-gs-sheet="1"].ad-report-dialog::backdrop {
    background: var(--scrim-soft) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Over the reader sheet the report dialog adds no backdrop layer of its own:
   the reader keeps its existing blur and scrim completely untouched, and only
   the report panel itself slides in. */
html:has(dialog[data-reader-sheet][open]) dialog.ad-report-dialog::backdrop,
html:has(dialog[data-reader-sheet][open]) dialog[data-gs-sheet="1"].ad-report-dialog::backdrop {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Search chrome: one border, no inner ring or iOS search-field chrome. */
.site-header .header-search:focus-within {
    border-color: var(--line-strong) !important;
    box-shadow: none !important;
}

.site-header .header-search input,
.site-header .header-search input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
}

.site-header .header-search input:focus,
.site-header .header-search input:focus-visible,
.site-header .header-search input[type="search"]:focus,
.site-header .header-search input[type="search"]:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.site-header .header-search input[type="search"]::-webkit-search-decoration,
.site-header .header-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

@media (pointer: coarse) {
    :focus-visible {
        outline: none !important;
    }

    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    .oe-input:focus-visible {
        box-shadow: none !important;
    }

    .site-header .header-search:focus-within {
        border-color: var(--line-strong) !important;
        box-shadow: none !important;
    }
}


/* The original red field border is reserved for entry points: inputs, selects,
   textareas and the header search field. Other controls keep neutral focus. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.oe-input:focus-visible {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent) !important;
}

.site-header .header-search:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent) !important;
}

/* Discovery category search: the field wrapper owns the only border, so the
   nested search input never draws a second one (or iOS search-field chrome). */
.discovery-search input,
.discovery-search input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
}

.discovery-search input:focus,
.discovery-search input:focus-visible,
.discovery-search input[type="search"]:focus,
.discovery-search input[type="search"]:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ---- Page titles -------------------------------------------------------
   Every page starts with the same heading scale as the home section rows, so
   a category, an ad, a form, an account page and a static page do not look
   like different sites. This file is the last theme stylesheet in the head. */
.results-title h1,
.ad-head h1,
.post-head h1,
.oe-page .oe-h1,
.oe-page .oe-doc:has(> .oe-account) > .oe-h1,
.oe-page .oe-doc:has(> .oe-form-page) .oe-h1,
.oe-page .oe-title,
.auth-head h1,
.rc-title,
.glance-page h1,
.glance-notfound h1 {
    font-size: var(--fs-l);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

/* Static pages: section headings stay below the page title after the title
   scale was aligned with the home rows. */
.glance-page .prose :is(h2, h3) {
    font-size: var(--fs-m);
}

:root {
    --page-top-gap: 1.375rem;
}

/* ---- Page top rhythm ---------------------------------------------------
   The first line of every page (title, eyebrow, account heading, form title)
   starts the same distance below the section above it as the home title. */
.results-top,
html.js .results-top {
    padding-block-start: var(--page-top-gap);
}

.results-title {
    align-self: flex-start;
}

.glance-page {
    padding-block-start: var(--page-top-gap);
}

.oe-page {
    padding-block-start: var(--page-top-gap);
}

.oe-page .oe-doc:has(> .oe-form-page) {
    padding-block-start: 0;
}

.glance-notfound {
    padding-block-start: var(--page-top-gap);
}

.post-wrap {
    padding-block-start: var(--page-top-gap);
}

@media (min-width: 64rem) {
    html.js .results-top {
        align-items: flex-start;
    }
}

/* Flat primary post button in the mobile dock: no gloss, depth shadows or
   floating plus icon. The live mobile dock uses its minified stylesheet, so
   the same flattened surface is repeated here as the last-loaded layer. */
.mobile-dock-post-icon {
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--surface);
}

.mobile-dock-post-icon::after {
    display: none;
}

.mobile-dock-post-icon .gi {
    filter: none;
    animation: none;
}

/* ---- Mobile category title row -----------------------------------------
   One line, at the heading's optical height: title + count on the left,
   compact sort and save-search controls on the right. */
@media (max-width: 63.999rem) {
    .results-head:has(.results-tools .sort) {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
    }

    .results-head:has(.results-tools .sort) .results-title {
        flex: 0 1 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 0.3rem;
        min-width: 0;
        margin-inline-end: auto;
    }

    .results-head:has(.results-tools .sort) .results-title h1 {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .results-head:has(.results-tools .sort) .results-title h1:has(.results-title-open) .results-title-static,
    .results-head:has(.results-tools .sort) .results-title h1:has(.results-title-open) .results-title-mobile {
        display: none;
    }

    .results-head:has(.results-tools .sort) .results-title-open {
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        max-width: 100%;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font: inherit;
        letter-spacing: inherit;
        text-align: start;
        text-decoration: none;
        cursor: pointer;
    }

    .results-head:has(.results-tools .sort) .results-title-open > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .results-head:has(.results-tools .sort) .results-title-open .gi {
        flex: none;
        width: 0.9rem;
        height: 0.9rem;
        color: var(--muted);
    }

    .results-head:has(.results-tools .sort) .results-count {
        flex: none;
        margin: 0;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .results-head:has(.results-tools .sort) .results-tools {
        flex: 0 0 auto;
        width: auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem;
        margin-inline-start: 0;
    }

    .results-head:has(.results-tools .sort) .results-tools > .sort {
        flex: 0 0 auto;
        width: clamp(7.5rem, 36vw, 9.5rem);
        min-width: 0;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
    }

    .results-head:has(.results-tools .sort) .results-tools > .sort select {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        height: 1.5rem;
        min-height: 0;
        padding: 0 0.25rem;
        border-radius: 0.45rem;
        font-size: 0.66rem;
        line-height: 1.2;
    }

    .results-head:has(.results-tools .sort) .results-alert {
        flex: none;
        display: grid;
        place-items: center;
        width: 1.5rem;
        height: 1.5rem;
        min-height: 0;
        padding: 0;
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        background: var(--surface);
        color: var(--accent);
        box-shadow: none;
    }

    .results-head:has(.results-tools .sort) .results-alert .gi {
        width: 0.9rem;
        height: 0.9rem;
    }
}

/* Quick filters: an unselected tone is quiet, a selected tone is a solid
   accent chip with contrasting text and icon. */
.discovery-toggles .discovery-check {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    transition: border-color 0.16s, background-color 0.16s, color 0.16s, box-shadow 0.16s;
}

.discovery-toggles .discovery-check .gi {
    color: var(--muted);
}

.discovery-toggles .discovery-check {
    -webkit-tap-highlight-color: transparent;
    transition: none;
}

.discovery-toggles .discovery-check:hover,
.discovery-toggles .discovery-check:focus-within {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.discovery-toggles .discovery-check:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 15%, transparent);
}

.discovery-toggles .discovery-check:has(input:checked) .gi,
.discovery-toggles .discovery-check:has(input:checked) span {
    color: var(--accent-ink);
}

@media (hover: hover) and (pointer: fine) {
    .discovery-toggles .discovery-check:has(input:focus-visible) {
        outline: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
        outline-offset: 2px;
    }
}

.discovery-summary-actions .btn-primary:disabled {
    opacity: 0.55;
    box-shadow: none;
    cursor: not-allowed;
}

/* The mobile dock reads like the header: the same translucent surface and
   backdrop blur values. */
@media (max-width: 63.999rem) {
    .mobile-dock {
        background: color-mix(in oklab, var(--surface) 92%, transparent);
        -webkit-backdrop-filter: saturate(1.4) blur(10px);
        backdrop-filter: saturate(1.4) blur(10px);
    }
}

@media (max-width: 63.999rem) {
    .results-head:has(.results-tools .sort) .results-alert {
        position: relative;
    }

    .results-head:has(.results-tools .sort) .results-alert::after {
        content: "";
        position: absolute;
        inset: -0.45rem;
        border-radius: 50%;
    }
}

/* iOS zooms a form control whose text is under 16px; keep the text fields at
   the threshold inside the discovery sheet without enlarging the compact
   custom radius control. */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 63.999rem) {
        .discovery input[type="text"],
        .discovery input[type="search"],
        .discovery input[type="email"],
        .discovery textarea,
        .discovery select {
            font-size: 16px;
        }
    }
}

/* Compact, single-line filter chips on phones. The quick-filter chip row is
   redundant with the discovery panel, so the results header keeps only the
   active filters and the compact "add filter" control. */
@media (max-width: 63.999rem) {
    .results-top .chips {
        flex-wrap: nowrap;
        gap: 0.3rem;
        margin-bottom: 0.55rem;
        padding-bottom: 0.1rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .results-top .chips::-webkit-scrollbar {
        display: none;
    }

    .results-top .chips > li {
        flex: none;
    }

    .results-top .chip {
        min-height: 1.9rem;
        max-width: 15rem;
        padding: 0 0.4rem 0 0.55rem;
        gap: 0.25rem;
        font-size: 0.7rem;
    }

    .results-top .chip .gi {
        width: 0.8rem;
        height: 0.8rem;
    }

    .results-top .chip-add {
        padding-inline: 0.55rem 0.6rem;
    }

    .results-top .chip-clear {
        padding-inline: 0.55rem;
    }

    .results-top .chips-quick {
        display: none;
    }
}

.mobile-dock-count.is-bumped {
    animation: glance-count-bump 0.32s var(--ease-out, ease);
}

@keyframes glance-count-bump {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.28);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-dock-count.is-bumped {
        animation: none;
    }
}

/* Mobile panels use a darkening scrim instead of backdrop blur. The blur was
   the expensive part on phones and could show up as a second layer while a
   sheet settled. One opaque scrim keeps open/close cheap and consistent. */
@media (max-width: 63.999rem) {
    html #glance-category-sheet::backdrop,
    html #glance-account-sheet::backdrop,
    html .discovery-backdrop,
    html .glance-search-dialog::backdrop,
    html .saved-pop::backdrop,
    html dialog[data-gs-sheet="1"]::backdrop,
    html dialog[data-gs-sheet="1"].sheet::backdrop,
    html dialog[data-gs-sheet="1"].reader-tools-sheet::backdrop,
    html dialog[data-gs-sheet="1"].reader-sheet::backdrop,
    html .glance-confirm::backdrop,
    html .oe-dialog::backdrop,
    html .msg-report-dialog::backdrop,
    html .glance-lightbox::backdrop,
    html .cdlg::backdrop,
    html .account-sheet::backdrop {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgb(8 10 16 / 0.56) !important;
    }
}

/* Scrim opening is a transition, not an animation that has to be removed.
   Removing the old keyframe animation caused a one-frame opacity dip (the
   "cuts and reloads" effect) when the opening class was cleared. */
@media (max-width: 63.999rem) {
    dialog[data-gs-sheet="1"].is-gs-opening::backdrop {
        animation: none !important;
        transition: opacity var(--panel-open) var(--panel-ease) !important;
    }
}

/* Opening scrims are static. Animating the ::backdrop opacity caused a
   one-frame dip when the opening class was removed; a static scrim is cheaper
   and never reloads while the panel slides in. */
@media (max-width: 63.999rem) {
    dialog[data-gs-sheet="1"].is-gs-opening::backdrop {
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Managed sheets already animate through glance-sheets.js. The legacy .sheet
   CSS transitions/@starting-style were running a second open/close animation
   and caused the backdrop to dip when the opening class was removed. */
@media (max-width: 63.999rem) {
    dialog[data-gs-sheet="1"].sheet,
    dialog[data-gs-sheet="1"].sheet[open] {
        transition: none !important;
        translate: none !important;
    }

    dialog[data-gs-sheet="1"].sheet::backdrop {
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }

    dialog[data-gs-sheet="1"].sheet.is-gs-closing::backdrop {
        opacity: 0 !important;
        transition: opacity var(--gs-scrim-out-duration, 0.3s) ease !important;
    }
}

/* Results header: sort and saved-search bell in the admin language. */
html body .results-sort-label,
html body .results-tools .sort label {
    color: var(--osc-nav-label);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html body .results-sort-control select,
html body .results-tools > .sort select {
    min-height: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 2rem 0 0.65rem !important;
    border: 1px solid var(--osc-rule) !important;
    border-radius: var(--osc-radius-sm) !important;
    background: var(--osc-bench) !important;
    color: var(--osc-ink) !important;
    font: 600 0.8125rem/1 var(--font) !important;
    cursor: pointer;
}

html body .results-sort-control select:hover,
html body .results-tools > .sort select:hover {
    border-color: var(--osc-bronze);
}

html body .results-sort-control select:focus,
html body .results-tools > .sort select:focus {
    outline: none;
    border-color: var(--osc-bronze);
    box-shadow: inset 0 0 0 1px var(--osc-bronze);
}

html body .results-sort-control .gi,
html body .results-tools > .sort .gi {
    color: var(--osc-ink-muted);
}

html body .results-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem !important;
    padding: 0 0.65rem !important;
    border: 1px solid var(--osc-rule) !important;
    border-radius: var(--osc-radius-sm) !important;
    background: var(--osc-bench) !important;
    color: var(--osc-ink-muted) !important;
    font-size: 0.8125rem;
    font-weight: 600;
}

html body .results-alert:hover,
html body .results-alert:focus-visible {
    border-color: var(--osc-bronze) !important;
    background: var(--osc-bronze-tint) !important;
    color: var(--osc-bronze) !important;
    outline: none !important;
    box-shadow: inset 0 0 0 1px var(--osc-bronze) !important;
}

@media (max-width: 63.999rem) {
    html body .results-tools > .results-alert {
        width: 2.25rem !important;
        height: 2.25rem !important;
        padding: 0 !important;
    }
}

html body .alert-pop {
    padding: 1rem;
    border: 1px solid var(--osc-rule);
    border-radius: var(--osc-radius);
    background: var(--osc-bench);
    color: var(--osc-ink);
    box-shadow: var(--osc-shadow-overlay);
}

.alert-pop .saved-head {
    align-items: center;
    gap: 0.5rem;
}

.alert-pop h2 {
    margin: 0;
    color: var(--osc-ink);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.alert-pop .btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--osc-rule);
    border-radius: var(--osc-radius-sm);
    background: var(--osc-bench);
    color: var(--osc-ink-muted);
}

.alert-pop .btn-icon:hover,
.alert-pop .btn-icon:focus-visible {
    border-color: var(--osc-bronze);
    background: var(--osc-bronze-tint);
    color: var(--osc-bronze);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--osc-bronze);
}

.alert-pop .alert-note {
    margin: 0.65rem 0 0.85rem;
    color: var(--osc-ink-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.alert-pop .alert-note a {
    color: var(--osc-bronze);
}

.alert-pop .oe-field {
    margin: 0 0 0.75rem;
}

.alert-pop .oe-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--osc-ink);
    font-size: 0.8125rem;
    font-weight: 600;
}

.alert-pop .oe-input {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--osc-rule);
    border-radius: var(--osc-radius-sm);
    background: var(--osc-bench);
    color: var(--osc-ink);
    font: 400 0.8125rem/1.4 var(--font);
}

.alert-pop .oe-input:focus {
    outline: none;
    border-color: var(--osc-bronze);
    box-shadow: inset 0 0 0 1px var(--osc-bronze);
}

.alert-pop .oe-actions {
    margin-top: 0.75rem;
}

.alert-pop .oe-btn {
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border: 1px solid var(--osc-bronze);
    border-radius: var(--osc-radius-sm);
    background: var(--osc-bronze);
    color: var(--osc-accent-ink, var(--accent-ink));
    font-size: 0.8125rem;
    font-weight: 600;
}

.alert-pop .oe-btn:hover,
.alert-pop .oe-btn:focus-visible {
    border-color: var(--osc-bronze-deep);
    background: var(--osc-bronze-deep);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--osc-bronze-deep);
}

.alert-pop .oe-btn.oe-secondary {
    border-color: var(--osc-bronze);
    background: var(--osc-bronze);
    color: var(--osc-accent-ink, var(--accent-ink));
}

/* Keep the sticky list heading visible above the phone ad sheet. The JS sets
   --reader-sheet-top to the heading's bottom; the sheet opens below it and the
   scrim stays clear above that edge. */
@media (max-width: 63.999rem) {
    dialog[data-gs-sheet="1"].reader-sheet {
        height: calc(var(--gs-vh, 100dvh) - var(--reader-sheet-top, 0.5rem)) !important;
        max-height: calc(var(--gs-vh, 100dvh) - var(--reader-sheet-top, 0.5rem)) !important;
    }

    dialog[data-gs-sheet="1"].reader-sheet::backdrop {
        background:
            linear-gradient(to bottom,
                transparent 0,
                transparent var(--reader-sheet-top, 0px),
                var(--scrim-soft, rgb(8 10 16 / 0.45)) var(--reader-sheet-top, 0px));
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}
