/* Liquid Glass (liquid-glass.js) — iOS 26's look on the phone bar and the
   floating PC dock, while <body> has the class "lg". The lens is set inline by
   the script; this is the rest of the material: nearly clear glass, a thin bright
   rim lit from the top-left, a specular spot that follows the pointer, and a
   soft inner shade so the bar reads as a thick, rounded piece of glass. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    body.lg.has-bnav .bnav,
    body.lg .pcd:not(.is-home) > * > .pcd-glass { background: rgba(255, 255, 255, 0.05); }
    body.lg.has-bnav .bnav.tone-busy,
    body.lg .pcd.tone-busy:not(.is-home) > * > .pcd-glass { background: rgba(255, 255, 255, 0.4); }
    body.lg.has-bnav .bnav.tone-dark,
    body.lg .pcd.tone-dark:not(.is-home) > * > .pcd-glass { background: rgba(17, 24, 39, 0.3); }
    body.lg.has-bnav .bnav.tone-dark.tone-busy,
    body.lg .pcd.tone-dark.tone-busy:not(.is-home) > * > .pcd-glass { background: rgba(17, 24, 39, 0.5); }
    /* r645: no lens (iPhone, Safari, Firefox): the same clear tint as Android (the
       rules above; r644's milky frost is gone), plus the bright band along the rim
       that the lens makes by bending light into the edge, drawn as an inner glow */
    body.lg.lg-flat.has-bnav .bnav,
    body.lg.lg-flat .pcd:not(.is-home) > * > .pcd-glass {
        box-shadow:
            0 12px 32px -6px rgba(31, 41, 55, 0.22),
            0 2px 6px rgba(31, 41, 55, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.55),
            inset 0 0 12px 1px rgba(255, 255, 255, 0.5),
            inset 0 1px 3px rgba(255, 255, 255, 0.7);
    }
    body.lg.lg-flat.has-bnav .bnav.tone-dark,
    body.lg.lg-flat .pcd.tone-dark:not(.is-home) > * > .pcd-glass {
        box-shadow:
            0 12px 32px -6px rgba(0, 0, 0, 0.3),
            0 2px 6px rgba(0, 0, 0, 0.12),
            inset 0 0 0 1px rgba(255, 255, 255, 0.22),
            inset 0 0 12px 1px rgba(255, 255, 255, 0.14);
    }
}
body.lg.has-bnav .bnav,
body.lg .pcd:not(.is-home) > * > .pcd-glass {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 12px 32px -6px rgba(31, 41, 55, 0.22),
        0 2px 6px rgba(31, 41, 55, 0.08),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}
body.lg.has-bnav .bnav::before,
body.lg .pcd:not(.is-home) > * > .pcd-glass::before {
    opacity: 1;
    background:
        radial-gradient(42% 140% at var(--lx, 28%) var(--ly, -10%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 30%);
    box-shadow:
        inset 1.2px 1.2px 0 -0.2px rgba(255, 255, 255, 0.95),
        inset -1px -1px 0 -0.2px rgba(255, 255, 255, 0.6),
        inset 0 0 0 0.6px rgba(255, 255, 255, 0.35),
        inset 0 10px 18px -14px rgba(255, 255, 255, 0.9),
        inset 0 -10px 18px -14px rgba(31, 41, 55, 0.22);
}
body.lg.has-bnav .bnav.tone-dark::before,
body.lg .pcd.tone-dark:not(.is-home) > * > .pcd-glass::before { opacity: 0.55; }
/* the clearer glass needs the labels to hold over anything light */
body.lg .pcd:not(.is-home):not(.tone-dark) :is(.pcd-pill, .pcd-more) > .pcd-it { text-shadow: 0 0 8px rgba(255, 255, 255, 0.9); }
/* less transparency or more contrast asked for: the bars go solid (liquid-glass.js
   also drops the lens); the dock's own rules are in pc-dock.css */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    body.has-bnav .bnav { background: rgba(255, 255, 255, 0.97) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    body.has-bnav .bnav.tone-dark { background: rgba(31, 41, 55, 0.97) !important; }
    body.lg :is(.pcd:not(.is-home) > * > .pcd-glass, .has-bnav .bnav) { text-shadow: none; }
}
@media (prefers-contrast: more) {
    body.has-bnav .bnav { border: 1px solid rgba(31, 41, 55, 0.45); }
}

/* r648: the phone bar's glass lives on its own child, so the bar is not a Backdrop Root
   and the selected-tab drop can bend the page behind it */
body.lg.has-bnav .bnav:not(.scroll) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.lg.has-bnav .bnav > .lg-barglass {
    display: block; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none; margin: 0; padding: 0;
}

/* r671 (owner's pick A): frosted like Telegram, in clean white and navy, so a bright button behind the bar cannot drown the menu */
body.lg.has-bnav .bnav > .lg-barglass, body.lg .pcd:not(.is-home) > * > .pcd-glass { -webkit-backdrop-filter: blur(9px) saturate(1.25) !important; backdrop-filter: blur(9px) saturate(1.25) !important; }
body.lg.has-bnav .bnav, body.lg .pcd:not(.is-home) > * > .pcd-glass, body.lg.has-bnav .bnav.tone-busy, body.lg .pcd.tone-busy:not(.is-home) > * > .pcd-glass { background: rgba(255, 255, 255, .64); }
body.lg.has-bnav .bnav.tone-dark, body.lg .pcd.tone-dark:not(.is-home) > * > .pcd-glass, body.lg.has-bnav .bnav.tone-dark.tone-busy, body.lg .pcd.tone-dark.tone-busy:not(.is-home) > * > .pcd-glass { background: rgba(20, 29, 47, .6); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { body.lg.has-bnav .bnav > .lg-barglass, body.lg .pcd:not(.is-home) > * > .pcd-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }

/* r672: the tint lives on the glass layer, so it can have a window under the drop */
body.lg.has-bnav .bnav:not(.scroll):has(> .lg-barglass) { background: transparent !important; }
body.lg.has-bnav .bnav > .lg-barglass { background: rgba(255, 255, 255, .64); }
body.lg.has-bnav .bnav.tone-dark > .lg-barglass { background: rgba(20, 29, 47, .6); }
