:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#1e293b;background:#f5f7fa;font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:#205a88;text-decoration:none}header{background:#102c41;color:white;box-shadow:0 2px 8px #152e4826}.wrap{width:min(1150px,calc(100% - 32px));margin:auto}.bar{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:14px}.brand{font-weight:800;font-size:1.3rem;color:white}nav{display:flex;gap:20px;align-items:center}nav>a:not(.button){color:#e3ebef}.button,button{font:inherit;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:12px 18px;cursor:pointer;background:#176d9c;color:white;font-weight:700}.button:hover,button:hover{filter:brightness(.94)}.small{padding:9px 13px}.secondary{background:#e5edf3;color:#174b6c}.danger{background:transparent;color:#a53434;padding:0;font-size:.875rem}.subtle,.back{color:#45657d}.back{display:inline-block;margin-top:25px}.pageheading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0}h1{font-size:clamp(1.7rem,4vw,2.2rem);margin:0 0 6px}h2{margin:0 0 12px;font-size:1.3rem}.pageheading p,.muted{color:#63768a}.pageheading p{margin:0;line-height:1.7}.panel{padding:23px;border:1px solid #e0e7ec;background:white;border-radius:14px;margin-bottom:25px}.filters{display:grid;grid-template-columns:2fr 1fr auto auto;align-items:end;gap:14px}.groupform{display:flex;align-items:end;gap:12px;border-top:1px solid #e8edf1;margin-top:20px;padding-top:18px}.groupform label{max-width:360px}label{display:flex;flex-direction:column;gap:6px;font-weight:650;flex:1}input:not([type=file]),select,textarea{font:inherit;border:1px solid #c6d1da;border-radius:8px;padding:11px 13px;min-width:0;width:100%;background:white;color:#20364b}textarea{resize:vertical}small{font-weight:400;color:#6c7e8b}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px}.item{background:white;border:1px solid #e1e6ea;border-radius:12px;overflow:hidden;transition:transform .15s,box-shadow .15s;color:inherit}.item:hover{transform:translateY(-2px);box-shadow:0 5px 25px #1b324e12}.cover{height:180px;background:#eaf0f3;display:grid;place-items:center}.cover img{height:100%;width:100%;object-fit:cover}.cover span{font-size:3.5rem}.itembody{padding:15px;display:grid;gap:10px}.itembody strong{font-size:1.13rem}.itembody .muted{font-size:.89rem}.link{color:#16668f;font-size:.9rem;font-weight:700}.editor{max-width:740px;display:grid;gap:21px}.actions{display:flex;align-items:center;gap:20px}.upload{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:20px}.upload p{color:#53687c;line-height:1.7}.upload code{overflow-wrap:anywhere;color:#184e79}.picker{border:2px dashed #86a8bf;border-radius:12px;padding:32px 15px;align-items:center;cursor:pointer;background:#f5fafc;text-align:center}.picker input{margin-top:12px;width:100%;max-width:300px;font:inherit;font-size:.88rem}.sectionheading{margin:28px 0 15px}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:18px}.picture{background:white;border:1px solid #e1e7ec;border-radius:12px;overflow:hidden}.picture>a{display:block;background:#eaf0f4;aspect-ratio:4/3}.picture img{height:100%;width:100%;object-fit:contain}.picturebody{padding:13px;display:grid;gap:7px}.picturebody small{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photoactions{display:flex;justify-content:space-between;align-items:center;font-size:.88rem;margin-top:5px}.empty{padding:35px;color:#64788b;background:white;border:1px dashed #b8c8d5;border-radius:12px;grid-column:1/-1}.description{white-space:pre-wrap}.notice{background:#e3f3ea;border-radius:8px;padding:12px 18px;margin-top:12px;color:#175c3d}.notice.error{background:#feeceb;color:#922a2a}footer{padding:50px 0 30px;font-size:.84rem;color:#788896}button:disabled{opacity:.6;cursor:wait}@media(max-width:700px){.bar{min-height:64px}.brand{font-size:1.05rem}nav{gap:10px}.pageheading{align-items:flex-start;flex-direction:column}.filters{grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}.groupform{align-items:stretch;flex-direction:column}.upload{grid-template-columns:1fr}.cards{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.cover{height:150px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.picturebody{padding:9px}}

