/* r636 v2: the selected tab is one drop of liquid glass (lg-pill.js). The bend,
   the rim light and the glare come from the SVG filter (Chromium); this file is
   the fill, the shadow and the fallback for Safari / Firefox. */

/* app.js's old bubble and the dock's grey current-item fill give way to the drop */
body.lgp.has-bnav .bnav > .bnav-pill { visibility: hidden !important; }
body.lgp .pcd :is(.pcd-pill, .pcd-more) > .pcd-it:is([aria-current], [aria-expanded="true"]),
body.lgp .pcd.tone-dark :is(.pcd-pill, .pcd-more) > .pcd-it:is([aria-current], [aria-expanded="true"]) { background: transparent; }

.lg-bubble, .lg-shadow, .has-bnav .bnav > .lg-bubble, .has-bnav .bnav > .lg-shadow {
    position: absolute; left: 0; top: 0; margin: 0; padding: 0; flex: none; display: block;
    pointer-events: none; will-change: transform; contain: strict;
}
.lg-gone { visibility: hidden !important; }
/* the drop: above the icons, clear — it only bends them at its rim and lights the
   edge; nothing is painted over the label, so the selected tab stays crisp */
.lg-bubble, .has-bnav .bnav > .lg-bubble {
    z-index: 0; background: transparent;   /* r648: under the icons, bending the page */
    box-shadow: 0 1px 2px rgba(31, 41, 55, .06);
    -webkit-backdrop-filter: var(--lg-filter, none) saturate(calc(1 + .4 * var(--lift, 0)));
    backdrop-filter: var(--lg-filter, none) saturate(calc(1 + .4 * var(--lift, 0)));
}
/* r641: the base's strength glides when the bar turns from light to dark glass (it
   used to switch in one frame right after a tab change) */
@property --lg-a-rest { syntax: '<number>'; inherits: true; initial-value: .78; }
@property --lg-a-move { syntax: '<number>'; inherits: true; initial-value: .18; }
.lg-shadow { transition: --lg-a-rest .12s ease, --lg-a-move .12s ease; }
/* the base under the icons: the light of the glass, which thins as it lifts
   off; its deeper shadow grows as it lifts (neither refracts, so both may fade) */
.lg-shadow, .has-bnav .bnav > .lg-shadow {
    z-index: 0;
    --lg-a-rest: .78; --lg-a-move: .18;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, calc(var(--lg-a-rest) + (var(--lg-a-move) - var(--lg-a-rest)) * var(--lift, 0))),
        rgba(255, 255, 255, calc((var(--lg-a-rest) + (var(--lg-a-move) - var(--lg-a-rest)) * var(--lift, 0)) * .6)));
    box-shadow:
        0 1px 2px rgba(31, 41, 55, .07),
        0 calc(2px + 6px * var(--lift, 0)) calc(6px + 12px * var(--lift, 0)) calc(-2px - 2px * var(--lift, 0)) rgba(31, 41, 55, calc(.10 + .12 * var(--lift, 0)));
}
.tone-dark > .lg-shadow, .has-bnav .bnav.tone-dark > .lg-shadow, .pcd.tone-dark .lg-shadow {
    --lg-a-rest: .11; --lg-a-move: .04;
    box-shadow: 0 calc(2px + 6px * var(--lift, 0)) calc(6px + 12px * var(--lift, 0)) -2px rgba(0, 0, 0, calc(.25 + .2 * var(--lift, 0)));
}
/* the icons stay under the drop */
body.lgp.has-bnav .bnav > [data-bar], body.lgp.has-bnav .bnav > .bnav-more,
body.lgp .pcd .pcd-pill > .pcd-it, body.lgp .pcd .pcd-pill > .pcd-more { position: relative; z-index: 1; }

/* r645: on Android the lens brightens what is under the drop, so it reads as a
   white bead; without the lens its base carries that whiteness itself */
body:not(.lgp-blink).has-bnav .bnav:not(.tone-dark) > .lg-shadow,
body:not(.lgp-blink) .pcd:not(.tone-dark) .lg-shadow { --lg-a-rest: .95; --lg-a-move: .35; }
/* r648: one reflection on every browser (lg-pill.js adds the moving band). At rest: a soft
   crescent of light from the upper left, a dimmer one on the opposite lower edge, and a thin
   lit rim. It sits under the icons, so it never washes out a label. */
