/* Compact filter bar, independently scrolling jobs and full creative previews. */
.agent-overview { --ov-ink:var(--skin-text,#252b33); --ov-muted:var(--skin-muted,#647180); --ov-line:var(--skin-border,#dfe2e8); --ov-red:var(--skin-accent,#d93600); display:flex; flex-direction:column; flex:1; height:100%; min-height:0; min-width:0; padding:0; gap:0; overflow:hidden; background:var(--skin-surface,#fff); color:var(--ov-ink); font:13px/1.4 var(--skin-font,var(--cc-font-alt,Montserrat)),Arial,sans-serif; }
.agent-overview * { box-sizing:border-box; }
.agent-overview [hidden] { display:none!important; }
.agent-overview :is(button,input) { font:inherit; }
.agent-overview button { cursor:pointer; }
.agent-overview button:disabled { opacity:.5; cursor:not-allowed; }
.agent-overview :is(button,input):focus-visible { outline:2px solid var(--ov-red); outline-offset:2px; }
.agent-overview svg { width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.overview-stats { display:flex; align-items:center; flex:none; gap:8px; min-height:58px; padding:8px 12px; overflow:auto; border-bottom:1px solid var(--ov-line); }
.overview-stat { display:inline-flex; align-items:center; flex:none; gap:8px; min-height:38px; padding:5px 10px; border:1px solid var(--ov-line); border-radius:var(--skin-radius,6px); background:var(--skin-surface,#fff); color:var(--ov-muted); white-space:nowrap; }
.overview-stat:hover { background:var(--skin-surface-muted,#f7f8fa); }
.overview-stat[aria-pressed=true] { color:var(--ov-red); border-color:var(--ov-red); background:var(--skin-accent-soft,#fff1eb); }
.overview-stat-icon { display:flex; }
.overview-stat-value,.overview-stat-label { font-size:12px; }
.overview-stat-note { display:none; }
.overview-dashboard { display:grid; grid-template-columns:minmax(360px,1fr) minmax(0,1fr); flex:1; min-height:0; gap:0; }
.overview-workspace,.overview-montage { display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; }
.overview-montage { border-left:1px solid var(--ov-line); }
.overview-workspace-head,.overview-montage-head { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:58px; padding:8px 12px; border-bottom:1px solid var(--ov-line); flex:none; }
.overview-workspace-head h2,.overview-montage-head h2 { font-size:13px; font-weight:600; margin:0; color:inherit; }
.overview-workspace-actions,.overview-montage-actions { display:flex; align-items:center; gap:8px; min-width:0; }
.overview-search-wrap { display:flex; position:relative; align-items:center; min-width:0; }
.overview-search-wrap svg { position:absolute; left:8px; color:var(--ov-muted); }
.overview-search,.overview-gallery-search { height:38px; width:180px; max-width:100%; min-width:0; padding:5px 8px; border:1px solid var(--ov-line); border-radius:var(--skin-radius,6px); background:var(--skin-surface,#fff); color:var(--ov-ink); }
.overview-search { padding-left:32px; }
.portal-page #panel-home .agent-overview input.overview-search { padding-left:32px; }
.overview-search::placeholder,.overview-gallery-search::placeholder { color:var(--ov-muted); }
.overview-icon-button,.overview-job-studio,.overview-job-stop,.overview-load-more { display:inline-grid; place-items:center; flex:none; width:38px; height:38px; min-height:38px; padding:0; border:1px solid var(--ov-line); border-radius:var(--skin-radius,6px); background:var(--skin-surface,#fff); color:var(--ov-ink); }
.overview-icon-button:hover,.overview-job-studio:hover,.overview-load-more:hover { border-color:var(--ov-red); color:var(--ov-red); }
.overview-job-stop { width:26px; height:26px; min-height:26px; border-color:transparent; color:var(--skin-danger,#b42332); }
.overview-job-stop:hover { background:var(--skin-danger-soft,#fff0f1); }
.overview-job-layout,.overview-job-column { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; }
.overview-job-column { overflow:auto; scrollbar-width:thin; }
.overview-job-list { min-width:580px; }
.overview-job,.overview-job-columns { display:grid; grid-template-columns:minmax(150px,1.3fr) 85px 85px minmax(140px,1fr) 38px; align-items:center; gap:10px; padding:8px 12px; }
.overview-job-columns { position:sticky; top:0; z-index:1; font-size:11px; color:var(--ov-muted); background:var(--skin-surface-muted,#f7f8fa); }
.overview-job { min-height:52px; border-bottom:1px solid var(--ov-line); }
.overview-job:hover { background:var(--skin-surface-muted,#f7f8fa); }
.overview-job-name { font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.overview-job-date { font-size:11px; color:var(--ov-muted); }
.overview-job-status { display:flex; align-items:center; gap:4px; min-width:0; }
.overview-pill { font-size:11px; line-height:1.4; color:var(--ov-muted); overflow-wrap:anywhere; }
.overview-pill.is-ready { color:var(--skin-success,#16734e); }
.overview-pill:is(.is-running,.is-retrying,.is-queued) { color:var(--skin-warning,#885900); }
.overview-pill:is(.is-partial,.is-failed,.is-start_failed,.is-needs_attention) { color:var(--skin-danger,#b42332); }
.overview-studio-heading { display:flex; justify-content:center; }
.overview-load-more { margin:8px 12px; align-self:center; }
.overview-message { margin:8px 12px; font-size:12px; color:var(--ov-muted); }
.overview-message[data-kind=error] { color:var(--skin-danger,#b42332); }
.overview-empty,.overview-montage-empty { margin:0; padding:32px 16px; color:var(--ov-muted); line-height:1.6; }
.overview-empty p { margin:8px 0 0; }
.overview-montage-body { flex:1; min-height:0; overflow:auto; padding:12px; background:var(--skin-surface-muted,#f7f8fa); scrollbar-width:thin; }
.overview-montage-flow { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); align-content:start; gap:12px; }
.overview-montage-card { display:flex; flex-direction:column; position:relative; min-width:0; padding:0; border:1px solid var(--ov-line); border-radius:var(--skin-radius,8px); overflow:hidden; background:var(--skin-surface,#fff); color:var(--ov-ink); text-align:left; }
.overview-montage-card:hover { border-color:var(--ov-red); }
.overview-montage-canvas { display:block; position:relative; width:100%; aspect-ratio:6/7; overflow:hidden; background:#fff; }
.overview-montage-frame { display:block; width:600px; height:700px; border:0; pointer-events:none; zoom:var(--overview-preview-scale,.34); transform:none; transform-origin:top left; color-scheme:light; }
.overview-montage-caption { display:flex; flex-direction:column; gap:2px; padding:8px 10px; border-top:1px solid var(--ov-line); font-size:11px; }
.overview-montage-caption strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.overview-montage-caption span { color:var(--ov-muted); }
.overview-secondary,.overview-danger { min-height:38px; padding:6px 10px; border:1px solid var(--ov-line); border-radius:var(--skin-radius,6px); background:var(--skin-surface,#fff); color:var(--ov-ink); }
.overview-danger { color:var(--skin-danger,#b42332); border-color:currentColor; }
.overview-modal-shade { position:fixed; inset:0; z-index:9999; display:grid; place-items:center; padding:16px; background:var(--skin-overlay,#10182899); }
.overview-modal { width:min(420px,100%); padding:16px; border:1px solid var(--ov-line); border-radius:var(--skin-radius,8px); background:var(--skin-surface,#fff); }
.overview-modal h2 { margin:0; font-size:16px; }
.overview-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
@media(max-width:1000px) { .overview-dashboard { display:flex; flex-direction:column; overflow:auto; } .overview-workspace { flex:none; min-height:240px; max-height:45dvh; } .overview-montage { flex:none; overflow:visible; border-left:0; border-top:1px solid var(--ov-line); } .overview-montage-body { overflow:visible; } }
@media(max-width:520px) { .overview-stat-label { display:none; } .overview-search,.overview-gallery-search { width:150px; } .overview-montage-flow { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); } }

/* User landing: visual campaign workspace, scoped away from the admin overview. */
.agent-overview { padding:24px; gap:20px; overflow:auto; background:#f7f7fa; }
.agent-overview .user-home-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.agent-overview .user-home-heading h1 { margin:0; font-size:28px; letter-spacing:-.6px; }
.agent-overview .user-home-heading p { margin:4px 0 0; color:var(--ov-muted); }
.agent-overview .user-home-primary { background:var(--ov-red); border:0; color:white; border-radius:10px; padding:13px 20px; font-weight:650; }
.agent-overview .user-home-top,.agent-overview .overview-dashboard { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr); gap:18px; flex:none; overflow:visible; }
.agent-overview .user-home-hero { display:flex; align-items:center; gap:24px; padding:28px; border-radius:16px; background:linear-gradient(115deg,#4d1035,#89164c); color:#fff; min-width:0; overflow:hidden; }
.agent-overview .user-home-hero-copy { flex:1; min-width:0; }
.agent-overview .user-home-eyebrow { font-size:10px; letter-spacing:1.6px; color:#f2cde0; }
.agent-overview .user-home-hero h2 { font-size:26px; margin:12px 0; overflow-wrap:anywhere; }
.agent-overview .user-home-hero small { display:block; color:#f2cde0; }
.agent-overview .user-home-hero .user-home-primary { margin-top:22px; }
.agent-overview .user-home-hero > .user-home-preview { width:38%; flex-shrink:0; height:220px; border-radius:12px; }
.agent-overview :is(.user-home-snapshot,.user-home-attention,.user-home-quick,.overview-workspace,.overview-montage) { background:white; border:1px solid #e5e5ed; border-radius:16px; box-shadow:0 4px 14px #25203b04; }
.agent-overview :is(.user-home-snapshot,.user-home-attention,.user-home-quick) { padding:20px; min-width:0; }
.agent-overview :is(.user-home-snapshot,.user-home-attention,.user-home-quick) h2 { font-size:16px; margin:0 0 18px; }
.agent-overview .user-home-snapshot-body { display:flex; align-items:center; justify-content:space-around; gap:16px; padding:14px 0; flex-wrap:wrap; }
.agent-overview .user-home-donut { width:146px; height:146px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.agent-overview .user-home-donut > div { width:104px; height:104px; border-radius:50%; background:white; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.agent-overview .user-home-donut strong { font-size:30px; }
.agent-overview .user-home-donut span { font-size:11px; color:var(--ov-muted); }
.agent-overview .user-home-legend { display:grid; gap:15px; }
.agent-overview .user-home-legend > div { display:flex; gap:8px; align-items:center; }
.agent-overview .user-home-legend i { width:11px; height:11px; border-radius:50%; }
.agent-overview .user-home-legend span { color:var(--ov-muted); font-size:12px; }
.agent-overview .overview-workspace { overflow:visible; max-height:none; }
.agent-overview .overview-workspace-head,.agent-overview .overview-montage-head { padding:16px; border:0; flex-wrap:wrap; }
.agent-overview .overview-workspace-head h2,.agent-overview .overview-montage-head h2 { font-size:17px; }
.agent-overview .overview-stats { padding:0 16px 14px; border:0; min-height:0; flex-wrap:wrap; overflow:visible; }
.agent-overview .overview-stat { font-size:11px; gap:5px; padding:5px 8px; }
.agent-overview .overview-job-column { overflow:visible; }
.agent-overview .overview-job-list { min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:0 16px 16px; }
.agent-overview .overview-job { display:flex; flex-direction:column; align-items:stretch; padding:0 0 12px; gap:8px; border:1px solid #e5e5ed; border-radius:10px; overflow:hidden; background:white; }
.agent-overview .overview-job > :not(.user-home-preview) { margin-left:12px; margin-right:12px; }
.agent-overview .user-home-preview { height:145px; aspect-ratio:auto; }
.agent-overview .user-home-preview-empty { background:linear-gradient(135deg,#f6dfeb,#f4eef8 55%,#e4f0ed); color:#7c2856; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:14px; padding:20px; text-align:center; }
.agent-overview .user-home-preview-empty svg { width:36px; height:36px; }
.agent-overview .user-home-preview-empty span { font-size:11px; }
.agent-overview .overview-job-status { flex:1; align-items:flex-start; }
.agent-overview .overview-pill { border-radius:6px; background:#f3eff7; padding:4px 7px; font-size:10px; }
.agent-overview .overview-pill.is-ready { background:#e0f6ef; }
.agent-overview .overview-job-studio { display:flex; justify-content:center; gap:8px; width:auto; font-size:11px; }
.agent-overview .overview-empty { grid-column:1/-1; }
.agent-overview .user-home-side { display:flex; flex-direction:column; gap:16px; }
.agent-overview .user-home-attention { flex:1; }
.agent-overview .user-home-attention-row { display:grid; grid-template-columns:1fr 18px; gap:5px 10px; text-align:left; border:0; border-bottom:1px solid #ececf2; padding:14px 0; background:white; width:100%; color:var(--ov-ink); }
.agent-overview .user-home-attention-row strong { overflow-wrap:anywhere; }
.agent-overview .user-home-attention-row span { grid-column:1; font-size:11px; color:var(--ov-muted); }
.agent-overview .user-home-attention-row svg { grid-column:2; grid-row:1/3; align-self:center; }
.agent-overview .user-home-link { background:none; border:0; padding:14px 0 0; color:var(--ov-red); }
.agent-overview .user-home-clear { background:#edf8f3; color:#22694f; padding:16px; border-radius:8px; }
.agent-overview .user-home-quick button { margin:0 8px 8px 0; font-size:12px; }
.agent-overview .overview-montage { flex:none; overflow:visible; }
.agent-overview .overview-montage-body { background:transparent; overflow:visible; padding:0 16px 16px; }
.agent-overview .overview-montage-flow { grid-template-columns:repeat(4,minmax(0,1fr)); }
.agent-overview .overview-montage-flow .overview-montage-canvas { height:160px; aspect-ratio:auto; }
@media(max-width:1150px) { .agent-overview .overview-job-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .agent-overview .user-home-top,.agent-overview .overview-dashboard { grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); } .agent-overview .user-home-hero > .user-home-preview { display:none; } }
@media(max-width:800px) { .agent-overview { padding:14px; } .agent-overview .user-home-top,.agent-overview .overview-dashboard { grid-template-columns:minmax(0,1fr); } .agent-overview .user-home-heading { align-items:flex-start; flex-wrap:wrap; } .agent-overview .user-home-heading h1 { font-size:24px; } .agent-overview .overview-montage-flow { grid-template-columns:repeat(2,minmax(0,1fr)); } .agent-overview .user-home-snapshot-body { justify-content:flex-start; gap:30px; } }
@media(max-width:450px) { .agent-overview .overview-job-list { grid-template-columns:minmax(0,1fr); } .agent-overview .overview-stat-label { display:inline; } .agent-overview .overview-workspace-actions { width:100%; } .agent-overview .overview-search-wrap { flex:1; } .agent-overview .overview-search { width:100%; } }
/* Approved user Overview: shared portal typography, compact status cards and library. */
.agent-overview.overview-library-v2 { overflow:auto; height:auto; min-height:100%; padding:24px; gap:22px; background:#f7f6fa; }
.overview-library-v2 .overview-dashboard { display:block; }
.overview-library-v2 .overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; border:0; padding:0; overflow:visible; }
.overview-library-v2 .overview-stat { display:flex; flex-direction:column; align-items:flex-start; position:relative; gap:8px; padding:18px; border:0; border-radius:10px; min-width:0; white-space:normal; background:#f3eff7; color:#7c2856; }
.overview-library-v2 .overview-stat-total { background:linear-gradient(115deg,#4d1035,#89164c); color:white; }
.overview-library-v2 .overview-stat-ready { background:#e0f6ef; color:#00695c; }
.overview-library-v2 .overview-stat-attention { background:#fff1eb; color:#d93600; }
.overview-library-v2 .overview-stat[aria-pressed=true] { box-shadow:inset 0 0 0 2px currentColor; }
.overview-library-v2 .overview-stat-total[aria-pressed=true] { box-shadow:none; background:linear-gradient(115deg,#4d1035,#89164c); }
.overview-library-v2 .overview-stat-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#ffffff70; }
.overview-library-v2 .overview-stat-total .overview-stat-icon { background:#ffffff20; }
.overview-library-v2 .overview-stat-icon svg { width:19px; height:19px; }
.overview-library-v2 .overview-stat-label { order:3; font-size:12px; }
.overview-library-v2 .overview-stat-value { font-size:29px; font-weight:600; }
.overview-library-v2 .overview-stat-note { display:none; }
.overview-library-v2 .overview-workspace { padding:20px; }
.overview-library-v2 .overview-workspace-head { display:flex; flex-direction:column; align-items:stretch; padding:0; gap:16px; }
.overview-library-v2 .overview-library-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.overview-library-v2 .overview-library-title h2 { display:flex; gap:9px; align-items:center; margin:0; }
.overview-library-v2 .overview-library-title h2 svg { width:18px; height:18px; color:var(--ov-red); }
.overview-library-v2 .overview-clear-state { font-size:11px; color:#00695c; }
.overview-library-v2 .overview-workspace-actions { display:flex; width:100%; gap:8px; flex-wrap:wrap; }
.overview-library-v2 .overview-search-wrap { flex:1; min-width:180px; }
.overview-library-v2 .overview-search { width:100%; }
.overview-library-v2 .overview-status-select { font:inherit; border:1px solid var(--ov-line); border-radius:6px; padding:8px; background:white; color:var(--ov-ink); }
.overview-library-v2 .overview-view-toggle { display:flex; gap:4px; }
.overview-library-v2 .overview-view-toggle button { font-size:11px; }
.overview-library-v2 .overview-view-toggle [aria-pressed=true] { color:var(--ov-red); background:#fff1eb; }
.overview-library-v2 .overview-route-tabs { display:flex; flex-wrap:wrap; gap:18px; border-bottom:1px solid var(--ov-line); margin:18px 0; }
.overview-library-v2 .overview-route-tab { display:flex; align-items:center; gap:6px; background:none; border:0; border-bottom:2px solid transparent; color:var(--ov-muted); padding:0 0 12px; font:inherit; font-size:12px; }
.overview-library-v2 .overview-route-tab svg { width:14px; height:14px; }
.overview-library-v2 .overview-route-tab span:last-child { background:#f3eff7; border-radius:4px; padding:2px 5px; font-size:11px; }
.overview-library-v2 .overview-route-tab[aria-pressed=true] { border-color:var(--ov-red); color:var(--ov-ink); font-weight:600; }
.overview-library-v2 .overview-job-list { padding:0; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.overview-library-v2 .overview-job { gap:8px; }
.overview-library-v2 .overview-job .user-home-preview { width:100%; height:165px; margin:0; padding:0; border-radius:0; overflow:hidden; }
.overview-library-v2 .overview-artwork { display:block; width:100%; height:100%; padding:0; margin:0; object-fit:cover; object-position:top center; }
.overview-library-v2 .overview-job-route,.overview-library-v2 .overview-job-date { color:var(--ov-muted); font-size:11px; }
.overview-library-v2 .overview-job-name { font-size:12px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
.overview-library-v2 .overview-job-studio { margin-top:auto; }
.overview-library-v2 .overview-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; font-size:11px; color:var(--ov-muted); }
.overview-library-v2 .overview-pagination>div { display:flex; align-items:center; gap:8px; }
.overview-library-v2 .overview-pagination button:disabled { opacity:.4; cursor:default; }
.overview-library-v2 .overview-job-list[data-view=list] { grid-template-columns:1fr; }
.overview-library-v2 .overview-job-list[data-view=list] .overview-job { display:grid; grid-template-columns:90px minmax(0,1fr) 140px; grid-template-rows:auto auto auto; padding:0; align-items:center; gap:5px 10px; }
.overview-library-v2 .overview-job-list[data-view=list] .user-home-preview { grid-row:1/4; height:120px; }
.overview-library-v2 .overview-job-list[data-view=list] .overview-job-route { grid-column:2; }
.overview-library-v2 .overview-job-list[data-view=list] .overview-job-name { grid-column:2; }
.overview-library-v2 .overview-job-list[data-view=list] .overview-job-date { grid-column:2; }
.overview-library-v2 .overview-job-list[data-view=list] .overview-job-status { grid-column:3; grid-row:1/3; }
.overview-library-v2 .overview-job-list[data-view=list] .overview-job-studio { grid-column:3; grid-row:3; margin-bottom:8px; }
@media(max-width:800px){.agent-overview.overview-library-v2{padding:16px}.overview-library-v2 .overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-library-v2 .overview-job-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.overview-library-v2 .overview-workspace{padding:12px}.overview-library-v2 .overview-library-title{align-items:flex-start;flex-direction:column}.overview-library-v2 .overview-job-list{grid-template-columns:1fr}.overview-library-v2 .overview-job-list[data-view=list] .overview-job{grid-template-columns:65px minmax(0,1fr) 100px}.overview-library-v2 .overview-pagination{flex-wrap:wrap}}
