.camera-page{max-width:1400px;margin:auto;padding:26px clamp(12px,3vw,38px) 90px;color:#e7f0fd}
.camera-heading{display:flex;flex-wrap:wrap;gap:20px;align-items:end;justify-content:space-between;margin-bottom:20px}
.camera-heading h1{font-size:clamp(28px,5vw,46px);margin:6px 0}
.camera-heading p{color:#a5b9d6;line-height:1.7}
.camera-heading nav{display:flex;gap:8px;flex-wrap:wrap}
.camera-heading a,.camera-result a{color:#afefff;text-decoration:none;padding:10px 12px;border:1px solid #48698b;border-radius:8px;min-height:44px}
.camera-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,340px);gap:18px;align-items:start}
.camera-stage,.camera-inspector{background:#111116;border:1px solid #3c4967;border-radius:16px;padding:14px}
.camera-preview{position:relative;display:grid;place-items:center;max-width:580px;margin:auto;background:#020713;min-height:200px;border-radius:14px;overflow:hidden;aspect-ratio:9/12}
.camera-preview canvas{max-width:100%;max-height:68svh;width:100%;height:100%;object-fit:contain;display:block}
.camera-preview-hint{pointer-events:none;position:absolute;top:12px;left:12px;right:12px;text-align:center;font-size:11px;color:#afbed7;text-shadow:0 1px 5px #000}
.camera-stage:has(#cameraStart:active) .camera-preview-hint{opacity:.3}
#cameraStatus{min-height:24px;margin:10px 0;color:#a9d8f3;font-size:12px}
.camera-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
.camera-actions button{min-height:46px;flex:1;min-width:90px}
.camera-shutter{background:#70538d;font-weight:700}
.camera-result,.camera-chat{border-top:1px solid #34415c;margin-top:16px;padding-top:15px}
.camera-result img,.camera-result video{display:block;max-width:100%;max-height:250px;margin:10px 0;border-radius:10px}
.camera-result a{display:inline-flex;margin-top:10px}
.camera-inspector{display:grid;gap:15px}
.camera-page h2{font-size:14px;letter-spacing:0;margin:0 0 12px}
.camera-quick{display:grid;gap:12px}
.camera-quick label{display:grid;gap:6px;color:#c2d0e5}
.camera-quick button{min-height:44px}
.camera-drawer{padding:12px 0 0;border-top:1px solid #435271}
.camera-drawer summary{min-height:32px;color:#d9eafd;font-size:12px;letter-spacing:0}
.camera-drawer p,.camera-chat p{font-size:11px;line-height:1.7;color:#a5b6cf;margin-bottom:12px}
.camera-audio-options{display:grid;gap:10px}
.camera-audio-options fieldset{display:grid;gap:10px;padding:12px;border:1px solid #3f4e69;border-radius:10px}
.camera-audio-options legend{font-size:12px;color:#b3e4fb}
.camera-audio-options label{display:grid;gap:6px}
.camera-file input{padding:8px}
.camera-chat textarea{width:100%;min-height:65px;resize:vertical;background:#090f1c;border:1px solid #556782;color:#ebf5ff;border-radius:6px;padding:10px}
.camera-chat button{margin-top:12px;min-height:44px}
@media(max-width:770px){.camera-layout{grid-template-columns:1fr}.camera-heading{gap:10px}.camera-heading nav{width:100%;justify-content:space-between}.camera-preview{max-width:100%;max-height:65svh;aspect-ratio:9/14}.camera-preview canvas{max-height:65svh}.camera-inspector{gap:0}.camera-drawer{margin-top:12px}.camera-actions button{min-width:60px;padding:10px 7px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.camera-page *{transition:none!important;animation:none!important}}
.camera-page.live .camera-preview-hint{display:none}

.camera-source{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
/* Camera continuation: one performance surface with native, collapsible tool drawers. */
.camera-project-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;color:#d5c08e;font-size:12px}
.camera-mini-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.camera-mini-actions button{flex:1;min-width:95px;min-height:44px}
.camera-source-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.camera-source-actions>*{flex:1;min-width:130px;min-height:44px}.camera-video-controls {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  border-block-end: 1px solid #303645;
  background: #10151f;
}
.camera-video-controls[hidden] { display: none; }
.camera-video-controls button { min-height: 44px; white-space: nowrap; }
.camera-video-controls label, .camera-video-controls input { min-width: 0; width: 100%; }
.camera-video-controls output { color: #bac7d7; font: .72rem ui-monospace,monospace; white-space: nowrap; }
.camera-video-controls input { accent-color: #b1a0ed; }
#cameraClipSound[aria-pressed=true] { color: #d0f5ff; border-color: #5a8ea4; background: #19323c; }
.camera-immersive .camera-stage > .camera-video-controls:not([hidden]) {
  position: absolute;
  z-index: 7;
  top: 62px;
  left: max(12px,calc(50% - 275px));
  right: max(12px,calc(50% - 275px));
  display: grid;
  border: 1px solid #39465a;
  border-radius: 8px;
  background: #0a101beb;
}
.camera-immersive .camera-stage > .camera-result[open]:not([hidden]) {
  position: absolute;
  z-index: 9;
  inset: 11svh max(18px,calc(50% - 320px)) auto;
  display: block;
  max-height: 74svh;
  overflow: auto;
  padding: 16px;
  border: 1px solid #59617a;
  border-radius: 12px;
  background: #131724;
  box-shadow: 0 0 0 100vmax #0009;
}
.camera-signal{display:block;margin-top:10px;color:#a8aec4;font-size:11px;font-variant-numeric:tabular-nums}
.camera-inspector{display:block;padding:0;border-color:#635575;background:#111116}
.camera-tool-handle{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 15px;min-height:48px;cursor:pointer;color:#e4c884;font-size:14px;font-weight:700}
.camera-tool-handle::-webkit-details-marker{display:none}.camera-tool-handle::before{content:'＋';color:#b996ed}.camera-inspector[open]>.camera-tool-handle::before{content:'−'}.camera-tool-handle span{font-size:10px;font-weight:400;color:#a8a1b4}
.camera-tool-content{padding:0 15px 16px}.camera-control-grid{display:grid;gap:12px;padding-top:14px}.camera-control-grid label{display:grid;gap:7px;color:#d3cbdc;font-size:12px}
.camera-control-grid input:not([type=range]):not([type=checkbox]){width:100%;min-height:44px;background:#0c0b14;color:#eee6fb;border:1px solid #615270;border-radius:7px;padding:9px;font:inherit}
.camera-control-grid select,.camera-quick select{min-height:44px}.camera-control-grid button,#cameraAddCapture{min-height:44px}.camera-control-grid .camera-check{display:flex;gap:9px;align-items:center}
.camera-note{font-size:11px;line-height:1.65;color:#afa7bc;margin:4px 0}.camera-drawer summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;color:#d1b2f2}.camera-check input{accent-color:#bd8cf5;min-width:20px;min-height:20px}.camera-page input[type=range]{accent-color:#b68ce2;min-height:28px}.camera-page button:focus-visible,.camera-page summary:focus-visible,.camera-page input:focus-visible,.camera-page select:focus-visible{outline:2px solid #edcf8c;outline-offset:3px}
.camera-result button{margin:10px 0 0 8px}.camera-shutter{background:#70538d;border-color:#bca1dd}
.camera-face-library{margin-top:18px;padding-top:16px;border-top:1px solid #5b496b;min-width:0}
.camera-face-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.camera-face-heading h2{margin:0 0 5px;color:#efd29a}.camera-face-heading output{font-size:11px;color:#b9a7c9}.camera-face-heading select{min-height:44px;max-width:110px}
.camera-face-gallery{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;padding:3px 3px 12px;overscroll-behavior-x:contain;scrollbar-color:#906bb0 #14101e}
.camera-face-card{flex:0 0 98px;display:flex;flex-direction:column;align-items:center;gap:7px;scroll-snap-align:start;padding:7px 5px 10px;background:#17121f;border:1px solid #5c4b6b;border-radius:13px;font-size:11px;color:#e9ddf1;min-height:130px}
.camera-face-preview{display:block;width:82px;height:82px;border-radius:12px;pointer-events:none;background-image:url('/creator/assets/camera/faces-rendered-grid.png');background-repeat:no-repeat;background-size:400% 600%;background-color:#281d32;box-shadow:inset 0 0 0 1px #f5d2e318}.camera-face-card[aria-pressed=true]{border-color:#efcd88;background:#2b2035;box-shadow:0 0 0 1px #efcd8855}.camera-face-card[hidden]{display:none}
.camera-face-actions{display:flex;gap:9px;margin-bottom:9px}.camera-face-actions button{flex:1;min-height:44px}.camera-face-actions button:first-child{background:#42304f;border-color:#b58bd7}
.camera-pack-builder{display:grid;gap:12px;min-width:0;margin:5px 0;padding:14px 12px;border:1px solid #675079;border-radius:12px}.camera-pack-builder legend{padding:0 5px;color:#e5c580;font-size:13px}.camera-pack-builder>label{display:grid;gap:7px}.camera-pack-builder output{font-size:11px;color:#c0adce}
.camera-pack-looks{display:grid;gap:5px;max-height:220px;overflow:auto}.camera-pack-looks label{display:flex;gap:10px;align-items:center;min-height:44px;overflow-wrap:anywhere}.camera-pack-looks input{flex:0 0 20px;accent-color:#bd8cf5;width:20px;min-height:20px}.camera-pack-looks span{min-width:0}.camera-pack-builder input[type=file]{max-width:100%;font-size:11px}
.camera-control-grid input[type=color]{height:44px;padding:5px}
@media(min-width:771px){.camera-inspector{position:sticky;top:90px;max-height:calc(100svh - 110px);overflow:auto}}
@media(max-width:770px){.camera-page{padding-bottom:115px}.camera-inspector{position:fixed;z-index:12;left:10px;right:10px;bottom:10px;max-height:57svh;overflow:auto;border-radius:16px;box-shadow:0 -10px 40px #000b}.camera-tool-handle{position:sticky;top:0;background:#17131f;z-index:1}.camera-preview{max-height:57svh}.camera-preview canvas{max-height:57svh}.camera-heading p{font-size:12px}.camera-project-strip output{max-width:65%;overflow-wrap:anywhere}}
/* Native document edits are separate from the live preview's frame loop. */
.camera-photo-editor{margin-top:1rem;padding:1rem;border:1px solid #55505f;border-radius:1rem;background:#121117;text-align:left}
.camera-photo-editor[hidden]{display:none}
.camera-photo-editor summary{cursor:pointer;font-weight:700;color:#eee8f2}
.camera-photo-editor img{display:block;width:100%;max-height:65vh;object-fit:contain;margin:.8rem 0;background:repeating-conic-gradient(#24232a 0 25%,#18171d 0 50%) 0/18px 18px}
.camera-photo-editor img[hidden]{display:none}
.camera-photo-editor output{display:block;margin:.75rem 0;line-height:1.5;color:#d9ccba}
.camera-photo-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;align-items:end}
.camera-photo-controls label{display:grid;gap:.4rem}
.camera-photo-controls input,.camera-photo-controls select{width:100%;min-height:44px}
.camera-photo-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.camera-photo-actions button,.camera-photo-controls button{min-height:44px}
.camera-photo-history{max-height:12rem;overflow:auto;padding-left:1.5rem;line-height:1.65;color:#c8bfce}

/* A small everyday surface; the existing studio opens on request. */
.camera-page:not(.camera-pro) .camera-layout{grid-template-columns:minmax(0,1fr)}
.camera-intensity{display:flex;align-items:center;gap:14px;font-size:12px;color:#d9cebc;min-height:44px}.camera-intensity input{flex:1;min-width:0}
.camera-keep-parts summary{cursor:pointer;min-height:44px;align-content:center;color:#dac9b5;font-size:12px}.camera-vary-parts{display:flex;flex-wrap:wrap;gap:6px 14px;padding:6px 0}.camera-vary-parts label{display:flex;align-items:center;gap:7px;min-height:44px;font-size:12px}.camera-vary-parts input{width:20px;height:20px;accent-color:#bf9cdf}
#cameraCapturePanel[hidden]{display:none}
@media(min-width:771px){.camera-page:not(.camera-pro){max-width:900px}.camera-page:not(.camera-pro) .camera-inspector{position:static;max-height:none}}

/* Framing is the captured output; immersive mode is only a reversible viewer. */
.camera-frame-bar{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px;margin-top:12px}.camera-frame-bar label{display:grid;gap:4px;font-size:11px;color:#cdbfe0}.camera-frame-bar select,.camera-frame-bar button{width:100%;min-height:44px;min-width:0}.camera-control-grid[hidden]{display:none}.camera-page[data-frame=wide] .camera-preview,.camera-page[data-frame=wide] .camera-preview canvas{aspect-ratio:16/9}.camera-page[data-frame=square] .camera-preview,.camera-page[data-frame=square] .camera-preview canvas{aspect-ratio:1}.camera-page[data-frame=portrait] .camera-preview,.camera-page[data-frame=portrait] .camera-preview canvas{aspect-ratio:9/16}
.camera-page.camera-immersive{position:fixed;inset:0;z-index:100;width:100%;max-width:none;height:100dvh;padding:0;background:#050508;overflow:hidden}.camera-immersive .camera-stage{border:0;padding:0;background:none}.camera-immersive .camera-layout{display:block;margin:0}.camera-immersive .camera-heading,.camera-immersive .camera-inspector,.camera-immersive .camera-stage> :not(.camera-preview):not(.camera-frame-bar):not(.camera-actions):not(.camera-tracking-bar):not(.camera-face-library){display:none}.camera-immersive .camera-preview{position:absolute;inset:0;width:100%;height:100%;max-height:none;border-radius:0;border:0;aspect-ratio:auto!important;background:#050508}.camera-immersive .camera-preview canvas{width:100%;height:100%;max-height:none;object-fit:contain;aspect-ratio:auto!important}.camera-immersive .camera-frame-bar{position:absolute;z-index:2;top:0;left:0;right:0;margin:0;padding:max(12px,env(safe-area-inset-top)) 12px 12px;background:#080810e8}.camera-immersive .camera-actions{position:absolute;z-index:2;bottom:0;left:0;right:0;margin:0;padding:12px 12px max(12px,env(safe-area-inset-bottom));background:#080810e8;display:flex;justify-content:center}.camera-immersive .camera-actions button{min-height:48px;flex:1;max-width:180px}.camera-immersive .camera-preview-hint{padding:24px}
@media(max-width:400px){.camera-frame-bar{grid-template-columns:1fr 1fr}.camera-frame-bar button{grid-column:1/-1}.camera-immersive .camera-frame-bar{grid-template-columns:1fr 1fr 1fr}.camera-immersive .camera-frame-bar button{grid-column:auto}.camera-immersive .camera-frame-bar select{font-size:11px}}
.camera-tracking-bar{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.55rem .2rem;font-size:.8rem;color:#d8c8e8}.camera-tracking-bar output{min-width:0;overflow-wrap:anywhere}.camera-tracking-bar button{flex-shrink:0;min-height:44px;font-size:.78rem;padding:.45rem .65rem}

/* Keep capture and selection on the same live surface. Tools never resize it. */
.camera-page .camera-layout{grid-template-columns:minmax(0,1fr)}
.camera-page,.camera-page:not(.camera-pro){max-width:1000px}
.camera-preview,.camera-preview canvas{max-height:46svh}
.camera-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}
.camera-actions button{min-width:0;max-width:none;min-height:48px;padding:9px 5px}
.camera-actions button[hidden],.camera-tracking-bar button[hidden],.camera-tool-content details[hidden]{display:none}
.camera-page[data-recording=true] #cameraRecord{background:#6d273c;border-color:#f391a6}
.camera-tracking-bar{margin:0;gap:8px;padding:8px 0;color:#b9bdcd;font-size:12px}
.camera-tracking-bar output{order:0;flex:1}
#cameraTrackingRetry{order:1}#cameraFullscreen{order:2}
.camera-face-library{margin-top:12px;padding-top:12px}
.camera-face-heading h2{font-size:13px}.camera-face-heading select{max-width:160px}
.camera-face-card{flex-basis:86px;min-height:108px;padding:6px 4px;font-size:10px}
.camera-face-preview{width:68px;height:68px}.camera-face-card[data-pending=true]{border-color:#e8c987;background:#33283b}
.camera-face-card[data-pending=true]::after{content:'Next';font-size:10px;color:#f0d697}
.camera-face-gallery{padding-bottom:8px}.camera-face-actions{gap:6px}.camera-face-actions button{font-size:12px;padding:7px 5px}
.camera-inspector,.camera-page:not(.camera-pro) .camera-inspector{position:fixed;left:12px;right:12px;bottom:12px;top:auto;z-index:12;max-height:43svh;width:auto;max-width:640px;margin:0 auto;overflow:auto;border-radius:16px;background:#111116;box-shadow:0 -8px 40px #0009}
.camera-tool-handle{position:sticky;top:0;z-index:2;padding:13px 15px;background:#17131f}
.camera-panel-picker{display:grid;gap:6px;margin:8px 0;color:#d2c4db}
.camera-panel-picker select{min-height:44px}.camera-back{width:100%;min-height:44px;margin:6px 0}
.camera-edit-history{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.camera-edit-history button{min-height:44px;flex:1 1 auto}
.camera-tool-content>.camera-drawer{border-top:0;padding-top:4px}.camera-tool-content .camera-quick{padding-top:12px}
.camera-inspector .camera-frame-bar{grid-template-columns:1fr 1fr}
@media(min-width:1400px){.camera-inspector,.camera-page:not(.camera-pro) .camera-inspector{left:auto;right:20px;bottom:20px;width:300px;max-height:78svh;margin:0}.camera-tool-handle span{display:none}}
/* Full screen retains face selection, capture and a visible exit. */
.camera-immersive .camera-stage>.camera-tracking-bar,.camera-immersive .camera-stage>.camera-face-library{display:flex}
.camera-immersive .camera-tracking-bar{position:absolute;top:0;left:0;right:0;z-index:3;padding:max(10px,env(safe-area-inset-top)) 12px 10px;background:linear-gradient(#080810e8,#080810a0);color:#ece5f4}
.camera-immersive .camera-face-library{position:absolute;bottom:calc(70px + env(safe-area-inset-bottom));left:0;right:0;z-index:2;display:block!important;margin:0;padding:8px 12px;background:linear-gradient(transparent,#080810e8 20%);border:0;max-height:176px}
.camera-immersive .camera-face-heading{margin-bottom:4px;min-height:38px}.camera-immersive .camera-face-heading h2{display:none}.camera-immersive .camera-face-heading select{min-height:38px}
.camera-immersive .camera-face-card{flex-basis:74px;min-height:86px;gap:4px;padding:4px}.camera-immersive .camera-face-preview{width:52px;height:52px}
.camera-immersive .camera-face-actions,.camera-immersive .camera-intensity{display:none}
.camera-immersive .camera-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px 12px max(10px,env(safe-area-inset-bottom))}
.camera-immersive .camera-actions button{min-width:0;max-width:none}
.camera-immersive .camera-face-card[data-pending=true]::after{content:none}
@media(max-width:400px){.camera-face-heading{gap:6px}.camera-face-heading select{max-width:142px}.camera-tracking-bar{font-size:11px}.camera-tool-handle span{font-size:9px}}

.camera-page.camera-immersive{max-width:none}
.camera-face-card{position:relative;height:116px;min-height:116px}.camera-face-card[data-pending=true]::after{position:absolute;top:4px;right:4px;background:#211a2be8;padding:2px 4px;border-radius:4px}.camera-immersive .camera-face-card{height:88px;min-height:88px}

/* The live camera owns touch gestures only within its preview. */
.camera-page.live .camera-preview{touch-action:none;user-select:none;-webkit-user-select:none}
#cameraZoomReset{order:1;font-variant-numeric:tabular-nums;min-width:62px}
#cameraTrackingRetry{order:2}#cameraFullscreen{order:3}

/* Camera uses the actual output aspect; phone chrome never covers the image. */
.camera-page:not(.camera-immersive) .camera-preview{width:100%;max-width:680px;max-height:none;min-height:0;aspect-ratio:var(--camera-view-aspect,4/3)!important}
.camera-page:not(.camera-immersive) .camera-preview canvas{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto!important;object-fit:contain}
@media(max-width:770px){
 body:has(#cameraPage:not([hidden])) .site-header{position:relative;min-height:58px;padding:6px 12px;gap:8px}
 body:has(#cameraPage:not([hidden])) .site-brand{flex:0 1 128px;min-width:0;min-height:40px}
 body:has(#cameraPage:not([hidden])) .site-brand .main-logo{width:128px;max-width:100%;height:auto;max-height:44px;object-fit:contain}
 body:has(#cameraPage:not([hidden])) .account-menu summary{min-height:44px;padding:8px;font-size:11px}
 body:has(#cameraPage:not([hidden])) #sessionBar:not(:has(#pauseSession:not([hidden]))){display:none}
 .camera-page{padding:10px 10px 88px}.camera-stage{padding:10px}.camera-heading{margin-bottom:10px}.camera-heading h1{font-size:20px}.camera-page.live .camera-heading p{display:none}
 .camera-page:not(.camera-immersive) .camera-preview{max-width:none}.camera-tracking-bar{font-size:11px}.camera-tracking-bar button{font-size:11px;padding:6px 8px}
 #cameraStatus{font-size:12px;line-height:1.45;margin:6px 0 8px}.camera-face-library{margin-top:10px;padding-top:10px}.camera-face-card{flex-basis:80px;height:108px;min-height:108px}
}

.camera-phone-mix{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin:8px 0}.camera-phone-mix label{min-width:0}.camera-phone-mix select,.camera-phone-mix button{width:100%;min-height:44px;font-size:12px;padding:7px}.camera-immersive .camera-face-library{max-height:220px}.camera-immersive .camera-phone-mix{grid-template-columns:minmax(0,1fr) auto}.camera-immersive #cameraPhoneLocksOpen{display:none}

#cameraARQuick{order:2;min-height:44px;border-color:#af87e1}#cameraARQuick[aria-pressed=true]{background:#3b2458;color:#f3e7ff}
#cameraARState{grid-column:1/-1;line-height:1.5}.camera-immersive #cameraARQuick{min-height:40px}

.camera-interaction-cue{position:absolute;z-index:3;bottom:12px;left:12px;right:12px;max-width:calc(100% - 24px);padding:9px 12px;border:1px solid #c5a4ed66;border-radius:12px;background:#100b21d9;color:#f5edff;font-size:14px;line-height:1.4;text-align:center;pointer-events:none;text-wrap:balance}.camera-interaction-cue[hidden]{display:none}
.camera-preview canvas{z-index:1}.camera-interaction-cue:not([hidden])~.camera-preview-hint{display:none}

.camera-power-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin:10px 0}.camera-power-bar label,.camera-power-bar select{min-width:0;width:100%}.camera-power-bar button,.camera-power-bar select{min-height:44px;font-size:12px}.camera-overlay-position{display:grid;grid-template-columns:1fr 1fr;gap:12px}.camera-page .camera-control-grid button[hidden]{display:none}.camera-immersive .camera-stage>.camera-power-bar{display:grid;position:absolute;z-index:3;left:12px;right:12px;bottom:74px;background:#080810d9;padding:8px;border-radius:8px}.camera-immersive .camera-interaction-cue{bottom:145px}

/* Captures share one output panel; the live preview keeps running. */
.camera-result>summary{min-height:48px;align-content:center;cursor:pointer;color:#d7b6f6;font-size:13px;font-weight:600}
.camera-capture-actions{display:flex;gap:8px;align-items:stretch;margin:8px 0}
.camera-capture-actions a,.camera-capture-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex:1;margin:0;padding:10px 14px}
.camera-capture-actions [hidden]{display:none!important}
.camera-capture-more,.camera-pack-transfer{margin-top:12px;padding-top:8px;border-top:1px solid #52445f}
.camera-capture-more>summary,.camera-pack-transfer>summary{min-height:44px;align-content:center;cursor:pointer;font-size:12px;color:#c0accf}
.camera-result[hidden],.camera-result [hidden]{display:none!important}

/* One media stage, with quick looks along its edge and deeper tools in the drawer. */
.camera-kicker {
  margin: 0;
  color: #9acde7;
  font: 650 .7rem/1.4 ui-monospace, monospace;
  letter-spacing: .14em;
}
.camera-heading .camera-kicker { color: #9acde7; }
.camera-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem,2.3vw,2.1rem);
  letter-spacing: -.035em;
}
.camera-heading > a { display: inline-flex; align-items: center; gap: 8px; }
.camera-source-entry {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 18px;
  text-align: center;
}
.camera-page.live .camera-source-entry { display: none; }
.camera-source-entry h3 { margin: 0; color: #edf2fc; font-size: clamp(1.55rem,4vw,2.4rem); letter-spacing: -.05em; }
.camera-source-entry p:not(.camera-kicker) { margin: 0; max-width: 30ch; color: #c0c9da; font-size: .88rem; line-height: 1.55; }
.camera-source-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.camera-source-buttons button, #cameraResumeClip { min-height: 46px; padding: 10px 14px; }
#cameraStart {
  background: linear-gradient(170deg,#e1efff,#9dbbdf);
  color: #141d31;
  border-color: #d7eaff;
  font-weight: 760;
  box-shadow: inset 0 1px #fff,0 4px 14px #5297ed40;
}
#cameraResumeClip { background: transparent; border-color: transparent; color: #d4b8f1; }
.camera-preview {
  background: radial-gradient(ellipse at 50% 43%,#182036 0%,#0a0f1b 54%,#04060b 89%);
  box-shadow: inset 0 1px #8190ad40;
}
#cameraCaptureStatus:empty { display: none; }
#cameraAddCapture { border-color: #a4b5e2; background: #313b59; }
.camera-capture-actions { flex-wrap: wrap; }
.camera-capture-actions > * { white-space: nowrap; }

@media (min-width: 851px) {
  body[data-page=camera] #studioTitle { scroll-margin-block-start: 96px; }
  .camera-page[data-chat=false]:not(.camera-immersive) { max-width: 1440px; padding-top: 4px; }
  #cameraPage[data-chat=false] .camera-heading { margin-bottom: 12px; }
  #cameraPage[data-chat=false] .camera-heading h2 { font-size: clamp(1.35rem,2.15vw,1.95rem); letter-spacing: -.045em; }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-stage {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(245px,25%);
    align-items: start;
    padding: 0;
    border-color: #3c465b;
    border-radius: 12px;
    background: #0b0f17;
    box-shadow: 0 22px 46px #02040b80,inset 0 1px #bec9e52b;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-preview {
    grid-area: 1 / 1;
    max-width: none;
    height: clamp(255px,calc(100svh - 410px),650px);
    aspect-ratio: auto !important;
    border: 0;
    border-radius: 11px 0 0 0;
    background: #04070d;
  }
  .camera-page[data-chat=false]:not(.camera-immersive):not(.live) .camera-preview {
    background: radial-gradient(ellipse at 46% 38%,#242f48 0%,#101827 44%,#04070d 82%);
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-video-controls { grid-area: 2 / 1; }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-tracking-bar {
    grid-area: 3 / 1;
    padding: 4px 12px;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) #cameraStatus {
    grid-area: 4 / 1;
    min-height: 0;
    margin: 0;
    padding: 0 12px 8px;
    color: #a9b7cc;
    line-height: 1.5;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-actions {
    grid-area: 5 / 1;
    display: flex;
    margin: 0;
    padding: 7px 12px;
    border-top: 1px solid #303645;
    background: #131821;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-face-library {
    grid-area: 1 / 2 / span 4;
    align-self: stretch;
    padding: 14px 12px;
    margin: 0;
    border: 0;
    border-left: 1px solid #374153;
    border-radius: 0 11px 0 0;
    background: linear-gradient(173deg,#222838 0%,#141923 37%,#10141e 100%);
    box-shadow: inset 0 1px #c8d5ec35;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-face-gallery {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    max-height: clamp(138px,30svh,360px);
    overflow: auto;
    scroll-snap-type: none;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-face-card {
    min-width: 0;
    width: 100%;
    border-color: #b8b0d125;
    border-radius: 7px;
    background: #080b146b;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-face-card:hover,
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-face-card[aria-pressed=true] {
    border-color: #baa9e6;
    background: #231e36;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-power-bar {
    grid-area: 5 / 2;
    align-self: stretch;
    align-items: center;
    margin: 0;
    padding: 6px 10px;
    border: solid #374153;
    border-width: 1px 0 0 1px;
    background: #141923;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-mini-actions {
    grid-area: 6 / 1 / auto / -1;
    justify-content: flex-start;
    margin: 0;
    padding: 4px 10px;
    border-top: 1px solid #303645;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-mini-actions button {
    flex: 0 1 auto;
    min-width: 0;
    border-color: transparent;
    background: transparent;
    color: #c7d0e0;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-mini-actions button:hover:enabled,
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-mini-actions button[aria-pressed=true] {
    background: #20243b;
    color: #eee3ff;
  }
  .camera-page[data-chat=false]:not(.camera-immersive) .camera-result {
    grid-area: 7 / 1 / auto / -1;
    margin: 0;
    padding: 0 12px 12px;
    scroll-margin-block: 95px 28px;
  }
}

@media (min-width:851px) {
  .camera-page[data-chat=false] .camera-inspector {
    z-index: 35;
    left: auto;
    right: 22px;
    bottom: 16px;
    width: min(440px,42vw);
    max-height: 73svh;
    margin: 0;
    border-color: #677490;
  }
  .camera-page[data-chat=false] .camera-inspector:not([open]) { width: 218px; }
}
