:root{
  --navy:#082a59;
  --navy-2:#0d3975;
  --navy-3:#15498f;
  --blue:#1268df;
  --blue-2:#0e57c2;
  --blue-soft:#eaf2ff;
  --bg:#f4f7fb;
  --card:#ffffff;
  --ink:#12203a;
  --muted:#6c7890;
  --muted-2:#8995a8;
  --line:#dfe6f0;
  --line-2:#edf1f6;
  --green:#2a925b;
  --green-bg:#eaf8f0;
  --amber:#b67614;
  --amber-bg:#fff4dc;
  --red:#bd4654;
  --red-bg:#ffebee;
  --purple:#7049ad;
  --purple-bg:#f0e9ff;
  --cyan:#187d95;
  --cyan-bg:#e7f7fa;
  --shadow:0 10px 30px rgba(27,51,91,.07);
  --shadow-soft:0 5px 18px rgba(27,51,91,.05);
  --sidebar:272px;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}
html{scroll-behavior:smooth}
body{font-size:14px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
a{text-decoration:none;color:inherit}
[hidden]{display:none!important}

/* AUTH */
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 10% 0%,#e9f1ff 0,transparent 34rem),radial-gradient(circle at 100% 100%,#edf9f3 0,transparent 32rem),var(--bg)}
.auth-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 20px 60px rgba(31,57,99,.12);padding:30px}
.auth-wide{width:min(540px,100%)}
.auth-logo{display:flex;align-items:center;gap:13px;margin-bottom:22px}
.auth-logo img{width:50px;height:50px}
.auth-logo div{display:grid;gap:2px}
.auth-logo strong{font-size:21px;letter-spacing:.02em}
.auth-logo span{font-size:12px;color:var(--muted)}
.auth-card h1{font-size:27px;margin:4px 0 8px;letter-spacing:-.02em}
.auth-copy{margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.65}
.auth-form,.form-stack{display:grid;gap:14px}
.auth-form label,.form-stack label,.filter-row label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#41506a}
.binding-code{display:block;background:#edf3ff;border:1px solid #c9dafb;color:#224e9d;padding:12px 14px;border-radius:12px;text-align:center;font-size:18px;font-weight:900;margin:14px 0}
.loader{width:34px;height:34px;border:4px solid #e6ecf5;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin:20px auto 2px}
@keyframes spin{to{transform:rotate(360deg)}}

/* FORM */
input,select,textarea{width:100%;border:1px solid #ccd7e6;border-radius:11px;background:#fbfdff;color:var(--ink);padding:11px 12px;outline:none;transition:border-color .15s,box-shadow .15s,background .15s}
input:hover,select:hover,textarea:hover{border-color:#b7c6dc}
input:focus,select:focus,textarea:focus{border-color:#78a2ef;box-shadow:0 0 0 4px rgba(18,104,223,.09);background:#fff}
textarea{resize:vertical;line-height:1.55}
.mono{font-family:Consolas,"Courier New",monospace}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;padding:10px 14px;min-height:40px;font-size:12.5px;font-weight:850;white-space:nowrap;transition:transform .12s,box-shadow .12s,border-color .12s,background .12s}
.btn:not(:disabled):active{transform:translateY(1px)}
.btn-primary{background:linear-gradient(135deg,var(--blue),var(--blue-2));color:#fff;box-shadow:0 7px 16px rgba(18,104,223,.18)}
.btn-primary:hover{box-shadow:0 9px 22px rgba(18,104,223,.24)}
.btn-secondary{background:#fff;border-color:#d2dceb;color:#36527e}
.btn-secondary:hover{background:#f8faff;border-color:#b9c8df}
.btn-outline{background:#f7faff;border-color:#b9cff4;color:#285ebc}
.btn-outline:hover{background:#edf4ff}
.btn-success{background:var(--green);color:#fff;box-shadow:0 6px 14px rgba(42,146,91,.18)}
.btn-danger{background:#fff3f4;border-color:#f0c9ce;color:#b2414e}
.btn-full{width:100%;padding:12px 14px}
.text-btn{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:850;padding:7px 0}
.icon-btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d5deeb;border-radius:10px;background:#fff;color:#52627b;font-size:18px;line-height:1}
.icon-btn:hover{background:#f7faff;border-color:#bdcadc}
.icon-btn.ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}
.helper{color:var(--muted);font-size:11.5px;line-height:1.55;margin:10px 0 0}

/* APP LAYOUT */
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#072755 0%,#0b326b 55%,#0f3a78 100%);color:#fff;padding:22px 16px 18px;display:flex;flex-direction:column;z-index:30;box-shadow:7px 0 24px rgba(15,47,98,.08)}
.brand-block{display:flex;align-items:center;gap:12px;padding:3px 7px 21px;border-bottom:1px solid rgba(255,255,255,.12)}
.brand-block img{width:48px;height:48px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.12))}
.brand-block div{display:grid;gap:2px;min-width:0}
.brand-block strong{font-size:20px;letter-spacing:.025em;white-space:nowrap}
.brand-block span{font-size:10.5px;color:#abc0e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-nav{display:grid;gap:7px;padding:20px 0}
.nav-item{width:100%;border:0;border-radius:12px;background:transparent;color:#c9d8ef;display:flex;align-items:center;gap:12px;padding:12px 13px;text-align:left;transition:background .14s,color .14s,transform .14s}
.nav-item span{width:24px;text-align:center;font-size:19px;line-height:1}
.nav-item b{font-size:13.5px;letter-spacing:-.01em}
.nav-item:hover{background:rgba(255,255,255,.075);color:#fff}
.nav-item.active{background:linear-gradient(90deg,#1b70e6,#165fc9);color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.15)}
.sidebar-user{margin-top:auto;padding:14px 7px 2px;border-top:1px solid rgba(255,255,255,.12);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}
.avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#3f82ef;font-size:12px;font-weight:900}
.user-mini{display:grid;gap:2px;min-width:0}
.user-mini strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-mini span{font-size:10px;color:#a8bddf;text-transform:capitalize}

.main-area{min-width:0;width:100%;max-width:1600px;padding:0 30px 56px}
.topbar{min-height:94px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #e3e9f2;margin-bottom:20px}
.menu-btn{display:none;flex:0 0 auto}
.page-heading{min-width:0;flex:1}
.page-heading h1{margin:0;font-size:29px;line-height:1.1;letter-spacing:-.03em}
.page-heading p{margin:5px 0 0;font-size:12.5px;color:var(--muted)}
.wib-clock{flex:0 0 auto;min-width:238px;display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;box-shadow:var(--shadow-soft)}
.wib-clock>div{display:grid;gap:1px;text-align:left}
.wib-clock strong{font-size:13.5px;letter-spacing:.01em}
.wib-clock span:last-child{font-size:10.5px;color:var(--muted)}
.clock-dot{width:8px;height:8px;border-radius:50%;background:#35a56b;box-shadow:0 0 0 4px rgba(53,165,107,.12);flex:0 0 auto}

.view{display:none}
.view.active{display:block}

/* SUMMARY */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.stats-grid.small{margin-top:0}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:18px;display:flex;align-items:center;gap:14px;min-height:108px}
.stat-icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#edf3ff;color:#2f69ce;font-size:22px;flex:0 0 auto}
.stat-card.amber .stat-icon{background:var(--amber-bg);color:var(--amber)}
.stat-card.green .stat-icon{background:var(--green-bg);color:var(--green)}
.stat-card.red .stat-icon{background:var(--red-bg);color:var(--red)}
.stat-text{display:grid;gap:3px;min-width:0}
.stat-text span{color:#5d6b82;font-size:12px;font-weight:750}
.stat-text strong{font-size:30px;line-height:1.05;letter-spacing:-.04em}
.stat-text small{color:#8a96aa;font-size:10.5px}

.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.panel-card{background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);padding:21px;margin-bottom:16px}
.panel-card.flush{padding:0;overflow:hidden}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.section-head h2,.section-head h3{margin:0 0 4px;font-size:17px;letter-spacing:-.015em}
.section-head h3{font-size:14.5px}
.section-head p{margin:0;color:var(--muted);font-size:11.5px;line-height:1.55}
.section-head.mini{margin-bottom:10px}
.activity-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.activity-metric{border:1px solid #e3e9f2;border-radius:14px;background:#f9fbfe;padding:15px}
.activity-metric strong{display:block;font-size:24px;line-height:1.1}
.activity-metric span{font-size:10.5px;color:var(--muted)}

/* REPORTS */
.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:16px 17px;border-bottom:1px solid var(--line);background:#fff}
.search-box{position:relative;display:flex;align-items:center;color:#8692a5;flex:1 1 320px;min-width:260px}
.search-box input{padding-left:11px;min-height:42px}
.toolbar select{flex:0 1 160px;min-width:145px;max-width:190px;min-height:42px}
.toolbar .btn{margin-left:auto;min-height:42px}
.list-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px 8px;font-size:13px}
.list-head span{color:var(--muted);font-size:11.5px}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(250px,1fr));gap:13px;padding:10px 18px 18px}
.report-card{position:relative;border:1px solid #dce4ef;border-radius:16px;background:#fff;padding:16px;min-width:0;min-height:177px;transition:border-color .15s,box-shadow .15s,transform .15s}
.report-card:hover{border-color:#abc4ee;box-shadow:0 9px 24px rgba(33,64,112,.075);transform:translateY(-1px)}
.report-card.selected{border-color:#5f92ed;box-shadow:0 0 0 3px rgba(47,115,230,.08)}
.card-badges{display:flex;align-items:center;gap:7px;margin-bottom:10px}
.pill{display:inline-flex;align-items:center;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:900;line-height:1}
.store-WIN{background:#eaf1ff;color:#285bc0}
.store-HOKI{background:#e8f7ed;color:#25764b}
.store-DEWI{background:#f0e9ff;color:#7044b1}
.store-JOSS{background:#fff0db;color:#a66d16}
.store-12HO{background:#e3f6f8;color:#167c8d}
.type-pill{background:#ffe9ed;color:#b64350}
.report-url{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800;color:#1c2e4d;margin-bottom:10px;line-height:1.4}
.card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;color:#596982;font-size:11.5px;line-height:1.5}
.card-meta>span:first-child{color:#2462c8;font-weight:800}
.meta-good{color:var(--green)!important;font-weight:850}
.meta-warn{color:var(--amber)!important;font-weight:850}
.card-last{margin-top:8px;color:#7a8799;font-size:10.5px}
.card-actions{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;margin-top:12px}
.card-actions .btn{padding:8px 10px;min-height:36px;font-size:11.5px}
.card-actions .icon-btn{width:36px;height:36px;font-size:15px}
.pagination{display:flex;align-items:center;justify-content:center;gap:5px;padding:2px 15px 18px}
.page-btn{min-width:34px;height:34px;border:1px solid #d8e1ed;border-radius:9px;background:#fff;color:#586980;font-size:11.5px}
.page-btn:hover{background:#f7faff}
.page-btn.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 5px 12px rgba(18,104,223,.18)}

.bulkbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:11px 17px;background:#f8faff;border-bottom:1px solid var(--line);font-size:11px}
.bulkbar label{display:flex;align-items:center;gap:7px;color:#52627b;font-weight:750}
.bulkbar label input{width:17px;height:17px;padding:0}
.bulkbar strong{color:#38557f}
.bulkbar select{width:auto;min-width:190px;margin-left:auto;min-height:38px}
.card-badges .select-report{width:16px;height:16px;margin:0 2px 0 0;padding:0}
.viewer-note{font-size:10px;color:var(--muted)}

.empty-state{padding:42px 18px;text-align:center;color:var(--muted);font-size:12px}
.report-grid>.empty-state{grid-column:1/-1;min-height:250px;display:grid;place-items:center}
.report-grid>.empty-state::before{content:"◎";display:block;font-size:34px;color:#b8c7dc;margin-bottom:8px}

/* FORMS / OTHER PAGES */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.two-col,.team-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.filter-row{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.filter-row label{min-width:155px}
.filter-row .grow{flex:1}
.filter-row .btn{margin-bottom:1px}
.tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.tab-btn{border:1px solid #d7e0ec;border-radius:9px;background:#f8faff;color:#617086;padding:9px 11px;font-size:10.5px;font-weight:850;white-space:nowrap;transition:.13s}
.tab-btn:hover{background:#f0f5fd}
.tab-btn.active{background:#eaf2ff;border-color:#9abcf7;color:#215dbf;box-shadow:inset 0 0 0 1px rgba(33,93,191,.04)}
.template-editor{margin-top:12px}
.template-editor textarea{min-height:250px;font-size:13px}
.settings-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}
.team-list{display:grid;gap:10px}
.team-row{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;border:1px solid #e0e7f0;border-radius:14px;padding:13px}
.team-row .avatar{background:#edf3ff;color:#2c61c1}
.team-info{display:grid;gap:2px}
.team-info strong{font-size:12.5px}
.team-info span{font-size:10.5px;color:var(--muted)}
.team-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#aaa}
.status-dot.active{background:#35a56b}

.timeline{display:grid}
.timeline-item{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:11px 0;border-bottom:1px solid #edf1f6}
.timeline-item:last-child{border-bottom:0}
.timeline-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#edf3ff;color:#2c63c5;font-size:12px}
.timeline-icon.green{background:var(--green-bg);color:var(--green)}
.timeline-body{display:grid;gap:2px;min-width:0}
.timeline-body strong{font-size:11.5px}
.timeline-body span{font-size:10px;color:var(--muted)}
.timeline-time{font-size:10px;color:#7f8b9e;white-space:nowrap}
.timeline.compact .timeline-item{padding:9px 0}
.timeline.large .timeline-item{padding:13px 0}
.hourly-chart{display:grid;gap:9px}
.hour-row{display:grid;grid-template-columns:58px 1fr 38px;gap:9px;align-items:center;font-size:10.5px}
.hour-track{height:9px;background:#edf1f6;border-radius:999px;overflow:hidden}
.hour-fill{height:100%;background:linear-gradient(90deg,#4d8cf2,#2f73e6);border-radius:999px;min-width:0}
.breakdown{display:grid;gap:9px}
.break-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border-bottom:1px solid #edf1f6;padding-bottom:9px}
.break-row:last-child{border-bottom:0}
.break-row strong{font-size:11.5px}
.break-row span{font-size:11.5px;color:var(--blue);font-weight:850}

/* DRAWER */
.drawer-backdrop{position:fixed;inset:0;background:rgba(12,28,53,.16);backdrop-filter:blur(1px);z-index:70}
.drawer{position:fixed;top:0;right:0;width:min(520px,96vw);height:100vh;background:#fff;z-index:80;box-shadow:-18px 0 50px rgba(14,35,67,.18);transform:translateX(105%);transition:transform .2s ease;overflow-y:auto;padding:22px 23px 26px}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line)}
.eyebrow{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--blue)}
.drawer-head h2{font-size:15px;margin:5px 0 0;overflow-wrap:anywhere;line-height:1.45;max-width:420px}
.drawer-meta{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0}
.channel-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding-bottom:13px;border-bottom:1px solid var(--line);overflow:visible}
.channel-tabs .tab-btn{padding:9px 5px;text-align:center;font-size:10px}
.drawer-section{padding:16px 0;border-bottom:1px solid var(--line)}
.report-text{min-height:230px;font-size:12.5px;background:#f8faff;resize:none}
.drawer-actions{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:7px;margin-top:10px}
.drawer-actions .btn{padding-left:8px;padding-right:8px;font-size:11px}
.completion-note{margin-top:10px;border:1px solid #cbe5d6;background:#eff9f3;color:#2d724d;border-radius:10px;padding:10px 11px;font-size:10.5px;font-weight:750}
.rank-row{display:grid;grid-template-columns:1fr auto;gap:8px}
.history-section{min-height:180px}

.toast{position:fixed;left:50%;bottom:20px;z-index:120;max-width:min(560px,calc(100% - 28px));transform:translate(-50%,20px);background:#112b55;color:#fff;border-radius:12px;padding:12px 15px;box-shadow:0 16px 36px rgba(13,35,69,.28);font-size:11.5px;font-weight:750;opacity:0;pointer-events:none;transition:.18s}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media(max-width:1280px){
  :root{--sidebar:240px}
  .sidebar{padding-left:14px;padding-right:14px}
  .brand-block strong{font-size:18px}
  .report-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .toolbar .btn{margin-left:0}
}

@media(max-width:900px){
  .app-shell{display:block}
  .sidebar{position:fixed;left:0;transform:translateX(-105%);width:260px;transition:.2s}
  .sidebar.open{transform:translateX(0)}
  .main-area{max-width:none;padding:0 15px 38px}
  .menu-btn{display:grid}
  .topbar{min-height:82px;gap:10px;margin-bottom:16px}
  .wib-clock{min-width:185px;padding:8px 10px}
  .wib-clock span:last-child{display:none}
  .page-heading p{display:none}
  .dashboard-grid,.two-col,.team-layout{grid-template-columns:1fr}
  .report-grid{grid-template-columns:1fr 1fr}
  .activity-summary{grid-template-columns:1fr 1fr 1fr}
}

@media(max-width:620px){
  .main-area{padding:0 10px 28px}
  .topbar{gap:8px}
  .page-heading h1{font-size:21px}
  .wib-clock{min-width:0;padding:8px 9px}
  .wib-clock strong{font-size:11px}
  .clock-dot{display:none}
  .stats-grid,.stats-grid.small{grid-template-columns:1fr 1fr;gap:8px}
  .stat-card{padding:12px;min-height:86px;border-radius:15px}
  .stat-icon{width:36px;height:36px;border-radius:10px;font-size:16px}
  .stat-text span{font-size:10px}
  .stat-text strong{font-size:22px}
  .stat-text small{display:none}
  .report-grid{grid-template-columns:1fr;padding:10px 12px 14px}
  .toolbar{padding:12px;gap:8px}
  .toolbar .search-box{flex-basis:100%;min-width:100%}
  .toolbar select{flex:1 1 calc(50% - 4px);min-width:135px;max-width:none}
  .toolbar .btn{width:100%}
  .bulkbar>*{width:100%!important;margin-left:0!important}
  .bulkbar label{justify-content:flex-start}
  .form-row{grid-template-columns:1fr}
  .activity-summary{grid-template-columns:1fr}
  .drawer{width:100vw;padding:16px}
  .channel-tabs{grid-template-columns:repeat(5,minmax(58px,1fr));overflow-x:auto}
  .drawer-actions{grid-template-columns:1fr}
  .rank-row{grid-template-columns:1fr}
  .filter-row label{width:100%;min-width:0}
  .filter-row .btn{width:100%}
  .team-row{grid-template-columns:auto 1fr}
  .team-actions{grid-column:1/-1;justify-content:flex-start}
}

/* Desktop drawer behaves like the approved mockup: content makes room instead of being buried underneath. */
@media(min-width:1100px){
  .main-area{transition:padding-right .2s ease}
  body:has(#reportDrawer.open) .main-area{padding-right:550px}
  .drawer-backdrop{background:transparent;backdrop-filter:none}
}
.nav-icon{display:grid!important;place-items:center;width:24px!important;height:24px}
.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* =========================================================
   ACE REPORT V4 — visible premium UI refresh + cache-busted assets
   ========================================================= */
:root{
  --navy:#052b61;
  --navy-2:#063875;
  --blue:#1368e8;
  --blue-2:#0b55c6;
  --bg:#f5f8fc;
  --card:#fff;
  --line:#dce5f0;
  --ink:#10213e;
  --muted:#6d7d96;
  --shadow:0 12px 32px rgba(21,48,91,.065);
  --shadow-soft:0 6px 18px rgba(21,48,91,.055);
  --sidebar:286px;
}

body{background:linear-gradient(180deg,#f8faff 0,#f4f7fb 36%,#f3f6fa 100%)}
.app-shell{grid-template-columns:var(--sidebar) minmax(0,1fr)}
.sidebar{
  background:
    radial-gradient(circle at 15% 0%,rgba(47,119,235,.24),transparent 18rem),
    linear-gradient(180deg,#052a5d 0%,#07356f 48%,#0b3f81 100%);
  padding:20px 15px 17px;
  box-shadow:10px 0 35px rgba(6,42,91,.12)
}
.brand-block{padding:5px 8px 22px;gap:13px}
.brand-block img{width:52px;height:52px}
.brand-block strong{font-size:21px;letter-spacing:.018em}
.brand-block span{font-size:11px;color:#b7cae8}
.side-nav{gap:8px;padding:21px 0}
.nav-item{border-radius:13px;padding:12px 13px;color:#d3e0f3}
.nav-item b{font-size:14px}
.nav-item.active{background:linear-gradient(90deg,#1770ea,#0f5ecf);box-shadow:0 9px 20px rgba(0,0,0,.16)}
.nav-icon{width:26px!important;height:26px!important}
.nav-icon svg{width:21px;height:21px}
.sidebar-user{border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:11px;margin-top:auto;background:rgba(255,255,255,.045)}
.sidebar-user .avatar{width:42px;height:42px;background:linear-gradient(135deg,#2f80f5,#1460d6);box-shadow:0 7px 16px rgba(0,0,0,.16)}

.main-area{max-width:none;padding:0 30px 58px}
.topbar{min-height:92px;margin-bottom:20px;border-bottom:1px solid #e5ebf3}
.page-heading h1{font-size:30px;color:#0c1d39}
.page-heading p{font-size:12.5px;color:#73819a}
.wib-clock{
  min-width:0;
  border:1px solid #dce5f0;
  border-radius:999px;
  padding:8px 13px 8px 11px;
  box-shadow:0 5px 16px rgba(18,49,94,.06);
  background:rgba(255,255,255,.96)
}
.wib-clock>div{display:flex;align-items:center;gap:8px}
.wib-clock strong{font-size:13px;color:#13325f}
.wib-clock span:last-child{font-size:10.5px;color:#7b899f;padding-left:8px;border-left:1px solid #e2e8f1}
.clock-dot{width:8px;height:8px}

.stats-grid{gap:15px;margin-bottom:18px}
.stat-card{
  border:1px solid #dfe7f1;
  border-radius:19px;
  min-height:118px;
  padding:19px 20px;
  box-shadow:0 11px 28px rgba(24,52,98,.06);
  transition:transform .16s ease,box-shadow .16s ease
}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(24,52,98,.09)}
.stat-icon{width:54px;height:54px;border-radius:16px;font-size:23px;background:linear-gradient(145deg,#edf4ff,#e3eeff)}
.stat-card.amber .stat-icon{background:linear-gradient(145deg,#fff5df,#ffedc5)}
.stat-card.green .stat-icon{background:linear-gradient(145deg,#effaf4,#def4e8)}
.stat-card.red .stat-icon{background:linear-gradient(145deg,#fff1f2,#ffe2e6)}
.stat-text span{font-size:12px}
.stat-text strong{font-size:32px}
.stat-text small{font-size:10.5px}

.panel-card{border-radius:20px;border-color:#dde6f1;box-shadow:0 12px 32px rgba(24,52,98,.06)}
.panel-card.flush{overflow:visible}
.toolbar-v4{
  position:relative;
  display:grid;
  grid-template-columns:minmax(280px,1fr) 175px 175px auto auto;
  gap:10px;
  padding:17px;
  border-radius:20px 20px 0 0;
  background:#fff
}
.toolbar-v4 .search-box{min-width:0;flex:none}
.search-box .search-icon{position:absolute;left:13px;z-index:1;font-size:18px;color:#8392a8;pointer-events:none}
.toolbar-v4 .search-box input{padding-left:38px;min-height:44px;background:#fbfdff}
.toolbar-v4>select{min-width:0;max-width:none;width:100%;min-height:44px;background:#fbfdff}
.toolbar-v4 .add-url-top{margin-left:0;min-height:44px;padding-left:18px;padding-right:18px}
.filter-more{position:relative;align-self:stretch}
.filter-more>summary{height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:1px solid #ccd7e6;border-radius:11px;background:#fbfdff;color:#41506a;font-size:12px;font-weight:850;cursor:pointer;list-style:none;white-space:nowrap}
.filter-more>summary::-webkit-details-marker{display:none}
.filter-more[open]>summary{border-color:#7da5ef;box-shadow:0 0 0 4px rgba(18,104,223,.08);background:#fff}
.filter-popover{position:absolute;right:0;top:52px;z-index:45;width:290px;padding:13px;background:#fff;border:1px solid #dce5f0;border-radius:14px;box-shadow:0 18px 45px rgba(17,42,78,.15);display:grid;gap:11px}
.filter-popover label{display:grid;gap:6px;color:#53627a;font-size:11px;font-weight:800}
.filter-popover select{min-height:40px}

.bulkbar{padding:10px 17px;background:#f7faff}
.list-head{padding:15px 18px 10px;font-size:13.5px;background:#fff}
.report-grid{grid-template-columns:repeat(3,minmax(270px,1fr));gap:14px;padding:9px 18px 20px;background:#fff}
.report-card{border-radius:17px;min-height:184px;padding:16px 16px 15px;box-shadow:0 3px 10px rgba(31,58,99,.025)}
.report-card:hover{border-color:#8fb4f2;box-shadow:0 12px 28px rgba(26,60,112,.09)}
.report-card.selected{border-color:#4f8bef;box-shadow:0 0 0 3px rgba(37,104,222,.09),0 10px 25px rgba(26,60,112,.07)}
.pill{border-radius:7px;padding:5px 8px;font-size:10.5px}
.report-url{font-size:14.5px;margin-bottom:10px}
.card-meta{font-size:11.5px}
.card-last{font-size:10.5px;margin-top:9px}
.card-actions{margin-top:13px}
.card-actions .btn{min-height:37px;border-radius:9px}

.empty-state{font-size:12.5px}
.report-grid>.empty-state{min-height:285px;border:1px dashed #d7e2ef;border-radius:16px;margin:4px 0 2px;background:linear-gradient(180deg,#fbfdff,#f8fbff)}
.report-grid>.empty-state::before{content:"🛡️";font-size:36px;filter:grayscale(.05)}

/* Report drawer closer to approved concept */
.drawer{width:min(540px,96vw);padding:24px 24px 28px;border-left:1px solid #dfe7f1}
.drawer-head{padding-bottom:16px}
.eyebrow{font-size:11px;color:#1d62c6}
.drawer-head h2{font-size:15.5px}
.channel-tabs{gap:0;border:1px solid #dce5f0;border-radius:11px;padding:0;overflow:hidden}
.channel-tabs .tab-btn{border:0;border-right:1px solid #e4eaf2;border-radius:0;background:#fff;padding:10px 5px}
.channel-tabs .tab-btn:last-child{border-right:0}
.channel-tabs .tab-btn.active{background:linear-gradient(180deg,#176ce6,#0f5dce);color:#fff;box-shadow:none}
.report-text{min-height:245px;border-radius:12px;background:#fbfcfe}
.drawer-actions .btn{min-height:40px}
.completion-note{border-radius:11px;padding:11px 12px}

@media(min-width:1180px){
  body:has(#reportDrawer.open) .main-area{padding-right:570px}
}
@media(max-width:1380px){
  :root{--sidebar:250px}
  .toolbar-v4{grid-template-columns:minmax(260px,1fr) 160px 160px auto auto}
  .report-grid{grid-template-columns:repeat(2,minmax(280px,1fr))}
}
@media(max-width:1000px){
  .toolbar-v4{grid-template-columns:1fr 1fr}
  .toolbar-v4 .search-box{grid-column:1/-1}
  .toolbar-v4 .add-url-top{margin-left:0}
  .filter-more{width:100%}
  .filter-more>summary{width:100%}
}
@media(max-width:620px){
  .toolbar-v4{grid-template-columns:1fr;padding:12px}
  .toolbar-v4 .search-box{grid-column:auto}
  .wib-clock span:last-child{display:none}
  .wib-clock>div{display:block}
  .filter-popover{position:fixed;left:12px;right:12px;top:auto;width:auto}
}

/* =========================================================
   ACE REPORT V6 — CLEAN PREMIUM UI
   Purpose: compact, readable, no horizontal overflow, no oversized hero.
   ========================================================= */
:root{
  --sidebar:264px;
  --navy:#062b5f;
  --navy-2:#0b3d7b;
  --blue:#176be8;
  --blue-2:#0d58ca;
  --bg:#f4f7fb;
  --card:#ffffff;
  --ink:#10213d;
  --muted:#6d7c94;
  --line:#dce5f0;
  --shadow:0 10px 26px rgba(28,58,102,.065);
  --shadow-soft:0 5px 15px rgba(28,58,102,.055);
}
html,body{overflow-x:hidden;background:var(--bg)}
body{background:linear-gradient(180deg,#f8faff 0,#f4f7fb 42%,#f3f6fa 100%)}
.app-shell{width:100%;min-width:0;grid-template-columns:var(--sidebar) minmax(0,1fr)}
.sidebar{
  width:auto;
  background:linear-gradient(180deg,#062b5f 0%,#0a3975 58%,#0c4488 100%);
  padding:20px 14px 16px;
  box-shadow:8px 0 28px rgba(7,38,82,.10)
}
.brand-block{padding:4px 7px 20px;gap:12px}
.brand-block img{width:50px;height:50px;border-radius:14px;filter:drop-shadow(0 6px 12px rgba(0,0,0,.14))}
.brand-block strong{font-size:20px;letter-spacing:.02em}
.brand-block span{font-size:10.5px;color:#b9cae6}
.side-nav{padding:18px 0;gap:6px}
.nav-item{min-height:45px;border-radius:12px;padding:10px 12px;color:#d7e3f5}
.nav-item b{font-size:13px}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff;transform:none}
.nav-item.active{background:linear-gradient(135deg,#1a72ec,#1764d4);box-shadow:0 8px 20px rgba(0,0,0,.14)}
.nav-icon{width:25px!important;height:25px!important;border-radius:8px;background:rgba(255,255,255,.06)}
.nav-item.active .nav-icon{background:rgba(255,255,255,.13)}
.sidebar-user{border:1px solid rgba(255,255,255,.13);border-radius:14px;padding:10px;background:rgba(255,255,255,.045)}

.main-area{min-width:0;width:100%;max-width:none;margin:0;padding:0 28px 48px}
.topbar{min-height:86px;margin-bottom:18px;border-bottom:1px solid #e2e8f1;gap:13px}
.page-heading h1{font-size:28px;color:#0e1e38}
.page-heading p{font-size:12px;color:#74829a}
.wib-clock{min-width:0;border-radius:999px;padding:8px 12px 8px 11px;background:#fff;border:1px solid #dbe4ef;box-shadow:var(--shadow-soft)}
.wib-clock>div{display:flex;align-items:center;gap:8px}
.wib-clock strong{font-size:12.5px;color:#14315b}
.wib-clock span:last-child{font-size:10px;padding-left:8px;border-left:1px solid #e3e9f1;color:#7b899e}
.clock-dot{width:7px;height:7px;box-shadow:0 0 0 4px rgba(53,165,107,.11)}

.stats-grid{gap:13px;margin-bottom:16px}
.stat-card{min-height:108px;padding:17px 18px;border-radius:18px;border:1px solid #dce5f0;box-shadow:var(--shadow);background:#fff}
.stat-card:hover{transform:none;box-shadow:0 13px 30px rgba(28,58,102,.085)}
.stat-icon{width:49px;height:49px;border-radius:14px;font-size:21px}
.stat-text span{font-size:11.5px}
.stat-text strong{font-size:29px}
.stat-text small{font-size:10px}

.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;align-items:start}
.dashboard-grid>.panel-card{min-height:315px;margin-bottom:0}
.panel-card{border-radius:18px;border:1px solid #dce5f0;box-shadow:var(--shadow);padding:19px}
.section-head{margin-bottom:14px}
.section-head h2{font-size:16.5px}
.section-head p{font-size:11px}
.activity-summary{gap:9px}
.activity-metric{padding:14px;border-radius:13px;background:#f8fbff;border-color:#e0e8f2}
.activity-metric strong{font-size:23px}
.activity-metric span{font-size:10px}
.timeline.compact{max-height:245px;overflow:auto;padding-right:4px}
.timeline.compact::-webkit-scrollbar{width:6px}
.timeline.compact::-webkit-scrollbar-thumb{background:#d7e1ee;border-radius:999px}
.timeline.compact .timeline-item{padding:9px 0}
.timeline-body strong{font-size:11px}
.timeline-body span{font-size:9.8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline-time{font-size:9.8px}

/* Reports: compact and close to the approved mockup */
.panel-card.flush{overflow:visible}
.toolbar-v4{grid-template-columns:minmax(280px,1fr) 165px 165px auto auto;padding:15px;gap:9px;background:#fff}
.toolbar-v4 .search-box input,.toolbar-v4>select,.filter-more>summary,.toolbar-v4 .add-url-top{min-height:42px;height:42px}
.report-grid{grid-template-columns:repeat(3,minmax(250px,1fr));gap:12px;padding:12px 16px 18px;background:#fff}
.report-card{min-height:178px;padding:15px;border-radius:16px;box-shadow:0 4px 12px rgba(31,58,99,.03)}
.report-card:hover{transform:none;border-color:#9cbbea;box-shadow:0 10px 24px rgba(28,61,111,.08)}
.report-url{font-size:14px}
.card-actions .btn{min-height:36px}

/* Drawer: one channel at a time, no page stretching */
.drawer{width:min(530px,96vw);padding:22px 22px 26px}
.channel-tabs{gap:0;border:1px solid #dce5f0;border-radius:11px;padding:0;overflow:hidden}
.channel-tabs .tab-btn{border:0;border-right:1px solid #e4eaf2;border-radius:0;background:#fff;padding:10px 5px}
.channel-tabs .tab-btn:last-child{border-right:0}
.channel-tabs .tab-btn.active{background:linear-gradient(180deg,#176ce6,#0f5dce);color:#fff;box-shadow:none}
.report-text{min-height:235px;background:#fbfcfe;border-radius:12px;resize:none}
.completion-note{border-radius:10px}

/* Prevent desktop drawer from creating a horizontal scrollbar. */
@media(min-width:1180px){
  body:has(#reportDrawer.open) .main-area{padding-right:558px}
}
@media(max-width:1360px){
  :root{--sidebar:244px}
  .report-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}
  .toolbar-v4{grid-template-columns:minmax(240px,1fr) 150px 150px auto auto}
}
@media(max-width:900px){
  .main-area{margin:0;width:100%;padding:0 14px 34px}
  .dashboard-grid{grid-template-columns:1fr}
  .dashboard-grid>.panel-card{min-height:auto}
  .timeline.compact{max-height:none}
}
@media(max-width:620px){
  .main-area{padding:0 10px 28px}
  .topbar{min-height:76px}
  .page-heading h1{font-size:22px}
  .wib-clock>div{display:block}
  .wib-clock span:last-child{display:none}
  .stats-grid,.stats-grid.small{grid-template-columns:1fr 1fr}
  .toolbar-v4{grid-template-columns:1fr;padding:12px}
  .toolbar-v4 .search-box{grid-column:auto}
  .report-grid{grid-template-columns:1fr;padding:10px 12px 14px}
}

/* =========================================================
   ACE REPORT BASE — CLEAN UI
   Focus: strong contrast, readable text, compact layout.
   ========================================================= */
:root{
  --ink:#0b1f3a;
  --muted:#52627a;
  --muted-2:#66758c;
  --line:#d5dfec;
  --bg:#f3f6fa;
  --card:#ffffff;
  --blue:#1267e8;
  --blue-2:#0b57c8;
  --shadow:0 8px 22px rgba(25,54,94,.075);
  --shadow-soft:0 3px 12px rgba(25,54,94,.06);
}
body{font-size:15px;color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.sidebar{background:linear-gradient(180deg,#072d61 0%,#0a3a78 58%,#0b4389 100%)}
.brand-block strong{font-size:21px;font-weight:850;color:#fff}
.brand-block span{font-size:11px;color:#d0dcf0;font-weight:600}
.nav-item{color:#e1e9f5;min-height:47px}
.nav-item b{font-size:14px;font-weight:750}
.nav-icon svg{stroke-width:1.8}
.build-note{margin-top:auto;padding:0 10px 8px;color:#9fb7dc;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.sidebar-user{margin-top:0}
.user-mini strong{font-size:13px}
.user-mini span{font-size:10.5px;color:#c1d2eb}

.main-area{padding-left:30px;padding-right:30px}
.topbar{min-height:88px;margin-bottom:20px}
.page-heading h1{font-size:31px;font-weight:850;color:#0a1d38}
.page-heading p{font-size:13px;color:#5e6f87;font-weight:500}
.wib-clock{border-color:#cfdbea;box-shadow:0 3px 10px rgba(28,58,102,.055)}
.wib-clock strong{font-size:13px;font-weight:850;color:#10305c}
.wib-clock span:last-child{font-size:10.5px;color:#5e6f87}

.stat-card{min-height:112px;border-color:#d5dfec;box-shadow:var(--shadow)}
.stat-icon{width:52px;height:52px;font-size:23px}
.stat-text span{font-size:12.5px;color:#40516a;font-weight:800}
.stat-text strong{font-size:31px;color:#0a1d38;font-weight:900}
.stat-text small{font-size:11px;color:#63728a;font-weight:550}

.panel-card{border-color:#d5dfec;box-shadow:var(--shadow);background:#fff}
.section-head h2{font-size:18px;font-weight:850;color:#0b1f3a}
.section-head h3{font-size:15.5px;font-weight:850;color:#0b1f3a}
.section-head p{font-size:12px;color:#5e6f87;font-weight:500}
.text-btn{font-size:12.5px}
.activity-metric{background:#f7faff;border-color:#dbe4ef}
.activity-metric strong{font-size:25px;color:#0b1f3a;font-weight:900}
.activity-metric span{font-size:11.5px;color:#56677f;font-weight:600}
.timeline-body strong{font-size:12.5px;color:#132844;font-weight:800}
.timeline-body span{font-size:11px;color:#5c6d85}
.timeline-time{font-size:10.5px;color:#5c6d85;font-weight:700}
.timeline-icon{font-weight:850}

input,select,textarea{font-size:14px;color:#10213d;background:#fff;border-color:#cbd7e6}
input::placeholder,textarea::placeholder{color:#7d899b;opacity:1}
.btn{font-size:13px}
.toolbar{border-color:#d8e1ec}
.list-head{font-size:13.5px;font-weight:800;color:#1b2e49}
.list-head span{font-size:12px;color:#5f6f86}
.report-card{border-color:#d5dfec;box-shadow:0 3px 12px rgba(31,58,99,.035)}
.report-url{font-size:14.5px;font-weight:800;color:#10213d;line-height:1.45}
.card-meta{font-size:11.5px;color:#56677e}
.badge{font-size:10.5px;font-weight:900}
.card-actions .btn{font-size:12px}

.drawer{width:min(560px,96vw)}
.drawer-head h2{font-size:16px;color:#10213d;font-weight:850}
.eyebrow{font-size:10.5px}
.channel-tabs .tab-btn{font-size:11.5px;font-weight:800}
.report-text{font-size:13.5px;line-height:1.6;color:#1a2c47;background:#fff;border-color:#cbd7e6}
.completion-note{font-size:11.5px}
.drawer-section label>span{font-size:12px;font-weight:800;color:#40516a}

.empty-state{color:#5e6f87;font-size:13px}

/* Always avoid washed-out disabled text on light backgrounds. */
.btn:disabled{opacity:.62}

@media(min-width:1180px){
  body:has(#reportDrawer.open) .main-area{padding-right:590px}
}
@media(max-width:900px){
  body{font-size:14px}
  .main-area{padding-left:14px;padding-right:14px}
  .page-heading h1{font-size:27px}
}
@media(max-width:620px){
  .page-heading h1{font-size:23px}
  .stat-text strong{font-size:27px}
  .stat-text span{font-size:11.5px}
  .stat-text small{font-size:10.5px}
}

/* ===== ACE REPORT FINAL 8.0 — STABLE, CLEAR, COMPACT ===== */
:root{
  --sidebar:264px;
  --final-navy:#082f63;
  --final-navy-2:#0a437f;
  --final-blue:#2375e8;
  --final-blue-2:#0f60d7;
  --final-ink:#10213c;
  --final-muted:#5f6f86;
  --final-line:#d9e3ef;
  --final-bg:#f4f7fb;
}
html,body{max-width:100%;overflow-x:hidden}
body{font-size:15px;background:linear-gradient(180deg,#f8faff 0%,var(--final-bg) 100%);color:var(--final-ink)}
.app-shell{grid-template-columns:var(--sidebar) minmax(0,1fr);min-width:0}
.sidebar{width:var(--sidebar);padding:20px 14px 15px;background:linear-gradient(180deg,#082f63 0%,#0a3b77 50%,#0d4a89 100%);box-shadow:8px 0 28px rgba(12,47,94,.13)}
.brand-block{padding:3px 6px 20px;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.13);gap:13px}
.brand-block img{width:50px;height:50px;border-radius:14px;box-shadow:0 9px 22px rgba(0,0,0,.18)}
.brand-block strong{font-size:21px;letter-spacing:.01em;color:#fff}
.brand-block span{font-size:10.5px;color:#c9ddf7;margin-top:3px}
.brand-version{display:inline-flex;margin-top:7px;width:max-content;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);border-radius:999px;padding:3px 8px;color:#dcecff;font-size:9px;font-style:normal;font-weight:900;letter-spacing:.10em}
.nav-group-label{padding:12px 10px 7px;color:rgba(213,231,255,.55);font-size:9px;font-weight:900;letter-spacing:.16em}
.nav-group-second{margin-top:13px}
.side-nav{gap:2px}
.nav-item{min-height:46px;margin:3px 0;border-radius:12px;padding:0 11px;gap:11px;color:#edf5ff;font-size:13.5px}
.nav-item:hover{background:rgba(255,255,255,.075)}
.nav-item.active{background:linear-gradient(135deg,#2277ed,#2f83f2);box-shadow:0 10px 22px rgba(3,29,73,.26)}
.nav-icon{width:25px;height:25px;border-radius:8px;background:rgba(255,255,255,.08)}
.nav-item.active .nav-icon{background:rgba(255,255,255,.15)}
.sidebar-user{margin-top:auto;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.065);border-radius:14px;padding:10px}
.sidebar-user .avatar{width:40px;height:40px;font-size:12px;background:linear-gradient(135deg,#3b8cff,#1e65d8);box-shadow:0 7px 17px rgba(0,0,0,.17)}
.user-mini strong{font-size:12px}.user-mini span{font-size:9.5px;color:#bfd6f5}
.main-area{min-width:0;padding:0 28px 42px}
.topbar{min-height:88px;padding:18px 0 16px;border-bottom:1px solid #e0e8f2;background:transparent}
.page-heading h1{font-size:30px;line-height:1.08;letter-spacing:-.035em;color:#0e203c}
.page-heading p{font-size:13px;line-height:1.45;color:#65758c;margin-top:5px}
.top-status{margin-left:auto;display:flex;align-items:center}
.db-online-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfe9db;background:#f1fbf5;color:#277649;border-radius:999px;padding:8px 10px;font-size:11px;font-weight:800;white-space:nowrap}
.db-online-chip i{width:7px;height:7px;border-radius:50%;background:#34ad6d;box-shadow:0 0 0 4px rgba(52,173,109,.12)}
.wib-clock{margin-left:9px;border:1px solid #d7e2ee;background:#fff;border-radius:15px;padding:8px 12px;min-width:205px;box-shadow:0 7px 20px rgba(31,67,112,.06)}
.wib-clock strong{font-size:13px;color:#163056}.wib-clock span{font-size:10px;color:#7a879a}
.clock-dot{width:8px;height:8px;background:#33b273;box-shadow:0 0 0 4px rgba(51,178,115,.12)}
.view{padding-top:18px}
.stats-grid{gap:14px;margin:0 0 16px}
.stat-card{min-height:116px;padding:18px;border:1px solid #d9e3ef;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(35,66,107,.055)}
.stat-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(35,66,107,.085)}
.stat-icon{width:50px;height:50px;border-radius:15px;font-size:22px}
.stat-text span{font-size:13px;font-weight:750;color:#40516c}
.stat-text strong{font-size:31px;line-height:1.05;margin:2px 0;color:#0f203d}
.stat-text small{font-size:11px;color:#75849a}
.panel-card{border:1px solid #dbe4ef;border-radius:19px;background:#fff;box-shadow:0 9px 24px rgba(35,66,107,.05)}
.section-head{gap:12px;margin-bottom:14px}
.section-head h2{font-size:19px;line-height:1.25;color:#122540}
.section-head h3{font-size:15px;color:#122540}
.section-head p{font-size:12.5px;line-height:1.5;color:#6a7990;margin-top:4px}
.text-btn{font-size:11.5px;font-weight:800;color:#1767da}
.dashboard-final-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start}
.dashboard-summary-card,.dashboard-latest-card{min-height:0}
.activity-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.activity-metric{position:relative;overflow:hidden;min-height:95px;border:1px solid #dce6f1;border-radius:14px;background:linear-gradient(180deg,#fbfdff,#f5f8fc);padding:14px 14px 13px}
.activity-metric .metric-emoji{position:absolute;right:12px;top:12px;font-size:20px;opacity:.8}
.activity-metric strong{display:block;font-size:27px;line-height:1.05;color:#10213d;margin-bottom:5px}
.activity-metric span:last-child{font-size:11.5px;color:#6a7990;font-weight:650}
.quick-actions-final{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.quick-actions-final button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;text-align:left;border:1px solid #dce6f1;background:#fff;border-radius:14px;padding:13px;color:#17345a;transition:.15s}
.quick-actions-final button:hover{border-color:#9dbcf0;background:#f8fbff;transform:translateY(-1px)}
.quick-actions-final button>span{grid-row:1/3;font-size:21px;align-self:center}.quick-actions-final b{font-size:12.5px}.quick-actions-final small{font-size:10px;color:#75869d;margin-top:2px}

/* Clean activity feed: grouped, readable, no long repeated rows */
.activity-list{display:grid;gap:8px}
.activity-entry{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start;border:1px solid #e0e7f0;border-radius:14px;background:#fbfdff;padding:12px 13px;transition:.15s}
.activity-entry:hover{border-color:#c5d5ea;background:#fff;box-shadow:0 6px 16px rgba(32,66,110,.045)}
.activity-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eef3f9;font-size:16px;line-height:1}
.activity-symbol.green{background:#e8f8ef}.activity-symbol.blue{background:#eaf2ff}.activity-symbol.amber{background:#fff4dc}.activity-symbol.purple{background:#f0ebff}.activity-symbol.red{background:#ffebee}.activity-symbol.gray{background:#eef2f6}
.activity-main{min-width:0}
.activity-title-line{display:flex;align-items:center;min-height:20px}.activity-title-line strong{font-size:13px;line-height:1.35;color:#10233f}
.activity-context{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.activity-chip{display:inline-flex;align-items:center;max-width:100%;border:1px solid #dce6f2;border-radius:999px;background:#fff;padding:4px 7px;font-size:10px;font-weight:800;color:#46607e;line-height:1.15}
.activity-chip.store-chip{background:#f4f8fd;color:#294f7c}.activity-chip.channel-chip{background:#eef5ff;color:#2362b8;border-color:#d6e5fb}
.activity-url{display:flex;align-items:center;gap:6px;min-width:0;margin-top:6px;color:#667991;font-size:10.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.activity-url span{flex:0 0 auto}.activity-time{padding-top:2px;color:#718198;font-size:10.5px;font-weight:800;white-space:nowrap}
.timeline.compact .activity-entry{padding:10px 11px}.timeline.compact .activity-symbol{width:31px;height:31px;font-size:14px}.timeline.compact .activity-title-line strong{font-size:12px}.timeline.compact .activity-url{font-size:9.5px}.timeline.compact .activity-time{font-size:9.5px}
.activity-panel{padding:18px}.activity-page-head{margin-bottom:10px}.activity-filters{padding:12px 0 16px;border-bottom:1px solid #e7edf4;margin-bottom:14px}.activity-filters label{min-width:180px}.activity-filters .btn{align-self:end}
.empty-state{min-height:180px;border:1px dashed #d8e3ef;border-radius:14px;background:#fbfdff;display:grid;place-items:center;align-content:center;text-align:center;color:#728198;padding:24px}
.empty-state .empty-emoji{font-size:28px;margin-bottom:5px}.empty-state strong{font-size:13px;color:#334963}.empty-state span{font-size:11px;margin-top:3px}

/* Reports: compact cards with stronger text */
.toolbar-v4{gap:10px;padding:15px}.toolbar-v4 .search-box{min-width:300px}
.toolbar input,.toolbar select,.filter-more summary{font-size:12.5px;color:#263a57}
.report-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}
.report-card{min-height:178px;padding:15px;border:1px solid #dce5ef;border-radius:16px;box-shadow:0 4px 14px rgba(33,66,109,.035)}
.report-card:hover{border-color:#a6c2ec;box-shadow:0 10px 24px rgba(33,66,109,.075)}
.report-url{font-size:13.5px;line-height:1.45;color:#152c4c;font-weight:750}
.card-meta{font-size:11.5px}.card-last{font-size:10.5px;color:#748399}
.pill{font-size:10px}.card-actions .btn{min-height:37px;font-size:11.5px}

/* Drawer: readable report text without stretching the report list */
.drawer{width:min(565px,96vw);padding:23px 24px 28px;border-left:1px solid #dfe7f1;box-shadow:-22px 0 50px rgba(15,45,86,.16)}
.drawer-head h2{font-size:15px;line-height:1.45;color:#152b49}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.10em;color:#2b66b7}
.drawer-meta{font-size:11px}.channel-tabs{gap:6px;padding:5px;background:#f2f6fb;border-radius:13px}
.channel-tabs .tab-btn{font-size:10.5px;min-height:38px;border-radius:9px}.channel-tabs .tab-btn.active{background:#1769e8;color:#fff;box-shadow:0 6px 14px rgba(23,105,232,.18)}
.report-text{font-size:13.5px;line-height:1.6;color:#223650;background:#fbfdff;border-color:#d7e2ef;min-height:245px}
.drawer-actions .btn{min-height:41px;font-size:11.5px}.completion-note{font-size:11px;line-height:1.45}
.rank-row select{font-size:12px}.history-section .activity-entry{padding:9px 10px}

/* Forms / tables / labels */
label{font-size:12px;color:#3c4f69;font-weight:700}input,select,textarea{font-size:13px;color:#1d314f}.helper{font-size:11px;color:#708097}.team-info strong{font-size:12.5px}.team-info span{font-size:10.5px}.break-row{font-size:12px}.hour-row{font-size:11px}

@media(max-width:1280px){
  :root{--sidebar:244px}
  .main-area{padding-left:20px;padding-right:20px}
  .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .db-online-chip{display:none}
  .dashboard-final-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
  .app-shell{display:block}.main-area{width:100%;margin-left:0;padding:0 14px 28px}.sidebar{position:fixed;width:270px;transform:translateX(-105%)}.sidebar.open{transform:translateX(0)}
  .topbar{min-height:78px}.page-heading h1{font-size:24px}.page-heading p{font-size:11.5px}.wib-clock{min-width:0;margin-left:auto;padding:8px 10px}.wib-clock span:last-child{display:none}
  .stats-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{min-height:102px;padding:14px}.stat-icon{width:43px;height:43px;font-size:19px}.stat-text strong{font-size:27px}.stat-text span{font-size:11.5px}.stat-text small{font-size:10px}
  .activity-summary{grid-template-columns:1fr 1fr 1fr}.quick-actions-final{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.activity-entry{grid-template-columns:auto minmax(0,1fr)}.activity-time{grid-column:2;padding-top:0}.activity-filters{display:grid;grid-template-columns:1fr 1fr}.activity-filters label{min-width:0}.activity-filters .btn{width:100%}
  .drawer{width:100vw;padding:16px}.drawer-actions{grid-template-columns:1fr}.report-text{font-size:13px}
}
@media(max-width:560px){
  .stats-grid{grid-template-columns:1fr 1fr}.activity-summary{grid-template-columns:1fr}.activity-filters{grid-template-columns:1fr}.activity-context{gap:4px}.activity-chip{font-size:9.5px}.quick-actions-final button{padding:12px}
}

/* =========================================================
   ACE REPORT FINAL 8.1 — STABLE
   Stability, clarity, sync status, activity readability
   ========================================================= */
html,body{overflow-x:hidden}
body[data-build^="ACE-REPORT-FINAL-8.1"]{font-size:15px}
.brand-version{font-size:9px;letter-spacing:.08em;padding:3px 8px;background:rgba(255,255,255,.10)}
.top-status{margin-left:auto;display:flex;align-items:center;min-width:0}
.sync-chip{display:inline-flex;align-items:center;gap:7px;min-height:34px;border:1px solid #d7e2ee;border-radius:999px;background:#fff;padding:7px 11px;box-shadow:0 5px 16px rgba(31,67,112,.05);white-space:nowrap}
.sync-chip i{width:8px;height:8px;border-radius:50%;background:#2fb176;box-shadow:0 0 0 4px rgba(47,177,118,.12)}
.sync-chip b{font-size:11px;color:#1d4f39}
.sync-chip small{font-size:9.5px;color:#708198;border-left:1px solid #e1e7ef;padding-left:7px}
.sync-chip.syncing i{background:#367ce4;box-shadow:0 0 0 4px rgba(54,124,228,.12);animation:syncPulse 1s ease-in-out infinite}
.sync-chip.syncing b{color:#285da7}
.sync-chip.offline{border-color:#f0c9cd;background:#fff8f8}.sync-chip.offline i{background:#d95b63;box-shadow:0 0 0 4px rgba(217,91,99,.11)}.sync-chip.offline b{color:#a63d45}
@keyframes syncPulse{50%{opacity:.45;transform:scale(.82)}}

/* Stronger readable hierarchy */
.page-heading h1{color:#0c1f3b;font-weight:900;letter-spacing:-.025em}
.page-heading p,.section-head p,.helper{color:#64748b}
.section-head h2{color:#10223e;font-weight:900}
.stat-text span{color:#52657f;font-weight:800}.stat-text strong{color:#0c203d;font-weight:900}.stat-text small{color:#74849a}

/* Stable loading skeletons: no blank flashes */
.skeleton{position:relative;overflow:hidden;background:#f4f7fb;border:1px solid #e4eaf2;border-radius:15px;min-height:82px}
.skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.78),transparent);animation:skeletonMove 1.25s infinite}
.skeleton i,.skeleton b,.skeleton span{display:block;background:#e3e9f1;border-radius:999px}
.skeleton.stat{min-height:105px;padding:18px}.skeleton.stat i{width:42px;height:42px;border-radius:12px}.skeleton.stat b{width:38%;height:12px;margin:10px 0 7px}.skeleton.stat span{width:56%;height:9px}
.skeleton.activity{min-height:70px;padding:13px 14px}.skeleton.activity i{width:34px;height:34px;border-radius:11px}.skeleton.activity b{width:45%;height:11px;margin:9px 0 7px 45px}.skeleton.activity span{width:65%;height:8px;margin-left:45px}
.skeleton.report{min-height:178px;padding:15px}.skeleton.report i{width:30%;height:20px}.skeleton.report b{width:78%;height:13px;margin:22px 0 13px}.skeleton.report span{width:52%;height:10px}
@keyframes skeletonMove{100%{transform:translateX(100%)}}

/* Activity page: readable groups, less repetition */
.activity-list.large{gap:7px}
.activity-day{position:sticky;top:78px;z-index:2;display:flex;align-items:center;margin:14px 0 7px;padding:0 2px;background:linear-gradient(180deg,rgba(245,248,252,.98),rgba(245,248,252,.92))}
.activity-day:first-child{margin-top:0}
.activity-day span{display:inline-flex;align-items:center;min-height:28px;border:1px solid #dce5ef;border-radius:999px;background:#fff;padding:5px 10px;color:#425875;font-size:10.5px;font-weight:900;box-shadow:0 3px 10px rgba(31,58,99,.04)}
.activity-entry{background:#fff;border-color:#dde6f0;padding:12px 13px;box-shadow:0 2px 8px rgba(33,66,109,.025)}
.activity-entry:hover{border-color:#b9cce4;box-shadow:0 7px 17px rgba(33,66,109,.06)}
.activity-title-line strong{font-size:13.25px;color:#0e223f;font-weight:900}
.activity-chip{font-size:10.25px}.activity-chip.more-chip{background:#f3efff;border-color:#e1d8fb;color:#6544a9}
.activity-url{font-size:11px;color:#60738d}.activity-url>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-time{font-size:10.5px;color:#526881;background:#f5f8fc;border:1px solid #e3eaf2;border-radius:999px;padding:5px 8px;align-self:start}
.activity-filters{gap:10px}.activity-filters label{min-width:155px}.activity-filters select{font-size:12px}

/* Drawer remains compact while primary actions stay reachable */
.drawer{scrollbar-gutter:stable}
.drawer-actions{position:sticky;bottom:-1px;z-index:4;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:10px 0 6px;border-top:1px solid #edf1f6}
.report-text{line-height:1.55;color:#263b58}
.completion-note{border-radius:10px}

/* Settings / package marker */
.stable-info{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;padding-top:13px;border-top:1px solid #e5ebf2;color:#697b92;font-size:10.5px}
.stable-info span:first-child{color:#2c527f;font-weight:900}

/* Keyboard and accessibility clarity */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(47,115,230,.2);outline-offset:2px}

@media(max-width:1000px){
  .sync-chip small{display:none}
  .activity-day{top:76px}
}
@media(max-width:820px){
  .sync-chip{padding:7px 9px}.sync-chip b{font-size:10px}
  .activity-filters{grid-template-columns:1fr 1fr}
  .activity-time{grid-column:2;width:max-content;margin-top:2px}
  .activity-day{top:72px}
}
@media(max-width:560px){
  .top-status{display:none}
  .activity-filters{grid-template-columns:1fr}
  .activity-entry{padding:11px}
  .activity-day{position:static;background:transparent}
  .stable-info{display:grid;justify-content:start}
}


/* =========================================================
   ACE REPORT FINAL 8.2 — COMPACT
   Compact dashboard, clearer text, reduced whitespace
   ========================================================= */
body[data-build^="ACE-REPORT-FINAL-8.2"]{font-size:15px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .brand-version{font-size:9px;letter-spacing:.06em;padding:4px 9px;background:rgba(255,255,255,.11)}
body[data-build^="ACE-REPORT-FINAL-8.2"] .main-area{padding:0 24px 34px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .topbar{min-height:78px;margin-bottom:14px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .page-heading h1{font-size:26px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .page-heading p{font-size:13px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .wib-clock strong{font-size:13px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .wib-clock span:last-child{font-size:10.5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stats-grid{gap:12px;margin-bottom:14px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stat-card{min-height:94px;padding:16px 17px;border-radius:17px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stat-icon{width:46px;height:46px;border-radius:13px;font-size:20px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stat-text span{font-size:12px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stat-text strong{font-size:27px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stat-text small{font-size:10.5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .dashboard-grid{gap:13px;align-items:stretch}
body[data-build^="ACE-REPORT-FINAL-8.2"] .dashboard-grid>.panel-card{min-height:390px;margin-bottom:0;display:flex;flex-direction:column}
body[data-build^="ACE-REPORT-FINAL-8.2"] .panel-card{padding:18px;border-radius:18px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .section-head{margin-bottom:12px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .section-head h2{font-size:16px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .section-head p{font-size:12px;line-height:1.5}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-summary{gap:10px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-metric{padding:14px 15px;min-height:88px;display:grid;align-content:start;gap:5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-metric strong{font-size:24px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-metric span:last-child{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .metric-emoji{font-size:18px;line-height:1}
body[data-build^="ACE-REPORT-FINAL-8.2"] .quick-actions-final{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .quick-actions-final button{padding:13px 14px;border-radius:13px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .quick-actions-final b{font-size:14px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .quick-actions-final small{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .dashboard-latest-card .timeline.compact{max-height:328px;overflow:auto;padding-right:4px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-entry{padding:11px 12px;gap:10px;border-radius:13px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-symbol{width:34px;height:34px;font-size:15px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-title-line strong{font-size:13.5px;line-height:1.35}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-context{gap:6px;margin-top:5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-chip{font-size:10.75px;padding:4px 8px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-url{font-size:11.5px;margin-top:5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-time{font-size:10.75px;padding:5px 8px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-list.large{gap:8px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-day{top:72px;margin:12px 0 6px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-day span{font-size:11px;min-height:30px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-filters{gap:9px;padding:10px 0 14px;margin-bottom:12px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-filters label{font-size:12px;gap:6px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-filters select{min-height:42px;font-size:12.5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .toolbar{padding:14px 16px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .report-grid{gap:12px;padding:8px 16px 16px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .report-card{min-height:170px;padding:15px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .report-url{font-size:14px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .card-meta{font-size:12px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .card-last{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .drawer-head h2{font-size:16px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .report-text{font-size:13.5px;min-height:240px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .channel-tabs .tab-btn{font-size:10.5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .text-btn{font-size:12.5px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .db-online-chip{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .empty-state{font-size:13px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .report-grid>.empty-state{min-height:240px}
body[data-build^="ACE-REPORT-FINAL-8.2"] .stable-info::after{content:"ACE REPORT FINAL 8.2 — Compact";color:#5b6f89;font-weight:800}
@media(max-width:1180px){
  body[data-build^="ACE-REPORT-FINAL-8.2"] .main-area{padding:0 18px 28px}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .dashboard-grid{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .dashboard-grid>.panel-card{min-height:unset}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .dashboard-latest-card .timeline.compact{max-height:360px}
}
@media(max-width:820px){
  body[data-build^="ACE-REPORT-FINAL-8.2"] .main-area{padding:0 14px 24px}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .page-heading h1{font-size:24px}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .stats-grid{gap:10px}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .stat-card{min-height:90px;padding:14px}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .quick-actions-final{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-summary{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:560px){
  body[data-build^="ACE-REPORT-FINAL-8.2"] .stats-grid{grid-template-columns:1fr 1fr}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-summary{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-entry{grid-template-columns:auto minmax(0,1fr)}
  body[data-build^="ACE-REPORT-FINAL-8.2"] .activity-time{grid-column:2;justify-self:start;margin-top:3px}
}


/* =========================================================
   ACE REPORT FINAL 8.3 — POLISHED RESPONSIVE
   Final visual polish: clear typography, compact dashboard,
   comfortable navigation, responsive desktop/tablet/mobile.
   ========================================================= */
body[data-build^="ACE-REPORT-FINAL-8.3"]{
  font-size:15px;
  color:#10233f;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .brand-version{
  font-size:9.5px;
  letter-spacing:.06em;
  padding:4px 9px;
  background:rgba(255,255,255,.11);
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .main-area{
  padding:0 22px 32px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .topbar{
  min-height:76px;
  margin-bottom:14px;
  gap:12px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .page-heading h1{
  font-size:27px;
  line-height:1.08;
  font-weight:900;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .page-heading p{
  margin-top:5px;
  font-size:13px;
  color:#60718a;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .sync-chip,
body[data-build^="ACE-REPORT-FINAL-8.3"] .wib-clock{
  min-height:36px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .wib-clock strong{font-size:13px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .wib-clock span:last-child{font-size:10.5px}

/* Navigation stays familiar, only readability is improved. */
body[data-build^="ACE-REPORT-FINAL-8.3"] .nav-item{
  min-height:46px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .nav-item b{
  font-size:13.75px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .nav-group-label{
  font-size:9.5px;
  letter-spacing:.14em;
}

/* Statistics: compact but not tiny. */
body[data-build^="ACE-REPORT-FINAL-8.3"] .stats-grid{
  gap:12px;
  margin-bottom:13px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-card{
  min-height:92px;
  padding:15px 17px;
  border-radius:17px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-icon{
  width:46px;
  height:46px;
  font-size:20px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text span{font-size:12px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text strong{font-size:28px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text small{font-size:10.75px}

/* Dashboard: remove the large empty gap inside the left card. */
body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-grid{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:13px;
  align-items:start;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-grid>.panel-card{
  min-height:0;
  margin-bottom:0;
  padding:17px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-summary-card{
  min-height:300px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-latest-card{
  min-height:300px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .section-head{
  margin-bottom:11px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .section-head h2{
  font-size:17px;
  line-height:1.25;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .section-head p{
  font-size:12.25px;
  line-height:1.5;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .text-btn{
  font-size:12.25px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-summary{
  gap:9px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-metric{
  min-height:82px;
  padding:13px 14px;
  display:grid;
  align-content:start;
  gap:4px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-metric strong{font-size:24px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-metric span:last-child{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .metric-emoji{font-size:18px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .quick-actions-final{
  margin-top:12px;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .quick-actions-final button{
  min-height:58px;
  padding:11px 13px;
  border-radius:13px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .quick-actions-final b{font-size:13.5px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .quick-actions-final small{font-size:10.75px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-latest-card .timeline.compact{
  max-height:285px;
  overflow:auto;
  padding-right:4px;
}

/* Activity: readable at normal desktop zoom. */
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-entry{
  padding:11px 12px;
  gap:10px;
  border-radius:13px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-symbol{
  width:34px;
  height:34px;
  font-size:15px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-title-line strong{
  font-size:13.75px;
  line-height:1.35;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-chip{
  font-size:10.75px;
  padding:4px 8px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-url{
  font-size:11.75px;
  color:#566b85;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-time{
  font-size:10.75px;
  padding:5px 8px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-list.large{gap:8px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-day span{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-filters label{font-size:12px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-filters select{font-size:12.5px;min-height:42px}

/* Reports and drawer: enough text size without wasting space. */
body[data-build^="ACE-REPORT-FINAL-8.3"] .toolbar{padding:13px 15px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .toolbar input,
body[data-build^="ACE-REPORT-FINAL-8.3"] .toolbar select{font-size:13px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .report-grid{
  gap:12px;
  padding:8px 15px 16px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .report-card{
  min-height:168px;
  padding:15px;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .report-url{font-size:14.25px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .card-meta{font-size:12px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .card-last{font-size:11px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .drawer-head h2{font-size:16px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .report-text{
  min-height:235px;
  font-size:13.5px;
  line-height:1.58;
}
body[data-build^="ACE-REPORT-FINAL-8.3"] .drawer-actions .btn{font-size:11.75px}
body[data-build^="ACE-REPORT-FINAL-8.3"] .channel-tabs .tab-btn{font-size:10.75px}

/* Tablet */
@media(max-width:1180px){
  body[data-build^="ACE-REPORT-FINAL-8.3"] .main-area{padding:0 18px 28px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-grid{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-summary-card,
  body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-latest-card{min-height:0}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .dashboard-latest-card .timeline.compact{max-height:330px}
}

/* Mobile / small tablet */
@media(max-width:820px){
  body[data-build^="ACE-REPORT-FINAL-8.3"] .main-area{padding:0 13px 24px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .topbar{min-height:74px;margin-bottom:12px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .page-heading h1{font-size:23px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .page-heading p{font-size:11.75px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stats-grid{gap:9px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-card{min-height:88px;padding:13px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-icon{width:42px;height:42px;font-size:18px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text strong{font-size:25px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .quick-actions-final{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-title-line strong{font-size:13.25px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-url{font-size:11.25px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .report-grid{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .drawer{width:100vw;padding:16px}
}

/* Phone */
@media(max-width:560px){
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stats-grid{grid-template-columns:1fr 1fr}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-card{gap:10px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text span{font-size:10.75px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text strong{font-size:23px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .stat-text small{font-size:9.75px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-summary{grid-template-columns:1fr}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-entry{grid-template-columns:auto minmax(0,1fr)}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-time{grid-column:2;justify-self:start;margin-top:3px}
  body[data-build^="ACE-REPORT-FINAL-8.3"] .activity-filters{grid-template-columns:1fr}
}


/* =========================================================
   ACE REPORT FINAL 8.4 — FULL CHANNEL LABELS
   Always show all report channels; never collapse to +N.
   ========================================================= */
body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-context{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:6px;
  min-width:0;
}
body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-chip{
  flex:0 0 auto;
  max-width:100%;
  font-size:11px;
  line-height:1.2;
  padding:5px 8px;
  white-space:nowrap;
}
body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-chip.channel-chip{
  background:#eef5ff;
  color:#185db7;
  border-color:#d2e2fb;
}
body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-chip.store-chip{
  background:#eefaf5;
  color:#237154;
  border-color:#d5eee3;
}
body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-chip.more-chip{display:none!important}
@media(max-width:820px){
  body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-chip{font-size:10.75px;padding:5px 7px}
}
@media(max-width:560px){
  body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-context{gap:5px}
  body[data-build^="ACE-REPORT-FINAL-8.4"] .activity-chip{font-size:10.5px;white-space:normal}
}


/* =========================================================
   ACE REPORT FINAL 8.5 — ACTIVITY STABLE
   IMPORTANT: these rules are intentionally NOT version-scoped.
   Dashboard activity remains compact on future build markers.
   ========================================================= */

/* Dashboard recent activity: compact list, not oversized cards. */
.dashboard-latest-card #dashboardActivity.timeline.compact{
  max-height:326px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:0;
  border:1px solid #e1e8f1;
  border-radius:14px;
  background:#fff;
  scrollbar-gutter:stable;
}
.dashboard-latest-card #dashboardActivity.timeline.compact::-webkit-scrollbar{width:6px}
.dashboard-latest-card #dashboardActivity.timeline.compact::-webkit-scrollbar-thumb{background:#d6e0ec;border-radius:999px}
.dashboard-latest-card #dashboardActivity .activity-entry{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
  min-height:64px;
  margin:0;
  padding:10px 11px;
  border:0;
  border-bottom:1px solid #edf1f6;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
.dashboard-latest-card #dashboardActivity .activity-entry:last-child{border-bottom:0}
.dashboard-latest-card #dashboardActivity .activity-entry:hover{
  background:#f9fbfe;
  border-color:#edf1f6;
  box-shadow:none;
}
.dashboard-latest-card #dashboardActivity .activity-symbol{
  width:32px;
  height:32px;
  border-radius:10px;
  font-size:14px;
}
.dashboard-latest-card #dashboardActivity .activity-title-line{min-height:18px}
.dashboard-latest-card #dashboardActivity .activity-title-line strong{
  font-size:13.25px;
  line-height:1.3;
  color:#10233f;
}
.dashboard-latest-card #dashboardActivity .activity-context{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  margin-top:4px;
  min-width:0;
}
.dashboard-latest-card #dashboardActivity .activity-chip{
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  font-size:10.25px;
  line-height:1.2;
  white-space:nowrap;
}
.dashboard-latest-card #dashboardActivity .activity-chip.store-chip{
  background:#eefaf5;
  color:#237154;
  border-color:#d5eee3;
}
.dashboard-latest-card #dashboardActivity .activity-chip.channel-chip{
  background:#eef5ff;
  color:#185db7;
  border-color:#d2e2fb;
}
.dashboard-latest-card #dashboardActivity .activity-chip.more-chip{display:none!important}
.dashboard-latest-card #dashboardActivity .activity-url{
  display:flex;
  min-width:0;
  margin-top:4px;
  gap:5px;
  font-size:11px;
  line-height:1.3;
  color:#667991;
}
.dashboard-latest-card #dashboardActivity .activity-url>span:last-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-latest-card #dashboardActivity .activity-time{
  margin-top:0;
  padding:4px 7px;
  border:1px solid #e3eaf2;
  border-radius:999px;
  background:#f6f9fc;
  color:#586c85;
  font-size:10.5px;
  font-weight:800;
  white-space:nowrap;
}

/* Full Activity page remains spacious and readable. */
#view-activity .activity-entry{
  padding:12px 13px;
  border-radius:14px;
}
#view-activity .activity-title-line strong{font-size:13.75px}
#view-activity .activity-chip{font-size:10.75px;padding:4px 8px}
#view-activity .activity-url{font-size:11.5px}
#view-activity .activity-time{font-size:10.75px}

/* All completed channels must always be visible. */
.activity-context{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0}
.activity-chip.more-chip{display:none!important}

/* Keep dashboard panels balanced. */
.dashboard-final-grid{align-items:stretch}
.dashboard-summary-card,.dashboard-latest-card{min-height:0}
.dashboard-latest-card{display:flex;flex-direction:column}
.dashboard-latest-card #dashboardActivity{flex:1 1 auto}

@media(max-width:1180px){
  .dashboard-latest-card #dashboardActivity.timeline.compact{max-height:350px}
}
@media(max-width:820px){
  .dashboard-latest-card #dashboardActivity .activity-entry{
    grid-template-columns:32px minmax(0,1fr);
    gap:9px;
    padding:10px;
  }
  .dashboard-latest-card #dashboardActivity .activity-time{
    grid-column:2;
    justify-self:start;
    margin-top:2px;
  }
  .dashboard-latest-card #dashboardActivity .activity-chip{font-size:10px}
}
@media(max-width:560px){
  .dashboard-latest-card #dashboardActivity.timeline.compact{max-height:none}
  .dashboard-latest-card #dashboardActivity .activity-context{gap:4px}
  .dashboard-latest-card #dashboardActivity .activity-chip{white-space:normal}
}


/* =========================================================
   ACE REPORT FINAL 8.7 — CLEAR ACTIVITY
   Dashboard activity prioritizes scanability and clear labels.
   ========================================================= */
.dashboard-latest-card #dashboardActivity.timeline.compact{
  max-height:360px;
  overflow-y:auto;
  overflow-x:hidden;
  border:1px solid #dfe7f1;
  border-radius:14px;
  background:#fff;
  padding:0;
  scrollbar-gutter:stable;
}
.dashboard-latest-card #dashboardActivity .dashboard-activity-row{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:11px;
  padding:12px 13px;
  border-bottom:1px solid #edf1f6;
  background:#fff;
}
.dashboard-latest-card #dashboardActivity .dashboard-activity-row:last-child{border-bottom:0}
.dashboard-latest-card #dashboardActivity .dashboard-activity-row:hover{background:#f9fbfe}
.dashboard-latest-card #dashboardActivity .dashboard-activity-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  background:#edf3ff;color:#2f69ce;font-size:17px;font-weight:900;
}
.dashboard-latest-card #dashboardActivity .dashboard-activity-icon.green{background:#e9f8ef;color:#238658}
.dashboard-latest-card #dashboardActivity .dashboard-activity-icon.amber{background:#fff4df;color:#b47416}
.dashboard-latest-card #dashboardActivity .dashboard-activity-icon.purple{background:#f2edff;color:#7048b5}
.dashboard-latest-card #dashboardActivity .dashboard-activity-icon.red{background:#ffedef;color:#bb4650}
.dashboard-latest-card #dashboardActivity .dashboard-activity-icon.gray{background:#f1f4f8;color:#66758a}
.dashboard-latest-card #dashboardActivity .dashboard-activity-content{min-width:0}
.dashboard-latest-card #dashboardActivity .dashboard-activity-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dashboard-latest-card #dashboardActivity .dashboard-activity-head strong{font-size:14px;line-height:1.35;color:#0d223f;font-weight:900}
.dashboard-latest-card #dashboardActivity .dashboard-activity-head time{flex:0 0 auto;font-size:11px;color:#526881;background:#f5f8fc;border:1px solid #e3eaf2;border-radius:999px;padding:5px 8px;font-weight:850;white-space:nowrap}
.dashboard-latest-card #dashboardActivity .dashboard-activity-by{margin-top:4px;font-size:12px;line-height:1.4;color:#52647d;font-weight:750}
.dashboard-latest-card #dashboardActivity .dot-sep{color:#9aabc0;padding:0 2px}
.dashboard-latest-card #dashboardActivity .dashboard-activity-channels{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.dashboard-latest-card #dashboardActivity .dashboard-meta-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;border:1px solid #d7e4f4;background:#eef5ff;color:#195daf;font-size:10.5px;line-height:1.2;font-weight:850}
.dashboard-latest-card #dashboardActivity .dashboard-meta-chip.store-chip{background:#eefaf5;border-color:#d5eee3;color:#277255}
.dashboard-latest-card #dashboardActivity .dashboard-activity-url{display:flex;align-items:center;gap:6px;min-width:0;margin-top:6px;color:#61758f;font-size:11.5px;line-height:1.35}
.dashboard-latest-card #dashboardActivity .dashboard-activity-url span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:820px){
  .dashboard-latest-card #dashboardActivity.timeline.compact{max-height:390px}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-row{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:11px}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-icon{width:34px;height:34px;font-size:15px}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-head{align-items:flex-start}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-head strong{font-size:13.5px}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-by{font-size:11.5px}
}
@media(max-width:560px){
  .dashboard-latest-card #dashboardActivity.timeline.compact{max-height:none}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-head{display:grid;gap:5px}
  .dashboard-latest-card #dashboardActivity .dashboard-activity-head time{justify-self:start}
  .dashboard-latest-card #dashboardActivity .dashboard-meta-chip{font-size:10px;white-space:normal}
}
