.files-browser { min-width:0; }
.files-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:20px; }
.files-heading h2 { margin:12px 0 6px; font-size:23px; }
.files-heading p { margin:0; color:var(--muted); font-size:12px; max-width:650px; }
.files-breadcrumb { display:flex; align-items:center; gap:9px; font-size:11px; color:var(--muted); }
.files-breadcrumb button { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:none; color:var(--ink); font-weight:600; }
.files-breadcrumb .icon { width:15px; height:15px; }
.files-camera-field { min-width:190px; max-width:290px; }
.files-folders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:20px; }
.files-local-card { border-left:4px solid var(--orange); margin-top:18px; }
.files-local-heading { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.files-local-heading h3 { font-size:18px; margin:0 0 4px; }
.files-local-heading p { font-size:12px; margin:0; color:var(--muted); }
.files-local-card > .muted { font-size:11px; margin:12px 0 0; }
.files-local-camera { font-size:11px; font-weight:600; margin:0 0 12px; }
.files-local-status { font-size:10px; margin:14px 0 0; }
.files-local-setup { font-size:13px; font-weight:600; margin:0 0 7px; }
.files-local-card > .btn { margin-top:12px; }
.files-online-heading { margin:26px 0 -6px; }
.files-online-heading h3 { font-size:17px; margin:0 0 5px; }
.files-online-heading p { font-size:11px; margin:0; }
.files-folder { display:flex; align-items:center; gap:16px; text-align:left; color:var(--ink); min-width:0; }
.files-folder:hover { border-color:#9cb6c9; background:#fbfcfd; }
.files-folder-icon { width:48px; height:48px; border-radius:12px; background:#edf3f7; display:grid; place-items:center; flex-shrink:0; }
.files-folder-icon .icon { width:24px; height:24px; }
.files-folder > span:nth-child(2) { display:grid; gap:5px; min-width:0; flex:1; }
.files-folder strong { font-size:17px; }
.files-folder small { font-size:11px; font-weight:400; }
.files-folder > .icon { color:var(--muted); }
.files-date-panel { padding:18px; }
.files-date-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:20px; }
.files-month-controls { display:flex; align-items:flex-end; gap:8px; }
.files-month-controls .btn { height:41px; font-size:23px; min-width:36px; padding:3px 8px; }
.files-date-controls input { min-width:155px; }
.files-calendar { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-top:15px; min-height:34px; }
.files-calendar > .muted { font-size:11px; margin:0 6px 0 0; }
.files-calendar button { display:inline-flex; gap:7px; align-items:center; border:1px solid var(--line); background:white; color:var(--ink); border-radius:6px; padding:6px 9px; font-size:11px; min-height:32px; }
.files-calendar button[aria-pressed="true"] { border-color:var(--navy); background:var(--navy); color:white; }
.files-calendar button small { font-size:9px; color:inherit; opacity:.7; }
.files-list-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:20px 0 14px; }
.files-list-heading p { margin:0; font-size:11px; color:var(--muted); }
.files-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.files-item { overflow:hidden; border:1px solid var(--line); border-radius:11px; background:white; min-width:0; }
.files-preview { width:100%; aspect-ratio:16/9; background:var(--deep); display:grid; place-items:center; padding:0; border:0; color:#c6d7e3; position:relative; }
.files-preview img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
.files-preview img[hidden] { display:none; }
.files-image-fallback { padding:15px; font-size:11px; }
.files-video-preview { display:flex; flex-direction:column; gap:9px; justify-content:center; font-size:11px; background:linear-gradient(135deg,#10283f,#24445e); }
.files-video-preview .icon { width:31px; height:31px; color:#b8cfdf; }
.files-video-preview:hover { background:linear-gradient(135deg,#18384f,#2d526d); }
.files-item-body { padding:14px; }
.files-item h3 { margin:0 0 4px; font-size:13px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.files-item-time { margin:0 0 3px; font-size:11px; }
.files-item-camera,.files-item-meta { margin:0 0 3px; font-size:10px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.files-item-name { margin:9px 0 0; color:var(--muted); font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.files-item-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.files-item-actions .btn { font-size:10px; }
#files-pagination { text-align:center; margin-top:20px; }
.files-scope-note { font-size:11px; margin:21px 0 0; }
.files-index-panel { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border:1px solid var(--line); border-radius:9px; padding:12px 14px; background:#f9fbfc; }
.files-index-panel p { margin:0; font-size:11px; }
.files-index-panel .muted { flex-basis:100%; }
.files-viewer { display:flex; justify-content:center; background:var(--deep); max-height:68vh; overflow:auto; }
.files-viewer img,.files-viewer video { max-width:100%; width:auto; max-height:68vh; display:block; object-fit:contain; }
.files-viewer video { width:100%; }
.files-viewer-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:16px; font-size:11px; }
.files-viewer-error:empty { display:none; }
.tabs { overflow-x:auto; }
.tabs button { flex-shrink:0; white-space:nowrap; }
@media (min-width:1400px) { .files-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:1000px) { .files-folders { grid-template-columns:1fr; } .files-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) {
 .tabs { gap:18px; justify-content:flex-start; }
 .files-heading { align-items:stretch; flex-direction:column; gap:14px; }
 .files-camera-field { min-width:0; max-width:none; }
 .files-heading h2 { font-size:21px; }
 .files-date-controls { gap:12px; }
 .files-grid { gap:10px; }
 .files-item-body { padding:11px; }
 .files-item-actions { gap:5px; }
 .files-item-actions .btn { padding:6px 8px; }
 .files-item-actions .icon { display:none; }
}
@media (max-width:370px) { .files-grid { grid-template-columns:1fr; } }