.lg-sheen {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(70% 58% at 28% 4%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 72%),
        radial-gradient(56% 42% at 74% 102%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 74%);
    box-shadow:
        inset 0 0 0 .75px rgba(255, 255, 255, .78),
        inset .75px 1px 1.5px rgba(255, 255, 255, .95),
        inset -.5px -1px 2px rgba(31, 41, 55, .07);
}
.tone-dark > .lg-bubble .lg-sheen, .pcd.tone-dark .lg-sheen {
    background:
        radial-gradient(70% 58% at 28% 4%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 72%),
        radial-gradient(56% 42% at 74% 102%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 74%);
    box-shadow:
        inset 0 0 0 .75px rgba(255, 255, 255, .26),
        inset .75px 1px 1.5px rgba(255, 255, 255, .38),
        inset -.5px -1px 2px rgba(0, 0, 0, .18);
}
.lg-glint {
    position: absolute; top: -20%; bottom: -20%; left: 22%; width: 48%; opacity: 0; display: block;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 92%);
    will-change: transform, opacity;
}
.tone-dark > .lg-bubble .lg-glint, .pcd.tone-dark .lg-glint {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 92%);
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .lg-sheen { display: none; } }
/* r641: the drop keeps the same glass through a tab switch's crossfade (it used to
   drop its bend for that moment, so the material changed twice in 0.3 s: flicker) */

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .lg-bubble, .has-bnav .bnav > .lg-bubble { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #eceff4 !important; z-index: 0; }
    .tone-dark > .lg-bubble, .pcd.tone-dark .lg-bubble { background: #374151 !important; }
}

/* r644 (owner: "the colour change is slow, with a delay"): the tapped tab takes the
   selected look the moment the finger lands (lg-pill.js marks it .lg-next and the bar
   .lg-going until the switch lands), and colours no longer fade in over 0.25 s */
body.lgp.has-bnav .bnav > :is([data-bar], .bnav-more, [data-tab]),
body.lgp.has-bnav .bnav > * > .ic { transition: transform .22s cubic-bezier(.33, .9, .25, 1); }
body.lgp.has-bnav .bnav > * > .ic > svg { transition: transform .3s cubic-bezier(.33, .9, .25, 1), --ic-w .12s ease; }
body.lgp .pcd-it { transition: transform .16s cubic-bezier(.33, .9, .25, 1); }
/* r648: a tab's selected look follows the liquid over it (--cov, lg-pill.js), not the tap.
   The weight is a thin text stroke, so it can change by any amount without moving the layout */
@property --cov { syntax: '<number>'; inherits: true; initial-value: 0; }
body.lgp.has-bnav .bnav > [data-lgm] { font-weight: 500; -webkit-text-stroke: calc(var(--cov) * .32px) currentColor; color: var(--dark-secondary, #374151); color: color-mix(in srgb, var(--sel-on-light, var(--dark-primary)) calc(var(--cov) * 100%), var(--dark-secondary, #374151)); }
body.lgp.has-bnav .bnav > [data-lgm] .ic { color: #2b2f3a; color: color-mix(in srgb, var(--sel-on-light, var(--dark-primary)) calc(var(--cov) * 100%), #2b2f3a); --ic-acc: #b45309; }
body.lgp.has-bnav .bnav.tone-dark > [data-lgm] { color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov) * 100%), #e5e7eb); }
body.lgp.has-bnav .bnav.tone-dark > [data-lgm] .ic { color: #f3f4f6; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov) * 100%), #f3f4f6); --ic-acc: #fcd34d; }
body.lgp .pcd .pcd-pill .pcd-it[data-lgm] { font-weight: 600; -webkit-text-stroke: calc(var(--cov) * .3px) currentColor; }
body.lgp [data-lgm] .ic > svg, body.lgp [data-lgm] svg.icu {
    --ic-w: calc(var(--ic-w-600) + var(--cov) * (var(--ic-w-on) - var(--ic-w-600))) !important;
    transition: none !important;
}
@media (prefers-reduced-motion: reduce) { body.lgp.has-bnav .bnav > * > .ic > svg, body.lgp.has-bnav .bnav > * { transition: none; } }
.bink-layer > [data-lgm] { -webkit-text-stroke: calc(var(--cov) * .32px) currentColor; }

/* r649: the two-colour copies follow the same liquid as the real tabs */
/* a tab change must not wait on the bar's old 0.35 s tone fade */
body.lgp.has-bnav .bnav { transition: transform .35s cubic-bezier(.34, 1.3, .64, 1), opacity .25s, box-shadow .12s, border-color .12s; }   /* r652: no tint fade: bar-ink.js draws the tint */

/* r650 (owner's pick B): on dark, the tabs the liquid is not on sit in the glass: a little
   dimmer with a soft shadow under them. --cov brings a tab back to the selected look. */
body.lgp.has-bnav .bnav.tone-dark > [data-lgm] .ic { color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
body.lgp.has-bnav .bnav.tone-dark > [data-lgm] > span:not(.ic):not(.tab-badge):not(.admin-tab-count):not(.pcd-badge) { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); text-shadow: 0 2px 5px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0)))), 0 1px 1px rgba(0,0,0,calc(.45 * (1 - var(--cov, 0)))) !important; color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
body.lgp.has-bnav .bnav.tone-dark > [data-lgm] .ic { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); }
body.lgp.has-bnav .bnav.tone-dark > [data-lgm] .ic > svg, body.lgp.has-bnav .bnav.tone-dark > [data-lgm] svg.icu { filter: drop-shadow(0 2px 3px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0))))); }
body.lgp.has-bnav .bnav.tone-dark.open > [data-tab]:not(.active) .ic { color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
body.lgp.has-bnav .bnav.tone-dark.open > [data-tab]:not(.active) > span:not(.ic):not(.tab-badge):not(.admin-tab-count):not(.pcd-badge) { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); text-shadow: 0 2px 5px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0)))), 0 1px 1px rgba(0,0,0,calc(.45 * (1 - var(--cov, 0)))) !important; color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
body.lgp.has-bnav .bnav.tone-dark.open > [data-tab]:not(.active) .ic { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); }
body.lgp.has-bnav .bnav.tone-dark.open > [data-tab]:not(.active) .ic > svg, body.lgp.has-bnav .bnav.tone-dark.open > [data-tab]:not(.active) svg.icu { filter: drop-shadow(0 2px 3px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0))))); }
body.lgp .pcd.tone-dark .pcd-it[data-lgm] .ic { color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
body.lgp .pcd.tone-dark .pcd-it[data-lgm] > span:not(.ic):not(.tab-badge):not(.admin-tab-count):not(.pcd-badge) { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); text-shadow: 0 2px 5px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0)))), 0 1px 1px rgba(0,0,0,calc(.45 * (1 - var(--cov, 0)))) !important; color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
body.lgp .pcd.tone-dark .pcd-it[data-lgm] .ic { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); }
body.lgp .pcd.tone-dark .pcd-it[data-lgm] .ic > svg, body.lgp .pcd.tone-dark .pcd-it[data-lgm] svg.icu { filter: drop-shadow(0 2px 3px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0))))); }
.bink-layer[data-ink="light"] > [data-lgm] .ic { color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
.bink-layer[data-ink="light"] > [data-lgm] > span:not(.ic):not(.tab-badge):not(.admin-tab-count):not(.pcd-badge) { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); text-shadow: 0 2px 5px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0)))), 0 1px 1px rgba(0,0,0,calc(.45 * (1 - var(--cov, 0)))) !important; color: #e5e7eb; color: color-mix(in srgb, var(--sel-on-dark, #fff) calc(var(--cov, 0) * 100%), #e5e7eb); }
.bink-layer[data-ink="light"] > [data-lgm] .ic { opacity: calc(var(--cov, 0) + (1 - var(--cov, 0)) * .82); }
.bink-layer[data-ink="light"] > [data-lgm] .ic > svg, .bink-layer[data-ink="light"] > [data-lgm] svg.icu { filter: drop-shadow(0 2px 3px rgba(0,0,0,calc(.75 * (1 - var(--cov, 0))))); }
/* the label shadow must not be cut at the text box */
body.lgp.has-bnav .bnav > [data-tab] > span:not(.ic):not(.tab-badge):not(.admin-tab-count), .bink-layer > [data-lgm] > span:not(.ic):not(.tab-badge) { overflow: visible; }