.capture-panel{max-width:800px;margin:auto}.capture-panel form{display:grid;gap:18px}.camera-picker{font-size:1.2rem;padding:40px 20px}.camera-picker input{font-size:1rem}.large-action{font-size:1.08rem;padding:17px 23px}.status-pill{display:inline-block;width:max-content;color:#765000;background:#fff3d5;padding:4px 9px;border-radius:6px;font-size:.8rem;font-weight:750}.previews{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.previews img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.upload .previews{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.previews{grid-template-columns:repeat(3,minmax(0,1fr))}.upload .previews{grid-template-columns:repeat(3,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.filters button{grid-column:1}.actions{flex-wrap:wrap}}/* V3: in-browser camera */
.camera-form{display:grid;gap:15px}.camera-frame{width:100%;aspect-ratio:4/3;max-height:65vh;background:#142331;border-radius:14px;position:relative;overflow:hidden;display:grid;place-items:center}.camera-frame video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;z-index:1}.camera-frame video:not([hidden])+.camera-placeholder{display:none}.camera-placeholder{color:white;opacity:.75;font-size:3rem;display:flex;flex-direction:column;gap:10px;align-items:center;padding:20px;text-align:center}.camera-placeholder span{font-size:1rem}.camera-controls{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:9px}.camera-controls button{padding:14px 9px}.camera-controls button:disabled{opacity:.4}.fallback-picker{padding:17px 12px}.photo-tray{display:grid;gap:10px}.preview-tile{position:relative;aspect-ratio:1;min-width:0}.preview-tile img{width:100%;height:100%;object-fit:cover;border-radius:8px}.preview-tile span{position:absolute;left:5px;bottom:5px;background:#152c3ed9;color:white;border-radius:5px;padding:2px 7px;font-size:.8rem}.preview-tile .remove-photo{position:absolute;top:5px;right:5px;background:#842d31;color:white;border-radius:50%;width:30px;height:30px;padding:0;font-size:1.5rem;font-weight:400;line-height:1}.capture-panel{max-width:800px}.camera-form .large-action{width:100%}@media(max-width:430px){.camera-controls{grid-template-columns:1fr 1fr}.camera-controls #flipCamera{grid-column:1/-1}.camera-frame{aspect-ratio:3/4}}

/* V4: Bluetooth shutter + backup helpers */
.remote-shutter{display:flex;gap:1rem;align-items:center;justify-content:space-between;margin:1rem 0;padding:1rem;border:1px solid var(--line,#d7dce2);border-radius:12px;background:rgba(127,127,127,.06)}
.remote-shutter p{margin:.3rem 0 0}
.remote-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.subtle-button{background:transparent;border:1px solid var(--line,#d7dce2);padding:.65rem .9rem;border-radius:9px;cursor:pointer}
.path-code{display:block;overflow-wrap:anywhere;padding:.75rem;border-radius:8px;background:rgba(127,127,127,.08)}
@media(max-width:650px){.remote-shutter{align-items:stretch;flex-direction:column}.remote-actions{justify-content:flex-start}.remote-actions button{flex:1}}

/* V5 installable-app additions */
.install-nav{white-space:nowrap}
.app-install-panel .large-action{margin:.35rem 0 1rem}
.install-notes{margin-top:1rem;padding:1rem;border-radius:12px;background:rgba(38,56,74,.06)}
.install-notes p:first-child{margin-top:0}.install-notes p:last-child{margin-bottom:0}
@media (display-mode: standalone){
  body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
  .install-nav{display:none!important}
}


/* V6 group workflow */
.capture-group-box{display:grid;gap:14px;padding:16px;border:1px solid #dce5eb;border-radius:12px;background:#f8fbfc}
.or-divider{display:flex;align-items:center;gap:10px;color:#718394;font-size:.84rem}.or-divider:before,.or-divider:after{content:"";height:1px;background:#dce5eb;flex:1}
.group-manager{border-top:1px solid #e8edf1;margin-top:20px;padding-top:18px}.group-manager h3{margin:0 0 12px}.group-list{display:grid;gap:8px}.group-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid #e4eaee;border-radius:9px}.group-row>div{display:flex;align-items:baseline;gap:10px;min-width:0}.danger-outline{border:1px solid #d9aaaa!important;border-radius:8px!important;padding:7px 10px!important}.group-in-use{font-size:.84rem}
@media(max-width:600px){.group-row>div{align-items:flex-start;flex-direction:column;gap:2px}}

/* V7 multi-group picker */
.group-picker{border:0;padding:0;margin:0}.group-picker legend{font-weight:700;margin-bottom:.25rem}.group-checks{display:flex;flex-wrap:wrap;gap:.55rem;margin:.6rem 0 1rem}.group-check{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--border,#d4d4d4);border-radius:999px;padding:.5rem .75rem;background:var(--panel,#fff);cursor:pointer}.group-check input{width:auto;margin:0}.group-check:has(input:checked){font-weight:700;outline:2px solid currentColor;outline-offset:1px}

/* V8 custom item statuses */
.manager-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.manager-grid .groupform{margin-top:20px}.status-check:has(input:checked){background:#eef6ff}.capture-status-box{border-color:#d9e1ef}.tag-row{display:flex;flex-wrap:wrap;gap:6px}.custom-status-pill{display:inline-block;width:max-content;background:#e9f1fb;color:#244f78;padding:4px 9px;border-radius:999px;font-size:.78rem;font-weight:750}.detail-statuses{color:#315d82;font-weight:650}.edit-form{display:grid;gap:20px}
@media(max-width:850px){.manager-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}}

.item-actions{gap:10px;flex-wrap:wrap}.item-actions form{margin:0}.delete-listing{background:#a53434;color:#fff}.delete-listing:hover{filter:brightness(.9)}

/* V11 native Android wrapper */
.native-wrapper .install-nav,.native-wrapper [data-pwa-install-panel]{display:none!important}
