/* LOWiSPIKE Scan in the shared Liquid Glass design (Oct 16). Scan was the one screen still in the old gold look: gold frame
   corners, a red laser, gold icons, a gold Go button and gold-tinted tiles on a black layer without the dock. Here it uses the
   same tokens as every other tab (liquid-glass.css): Misty's blue as the only accent, dark translucent glass with a soft bright
   rim, white text with grey secondary text, the system font, and the glass dock stays at the bottom (scan-glass.js).
   Colours and chrome only: the camera, permissions, capture and food-logging flow are untouched. */

/* ---------- the camera layer ---------- */
html.lg .b3-cam { font-family: var(--lg-font); background-color: #000 !important; background-image: var(--lg-space), radial-gradient(120% 60% at 50% -10%, rgba(40, 70, 140, .32), transparent 70%) !important; background-size: 340px 340px, 100% 100% !important; }
html.lg .b3-cam.sg-docked { z-index: 2147483000; bottom: 0 !important; }
html.lg .b3-cam .b3-shade { background: radial-gradient(ellipse 72% 32% at 50% 42%, transparent 60%, rgba(0, 0, 0, .5) 100%); }

/* top: the round glass X and torch, a white title in the system font */
html.lg .b3-cam .b3-ctop { background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)) !important; }
html.lg .b3-cam .b3-ctitle { font-family: var(--lg-font) !important; font-size: 17px !important; font-weight: 650 !important; letter-spacing: -.01em; color: #fff !important; }
html.lg .b3-cam :is(.b3-cx, .b3-torch) { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; -webkit-backdrop-filter: var(--lg-blur) !important; backdrop-filter: var(--lg-blur) !important; box-shadow: var(--lg-edge), 0 6px 18px -8px rgba(0, 0, 0, .6) !important; }
html.lg .b3-cam .b3-torch.on { background: var(--lg-blue) !important; color: #fff !important; border-color: rgba(255, 255, 255, .3) !important; }

/* Oct 18 (Emmanuel: "Scanner: X bottom right"): the X sits at the bottom right of the capture panel, at the right end of the
   Deep analyze row (scan-glass.js dockX), same round glass as the torch. The top bar keeps the title centred over the torch side. */
.b3-cam.sg-xbot .b3-ctop { padding-left: calc(env(safe-area-inset-left, 0px) + 68px) !important; }
.b3-cam.sg-xbot .sg-xrow { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.b3-cam.sg-xbot .sg-xrow > .b3-deep { flex: 1 1 auto; min-width: 0; }
.b3-cam.sg-xbot .sg-xrow > .b3-cx { flex: none; width: 46px; height: 46px; min-width: 46px; padding: 0; margin: 0; }
/* shopping mode: Deep analyze steps aside, so the X joins the right end of the name / cart row instead of taking a row of its own.
   Only when that row is there (:has); otherwise the X keeps its own row under the barcode field. While a shopping result card is
   open the panel and this X step aside for the card (shop-scan.css .ss-open), whose own X shows. While typing a code the X stays. */
html.lg .b3-cam.sg-xbot.b3-shop .b3-cbot:has(> .ss-row) > .sg-xrow { position: absolute; right: 12px; bottom: 12px; }
html.lg .b3-cam.sg-xbot.b3-shop .b3-cbot:has(> .ss-row) > .ss-row { box-sizing: border-box; padding-right: 54px; }
/* Oct 28 2026: once the bottom-center close (bottom-close.js) has taken this X over (.lw-bx-src), the row gets its full width back */
html.lg .b3-cam.sg-xbot.b3-shop .b3-cbot:has(> .sg-xrow .lw-bx-src) > .ss-row { padding-right: 0; }
/* Nov 5 2026 live scan: with the cart row under the hint, the X leaves the flow the same way, so no empty band is left above the
   bottom close (its source X stays laid out, faded, where bottom-close.js looks for it) */
html.lg .b3-cam.sg-xbot.b3-livebc .b3-cbot:has(> .ss-liverow) > .sg-xrow { position: absolute; right: 12px; bottom: 12px; }
@media (max-height: 720px) {
    html.lg .b3-cam.sg-xbot.sg-docked .sg-xrow > .b3-cx { width: 42px; height: 42px; min-width: 42px; }
    html.lg .b3-cam.sg-xbot.sg-docked.b3-shop .b3-cbot:has(> .ss-row) > .sg-xrow { right: 10px; bottom: 12px; }
}

/* the viewfinder: Misty-blue corners and a blue scan line (green only for a caught code) */
html.lg .b3-cam .b3-frame i[class^=c] { border-color: var(--lg-blue-2) !important; filter: drop-shadow(0 0 6px rgba(10, 132, 255, .65)); }
html.lg .b3-cam .b3-laser { background: linear-gradient(90deg, transparent, var(--lg-blue-2), transparent) !important; box-shadow: 0 0 14px var(--lg-blue) !important; }
html.lg .b3-cam.got .b3-frame i[class^=c] { border-color: #30d158 !important; filter: drop-shadow(0 0 6px rgba(48, 209, 88, .6)); }

/* messages (looking up; the camera states below get Misty's blue glass): a dark glass card */
html.lg .b3-cam .b3-cbox { background: rgba(28, 28, 32, .82) !important; color: #fff; border: .5px solid rgba(143, 231, 255, .26) !important; border-radius: var(--lg-r) !important; -webkit-backdrop-filter: var(--lg-blur) !important; backdrop-filter: var(--lg-blur) !important; box-shadow: var(--lg-edge), var(--lg-shadow) !important; }
html.lg .b3-cam .b3-cbox b { font-weight: 650; color: #fff; }
html.lg .b3-cam .b3-cbox small { color: var(--lg-ink-2); opacity: 1; }
html.lg .b3-cam .b3-cic { background: rgba(10, 132, 255, .18) !important; color: var(--lg-blue-2) !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25); }
html.lg .b3-cam .b3-spin { border-color: rgba(255, 255, 255, .22) !important; border-top-color: var(--lg-blue-2) !important; }
html.lg .b3-cam .b3-cbox .r2-btn.ghost { background: rgba(118, 118, 128, .24) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; }

/* bottom: hint, code field, the four actions and Deep analyze in one glass panel */
html.lg .b3-cam .b3-chint { font-family: var(--lg-font); color: #fff; opacity: 1; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
html.lg .b3-cam .b3-chint.warn { color: #ff9f8f; }
html.lg .b3-cam .b3-ctype .input, html.lg .b3-cam #b3Bc { background: rgba(118, 118, 128, .24) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; border-radius: 22px !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .12) !important; }
html.lg .b3-cam .b3-ctype .input::placeholder { color: var(--lg-ink-3) !important; }
html.lg .b3-cam .b3-go { background: var(--lg-blue) !important; color: #fff !important; border: 0 !important; border-radius: 50% !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45), 0 8px 22px -10px rgba(10, 132, 255, .8) !important; }
html.lg .b3-cam .b3-cact { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; border-radius: 18px !important; font-family: var(--lg-font) !important; font-weight: 600 !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .22) !important; }
html.lg .b3-cam .b3-cact svg { color: #fff !important; }
html.lg .b3-cam .b3-cact[aria-pressed=true] { background: rgba(10, 132, 255, .30) !important; border-color: rgba(100, 210, 255, .55) !important; }
html.lg .b3-cam .b3-cact[aria-pressed=true] svg { color: var(--lg-blue-2) !important; }
html.lg .b3-cam .b3-deep { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; border-radius: 18px !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .22) !important; }
html.lg .b3-cam .b3-deep b { font-weight: 650 !important; }
html.lg .b3-cam .b3-deep small { color: var(--lg-ink-2); opacity: 1; }
html.lg .b3-cam .b3-deep > svg { color: var(--lg-blue-2) !important; }
html.lg .b3-cam .b3-deep > svg:last-child { color: var(--lg-ink-3) !important; opacity: 1; }
html.lg .b3-cam .b3-pill { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; }
html.lg .b3-cam .b3-pill svg { color: var(--lg-blue-2) !important; }

/* the panel is one glass card in the dock's material; with the dock over the camera it ends just above the dock, and the
   messages sit above the panel */
html.lg .b3-cam .b3-cbot {
    padding: 12px !important; gap: 8px;
    background: rgba(28, 28, 34, .42) !important; border: .5px solid rgba(143, 231, 255, .26); border-radius: 30px;
    -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4), inset 0 -.5px 0 rgba(255, 255, 255, .08), inset 0 18px 30px -22px rgba(255, 255, 255, .25), 0 14px 40px -10px rgba(0, 0, 0, .7);
}
html.lg .b3-cam:not(.sg-docked) .b3-cbot { left: 10px !important; right: 10px !important; }
html.lg .b3-cam.sg-docked .b3-cbot {
    left: max(10px, calc(50% - 280px)) !important; right: max(10px, calc(50% - 280px)) !important; bottom: calc(var(--sg-dock, 96px) + 10px) !important;
    max-width: none; margin: 0;
}
html.lg .b3-cam.sg-docked .b3-cmsg { bottom: calc(var(--sg-dock, 96px) + 250px) !important; }
html.lg .b3-cam.sg-docked .b3-frame { top: 24%; }
@media (max-height: 720px) {
    html.lg .b3-cam.sg-docked .b3-frame { top: 15%; height: min(18vh, 120px); }
    html.lg .b3-cam.sg-docked .b3-cbot { padding: 10px !important; gap: 6px; }
    html.lg .b3-cam.sg-docked .b3-chint { min-height: 0; font-size: 13px; }
    html.lg .b3-cam.sg-docked .b3-cact { min-height: 48px; }
    html.lg .b3-cam.sg-docked .b3-deep { min-height: 42px; }
    html.lg .b3-cam.sg-docked .b3-ctype .input, html.lg .b3-cam.sg-docked #b3Bc, html.lg .b3-cam.sg-docked .b3-go { height: 44px; min-height: 44px; }
    html.lg .b3-cam.sg-docked .b3-go { width: 44px; }
    html.lg .b3-cam.sg-docked .b3-cmsg { top: calc(env(safe-area-inset-top, 0px) + 58px) !important; bottom: calc(var(--sg-dock, 96px) + 226px) !important; }
}

/* the dock over the camera: #main stops being its own layer (html.sg-dock, scan-glass.js) and the dock is lifted above the camera.
   Scan is the lit button while the camera is open, the page under it is not. */
html.lg.sg-dock.b3-camon #app #main { z-index: auto !important; }

/* Oct 16 (E-man, iPhone screenshots: "Scan" lit Community): while the camera is open, Scan is the lit tab and the page under it
   is not. world-home.css paints the active tab with #tabbar#tabbar, so this needs the same weight plus the camera class. */

/* ---------- Oct 16: the camera states in Misty's blue liquid glass ----------
   E-man (camera blocked screenshot): "It doesn't fit our whole theme." Starting, blocked, no camera and didn't-start use the
   same glass as Daily Quest, the weather pill and the bubbles (world-home.css --wh-glass-*): compact, so the living world shows
   around it, a blue Try again, and typing the number offered as the way round. With no camera the frame corners and the light
   hide; the barcode field gets the blue rim so it reads as the thing to use. */
html .b3-cam .b3-cbox.b3-cglass { width: auto; max-width: min(320px, 100%); gap: 6px; padding: 16px 18px 14px !important; border-radius: 24px !important;
    background: var(--wh-glass-wide) !important; border: 1.5px solid var(--wh-glass-rim) !important; box-shadow: var(--wh-glass-sh) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4) !important; backdrop-filter: blur(14px) saturate(1.4) !important; color: var(--wh-glass-ink, #fff) !important;
    animation: b3GlassIn .38s cubic-bezier(.22, .8, .24, 1) both; }
html .b3-cam .b3-cbox.b3-cglass.slim { flex-direction: row; gap: 10px; padding: 10px 16px !important; border-radius: 999px !important; }
html .b3-cam .b3-cbox.b3-cglass b { font-size: 17px; font-weight: 650; color: inherit !important; }
html .b3-cam .b3-cbox.b3-cglass small { font-size: 14px; line-height: 1.38; color: inherit !important; opacity: .82 !important; }
html .b3-cam .b3-cbox.b3-cglass .b3-cic { width: 42px; height: 42px; background: rgba(110, 190, 255, .22) !important; color: #bfe6ff !important; box-shadow: inset 0 0 0 1px var(--wh-glass-rim) !important; }
html .b3-cam .b3-cbox.b3-cglass .b3-cic svg { width: 22px; height: 22px; }
html .b3-cam .b3-cbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; width: 100%; }
html .b3-cam .b3-cbtn { flex: 1 1 120px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 15px/1 var(--lg-font, -apple-system, system-ui, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html .b3-cam .b3-cbtn.pri { color: #fff; border: .5px solid rgba(143, 231, 255, .4); background: linear-gradient(180deg, #3d9bff, #0a84ff);
    box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .55), 0 8px 20px -10px rgba(10, 132, 255, .9); }
html .b3-cam .b3-cbtn.ghost { color: var(--wh-glass-ink, #fff); border: 1px solid var(--wh-glass-rim); background: rgba(255, 255, 255, .08); }
/* Nov 5 2026, Day mode: the camera screen is black in every theme, but in Day the glass ink turns navy, so "From photos" and
   "Live barcode scan" were navy on black (contrast 1.3:1). On the camera the secondary buttons keep white ink. */
html[data-theme="light"] .b3-cam .b3-cbtn.ghost { color: #fff; border-color: rgba(255, 255, 255, .34); }
html .b3-cam .b3-cbtn:active { transform: scale(.97); }
@keyframes b3GlassIn { 0% { opacity: 0; transform: translateY(10px) scale(.97); } 100% { opacity: 1; transform: none; } }
html .b3-cam:is([data-st=starting], [data-st=denied], [data-st=nocam], [data-st=camerr]) .b3-frame { opacity: 0 !important; transition: opacity .25s; }
html .b3-cam:not(.live) .b3-torch { visibility: hidden !important; pointer-events: none !important; }
html .b3-cam:is([data-st=denied], [data-st=nocam], [data-st=camerr]) #b3Bc { border-color: var(--wh-glass-rim) !important; box-shadow: 0 0 0 2px rgba(110, 190, 255, .35) !important; }
@media (prefers-reduced-motion: reduce) { html .b3-cam .b3-cbox.b3-cglass { animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { html .b3-cam .b3-cbox.b3-cglass { background: rgba(16, 36, 74, .96) !important; } }

/* the same layer inside the herb world (#spWorld): same accents */
html.lg #spWorld .b3-cam .b3-cbot .b3-pill svg { color: var(--lg-blue-2) !important; }

/* ---------- after a scan: the reveal and the Scan page use blue, not gold ---------- */
html.lg .b3-glow { background: radial-gradient(circle at 50% 55%, rgba(10, 132, 255, .32), transparent 65%) !important; }
html.lg .b3-card.v-ok .b3-glow { background: radial-gradient(circle at 50% 55%, rgba(48, 209, 88, .28), transparent 65%) !important; }
html.lg .b3-card.v-spike .b3-glow { background: radial-gradient(circle at 50% 55%, rgba(255, 107, 107, .24), transparent 65%) !important; }
html.lg .b3-stage.show .b3-card.anim { animation-name: sgflash !important; }
@keyframes sgflash { 0% { box-shadow: 0 0 0 0 rgba(100, 210, 255, .9), 0 0 80px rgba(10, 132, 255, .7); } 100% { box-shadow: 0 0 0 0 transparent; } }
html.lg .b3-bar i { background: linear-gradient(90deg, var(--lg-blue), var(--lg-blue-2)) !important; }
html.lg .b3-ball { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .3) !important; }
html.lg .b3-go { background: var(--lg-blue) !important; color: #fff !important; border: 0 !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45) !important; }
html.lg #tab-scan .b3-capture { background: var(--lg-fill) !important; border: .5px solid var(--lg-rim) !important; border-radius: var(--lg-r) !important; box-shadow: var(--lg-edge), var(--lg-shadow) !important; -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); }
html.lg #tab-scan .b3-capture-icon { background: var(--lg-blue) !important; color: #fff !important; border: 0 !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45), 0 8px 22px -10px rgba(10, 132, 255, .8) !important; }
html.lg #tab-scan .b3-modes button[aria-pressed="true"] { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
html.lg #tab-scan .b3-pill, html.lg #tab-scan .b3-prog { background: var(--lg-fill-2) !important; color: #fff !important; border: .5px solid var(--lg-rim) !important; }
html.lg #tab-scan .b3-pill svg { color: var(--lg-blue-2) !important; }

/* ---------- small mismatches found in the Oct 16 check of every tab ----------
   Cook's Shuffle ring was a rainbow (gold, cyan, purple, pink) and the "new version" banner a blue-to-purple gradient: both now
   Misty's blue. Per-person colours (planets, avatars), the spike meter and medal tiers stay as they are on purpose. */
html.lg .r5-ring { background: conic-gradient(from 0deg, var(--lg-blue), var(--lg-blue-2), rgba(255, 255, 255, .85), var(--lg-blue-2), var(--lg-blue)) !important; }
html.lg #lcUpd.lc-upd { background: rgba(28, 28, 34, .72) !important; color: #fff !important; border: .5px solid rgba(143, 231, 255, .26) !important; -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4), 0 14px 40px -10px rgba(0, 0, 0, .7) !important; }

@media (prefers-reduced-transparency: reduce) {
    html.lg .b3-cam :is(.b3-cbox, .b3-cx, .b3-torch) { background: rgba(28, 28, 32, .96) !important; }
    html.lg .b3-cam.sg-docked .b3-cbot { background: rgba(28, 28, 32, .96) !important; }
}

/* Oct 16: typing the barcode number. The panel sits right above the keyboard; the camera card and capture buttons step aside. */
.b3-cam.kb .b3-cbot, html.lg .b3-cam.kb .b3-cbot, html.lg .b3-cam.sg-docked.kb .b3-cbot, #spWorld .b3-cam.kb .b3-cbot {
    top: auto !important; bottom: calc(var(--b3kb, 0px) + 10px) !important;
    left: max(10px, calc(50% - 280px)) !important; right: max(10px, calc(50% - 280px)) !important;
    z-index: 60 !important; transform: none !important; padding: 12px !important;
}
.b3-cam.kb .b3-cmsg, .b3-cam.kb .b3-cacts, .b3-cam.kb .b3-deep { display: none !important; }
.b3-cam.kb .b3-ctype input, .b3-cam.kb #b3Bc { height: 48px !important; min-height: 48px !important; font-size: 17px !important; }
.b3-cam.kb .b3-go { width: 48px !important; height: 48px !important; min-height: 48px !important; }

/* ---------- Oct 28 2026 (E-man, call): one camera, two modes: Barcode | Essen-Foto ----------
   Both buttons sit side by side as a switch (the pressed one is the mode). Essen-Foto keeps the same live video, hides the barcode
   frame, laser and the typing fields, and shows one round shutter. Shopping (b3-shop) stays barcode only. */
.b3-cacts.b3-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.b3-cacts.b3-two .b3-cact { flex-direction: row; gap: 8px; min-height: 48px; font-size: 15px; }
.b3-cam .b3-shut { display: none; }
.b3-cam.b3-photo .b3-shut {
    display: block; position: relative; width: 74px; height: 74px; margin: 2px auto 4px; flex: none; padding: 0; cursor: pointer;
    border-radius: 50%; border: 4px solid #fff; background: transparent; -webkit-tap-highlight-color: transparent; box-sizing: border-box;
}
.b3-cam.b3-photo .b3-shut i { position: absolute; inset: 5px; border-radius: 50%; background: #fff; transition: transform .12s ease; }
.b3-cam.b3-photo .b3-shut:active i { transform: scale(.88); }
.b3-cam.b3-photo .b3-shut:focus-visible { outline: 2px solid #8fd8ff; outline-offset: 3px; }
.b3-cam.b3-photo .b3-frame, .b3-cam.b3-photo .b3-ctype, .b3-cam.b3-photo .b3-nmlive, .b3-cam.b3-photo .sg-xrow,
#spWorld .b3-cam.b3-photo .b3-frame, #spWorld .b3-cam.b3-photo .b3-ctype, #spWorld .b3-cam.b3-photo .b3-nmlive, #spWorld .b3-cam.b3-photo .sg-xrow { display: none !important; }
.b3-cam.b3-photo .b3-chint { text-align: center; }
.b3-cam.b3-shop .b3-shut { display: none !important; }
.b3-cam.b3-flash::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .55; pointer-events: none; z-index: 30; }
@media (prefers-reduced-motion: reduce) { .b3-cam.b3-photo .b3-shut i { transition: none; } }

/* Oct 28 2026 photo-first Scan (index.html pickMode): no live feed, no frame, no Snap/Focus, no mode switch. One calm glass card:
   a big Take photo button (the phone's own camera), From photos and Live barcode scan; the typing fields stay underneath.
   While the photo is read, the photo itself shows with a quick scanning sweep. */
.b3-cam.b3-pick video, .b3-cam.b3-pick .b3-still, .b3-cam.b3-pick .b3-frame, .b3-cam.b3-pick .b3-shut, .b3-cam.b3-pick .b3-snapb, .b3-cam.b3-pick .b3-focusb,
.b3-cam.b3-pick .b3-torch, .b3-cam.b3-pick .b3-cacts, .b3-cam.b3-pick .b3-deep, .b3-cam.b3-pick .b3-chint,
#spWorld .b3-cam.b3-pick .b3-frame, #spWorld .b3-cam.b3-pick .b3-cacts, #spWorld .b3-cam.b3-pick .b3-deep, #spWorld .b3-cam.b3-pick .b3-chint { display: none !important; }
.b3-cam.b3-pick.ss-open .b3-cmsg { display: none; }
.b3-cam.b3-pick { background: radial-gradient(120% 80% at 50% 36%, #0d1d42 0, #071029 45%, #03050a 92%) #03050a; } /* Home's navy, not a black dead camera */
.b3-cam.b3-pick .b3-cmsg { z-index: 4; pointer-events: auto; }
.b3-pickbox { width: min(340px, 100%); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 18px 18px; border-radius: 28px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(8, 30, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .35); color: #fff; }
.b3-pickbox b { font-size: 19px; line-height: 1.25; font-weight: 700; }
.b3-pickbox small { font-size: 14.5px; line-height: 1.4; opacity: .88; }
.b3-pthumb { position: relative; width: 168px; height: 168px; border-radius: 22px; overflow: hidden; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .3); }
.b3-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b3-pread .b3-pthumb { box-shadow: 0 0 0 3px rgba(127, 211, 255, .55), 0 0 28px rgba(127, 211, 255, .45); }
.b3-psweep { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(180deg, rgba(127, 211, 255, 0), rgba(127, 211, 255, .45) 85%, #bff0ff);
  border-bottom: 2px solid #dff8ff; animation: b3psweep .9s cubic-bezier(.45, 0, .55, 1) infinite alternate; will-change: transform; }
.b3-pgrid { position: absolute; inset: 0; background-image: linear-gradient(rgba(191, 240, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(191, 240, 255, .14) 1px, transparent 1px); background-size: 18px 18px; }
@keyframes b3psweep { from { transform: translateY(-40%); } to { transform: translateY(240%); } }
@media (prefers-reduced-motion: reduce) { .b3-psweep { animation: none; top: 33%; } }
/* Oct 29 2026 (bug hunt, iPhone SE): the photo card never runs over the typing panel. Its box ends just above the panel's real top
   (--b3-cbot-top, scan-glass.js), the card stays centred while it fits (auto margins) and scrolls inside its box when it does not,
   so the barcode field, Check, the food-name field and Analyze by name stay tappable. Short screens get a more compact card. */
.b3-cam.b3-pick .b3-cmsg, html.lg .b3-cam.sg-docked.b3-pick .b3-cmsg { bottom: calc(var(--b3-cbot-top, 250px) + 8px) !important; align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.b3-cam.b3-pick .b3-cmsg > .b3-pickbox { margin-top: auto; margin-bottom: auto; flex: none; }
/* Nov 5 2026 Scan chooser (index.html pickHTML; Emmanuel: "the option that I can see there ... Have the interface look really, really
   nice ... like it's analyzing"): Scan no longer opens the camera by itself. A calm analysing lens (two slow rings and a sweep), one
   question, the three ways in as one iOS-style inset list (Live scan in Misty blue, Photo of your food in mint, Deep analyze in the gold
   it has everywhere), and the photo library as a quiet text button under it. The title bar says nothing here: the question is the title. */
.b3-cam.b3-pick .b3-ctitle { visibility: hidden; }
.b3-pchoose { gap: 6px; padding: 20px 14px 10px; }
.b3-plens { position: relative; width: 84px; height: 84px; margin: 2px 0 8px; flex: none; }
.b3-pring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(127, 211, 255, 0) 0 62%, rgba(127, 211, 255, .95) 88%, rgba(127, 211, 255, 0) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: b3pspin 2.4s linear infinite; will-change: transform; }
.b3-pring2 { inset: -9px; opacity: .6; background: conic-gradient(from 180deg, rgba(50, 213, 131, 0) 0 70%, rgba(50, 213, 131, .9) 92%, rgba(50, 213, 131, 0) 100%); animation-duration: 3.8s; animation-direction: reverse; }
.b3-pcore { position: absolute; inset: 7px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #e6f8ff;
  background: radial-gradient(circle at 50% 35%, rgba(127, 211, 255, .45), rgba(59, 140, 255, .18) 55%, rgba(7, 16, 41, .6) 100%);
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 34px rgba(127, 211, 255, .35); }
.b3-pcore svg { position: relative; z-index: 1; width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(191, 240, 255, .8)); }
.b3-pbeam { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, rgba(127, 211, 255, 0), rgba(127, 211, 255, .38) 85%, rgba(223, 248, 255, .9));
  border-bottom: 1.5px solid rgba(223, 248, 255, .95); animation: b3psweep 1.5s cubic-bezier(.45, 0, .55, 1) infinite alternate; will-change: transform; }
@keyframes b3pspin { to { transform: rotate(1turn); } }
.b3-pickbox .b3-pq { font-size: 20px; letter-spacing: -.01em; }
.b3-pickbox .b3-pqs { font-size: 14px; opacity: .78; margin-bottom: 8px; }
/* Nov 7 2026 (liquid, see the end of this file): each way in is its own glass bubble, no longer one inset list with hairlines */
.b3-popts { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.b3-popt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; box-sizing: border-box; padding: 10px 14px 10px 10px; margin: 0;
  color: #fff; text-align: left; text-decoration: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .16s ease, background .16s ease;
  border-radius: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .17); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 26px -16px rgba(0, 0, 0, .7); }
.b3-popt:active { transform: scale(.97); background: rgba(255, 255, 255, .15); }
.b3-popt:focus-visible { outline: 2px solid #9fd6ff; outline-offset: 2px; }
.b3-poic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.b3-poic svg { width: 21px; height: 21px; }
/* glossy round icons: a light on top, a little shade below, the colour's own glow */
.b3-popt-live .b3-poic { background: linear-gradient(160deg, #7fd3ff, #3b8cff); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 0, 0, .18), 0 6px 16px -6px rgba(59, 140, 255, .9); }
.b3-popt-photo .b3-poic { background: linear-gradient(160deg, #5be3a0, #1fa463); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 0, 0, .18), 0 6px 16px -6px rgba(31, 164, 99, .9); }
.b3-popt-lib .b3-poic { background: linear-gradient(160deg, #ffc6a8, #f0727a); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 0, 0, .18), 0 6px 16px -6px rgba(240, 114, 122, .9); }
.b3-popt-man .b3-poic { background: linear-gradient(160deg, #c9bcff, #7b61ff); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 0, 0, .18), 0 6px 16px -6px rgba(123, 97, 255, .9); }
.b3-popt-deep .b3-poic { background: linear-gradient(160deg, #f3dca6, #c9a250); color: #2b1d02; box-shadow: inset 0 2px 3px rgba(255, 255, 255, .6), inset 0 -4px 8px rgba(0, 0, 0, .14), 0 6px 16px -6px rgba(201, 162, 80, .9); }
.b3-potx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b3-pickbox .b3-potx b { font-size: 16px; line-height: 1.2; font-weight: 650; }
.b3-pickbox .b3-potx small { font-size: 13px; line-height: 1.3; opacity: .72; }
.b3-pochev { flex: none; display: grid; color: rgba(235, 235, 245, .45); }
.b3-plib { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; margin: 2px 0 0; border: 0; background: none; color: #9fd6ff;
  font: 600 15px/1 var(--lg-font, -apple-system, system-ui, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.b3-plib svg { width: 19px; height: 19px; }
.b3-plib:focus-visible { outline: 2px solid #9fd6ff; outline-offset: 2px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .b3-pring, .b3-pbeam { animation: none; } .b3-pbeam { top: 30%; } .b3-popt { transition: none; } .b3-popt:active { transform: none; } }
/* short phones (iPhone SE): the lens shrinks to sit beside the question, so the three rows and Photos fit above the typing panel */
/* Nov 7 2026: with five rows (the gallery is a row now) a usual iPhone height (up to 900 pt) puts the lens beside the question, so every
   row shows above the round X; the rows keep their full size there */
@media (max-height: 900px) {
  .b3-cam.b3-pick .b3-pchoose { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-items: center; justify-items: start; text-align: left; padding: 16px 14px 14px; }
  .b3-cam.b3-pick .b3-pchoose .b3-plens { width: 52px; height: 52px; margin: 4px 0; grid-row: 1 / span 2; }
  .b3-cam.b3-pick .b3-pchoose .b3-pq, .b3-cam.b3-pick .b3-pchoose .b3-pqs { grid-column: 2; margin: 0; }
  .b3-cam.b3-pick .b3-pchoose .b3-popts { grid-column: 1 / -1; }
  .b3-cam.b3-pick .b3-pring2 { inset: -6px; }
  .b3-cam.b3-pick .b3-pcore { inset: 5px; }
  .b3-cam.b3-pick .b3-pcore svg { width: 20px; height: 20px; }
}
@media (max-height: 700px) {
  .b3-cam.b3-pick .b3-pickbox { padding: 12px 12px 6px; gap: 5px; border-radius: 24px; }
  .b3-cam.b3-pick .b3-pchoose { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: center; justify-items: start; text-align: left; }
  .b3-cam.b3-pick .b3-pchoose .b3-plens { width: 40px; height: 40px; margin: 6px 0 2px; }
  .b3-cam.b3-pick .b3-pchoose .b3-pq { grid-column: 2; }
  .b3-cam.b3-pick .b3-pchoose .b3-pqs { display: none; }
  .b3-cam.b3-pick .b3-pchoose .b3-popts, .b3-cam.b3-pick .b3-pchoose .b3-plib { grid-column: 1 / -1; }
  .b3-cam.b3-pick .b3-pchoose .b3-plib { justify-self: center; }
  .b3-cam.b3-pick .b3-pring2 { inset: -6px; }
  .b3-cam.b3-pick .b3-pcore { inset: 4px; }
  .b3-cam.b3-pick .b3-pcore svg { width: 17px; height: 17px; }
  .b3-cam.b3-pick .b3-pickbox .b3-pq { font-size: 17px; }
  .b3-cam.b3-pick .b3-popt { min-height: 52px; padding: 6px 10px; }
  .b3-cam.b3-pick .b3-popts { gap: 8px; }
  .b3-cam.b3-pick .b3-poic { width: 36px; height: 36px; }
  .b3-cam.b3-pick .b3-pickbox .b3-potx b { font-size: 15px; }
  .b3-cam.b3-pick .b3-pickbox .b3-potx small { font-size: 12.5px; }
  .b3-cam.b3-pick .b3-plib { min-height: 40px; font-size: 14px; }
  .b3-cam.b3-pick .b3-pthumb { width: 128px; height: 128px; }
  .b3-cam.b3-pread small { font-size: 13.5px; line-height: 1.35; }
}
@media (max-height: 600px) {
  .b3-cam.b3-pick .b3-pchoose { grid-template-columns: minmax(0, 1fr); }
  .b3-cam.b3-pick .b3-plens, .b3-cam.b3-pick .b3-pickbox .b3-pqs { display: none; }
  .b3-cam.b3-pick .b3-pchoose .b3-pq { grid-column: 1; }
  .b3-cam.b3-pick .b3-pickbox .b3-potx small { display: none; }
  .b3-cam.b3-pick .b3-popt { min-height: 48px; }
  .b3-cam.b3-pick .b3-pthumb { width: 104px; height: 104px; }
}

/* Oct 28 2026 live barcode layer ("Barcode live scannen" on the photo screen; E-man, call + screenshots): its own clean full screen.
   Camera, frame, the hint, Snap / Focus / torch and the X stay; the Barcode / Essen-Foto switch, Deep analyze, the shutter and the two
   type fields go (typing a number or a name stays on the photo screen under the camera). */
.b3-cam.b3-livebc .b3-cacts, .b3-cam.b3-livebc .b3-deep, .b3-cam.b3-livebc .b3-shut, .b3-cam.b3-livebc .b3-ctype,
.b3-cam.b3-livebc .b3-nmlive { display: none !important; }
.b3-cam.b3-livebc { background: radial-gradient(120% 80% at 50% 36%, #0d1d42 0, #071029 45%, #03050a 92%) #03050a; }
.b3-cam.b3-livebc .b3-cmsg { z-index: 4; pointer-events: auto; }
.b3-cam.b3-livebc:not(.live) .b3-frame { opacity: .35; }
/* Nov 5 2026 live scan in the supermarket: a breathing live dot by the title while the camera reads; the card's Skip and the cart row
   under the hint are in shop-scan.css */
.b3-cam.b3-livebc.live .b3-ctitle::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 2px;
  background: #32d583; box-shadow: 0 0 0 0 rgba(50, 213, 131, .7); animation: b3livedot 1.6s ease-out infinite; }
@keyframes b3livedot { 0% { box-shadow: 0 0 0 0 rgba(50, 213, 131, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(50, 213, 131, 0); } }
@media (prefers-reduced-motion: reduce) { .b3-cam.b3-livebc.live .b3-ctitle::before { animation: none; } }

/* Nov 7 2026 Scan chooser, liquid (Emmanuel: "Typing in a barcode and or typing in the food's name, I feel like that should just go
   into a button, das heißt manually or something, damit alles einfach einheitlich aussieht ... Transparenz, Design, Liquid, Bubble,
   Style ... It should have looked more impressive when opening ... very meh, very boring"):
   - the two typing fields wait behind one row, Type it in (index.html pickManual); until then the panel under the card is only the
     round X, no empty glass, and the card has the whole screen above it;
   - the card is clear glass over two slow colour orbs, each way in is its own glass bubble with a glossy round icon, all alike;
   - opening: the lens springs in with one ring of light, the card rises, the rows float up one after another, a sheen crosses once.
   Motion stays off when the phone asks for less motion. */
.b3-cam.b3-pick:not(.b3-man) .b3-ctype, .b3-cam.b3-pick:not(.b3-man) .b3-nmlive { display: none !important; }
.b3-cam.b3-pick:not(.b3-man) .b3-cbot, html.lg .b3-cam.b3-pick:not(.b3-man) .b3-cbot { background: none !important; border-color: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.b3-cam.b3-pick.b3-man .b3-cmsg { display: none !important; }
/* with the round X at the bottom (bottom-close.js) the panel holds nothing else, so the card's box reaches down to just above the X */
html.lw-bx-on .b3-cam.b3-pick:not(.b3-man) .b3-cmsg, html.lw-bx-on.lg .b3-cam.sg-docked.b3-pick:not(.b3-man) .b3-cmsg { bottom: calc(env(safe-area-inset-bottom, 0px) + 86px) !important; }
.b3-mback { display: none; }
.b3-cam.b3-pick.b3-man .b3-mback { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; min-height: 40px; padding: 0 14px 0 8px; margin: 0 0 2px;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .1); color: #fff; font: 600 15px/1 var(--lg-font, -apple-system, system-ui, sans-serif);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.b3-mback svg { width: 18px; height: 18px; }
.b3-mback:focus-visible { outline: 2px solid #9fd6ff; outline-offset: 2px; }
.b3-cam.b3-pick.b3-man .b3-cbot { animation: b3pup .34s cubic-bezier(.2, .9, .25, 1.1) both; }

/* the colour behind the glass: two soft orbs drifting slowly in Home's navy */
.b3-cam.b3-pick .b3-shade { background: none !important; overflow: hidden; }
.b3-cam.b3-pick .b3-shade::before, .b3-cam.b3-pick .b3-shade::after { content: ""; position: absolute; width: 74vmin; height: 74vmin; border-radius: 50%; filter: blur(44px); opacity: .8; will-change: transform; }
.b3-cam.b3-pick .b3-shade::before { left: -22vmin; top: 6%; background: radial-gradient(circle, rgba(70, 175, 255, .95), rgba(70, 120, 255, .3) 45%, rgba(64, 170, 255, 0) 70%); animation: b3orb 16s ease-in-out infinite alternate; }
.b3-cam.b3-pick .b3-shade::after { right: -26vmin; bottom: 18%; background: radial-gradient(circle, rgba(64, 224, 170, .8), rgba(120, 90, 255, .25) 45%, rgba(64, 224, 170, 0) 70%); animation: b3orb 19s ease-in-out -6s infinite alternate-reverse; }
@keyframes b3orb { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vmin, -7vmin, 0) scale(1.12); } }

/* the card: clear liquid glass with a bright rim and a soft glare */
.b3-cam.b3-pick .b3-pickbox.b3-pchoose { position: relative; overflow: hidden; width: min(360px, 100%); padding: 22px 14px 12px; gap: 6px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 30px 80px -24px rgba(0, 10, 40, .75);
  animation: b3pin .52s cubic-bezier(.2, .9, .25, 1.12) both; }
.b3-pchoose::before { content: ""; position: absolute; left: -20%; top: -40%; width: 90%; height: 70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); }
.b3-pchoose::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; transform: skewX(-18deg) translateX(0); opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); animation: b3sheen 1.1s cubic-bezier(.45, 0, .2, 1) .55s 1 both; }
.b3-pchoose > * { position: relative; z-index: 1; }
.b3-pchoose .b3-plens { animation: b3lens .7s cubic-bezier(.2, .9, .25, 1.25) both; }
.b3-pchoose .b3-plens::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(160, 225, 255, .9); opacity: 0; pointer-events: none; animation: b3ring 1s ease-out .2s 1 both; }
.b3-pchoose .b3-pq, .b3-pchoose .b3-pqs { animation: b3pup .5s cubic-bezier(.2, .9, .25, 1) .1s both; }

/* the rows float up one after another (each row is its own glass bubble, base rules above) */
.b3-cam.b3-pick .b3-pchoose .b3-popt { animation: b3pup .48s cubic-bezier(.2, .9, .25, 1.12) both; }
.b3-cam.b3-pick .b3-pchoose .b3-popt:nth-child(1) { animation-delay: .14s; }
.b3-cam.b3-pick .b3-pchoose .b3-popt:nth-child(2) { animation-delay: .2s; }
.b3-cam.b3-pick .b3-pchoose .b3-popt:nth-child(3) { animation-delay: .26s; }
.b3-cam.b3-pick .b3-pchoose .b3-popt:nth-child(4) { animation-delay: .32s; }
.b3-cam.b3-pick .b3-pchoose .b3-popt:nth-child(5) { animation-delay: .38s; }
.b3-cam.b3-pick .b3-pchoose .b3-plib { animation: b3pup .48s cubic-bezier(.2, .9, .25, 1) .38s both; }

@keyframes b3pin { from { opacity: 0; transform: translateY(22px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes b3pup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes b3lens { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes b3ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes b3sheen { 0% { opacity: 0; transform: skewX(-18deg) translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: skewX(-18deg) translateX(420%); } }
@media (prefers-reduced-motion: reduce) {
  .b3-cam.b3-pick .b3-shade::before, .b3-cam.b3-pick .b3-shade::after, .b3-cam.b3-pick .b3-pickbox.b3-pchoose, .b3-pchoose::after, .b3-pchoose .b3-plens, .b3-pchoose .b3-plens::after,
  .b3-pchoose .b3-pq, .b3-pchoose .b3-pqs, .b3-cam.b3-pick .b3-pchoose .b3-popt, .b3-cam.b3-pick .b3-pchoose .b3-plib, .b3-cam.b3-pick.b3-man .b3-cbot { animation: none !important; }
}
