/* Site cameras: settings rows, the dashboard's live pictures, the picture viewer and section 11 of the daily report. */
.camera-frame{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#e8edf3}
.camera-frame img{display:block;width:100%;height:100%;object-fit:cover}
.camera-frame-empty{position:absolute;inset:0;display:none;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#5f6d80}
.camera-frame.is-empty img{visibility:hidden}.camera-frame.is-empty .camera-frame-empty{display:flex}
.camera-state{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;background:#eef2f6;color:#4b5d73}
.camera-state:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.camera-state.is-live{background:#e6f4ec;color:#2f7d5b}.camera-state.is-recent{background:#eef4fd;color:#1f56b0}.camera-state.is-stale,.camera-state.is-never{background:#fdecea;color:#a52a21}
.camera-settings .panel-head{gap:12px;flex-wrap:wrap}
.camera-list{display:grid;gap:10px;margin:12px 0}
.camera-row{display:grid;grid-template-columns:120px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:10px;border:1px solid #e3e8ef;border-radius:12px}
.camera-row-info{display:flex;flex-direction:column;gap:2px;min-width:0}.camera-row-info b{font-size:14px;color:var(--navy)}.camera-row-info span{font-size:12px;color:#4b5d73}.camera-row-info small{font-size:11px;color:#5f6d80}
.camera-row-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.camera-help{margin-top:6px;font-size:13px;color:#3b4a5c}.camera-help summary{cursor:pointer;font-weight:650;color:var(--navy)}.camera-help ol{margin:8px 0 0;padding-left:20px;line-height:1.6}
.camera-form .checkbox-line{display:flex;align-items:center;gap:8px;font-size:13px}.camera-form .checkbox-line input{width:18px;height:18px;margin:0}
.camera-token{display:grid;gap:10px}.camera-token p{margin:0;line-height:1.55}.camera-token input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.camera-command{margin:0;padding:12px;border-radius:10px;background:#102d4f;color:#e4ecf5;font-size:11.5px;line-height:1.55;white-space:pre-wrap;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.camera-token .btn{justify-self:start}
.camera-live{margin-top:22px}
.camera-live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;padding:0 20px 20px}
.camera-live-empty{padding:0 0 4px}
.camera-card{margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.camera-card-open{display:block;width:100%;padding:0;border:0;border-radius:10px;background:none;cursor:zoom-in}
.camera-card-open:focus-visible,.camera-thumb:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.camera-card figcaption{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}
.camera-card-info{display:flex;flex-direction:column;min-width:0}.camera-card figcaption b{font-size:13px;color:var(--navy)}
.camera-card figcaption small{font-size:11px;color:#5f6d80;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal.camera-modal{width:min(1000px,calc(100vw - 24px))}
.camera-view{display:grid;gap:10px}.camera-view h3{margin:6px 0 0;font-size:14px;color:var(--navy)}
.camera-view-main .camera-frame{border-radius:12px}
.camera-view-strip,.report-camera-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.camera-thumb{display:flex;flex-direction:column;gap:4px;padding:3px;border:2px solid transparent;border-radius:10px;background:#fff;cursor:pointer;font:inherit;font-size:11px;font-weight:600;color:#3b4a5c;text-align:center}
.camera-thumb[aria-pressed=true]{border-color:#2a6fdb;background:#eef4fd;color:#1f56b0}
.camera-thumb.is-live{justify-content:center;min-height:62px;background:#102d4f;color:#fff}
.report-camera{display:grid;gap:10px;margin-bottom:14px;padding:12px 14px;border:1px solid #dfe5ec;border-radius:12px;background:#fbfcfd}
.report-camera-source{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;border:0}
.report-camera-source legend{width:100%;margin-bottom:6px;padding:0;font-size:13px;font-weight:700;color:var(--navy)}
.report-camera-source label{display:inline-flex;align-items:center;gap:8px;min-height:36px;font-size:13px;font-weight:600}
.report-camera-source input{width:18px;height:18px;margin:0}
.report-camera-source input:disabled+*,.report-camera-source label:has(input:disabled){color:#8a97a8}
.report-camera-day{display:grid;gap:12px}.report-camera-day .form-hint{margin:0}
.report-camera-item{display:grid;gap:8px;padding-top:10px;border-top:1px solid #edf1f5}
.report-camera-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.report-camera-head b{color:var(--navy)}.report-camera-head span{font-size:12px;color:#4b5d73}.report-camera-head small{font-size:12px;color:#3b4a5c;width:100%}
.report-camera-hours{display:flex;align-items:flex-end;gap:4px;height:46px}
.report-camera-hours span{flex:1;min-width:14px;max-width:34px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px}
.report-camera-hours i{display:block;width:100%;border-radius:3px 3px 0 0;background:#c9d6e6}.report-camera-hours i.is-active{background:#2a6fdb}
.report-camera-hours small{font-size:9px;color:#5f6d80}
.report-camera-lines{margin:0 0 10px;padding-left:18px;font-size:13px;line-height:1.55;color:#26384d}
@media(max-width:700px){
 .camera-row{grid-template-columns:96px minmax(0,1fr);}
 .camera-row .camera-state{justify-self:start}
 .camera-row-actions{grid-column:1/-1;justify-content:flex-start}
 .camera-live-grid{grid-template-columns:minmax(0,1fr);padding:0 14px 16px}
 .camera-view-strip,.report-camera-strip{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:4px}
 .camera-view-strip .camera-thumb,.report-camera-strip .camera-thumb{flex:0 0 104px;scroll-snap-align:start}
}
