/* CAM_SHEET_2026Q4 - the camera window, direction B "Viewfinder first" (phase_camera_sheet.js), and the "AI saw" panel in the house material.
   Linked after live_collab.css. Inert while the script is off (localStorage tye_cam_off = 1): every rule needs #cam-modal.camx or .camx-saw, which only
   phase_camera_sheet.js creates. #cam-modal.camx (1,1,0)+ beats every injected .cam-modal / .cm-* sheet without !important; min-height carries
   !important only against cad_responsive.css:862 (button min-height 40 px !important at <= 480 px). The root keeps id="cam-modal" (voice_ui.js looks
   it up) and never carries the class "cam-modal" nor .cm-video-wrap, so none of the injected camera sheets or the relocation code can reach it.
   The viewfinder is #101114 behind a live picture; while there is none (opening, allow, blocked, no camera) it follows the theme. Plates, dock and
   panel follow the theme. Red is reserved: the trash icon, danger text, the live dot and the focus ring. ASCII only. */

/* ============================================================ AI saw (a camera photo and a file alike) ============================================================ */
/* The .vision-insights / .vi-* sheet that voice_ui.js injects stays in the page; these rules outrank it, and only reach the panel the script draws. */
html[data-theme] body .vision-insights.camx-saw { margin: 12px 0 4px; padding: 12px; border: 1px solid var(--dc-line); border-radius: 14px; background: var(--dc-sheet); color: var(--dc-ink); font: 400 13px/1.35 var(--dc-font); letter-spacing: 0; text-transform: none; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-h b { margin: 0 auto 0 0; font: 600 14px/1.3 var(--dc-font); color: var(--dc-ink); }
html[data-theme] body .vision-insights.camx-saw .camx-saw-c { display: inline-flex; align-items: center; gap: 5px; font: 500 13px/1.3 var(--dc-font); color: var(--dc-ink2); }
html[data-theme] body .vision-insights.camx-saw .camx-saw-c .ti { font-size: 16px; color: var(--dc-ink2); }
html[data-theme] body .vision-insights.camx-saw .camx-saw-r { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-k { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 100%; padding: 4px 11px; border: 0; border-radius: 14px; background: var(--dc-press); color: var(--dc-ink); font: 500 13px/1.3 var(--dc-font); font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-k.is-shape { background: var(--dc-ink); color: var(--dc-sheet); font-weight: 600; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-k .ti { font-size: 15px; color: inherit; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-k small { font: 400 12px/1.2 var(--dc-font); color: inherit; opacity: 1; margin: 0; }
html[data-theme] body .vision-insights.camx-saw .camx-saw-p { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font: 400 12.5px/1.35 var(--dc-font); color: var(--dc-ink3); }
html[data-theme] body .vision-insights.camx-saw .camx-saw-p .ti { font-size: 15px; }
html[data-theme] body .vision-insights.camx-saw .vi-ensemble-busy { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 400 12.5px/1.35 var(--dc-font); color: var(--dc-ink3); }
html[data-theme] body .vision-insights.camx-saw .vi-ensemble-busy .vi-spin { width: 14px; height: 14px; border: 2px solid var(--dc-line2); border-top-color: var(--dc-ink); }
@media (prefers-reduced-motion: reduce) { html[data-theme] body .vision-insights.camx-saw .vi-spin { animation: none; } }
@media (forced-colors: active) { html[data-theme] body .vision-insights.camx-saw .camx-saw-k { border: 1px solid CanvasText; } }

/* ============================================================ the camera window: house components ============================================================ */
/* ---------- tokens: --dc-* exist on EVERY html, touch included (desktop_chat.css:11-30), and equal --ts-* ---------- */
#cam-modal.camx {
  --cx-sheet: var(--dc-sheet); --cx-ink: var(--dc-ink); --cx-ink2: var(--dc-ink2); --cx-ink3: var(--dc-ink3);
  --cx-line: var(--dc-line); --cx-line2: var(--dc-line2); --cx-press: var(--dc-press); --cx-shadow: var(--dc-shadow);
  --cx-dot: var(--dc-dot); --cx-dotbg: var(--dc-dotbg); --cx-font: var(--dc-font); --cx-ease: var(--dc-ease);
  --cx-glass: var(--dc-surface);            /* = --ts-surface: chrome that floats over content */
  --cx-field: var(--ct-field);              /* #f4f5f7 / #25272c (chat_type.css:29, dark :40) */
  --cx-scrim: rgba(10, 12, 16, .32);        /* = --ts-scrim */
  --cx-del: var(--cm-del, #c8261e);         /* red as TEXT: 5.6:1 light, #ff4d42 dark (desktop_chat.css:465-466) */
  --cx-safe-b: env(safe-area-inset-bottom, 0px); --cx-safe-t: env(safe-area-inset-top, 0px);
  --cx-safe-l: env(safe-area-inset-left, 0px); --cx-safe-r: env(safe-area-inset-right, 0px);
}
html[data-theme="dark"] #cam-modal.camx { --cx-scrim: rgba(0, 0, 0, .55); }

/* ---------- root: full viewport, own layer. 199990 = above docks / popups (99999, 100000-100003), below the lightbox (200000), the tour
   (2147483600), house dialogs (2147483646) and the sign-in ceiling (2147483647) ---------- */
#cam-modal.camx {
  position: fixed; inset: 0; z-index: 199990; margin: 0; padding: 0; box-sizing: border-box; display: flex;
  background: var(--cx-scrim); color: var(--cx-ink); font: 400 15px/1.3 var(--cx-font); letter-spacing: 0; text-align: left;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; touch-action: manipulation;
}
#cam-modal.camx, #cam-modal.camx *, #cam-modal.camx *::before, #cam-modal.camx *::after { box-sizing: border-box; }
#cam-modal.camx button { font-family: var(--cx-font); touch-action: manipulation; }
#cam-modal.camx .ti { line-height: 1; pointer-events: none; }
#cam-modal.camx [hidden] { display: none !important; }        /* every component below sets display, which beats the UA [hidden] */
/* the picture: contain, never cover (what is framed is what is taken) */
#cam-modal.camx .camx-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; overflow: clip; background: var(--cx-field); }   /* clip: nothing can scroll it */
#cam-modal.camx .camx-stage > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
/* the app toast (a body child, z 99 desktop / 9010 touch) lifts over the camera; house precedent: drawing_cm.css:334 */
html body:has(> #cam-modal.camx) #toast#toast#toast#toast { z-index: 199995 !important; left: 50% !important; bottom: var(--camx-toast-b, calc(env(safe-area-inset-bottom, 0px) + 96px)) !important; }
/* the account toast too (z 1000 / 9010); only its layer: its bottom also hides it below the screen's edge (touch_cards.css:583) */
html body:has(> #cam-modal.camx) #mem-toast#mem-toast#mem-toast#mem-toast { z-index: 199995 !important; }
/* (4 ids: touch_cards.css:584 sets bottom with 4 ids + !important while a tool card is lifted; build_chat.css:416-417 set left / bottom. The
   script writes --camx-toast-b as an inline custom property on <body>. Never a class on <html> or <body>.) */
@keyframes camxUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes camxIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- header (side panel, Commands) ---------- */
#cam-modal.camx .camx-grab { flex: none; width: 38px; height: 5px; margin: 8px auto 3px; border-radius: 3px; background: var(--cx-line); }
html:not(.tye-ts) #cam-modal.camx .camx-grab { display: none; }        /* no house desktop card has a grab bar, except the draggable Pro Tools dock */
html:not(.tye-ts) #cam-modal.camx .camx-bar { min-height: 56px; padding: 0 10px 0 20px; }
#cam-modal.camx .camx-bar { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--cx-line); }
#cam-modal.camx .camx-t { margin: 0; font: 600 17px/1.25 var(--cx-font); letter-spacing: -.005em; color: var(--cx-ink); }
#cam-modal.camx .camx-n { flex: none; font: 400 13px/1.25 var(--cx-font); color: var(--cx-ink3); font-variant-numeric: tabular-nums; }
#cam-modal.camx .camx-sp { flex: 1 1 auto; min-width: 0; }

/* ---------- round 44 button on a sheet; the same over the picture (glass, as #ts-bar / #ts-quick) ---------- */
#cam-modal.camx .camx-rb {
  flex: none; position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px !important; margin: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 22px; background: transparent; color: var(--cx-ink2);
  font-size: 22px; line-height: 1; box-shadow: none; cursor: pointer; transition: background-color .16s ease, color .16s ease, transform .12s ease;
}
#cam-modal.camx .camx-rb:active { background: var(--cx-press); }
#cam-modal.camx .camx-rb[aria-pressed="true"] { background: var(--cx-press); color: var(--cx-ink); }
#cam-modal.camx .camx-rb:disabled { color: var(--cx-ink3); opacity: .45; cursor: default; }
#cam-modal.camx .camx-rb.on-video {
  background: var(--cx-glass); border: 1px solid var(--cx-line); color: var(--cx-ink); box-shadow: var(--cx-shadow);
}   /* (no backdrop blur over a live video: the plate is 94 / 92 % opaque already, and a blur is redone for every frame) */
#cam-modal.camx .camx-rb.on-video:active { transform: scale(.92); }
#cam-modal.camx .camx-rb.on-video[aria-pressed="true"] { background: var(--cx-ink); color: var(--cx-sheet); border-color: transparent; }
@media (hover: hover) { #cam-modal.camx .camx-rb:not(:disabled):not(.on-video):hover { background: var(--cx-press); color: var(--cx-ink); } }

/* ---------- shutter: ink ring + ink disc on the dock; the glass plate over a picture ---------- */
#cam-modal.camx .camx-sh {
  flex: none; position: relative; width: 72px; height: 72px; min-height: 72px !important; margin: 0; padding: 0;
  border: 3px solid var(--cx-ink); border-radius: 36px; background: transparent; cursor: pointer;
}
#cam-modal.camx .camx-sh::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--cx-ink); transition: transform .12s var(--cx-ease); }
#cam-modal.camx .camx-sh:active::before { transform: scale(.9); }
#cam-modal.camx .camx-sh:disabled { opacity: .35; cursor: default; }
#cam-modal.camx .camx-sh.on-video { background: var(--cx-glass); box-shadow: var(--cx-shadow); }

/* ---------- buttons: touch 52 / r26 / 600 16 (tye_dialog on touch), desktop 40 / r20 / 600 14 (New chat) ---------- */
#cam-modal.camx .camx-btn {
  flex: 1 1 0; min-width: 0; height: 52px; min-height: 52px !important; margin: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 26px; font: 600 16px/1 var(--cx-font); letter-spacing: 0; white-space: nowrap; box-shadow: none; cursor: pointer;
  background: var(--cx-ink); color: var(--cx-sheet); transition: opacity .16s ease, transform .12s ease;
}
#cam-modal.camx .camx-btn .ti { font-size: 20px; }
#cam-modal.camx .camx-btn.sec { background: var(--cx-sheet); color: var(--cx-ink); border-color: var(--cx-line2); }
#cam-modal.camx .camx-btn.sec:active { background: var(--cx-press); }
#cam-modal.camx .camx-btn.dng { background: transparent; color: var(--cx-del); }
#cam-modal.camx .camx-btn:active:not(:disabled) { transform: scale(.985); }
#cam-modal.camx .camx-btn:disabled { background: var(--cx-press); color: var(--cx-ink3); cursor: default; }
#cam-modal.camx .camx-foot { flex: none; display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + var(--cx-safe-b)); border-top: 1px solid var(--cx-line); background: var(--cx-sheet); }
html:not(.tye-ts) #cam-modal.camx .camx-foot { justify-content: flex-end; padding: 12px 16px; }
html:not(.tye-ts) #cam-modal.camx .camx-btn { flex: none; height: 40px; min-height: 40px !important; padding: 0 18px; border-radius: 20px; font-size: 14px; }
html:not(.tye-ts) #cam-modal.camx .camx-btn .ti { font-size: 18px; }
@media (hover: hover) { #cam-modal.camx .camx-btn:not(.sec):not(.dng):not(:disabled):hover { opacity: .88; } #cam-modal.camx .camx-btn:is(.sec, .dng):hover { background: var(--cx-press); } }

/* ---------- tray chip: the composer's .atc-img (touch_shell.css:791-809, desktop_chat.css:418-428), same numbers ---------- */
#cam-modal.camx .camx-tray { flex: none; display: flex; flex-wrap: nowrap; gap: 10px; margin: 0; padding: 12px 12px 4px; list-style: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
#cam-modal.camx .camx-tray::-webkit-scrollbar { display: none; }
#cam-modal.camx .camx-chip { flex: none; position: relative; width: 56px; height: 56px; }
#cam-modal.camx .camx-chip-x {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; min-width: 22px; min-height: 22px !important; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--cx-sheet); border-radius: 50%; background: var(--cx-ink); color: var(--cx-sheet);
  font: 600 14px/1 var(--cx-font); box-shadow: none; cursor: pointer; z-index: 1;
}
#cam-modal.camx .camx-chip-x::before { content: ''; position: absolute; inset: -7px -5px -19px -21px; }   /* 44x44 from the 18px padding box, inside the tray's 12px top padding and the 10px gap */

/* a desktop layout with a coarse pointer keeps 44 (desktop_chat.css:992-994) */
@media (pointer: coarse) {
  html:not(.tye-ts) #cam-modal.camx .camx-btn { height: 44px; min-height: 44px !important; border-radius: 22px; }
}

/* ---------- status chip + live dot: red is the only accent, and it means "live" ---------- */
#cam-modal.camx .camx-st {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--cx-line);
  background: var(--cx-glass); color: var(--cx-ink); font: 600 13px/1 var(--cx-font); box-shadow: var(--cx-shadow);
}
#cam-modal.camx .camx-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cx-dot); animation: camxPulse 1.2s ease-in-out infinite; }
@keyframes camxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }      /* desktop_voice.css vb-pulse */

/* ---------- readout: section label, value rows, a 4px ink meter ---------- */
#cam-modal.camx .camx-lbl { margin: 0; padding: 12px 12px 6px; font: 600 11px/1.3 var(--cx-font); letter-spacing: .06em; text-transform: uppercase; color: var(--cx-ink3); }
#cam-modal.camx .camx-row { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 12px; border-radius: 12px; font: 500 15px/1.3 var(--cx-font); color: var(--cx-ink); }
#cam-modal.camx .camx-row .ti { flex: none; width: 24px; font-size: 20px; color: var(--cx-ink2); text-align: center; }
#cam-modal.camx .camx-row .v { margin-left: auto; font: 400 13px/1.3 var(--cx-font); color: var(--cx-ink3); font-variant-numeric: tabular-nums; }
#cam-modal.camx .camx-meter { flex: 0 0 72px; height: 4px; border-radius: 2px; background: var(--cx-press); overflow: hidden; }
#cam-modal.camx .camx-meter > i { display: block; height: 100%; border-radius: 2px; background: var(--cx-ink); }

/* ---------- pop-up menu (choose camera, details, commands): the chat menu / attach menu card, r18 pad 6, rows r12 ---------- */
#cam-modal.camx .camx-menu { position: absolute; z-index: 3; min-width: 256px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 160px); padding: 6px; overflow: hidden auto; overscroll-behavior: contain; background: var(--cx-sheet); border: 1px solid var(--cx-line); border-radius: 18px; box-shadow: var(--cx-shadow); animation: camxIn .15s var(--cx-ease); }
#cam-modal.camx .camx-mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px !important; margin: 0; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--cx-ink); font: 500 15px/1.2 var(--cx-font); text-align: left; box-shadow: none; cursor: pointer; }
#cam-modal.camx .camx-mi .ti { flex: none; width: 24px; font-size: 20px; color: var(--cx-ink2); text-align: center; }
#cam-modal.camx .camx-mi[aria-checked="true"]::after { content: "\ea5e"; content: "\ea5e" / ""; margin-left: auto; font: normal 400 18px/1 "tabler-icons"; color: var(--cx-ink); }   /* check: the press tint alone is 1.15 / 1.35 : 1 */
#cam-modal.camx .camx-mi:active { background: var(--cx-press); }
@media (hover: hover) { #cam-modal.camx .camx-mi:hover { background: var(--cx-press); } }
/* ---------- switch (SWITCH_SIZE_2026Q4 geometry); ink track as the touch rail (touch_shell.css .ts-cp-sw) ---------- */
#cam-modal.camx .camx-switch { flex: none; position: relative; width: var(--tsw-w, 44px); height: var(--tsw-h, 26px); border-radius: var(--tsw-r, 13px); background: var(--cx-line2); transition: background-color .15s ease; }
#cam-modal.camx .camx-switch::after { content: ""; position: absolute; top: var(--tsw-p, 3px); left: var(--tsw-p, 3px); width: var(--tsw-k, 20px); height: var(--tsw-k, 20px); border-radius: 50%; background: #fff; box-shadow: var(--tsw-knob-sh, 0 1px 3px rgba(0, 0, 0, .28)); transition: transform .15s ease; }
#cam-modal.camx [aria-checked="true"] > .camx-switch { background: var(--cx-ink); }
html[data-theme="dark"] #cam-modal.camx [aria-checked="true"] > .camx-switch::after { background: var(--cx-sheet); }
#cam-modal.camx [aria-checked="true"] > .camx-switch::after { transform: translateX(var(--tsw-x, 18px)); }
/* ---------- caption over the picture (Real-time), note, chip while a photo is being written ---------- */
#cam-modal.camx .camx-cap { max-width: 640px; padding: 10px 14px; border: 1px solid var(--cx-line); border-radius: 14px; background: var(--cx-glass); color: var(--cx-ink); font: 500 15px/1.45 var(--cx-font); box-shadow: var(--cx-shadow); }
#cam-modal.camx .camx-note { margin: 0; padding: 0 12px 8px; font: 400 12.5px/1.4 var(--cx-font); color: var(--cx-ink3); }
#cam-modal.camx .camx-chip.is-busy > img { opacity: .55; }
#cam-modal.camx .camx-chip.is-busy::after { content: ""; position: absolute; left: 19px; top: 19px; width: 18px; height: 18px; border: 2px solid var(--cx-line2); border-top-color: var(--cx-ink); border-radius: 50%; animation: camxSpin .9s linear infinite; }

/* ---------- spinner, focus, reduced motion, forced colours ---------- */
#cam-modal.camx .camx-spin { display: inline-block; animation: camxSpin .9s linear infinite; }
@keyframes camxSpin { to { transform: rotate(360deg); } }
#cam-modal.camx :is(button, [tabindex="0"], a):focus-visible { outline: 2px solid var(--cx-dot); outline-offset: 2px; }
#cam-modal.camx :is(.camx-mi, .camx-rb:not(.on-video)):focus-visible { outline-offset: -2px; }
/* over a picture the red ring stands on a sheet-coloured band, so it reads on any colour (red on the band: 4.36 light, 5.13 dark) */
#cam-modal.camx .on-video:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 6px var(--cx-sheet); }
#cam-modal.camx button:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  #cam-modal.camx .camx-dot, #cam-modal.camx .camx-spin, #cam-modal.camx .camx-menu { animation: none; }
  #cam-modal.camx .camx-chip.is-busy::after { animation: none; }
  #cam-modal.camx :is(.camx-rb, .camx-btn, .camx-switch) { transition: none; }
  #cam-modal.camx .camx-sh::before, #cam-modal.camx .camx-switch::after { transition: none; }   /* (a pseudo-element is dropped inside :is()) */
}
@media (forced-colors: active) { #cam-modal.camx :is(.camx-rb, .camx-sh, .camx-btn, .camx-st) { border: 1px solid ButtonText; } }

/* a phone on its side (the house breakpoint: max-height 500, touch_shell.css:955) */
@media (max-height: 500px) {
  html.tye-ts #cam-modal.camx .camx-grab { margin: 4px auto 0; }
  html.tye-ts #cam-modal.camx .camx-bar { min-height: 44px; }
}

/* ============================================================ direction B "Viewfinder first" ============================================================ */
#cam-modal.camx.camx-b { --cx-stage: #101114; --cx-onstage: #c9cdd4; --cx-onstage3: #9aa1ad; --cx-edge: 10px; }
#cam-modal.camx.camx-b .camx-surface { position: relative; outline: none; }
#cam-modal.camx.camx-b .camx-stage { position: relative; background: var(--cx-stage); }
#cam-modal.camx.camx-b:not([data-state="live"]) { --cx-stage: var(--cx-field); --cx-onstage: var(--cx-ink2); --cx-onstage3: var(--cx-ink3); }
#cam-modal.camx.camx-b .camx-stage > :is(video, .camx-hold, .camx-photo) { position: absolute; inset: 0 0 var(--cx-padb, 0px) 0; width: 100%; height: calc(100% - var(--cx-padb, 0px)); object-fit: contain; display: block; background: transparent; }
#cam-modal.camx.camx-b .camx-stage > video.is-off { visibility: hidden; }
#cam-modal.camx.camx-b .camx-stage > :is(video, .camx-hold).is-mirror { transform: scaleX(-1); }
#cam-modal.camx.camx-b .camx-stage > video.is-dip { animation: camxDip .14s linear; }
@keyframes camxDip { 0%, 100% { opacity: 1; } 40% { opacity: .55; } }
#cam-modal.camx.camx-b .camx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- plates over the picture ---- */
#cam-modal.camx.camx-b .camx-tl, #cam-modal.camx.camx-b .camx-tr { position: absolute; z-index: 2; top: var(--cx-edge); display: flex; gap: 8px; }
#cam-modal.camx.camx-b .camx-tl { left: var(--cx-edge); }
#cam-modal.camx.camx-b .camx-tr { right: var(--cx-edge); }
#cam-modal.camx.camx-b .camx-tc { position: absolute; z-index: 1; top: calc(var(--cx-edge) + 6px); left: 64px; right: 64px; display: flex; justify-content: center; pointer-events: none; }
#cam-modal.camx.camx-b .camx-count { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
#cam-modal.camx.camx-b .camx-ht { margin: 0; font: 600 15px/1 var(--cx-font); color: var(--cx-ink); white-space: nowrap; }
#cam-modal.camx.camx-b .camx-hc { font: 400 13px/1 var(--cx-font); color: var(--cx-ink2); white-space: nowrap; }
html.tye-ts #cam-modal.camx.camx-b .camx-tl .camx-st { min-height: 44px; padding: 0 16px; border-radius: 22px; }
#cam-modal.camx.camx-b .camx-rtt { margin: 0; }
#cam-modal.camx.camx-b .camx-st .ti { font-size: 18px; color: var(--cx-ink2); }
#cam-modal.camx.camx-b .camx-low {
  position: absolute; z-index: 1; left: var(--pl, 0px); width: var(--pw, 100%); bottom: calc(var(--pb, 0px) + 12px); padding: 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
#cam-modal.camx.camx-b .camx-low > * { pointer-events: auto; }
#cam-modal.camx.camx-b button.camx-pill { margin: 0; min-height: 44px !important; max-width: 100%; padding: 0 16px 0 14px; border-radius: 22px; cursor: pointer; line-height: 1.25; text-align: left; white-space: normal; }
#cam-modal.camx.camx-b button.camx-pill > span { min-width: 0; }
#cam-modal.camx.camx-b button.camx-pill:not([data-k="check"]) { cursor: default; }
#cam-modal.camx.camx-b button.camx-pill:active[data-k="check"] { background: var(--cx-sheet); transform: scale(.985); }
#cam-modal.camx.camx-b button.camx-pill:focus-visible { box-shadow: 0 0 0 6px var(--cx-sheet); }
#cam-modal.camx.camx-b .camx-pill2 { min-height: 44px; padding: 0 4px 0 16px; border-radius: 22px; }
#cam-modal.camx.camx-b .camx-pbtn { margin: 0; min-height: 44px !important; min-width: 64px; padding: 0 12px; border: 0; border-radius: 22px; background: transparent; color: var(--cx-ink); font: 600 13px/1 var(--cx-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#cam-modal.camx.camx-b .camx-wait { position: absolute; left: 50%; top: calc(50% - var(--cx-padb, 0px) / 2); transform: translate(-50%, -50%); }
/* note: plain words on the dark stage when there is a free band under the picture, else a plate under the count */
#cam-modal.camx.camx-b .camx-snote { position: absolute; z-index: 1; margin: 0; left: 10px; right: 10px; bottom: 6px; text-align: center; font: 400 12.5px/1.4 var(--cx-font); color: var(--cx-onstage3); pointer-events: none; }
#cam-modal.camx.camx-b .camx-stage[data-note="plate"] .camx-snote { left: 50%; right: auto; bottom: auto; top: calc(var(--cx-edge) + 46px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 140px); padding: 7px 12px; border: 1px solid var(--cx-line); border-radius: 16px; background: var(--cx-glass); color: var(--cx-ink2); box-shadow: var(--cx-shadow); }
#cam-modal.camx.camx-b .camx-prev, #cam-modal.camx.camx-b .camx-next { position: absolute; z-index: 2; top: calc(50% - var(--cx-padb, 0px) / 2 - 22px); }
#cam-modal.camx.camx-b .camx-prev { left: var(--cx-edge); }
#cam-modal.camx.camx-b .camx-next { right: var(--cx-edge); }

/* ---- message card (permission, blocked, no camera ...): the house dialog's inside on a plate in the sheet material ---- */
#cam-modal.camx.camx-b .camx-msg {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--cx-line); border-radius: 22px; background: var(--cx-sheet); color: var(--cx-ink); box-shadow: var(--cx-shadow);
}
#cam-modal.camx.camx-b .camx-msg .camx-eic { width: 52px; height: 52px; margin: 0 0 8px; border-radius: 16px; display: grid; place-items: center; background: var(--cx-press); color: var(--cx-ink2); font-size: 26px; }
#cam-modal.camx.camx-b .camx-msg h3 { margin: 0; font: 700 22px/1.25 var(--cx-font); letter-spacing: -.012em; color: var(--cx-ink); }
#cam-modal.camx.camx-b .camx-msg p { margin: 0; font: 400 15px/1.55 var(--cx-font); color: var(--cx-ink3); }
#cam-modal.camx.camx-b .camx-acts { display: flex; gap: 10px; margin-top: 12px; }
#cam-modal.camx.camx-b .camx-msg .camx-btn { flex: 1 1 0; }

/* ---- dock (touch): a plate in the sheet material; photo stack, shutter, Attach ---- */
#cam-modal.camx.camx-b .camx-stack { position: relative; width: 56px; height: 56px; min-height: 56px !important; margin: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
#cam-modal.camx.camx-b .camx-stack > :is(img, .camx-ph) { position: absolute; inset: 0; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--cx-press); outline: 1px solid var(--cx-line); outline-offset: -1px; display: grid; place-items: center; color: var(--cx-ink3); font-size: 22px; }
#cam-modal.camx.camx-b .camx-stack[data-many="1"]::before { content: ''; position: absolute; left: 6px; right: 6px; top: -5px; height: 20px; border-radius: 12px 12px 0 0; background: var(--cx-line2); }
#cam-modal.camx.camx-b .camx-stack:disabled { cursor: default; }
#cam-modal.camx.camx-b .camx-sn { position: absolute; right: -7px; top: -7px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--cx-sheet); border-radius: 11px; background: var(--cx-ink); color: var(--cx-sheet); font: 600 11px/1 var(--cx-font); font-variant-numeric: tabular-nums; }
#cam-modal.camx.camx-b .camx-attach { flex: none; }
#cam-modal.camx.camx-b .camx-start { flex: none; min-width: 112px; }
/* review strip: the composer's chip numbers; the picture is a button, the badge removes */
#cam-modal.camx.camx-b .camx-chip { list-style: none; }
#cam-modal.camx.camx-b .camx-chip-b { display: block; width: 56px; height: 56px; min-height: 56px !important; margin: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: zoom-in; }
#cam-modal.camx.camx-b .camx-chip-b > img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 14px; background: var(--cx-press); outline: 1px solid var(--cx-line); outline-offset: -1px; }
#cam-modal.camx.camx-b .camx-chip.is-busy .camx-chip-b > img { opacity: .55; }
#cam-modal.camx.camx-b .camx-chip.is-busy::after { pointer-events: none; }
#cam-modal.camx.camx-b .camx-chip[aria-current="true"] .camx-chip-b > img { outline: 2px solid var(--cx-ink); outline-offset: 2px; }
#cam-modal.camx.camx-b .camx-chip.is-new { animation: camxNew .16s var(--cx-ease); }
@keyframes camxNew { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
#cam-modal.camx.camx-b .camx-strip { width: 100%; }

/* ---- Review: the live dock's places on every shell - Remove first, Retake beside it, Back to camera where the shutter was, Attach where it was.
   Remove and Retake are two controls: each its own 44 px target and name, at least 12 px apart, each with its own edge; red only on the trash icon. ---- */
#cam-modal.camx.camx-b .camx-rl { display: flex; align-items: center; gap: 12px; }
#cam-modal.camx.camx-b .camx-rl[hidden] { display: none !important; }
#cam-modal.camx.camx-b .camx-rm, #cam-modal.camx.camx-b .camx-re {
  flex: none; height: 44px; min-height: 44px !important; min-width: 44px; margin: 0; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--cx-line2); border-radius: 22px; background: var(--cx-sheet); color: var(--cx-ink); font: 600 15px/1 var(--cx-font); white-space: nowrap; box-shadow: none; cursor: pointer;
}
#cam-modal.camx.camx-b .camx-rm { width: 44px; padding: 0; color: var(--cx-del); font-size: 22px; }
#cam-modal.camx.camx-b :is(.camx-rm, .camx-re):active { background: var(--cx-press); }
#cam-modal.camx.camx-b .camx-bk { flex: none; width: 72px; height: 72px; min-height: 72px !important; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cx-line2); border-radius: 36px; background: var(--cx-sheet); color: var(--cx-ink); font-size: 28px; cursor: pointer; }
#cam-modal.camx.camx-b .camx-bk:active { background: var(--cx-press); transform: scale(.96); }
/* touch, upright: Remove at the far left, Retake beside it (SPEC 0.15); the left column grows only when Remove + Retake need it, so Attach never moves */
html.tye-ts #cam-modal.camx.camx-b .camx-rl { flex: 1 1 auto; justify-content: flex-start; }
@media (orientation: portrait) {
  html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-dock { grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr); }
  html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-dl { margin-left: -10px; }
}
@media (orientation: portrait) and (max-width: 389px) { html.tye-ts #cam-modal.camx.camx-b .camx-re { padding: 0 10px; font-size: 14px; } }
@media (orientation: portrait) and (max-width: 359px) { html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-dl { margin-left: -6px; } html.tye-ts #cam-modal.camx.camx-b .camx-re { padding: 0 8px; } }

/* ---- caption, part card (Real-time) ---- */
#cam-modal.camx.camx-b .camx-cap { width: min(520px, 100%); padding: 12px 14px; border-radius: 18px; background: var(--cx-sheet); }
#cam-modal.camx.camx-b .camx-cap p { margin: 0; }
#cam-modal.camx.camx-b .camx-c1 { font: 500 15px/1.45 var(--cx-font); color: var(--cx-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#cam-modal.camx.camx-b .camx-c2 { margin-top: 4px !important; font: 400 13px/1.4 var(--cx-font); color: var(--cx-ink3); }
#cam-modal.camx.camx-b .camx-c3 { margin-top: 6px; }
#cam-modal.camx.camx-b .camx-vsw small { display: block; margin-top: 2px; font: 400 12.5px/1.35 var(--cx-font); color: var(--cx-ink3); }
#cam-modal.camx.camx-b .camx-vsw { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px !important; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--cx-line); border-radius: 0; background: transparent; color: var(--cx-ink); font: 500 15px/1.2 var(--cx-font); text-align: left; cursor: pointer; }
#cam-modal.camx.camx-b .camx-capb { height: 44px; min-height: 44px !important; border-radius: 22px; font-size: 15px; }
#cam-modal.camx.camx-b .camx-part { width: min(420px, 100%); padding: 14px 16px; border: 1px solid var(--cx-line); border-radius: 18px; background: var(--cx-sheet); box-shadow: var(--cx-shadow); }
#cam-modal.camx.camx-b .camx-part b { display: block; font: 700 17px/1.3 var(--cx-font); color: var(--cx-ink); }
#cam-modal.camx.camx-b .camx-part p { margin: 2px 0 0; font: 400 13px/1.45 var(--cx-font); color: var(--cx-ink3); }
#cam-modal.camx.camx-b .camx-rts { gap: 8px; }
#cam-modal.camx.camx-b .camx-rtt { font: 600 13px/1 var(--cx-font); }
#cam-modal.camx.camx-b .camx-rtt::after { content: ''; display: inline-block; width: 1px; height: 14px; margin: 0 0 -2px 10px; background: var(--cx-line2); }
#cam-modal.camx.camx-b .camx-rts.in-bar { box-shadow: none; background: transparent; }

#cam-modal.camx.camx-b .camx-imic::before { content: "\eaf0"; content: "\eaf0" / ""; }
#cam-modal.camx.camx-b .camx-imicoff::before { content: "\ed16"; content: "\ed16" / ""; }
#cam-modal.camx.camx-b .camx-sbody > .camx-cap { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
#cam-modal.camx.camx-b .camx-sbody > .camx-cap .camx-c3 { margin-top: 14px; }

/* ---- pop-ups ---- */
#cam-modal.camx.camx-b .camx-menu { z-index: 6; max-height: calc(100% - 24px); }
#cam-modal.camx.camx-b .camx-details { width: min(320px, calc(100vw - 24px)); padding: 6px 6px 10px; }
#cam-modal.camx.camx-b .camx-dh { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 0 0 12px; font: 600 15px/1.2 var(--cx-font); }
#cam-modal.camx.camx-b .camx-row { min-height: 40px; }
#cam-modal.camx.camx-b .camx-row > span:nth-child(2) { flex: none; }
#cam-modal.camx.camx-b .camx-details .camx-note { padding: 8px 12px 0; }
#cam-modal.camx.camx-b .camx-details .camx-row .v { white-space: nowrap; }
#cam-modal.camx.camx-b .camx-details .camx-row .camx-meter { flex: 0 1 64px; }
#cam-modal.camx.camx-b .camx-cmds { width: 380px; max-height: min(560px, calc(100% - 24px)); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
#cam-modal.camx.camx-b .camx-cmds .camx-bar { min-height: 52px; padding: 0 6px 0 18px; }
#cam-modal.camx.camx-b .camx-cl { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px calc(10px + var(--cx-safe-b)); }
#cam-modal.camx.camx-b .camx-cr b { flex: none; font: 500 15px/1.2 var(--cx-font); }
#cam-modal.camx.camx-b .camx-cr small { margin-left: auto; font: 400 13px/1.2 var(--cx-font); color: var(--cx-ink3); text-align: right; }
#cam-modal.camx.camx-b .camx-cr:disabled { color: var(--cx-ink3); cursor: default; background: transparent; }
#cam-modal.camx.camx-b .camx-cr:disabled small { opacity: 1; }
#cam-modal.camx.camx-b .camx-popscrim { position: absolute; inset: 0; z-index: 5; background: var(--cx-scrim); }
#cam-modal.camx.camx-b .camx-csheet { position: absolute; z-index: 6; left: max(0px, calc(50% - 280px)); right: max(0px, calc(50% - 280px)); bottom: 0; height: min(620px, calc(100% - var(--cx-safe-t) - 60px)); display: flex; flex-direction: column; overflow: hidden; background: var(--cx-sheet); border: 1px solid var(--cx-line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); animation: camxUp .26s var(--cx-ease) backwards; }
#cam-modal.camx.camx-b .camx-csheet .camx-t { font-size: 17px; }
#cam-modal.camx.camx-b :is(.camx-csheet, .camx-menu):focus { outline: none; }

/* =========================== touch shell =========================== */
html.tye-ts #cam-modal.camx.camx-b { background: var(--cx-stage); }
html.tye-ts #cam-modal.camx.camx-b .camx-surface { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--cx-stage); overflow: hidden; overflow: clip; animation: camxUp .34s var(--cx-ease) backwards; }
html.tye-ts #cam-modal.camx.camx-b .camx-side { display: none; }
html.tye-ts #cam-modal.camx.camx-b .camx-stage { flex: 1 1 auto; min-height: 160px; margin: var(--cx-safe-t) var(--cx-safe-r) 0 var(--cx-safe-l); --cx-padb: 30px; }
html.tye-ts #cam-modal.camx.camx-b .camx-dock {
  flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 8px; width: min(560px, calc(100% - 20px)); min-height: 92px; margin: 0 auto calc(10px + var(--cx-safe-b));
  padding: 0 14px 0 18px; border: 1px solid var(--cx-line); border-radius: 26px; background: var(--cx-sheet); box-shadow: var(--cx-shadow);
}
html.tye-ts #cam-modal.camx.camx-b .camx-dl { display: flex; align-items: center; gap: 4px; justify-content: flex-start; }
html.tye-ts #cam-modal.camx.camx-b .camx-dc { display: flex; justify-content: center; }
html.tye-ts #cam-modal.camx.camx-b .camx-dr { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
html.tye-ts #cam-modal.camx.camx-b .camx-attach { min-width: 104px; padding: 0 14px; }
html.tye-ts #cam-modal.camx.camx-b[data-mode="rt"] .camx-dock { padding: 0 14px; }
html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-dock { grid-template-rows: auto 90px; }
/* the strip spans the dock but never sizes its columns (with all its chips as its own width it widened the first column: Back to camera moved
   under Attach from 4 photos): no intrinsic width of its own, the dock's width plus the 8 px bleed on each side */
html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-strip { grid-column: 1 / -1; margin: 0 -8px; width: 0; min-width: calc(100% + 16px); max-width: calc(100% + 16px); contain: inline-size; }
html.tye-ts #cam-modal.camx.camx-b .camx-strip { padding: 14px 24px 12px 8px; margin: 0; scroll-padding: 24px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }   /* the 24 px fade is the scroll cue */
html.tye-ts #cam-modal.camx.camx-b .camx-msg .camx-btn { padding: 0 12px; font-size: 15px; }
/* a narrow phone keeps the dock inside the screen */
/* (320-359: 2 px less side padding and a tighter Attach, so a two-digit "Attach 20" never reaches Back to camera in Review; Remove keeps its 4 px
   from the dock edge) */
@media (max-width: 359px) { html.tye-ts #cam-modal.camx.camx-b .camx-dock { padding: 0 6px 0 10px; column-gap: 4px; } html.tye-ts #cam-modal.camx.camx-b .camx-attach { min-width: 88px; padding: 0 6px; } }

/* touch, on its side: the dock is a vertical plate on the right; top to bottom = left to right upright (Remove, Retake, Back to camera, Attach) */
@media (orientation: landscape) {
  html.tye-ts #cam-modal.camx.camx-b .camx-surface { flex-direction: row; }
  html.tye-ts #cam-modal.camx.camx-b .camx-low { bottom: calc(max(var(--pb, 0px), var(--cx-safe-b)) + 12px); }      /* (the picture may reach the bottom edge: the plates stay above the home bar) */
  html.tye-ts #cam-modal.camx.camx-b .camx-snote { bottom: calc(var(--cx-safe-b) + 6px); }
  html.tye-ts #cam-modal.camx.camx-b .camx-stage { --cx-padb: 0px; margin: var(--cx-safe-t) 0 0 var(--cx-safe-l); }
  html.tye-ts #cam-modal.camx.camx-b .camx-dock {
    width: 104px; min-height: 0; margin: calc(10px + var(--cx-safe-t)) calc(10px + var(--cx-safe-r)) calc(10px + var(--cx-safe-b)) 10px; padding: 14px 0; grid-template-columns: none; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); justify-items: center; row-gap: 8px;
  }
  html.tye-ts #cam-modal.camx.camx-b :is(.camx-dl, .camx-dr) { flex-direction: column; gap: 4px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-dl { align-self: start; }
  html.tye-ts #cam-modal.camx.camx-b .camx-dr { align-self: end; }
  html.tye-ts #cam-modal.camx.camx-b .camx-attach, html.tye-ts #cam-modal.camx.camx-b .camx-start { min-width: 0; width: 84px; padding: 0; font-size: 14px; }
  html.tye-ts #cam-modal.camx.camx-b[data-mode="rt"] .camx-dock { padding: 14px 0; }
  html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-dock { grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); }
  html.tye-ts #cam-modal.camx.camx-b[data-review="1"] .camx-strip { display: none; }
  html.tye-ts #cam-modal.camx.camx-b .camx-rl { flex: none; flex-direction: column; justify-content: flex-start; margin: 0; gap: 12px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-re { padding: 0 10px; font-size: 14px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-csheet .camx-grab { display: none; }
  html.tye-ts #cam-modal.camx.camx-b .camx-csheet { left: auto; right: calc(10px + var(--cx-safe-r)); width: 400px; height: auto; top: calc(10px + var(--cx-safe-t)); bottom: calc(10px + var(--cx-safe-b)); border-bottom: 1px solid var(--cx-line); border-radius: 22px; }
}
@media (orientation: landscape) and (min-height: 501px) {
  html.tye-ts #cam-modal.camx.camx-b .camx-surface { align-items: center; }
  html.tye-ts #cam-modal.camx.camx-b .camx-stage { align-self: stretch; }
  html.tye-ts #cam-modal.camx.camx-b .camx-dock { height: min(560px, calc(100% - 20px)); }
}
@media (orientation: landscape) and (max-height: 500px) {
  html.tye-ts #cam-modal.camx.camx-b .camx-details .camx-row { min-height: 34px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-dock { width: 92px; padding: 10px 0; }
  html.tye-ts #cam-modal.camx.camx-b[data-mode="rt"] .camx-dock { padding: 8px 0; }
  html.tye-ts #cam-modal.camx.camx-b :is(.camx-dl, .camx-dr) { gap: 2px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-attach, html.tye-ts #cam-modal.camx.camx-b .camx-start { width: 78px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-tr { flex-direction: column-reverse; }      /* x, switch, light in one column */
  html.tye-ts #cam-modal.camx.camx-b .camx-msg { padding: 14px 18px 16px; gap: 4px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-msg .camx-eic { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; margin: 0 0 4px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-msg h3 { font-size: 18px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-msg p { font-size: 14px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-cap { padding: 10px 12px; }
  html.tye-ts #cam-modal.camx.camx-b .camx-low { padding-right: 64px; padding-left: 64px; }
}