/* r654 (owner's video): the white glow around the labels showed as a smudge over the dark
   band and came and went as the bar changed tone. Labels on light glass have none now. */
body.lgp.has-bnav .bnav:not(.tone-dark) > :is([data-bar], .bnav-more, [data-tab]) { text-shadow: none; }
body.lgp.lg .pcd:not(.is-home):not(.tone-dark) :is(.pcd-pill, .pcd-more) > .pcd-it { text-shadow: none; }

/* the lens: it exists only while the bar is held (lg-pill.js); nothing is laid over the real icons and labels */
.lg-cres { position: absolute; top: 3.5%; left: 15%; right: 15%; height: 8%; border-radius: 0 0 50% 50% / 0 0 100% 100%; display: block;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6) 22%, rgba(255, 255, 255, .6) 78%, rgba(255, 255, 255, 0)); filter: blur(.7px); }
.tone-dark > .lg-bubble .lg-cres, .pcd.tone-dark .lg-cres { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .24) 22%, rgba(255, 255, 255, .24) 78%, rgba(255, 255, 255, 0)); }
.lg-ring { position: absolute; inset: 0; border-radius: inherit; padding: 1px; display: block;
    background: conic-gradient(from 210deg, rgba(255, 255, 255, .95), rgba(110, 230, 180, .85) 12%, rgba(255, 255, 255, .8) 26%, rgba(255, 255, 255, .8) 60%, rgba(255, 135, 160, .8) 74%, rgba(135, 155, 255, .9) 86%, rgba(255, 255, 255, .95));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
body.lgp.has-bnav .bnav:not(.open), body.lgp .pcd .pcd-pill { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
:root { --sel-on-light: #b45309; --sel-on-dark: #fcd34d; }
body.lgp .pcd:not(.tone-dark) .pcd-pill .pcd-it[aria-current] { color: #b45309; }

/* r661: the create tab's icon loops between the file with a + and a PDF file */
.nl { transform-origin: 12px 12px; }
.nl-b { transform: scale(0); }
.nl-a { animation: nl-a 3.6s linear infinite; }
.nl-b { animation: nl-b 3.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .nl-a, .nl-b { animation: none; } }
.bnav.tone-dark .nl-lab, .bink-layer[data-ink="light"] .nl-lab { stroke: #1f2937 !important; }
.pcd-main .nl-band { fill: #1f2937 !important; stroke: #1f2937 !important; }
.pcd-main .nl-lab { stroke: #fff !important; }
@keyframes nl-a { 0%, 38% { transform: scale(1); animation-timing-function: cubic-bezier(.5,0,.8,.4); } 43% { transform: scale(.32); animation-timing-function: step-end; } 43.01% { transform: scale(0); animation-timing-function: step-end; } 93% { transform: scale(.32); animation-timing-function: cubic-bezier(.2,.8,.3,1); } 98% { transform: scale(1.07); animation-timing-function: ease-out; } 100% { transform: scale(1); } }
@keyframes nl-b { 0% { transform: scale(0); animation-timing-function: step-end; } 43% { transform: scale(0); animation-timing-function: step-end; } 43.01% { transform: scale(.32); animation-timing-function: cubic-bezier(.2,.8,.3,1); } 48% { transform: scale(1.07); animation-timing-function: ease-out; } 50%, 88% { transform: scale(1); animation-timing-function: cubic-bezier(.5,0,.8,.4); } 93% { transform: scale(.32); animation-timing-function: step-end; } 93.01%, 100% { transform: scale(0); } }

/* r662 (owner): in the docks only the create icon moves */
:is(.has-bnav .bnav, .pcd) :is(.ic, .ic > svg, .ic > svg *):not(.nl, .nl *) { animation: none !important; }
:is(.has-bnav .bnav, .pcd) .ic .tg { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.has-bnav .bnav-more.has-dot::after { animation: none !important; }
/* r662: a clear flow of orange round the gold button */
.pcd-flow { position: absolute; left: -3px; top: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; pointer-events: none; }
.pcd-flow rect { width: calc(100% - 4px); height: calc(100% - 4px); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.pf-base { stroke: #f97316; stroke-opacity: .45; }
.pf-a { stroke: #f97316; stroke-dasharray: 30 70; animation: pcd-flow 3.4s linear infinite; }
.pf-b { stroke: #fb923c; stroke-dasharray: 17 83; animation: pcd-flow 2.3s linear infinite; }
.pf-c { stroke: #ea580c; stroke-dasharray: 8 92; animation: pcd-flow 4.7s linear infinite; }
@keyframes pcd-flow { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .pcd-flow rect { animation: none; } .pf-base { stroke-opacity: .9; } .pf-a, .pf-b, .pf-c { display: none; } }

/* r664: one light on the liquid, the same on every browser. It comes from the upper left: a bright lobe where the rim faces it,
   the light that went through gathering on the far edge, a window of reflection at the top. Light colours only. */
@property --lx { syntax: '<number>'; inherits: true; initial-value: 0; }
.lg-sheen {
    transition: --lx .5s cubic-bezier(.3, .7, .3, 1);
    background:
        radial-gradient(40% 32% at calc(30% - var(--lx) * 9%) 9%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .34) 46%, rgba(255, 255, 255, 0) 78%),
        radial-gradient(54% 32% at calc(70% - var(--lx) * 9%) 101%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 76%);
    box-shadow: inset 0 0 0 .75px rgba(255, 255, 255, .55), inset 0 1.5px 2px rgba(255, 255, 255, .75), inset 0 -2px 4px rgba(255, 255, 255, .32);
}
.tone-dark > .lg-bubble .lg-sheen, .pcd.tone-dark .lg-sheen {
    background:
        radial-gradient(40% 32% at calc(30% - var(--lx) * 9%) 9%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .15) 46%, rgba(255, 255, 255, 0) 78%),
        radial-gradient(54% 32% at calc(70% - var(--lx) * 9%) 101%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 76%);
    box-shadow: inset 0 0 0 .75px rgba(255, 255, 255, .28), inset 0 1.5px 2px rgba(255, 255, 255, .4), inset 0 -2px 4px rgba(255, 255, 255, .14);
}
.lg-ring {
    padding: 1.25px;
    background: conic-gradient(from calc(315deg - var(--lx) * 16deg), #fff, rgba(255, 255, 255, .95) 5%, rgba(120, 232, 190, .85) 12%, rgba(176, 210, 255, .6) 24%, rgba(176, 210, 255, .6) 42%,
        rgba(255, 255, 255, .9) 50%, rgba(255, 150, 175, .85) 58%, rgba(150, 168, 255, .9) 66%, rgba(255, 196, 212, .55) 78%, rgba(255, 196, 212, .55) 92%, #fff);
}
.lg-cres { top: 5%; left: 14%; right: 14%; height: 15%; border-radius: 50%; filter: blur(.8px); transform: translateX(calc(var(--lx) * -6%));
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
.tone-dark > .lg-bubble .lg-cres, .pcd.tone-dark .lg-cres { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); }
/* iPhone and other browsers without the bend: real glass behind the drop and the same clear fill as Android */
body:not(.lgp-blink).has-bnav .bnav:not(.tone-dark) > .lg-shadow, body:not(.lgp-blink) .pcd:not(.tone-dark) .lg-shadow { --lg-a-move: .18; }
body:not(.lgp-blink) :is(.lg-bubble, .has-bnav .bnav > .lg-bubble) { -webkit-backdrop-filter: blur(1.2px) saturate(1.6) brightness(1.05); backdrop-filter: blur(1.2px) saturate(1.6) brightness(1.05); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { body:not(.lgp-blink) :is(.lg-bubble, .has-bnav .bnav > .lg-bubble) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }

/* r665: the surface light is a ray-traced image (lightlab/trace.py): the mirror reflection of a room with a window, weighted by Fresnel, and the light the drop focuses.
   Light only, so it cannot add dark pixels. Two lamps, crossfaded as the drop travels; 3-slice, so any size is exact. The thin rim stays: the trace puts over half
   of the reflection in the last pixels of the edge (4% on the flat top, 53% at the rim). */
.lg-sheen, .tone-dark > .lg-bubble .lg-sheen, .pcd.tone-dark .lg-sheen { background: none; box-shadow: none; --tone: 1; }
.tone-dark > .lg-bubble .lg-sheen, .pcd.tone-dark .lg-sheen { --tone: .85; }
.lg-cres { display: none; }
.lg-lm { position: absolute; inset: 0; display: block; box-sizing: border-box; --w: calc((var(--h, 56) * 1px + 8px) * .49); border-style: solid; border-color: transparent; border-width: 0 var(--w);
    border-image-slice: 0 49% fill; border-image-width: 0 var(--w); border-image-repeat: stretch; pointer-events: none; }
.lg-lm-l { border-image-source: url(/static/img/drop-light-l.webp?v=r664); opacity: calc(var(--tone) * (1 - var(--lx) * .5 - .5)); }
.lg-lm-r { border-image-source: url(/static/img/drop-light-r.webp?v=r664); opacity: calc(var(--tone) * (var(--lx) * .5 + .5)); }

/* r664: the design panel's final rim and crossfade (lightlab/variants/final) */
/* final: the rim follows the lamp. Light bar: paler on the lamp side, stronger on the far side, every stop a pale tint. */
.lg-sheen > i.lg-ring {
    background: conic-gradient(from calc(var(--lx, 0) * 30deg),
        rgb(232, 241, 255) 0%, rgba(206, 240, 228, .8) 8%, rgba(176, 208, 255, .5) 20%, rgba(176, 208, 255, .55) 32%, rgba(168, 196, 255, .85) 43%,
        rgb(186, 208, 255) 50%, rgba(255, 206, 222, .85) 58%, rgba(176, 208, 255, .55) 69%, rgba(176, 208, 255, .5) 82%, rgba(214, 236, 255, .8) 93%, rgb(232, 241, 255) 100%);
}
/* dark bar: near white at the lamp and far edge, much fainter between, so the rim has contrast along its length */
.tone-dark > .lg-bubble .lg-sheen > i.lg-ring, .pcd.tone-dark .lg-sheen > i.lg-ring {
    background: conic-gradient(from calc(var(--lx, 0) * 30deg),
        #fff 0%, rgba(226, 246, 238, .72) 8%, rgba(190, 212, 255, .2) 21%, rgba(190, 212, 255, .2) 33%, rgba(232, 232, 255, .55) 42%,
        rgba(250, 246, 255, .8) 50%, rgba(255, 228, 238, .55) 59%, rgba(190, 212, 255, .2) 69%, rgba(190, 212, 255, .2) 81%, rgba(226, 238, 255, .72) 92%, #fff 100%);
}
/* the ice band: only on a light bar, leaning to the side away from the lamp */
.lg-sheen::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset calc(var(--lx, 0) * 1.6px) -2px 7px rgba(170, 204, 255, .34);
}
.tone-dark > .lg-bubble .lg-sheen::before, .pcd.tone-dark .lg-sheen::before { display: none; }
/* crossfade: the two lamps share only a narrow zone mid-bar, so two full highlights are rarely on screen together */
.lg-sheen > i.lg-lm-l { opacity: calc(var(--tone) * clamp(0, .72 - var(--lx) * .9, 1)); }
.lg-sheen > i.lg-lm-r { opacity: calc(var(--tone) * clamp(0, .72 + var(--lx) * .9, 1)); }

/* ?lgbend=2 experiment */
.lg-mirror, .has-bnav .bnav > .lg-mirror { position: absolute; left: 0; top: 0; z-index: 0; margin: 0; padding: 0; flex: none; overflow: hidden; pointer-events: none; }
.lg-mirror-f { position: absolute; left: 0; top: 0; overflow: hidden; }
.lg-mirror-in { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; }
html.lg-bend .bnav > [data-bar], html.lg-bend .bnav > .bnav-more { transform: translateZ(0); will-change: transform, filter; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* r673: only the icons and labels bend; the page inside the bubble does not */
.lg-bubble, .has-bnav .bnav > .lg-bubble { --lg-filter: none !important; }
html.lg-bend .pcd .pcd-pill > .pcd-it { transform: translateZ(0); will-change: transform, filter; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
