/* Chat camera — full screen, phone-camera style (Claude Code 2026-11-14; owner: "redesign 10/10, hide unnecessary
   things like RAM-only, keep only the keys, luxury design"). Layer: ui/src/components/messenger-camera.js.
   Black stage · glass ✕ / flip · PHOTO | VIDEO · gold-ringed shutter · after a shot Retake · gold Send. */
#lxCameraModal.lx-cam-lux { padding: 0 !important; background: #000 !important; backdrop-filter: none !important;
  z-index: 9800 !important; display: block; }
#lxCameraModal.lx-cam-lux[hidden] { display: none !important; }
#lxCameraModal.lx-cam-lux .lx-modal-card { position: absolute; inset: 0; max-width: none !important; max-height: none !important;
  width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 0 !important; background: #000 !important; box-shadow: none !important; overflow: hidden !important; }
/* the old window's title, explanation, badge and button row: hidden (their buttons still work underneath) */
#lxCameraModal.lx-cam-lux .lx-modal-head,
#lxCameraModal.lx-cam-lux .lx-modal-card > p,
#lxCameraModal.lx-cam-lux .lx-cam-badge,
#lxCameraModal.lx-cam-lux .lx-cam-controls { display: none !important; }

#lxCameraModal.lx-cam-lux .lx-cam-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important;
  border: 0 !important; border-radius: 0 !important; background: #000 !important; }
#lxCameraModal.lx-cam-lux #lxCamLiveVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the shot you took: shown whole, between the top keys and the Retake / Send row */
#lxCameraModal.lx-cam-lux #lxCamPreviewImg,
#lxCameraModal.lx-cam-lux #lxCamPreviewVideo { position: absolute; left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 72px); bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
  width: 100%; height: auto; max-height: none; object-fit: contain; background: #000; }
#lxCameraModal.lx-cam-lux [hidden] { display: none !important; }

.lxc-ui { position: absolute; inset: 0; pointer-events: none; color: #fff;
  font-family: inherit; -webkit-tap-highlight-color: transparent; }
