/* Studio. Approved photo workspace: silver surfaces, green actions, persistent inspector.
   admin.css supplies component structure; this file owns the complete Studio visual system. */
@font-face{font-family:'Studio Helvetica';src:url('/assets/fonts/HelveticaNeue-Roman.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Studio Helvetica';src:url('/assets/fonts/HelveticaNeue-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Studio Helvetica';src:url('/assets/fonts/HelveticaNeue-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{
 --bg-primary:#f1f3f3;--bg-secondary:#f8fafa;--bg-surface:#fdfefe;--bg-elevated:#fdfefe;--bg-canvas:#f1f3f3;--bg-overlay:rgba(26,40,35,.52);--bg-hover:#e8eeea;--bg-active:#e0ebe4;
 --text-primary:#23292c;--text-secondary:#526066;--text-muted:#657074;--text-dim:#657074;--text-inverse:#fdfefe;
 --border-subtle:#dce1e1;--border-default:#ccd5d1;--border-focus:#295f4d;--border-accent:#295f4d;
 --accent:#295f4d;--accent-rgb:41,95,77;--success:#295f4d;--success-bg:#e4eee7;--success-border:#b1c9b9;--danger:#a23d36;--danger-bg:#f7e9e7;--danger-border:#e9c3be;--warning:#806029;--warning-bg:#f5eddb;--warning-border:#dccda9;--info:#356276;--info-bg:#e7eff2;--info-border:#bed0d9;--purple:#5b5573;--purple-bg:#eceaf1;--purple-border:#cbc5d8;
 --radius-xs:3px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-pill:6px;--sidebar-width:264px;--sidebar-collapsed-width:76px;--header-height:78px;
 --transition-fast:140ms ease;--transition-normal:200ms ease;--transition-smooth:250ms ease;color-scheme:light;
}
html,body{background:var(--bg-primary);color:var(--text-primary);font-family:'Studio Helvetica','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:16px;min-height:100dvh;line-height:1.5}
button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{text-decoration:none}::selection{background:#bed6c6;color:#172c22}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:active{transform:translateY(1px)}
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:#bbc7c0;border-radius:8px}aside{scrollbar-width:thin!important}
/* Translate legacy utility colors into the approved light tokens. Photographic scrims are exempt. */
.text-white,.text-zinc-50,.text-zinc-100,.text-zinc-200,.text-gray-100,[class~="text-white/90"],[class~="text-white/80"],.text-zinc-300{color:var(--text-primary)!important}
.text-zinc-400,.text-zinc-500,.text-zinc-600,.text-gray-400,.text-gray-500{color:var(--text-muted)!important}
.text-emerald-400,.text-emerald-500,.text-amber-400,.text-cyan-400{color:var(--accent)!important}
[class*="border-white/"]{border-color:var(--border-subtle)!important}[class~="bg-white/5"],[class~="bg-white/10"],.bg-zinc-900,.bg-zinc-800{background-color:var(--bg-hover)!important}.bg-black,.bg-zinc-950{background-color:var(--bg-secondary)!important}
h1,h2,h3,h4{color:var(--text-primary);font-weight:500;letter-spacing:-.025em}.mono-num,.font-mono{font-family:inherit!important;font-variant-numeric:tabular-nums}
.admin-header{height:var(--header-height);padding:0 28px;position:sticky;top:0;background:var(--bg-surface);border-bottom:1px solid var(--border-subtle);z-index:50;box-shadow:none;backdrop-filter:none}
.header-brand{gap:20px}.studio-wordmark{font-size:20px;font-weight:700;letter-spacing:-.045em;color:var(--text-primary);white-space:nowrap}.studio-wordmark span{font-weight:400;color:var(--text-muted);letter-spacing:-.02em}.header-brand .studio-tag,.header-divider,.breadcrumb-nav{display:none}.header-actions{gap:11px}.btn-cmd-search{border:0;background:transparent;min-width:0;color:var(--text-muted);padding:8px;font-size:14px}.kbd-shortcut{border-color:var(--border-default);background:var(--bg-primary);color:var(--text-muted)}.status-indicator{padding:0;font-size:13px;background:none}.status-indicator span:last-child{color:var(--text-muted)!important;text-transform:none;letter-spacing:0;font-weight:400;font-size:13px}.status-dot.pulse{animation:none}.status-indicator .status-dot{display:none}
.btn{border-radius:6px;min-height:42px;padding:8px 13px;font-size:14px;font-weight:500;box-shadow:none;white-space:nowrap;line-height:1.4}.btn-primary,.login-submit-btn{background:var(--accent);border-color:var(--accent);color:#fdfefe!important}.btn-primary:hover,.login-submit-btn:hover{background:#214e3f;border-color:#214e3f;color:#fdfefe;box-shadow:none;transform:none}.btn-primary :is(span,svg){color:inherit!important}.btn-secondary{background:var(--bg-surface);border:1px solid var(--border-default);color:var(--text-secondary)}.btn-secondary:hover{background:var(--bg-hover);color:var(--text-primary);border-color:#b9c8be}.btn-danger{background:var(--danger-bg);border-color:var(--danger-border);color:var(--danger)}.btn-icon{border:1px solid transparent;border-radius:6px;color:var(--text-muted);background:transparent}.btn-icon:hover{background:var(--bg-hover);color:var(--text-primary)}#folder-btn{min-width:36px;padding:8px}#folder-btn-text{display:none!important}.studio-save-options{min-height:42px}.dropdown-menu{background:var(--bg-surface);border:1px solid var(--border-default);box-shadow:0 12px 35px #263d3126;border-radius:8px;min-width:290px}.dropdown-item{color:var(--text-primary);padding:12px 15px}.dropdown-item:hover,.dropdown-item.active-item{background:var(--bg-hover)}
.admin-layout{display:flex;align-items:flex-start;min-height:calc(100dvh - var(--header-height))}.admin-sidebar{background:var(--bg-secondary);border-right:1px solid var(--border-subtle);width:var(--sidebar-width);height:calc(100dvh - var(--header-height));position:sticky;top:var(--header-height);flex-shrink:0;overflow-y:auto;z-index:40}.sidebar-header{padding:25px 18px 17px;border:0}.sidebar-header-title{font-weight:500;font-size:15px}.sidebar-header-sub{font-size:13px;text-transform:none;letter-spacing:0;color:var(--text-muted)}.sidebar-nav-group{padding:4px 12px 13px;gap:3px}.sidebar-section-title{padding:11px 10px 8px;font-size:12px;letter-spacing:0;text-transform:none;font-weight:500;color:var(--text-muted)}.nav-item{border:0;min-height:44px;padding:10px 13px;color:var(--text-secondary);border-radius:5px;font-weight:400;font-size:15px;gap:10px}.nav-item:hover{background:var(--bg-hover);color:var(--text-primary)}.nav-item.active{background:var(--bg-active);color:var(--accent);border:0;font-weight:500}.nav-item.active .nav-icon{color:var(--accent)}.nav-icon{width:18px;height:18px;stroke-width:1.6}.nav-count,.nav-item.active .nav-count{background:transparent;border:0;color:var(--text-muted);font-size:12px;padding:0}.sidebar-footer{margin-top:auto;padding:18px 12px}.sidebar-profile{padding:15px 8px 0;border:0;border-top:1px solid var(--border-subtle);background:none}.avatar-circle{background:#dce7df;color:#33533f;border:0;border-radius:50%;width:38px;height:38px;font-size:14px}.profile-meta div:first-child{color:var(--text-primary)!important;font-size:14px!important}.admin-main{min-width:0;flex:1;display:flex;flex-direction:column;background:var(--bg-primary)}
.admin-content-wrap{max-width:1680px;width:100%;padding:40px 40px 64px;margin:0 auto;display:flex;flex-direction:column;gap:28px}.page-title{font-size:36px!important;line-height:1.15;font-weight:500!important;letter-spacing:-.04em}.admin-content-wrap>div:first-child{border-bottom:0!important;padding-bottom:8px}.admin-content-wrap>div:first-child p{font-size:15px;line-height:1.65;margin-top:8px;color:var(--text-muted)}.section-title{font-size:18px!important;letter-spacing:-.02em;font-weight:500!important}.card,.tf-card,.kpi-card{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:8px;box-shadow:none;padding:23px}.card:hover,.tf-card:hover,.kpi-card:hover{border-color:var(--border-subtle);box-shadow:none}.card-header{margin-bottom:20px;padding-bottom:15px;border-color:var(--border-subtle)}.input-label,.drawer-section-title{font-size:14px;line-height:1.4;letter-spacing:0;font-weight:500;text-transform:none;color:var(--text-secondary)}.input-text,.input-textarea,.input-select,.login-input{background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-default);border-radius:6px;min-height:44px;padding:9px 11px;font-size:15px;box-shadow:none}.input-text:focus,.input-textarea:focus,.input-select:focus,.login-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px #295f4d14}.input-text::placeholder,.input-textarea::placeholder,.login-input::placeholder{color:#75807b}.input-helper{font-size:13px;color:var(--text-muted);line-height:1.65}.form-grid-2,.form-grid-3{gap:18px}.input-textarea{resize:vertical}.form-section{border-color:var(--border-subtle)}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}
/* The library is the main Studio surface. */
.admin-action-bar{position:static;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 29px 23px;background:transparent;border:0;backdrop-filter:none}.admin-action-bar h1{font-size:34px;line-height:1.15;font-weight:500;letter-spacing:-.04em}.admin-action-bar p{font-size:14px;margin-top:8px;line-height:1.6;color:var(--text-muted)}.gallery-workspace-wrap{max-width:none;width:100%;margin:0;padding:0 0 30px;display:flex;flex-direction:column;gap:18px}.search-input-wrap{min-width:200px!important}.search-input-wrap .input-text{background:transparent;min-height:42px;font-size:14px;padding-left:32px}.search-icon{color:var(--text-muted);width:14px;height:14px}.clear-search{color:var(--text-muted)}.drop-zone-box{margin:0 29px;border:1px dashed #bccbc1;border-radius:6px;background:transparent;padding:14px 18px;text-align:left;display:flex;align-items:center;gap:15px;min-height:58px}.drop-zone-box>svg{width:23px;height:23px;flex-shrink:0;margin:0!important;color:var(--accent)!important}.drop-zone-box>div:first-of-type{font-size:14px;font-weight:500;white-space:nowrap;margin:0!important}.drop-zone-box>div:last-child{font-size:13px;line-height:1.6;max-width:400px}.drop-zone-box:hover,.drop-zone-box.drag-over{background:var(--bg-active);border-color:var(--accent)}.studio-library-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;align-items:start;min-width:0;min-height:calc(100dvh - 232px)}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:25px 16px;padding:0 26px 25px;min-width:0}.media-card{border:0;background:none;box-shadow:none;border-radius:0;overflow:visible;min-width:0;cursor:pointer;position:relative;transition:none}.media-card:hover{border:0;transform:none;box-shadow:none}.media-thumb-wrap{border-radius:4px;border:2px solid transparent;aspect-ratio:4/3;overflow:hidden;position:relative;background:#e5ebe7}.media-thumb-img{width:100%;height:100%;object-fit:cover;display:block;transition:filter .15s}.media-card.selected .media-thumb-wrap{border-color:var(--accent);padding:3px;background:var(--bg-surface)}.media-card.selected .media-thumb-img{border-radius:1px}.media-card:hover .media-thumb-img{filter:brightness(.97)}.media-index-tag{display:none}.media-drag-handle{background:var(--bg-surface);color:var(--text-muted);border:1px solid var(--border-default);border-radius:4px;top:8px;left:8px;opacity:0}.media-card:hover .media-drag-handle,.media-card:focus-within .media-drag-handle{opacity:1}.media-hover-overlay{background:rgba(19,31,25,.12);gap:8px;align-items:flex-end;padding-bottom:10px}.media-hover-overlay .btn{font-size:13px}.media-hover-overlay .btn-primary{background:#fdfefe;color:#23392c!important;border-color:#fdfefe}.media-hover-overlay .btn-primary:hover{background:#e6eee8}.media-hover-overlay .btn-danger{background:#fdfefe;color:var(--danger);border-color:#fdfefe}.media-card:focus-within .media-hover-overlay{opacity:1}.media-meta-footer{padding:10px 2px 0;border:0;background:none;min-width:0}.media-filename{font-size:14px;font-weight:500;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-caption{font-size:13px;color:var(--text-muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-meta-footer>div:nth-child(3){font-size:12px!important;color:var(--text-muted)!important;border:0!important;padding:0!important;margin-top:6px}.media-meta-footer>div:nth-child(3)>span:first-child{display:none}.sortable-chosen{opacity:.65}.sortable-ghost{outline:2px dashed var(--accent);outline-offset:5px}.empty-state-box{border:1px dashed var(--border-default);margin:0 29px;padding:45px 22px;border-radius:6px;background:transparent}.empty-state-title{font-size:24px;color:var(--text-primary)}.empty-state-desc{color:var(--text-muted);font-size:14px}.empty-state-icon{color:#a1b6a7}
/* Existing editor is a persistent side inspector on desktop and a modal drawer on mobile. */
#edit-drawer{display:none;position:sticky;inset:auto;top:calc(var(--header-height) + 16px);width:auto;max-width:none;height:calc(100dvh - var(--header-height) - 32px);min-height:450px;transform:none;background:var(--bg-surface);border:1px solid var(--border-subtle);border-right:0;border-radius:7px 0 0 7px;box-shadow:none;z-index:10;overflow:hidden;flex-direction:column}#edit-drawer.drawer-open{display:flex;transform:none}.drawer-header{padding:19px 19px 15px;border-color:var(--border-subtle);background:var(--bg-surface);flex-shrink:0}.drawer-header h2{font-size:16px;font-weight:500}.drawer-header p{font-size:13px;line-height:1.5}.drawer-header .btn-icon{flex-shrink:0}.drawer-body{padding:17px 19px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:18px}.drawer-body .input-text,.drawer-body .input-textarea,.drawer-body .input-select{font-size:14px;min-height:42px;padding:8px 9px}.drawer-section{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:13px}.drawer-section-title{font-size:14px;margin-bottom:0;gap:8px}.drawer-body .form-grid-2{grid-template-columns:1fr;gap:13px}.drawer-body .input-label{font-size:13px}.drawer-body .input-helper{font-size:12px}.drawer-body>div:first-child{aspect-ratio:3/2;border:0!important;background:var(--bg-primary)!important;border-radius:4px;flex-shrink:0;display:block}.drawer-body>div:first-child img{width:100%;height:100%;object-fit:cover}.drawer-footer{padding:14px 19px;border-top:1px solid var(--border-subtle);background:var(--bg-surface);gap:8px;flex-shrink:0}.drawer-footer .btn{font-size:13px;min-height:34px;padding:8px 10px}.drawer-footer>.btn-primary{flex:1}.replace-dropzone{border-color:var(--border-default);background:var(--bg-primary);padding:15px 10px}#replace-image-container{order:3}#replace-status-area{background:var(--success-bg)}#edit-drawer-backdrop{display:none!important}#drawer-video-indicator{background:rgba(20,30,24,.3)!important;color:#fff}
/* Overview and collection curation use photographs, not decorative telemetry. */
.editorial-collection-grid,.collections-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.editorial-collection-card,.collection-card,.recent-media-card{border:0;background:none;border-radius:4px;overflow:hidden;box-shadow:none;cursor:pointer}.editorial-collection-card:hover,.recent-media-card:hover{transform:none;border:0;box-shadow:none}.editorial-photo-cover{height:220px;border-radius:4px;overflow:hidden;position:relative}.editorial-photo-cover img{width:100%;height:100%;object-fit:cover}.editorial-collection-info{padding:20px 24px;gap:8px}.editorial-collection-name{font-size:18px;font-weight:500;color:var(--text-primary)}.editorial-collection-meta{font-size:13px;color:var(--text-muted)}.editorial-cover-overlay{display:none}.recent-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.recent-media-thumb{aspect-ratio:4/3;overflow:hidden;border-radius:4px}.recent-media-thumb img{width:100%;height:100%;object-fit:cover}.recent-media-info{background:none;padding:12px 0}.recent-media-title{font-size:15px;font-weight:500;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-media-caption,.recent-media-footer{font-size:13px;color:var(--text-muted)}.recent-media-caption{margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-media-footer{display:flex;justify-content:space-between;margin-top:9px}.workspace-disclosure{border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}.workspace-disclosure summary{padding:19px 0;cursor:pointer;font-size:16px;font-weight:500}.disclosure-note{float:right;font-size:14px;font-weight:400;color:var(--text-muted)}.disclosure-body{display:grid;gap:24px;padding-bottom:24px}.overview-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.editorial-section{padding:0;border:0;background:none}.editorial-section-header{display:flex;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid var(--border-subtle);margin-bottom:12px}.editorial-section-header h3{font-size:17px}.activity-row,.top-media-row{padding:14px 0;border-bottom:1px solid var(--border-subtle)}.activity-detail,.activity-sub{font-size:14px;color:var(--text-secondary)}.activity-sub{display:block;font-size:13px;color:var(--text-muted);margin-top:4px}
.analytics-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:8px}.analytics-strip-cell{padding:22px;border-right:1px solid var(--border-subtle)}.analytics-strip-cell:last-child{border:0}.analytics-strip-label,.kpi-label,.live-monitor-title,.live-section-label{letter-spacing:0;text-transform:none;font-weight:500;font-size:13px;color:var(--text-muted)}.analytics-strip-value,.kpi-val,.live-count-num{font-size:34px;font-weight:500;color:var(--text-primary);letter-spacing:-.035em}.analytics-strip-meta{font-size:13px}.analytics-strip-cell::before{display:none}.traffic-workstation,.live-monitor-panel{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:8px;padding:22px}.traffic-metric-tab,.time-range-tab{font-size:13px;letter-spacing:0;text-transform:none;border-radius:4px}.traffic-metric-tab.active,.time-range-tab.active{background:var(--bg-active);color:var(--accent)}.traffic-chart-main{background:none}.admin-table th,.analytics-table th{background:var(--bg-secondary);color:var(--text-muted);text-transform:none;letter-spacing:0;font-size:13px;font-weight:500;padding:12px 16px}.admin-table td,.analytics-table td{color:var(--text-secondary);font-size:14px;padding:14px 16px;border-color:var(--border-subtle)}.admin-table tr:hover,.analytics-table tr:hover{background:var(--bg-hover)}.table-wrapper{border:1px solid var(--border-subtle);border-radius:8px;overflow:auto}.active-filter-banner{color:var(--info);background:var(--info-bg);border-color:var(--info-border)}.active-filter-banner .banner-close-btn{color:var(--info);border-color:var(--info-border)}.kpi-icon{background:var(--bg-active);color:var(--accent);border-color:var(--border-subtle)}
/* Uploads, dialogs, command search and account entry. */
.modal-backdrop{background:var(--bg-overlay);backdrop-filter:blur(4px);z-index:100;overflow:auto;padding:28px}.modal-box,.modal-box-large{border:1px solid var(--border-default);background:var(--bg-surface);border-radius:12px;box-shadow:0 24px 80px #19382733;padding:28px;max-height:calc(100dvh - 56px);overflow:auto}.modal-box-large{max-width:1040px;width:100%}.modal-box{max-width:560px}.modal-box h3,.modal-box-large h3{font-size:28px;line-height:1.2;font-weight:500!important;letter-spacing:-.035em}.upload-curate-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.upload-preview-pane{display:flex;flex-direction:column;gap:16px;position:sticky;top:0;align-self:start}.upload-preview-frame{border:1px solid var(--border-subtle);background:var(--bg-primary);border-radius:5px;overflow:hidden;aspect-ratio:4/3;display:grid;place-items:center}.upload-preview-img{width:100%;height:100%;object-fit:contain}.upload-badge-strip{display:flex;flex-wrap:wrap;gap:6px}.upload-badge{padding:4px 7px;font-size:12px;background:var(--bg-secondary);border:1px solid var(--border-subtle);color:var(--text-muted);border-radius:3px}.upload-badge.highlight{background:var(--bg-active);border-color:var(--success-border);color:var(--accent)}.upload-specs-box{display:none}.upload-specs-label,.upload-specs-val{font-size:13px}.upload-batch-queue{display:flex;gap:8px;overflow:auto}.upload-batch-thumb{position:relative;flex:0 0 70px;border:2px solid transparent;border-radius:4px;padding:2px}.upload-batch-thumb.active{border-color:var(--accent)}.upload-batch-thumb img{width:62px;height:45px;object-fit:cover}.upload-batch-thumb-remove{position:absolute;right:0;top:0;background:var(--bg-surface);border:1px solid var(--border-default);border-radius:3px;padding:0 5px;color:var(--text-primary)}#upload-status-indicator{white-space:normal;max-width:540px;line-height:1.6;color:var(--text-muted)}#upload-exif-summary{white-space:normal;font-family:inherit;background:var(--success-bg)!important;border-color:var(--success-border)!important;font-size:13px!important}#upload-exif-indicator{white-space:normal;text-align:right;max-width:230px;font-size:12px;line-height:1.5}#upload-exif-indicator span{font-size:12px!important}#photo-upload-modal .form-grid-2,#photo-upload-modal .grid-cols-4{display:grid;grid-template-columns:1fr 1fr;gap:14px}#photo-upload-modal .input-text{font-size:14px!important;min-height:38px!important;padding:9px 10px!important}#upload-datetaken{font-size:13px!important}#upload-submit-btn{min-width:160px!important}#cmd-palette-backdrop{background:var(--bg-overlay);backdrop-filter:blur(4px);z-index:110}.cmd-palette-box{background:var(--bg-surface);border-color:var(--border-default);border-radius:10px;box-shadow:0 20px 70px #1d382c33}.cmd-search-input{background:transparent;color:var(--text-primary)}.cmd-search-input::placeholder{color:var(--text-muted)}.cmd-input-row,.cmd-footer{border-color:var(--border-subtle)}.cmd-item{color:var(--text-secondary)}.cmd-item:hover,.cmd-item.selected{background:var(--bg-active);color:var(--accent)}#toast{background:#263e32;border:1px solid #66836f;color:#f3f7f3;border-radius:7px;box-shadow:0 7px 24px #16392124}#toast-message,#toast svg{color:#f3f7f3!important}
#login-overlay{background:var(--bg-primary);z-index:200;backdrop-filter:none}#login-overlay::before{content:'A little space\a for your work.';white-space:pre;position:absolute;left:12%;top:37%;font-size:clamp(38px,4vw,66px);line-height:1.04;font-weight:400;letter-spacing:-.055em;color:var(--text-primary)}#login-card{position:relative;margin-left:43%;width:min(390px,calc(100vw - 40px));padding:36px;background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:10px;box-shadow:0 18px 55px #2b493012}.login-icon-badge{background:var(--bg-active);border:0;color:var(--accent);border-radius:7px}.login-title{font-size:30px;font-weight:500;letter-spacing:-.04em}.login-subtitle{font-size:15px;line-height:1.65;color:var(--text-muted)}.login-field-label{font-size:14px;text-transform:none;letter-spacing:0;color:var(--text-secondary)}.login-input{background:var(--bg-primary);border-color:var(--border-default);box-shadow:none;color:var(--text-primary);border-radius:6px}.login-submit-btn{border-radius:6px;min-height:42px;box-shadow:none;font-size:15px}.login-card-footer{font-size:13px;color:var(--text-muted)}.shake-error{animation:none}
/* Responsive operation. Inspector becomes a true modal with keyboard focus on small screens. */
@media (min-width: 1600px){.studio-library-layout{grid-template-columns:minmax(0,1fr) 350px}.gallery-grid{gap:28px 22px}.admin-content-wrap{padding-left:42px;padding-right:42px}}
@media (max-width: 1350px){:root{--sidebar-width:240px}.studio-library-layout{grid-template-columns:minmax(0,1fr) 300px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:24px;padding-right:24px}.admin-action-bar{padding-left:24px;padding-right:24px}.drop-zone-box{margin-left:24px;margin-right:24px}.header-actions .status-indicator,.btn-cmd-search{display:none}.drawer-header,.drawer-body,.drawer-footer{padding-left:17px;padding-right:17px}.drop-zone-box>div:last-child{max-width:280px}}
@media (max-width: 1099px){.studio-library-layout{display:block}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#edit-drawer{position:fixed;top:0;right:0;left:auto;bottom:0;max-width:460px;width:min(460px,100vw);height:100dvh;min-height:0;border-radius:8px 0 0 8px;border-right:0;z-index:90;box-shadow:-18px 0 65px #233e2826}#edit-drawer-backdrop.active{display:block!important;background:rgba(23,39,30,.35);z-index:89;opacity:1;visibility:visible}#edit-drawer:not(.drawer-open){display:none}.drawer-body .form-grid-2{grid-template-columns:1fr 1fr}.drawer-body .input-text{font-size:13px}.drop-zone-box{flex-wrap:wrap;gap:7px 12px}.drop-zone-box>div:last-child{max-width:none;margin-left:35px}.upload-curate-grid{gap:22px}.admin-content-wrap{padding:29px 25px 50px}.admin-action-bar{align-items:flex-start}.admin-action-bar>div:last-child{justify-content:flex-end}.search-input-wrap{min-width:175px!important}.overview-bottom-grid{grid-template-columns:1fr}.disclosure-note{display:none}}
@media (min-width: 769px){.admin-header .header-brand>.btn-icon{display:none!important}.admin-sidebar.collapsed .sidebar-nav-group{padding-left:7px;padding-right:7px}}
@media (max-width: 768px){:root{--header-height:62px}.admin-header{padding:0 17px}.studio-wordmark{font-size:15px}.studio-wordmark span{display:none}.header-actions{gap:7px}.header-actions #folder-btn,.header-actions .status-indicator,.header-actions .btn-cmd-search{display:none!important}.studio-save-options{font-size:11px;padding:8px 10px}.admin-sidebar{position:fixed;top:var(--header-height);left:0;bottom:0;width:245px;height:calc(100dvh - var(--header-height));transform:translateX(-100%);z-index:70;background:var(--bg-surface);transition:transform .2s}.admin-sidebar.mobile-open{transform:translateX(0)}.mobile-sidebar-backdrop{background:rgba(22,36,28,.35)}.admin-main{width:100%}.admin-content-wrap{padding:27px 21px 45px;gap:25px}.page-title{font-size:28px!important}.admin-action-bar{padding:26px 22px 20px}.gallery-grid{padding:0 21px 24px;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 15px}.drop-zone-box{margin:0 22px}.upload-curate-grid{grid-template-columns:1fr}.upload-preview-pane{position:static}.upload-preview-frame{max-height:300px;aspect-ratio:3/2}.upload-badge-strip{gap:6px}.modal-backdrop{padding:18px}.modal-box,.modal-box-large{max-height:calc(100dvh - 36px);padding:23px}.modal-box h3,.modal-box-large h3{font-size:22px}.analytics-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-strip-cell:nth-child(2){border-right:0}.analytics-strip-cell:nth-child(-n+2){border-bottom:1px solid var(--border-subtle)}.recent-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-collection-grid,.collections-grid{gap:22px 18px}#login-overlay::before{display:none}#login-card{margin-left:0;padding:32px}.drawer-header p{font-size:11px}.studio-wordmark{white-space:nowrap}.header-brand{gap:10px}.header-actions #save-main-btn{font-size:11px;padding:9px 11px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.admin-header{padding:0 13px}.studio-wordmark{font-size:14px}.studio-save-options{font-size:10px;padding:8px;min-width:0}.admin-action-bar{padding:25px 18px 19px;flex-direction:column;align-items:stretch;gap:17px}.admin-action-bar>div:last-child{justify-content:space-between;display:flex;gap:10px}.admin-action-bar h1{font-size:27px}.admin-action-bar p{font-size:12px}.search-input-wrap{min-width:0!important;flex:1}.search-input-wrap .input-text{width:100%;font-size:12px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 25px;gap:23px 13px}.media-filename{font-size:11px}.media-caption{font-size:10px}.media-thumb-wrap{aspect-ratio:1/1}.media-hover-overlay{display:none}.media-drag-handle{opacity:1;top:5px;left:5px;width:26px;height:26px}.drop-zone-box{margin:0 18px;gap:5px 11px;padding:14px}.drop-zone-box>div:first-of-type{white-space:normal;max-width:230px;font-size:11px}.drop-zone-box>div:last-child{margin-left:34px;font-size:10px;line-height:1.65}.admin-content-wrap{padding:27px 19px 45px}.recent-media-grid{gap:22px 15px}.editorial-collection-grid,.collections-grid{grid-template-columns:1fr}.editorial-photo-cover{height:200px}.overview-bottom-grid{gap:25px}.card,.tf-card,.kpi-card{padding:19px}.kpi-val{font-size:25px}.kpi-label{font-size:10px}.analytics-strip-cell{padding:18px}.analytics-strip-value{font-size:25px}.form-grid-2,.form-grid-3{grid-template-columns:1fr}.modal-backdrop{padding:10px}.modal-box,.modal-box-large{max-height:calc(100dvh - 20px);padding:21px 18px}.upload-preview-frame{max-height:230px}.upload-curate-grid{gap:23px}.modal-box-large>div:last-child{flex-wrap:wrap}#upload-status-indicator{max-width:none;width:100%;font-size:11px}#upload-exif-indicator{max-width:180px}#upload-submit-btn{min-width:150px!important}#login-card{width:calc(100vw - 32px);padding:31px 26px}.studio-library-layout{min-height:0}.drawer-body{padding:20px}.drawer-header,.drawer-footer{padding:17px 20px}.drawer-body .input-text,.drawer-body .input-textarea{font-size:14px}.drawer-body .input-label{font-size:12px}.drawer-body .input-helper{font-size:11px}.modal-box-large .input-text,.modal-box-large .input-textarea{font-size:14px!important}.admin-header #save-main-btn svg:last-child{display:none}.admin-header .header-actions>.btn-icon{display:none}.analytics-overview-split,.analytics-secondary-grid{grid-template-columns:1fr}.admin-table,.analytics-table{min-width:550px}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

@media (min-width: 1100px){.drawer-header .btn-icon{display:none}.studio-library-layout:not(:has(#edit-drawer.drawer-open)){grid-template-columns:minmax(0,1fr)}}
.collection-cover{position:relative;aspect-ratio:2/1;overflow:hidden;border-radius:4px;background:var(--bg-secondary)}.collection-cover img{width:100%;height:100%;object-fit:cover}.collection-body{padding:15px 0;background:transparent}.collection-title{font-size:16px;font-weight:500}.collection-meta{font-size:12px;color:var(--text-muted);line-height:1.6}.collection-cover-overlay{display:none}.collection-count{font-size:11px;color:var(--text-muted)}
/* Remove dark-only visual effects from the retained structural components. */
.login-title{color:var(--text-primary)}.login-input:focus{background:var(--bg-surface);color:var(--text-primary)}.login-backdrop-glow,.login-grid-pattern{display:none}.login-divider{background:var(--border-subtle)}.media-hover-overlay,.media-drag-handle{backdrop-filter:none;-webkit-backdrop-filter:none}.media-drag-handle{right:auto;width:26px;height:26px;z-index:2}.media-drag-handle:hover{color:var(--accent)}#edit-drawer-backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}

.modal-box.modal-box-large{max-width:1040px}.studio-details{border-top:1px solid var(--border-subtle);padding-top:15px}.studio-details summary{cursor:pointer;font-size:12px;font-weight:500;color:var(--text-secondary);margin-bottom:15px}.studio-details[open]{display:grid;gap:16px}.studio-details .drawer-section{margin-bottom:18px}#photo-upload-modal .uppercase{text-transform:none;letter-spacing:0}#photo-upload-modal button:not(.btn-icon){white-space:nowrap}#photo-upload-modal .input-helper{font-size:11px}#photo-upload-modal .input-label{font-size:12px}#photo-upload-modal button:not(.btn){font-size:11px}.text-blue-300,.text-blue-400,.text-purple-300,.text-purple-400,.text-violet-400,.text-amber-300,.text-cyan-300{color:var(--info)!important}.progress-bar-fill{background:var(--accent)!important}

.admin-content-wrap [class*="bg-black/"]{background:var(--bg-secondary)!important}.kpi-icon{background:var(--bg-active)!important;color:var(--accent)!important;border-color:var(--border-subtle)!important}.security-empty{padding:35px 20px!important;text-align:center;color:var(--text-muted)!important;font-size:12px!important}.admin-header #save-main-btn>svg:last-child{display:none}

@media (max-width: 360px){.header-actions #save-main-btn>svg{display:none}.studio-wordmark{font-size:13px}.header-brand{gap:7px}.header-actions{gap:5px}.studio-save-options{padding-inline:7px}}

.admin-sidebar{box-shadow:none}.studio-order-controls{display:flex;gap:8px;margin:16px 0}.studio-order-controls .btn{min-height:36px;font-size:11px;flex:1}.studio-order-controls button:disabled{cursor:not-allowed;opacity:.45}@media (max-width: 768px){.admin-sidebar.mobile-open{box-shadow:12px 0 35px #233d2626}}

/* Large-display comfort. Scale by interface role, rather than browser zoom. */
@media (min-width: 769px){
 .sidebar-header{padding:28px 22px 20px}.sidebar-header-title{font-size:16px}.sidebar-header-sub{font-size:13px}.sidebar-section-title{font-size:12px;padding:12px 13px 9px}.sidebar-nav-group{padding-inline:14px}.nav-count,.nav-item.active .nav-count{font-size:12px}.sidebar-footer{padding:20px 18px}.profile-meta div:first-child{font-size:14px!important}.profile-meta div:last-child{font-size:12px!important}
 .admin-content-wrap .text-xs{font-size:14px}.admin-content-wrap .text-sm{font-size:16px}.admin-content-wrap .text-base{font-size:18px}.admin-content-wrap>div:first-child p{font-size:16px}.admin-action-bar{padding:34px 32px 26px}.admin-action-bar p{font-size:15px}.search-input-wrap{min-width:250px!important}.search-input-wrap .input-text{min-height:42px;font-size:14px}.gallery-grid{gap:28px 20px;padding-inline:30px}.drawer-header,.drawer-body,.drawer-footer{padding-inline:23px}.drawer-body .input-text,.drawer-body .input-textarea,.drawer-body .input-select{font-size:14px;min-height:42px}.drawer-body .input-label{font-size:13px}.drawer-body .input-helper{font-size:12px}.drawer-body .form-grid-2{gap:16px}.drawer-footer .btn{font-size:13px;min-height:40px}.studio-details summary{font-size:14px}.studio-order-controls .btn{font-size:13px;min-height:40px}
 #photo-upload-modal .input-text{font-size:14px!important;min-height:42px!important}.modal-box.modal-box-large{max-width:1180px}#photo-upload-modal .input-label{font-size:14px}#photo-upload-modal button:not(.btn){font-size:13px}#photo-upload-modal .input-helper{font-size:13px}.upload-curate-grid{gap:36px}.upload-badge{font-size:12px}.upload-exif-summary{font-size:13px}.input-textarea{line-height:1.6}
}
@media (min-width: 1800px){
 :root{--sidebar-width:296px;--header-height:84px}.admin-sidebar .nav-item{font-size:16px;min-height:48px}.sidebar-header-title{font-size:18px}.sidebar-header-sub{font-size:14px}.sidebar-section-title{font-size:13px}.nav-icon{width:20px;height:20px}.nav-count,.nav-item.active .nav-count{font-size:13px}.studio-wordmark{font-size:22px}.admin-content-wrap{max-width:1920px;padding:48px 52px 72px;gap:34px}.page-title{font-size:40px!important}.admin-action-bar h1{font-size:38px}.studio-library-layout{grid-template-columns:minmax(0,1fr) 370px}.gallery-grid{gap:32px 24px;padding-inline:36px}.editorial-photo-cover{height:260px}.btn{font-size:15px;min-height:46px}.input-text,.input-textarea,.input-select{font-size:16px;min-height:46px}.media-filename{font-size:16px}.media-caption{font-size:14px}.editorial-collection-name{font-size:21px}.editorial-collection-meta,.recent-media-caption,.recent-media-footer{font-size:14px}.recent-media-title{font-size:17px}
}
/* Collection names must stay readable on every screen size. */
.editorial-collection-name,.collection-title,.recent-media-title{color:var(--text-primary)}
@media (max-width: 768px){html,body{font-size:15px}.admin-sidebar{width:272px}.admin-sidebar .nav-item{font-size:14px;min-height:42px}.nav-icon{width:17px;height:17px}.sidebar-header-title{font-size:15px}.sidebar-header-sub{font-size:12px}.sidebar-section-title{font-size:12px}.sidebar-profile{font-size:13px}.editorial-collection-name{font-size:17px}.editorial-collection-meta{font-size:12px}.drawer-header h2{font-size:18px}.drawer-body .input-text,.drawer-body .input-textarea,.drawer-body .input-select{font-size:16px}}
/* Keep the Apply action visible while the larger desktop inspector scrolls internally. */
@media (min-width: 1100px){#edit-drawer{height:calc(100dvh - 320px);min-height:380px}}

/* Studio traffic reporting: full-period aggregates, independent of log pagination. */
#dashboard-traffic { margin:24px 0 36px; padding:28px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:8px; min-width:0 }
.traffic-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px }
.traffic-section-heading h2 { font-size:24px; font-weight:650; letter-spacing:-.025em }
.traffic-section-heading h3,.traffic-ranking h3 { font-size:17px; font-weight:650 }
.traffic-section-heading p,.traffic-period,.traffic-note,.traffic-section-heading>span { color:var(--text-secondary); font-size:14px; margin-top:6px }
.traffic-range { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 20px }
.traffic-range button { padding:10px 14px; border-radius:5px; font-size:14px; color:var(--text-secondary); border:1px solid transparent }
.traffic-range button:hover { background:var(--bg-hover) }
.traffic-range button[aria-pressed=true] { background:var(--bg-active); color:var(--accent); border-color:var(--border-subtle) }
.traffic-filters { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-bottom:20px }
.traffic-filters label { display:grid; gap:8px; font-size:14px; font-weight:550; min-width:180px }
.traffic-filters input,.traffic-filters select { width:100%; min-height:44px }
.traffic-search { flex:1 }
.traffic-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--border-subtle); margin:20px 0 28px }
.traffic-metrics>div { padding:22px 20px 22px 0 }
.traffic-metrics dt { color:var(--text-secondary); font-size:14px }
.traffic-metrics dd { margin:8px 0 0; font-size:30px; font-weight:600; letter-spacing:-.025em; overflow-wrap:anywhere; font-variant-numeric:tabular-nums }
.traffic-chart { margin-bottom:30px }
.traffic-chart svg { display:block; width:100%; max-height:340px; margin-bottom:16px }
.traffic-chart svg text { fill:var(--text-secondary); font:12px sans-serif }
.traffic-chart summary,.traffic-log summary { cursor:pointer; font-size:14px; padding:12px 0; font-weight:550 }
.traffic-ranking-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 40px; margin-bottom:28px }
.traffic-ranking ol { padding:0; list-style:none; margin-top:18px }
.traffic-ranking li { margin-bottom:17px }
.traffic-ranking li>div { display:flex; justify-content:space-between; gap:14px; font-size:14px; margin-bottom:7px }
.traffic-ranking li>div>span:first-child,.traffic-ranking button { overflow-wrap:anywhere; text-align:left }
.traffic-ranking li>div>span:last-child { white-space:nowrap; font-variant-numeric:tabular-nums }
.traffic-ranking small { color:var(--text-secondary) }
.traffic-ranking button { color:var(--accent); text-decoration:underline; text-underline-offset:3px }
.traffic-ranking progress { display:block; width:100%; height:5px; border:0; border-radius:3px; overflow:hidden; background:var(--bg-hover); accent-color:var(--accent) }
.traffic-ranking progress::-webkit-progress-bar { background:var(--bg-hover) }
.traffic-ranking progress::-webkit-progress-value { background:var(--accent) }
.traffic-ranking progress::-moz-progress-bar { background:var(--accent) }
.traffic-log { border-top:1px solid var(--border-subtle) }
.traffic-log summary span { color:var(--text-secondary); font-weight:400; margin-left:12px }
.traffic-table-scroll { overflow:auto; max-height:480px }
#dashboard-traffic table { width:100%; font-size:14px; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums }
#dashboard-traffic th,#dashboard-traffic td { padding:14px 16px; border-bottom:1px solid var(--border-subtle); vertical-align:top; min-width:130px }
#dashboard-traffic th { background:var(--bg-hover); font-weight:600 }
#dashboard-traffic td small { display:block; color:var(--text-secondary); margin-top:5px }
.traffic-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 0; font-size:14px }
.traffic-empty { padding:28px 0; color:var(--text-secondary); font-size:15px }
.traffic-note { line-height:1.6; max-width:80ch }
#dashboard-traffic button:disabled { opacity:.45; cursor:default }
@media(max-width:700px) {
 #dashboard-traffic { padding:18px; margin-top:12px }
 .traffic-section-heading { align-items:start; flex-wrap:wrap }
 .traffic-section-heading h2 { font-size:22px }
 .traffic-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) }
 .traffic-metrics dd { font-size:25px }
 .traffic-ranking-grid { grid-template-columns:1fr; gap:20px }
 .traffic-filters label { min-width:0; width:100%; flex-basis:100% }
 .traffic-range button { padding:10px; font-size:13px }
 .traffic-chart svg { min-height:180px }
}

/* Opaque Studio table headers replace translucent dark-theme utilities. */
.studio-panel-heading{background:var(--bg-secondary);border-color:var(--border-subtle);color:var(--text-primary)}

.studio-traffic-row:hover{background:var(--bg-hover)}
.studio-ip-chip{background:var(--bg-primary);color:var(--text-primary)!important}
.studio-ip-chip:hover{background:var(--bg-active)}

/* Reporting follows the Sugar Inventory Superadmin structure in Studio colors. */
.report-page #dashboard-traffic{border:0;background:transparent;border-radius:0;padding:0;margin:0 0 32px}
.report-page [hidden]{display:none!important}
.report-notice{padding:14px 18px;background:var(--info-bg);color:var(--info);border-radius:6px;font-size:14px;line-height:1.6}
.report-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border-default);margin:0 0 28px;overflow-x:auto}
.report-tabs [role=tab]{padding:14px 20px;min-height:48px;border-bottom:3px solid transparent;font-size:15px;font-weight:600;white-space:nowrap;color:var(--text-secondary)}
.report-tabs [aria-selected=true]{background:var(--bg-active);border-bottom-color:var(--accent);color:var(--accent)}
.report-tabs [role=tab]:hover{background:var(--bg-hover)}
.report-page .traffic-filters{padding:20px;background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:12px}
.report-page .traffic-range{gap:8px}
.report-page .traffic-range [aria-pressed=true]{background:var(--accent);color:var(--text-inverse);border-color:var(--accent)}
.report-page .traffic-range button{border:1px solid var(--border-default);background:var(--bg-surface)}
.report-page .traffic-metrics{border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface);overflow:hidden}
.report-page .traffic-metrics>div{padding:22px;border-right:1px solid var(--border-subtle)}
.report-page .traffic-metrics>div:last-child{border:0}
.report-page .traffic-metrics dd{font-size:28px}
.report-page .traffic-ranking-grid{gap:20px}
.report-page .traffic-ranking{padding:22px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface);min-width:0}
.report-page .traffic-ranking h3{font-size:18px;margin-bottom:22px}
.report-page .traffic-table-scroll{border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface);max-height:none;margin:18px 0}
.report-page .traffic-log{border:0}
.report-page .traffic-log>summary{font-size:20px;pointer-events:none;list-style:none;padding-top:24px}
.report-page .traffic-log>summary::-webkit-details-marker{display:none}
.report-page .traffic-log>summary span{font-size:14px}
.report-table-title{font-size:20px;font-weight:600;margin:28px 0 12px}
.report-page-link{color:var(--accent);text-align:left;text-decoration:underline;text-underline-offset:3px;min-height:32px;overflow-wrap:anywhere}
.report-section-heading{margin:24px 0}.report-section-heading h2{font-size:24px;font-weight:600}.report-section-heading p{color:var(--text-secondary);font-size:14px;margin-top:6px}
.report-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.report-chart{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:12px;padding:24px;min-width:0}
.report-chart h3{font-size:18px;font-weight:600}.report-chart>p{font-size:14px;color:var(--text-secondary);margin:6px 0 24px}.report-chart-wide{grid-column:1/-1}
.report-chart .traffic-chart{margin:0}.report-chart-legend{list-style:none;padding:0;margin:22px 0 0}.report-chart-legend li{margin:15px 0}.report-chart-legend li>div{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.report-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:8px}.report-chart-legend progress{width:100%;height:14px;accent-color:var(--accent);margin-top:8px}.report-chart details{font-size:14px;margin-top:24px}.report-chart summary{cursor:pointer}.report-pie{width:190px;aspect-ratio:1;margin:24px auto;border-radius:50%}
.report-security-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:12px;overflow:hidden}
.report-security-metrics .kpi-card{border:0;border-right:1px solid var(--border-subtle);border-radius:0;background:transparent;box-shadow:none;padding:22px}.report-security-metrics .kpi-card:last-child{border:0}
.report-table-shell{min-width:0}.report-table-shell>.table-wrap{border:1px solid var(--border-subtle)!important;border-radius:12px!important;background:var(--bg-surface);margin:20px 0}
.report-table-shell .admin-table td,.report-table-shell .admin-table th{font-size:14px;padding:16px;vertical-align:top}.report-table-shell .admin-table td:last-child{min-width:220px}.report-table-shell details{margin-top:8px;color:var(--text-secondary);font-size:12px;overflow-wrap:anywhere;max-width:45ch}.report-table-shell summary{cursor:pointer}
@media(max-width:767px){.report-chart-grid{grid-template-columns:1fr}.report-chart-wide{grid-column:auto}.report-page .traffic-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-page .traffic-metrics>div:nth-child(2){border-right:0}.report-page .traffic-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--border-subtle)}.report-page .traffic-ranking{padding:18px}.report-page .traffic-ranking li>div{flex-wrap:wrap}.report-tabs [role=tab]{padding:12px;font-size:14px}.report-security-metrics{grid-template-columns:1fr}.report-security-metrics .kpi-card{border-right:0;border-bottom:1px solid var(--border-subtle)}}

.report-stats-range{display:grid;gap:8px;font-size:14px;max-width:240px;margin:24px 0}.report-stats-range select{min-height:44px}

.traffic-chart-point{cursor:pointer;outline:none}.traffic-point-dot{pointer-events:none}.traffic-chart-point:hover .traffic-point-dot,.traffic-chart-point:focus .traffic-point-dot,.traffic-chart-point[aria-pressed=true] .traffic-point-dot{stroke:var(--accent);stroke-width:8;stroke-opacity:.25;vector-effect:non-scaling-stroke}.traffic-point-readout{min-height:44px;padding:10px 14px;margin:0 0 12px;border-radius:6px;background:var(--bg-active);color:var(--accent);font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}

/* Use one spacing source between the overview heading and its traffic panel. */
#view-overview{gap:24px}
#view-overview>div:first-child{padding-bottom:0}
#view-overview>#dashboard-traffic{margin:0}

@media(max-width:640px){.editorial-collection-info{padding:16px 18px}}

/* Keep the desktop inspector in the viewport while the gallery scrolls. */
@media(min-width:1100px){
 #edit-drawer{position:fixed;top:calc(var(--header-height) + 16px);right:0;bottom:16px;left:auto;width:330px;height:auto;min-height:0;max-height:calc(100dvh - var(--header-height) - 32px);z-index:45}
 .drawer-header .btn-icon{display:inline-flex}
}
@media(min-width:1100px) and (max-width:1350px){#edit-drawer{width:300px}}
@media(min-width:1600px){#edit-drawer{width:350px}}
@media(min-width:1800px){#edit-drawer{width:370px}}

/* Centered media editor, independent of the gallery's scroll position. */
.studio-library-layout{display:block}
body.editor-modal-open{overflow:hidden}
#edit-drawer{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(1120px,calc(100vw - 64px));max-width:1120px;height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);min-height:0;border:1px solid var(--border-subtle);border-radius:12px;z-index:101;box-shadow:0 24px 80px rgba(20,35,28,.22)}
#edit-drawer.drawer-open{display:flex;transform:translate(-50%,-50%)}
#edit-drawer .drawer-header{padding:22px 28px;display:flex;justify-content:space-between;align-items:start;gap:20px}
#edit-drawer .drawer-header h2{font-size:24px;font-weight:600}
#edit-drawer .drawer-header .btn-icon{display:inline-flex}
#edit-drawer .drawer-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px;padding:24px 28px;min-height:0;overflow:auto}
#edit-drawer .drawer-body>div:first-child{position:sticky;top:0;aspect-ratio:auto;height:400px;max-height:calc(100dvh - 260px);display:flex;align-items:center;justify-content:center}
#edit-drawer .drawer-body>div:first-child img{object-fit:contain;width:100%;height:100%}
.editor-fields{display:flex;flex-direction:column;gap:22px;min-width:0}
#edit-drawer .drawer-body .form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#edit-drawer .drawer-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:18px 28px}
#edit-drawer .drawer-footer .btn{flex:0 0 auto;min-height:44px;font-size:15px;padding:10px 18px}
#edit-drawer .drawer-footer .btn-danger{margin-right:auto;order:-1}
#edit-drawer-backdrop.active{display:block!important;position:fixed;inset:0;z-index:100;background:rgba(23,39,30,.4);opacity:1;visibility:visible}
@media(max-width:700px){
 #edit-drawer{inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;transform:none}
 #edit-drawer.drawer-open{transform:none}
 #edit-drawer .drawer-header{padding:18px 20px}
 #edit-drawer .drawer-body{display:flex;flex-direction:column;padding:20px;gap:22px}
 #edit-drawer .drawer-body>div:first-child{position:relative;width:100%;height:220px;max-height:none;flex-shrink:0}
 .editor-fields{width:100%}
 #edit-drawer .drawer-footer{padding:14px 16px max(14px,env(safe-area-inset-bottom));gap:8px}
 #edit-drawer .drawer-footer .btn{font-size:14px;padding:10px 12px}
}

.gallery-reorder-help{margin:0 28px;font-size:14px;line-height:1.6;color:var(--text-secondary)}
@media(max-width:640px){.gallery-reorder-help{margin-inline:18px}}

/* Give dashboard lists real interior spacing, including empty states. */
#overview-recent-activity-list .activity-row,#overview-top-media-list .top-media-row{padding:18px 22px;gap:18px}
#overview-recent-activity-list .activity-row:last-child,#overview-top-media-list .top-media-row:last-child{border-bottom:0}
#overview-recent-activity-list .activity-sub{margin-left:0;margin-top:4px;white-space:normal;line-height:1.6}
.overview-media-empty{padding:28px 22px;min-height:104px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;line-height:1.6;color:var(--text-secondary)}
@media(max-width:640px){#overview-recent-activity-list .activity-row,#overview-top-media-list .top-media-row{padding:16px;gap:12px}.overview-media-empty{padding:24px 16px}}

.reference-exif-import{display:grid;gap:9px;padding:14px;background:var(--bg-secondary);border:1px solid var(--border-subtle);border-radius:6px}.reference-exif-import .btn{justify-self:start;white-space:normal;text-align:left}.reference-exif-import p:empty{display:none}

.visitor-journeys{margin:32px 0}.visitor-journeys h3{font-size:20px;font-weight:600}.journey-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.journey-card{padding:22px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface);min-width:0}.journey-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:20px}.journey-heading h4{font-size:16px;font-weight:600}.journey-card time{font-size:13px;color:var(--text-secondary)}.journey-card ol{padding-left:22px;margin:0}.journey-card li{padding:10px 0;font-size:14px;border-top:1px solid var(--border-subtle)}.journey-card li:first-child{border:0}.journey-card li>div{line-height:1.7;overflow-wrap:anywhere}.journey-card code{font-size:13px;background:var(--bg-primary);padding:3px 6px;border-radius:4px}.journey-card li time{display:block;margin-top:4px}.journey-card>.input-helper{margin-top:16px}.selected-journey{max-width:100%}.journey-card .traffic-pagination{flex-wrap:wrap;margin-top:20px;border-top:1px solid var(--border-subtle)}
@media(max-width:767px){.journey-grid{grid-template-columns:1fr}.journey-card{padding:18px}.journey-heading{flex-wrap:wrap}.visitor-journeys .traffic-section-heading{align-items:start}}

.reference-exif-drop-label{font-size:15px;font-weight:500;color:var(--text-primary);margin:0}.reference-exif-import{border-style:dashed;transition:background-color 140ms ease,border-color 140ms ease}.reference-exif-import.reference-drag-over{background:var(--bg-active);border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px}

/* Mobile Studio navigation: primary destinations at thumb height, focused sheets. */
.studio-mobile-nav,.mobile-sheet-header,.mobile-sheet-actions{display:none}
@media(max-width:768px){
 body{padding-bottom:calc(76px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 .admin-header{height:66px;padding:0 16px;gap:12px}
 .header-brand{min-width:0;gap:0}.header-brand>[onclick="openMobileSidebar()"]{display:none!important}
 .studio-wordmark{font-size:16px;max-width:150px;overflow:hidden;text-overflow:ellipsis;display:block}
 .header-actions{gap:6px;margin-left:auto;flex-shrink:0}.admin-header #save-main-btn{min-height:44px;font-size:13px;padding:9px 12px}.admin-header #save-main-btn svg{display:none}.admin-header .header-actions>.btn-icon{display:none}
 .admin-main{width:100%;min-width:0}.admin-content-wrap{padding-top:26px}
 .studio-mobile-nav{position:fixed;inset:auto 0 0;z-index:70;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border-default);background:var(--bg-surface)}
 .studio-mobile-nav>a,.studio-mobile-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:56px;border:0;border-radius:8px;color:var(--text-secondary);font-size:11px;font-weight:500;text-decoration:none;line-height:1.2}
 .studio-mobile-nav .is-current{color:var(--accent);background:var(--bg-active)}.studio-mobile-nav svg{width:22px;height:22px;flex-shrink:0}
 .studio-mobile-nav>a:active,.studio-mobile-nav>button:active{background:var(--bg-hover);transform:none}
 body:has(#login-overlay:not(.hidden)) .studio-mobile-nav,body.editor-modal-open .studio-mobile-nav{visibility:hidden;pointer-events:none}
 .admin-sidebar,.admin-sidebar.collapsed{display:none;transform:none;width:100%;max-width:none}
 .admin-sidebar.mobile-open{display:flex;position:fixed;inset:auto 0 0;width:100%;max-width:none;height:auto;max-height:calc(100dvh - 56px);min-height:0;z-index:101;transform:none;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border-subtle);border-bottom:0;border-radius:20px 20px 0 0;padding:0 18px calc(20px + env(safe-area-inset-bottom));background:var(--bg-surface);box-shadow:0 -12px 48px rgba(20,35,28,.15);animation:studio-menu-enter 180ms ease-out}
 .mobile-sheet-header{display:flex;position:sticky;top:0;align-items:start;justify-content:space-between;gap:20px;padding:25px 2px 20px;background:var(--bg-surface);z-index:2;border-bottom:1px solid var(--border-subtle);margin-bottom:18px;flex-shrink:0}
 .mobile-sheet-header h2{font-size:25px;font-weight:600;letter-spacing:-.025em;margin:0;color:var(--text-primary)}.mobile-sheet-header p{font-size:14px;color:var(--text-secondary);margin-top:5px}.mobile-sheet-header .btn-icon{width:44px;height:44px;flex-shrink:0;background:var(--bg-primary);border-radius:50%;color:var(--text-primary)}
 .admin-sidebar.mobile-open .sidebar-header{display:none}
 .admin-sidebar.mobile-open .sidebar-nav-group{padding:0;flex-shrink:0}
 .admin-sidebar[data-mobile-section=library] [data-mobile-group=more],.admin-sidebar[data-mobile-section=more] [data-mobile-group=library]{display:none}
 .admin-sidebar.mobile-open[data-mobile-section=library] [data-mobile-group=library]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .admin-sidebar[data-mobile-section=library] .sidebar-section-title,.admin-sidebar[data-mobile-section=library] .sidebar-footer,.admin-sidebar[data-mobile-section=library] .mobile-sheet-actions{display:none}
 .admin-sidebar.mobile-open .nav-item{min-height:62px;margin:0;padding:14px 12px;border:1px solid var(--border-subtle);border-radius:9px;font-size:14px;gap:8px;background:var(--bg-secondary);color:var(--text-primary);width:100%}
 .admin-sidebar.mobile-open .nav-item.active{background:var(--bg-active);border-color:#b1c9b9;color:var(--accent)}
 .admin-sidebar.mobile-open .nav-item-content{min-width:0;gap:10px}.admin-sidebar.mobile-open .nav-label{display:block;white-space:normal;line-height:1.35}.admin-sidebar.mobile-open .nav-count{display:block;opacity:1;font-size:12px;padding:0;background:none;flex-shrink:0}.admin-sidebar.mobile-open .nav-icon{display:block;min-width:20px;width:20px;height:20px}.admin-sidebar.mobile-open.collapsed .nav-item{justify-content:space-between}
 .admin-sidebar[data-mobile-section=more] .sidebar-nav-group{display:grid;gap:8px;margin-bottom:16px}.admin-sidebar[data-mobile-section=more] .sidebar-section-title{display:block;font-size:12px;padding:0;margin:0 2px 4px;color:var(--text-secondary)}
 .admin-sidebar[data-mobile-section=more] .sidebar-footer{margin:0;padding:0;order:3}.admin-sidebar[data-mobile-section=more] .sidebar-profile{padding:18px 2px 0;margin-top:18px}
 .mobile-sheet-actions{display:grid;gap:8px;padding-top:4px}.mobile-sheet-actions .btn{justify-content:space-between;font-size:14px;min-height:48px;padding:12px 14px}.mobile-sheet-actions svg{width:18px;height:18px}
 #mobile-drawer-backdrop.active{display:block;position:fixed;inset:0;z-index:100;background:rgba(23,39,30,.42);opacity:1;visibility:visible;backdrop-filter:none}
 body.mobile-navigation-open{overflow:hidden}body.mobile-navigation-open .studio-mobile-nav{visibility:hidden}
 #toast{bottom:calc(92px + env(safe-area-inset-bottom))}
}
@keyframes studio-menu-enter{from{transform:translateY(24px);opacity:.7}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.admin-sidebar.mobile-open{animation:none}}
@media(max-width:768px){
 .admin-sidebar[data-mobile-section=more] [data-mobile-group=library],.admin-sidebar[data-mobile-section=library] [data-mobile-group=more]{display:none!important}
 .admin-sidebar.mobile-open[data-mobile-section=library] #tab-overview{display:none}
 .admin-sidebar.mobile-open[data-mobile-section=library] [data-mobile-group=library]>.nav-item:last-child{grid-column:1/-1}
}

/* One navigation hierarchy across desktop rail and mobile sheets. */
@media(min-width:769px){
 .admin-sidebar{padding-top:4px;background:var(--bg-surface)}
 .sidebar-header{padding:24px 22px 20px;border-bottom:1px solid var(--border-subtle);margin-bottom:16px}
 .sidebar-header-title{font-size:17px}.sidebar-header-sub{font-size:13px;margin-top:5px}
 .desktop-workspace-nav{display:flex;flex-direction:column;gap:6px;padding:0 14px}
 .desktop-workspace-nav>.nav-item,.desktop-section-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:12px 14px;border:0;border-radius:8px;background:transparent;color:var(--text-primary);font-size:15px;text-align:left;font-weight:500}
 .desktop-section-toggle>span:first-child{display:flex;align-items:center;gap:12px}.desktop-section-toggle svg{width:20px;height:20px;flex-shrink:0}.desktop-nav-chevron{display:flex;color:var(--text-muted)}.desktop-nav-chevron svg{width:15px;height:15px;transition:transform 140ms ease}
 .desktop-section-toggle[aria-expanded=true] .desktop-nav-chevron svg{transform:rotate(90deg)}
 .desktop-workspace-nav>.nav-item:hover,.desktop-section-toggle:hover{background:var(--bg-hover)}
 .desktop-workspace-nav>.nav-item.active,.desktop-section-toggle[data-current=true]{background:var(--bg-active);color:var(--accent)}
 .desktop-section-panel[data-desktop-expanded=false]{display:none}
 .desktop-section-panel .sidebar-nav-group{padding:4px 0 10px 18px;margin:0}
 .desktop-section-panel .sidebar-section-title{display:none}
 .desktop-section-panel .nav-item{min-height:44px;padding:10px 12px;margin:3px 0;border-radius:7px;font-size:14px;gap:8px}
 .desktop-section-panel .nav-item .nav-icon{width:17px;height:17px;min-width:17px;opacity:.8}
 .desktop-section-panel .nav-label{white-space:normal;line-height:1.4}.desktop-section-panel .nav-count{font-size:12px;flex-shrink:0}
 .desktop-section-panel .nav-item.active{background:var(--bg-active);color:var(--accent)}
 .admin-sidebar .mobile-sheet-actions{display:grid;gap:8px;padding:18px 18px 0;margin-top:12px;border-top:1px solid var(--border-subtle)}
 .admin-sidebar .mobile-sheet-actions .btn{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 12px;font-size:13px;background:var(--bg-secondary);color:var(--text-secondary)}
 .mobile-sheet-actions svg{width:17px;height:17px;flex-shrink:0}
 .admin-sidebar .sidebar-footer{padding:18px;margin-top:auto}.sidebar-profile{padding-top:16px}
 .admin-sidebar.collapsed .desktop-workspace-nav{padding:0 9px}.admin-sidebar.collapsed .desktop-workspace-nav>.nav-item,.admin-sidebar.collapsed .desktop-section-toggle{justify-content:center;padding:12px 0}.admin-sidebar.collapsed .desktop-section-toggle>span:first-child>span,.admin-sidebar.collapsed .desktop-nav-chevron,.admin-sidebar.collapsed .desktop-section-panel,.admin-sidebar.collapsed .mobile-sheet-actions{display:none}
}
@media(max-width:768px){
 .desktop-workspace-nav,.desktop-section-panel{display:contents}
 .desktop-workspace-nav>.desktop-overview-link,.desktop-workspace-nav>.desktop-analytics-link,.desktop-section-toggle{display:none!important}
}

/* Keep navigation content inside the rail at short heights and browser zoom. */
.admin-sidebar > .sidebar-header,
.admin-sidebar > .desktop-workspace-nav,
.admin-sidebar > .sidebar-footer,
.admin-sidebar > .mobile-sheet-actions {
 flex-shrink:0;
 min-width:0;
}
.admin-sidebar .sidebar-profile { min-width:0; gap:12px; }
.admin-sidebar .sidebar-profile > div { min-width:0; }
.admin-sidebar .profile-meta { min-width:0; overflow-wrap:anywhere; }
.admin-sidebar .mobile-sheet-actions .btn { min-width:0; white-space:normal; text-align:left; }
@media(min-width:769px){
 .admin-sidebar { height:calc(100dvh - var(--header-height)); min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:20px; }
}
@media(max-width:768px){
 .admin-sidebar.mobile-open > .desktop-workspace-nav,
 .admin-sidebar.mobile-open .desktop-section-panel { flex-shrink:0; }
 .admin-sidebar.mobile-open > .mobile-sheet-actions { padding-bottom:4px; }
}

/* Reserve space for profile and workspace actions; only destinations scroll. */
@media(min-width:769px) and (min-height:540px){
 .admin-sidebar { overflow:hidden; }
 .admin-sidebar > .desktop-workspace-nav { flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
 .admin-sidebar > .sidebar-footer { margin-top:0; }
}
/* The desktop rail remains visible between the mobile and legacy breakpoints. */
@media(min-width:769px){ .admin-sidebar { transform:none; } }
@media(min-width:1025px){.drop-zone-box>div:last-child{max-width:none;flex:1;min-width:0}}
