body.photo #ui-bottom{display:none!important}
#photo-bar{z-index:55;box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px);flex-wrap:wrap;justify-content:center;gap:8px;padding:10px 12px;background:#171e22f5;border-color:#d4e6ed35;box-shadow:0 8px 36px #0005}
#photo-bar button{min-height:44px;font:500 13px/1.2 Inter,system-ui,sans-serif;white-space:nowrap}
#photo-bar button:not(.pm-capture){color:#e4edef;background:#ffffff0a;border:1px solid #ffffff1c;border-radius:7px;padding:8px 12px}
#photo-bar .pm-res{background:transparent;padding:0;gap:2px}
#photo-bar .pm-res button.active{background:#b5d9e9;color:#10242d}
#photo-bar #pm-res,#photo-bar #cap-pois{display:none!important}
#capture-status{flex-basis:100%;text-align:center;color:#bacbd1;font:12px/1.4 Inter,system-ui,sans-serif;min-height:17px;pointer-events:none}
#capture-settings{box-sizing:border-box;position:fixed;right:20px;bottom:134px;z-index:54;width:340px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 158px);overflow:auto;padding:20px;border:1px solid #d4e6ed35;border-radius:14px;background:#172025f5;color:#edf1ed;box-shadow:0 12px 48px #0006;font:13px/1.5 Inter,system-ui,sans-serif;overscroll-behavior:contain}
#capture-settings[hidden],#capture-settings [hidden],#photo-bar [hidden],#capture-frame[hidden]{display:none!important}
.capture-panel-heading,.capture-review-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.capture-panel-heading h2,.capture-review-heading h2{font:500 23px/1.2 Georgia,serif;margin:0}
#capture-settings button,#capture-review button,#capture-download{min-height:44px;border:1px solid #ffffff30;background:#ffffff08;color:#edf1ed;border-radius:7px;padding:8px 12px;font:inherit;cursor:pointer;box-sizing:border-box}
#capture-settings-close,#capture-review-close{font-size:24px!important;flex:0 0 44px}
.capture-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.capture-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#d2e0e5}
#capture-settings select{width:100%;min-width:0;min-height:44px;background:#0e171c;color:#edf1ed;border:1px solid #ffffff35;border-radius:7px;padding:7px;font:inherit}
.capture-hint{font-size:12px;line-height:1.55;color:#adc0c9;margin:9px 0 16px}
#capture-framing{margin-top:16px}
#capture-framing .pm-fov-wrap{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:13px}
#capture-settings input[type=range]{width:100%;min-height:36px;accent-color:#b5d9e9;margin:0}
.capture-slider-label{display:flex;justify-content:space-between;margin-top:14px}
.capture-check{display:flex;align-items:center;gap:9px;min-height:44px}
.capture-check input{width:18px;height:18px;accent-color:#b5d9e9}
.capture-small-heading{color:#adc0c9;letter-spacing:.1em;text-transform:uppercase;font-size:10px;margin:16px 0 8px}
#capture-background{position:relative;padding-top:2px}
#capture-background #pm-bg{display:flex;gap:6px}
#capture-background #pm-bg button{flex:1;padding:7px}
#capture-background #pm-bg button.active{border-color:#b5d9e9;color:#b5d9e9}
#capture-background #pm-bg-color.show{margin-top:8px;min-height:36px;min-width:100%}
#capture-background #pm-color-pop{left:0;bottom:44px;max-width:100%;z-index:2}
#capture-audio{display:flex;gap:8px;margin-top:12px}
#capture-audio button{flex:1;justify-content:center}
#capture-audio span{display:inline!important}
#capture-settings #capture-reset{width:100%;margin-top:14px;color:#b5d9e9}
#capture-settings :disabled,#photo-bar :disabled{opacity:.45;cursor:default}
#capture-settings :focus-visible,#photo-bar :focus-visible,#capture-review :focus-visible{outline:2px solid #b5d9e9;outline-offset:3px}
#capture-frame{position:fixed;box-sizing:border-box;z-index:10;pointer-events:none}
#capture-frame.capture-cropped{border:1px solid #ffffffa0;box-shadow:0 0 0 100vmax #080e146b}
#capture-frame i{display:none;position:absolute;background:#ffffff70;box-shadow:0 0 1px #000}
#capture-frame.capture-grid-on i{display:block}
#capture-frame i:nth-child(1),#capture-frame i:nth-child(2){top:0;bottom:0;width:1px;left:33.333%}
#capture-frame i:nth-child(2){left:66.667%}
#capture-frame i:nth-child(3),#capture-frame i:nth-child(4){left:0;right:0;height:1px;top:33.333%}
#capture-frame i:nth-child(4){top:66.667%}
#capture-review{margin:auto;box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #d4e6ed35;border-radius:16px;background:#172025;color:#edf1ed;font:14px/1.5 Inter,system-ui,sans-serif;overflow:auto}
#capture-review::backdrop{background:#050c12ca;backdrop-filter:blur(5px)}
#capture-review .capture-small-heading{margin-top:0}
#capture-review-media{display:flex;justify-content:center;align-items:center;background:repeating-conic-gradient(#28343b 0% 25%,#1e292f 0% 50%) 0 / 20px 20px;border-radius:8px;overflow:hidden}
#capture-review-media img,#capture-review-media video{display:block;max-width:100%;max-height:60dvh;object-fit:contain}
.capture-review-actions{display:flex;gap:10px;flex-wrap:wrap}
#capture-download{display:inline-flex;align-items:center;background:#b5d9e9;color:#10242d;text-decoration:none;font-weight:600}
#capture-review-details{color:#d2e0e5;margin:12px 0}
#capture-review .capture-hint{margin:12px 0 0}
#rec-pill{z-index:56}.capture-paused .rec-dot{animation:none;background:#e1c58c}
@media(max-width:600px){#photo-bar{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);max-width:none;padding:8px;gap:5px}#photo-bar button:not(.pm-capture){padding:7px 9px;font-size:12px}#photo-bar .pm-capture{padding:9px 12px}#capture-settings{right:12px;bottom:154px;max-height:calc(100dvh - 176px);width:calc(100vw - 24px);max-width:none;padding:16px}#capture-review{padding:14px}#capture-review-media img,#capture-review-media video{max-height:52dvh}}
@media(max-height:500px){#capture-settings{bottom:108px;max-height:calc(100dvh - 124px)}#photo-bar{bottom:6px;padding:6px 10px}#photo-bar button{min-height:38px}#capture-review-media img,#capture-review-media video{max-height:42dvh}}

/* Compact individual adjustments on phones; a side panel on tablets. */
#capture-settings{max-height:var(--capture-space,calc(100dvh - 158px))}
.capture-adjustments{display:none}
#capture-settings select,#capture-settings input[type=number]{font-size:16px}
#capture-settings input[type=range]{min-height:44px}
#photo-bar button{min-height:44px}
@media(max-width:700px),(max-height:500px){
  #capture-settings{padding:14px;max-height:min(var(--capture-space,55dvh),55dvh)}
  .capture-panel-heading{margin-bottom:8px}.capture-panel-heading h2{font-size:21px}
  .capture-adjustments{display:flex;gap:6px;margin-bottom:12px}
  #capture-settings .capture-adjustments button{flex:1;min-width:0;padding:8px 5px;font-size:13px}
  .capture-adjustments button[aria-pressed=true]{background:#b5d9e9!important;color:#10242d!important}
  #capture-settings .capture-adjustment{display:none}
  #capture-settings[data-adjustment=frame] [data-adjustment=frame].capture-adjustment,
  #capture-settings[data-adjustment=detail] [data-adjustment=detail].capture-adjustment,
  #capture-settings[data-adjustment=background] [data-adjustment=background].capture-adjustment,
  #capture-settings[data-adjustment=video] [data-adjustment=video].capture-adjustment{display:block}
  #capture-settings #capture-reset{margin-top:8px;min-height:44px}
  #capture-sharpness-hint{margin-bottom:4px}.capture-slider-label{margin-top:0}
}
@media(min-width:701px){#capture-settings{right:max(20px,env(safe-area-inset-right));width:340px}}