/* =========================== desktop =========================== */
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-surface {
  margin: auto; width: min(1120px, calc(100vw - 48px)); height: min(558px, calc(100dvh - 48px)); display: flex; overflow: hidden; overflow: clip; border: 1px solid var(--cx-line); border-radius: 22px; background: var(--cx-sheet);
  box-shadow: 0 24px 60px rgba(17, 20, 28, .18), 0 6px 16px rgba(17, 20, 28, .08); animation: camxIn .15s var(--cx-ease);
}
html[data-theme="dark"]:not(.tye-ts) #cam-modal.camx.camx-b .camx-surface { box-shadow: 0 24px 60px rgba(0, 0, 0, .62), 0 6px 16px rgba(0, 0, 0, .45); }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-stage { flex: 1 1 auto; min-width: 0; --cx-padb: 96px; --cx-edge: 16px; }
html:not(.tye-ts) #cam-modal.camx.camx-b[data-mode="rt"] .camx-stage { --cx-padb: 76px; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-side { flex: none; width: 300px; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--cx-line); background: var(--cx-sheet); }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-sbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; scrollbar-width: thin; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-sbody .camx-note { padding: 0; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-chip-x::before { content: none; }
@media (pointer: coarse) { html:not(.tye-ts) #cam-modal.camx.camx-b .camx-grid { grid-template-columns: repeat(3, 56px); gap: 22px; padding-top: 6px; } html:not(.tye-ts) #cam-modal.camx.camx-b .camx-chip-x::before { content: ""; inset: -17px -17px -9px -9px; clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 32px); } }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-grid { display: grid; grid-template-columns: repeat(4, 56px); gap: 14px; padding: 0; margin: 0; overflow: visible; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-foot { padding: 12px 16px 16px; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-foot .camx-btn { flex: 1 1 0; height: 44px; min-height: 44px !important; border-radius: 22px; }
/* floating row over the stage, in the band kept free under the picture */
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock { position: absolute; z-index: 2; left: 0; right: 300px; bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px; min-height: 64px; pointer-events: none; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock > * { pointer-events: auto; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock > :is(.camx-dl, .camx-dr) { pointer-events: none; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock > :is(.camx-dl, .camx-dr) > * { pointer-events: auto; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dl { display: flex; gap: 8px; justify-content: flex-end; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dr { display: flex; gap: 8px; justify-content: flex-start; }
html:not(.tye-ts) #cam-modal.camx.camx-b[data-mode="rt"] .camx-dock { min-height: 44px; column-gap: 8px; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-sh { width: 64px; height: 64px; min-height: 64px !important; border-color: #fff; box-shadow: none; background: transparent; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-sh::before { background: #fff; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-sh:disabled { opacity: .5; }
/* desktop Review: glass plates on the dark stage, Remove and Retake left of Back to camera, which stands where the shutter was (64) */
html:not(.tye-ts) #cam-modal.camx.camx-b :is(.camx-rm, .camx-re, .camx-bk) { background: var(--cx-glass); border-color: var(--cx-line); box-shadow: var(--cx-shadow); }
html:not(.tye-ts) #cam-modal.camx.camx-b :is(.camx-rm, .camx-re, .camx-bk):active { background: var(--cx-glass); transform: scale(.96); }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-re { padding: 0 16px; font-size: 14px; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-bk { width: 64px; height: 64px; min-height: 64px !important; border-radius: 32px; font-size: 26px; }
html:not(.tye-ts) #cam-modal.camx.camx-b button.camx-pill, html:not(.tye-ts) #cam-modal.camx.camx-b .camx-pill2 { min-height: 40px !important; border-radius: 20px; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-pbtn { min-height: 40px !important; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-tc { top: var(--cx-edge); }
html:not(.tye-ts) #cam-modal.camx.camx-b[data-mode="rt"] .camx-foot { display: none; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock .camx-start { height: 44px; min-height: 44px !important; border-radius: 22px; background: var(--cx-sheet); color: var(--cx-ink); border-color: var(--cx-line); }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-notes { margin: 0; padding: 0; list-style: none; }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-notes li { padding: 10px 0; border-bottom: 1px solid var(--cx-line); font: 400 14px/1.45 var(--cx-font); color: var(--cx-ink2); }
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-notes li:first-child { padding-top: 0; }
@media (pointer: coarse) {
  html:not(.tye-ts) #cam-modal.camx.camx-b button.camx-pill, html:not(.tye-ts) #cam-modal.camx.camx-b .camx-pill2, html:not(.tye-ts) #cam-modal.camx.camx-b .camx-pbtn { min-height: 44px !important; }
}
/* pressed on the dark stage: an ink plate would vanish in light, so it gets a sheet ring */
html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock .camx-rb.on-video[aria-pressed="true"]:not(:focus-visible) { box-shadow: 0 0 0 2px var(--cx-sheet); }
/* focus: over the stage the red ring stands on a sheet-coloured band */
#cam-modal.camx.camx-b .camx-stage button:focus-visible:not(.camx-btn):not(.camx-pbtn):not(.camx-vsw), html:not(.tye-ts) #cam-modal.camx.camx-b .camx-dock > :is(.camx-dl, .camx-dc, .camx-dr) button:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 6px var(--cx-sheet); }
#cam-modal.camx.camx-b .camx-chip-b:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  /* (the same selectors as the animated rules above, so this wins: the sheet and the card appear without moving) */
  html.tye-ts #cam-modal.camx.camx-b .camx-surface, html:not(.tye-ts) #cam-modal.camx.camx-b .camx-surface,
  #cam-modal.camx.camx-b .camx-csheet, #cam-modal.camx.camx-b .camx-chip.is-new, #cam-modal.camx.camx-b .camx-stage > video.is-dip, #cam-modal.camx.camx-b .camx-menu { animation: none; }
}
@media (forced-colors: active) { #cam-modal.camx.camx-b :is(.camx-dock, .camx-msg, .camx-cap, .camx-part, .camx-pill2, .camx-stack, .camx-rm, .camx-re, .camx-bk) { border: 1px solid ButtonText; } }

/* The composer's own remove badge is left exactly as shipped (30x33 touch, 22x22 desktop), for a file and a camera photo alike: a 44x44 hit box
   covers the centre of the 56 px chip, and a tap on the centre would then delete the photo. */
