/* Dark camera surface, isolated from the workspace theme. */
.photo-session-card{display:flex;align-items:center;gap:18px;border:1px solid var(--line,#dfe3ec);border-radius:18px;padding:22px;margin-bottom:20px;background:linear-gradient(115deg,rgba(79,70,215,.07),rgba(30,190,155,.04));flex-wrap:wrap}.photo-session-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#4f46d7;color:white;flex-shrink:0}.photo-session-mark svg{width:27px;height:27px}.photo-session-copy{flex:1;min-width:200px}.photo-session-copy h3{margin:4px 0 6px}.photo-session-copy p{margin:0;font-size:13px}.photo-session-dots{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:12px;font-size:12px}.photo-session-dots span{opacity:.7}.photo-session-dots .done{color:#138263;opacity:1}
/* A single framed photograph, with controls arranged around it. */
body.photo-camera-open{overflow:hidden!important}
#photo-camera{--pc-aqua:#8ceacb;--pc-muted:#a6b0bd;background:#0c1014;color:#f7f9fc;color-scheme:dark;position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;overscroll-behavior:contain;font-family:inherit;box-shadow:none}
#photo-camera::backdrop{background:#0c1014}#photo-camera *,#photo-camera *::before,#photo-camera *::after{box-sizing:border-box}#photo-camera [hidden]{display:none!important}
#photo-camera button{font:inherit;color:inherit;background:transparent;border:0;box-shadow:none;min-height:44px;padding:8px 12px;border-radius:20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;touch-action:manipulation;transition:background .15s,transform .15s,color .15s}
#photo-camera button:hover{background:#ffffff10}#photo-camera button:active{transform:scale(.96)}#photo-camera button:disabled{opacity:.4;cursor:default}#photo-camera button:focus-visible,#photo-camera summary:focus-visible,#photo-camera input:focus-visible{outline:2px solid var(--pc-aqua);outline-offset:2px}
#photo-camera button svg{width:21px;height:21px;flex-shrink:0}#photo-camera h2,#photo-camera h3,#photo-camera p{color:inherit;margin:0}
.pc-shell{height:100%;display:flex;flex-direction:column;padding:max(4px,env(safe-area-inset-top)) env(safe-area-inset-right) max(6px,env(safe-area-inset-bottom)) env(safe-area-inset-left)}
.pc-header{height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px;flex-shrink:0}.pc-header>div{min-width:0}.pc-header h2{font-size:13px!important;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc-header small{font-size:10px;color:var(--pc-muted)}#photo-camera .pc-finish{color:var(--pc-aqua);font-size:13px;font-weight:600;flex-shrink:0}
.pc-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#070a0d;isolation:isolate}
#pc-viewfinder{position:absolute;overflow:hidden;background:#070a0d;border-radius:10px;isolation:isolate}
#pc-video{position:absolute;display:block;max-width:none;max-height:none;object-fit:fill}#pc-review{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;touch-action:pan-y}
.pc-guides{position:absolute;pointer-events:none;z-index:1;border:0}.pc-frame{position:absolute;border:2px solid var(--guide-color);color:var(--guide-color);opacity:1;outline:1px solid #111;box-shadow:inset 0 0 0 1px #111}.pc-frame:nth-child(2n){border-style:dashed}.pc-frame span{position:absolute;left:8px;max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#0a1119ed;color:var(--guide-color);font-size:9px;line-height:17px;border-radius:6px;padding:1px 6px;text-shadow:0 1px 3px #000}
.pc-toolbar{position:absolute;z-index:5;left:10px;top:10px;display:flex;gap:3px;border-radius:28px;background:#0c151ba8;backdrop-filter:blur(14px);padding:2px}
#photo-camera .pc-icon{width:40px;height:40px;min-height:40px;padding:9px;flex-shrink:0}#photo-camera [aria-pressed=true].pc-icon,#photo-camera #pc-checklist-toggle[aria-expanded=true]{color:var(--pc-aqua)}
.pc-checklist{position:absolute;z-index:3;top:10px;right:10px;width:116px;max-height:60%;overflow:auto;background:#10181db3;backdrop-filter:blur(14px);border-radius:16px;padding:7px;color:#edf4fb;scrollbar-width:thin;animation:pc-reveal .18s ease-out}
.pc-checklist-head{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--pc-aqua);padding:1px 3px 4px}
#photo-camera .pc-step{display:flex;align-items:center;justify-content:flex-start;gap:6px;width:100%;min-height:29px;padding:5px 3px;text-align:left;font-size:10px;line-height:1.2;border-radius:7px}
#photo-camera .pc-step.current{background:#ffffff19;color:white}.pc-box{width:12px;height:12px;display:grid;place-items:center;flex-shrink:0;border:1px solid #b4c0cf;border-radius:3px;font-size:9px}.pc-step.done .pc-box{background:var(--pc-aqua);border-color:var(--pc-aqua);color:#06281e}.pc-step.done{color:#b5c8c1}
#pc-extras{border-top:1px solid #ffffff18;margin-top:4px}#pc-extras summary{cursor:pointer;font-size:10px;min-height:26px;padding:7px 3px}
.pc-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:36px;text-align:center;color:var(--pc-muted)}.pc-placeholder svg{width:36px;height:36px}.pc-placeholder strong{font-size:14px}.pc-placeholder span{font-size:12px;max-width:250px}
.pc-settings{position:absolute;z-index:8;top:58px;left:10px;width:min(310px,calc(100% - 20px));max-height:calc(100% - 68px);overflow:auto;border:1px solid #ffffff25;background:#162027f2;backdrop-filter:blur(20px);border-radius:20px;padding:18px;box-shadow:0 12px 32px #0005;animation:pc-reveal .18s ease-out}.pc-settings strong{font-size:13px;display:block;margin-bottom:8px}.pc-settings label{display:flex;gap:10px;align-items:center;font-size:13px;min-height:44px;cursor:pointer}.pc-settings input{width:18px;height:18px;accent-color:var(--pc-aqua);flex-shrink:0;margin:0}.pc-settings small{display:block;font-size:11px;line-height:1.5;color:var(--pc-muted)}#pc-guide-legend{border-top:1px solid #ffffff1f;margin:14px 0;padding-top:14px}#pc-guide-legend p{font-size:12px;line-height:1.6;margin-bottom:4px}
.pc-footer{position:relative;flex-shrink:0;padding:0 14px;background:#0c1014}
.pc-direction{height:44px;display:flex;align-items:center;gap:8px}.pc-direction h3{font-size:16px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}#pc-step-number{font-size:10px;color:var(--pc-muted);white-space:nowrap}#photo-camera .pc-skip{font-size:11px;color:var(--pc-aqua);padding:7px 9px;min-height:36px}#photo-camera #pc-hint-toggle{width:30px;height:30px;min-height:30px;padding:6px;color:var(--pc-muted)}#pc-hint{font-size:11px;line-height:1.4;color:#b9c4d0!important;padding:0 0 8px}
#pc-status{position:absolute;z-index:6;left:14px;right:14px;bottom:calc(100% + 10px);width:fit-content;max-width:calc(100% - 28px);margin:auto!important;text-align:center;font-size:11px;line-height:16px;border-radius:18px;background:#0c151be8;padding:7px 12px;color:#d1e1db!important;pointer-events:none;box-shadow:0 3px 12px #0002}#pc-status:empty{display:none}#pc-status.pc-error{position:static;width:auto;color:#ffc8be!important;background:#392327;max-width:100%;max-height:68px;overflow:auto;pointer-events:auto;margin:4px 0!important}
.pc-gallery{height:42px;display:flex;gap:6px;overflow-x:auto;align-items:center;scrollbar-width:none;padding:1px 0}.pc-gallery::-webkit-scrollbar{display:none}
#photo-camera .pc-thumb{position:relative;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;overflow:hidden;border-radius:8px;border:1px solid #ffffff29}.pc-thumb img{width:100%;height:100%;object-fit:cover}.pc-thumb span{position:absolute;bottom:0;right:0;font-size:8px;background:#000a;padding:1px 4px;border-radius:4px 0 0 0}#photo-camera .pc-thumb[aria-pressed=true]{border:2px solid var(--pc-aqua)}
.pc-controls{height:86px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;justify-items:center;gap:8px}.pc-capture-control{display:flex;flex-direction:column;align-items:center;gap:4px}.pc-native-control{display:flex;flex-direction:column;align-items:center}#pc-photo-count{font-size:9px;color:var(--pc-muted)}#pc-shutter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#photo-camera .pc-shutter{border:2px solid #e6f0ec;border-radius:50%;width:66px;height:66px;min-height:66px;padding:5px;background:transparent;flex-shrink:0}.pc-shutter>span{display:block;border-radius:50%;width:100%;height:100%;background:#f1f7f4;transition:transform .15s}#photo-camera .pc-shutter:active>span{transform:scale(.86)}#photo-camera .pc-shutter:disabled{opacity:.5}.pc-is-busy #pc-shutter{border-color:#364b43;border-top-color:var(--pc-aqua);animation:pc-spin 1s linear infinite}.pc-is-busy #pc-shutter>span{transform:scale(.7);background:var(--pc-aqua)}
#photo-camera .pc-floating{position:absolute;z-index:4;right:18px;top:66%;width:50px;height:50px;min-height:50px;border-color:var(--pc-aqua);background:#163a32a8;touch-action:none;box-shadow:0 3px 18px #0006}.pc-floating>span{background:var(--pc-aqua);opacity:.9}
.pc-loading{position:absolute;z-index:6;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:9px;background:#101e23e8;padding:10px 16px;border-radius:24px;font-size:11px;pointer-events:none;white-space:nowrap}.pc-spinner{display:block;width:18px;height:18px;border:2px solid #ffffff25;border-top-color:var(--pc-aqua);border-radius:50%;animation:pc-spin .85s linear infinite}
.pc-stage-badge{position:absolute;z-index:2;left:50%;bottom:14px;transform:translateX(-50%);font-size:11px;background:#0c211be6;color:var(--pc-aqua);border-radius:20px;padding:8px 14px;pointer-events:none;white-space:nowrap}.pc-stage-badge:empty{display:none}.pc-is-busy .pc-stage-badge{display:none}
.pc-review-controls{position:absolute;z-index:4;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;white-space:nowrap;background:#101a23dd;border-radius:24px;padding:0 2px}.pc-review-controls button{font-size:12px!important}#photo-camera .pc-resume{position:absolute;z-index:4;bottom:14px;left:50%;transform:translateX(-50%);background:#1a3032;white-space:nowrap;font-size:12px}.pc-is-review .pc-stage-badge,.pc-is-review .pc-toolbar{display:none}
.pc-recovery{display:flex;justify-content:center;gap:8px;padding:5px;background:#381b22;border-radius:14px}.pc-recovery button{font-size:12px!important}
#pc-flash{position:absolute;inset:0;background:white;opacity:0;pointer-events:none;z-index:2}#pc-flash.pc-flash{animation:pc-flash .18s ease-out}@keyframes pc-flash{from{opacity:.4}to{opacity:0}}@keyframes pc-spin{to{transform:rotate(360deg)}}@keyframes pc-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:850px){.pc-header{padding:0 24px}.pc-checklist{width:135px}#photo-camera .pc-step{font-size:11px;min-height:32px}.pc-footer{padding:0 max(20px,calc((100vw - 620px)/2))}.pc-toolbar{left:20px}.pc-checklist{right:20px}}
@media(max-height:550px) and (orientation:landscape){.pc-shell{display:grid;grid-template-columns:minmax(0,1fr) 120px;grid-template-rows:40px 1fr}.pc-header{grid-column:1;height:40px}.pc-stage{grid-column:1;grid-row:2}.pc-toolbar{left:6px;top:6px;flex-direction:column}.pc-checklist{max-height:calc(100% - 12px);width:110px;right:6px;top:6px}.pc-footer{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;justify-content:flex-end;padding:6px}.pc-direction{height:auto;flex-wrap:wrap;gap:2px;justify-content:center}.pc-direction h3{font-size:12px;flex:auto;text-align:center}#pc-hint-toggle{display:none!important}#pc-hint{display:none}.pc-controls{height:auto;display:flex;flex-wrap:wrap;padding:4px;gap:4px;justify-content:center}.pc-capture-control{order:-1;width:100%;margin:4px 0}.pc-native-control{flex-direction:row}#pc-photo-count{display:none}.pc-gallery{height:auto;max-height:90px;flex-wrap:wrap;overflow:auto;justify-content:center;flex-shrink:0}#pc-status{bottom:100%;left:auto;right:130px;width:260px;max-width:60vw}.pc-settings{left:52px;top:6px;max-height:calc(100% - 12px)}}
@media(prefers-reduced-motion:reduce){#photo-camera *{transition:none!important;animation:none!important;scroll-behavior:auto!important}.pc-spinner{border-right-color:var(--pc-aqua)}}

.pc-header>div{flex:1}#pc-tone{top:auto;bottom:12px;width:min(310px,calc(100% - 20px));max-height:calc(100% - 24px);padding:14px 18px}#pc-tone .photo-tone{margin:10px 0}#pc-tone .photo-tone input[type=range]{height:24px}#pc-tone .pc-tone-actions button{min-height:30px;padding:4px 8px}

/* Group context stays outside the viewfinder; camera geometry is unchanged. */
#photo-camera .pc-group{display:flex;gap:10px;overflow-x:auto;padding:4px 0 6px;max-height:54px;scrollbar-width:thin}
#photo-camera .pc-group>span{display:flex;align-items:center;gap:5px;min-width:100px;max-width:150px;flex-shrink:0;font-size:10px}
#photo-camera .pc-group img{width:24px;height:32px;object-fit:contain;border-radius:3px}
#photo-camera .pc-group>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#photo-camera .pc-group b{display:block;color:var(--pc-aqua);font-size:9px}
#photo-camera .pc-group[hidden]{display:none}
.bundle-photo-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.bundle-photo-heading h3{flex:1;margin:0}.bundle-photo-heading strong{font-size:13px}
.bundle-photo-group{padding:12px 0;border-top:1px solid var(--line,#dfe3ec)}.bundle-photo-group>strong{font-size:13px}
.bundle-photo-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:7px;margin:9px 0}
.bundle-photo-members a{display:flex;gap:7px;align-items:center;min-width:0;text-decoration:none;color:inherit;font-size:11px}.bundle-photo-members a>span:last-child{min-width:0}
.bundle-photo-members small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bundle-photo-members .flow-cover{width:26px;height:35px}
.bundle-photo-checks{display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.bundle-photo-checks>span{display:flex;align-items:center;gap:4px}.bundle-photo-checks input{width:14px;height:14px;margin:0;accent-color:#138263}.bundle-photo-checks .done{color:#138263}
.bundle-classify-preview{display:block;max-height:220px;max-width:100%;margin:0 auto;object-fit:contain}.bundle-classify-members{font-size:12px;max-height:140px;overflow:auto}
@media(max-height:550px) and (orientation:landscape){#photo-camera .pc-group{max-height:65px;flex-direction:column;overflow-y:auto}}
