body.xr-active #toolbar{grid-template-columns:minmax(0,1fr) 136px minmax(0,1fr);gap:8px}
#capture-controls{grid-column:2;text-align:center}
#capture-modes{display:flex;justify-content:center;gap:4px;padding:4px;margin-bottom:12px;border:1px solid #ffffff35;border-radius:30px;background:#0b1018c9}
#capture-modes button{flex:1;min-height:35px;padding:6px 8px;background:none;border:0;border-radius:24px;color:#b7bfcc;font-size:12px;font-weight:700}
#capture-modes button[aria-pressed=true]{background:#ffffff;color:#111721}
#capture-modes button:disabled{opacity:.65;cursor:default}
#record{display:block;width:76px;height:76px;margin:auto;border:2px solid #fff;border-radius:50%;padding:7px;background:#ffffff20;box-shadow:0 3px 22px #0004}
#record span{display:block;width:100%;height:100%;border-radius:50%;background:#ff414f;transition:border-radius .15s,transform .15s}
body.recording #record span{border-radius:6px;transform:scale(.52)}
#record:disabled{opacity:.4;cursor:default}
#record-info{position:fixed;z-index:6;top:max(22px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;max-width:calc(100% - 32px);padding:11px 17px;border-radius:16px;background:#10121be6;color:#fff;text-align:center;pointer-events:none}
#record-timer{font-size:15px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
body.recording #record-timer:before{content:'';display:inline-block;width:8px;height:8px;background:#ff414f;border-radius:50%;margin-right:8px}
#record-help{font-size:11px;line-height:1.5;color:#bfc8d7}
body.capture-video #photo-last{display:none!important}
#video-last{position:relative;grid-column:3;justify-self:end;width:56px;height:68px;padding:0;border:2px solid #fff;border-radius:10px;overflow:hidden;background:#111;color:white}
#video-thumb{width:100%;height:100%;object-fit:cover}
#video-last span{position:absolute;inset:0;display:grid;place-items:center;text-shadow:0 1px 5px #000;font-size:18px;background:#0002}
#video-preview{position:fixed;inset:0;z-index:30;background:#06070bf7;display:flex;justify-content:center;overflow:auto;padding:max(20px,env(safe-area-inset-top)) 20px max(18px,env(safe-area-inset-bottom));overscroll-behavior:contain}
.photo-frame video{display:block;width:100%;height:100%;object-fit:contain}
#video-delete{color:#ffacb2;border-color:#643840}
#video-status{margin:0;min-height:20px;font-size:12px;color:#aeb5c5;text-align:center;line-height:1.5;flex-shrink:0}
body.video-open #toolbar,body.video-open #xr-hint,body.video-open #record-info,body.photo-open #record-info{visibility:hidden}
@media(max-width:350px){body.xr-active #toolbar{left:12px;right:12px;grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr)}body.xr-active #back{font-size:10px;padding:11px 8px}#video-last,#photo-last{width:44px;height:56px}}
@media(max-height:500px){#video-preview{padding:12px 20px}#record-info{left:auto;right:18px;transform:none;top:16px}#capture-modes{margin-bottom:7px}#record,#shutter{width:60px;height:60px}}
