#camera-controls[hidden], #camera-mode[hidden], #camera-tool-btn[hidden], #camera-mode [hidden] { display:none!important; }
#camera-mode { position:fixed; inset:0; z-index:1000; pointer-events:none; color:#e7ebed; font-family:inherit; }
.camera-tile { position:fixed; width:176px; height:232px; border:1px solid #ffffff35; border-radius:18px; overflow:hidden; background:#18211e; box-shadow:0 8px 28px #0007; pointer-events:auto; touch-action:none; }
#camera-mode .camera-video, #camera-mode .camera-still { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#18211e; }
.camera-header { position:absolute; inset:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:7px; background:linear-gradient(#0008,transparent); }
:is(#camera-mode, #camera-controls) button { border:1px solid #ffffff24; border-radius:10px; background:#1d2024; color:inherit; min-height:36px; padding:6px 10px; font:inherit; font-size:13px; cursor:pointer; }
:is(#camera-mode, #camera-controls) button:disabled { opacity:.45; cursor:not-allowed; }
:is(#camera-mode, #camera-controls) button:focus-visible, :is(#camera-mode, #camera-controls) input:focus-visible { outline:2px solid #79d6b0; outline-offset:2px; }
#camera-mode .camera-drag { border:0; background:transparent; font-size:12px; cursor:grab; min-height:28px; padding:2px 4px; text-shadow:0 1px 3px #000; }
#camera-mode .camera-close { width:28px; min-height:28px; border-radius:50%; padding:0; background:#17191cb8; font-size:20px; }
.camera-bottom { position:fixed; width:min(420px,calc(100vw - 16px)); max-height:min(430px,calc(100dvh - 24px)); overflow:auto; display:grid; gap:8px; box-sizing:border-box; padding:12px; border:1px solid #ffffff24; border-radius:16px; background:#24272cf5; box-shadow:0 12px 36px #0006; pointer-events:auto; }
.camera-controls-heading { display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:600; }
#camera-controls #camera-controls-hide { min-height:26px; width:26px; padding:0; border-radius:50%; font-size:18px; }
.camera-actions { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.camera-actions button { flex:1 1 auto; }
.camera-talk-controls { flex-wrap:nowrap; }
.camera-voice-choices { display:flex; gap:3px; }
#camera-controls .camera-voice-choices button { flex:none; width:auto; min-height:30px; padding:0 8px; border-radius:8px; font-size:11px; white-space:nowrap; }
#camera-controls .camera-talk-controls > button { flex:1; min-width:0; font-weight:600; }
:is(#camera-mode, #camera-controls) button[aria-pressed="true"] { background:#79d6b0; color:#10231b; }
.camera-question-row { display:flex; gap:5px; }
#camera-question { min-width:0; flex:1; height:36px; box-sizing:border-box; border:1px solid #ffffff24; border-radius:10px; padding:6px 9px; background:#1d2024; color:inherit; font:inherit; font-size:16px; }
#camera-question::placeholder { color:#a3aab2; font-size:13px; }
#camera-controls #camera-ask { background:#79d6b0; color:#10231b; }
#camera-answer { display:none!important; }
.camera-status, .camera-privacy { margin:0; font-size:11px; line-height:1.4; color:#a3aab2; }
.camera-live-preview { display:flex; gap:6px; align-items:center; min-width:0; }
.camera-live-preview:has([hidden]):not(:has(:not([hidden]))) { display:none; }
#camera-controls #camera-speech-line[hidden] { display:none!important; }
#camera-controls.camera-transcript-line .camera-talk-controls { display:flex; }
#camera-controls.camera-transcript-line #camera-speech-line:not([hidden]) {
  display:flex; width:100%; min-width:0; box-sizing:border-box;
  padding:0 9px; min-height:34px; text-align:left;
  background:#1d2024; border:1px solid #ffffff24;
  cursor:pointer; overflow:hidden;
}
#camera-controls.camera-transcript-line #camera-level { display:none; }
#camera-live-text { min-width:0; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
#camera-controls.camera-transcript-line #camera-speech-line::after { content:'⌄'; margin-left:6px; flex-shrink:0; }
#camera-level { width:40px; flex-shrink:0; }
@media(max-width:600px) { .camera-tile { width:120px; height:160px; border-radius:14px; } .camera-bottom { padding:10px; gap:7px; } }

.camera-more summary { color:#a3aab2; font-size:12px; cursor:pointer; }
.camera-more[open] { display:grid; gap:8px; }
.camera-more .camera-actions, .camera-more .camera-question-row { margin-top:8px; }

#camera-controls #camera-end { margin-left:auto; margin-right:6px; min-height:26px; padding:3px 10px; border:0; border-radius:16px; color:#fff; background:#cc493e; font-size:12px; }

/* Same normal-flow slot as Voice and Vault, directly after the composer. */
#workspace .composer-dock > #voice-composer-host:has(> #camera-controls:not([hidden])) { display:block!important; margin-top:.2rem!important; }
#camera-controls.camera-bottom { position:relative; inset:auto; width:100%; max-height:240px; padding:8px 10px; box-shadow:none; border-radius:10px; }