.lxc-ui button { pointer-events: auto; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lxc-ui svg { width: 22px; height: 22px; display: block; }

/* top: ✕ · (recording time) · flip */
.lxc-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 26px;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.lxc-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  color: #fff; background: rgba(12, 14, 18, .38); border: 1px solid rgba(235, 208, 132, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .15s ease, background .15s ease; }
.lxc-round:hover { background: rgba(12, 14, 18, .55); }
.lxc-round:active { transform: scale(.92); }
.lxc-round:focus-visible, .lxc-shutter:focus-visible, .lxc-pill:focus-visible, .lxc-modes button:focus-visible {
  outline: 2px solid #EBD084; outline-offset: 3px; }
.lxc-rec { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(12, 14, 18, .5); font-size: 15px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lxc-rec i { width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; animation: lxc-blink 1s steps(2, start) infinite; }

/* bottom: PHOTO | VIDEO · shutter (gallery on the left) — or Retake · Send */
.lxc-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 34px 20px calc(env(safe-area-inset-bottom, 0px) + 22px);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.lxc-modes { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(12, 14, 18, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: auto; }
.lxc-modes button { min-width: 76px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; transition: background .2s, color .2s; }
.lxc-modes button[aria-selected="true"] { color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37); }
.lxc-ui.is-recording .lxc-modes { opacity: 0; pointer-events: none; }

.lxc-row { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.lxc-side { justify-self: center; }
.lxc-spacer { width: 44px; height: 44px; }
.lxc-ui.is-recording [data-c="gallery"] { opacity: 0; pointer-events: none; }

.lxc-shutter { position: relative; width: 78px; height: 78px; border-radius: 50%; padding: 0; border: 0;
  background: conic-gradient(from 200deg, #F6E3A6, #D4AF37, #9C7A22, #D4AF37, #F6E3A6);
  box-shadow: 0 6px 22px rgba(0,0,0,.45); display: grid; place-items: center; transition: transform .12s ease; }
.lxc-shutter::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(0,0,0,.55); }
.lxc-shutter span { position: relative; width: 62px; height: 62px; border-radius: 50%; background: #fff;
  transition: width .2s ease, height .2s ease, border-radius .2s ease, background .2s ease; }
.lxc-shutter:active { transform: scale(.94); }
.lxc-shutter.is-video span { background: #FF3B30; }
.lxc-shutter.is-rec span { width: 28px; height: 28px; border-radius: 7px; background: #FF3B30; }
.lxc-shutter.is-rec { animation: lxc-pulse 1.6s ease-in-out infinite; }
.lxc-shutter.is-flash span { background: #F6E3A6; }

.lxc-review { display: flex; gap: 12px; width: 100%; max-width: 420px; justify-content: center; }
.lxc-pill { flex: 1 1 0; max-width: 190px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: rgba(12, 14, 18, .45); border: 1px solid rgba(235, 208, 132, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .12s ease; }
.lxc-pill:active { transform: scale(.96); }
.lxc-pill svg { width: 20px; height: 20px; }
.lxc-pill.lxc-send { color: #1A1406; border: 0; background: linear-gradient(135deg, #F6E3A6, #D4AF37 55%, #B8912A);
  box-shadow: 0 6px 20px rgba(212, 175, 55, .35); }

/* a camera window on a computer: same layout, keys stay within reach */
@media (min-width: 900px) { .lxc-top { padding-left: 28px; padding-right: 28px; } }
@keyframes lxc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,48,.45), 0 6px 22px rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 0 10px rgba(255,59,48,0), 0 6px 22px rgba(0,0,0,.45); } }
@keyframes lxc-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .lxc-shutter.is-rec, .lxc-rec i { animation: none; } }
.lxc-hint { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); margin: 0; text-align: center;
  color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.45; letter-spacing: .01em; }
/* the app box sits under the bottom bar (z 1 vs 20): lift it while the camera is open — still under message toasts (30) */
body.lx-cam-open .app { z-index: 25 !important; }
/* a message while the camera is open shows under the top keys, never over PHOTO | VIDEO or the shutter */
body.lx-cam-open #toast { bottom: auto !important; top: calc(env(safe-area-inset-top, 0px) + 72px) !important; }
/* a picture keeps its own shape (height:auto ignores "bottom"): give it the full space between the keys so it sits centred */
#lxCameraModal.lx-cam-lux #lxCamPreviewImg,
#lxCameraModal.lx-cam-lux #lxCamPreviewVideo { height: calc(100% - 184px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }

/* ---- Crop (2026-11-14 owner: "a button in case the user doesn't like some areas — crop"; "before a photo is sent the
   user can crop"). Camera: after a photo, Crop at the top right. Photo from the phone: .lxc-sheet (look · Crop · Send). */
.lxc-pill.lxc-mini { flex: 0 0 auto; min-height: 44px; padding: 0 16px; font-size: 15px; gap: 7px; }
.lxc-pill.lxc-mini svg { width: 18px; height: 18px; }
.lxc-pill:disabled { opacity: .4; cursor: default; }
.lxc-ui.is-cropping > .lxc-top, .lxc-ui.is-cropping > .lxc-bottom { visibility: hidden; }

.lxc-crop { position: absolute; inset: 0; z-index: 5; background: #000; color: #fff; touch-action: none; }
.lxc-crop[hidden] { display: none !important; }
.lxc-crop button { pointer-events: auto; font: inherit; cursor: pointer; }
.lxc-crop svg { width: 22px; height: 22px; display: block; }
.lxc-ctop { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 0; }
.lxc-carea { position: absolute; left: 16px; right: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 76px); bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); }
.lxc-cframe { position: absolute; overflow: hidden; user-select: none; -webkit-user-select: none; }
.lxc-cframe img { display: block; width: 100%; height: 100%; pointer-events: none; }
.lxc-cbox { position: absolute; box-sizing: border-box; cursor: move; touch-action: none;
  border: 1px solid rgba(255,255,255,.92); box-shadow: 0 0 0 9999px rgba(0,0,0,.58); }
/* rule-of-thirds lines, a little stronger while dragging */
.lxc-cbox::before, .lxc-cbox::after { content: ""; position: absolute; pointer-events: none; border: 0 solid rgba(255,255,255,.28); }
.lxc-cbox::before { left: 33.333%; right: 33.333%; top: 0; bottom: 0; border-left-width: 1px; border-right-width: 1px; }
.lxc-cbox::after { top: 33.333%; bottom: 33.333%; left: 0; right: 0; border-top-width: 1px; border-bottom-width: 1px; }
.lxc-cbox.is-drag::before, .lxc-cbox.is-drag::after { border-color: rgba(255,255,255,.55); }
/* gold corners: 44 px to touch, an L to see */
.lxc-h { position: absolute; width: 44px; height: 44px; touch-action: none; }
.lxc-h::before { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid #E9C46A; }
.lxc-h[data-h="nw"] { left: -2px; top: -2px; cursor: nwse-resize; }
.lxc-h[data-h="ne"] { right: -2px; top: -2px; cursor: nesw-resize; }
.lxc-h[data-h="sw"] { left: -2px; bottom: -2px; cursor: nesw-resize; }
.lxc-h[data-h="se"] { right: -2px; bottom: -2px; cursor: nwse-resize; }
.lxc-h[data-h="nw"]::before { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; }
.lxc-h[data-h="ne"]::before { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; }
.lxc-h[data-h="sw"]::before { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; }
.lxc-h[data-h="se"]::before { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; }
.lxc-cbottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 22px); }
.lxc-ratios { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lxc-ratios button { min-width: 52px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  color: rgba(255,255,255,.75); font-size: 13.5px; font-weight: 700; letter-spacing: .04em; }
.lxc-ratios button[aria-checked="true"] { color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37); }

/* a photo from the phone, before it is sent */
.lxc-sheet { position: fixed; inset: 0; z-index: 9900; background: #000; pointer-events: auto; }
.lxc-sheet-img { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 72px); width: 100%;
  height: calc(100% - 184px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); object-fit: contain; }
.lxc-sheet .lxc-top { background: none; }
.lxc-sheet .lxc-bottom { background: none; }
.lxc-sheet .lxc-pill.lxc-send { max-width: 260px; }

/* ---- Aa Text on a photo (2026-11-14 owner: "after a photo add one more button — add text"). ui/src/components/messenger-text.js */
.lxc-topright { display: inline-flex; gap: 8px; margin-left: auto; }
.lxc-topright[hidden] { display: none !important; }
.lxc-textkey b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-family: Georgia, "Times New Roman", serif; }
.lxc-text .lxc-ctop { gap: 10px; max-width: 720px; margin: 0 auto; }   /* computer: the typing box doesn't run edge to edge */
.lxc-tinput { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 16px;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(235,208,132,.38); outline: none; }
.lxc-tinput::placeholder { color: rgba(255,255,255,.55); }
.lxc-tinput:focus { border-color: #E9C46A; background: rgba(255,255,255,.14); }
.lxc-tword { position: absolute; transform: translate(-50%, -50%); width: max-content; text-align: center; line-height: 1.22;
  font-weight: 800; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; box-sizing: border-box;
  outline: 1px dashed rgba(255,255,255,.55); outline-offset: 6px; }
.lxc-tword[hidden] { display: none !important; }
.lxc-tword:active { cursor: grabbing; }
.lxc-text .lxc-cbottom { gap: 10px; }
.lxc-tools { display: flex; align-items: center; gap: 14px; }
.lxc-swatches { display: flex; gap: 8px; }
.lxc-swatches button { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--sw);
  border: 2px solid rgba(255,255,255,.5); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.lxc-swatches button[aria-checked="true"] { border-color: #E9C46A; box-shadow: 0 0 0 2px #000, 0 0 0 4px #E9C46A; }
.lxc-boxkey b { font-size: 17px; font-weight: 800; }
.lxc-boxkey[aria-pressed="true"] { color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37); border-color: transparent; }
.lxc-size { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); color: rgba(255,255,255,.75); font-weight: 800; }
.lxc-size span { font-size: 12px; } .lxc-size .big { font-size: 20px; }
.lxc-size input { flex: 1; accent-color: #D4AF37; height: 28px; }
.lxc-thelp { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.lxc-text .lxc-carea { bottom: calc(env(safe-area-inset-bottom, 0px) + 140px); }
