:root{
  --red:#e30613;--red-dark:#b70710;--red-soft:#fff2f3;
  --ink:#111418;--ink2:#172029;--text:#1d2329;--muted:#6b7280;--muted2:#8a929c;
  --line:#e6e9ed;--line2:#eef0f3;--bg:#f7f8fa;--card:#fff;--green:#16a34a;--green-soft:#eaf8ef;
  --orange:#f59e0b;--orange-soft:#fff7e8;--blue:#2563eb;--blue-soft:#eef4ff;--purple:#7c3aed;--purple-soft:#f4efff;
  --shadow:0 10px 28px rgba(17,20,24,.07);--radius:14px;--radius-sm:10px;--sidebar:258px;
}
*{box-sizing:border-box}html{background:#fff}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}a{color:inherit}.muted{color:var(--muted)}.danger-text{color:var(--red)!important}.success-text{color:var(--green)!important}.orange-text{color:var(--orange)!important}

/* LOGIN */
.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,#fff 0,#fff 40%,#f5f7f9 100%);padding:28px}.login-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(17,20,24,.12);padding:42px 42px 34px}.login-logo{display:block;width:320px;max-width:86%;height:auto;margin:0 auto 28px;background:#fff;border-radius:14px;padding:10px 12px}.login-card h1{font-size:28px;letter-spacing:-.025em;text-align:center;margin:0 0 8px;color:var(--ink)}.login-card>p{text-align:center;color:var(--muted);font-size:15px;margin:0 0 26px}.field{display:block;margin:16px 0}.field>span{display:block;font-size:14px;font-weight:700;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;height:50px;border:1px solid #d8dde3;border-radius:8px;padding:0 12px;background:#fff;color:var(--ink);outline:none;transition:.15s}.field textarea{height:100px;padding-top:10px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#f08b91;box-shadow:0 0 0 3px rgba(227,6,19,.08)}.password-wrap{position:relative}.password-wrap input{padding-right:42px}.password-wrap .icon-btn{border:0;background:transparent;width:36px;height:36px;border-radius:8px;display:grid;place-items:center;color:#56606a}.login-links{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;margin:5px 0 16px}.remember{display:flex;align-items:center;gap:7px;color:var(--muted)}.link-btn{border:0;background:transparent;color:var(--red);font-weight:700;padding:0}.security-note{display:flex;gap:12px;align-items:flex-start;background:#fbfcfd;border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:16px}.security-note .shield{width:34px;height:34px;border-radius:10px;border:1px solid #b8d9c4;display:grid;place-items:center;color:var(--green);font-weight:800}.security-note strong{display:block;font-size:12px}.security-note small{display:block;color:var(--muted);font-size:13px;line-height:1.45;margin-top:4px}

/* APP SHELL */
.app{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);background:linear-gradient(180deg,#10171d 0%,#0b1116 100%);color:#fff;z-index:20;display:flex;flex-direction:column;padding:92px 12px 16px;border-right:1px solid #dfe3e7}.brand-wrap{position:absolute;left:0;top:0;width:var(--sidebar);height:78px;background:#fff;border-bottom:1px solid #dfe3e7;display:flex;align-items:center;justify-content:center;padding:0 22px;margin:0}.brand-wrap img{display:block;width:205px;max-width:calc(100% - 16px);height:54px;object-fit:contain;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;filter:none}.nav{display:flex;flex-direction:column;gap:2px;overflow-y:auto;padding:4px 0 10px}.nav::-webkit-scrollbar{width:0}.nav .nav-group{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#7f8992;padding:16px 14px 7px}.nav button{width:100%;height:48px;border:0;background:transparent;color:#dce2e7;border-radius:9px;display:flex;align-items:center;gap:12px;text-align:left;padding:0 14px;font-size:15px;font-weight:650;transition:.12s}.nav button:hover{background:rgba(255,255,255,.055);color:#fff}.nav button.on{background:linear-gradient(90deg,var(--red),#b80b14);color:#fff;box-shadow:0 5px 14px rgba(227,6,19,.18)}.nav button.sub{padding-left:40px;height:40px;font-size:13px}.nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;flex:0 0 auto}.nav .caret{margin-left:auto;font-size:12px}.nav .divider{height:1px;background:rgba(255,255,255,.08);margin:8px 9px}.side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding-top:10px}.env-pill{height:40px;border:1px solid rgba(255,255,255,.16);border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 10px;margin:0 3px 8px;color:#dce2e6;font-size:12px}.env-pill span,.environment span{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.user-mini{display:flex;align-items:center;gap:10px;padding:10px 6px}.user-mini b{font-size:12px;display:block}.user-mini span{display:block;font-size:13px;color:#89949d;margin-top:2px;max-width:140px;overflow:hidden;text-overflow:ellipsis}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#182028;color:white;font-weight:800;font-size:14px;flex:0 0 auto}.avatar.small{width:30px;height:30px;font-size:10px;background:#263039}.avatar.photo{overflow:hidden;background:#eee}.avatar.photo img{width:100%;height:100%;object-fit:cover}
.main{margin-left:var(--sidebar);min-height:100vh;padding:0 24px 42px}.topbar{height:78px;background:#fff;position:sticky;top:0;z-index:14;border-bottom:1px solid #dfe3e7;display:flex;align-items:center;justify-content:space-between;margin:0 -24px;padding:0 24px}.top-left,.top-right{display:flex;align-items:center;gap:11px}.icon-btn{border:0;background:transparent;width:42px;height:42px;border-radius:8px;display:grid;place-items:center;color:#56606a}.icon-btn:hover{background:#f3f5f7}.global-search{height:42px;width:470px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 12px}.global-search input{border:0;outline:0;min-width:0;flex:1;color:var(--ink);font-size:14px}.global-search kbd{font:500 12px Inter;background:#f6f7f8;color:#87909a;padding:3px 5px;border-radius:5px;border:1px solid #eceef0}.notify{position:relative}.notify i{position:absolute;top:3px;right:4px;width:15px;height:15px;border-radius:50%;background:var(--red);color:#fff;font:700 8px/15px Inter}.environment{height:42px;border:1px solid var(--line);border-radius:8px;padding:0 10px;display:flex;align-items:center;gap:7px;font-size:13px;background:#fff}.environment small{color:#7a838c}.profile-chip{border:0;background:#fff;display:flex;align-items:center;gap:10px;border-radius:10px;padding:6px 8px}.profile-chip:hover{background:#f6f7f8}.profile-chip div:nth-child(2){text-align:left}.profile-chip b{display:block;font-size:13px}.profile-chip small{display:block;font-size:11px;color:var(--muted);margin-top:1px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 0 17px}.page-head h1{font-size:34px;line-height:1.1;letter-spacing:-.035em;margin:0;color:var(--ink);font-weight:800}.page-head p{font-size:15px;color:var(--muted);margin:5px 0 0}.page-actions{display:flex;gap:8px;align-items:center}

/* BUTTONS */
.btn{height:46px;border-radius:7px;border:1px solid var(--line);background:#fff;color:#29313a;padding:0 14px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn:hover{background:#fafafa}.btn.primary{border-color:var(--red);background:linear-gradient(#ef0b19,#d90612);color:white;box-shadow:0 4px 12px rgba(227,6,19,.16)}.btn.success{border-color:#17a34a;background:#17a34a;color:#fff}.btn.warning{border-color:#f59e0b;background:#f59e0b;color:#fff}.btn.danger{border-color:#efb4b8;color:var(--red);background:#fff}.btn.ghost{background:#fff}.btn.wide{width:100%;height:46px}.btn.small{height:36px;font-size:13px;padding:0 12px}.icon-circle{width:30px;height:30px;border-radius:8px;border:1px solid var(--line);display:grid;place-items:center;background:#fff;color:#606a74}.plain-link{color:var(--red);font-weight:700;font-size:10px;cursor:pointer}.more-btn{border:0;background:transparent;color:#6f7882;font-size:17px;padding:3px 6px}

/* LAYOUT / CARDS */
.grid{display:grid;gap:12px}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid.auto{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{background:#fff;border:1px solid var(--line);border-radius:12px}.card-head,.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 18px;border-bottom:1px solid var(--line2)}.card-head h2,.panel-head h2{margin:0;font-size:19px;color:var(--ink)}.card-head p,.panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.card-body,.panel-body{padding:18px 18px}.section-gap{margin-top:12px}.split-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:12px}.split-equal{display:grid;grid-template-columns:1fr 1fr;gap:12px}.split-3{display:grid;grid-template-columns:1.25fr .9fr .9fr;gap:12px}

/* KPI */
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kpi-grid.six{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 16px;min-height:98px;display:flex;gap:12px;align-items:flex-start;box-shadow:0 4px 14px rgba(17,20,24,.025)}.kpi-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--red-soft);color:var(--red);font-weight:800;flex:0 0 auto;font-size:16px}.kpi-icon.blue{background:var(--blue-soft);color:var(--blue)}.kpi-icon.green{background:var(--green-soft);color:var(--green)}.kpi-icon.purple{background:var(--purple-soft);color:var(--purple)}.kpi-icon.orange{background:var(--orange-soft);color:var(--orange)}.kpi-copy{min-width:0}.kpi-copy span{display:block;font-size:12px;color:#5f6872;font-weight:650}.kpi-copy strong{display:block;font-size:24px;line-height:1.1;letter-spacing:-.035em;color:var(--ink);margin:5px 0 4px}.trend{font-size:11px;font-weight:700;color:var(--green)}.trend.down{color:var(--red)}.trend.warn{color:var(--orange)}.trend small{color:var(--muted);font-weight:500;margin-left:5px;font-size:10px}

/* TABLES / FILTERS */
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line2)}.toolbar .search{height:36px;min-width:260px;flex:1;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 11px;font-size:10px;outline:none}.toolbar select,.filter{height:36px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 10px;font-size:9.5px;color:#4a535d}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:780px}.table th{background:#fafbfc;color:#666f79;font-size:8.5px;text-transform:none;font-weight:700;text-align:left;padding:9px 10px;border-bottom:1px solid var(--line)}.table td{font-size:9.7px;padding:10px;border-bottom:1px solid var(--line2);vertical-align:middle;color:#303840}.table tbody tr:hover{background:#fcfcfd}.table tbody tr:last-child td{border-bottom:0}.table .name{font-weight:700;color:var(--ink);font-size:10px}.sub{display:block;font-size:8.3px;color:var(--muted);margin-top:2px}.badge{display:inline-flex;align-items:center;justify-content:center;height:21px;padding:0 7px;border-radius:5px;font-size:8.5px;font-weight:700;background:#f2f4f5;color:#5f6872}.badge.active,.badge.paid,.badge.success{background:var(--green-soft);color:#1d8c4a}.badge.risk,.badge.past_due,.badge.failed,.badge.suspended,.badge.danger{background:#fff0f1;color:#d01924}.badge.trial,.badge.info{background:var(--blue-soft);color:#2563eb}.badge.pending,.badge.warning{background:var(--orange-soft);color:#d47b00}.badge.archived{background:#f1f2f4;color:#6c7580}.badge.purple{background:var(--purple-soft);color:var(--purple)}.pagination{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;border-top:1px solid var(--line2);font-size:8.8px;color:var(--muted)}.pager{display:flex;gap:4px}.pager button{width:28px;height:28px;border:1px solid var(--line);background:#fff;border-radius:6px;font-size:9px}.pager button.on{background:var(--red);color:#fff;border-color:var(--red)}

/* TABS / DETAILS */
.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);padding:0 14px;overflow:auto;white-space:nowrap}.tab{padding:12px 0 10px;font-size:9.5px;color:#606a74;border-bottom:2px solid transparent;font-weight:600}.tab.on{color:var(--red);border-bottom-color:var(--red)}.detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:15px}.entity-title{display:flex;align-items:center;gap:10px}.entity-icon{width:48px;height:48px;border-radius:10px;display:grid;place-items:center;background:var(--red);color:#fff;font-weight:800;font-size:15px}.entity-title h2{font-size:20px;margin:0;color:var(--ink)}.entity-title p{font-size:12px;color:var(--muted);margin:4px 0 0}.info-list{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;font-size:13px}.info-list dt{color:var(--muted)}.info-list dd{margin:0;font-weight:600;color:#313a43}.mini-list{display:flex;flex-direction:column;gap:11px}.mini-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line2);padding-bottom:8px}.mini-row:last-child{border-bottom:0;padding-bottom:0}.mini-row b{font-size:14px}.mini-row span{font-size:12px;color:var(--muted)}

/* CHARTS */
.chart-card{padding:0}.chart-area{padding:12px 14px 14px;height:230px}.chart-area.small{height:180px}.chart-svg{width:100%;height:100%;overflow:visible}.axis-line{stroke:#e8ebee;stroke-width:1}.line-red{fill:none;stroke:var(--red);stroke-width:2.3}.line-blue{fill:none;stroke:#2563eb;stroke-width:2.3}.line-green{fill:none;stroke:#16a34a;stroke-width:2.3}.line-gray{fill:none;stroke:#8b949e;stroke-width:2}.chart-fill-red{fill:url(#gradRed)}.chart-fill-blue{fill:url(#gradBlue)}.chart-label{font:11px Inter;fill:#8a929c}.legend{display:flex;gap:13px;align-items:center;font-size:12px;color:#68717a}.legend i{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:4px}.donut-wrap{display:flex;align-items:center;gap:25px;padding:15px}.donut{width:180px;height:180px;border-radius:50%;background:conic-gradient(var(--red) 0 34%,#2469e8 34% 62%,#5ac8a5 62% 84%,#c4c9cf 84% 100%);position:relative;flex:0 0 auto}.donut:after{content:"";position:absolute;inset:36px;background:#fff;border-radius:50%}.donut-center{position:absolute;inset:0;display:grid;place-items:center;z-index:2;text-align:center}.donut-center strong{font-size:24px;letter-spacing:-.03em}.donut-center span{font-size:11px;color:var(--muted)}.donut-legend{display:flex;flex-direction:column;gap:10px;font-size:13px}.donut-legend div{display:flex;align-items:center;gap:8px}.donut-legend i{width:8px;height:8px;border-radius:2px}
.health-gauge{display:grid;place-items:center;padding:12px}.gauge{width:160px;height:90px;overflow:hidden;position:relative}.gauge:before{content:"";position:absolute;width:160px;height:160px;border-radius:50%;background:conic-gradient(from 270deg,var(--green) 0 39%,#edf0f2 39% 50%,#edf0f2 50% 100%)}.gauge:after{content:"";position:absolute;left:24px;top:24px;width:112px;height:112px;border-radius:50%;background:#fff}.gauge-value{position:absolute;left:0;right:0;top:48px;text-align:center;z-index:2}.gauge-value strong{font-size:36px;letter-spacing:-.04em}.gauge-value span{font-size:12px;color:var(--muted)}
.spark{width:72px;height:24px}.spark path{fill:none;stroke:#22a35a;stroke-width:2}.spark.down path{stroke:#e30613}.activity-bars{display:flex;align-items:flex-end;gap:2px;height:25px}.activity-bars i{width:3px;background:#20a55d;border-radius:1px}.activity-bars.low i:nth-child(n+5){background:#d7dce0}

/* ALERTS / COACH */
.alert-list{padding:5px 14px 11px}.alert-item{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line2)}.alert-item:last-child{border-bottom:0}.alert-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#fff0f1;color:var(--red);font-weight:800}.alert-copy{flex:1;min-width:0}.alert-copy b{display:block;font-size:14px}.alert-copy span{font-size:12px;color:var(--muted)}.coach-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.coach-card{border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff;min-height:130px}.coach-card .coach-icon{font-size:22px;margin-bottom:8px}.coach-card h3{font-size:18px;margin:0 0 6px}.coach-card p{font-size:12px;color:var(--muted);line-height:1.5;min-height:56px}.coach-card .impact{font-size:14px;font-weight:800;color:var(--ink);margin:6px 0}.coach-card a{font-size:12px;color:var(--red);font-weight:700}

/* SETTINGS / FORMS */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row label{display:block;font-size:13px;font-weight:700;margin-bottom:8px;color:#4e5861}.form-row input,.form-row select,.form-row textarea{width:100%;height:44px;border:1px solid var(--line);border-radius:8px;padding:0 12px;font-size:14px;background:#fff;outline:none}.form-row textarea{height:110px;padding-top:11px}.toggle{width:38px;height:22px;border-radius:99px;background:#cbd1d6;position:relative;display:inline-block;vertical-align:middle}.toggle:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:2px;left:2px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.toggle.on{background:#21ad5c}.toggle.on:after{left:18px}.setting-list{display:flex;flex-direction:column;gap:8px}.setting-row{border:1px solid var(--line);border-radius:10px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}.setting-row b{font-size:14px}.setting-row span{font-size:12px;color:var(--muted);display:block;margin-top:3px}

/* UPDATE MANAGER */
.update-layout{display:grid;grid-template-columns:1.12fr .88fr;gap:12px}.version-boxes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.version-box{border:1px solid var(--line);border-radius:10px;padding:13px}.version-box span{font-size:12px;color:var(--muted);font-weight:700}.version-box strong{display:block;font-size:24px;margin:6px 0}.update-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:12px 0}.update-step{border:1px solid var(--line);border-radius:9px;padding:12px;text-align:center;font-size:11px;color:var(--muted)}.update-step strong{display:block;font-size:13px;color:var(--ink);margin-top:5px}.upload-zone{border:1.5px dashed #cfd5db;border-radius:10px;padding:18px;text-align:center;background:#fbfcfd}.upload-zone input{max-width:100%;font-size:12px}.check-list{display:flex;flex-direction:column;gap:7px}.check-row{display:flex;justify-content:space-between;align-items:center;font-size:13px}.check-row .ok{color:var(--green);font-weight:700}.update-status{display:inline-flex;height:26px;align-items:center;padding:0 9px;border-radius:6px;font-size:11px;font-weight:700;background:#f1f3f5;color:#606a74}.update-status.verified,.update-status.published{background:var(--green-soft);color:#188848}.update-status.installed_staging,.update-status.validated{background:var(--blue-soft);color:#2563eb}.update-status.failed{background:#fff0f1;color:var(--red)}.update-status.rollback_done{background:var(--purple-soft);color:var(--purple)}

/* EMPTY / NOTICES / MODAL */
.notice{border-radius:10px;padding:14px 16px;font-size:13px;margin-top:10px}.notice.success{background:var(--green-soft);color:#177540}.notice.danger{background:#fff0f1;color:#a71620}.notice.warning{background:var(--orange-soft);color:#9c6208}.empty-state{text-align:center;padding:45px 20px;color:var(--muted)}.empty-state strong{display:block;color:var(--ink);font-size:18px;margin-bottom:8px}.state-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.state-card{border:1px solid var(--line);border-radius:10px;padding:15px;text-align:center;background:#fff}.state-card .state-icon{font-size:27px;margin-bottom:8px}.state-card b{display:block;font-size:14px}.state-card p{font-size:12px;color:var(--muted);line-height:1.5}.modal-backdrop{position:fixed;inset:0;background:rgba(7,11,15,.42);z-index:100;display:grid;place-items:center;padding:20px}.modal{width:min(560px,100%);background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.25);overflow:hidden}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:20px;margin:0}.modal-body{padding:20px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 16px;border-top:1px solid var(--line)}

/* RESPONSIVE */
@media(max-width:1280px){:root{--sidebar:220px}.brand-wrap{width:var(--sidebar);padding:0 16px}.brand-wrap img{width:180px}.kpi-grid.six{grid-template-columns:repeat(3,1fr)}.grid.cols-6{grid-template-columns:repeat(3,1fr)}.coach-grid{grid-template-columns:repeat(2,1fr)}.global-search{width:330px}.main{padding-left:18px;padding-right:18px}.topbar{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}}
@media(max-width:980px){:root{--sidebar:82px}.brand-wrap{padding:8px 0 14px}.brand-wrap img{width:64px;height:34px;object-fit:cover;object-position:left}.nav button{justify-content:center;padding:0}.nav button span.label,.nav .nav-group,.nav .caret,.side-bottom .user-mini div:last-child,.env-pill b{display:none}.nav button.sub{padding:0}.env-pill{justify-content:center;padding:0}.main{padding-left:14px;padding-right:14px}.topbar{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.global-search{width:220px}.kpi-grid,.kpi-grid.six{grid-template-columns:repeat(2,1fr)}.split-2,.split-3,.update-layout{grid-template-columns:1fr}.grid.cols-4,.grid.cols-5{grid-template-columns:repeat(2,1fr)}.state-grid{grid-template-columns:repeat(3,1fr)}.profile-chip div:nth-child(2){display:none}}
@media(max-width:680px){:root{--sidebar:0px}.sidebar{transform:translateX(-100%);transition:.2s;width:248px}.sidebar.open{transform:translateX(0)}.main{margin-left:0;padding:0 12px 35px}.topbar{margin:0 -12px;padding:0 12px}.menu-btn{display:grid}.global-search{width:160px}.global-search kbd{display:none}.environment{display:none}.page-head{padding-top:18px}.page-actions{display:none}.kpi-grid,.kpi-grid.six,.grid.cols-2,.grid.cols-3,.grid.cols-4,.grid.cols-5,.grid.cols-6,.form-grid,.split-equal{grid-template-columns:1fr}.coach-grid{grid-template-columns:1fr}.state-grid{grid-template-columns:repeat(2,1fr)}.donut-wrap{align-items:flex-start;flex-direction:column}.top-right{gap:4px}.login-card{padding:30px 24px}.login-logo{width:260px}}


/* =====================================================================
   LINKDEAL SUPER ADMIN — PREMIUM UI POLISH V0.4.1
   Référence : maquettes validées 29/08/2026
   ===================================================================== */
html,body{font-family:"Segoe UI Variable","Segoe UI",Inter,Arial,sans-serif;font-size:15px;letter-spacing:-.005em}
:root{--shadow:0 8px 24px rgba(17,20,24,.055);--line:#e1e6eb;--line2:#edf0f3;--bg:#f7f8fa}
.card,.panel{border-color:#e1e6eb;box-shadow:0 5px 18px rgba(17,20,24,.04)}
.card:hover,.panel:hover{box-shadow:0 8px 24px rgba(17,20,24,.055)}
.page-head{padding:26px 2px 18px}.page-head h1{font-size:36px;font-weight:800;letter-spacing:-.04em}.page-head p{font-size:16px;line-height:1.45;color:#69737d}
.card-head,.panel-head{padding:18px 20px}.card-head h2,.panel-head h2{font-size:20px;letter-spacing:-.02em}.card-head p,.panel-head p{font-size:13px;line-height:1.4}.card-body,.panel-body{padding:18px 20px}
.btn{height:44px;border-radius:9px;padding:0 15px;font-size:13px;box-shadow:0 1px 2px rgba(17,20,24,.025)}.btn.primary{box-shadow:0 5px 14px rgba(227,6,19,.16)}.btn.small{height:34px;font-size:12px}.plain-link{font-size:12px}
.nav button{height:48px;font-size:15px}.nav button.sub{height:39px;font-size:12.5px}.nav svg{width:19px;height:19px}.nav button.on{box-shadow:0 6px 16px rgba(227,6,19,.18)}
.brand-wrap img{width:220px;max-width:calc(100% - 20px);height:58px;object-fit:contain}
.global-search{height:44px;width:470px}.global-search input{font-size:13px}.environment{font-size:12px}.profile-chip b{font-size:12.5px}.profile-chip small{font-size:10.5px}
.kpi-grid{gap:13px}.kpi-grid.six{gap:12px}.kpi-card{min-height:102px;border-radius:14px;padding:16px 17px;align-items:center}.kpi-icon{width:44px;height:44px}.kpi-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.kpi-copy span{font-size:12px;font-weight:650;color:#65707b}.kpi-copy strong{font-size:25px;margin:4px 0}.trend{font-size:11.5px}.trend small{font-size:10.5px}
.toolbar{padding:13px 16px;gap:9px}.toolbar .search{height:40px;min-width:280px;font-size:12.5px;border-radius:8px}.toolbar select,.filter{height:40px;font-size:12px;border-radius:8px;padding:0 11px}
.table{min-width:860px}.table th{font-size:11px;padding:11px 12px;background:#fafbfc;color:#5f6974;letter-spacing:.005em;white-space:nowrap}.table td{font-size:12.5px;padding:12px;border-color:#edf0f3;line-height:1.35}.table .name{font-size:12.5px}.sub{font-size:10.5px;line-height:1.35;margin-top:3px}.badge{height:24px;padding:0 8px;border-radius:6px;font-size:10px}.pagination{font-size:11px;padding:12px 15px}.pager button{width:30px;height:30px;font-size:11px}
.tabs{padding:0 14px}.tabs button{height:46px;font-size:12px;padding:0 13px}.tabs button.on{font-weight:800}
.info-list{font-size:12.5px;gap:10px 14px}.entity-title h2{font-size:20px}.entity-title p{font-size:11px;line-height:1.4}.mini-row{padding:9px 0}.mini-row b{font-size:12.5px}.mini-row span{font-size:12px}.alert-copy b{font-size:12.5px}.alert-copy span{font-size:11px;line-height:1.35}.alert-item{padding:11px 0}
.chart-card{overflow:hidden}.chart-area{height:248px;padding:10px 18px 17px}.chart-area.small{height:205px}.chart-premium{height:100%;display:flex;flex-direction:column;min-height:0}.chart-premium svg{flex:1;min-height:0}.chart-x-labels{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;margin-top:4px;color:#64707a;font-size:10.5px;text-align:center}.axis-line{stroke:#dfe5ea;stroke-width:.7}.line-red{stroke:#e30613;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.line-blue{stroke:#2563eb;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.chart-dot-red{fill:#fff;stroke:#e30613;stroke-width:1.2}.chart-dot-blue{fill:#fff;stroke:#2563eb;stroke-width:1.2}.chart-fill-red{fill:url(#gradRed)}.chart-fill-blue{fill:url(#gradBlue)}
.donut-wrap{gap:26px;padding:20px}.donut{width:172px;height:172px}.donut:after{inset:34px}.donut-center strong{font-size:22px}.donut-center span{font-size:10px}.donut-legend{font-size:12px;gap:10px}.donut-legend div{justify-content:space-between;min-width:180px}.donut-legend b{margin-left:auto}
.form-row label{font-size:12.5px;margin-bottom:7px}.form-row input,.form-row select,.form-row textarea{height:42px;font-size:12.5px}.form-row textarea{height:105px}.setting-row b{font-size:12.5px}.setting-row span{font-size:11px}.notice{font-size:12px;line-height:1.45}
.coach-card{padding:16px;min-height:150px}.coach-card h3{font-size:15px}.coach-card p{font-size:11.5px;line-height:1.5}.coach-card a{font-size:11.5px}.coach-card .coach-icon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.9}
.update-step{font-size:10.5px}.update-step strong{font-size:12px}.check-row{font-size:12px}.version-box span{font-size:11px}.version-box strong{font-size:22px}.update-status{font-size:10px;height:24px}
.login-card{width:min(500px,100%)}.login-logo{width:330px;max-width:88%;padding:0;background:transparent;border-radius:0}.login-card h1{font-size:28px}.login-card>p{font-size:14px}.field>span{font-size:13px}.login-links{font-size:11.5px}.security-note strong{font-size:12.5px}.security-note small{font-size:11px}
@media(max-width:1450px){.page-head h1{font-size:32px}.kpi-copy strong{font-size:23px}.table td{font-size:12px}.table th{font-size:10.5px}}
@media(max-width:1100px){.kpi-grid.six{grid-template-columns:repeat(3,1fr)}.grid.cols-4{grid-template-columns:repeat(2,1fr)}.global-search{width:320px}}


/* V0.4.2 — Browser rendering polish / charts premium */
:root{--shadow:0 8px 24px rgba(17,20,24,.055)}
body{font-size:14px}.page-head{padding:20px 0 16px}.page-head h1{font-size:34px}.page-head p{font-size:14px}.card,.panel{border-color:#e1e6eb;box-shadow:var(--shadow)}
.kpi-card{min-height:106px;padding:17px 18px}.kpi-copy span{font-size:12.5px}.kpi-copy strong{font-size:26px}.trend{font-size:11.5px}.trend small{font-size:10.5px}
.toolbar .search{height:40px;font-size:12.5px}.toolbar select,.filter{height:40px;font-size:12px}.premium-toolbar .btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.table th{font-size:11px;padding:12px 13px}.table td{font-size:12.5px;padding:12px 13px}.table .name{font-size:12.5px}.table.compact th,.table.compact td{padding:10px 11px}.sub{font-size:10.5px}
.chart-area{height:286px;padding:8px 12px 12px}.chart-area.small{height:238px}.chart-area.analytics-chart{height:270px}.premium-chart{width:100%;height:100%;display:block}.premium-chart svg{width:100%;height:100%;display:block;overflow:visible}.pchart-grid{stroke:#e4e9ee;stroke-width:1;stroke-dasharray:2 3}.pchart-axis{font:500 11px Inter,Arial,sans-serif;fill:#65717d}.pchart-axis.pchart-x{font-size:10.5px}.pchart-label{font:600 11.5px Inter,Arial,sans-serif;fill:#4d5964}.pchart-label.strong{font-weight:700;fill:#252c33}.pchart-line{stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}.pchart-line.multi{stroke-width:2.5}
.donut-premium{display:flex;align-items:center;justify-content:center;gap:30px;padding:22px 24px 24px;min-height:220px}.donut-svg{position:relative;width:176px;height:176px;flex:0 0 auto}.donut-svg svg{width:100%;height:100%;display:block}.donut-center{position:absolute;inset:0;display:grid;place-items:center;text-align:center}.donut-center strong{display:block;font-size:23px;letter-spacing:-.03em;color:var(--ink)}.donut-center span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.donut-legend{min-width:190px;gap:11px}.donut-legend div{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center;font-size:12px}.donut-legend i{width:9px;height:9px;border-radius:3px}.donut-legend b{font-size:12px;color:#1f252b}
.finance-charts{display:grid;grid-template-columns:1.05fr .9fr 1.05fr .95fr;gap:14px}.analytics-kpis{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.analytics-kpis .kpi-card{min-height:100px;padding:14px}.analytics-kpis .kpi-icon{width:38px;height:38px}.analytics-kpis .kpi-copy strong{font-size:22px}.analytics-kpis .kpi-copy span{font-size:11.5px}.analytics-charts{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px}.analytics-bottom{display:grid;grid-template-columns:.95fr .95fr 1.6fr;gap:14px}
.heatmap{display:grid;grid-template-columns:34px 1fr;gap:8px 10px;align-items:start}.heat-days{display:grid;grid-template-rows:repeat(7,20px);gap:4px;font-size:10.5px;color:#69747e;padding-top:1px}.heat-days span{display:flex;align-items:center}.heat-grid{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(7,20px);gap:4px}.heat-grid i,.heat-legend i{display:block;border-radius:3px;background:color-mix(in srgb,#e30613 calc(var(--heat)*9%),#fff)}.heat-hours{grid-column:2;display:flex;justify-content:space-between;font-size:9.5px;color:#77818a}.heat-legend{grid-column:2;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;font-size:10px;color:#69747e}.heat-legend i{width:18px;height:9px}
.top5-list{padding-top:8px}.top5-row{display:grid;grid-template-columns:24px 1fr auto 88px;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #edf0f3;font-size:12px}.top5-row:last-child{border-bottom:0}.rank{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f2f4f6;font-size:11px;font-weight:800;color:#49545f}.top5-row:nth-child(1) .rank{background:#e30613;color:white}.top5-row:nth-child(2) .rank{background:#2563eb;color:white}.top5-row:nth-child(3) .rank{background:#16a34a;color:white}.top5-row b{font-size:12px}.top5-row .spark{width:88px;height:28px}.spark path{stroke-width:2.2;stroke-linecap:round}
.health-gauge.premium{position:relative;min-height:178px;display:grid;place-items:center;padding:14px}.health-gauge.premium svg{width:210px;height:126px}.gauge-track,.gauge-value-path{fill:none;stroke-width:18;stroke-linecap:round}.gauge-track{stroke:#edf0f2}.gauge-value-path{stroke:#16a34a}.gauge-number{position:absolute;top:68px;text-align:center}.gauge-number strong{font-size:34px;letter-spacing:-.04em}.gauge-number span{font-size:12px;color:var(--muted)}.gauge-number b{display:block;font-size:12px;color:#138744;margin-top:4px}
.alert-ico svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9}.alert-ico.orange{background:#fff7e8;color:#f59e0b}.alert-ico.blue{background:#eef4ff;color:#2563eb}.alert-ico.green{background:#eaf8ef;color:#16a34a}.alert-ico.purple{background:#f4efff;color:#7c3aed}
@media(max-width:1500px){.analytics-kpis{grid-template-columns:repeat(4,1fr)}.finance-charts{grid-template-columns:repeat(2,1fr)}.analytics-charts{grid-template-columns:1fr 1fr}.analytics-charts>section:last-child{grid-column:1/-1}.analytics-bottom{grid-template-columns:1fr 1fr}.analytics-bottom>section:last-child{grid-column:1/-1}}
@media(max-width:1100px){.analytics-kpis{grid-template-columns:repeat(2,1fr)}.finance-charts,.analytics-charts,.analytics-bottom{grid-template-columns:1fr}.analytics-charts>section:last-child,.analytics-bottom>section:last-child{grid-column:auto}.chart-area{height:260px}.donut-premium{flex-direction:column}}


/* V0.4.3 — Browser QA / Premium navigation + readability */
.brand-home{appearance:none;border:0;cursor:pointer;text-decoration:none;font:inherit}.brand-home:hover img{transform:scale(1.012)}.brand-wrap img{transition:transform .16s ease}
#content>section,#content>.grid,#content>.kpi-grid,#content>.split-equal,#content>.split-2,#content>.analytics-kpis,#content>.analytics-charts,#content>.analytics-bottom,#content>.finance-charts{animation:ldFade .16s ease-out}@keyframes ldFade{from{opacity:.45;transform:translateY(2px)}to{opacity:1;transform:none}}
/* Sidebar: only primary pages use full red. Administration parent is contextual, not a second heavy CTA. */
.nav button.context{background:rgba(255,255,255,.055);color:#fff;box-shadow:inset 3px 0 0 var(--red)}
.nav button.context:hover{background:rgba(255,255,255,.075)}
.admin-subnav{position:relative;margin:2px 0 8px 28px;padding:2px 0 2px 13px;border-left:1px solid rgba(255,255,255,.16)}
.nav .admin-subnav button.sub{height:36px;padding:0 10px;color:#aeb7bf;background:transparent;border-radius:7px;font-size:13.5px;font-weight:600;position:relative}
.nav .admin-subnav button.sub:hover{color:#fff;background:rgba(255,255,255,.045)}
.nav .admin-subnav button.sub.on{color:#fff;background:rgba(227,6,19,.11);box-shadow:none}
.nav .admin-subnav button.sub.on:before{content:"";position:absolute;left:-17px;width:3px;height:18px;border-radius:3px;background:var(--red)}
/* Horizontal menus: intentionally readable on desktop, calm premium active state. */
.tabs{gap:4px;padding:0 18px;min-height:54px;align-items:flex-end;background:#fff;scrollbar-width:thin}
.tabs .tab{appearance:none;border:0;border-bottom:3px solid transparent;background:transparent;color:#596570;height:53px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;font-size:14.5px;line-height:1;font-weight:650;letter-spacing:-.01em;cursor:pointer;white-space:nowrap;transition:color .15s ease,background .15s ease,border-color .15s ease}
.tabs .tab:hover{color:var(--ink);background:#fafbfc}
.tabs .tab.on{color:var(--red);border-bottom-color:var(--red);font-weight:800;background:linear-gradient(180deg,transparent 45%,rgba(227,6,19,.035) 100%)}
/* Tables / filters: legible without browser zoom. */
.table th{font-size:11.5px!important;padding:12px 13px!important}.table td{font-size:13px!important;padding:12px 13px!important}.table .name{font-size:13px!important}.sub{font-size:11px!important}.badge{font-size:10.5px!important;height:25px!important}.toolbar .search{font-size:13px!important}.toolbar select,.filter{font-size:12.5px!important}
/* Users activity meter */
.activity-meter{display:flex;align-items:center;gap:9px;min-width:142px}.activity-track{width:72px;height:7px;border-radius:999px;background:#edf0f2;overflow:hidden;display:block}.activity-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#86d7a7,#16a34a)}.activity-meter b{font-size:11.5px;color:#52606a;white-space:nowrap}
/* Charts: clean clipping, stronger labels, more air. */
.chart-card{overflow:hidden}.chart-area{height:300px!important;padding:10px 16px 14px!important}.chart-area.small{height:250px!important}.chart-area.analytics-chart{height:292px!important}.premium-chart{overflow:hidden}.premium-chart svg{overflow:hidden;shape-rendering:geometricPrecision}.pchart-grid{stroke:#e6ebef!important;stroke-dasharray:0!important}.pchart-axis{font:600 14px Inter,Arial,sans-serif!important;fill:#65717d!important}.pchart-axis.pchart-x{font-size:13.2px!important}.pchart-label{font:600 13.6px Inter,Arial,sans-serif!important;fill:#4d5964!important}.pchart-label.strong{font-weight:800!important;fill:#252c33!important}.pchart-line{stroke-width:3.4!important;vector-effect:non-scaling-stroke}.pchart-line.multi{stroke-width:2.6!important}.premium-chart circle{vector-effect:non-scaling-stroke}
/* Donut: center content must never overlap. */
.donut-premium{min-height:238px;gap:34px;padding:22px 24px 26px}.donut-svg{width:184px;height:184px}.donut-center{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;pointer-events:none}.donut-center strong{font-size:22px!important;line-height:1.08;white-space:nowrap}.donut-center span{font-size:11.5px!important;line-height:1.2;margin:0!important}.donut-legend{min-width:205px}.donut-legend div{font-size:12.5px}.donut-legend b{font-size:12.5px}
/* Communications preview: no squeezed KPI cards. */
.campaign-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.campaign-stat{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 12px;text-align:center;min-width:0}.campaign-stat span{display:block;font-size:11.5px;color:#66717b;font-weight:700}.campaign-stat strong{display:block;font-size:23px;line-height:1.05;margin:7px 0 6px;letter-spacing:-.035em}.campaign-stat small{display:block;font-size:10.5px;color:#8a939c;line-height:1.3}
/* Compact page header and generous content on utility screens. */
.page-head h1{line-height:1.08}.page-head p{max-width:760px}.info-list dt,.info-list dd{font-size:13px}.form-row label{font-size:13px}.form-row input,.form-row select,.form-row textarea{font-size:13px}
@media(max-width:1500px){.tabs .tab{font-size:14px;padding:0 12px}.pchart-axis{font-size:13.5px!important}.pchart-axis.pchart-x{font-size:12.8px!important}.campaign-stat-grid{grid-template-columns:1fr}.campaign-stat{text-align:left}.campaign-stat small{display:inline;margin-left:6px}}
@media(max-width:1100px){.admin-subnav{margin-left:0;padding-left:0;border-left:0}.campaign-stat-grid{grid-template-columns:repeat(3,1fr)}.pchart-axis{font-size:12.5px!important}.chart-area,.chart-area.analytics-chart{height:270px!important}}


/* V0.4.4 — browser polish */
.top-right{gap:0;border-left:1px solid var(--line);height:100%;padding-left:14px}
.top-right>.notify{margin-right:10px}
.notify svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
.environment{height:44px;min-width:132px;padding:0 13px;border-radius:11px;gap:9px;box-shadow:0 2px 8px rgba(17,20,24,.035);margin-right:12px}
.environment b{font-size:13px}.environment .mini-chevron{margin-left:auto}
.profile-chip{min-height:50px;border-left:1px solid var(--line);border-radius:0;padding:0 4px 0 15px;min-width:190px}
.profile-chip:hover{background:transparent}.profile-chip .avatar.small{width:36px;height:36px}
.profile-chip b{font-size:13.5px}.profile-chip small{font-size:11px}.mini-chevron{width:16px;height:16px;stroke:#65707a;fill:none;stroke-width:2;margin-left:auto}
.period-control{height:40px;display:inline-flex;align-items:center;justify-content:space-between;gap:9px;padding:0 12px 0 14px;border:1px solid #dce2e8;background:#fff;border-radius:10px;color:#374151;font-size:12.5px;font-weight:600;white-space:nowrap;box-shadow:0 1px 2px rgba(17,20,24,.025);transition:.15s}
.period-control:hover{border-color:#c9d0d8;background:#fbfcfd}.period-control svg{width:15px;height:15px;stroke:#69737d;fill:none;stroke-width:2}.chart-head-actions{display:flex;align-items:center;gap:16px}.chart-head-actions .legend{margin-right:2px}
.nav button.admin-parent-active{background:linear-gradient(90deg,var(--red),#c10a14)!important;color:#fff!important;box-shadow:0 6px 16px rgba(227,6,19,.18)}
.admin-subnav{margin:4px 0 8px 20px;padding:5px 0 5px 12px;border-left:1px solid rgba(255,255,255,.12)}
.admin-subnav .sub.on{background:rgba(227,6,19,.15)!important;color:#fff!important;border-left:2px solid var(--red)}
.health-premium{display:flex;align-items:center;justify-content:center;gap:18px;padding:18px}.health-ring{width:128px;height:128px;position:relative;flex:0 0 auto}.health-ring svg{width:100%;height:100%;display:block}.health-value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.health-value strong{font-size:30px;line-height:1;font-weight:800;color:var(--ink)}.health-value span{font-size:11px;color:var(--muted);margin-top:3px}.health-caption b{display:block;font-size:15px;color:var(--ink)}.health-caption span{display:block;font-size:11.5px;color:var(--muted);margin-top:4px}
.kpi-copy>span{font-size:12.5px;line-height:1.2;min-height:15px}.kpi-copy strong{font-size:25px;line-height:1.15}.kpi-card{overflow:hidden}.analytics-kpis .kpi-copy>span{font-size:11.5px}
@media(max-width:1180px){.profile-chip{min-width:auto}.profile-chip div:nth-child(2){display:none}.top-right{padding-left:8px}.environment{min-width:115px}.period-control{font-size:12px}}


/* ==========================================================
   V0.4.5 — REFERENCE MOCKUP FIDELITY LAYER
   Unified desktop visual system, based on approved Linkdeal mockups.
   ========================================================== */
:root{
  --sidebar:240px;
  --topbar-h:74px;
  --ui-border:#e2e7ec;
  --ui-muted:#65717d;
  --ui-shadow:0 8px 24px rgba(17,24,39,.045);
}
html,body{font-size:14px;background:#f7f8fa}
svg{stroke-linecap:round;stroke-linejoin:round}
.sidebar{padding:calc(var(--topbar-h) + 14px) 12px 16px;border-right:1px solid var(--ui-border)}
.brand-wrap{height:var(--topbar-h);width:var(--sidebar);padding:0 20px;border:0;border-right:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border)}
.brand-wrap img{width:198px;height:52px;object-fit:contain}
.nav{gap:3px;padding-top:2px}
.nav button{height:46px;border-radius:9px;padding:0 14px;font-size:15px;font-weight:650;gap:12px}
.nav button svg{width:20px;height:20px;stroke-width:1.85}
.nav button.on{background:linear-gradient(100deg,#e30613 0%,#d90814 100%);box-shadow:0 7px 18px rgba(227,6,19,.20)}
.nav button.sub{height:39px;font-size:13px;color:#bfc7ce;padding-left:40px;border-radius:8px}
.nav button.sub.on{background:rgba(227,6,19,.16);color:#fff;box-shadow:none}
.admin-subnav{border-left:1px solid rgba(255,255,255,.16);margin:2px 0 8px 18px;padding-left:5px}
.main{padding:0 24px 42px}
.topbar{height:var(--topbar-h);margin:0 -24px;padding:0 24px;background:#fff;border-bottom:1px solid var(--ui-border)}
.top-left{gap:13px}.top-right{height:auto;gap:12px;padding:0;border:0}
.top-right>.notify{margin:0;border:0}.profile-chip{min-width:0;min-height:44px;border:0;border-radius:10px;padding:4px 4px 4px 7px;gap:9px}
.profile-chip:hover{background:#f7f8fa}.profile-chip .avatar.small{width:38px;height:38px}
.profile-chip b{font-size:13px}.profile-chip small{font-size:10.5px}.mini-chevron{margin-left:2px}
.environment{height:42px;min-width:126px;justify-content:center;border:1px solid var(--ui-border);border-radius:9px;padding:0 11px;gap:8px;font-size:12.5px;font-weight:650;box-shadow:0 1px 2px rgba(17,24,39,.02)}
.notify{width:42px;height:42px}.notify svg{width:21px;height:21px;stroke:#26323c;fill:none;stroke-width:1.8}.notify i{top:1px;right:1px;width:17px;height:17px;line-height:17px;font-size:9px}
.global-search{height:42px;width:470px;border-color:var(--ui-border);border-radius:9px;box-shadow:0 1px 2px rgba(17,24,39,.018)}
.global-search input{font-size:13px}.global-search kbd{font-size:10.5px}
.page-head{padding:23px 0 16px}.page-head h1{font-size:31px;line-height:1.12;letter-spacing:-.032em}.page-head p{font-size:14px;color:#687583}
.btn{height:42px;border-radius:8px;font-size:13px;padding:0 15px}.btn.primary{box-shadow:0 6px 16px rgba(227,6,19,.18)}
.card,.panel{border-color:var(--ui-border);border-radius:14px;box-shadow:var(--ui-shadow)}
.card-head,.panel-head{padding:15px 17px;min-height:58px}.card-head h2,.panel-head h2{font-size:18px;line-height:1.2;letter-spacing:-.015em}.card-head p,.panel-head p{font-size:12px;color:#697684}
.kpi-grid{gap:12px}.kpi-grid.six{gap:10px}.kpi-card{min-height:102px;padding:15px 16px;border-radius:13px;border-color:var(--ui-border);box-shadow:0 3px 12px rgba(17,24,39,.028)}
.kpi-icon{width:43px;height:43px}.kpi-icon svg{width:23px;height:23px;stroke-width:1.9}
.kpi-copy>span{font-size:12.5px;font-weight:650;color:#536170}.kpi-copy strong{font-size:25px;line-height:1.08;margin:4px 0 5px}.trend{font-size:11.2px}.trend small{font-size:10px;color:#6f7a85}
.split-2{gap:12px}.section-gap{margin-top:12px}
.chart-area{padding:12px 16px 14px}.dashboard-chart{height:246px}.chart-area.small{height:205px}.analytics-chart{height:255px}
.pchart-axis{font-size:12px!important;fill:#566574!important}.pchart-axis.pchart-x{font-size:11px!important}.pchart-grid{stroke:#e7ebef!important}
.period-control{height:38px;border-radius:9px;border-color:#dbe1e7;padding:0 11px 0 13px;font-size:11.5px;font-weight:600;min-width:126px;background:#fff;box-shadow:none}.period-control svg{width:14px;height:14px}.period-control:hover{border-color:#c6ced6;background:#fff}
.donut-wrap{gap:22px;padding:16px 18px}.donut-svg{width:178px!important;height:178px!important}.donut-center strong{font-size:22px!important}.donut-center span{font-size:10.5px!important}.donut-legend{font-size:12px!important;gap:10px!important}
.tabs{min-height:52px;gap:5px;padding:0 16px;border-bottom-color:var(--ui-border)}
.tabs .tab{height:51px;font-size:13.5px;font-weight:650;padding:0 13px}.tabs .tab.on{border-bottom-width:2px;background:transparent}
.toolbar{padding:12px 15px;gap:9px}.toolbar .search,.toolbar select,.filter{height:39px;font-size:12.5px}
.table th{font-size:11.5px!important;padding:11px 12px!important}.table td{font-size:12.5px!important;padding:11px 12px!important}.table .name{font-size:12.5px!important}.badge{font-size:10px!important;height:24px!important}
/* Dashboard feed blocks replicate the approved reference layout. */
.dashboard-feed-grid{grid-template-columns:1.12fr .88fr}
.feed-card .card-head{border-bottom:1px solid #edf0f3;min-height:54px;padding:14px 16px}.feed-card .card-head h2{font-size:17px}
.feed-list{padding:2px 16px 5px}.feed-row{display:grid;grid-template-columns:18px minmax(220px,1fr) auto 82px 18px;align-items:center;gap:9px;min-height:43px;border-bottom:1px solid #edf0f3}.feed-row:last-child{border-bottom:0}
.feed-main b{font-size:11.5px;font-weight:600;color:#27323c}.feed-row time{font-size:10.5px;color:#697684;white-space:nowrap;text-align:right}.feed-dot{width:8px;height:8px;border-radius:50%;background:#e30613;margin-left:2px}.feed-dot.orange{background:#f59e0b}.feed-dot.blue{background:#2563eb}
.feed-badge{display:inline-flex;height:22px;padding:0 8px;align-items:center;border-radius:6px;font-size:10px;font-weight:700}.feed-badge.danger{color:#e30613;background:#fff0f1}.feed-badge.orange{color:#d97900;background:#fff5e6}.feed-badge.blue{color:#2563eb;background:#eef4ff}
.feed-arrow{width:18px;height:18px;display:grid;place-items:center;color:#586774}.feed-arrow svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
.feed-footer{padding:8px 16px 13px}.feed-footer button{border:0;background:transparent;padding:0;color:#e30613;font-size:11.5px;font-weight:700;display:inline-flex;align-items:center;gap:8px}.feed-footer button span{font-size:16px}
.activity-feed .feed-row{grid-template-columns:30px minmax(145px,1fr) minmax(110px,.75fr) 72px 18px}.event-icon{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;color:#fff}.event-icon svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.9}.event-icon.green{background:#13b65b}.event-icon.purple{background:#7c3aed}.event-icon.blue{background:#2563eb}.event-icon.orange{background:#f97316}.feed-meta{font-size:10.8px;color:#63707c;white-space:nowrap}
/* Consistent premium icon treatment across pages. */
.icon-circle svg,.entity-icon svg,.alert-ico svg{stroke-linecap:round;stroke-linejoin:round}.plain-link{font-size:11.5px}
@media(max-width:1450px){:root{--sidebar:224px}.brand-wrap img{width:184px}.global-search{width:410px}.page-head h1{font-size:29px}.kpi-copy strong{font-size:23px}.feed-main b{font-size:11px}.dashboard-feed-grid{grid-template-columns:1fr 1fr}}


.menu-btn svg{width:20px;height:20px;stroke:#25313c;fill:none;stroke-width:1.9}.search-icon{width:16px;height:16px;stroke:#5f6d79;fill:none;stroke-width:1.9;flex:0 0 auto}


/* ==========================================================
   V0.4.6 — TABLET DESKTOP MODE + DONUT FIDELITY
   Tablet landscape keeps the desktop cockpit instead of collapsing.
   ========================================================== */
/* Dashboard proportions: reserve enough width for the donut + legend. */
.split-2{grid-template-columns:minmax(0,1.52fr) minmax(410px,.82fr)!important}
.donut-premium{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:22px!important;padding:18px 20px 22px!important;min-height:220px!important;overflow:hidden}
.donut-svg{width:164px!important;height:164px!important;flex:0 0 164px!important;position:relative!important}
.donut-svg svg{width:164px!important;height:164px!important;display:block!important;overflow:visible!important}
.donut-center{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;text-align:center!important;pointer-events:none!important}
.donut-center strong{font-size:22px!important;line-height:1.05!important;font-weight:800!important;white-space:nowrap!important;letter-spacing:-.025em!important}
.donut-center span{font-size:10.5px!important;line-height:1.15!important;color:#65717d!important;margin:0!important;white-space:nowrap!important}
.donut-legend{display:flex!important;flex-direction:column!important;gap:9px!important;min-width:170px!important;max-width:210px!important;flex:1 1 180px!important}
.donut-legend div{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;font-size:12px!important;min-width:0!important}
.donut-legend i{width:9px!important;height:9px!important;border-radius:3px!important}
.donut-legend span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#34414c!important}
.donut-legend b{font-size:12px!important;color:#111418!important;white-space:nowrap!important;margin:0!important}

/* Desktop fidelity below 1500px: charts stay close to the approved mockups. */
@media (min-width:1200px) and (max-width:1500px){
  .split-2{grid-template-columns:minmax(0,1.45fr) minmax(395px,.8fr)!important}
  .donut-premium{gap:16px!important;padding-left:14px!important;padding-right:14px!important}
  .donut-svg{width:150px!important;height:150px!important;flex-basis:150px!important}
  .donut-svg svg{width:150px!important;height:150px!important}
  .donut-legend{min-width:155px!important;max-width:180px!important}
  .donut-legend div,.donut-legend b{font-size:11.5px!important}
}

/* Tablet = compact desktop cockpit. No icon-only sidebar, no forced single-column cards. */
@media (min-width:700px) and (max-width:1199px){
  html,body{min-width:1180px!important;overflow-x:auto!important}
  .app{min-width:1180px!important}
  :root{--sidebar:210px!important;--topbar-h:70px!important}
  .sidebar{width:var(--sidebar)!important;transform:none!important;padding:calc(var(--topbar-h) + 12px) 10px 14px!important}
  .brand-wrap{width:var(--sidebar)!important;height:var(--topbar-h)!important;padding:0 16px!important}
  .brand-wrap img{width:174px!important;height:48px!important;object-fit:contain!important;object-position:center!important}
  .nav button{height:43px!important;justify-content:flex-start!important;padding:0 12px!important;font-size:13.5px!important;gap:10px!important}
  .nav button svg{width:18px!important;height:18px!important}
  .nav button span.label,.nav .nav-group,.nav .caret,.side-bottom .user-mini div:last-child,.env-pill b{display:initial!important}
  .nav button.sub{height:36px!important;padding-left:34px!important;font-size:12px!important;justify-content:flex-start!important}
  .admin-subnav{display:block!important}
  .env-pill{justify-content:flex-start!important;padding:0 9px!important;height:36px!important}
  .main{margin-left:var(--sidebar)!important;padding:0 16px 36px!important;min-width:970px!important}
  .topbar{height:var(--topbar-h)!important;margin:0 -16px!important;padding:0 16px!important;min-width:970px!important}
  .top-left,.top-right{gap:8px!important}
  .global-search{width:300px!important;height:40px!important}
  .profile-chip div:nth-child(2){display:block!important}
  .profile-chip{min-width:180px!important}
  .environment{display:flex!important;min-width:112px!important;height:40px!important}
  .page-head{padding:19px 0 13px!important}.page-head h1{font-size:27px!important}.page-head p{font-size:13px!important}
  .page-actions{display:flex!important}
  .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
  .kpi-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .split-equal{grid-template-columns:1fr 1fr!important}
  .split-2{grid-template-columns:minmax(0,1.25fr) minmax(370px,.85fr)!important}
  .split-3{grid-template-columns:1.15fr .9fr .9fr!important}
  .dashboard-feed-grid{grid-template-columns:1fr 1fr!important}
  .update-layout{grid-template-columns:1.12fr .88fr!important}
  .finance-charts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .analytics-charts{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .analytics-charts>section:last-child{grid-column:auto!important}
  .analytics-bottom{grid-template-columns:.95fr .95fr 1.5fr!important}
  .analytics-bottom>section:last-child{grid-column:auto!important}
  .chart-area,.chart-area.analytics-chart{height:250px!important}
  .chart-area.small{height:220px!important}
  .donut-premium{flex-direction:row!important;gap:14px!important;padding:15px 12px 18px!important}
  .donut-svg{width:144px!important;height:144px!important;flex-basis:144px!important}
  .donut-svg svg{width:144px!important;height:144px!important}
  .donut-center strong{font-size:19px!important}.donut-center span{font-size:9.5px!important}
  .donut-legend{min-width:145px!important;max-width:165px!important;gap:7px!important}
  .donut-legend div,.donut-legend b{font-size:10.5px!important}
  .table-wrap{overflow-x:auto!important}.table{min-width:760px!important}
  .toolbar{flex-wrap:nowrap!important}.toolbar .search{min-width:260px!important}
}

/* Phone only: this is the sole point where mobile navigation may collapse. */
@media (max-width:699px){
  html,body{min-width:0!important;overflow-x:hidden!important}
  .split-2{grid-template-columns:1fr!important}
  .donut-premium{flex-direction:column!important}
}


/* ==========================================================
   V0.4.7 — TYPOGRAPHY FIDELITY / MOCKUP SCALE
   Single visual typography system for all Super Admin screens.
   ========================================================== */
:root{
  --ui-font:Arial,"Helvetica Neue",Helvetica,sans-serif;
}
html,body,button,input,select,textarea{
  font-family:var(--ui-font)!important;
  letter-spacing:0!important;
}
body{font-size:14px!important;font-weight:400!important;color:#1c2630!important}

/* Header / global navigation */
.global-search input{font-family:var(--ui-font)!important;font-size:13px!important;font-weight:400!important}
.global-search kbd{font-family:var(--ui-font)!important;font-size:10.5px!important}
.environment{font-family:var(--ui-font)!important;font-size:12px!important;font-weight:600!important}
.profile-chip b{font-size:12px!important;font-weight:700!important}
.profile-chip small{font-size:10px!important;font-weight:400!important}
.nav button{font-family:var(--ui-font)!important;font-size:14px!important;font-weight:600!important;line-height:1!important}
.nav button.sub{font-size:12.5px!important;font-weight:500!important}
.nav .nav-group{font-family:var(--ui-font)!important;font-size:9.5px!important;font-weight:700!important}
.user-mini b{font-size:11.5px!important;font-weight:700!important}
.user-mini span{font-size:10.5px!important}
.env-pill{font-size:11px!important;font-weight:600!important}

/* Page hierarchy exactly closer to validated mockups */
.page-head{padding:22px 0 15px!important}
.page-head h1{font-family:var(--ui-font)!important;font-size:28px!important;line-height:1.12!important;font-weight:700!important;letter-spacing:-.02em!important}
.page-head p{font-size:13px!important;line-height:1.4!important;font-weight:400!important;color:#667381!important}
.card-head,.panel-head{padding:14px 16px!important;min-height:54px!important}
.card-head h2,.panel-head h2{font-family:var(--ui-font)!important;font-size:16px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:0!important}
.card-head p,.panel-head p{font-size:11.5px!important;line-height:1.35!important;font-weight:400!important}
.card-body,.panel-body{padding:16px!important}

/* KPI cards: less oversized, same visual rhythm as mockups */
.kpi-card{min-height:96px!important;padding:14px 15px!important;gap:11px!important;border-radius:13px!important}
.kpi-icon{width:40px!important;height:40px!important;font-size:15px!important}
.kpi-icon svg{width:21px!important;height:21px!important}
.kpi-copy>span,.kpi-copy span{font-family:var(--ui-font)!important;font-size:11.5px!important;line-height:1.15!important;font-weight:600!important;color:#52606d!important}
.kpi-copy strong{font-family:var(--ui-font)!important;font-size:22px!important;line-height:1.08!important;font-weight:700!important;letter-spacing:-.015em!important;margin:4px 0 4px!important}
.trend{font-family:var(--ui-font)!important;font-size:10.5px!important;font-weight:600!important}
.trend small{font-size:9.5px!important;font-weight:400!important;margin-left:4px!important}
.analytics-kpis .kpi-card{min-height:94px!important;padding:13px!important}
.analytics-kpis .kpi-copy>span{font-size:10.5px!important}
.analytics-kpis .kpi-copy strong{font-size:20px!important}

/* Controls */
.btn{font-family:var(--ui-font)!important;font-size:12.5px!important;font-weight:600!important}
.btn.small{font-size:11.5px!important}
.period-select,.chart-period,.period-control,.filter-control select,.filter-control input,select,input,textarea{font-family:var(--ui-font)!important}
.chart-period,.period-select{font-size:11px!important;font-weight:500!important}
.tabs button,.section-tabs button,.tabbar button{font-family:var(--ui-font)!important;font-size:12.5px!important;font-weight:600!important}
.tabs button.on,.section-tabs button.on,.tabbar button.on{font-weight:700!important}

/* Tables and secondary content */
.table-wrap th,.table th{font-family:var(--ui-font)!important;font-size:10.5px!important;font-weight:700!important;letter-spacing:0!important}
.table-wrap td,.table td{font-family:var(--ui-font)!important;font-size:12px!important;font-weight:400!important;line-height:1.35!important}
.badge{font-family:var(--ui-font)!important;font-size:10px!important;font-weight:600!important}
.form-row label,.field>span{font-family:var(--ui-font)!important;font-size:12px!important;font-weight:600!important}
.form-row input,.form-row select,.form-row textarea,.field input,.field select,.field textarea{font-family:var(--ui-font)!important;font-size:12.5px!important;font-weight:400!important}
.info-list,.info-list dt,.info-list dd{font-family:var(--ui-font)!important;font-size:12px!important}
.setting-row b{font-size:12.5px!important;font-weight:600!important}.setting-row span{font-size:11px!important}

/* Dashboard feed */
.feed-card .card-head h2{font-size:16px!important;font-weight:700!important}
.feed-main b{font-family:var(--ui-font)!important;font-size:11px!important;font-weight:500!important}
.feed-row time{font-family:var(--ui-font)!important;font-size:10px!important;font-weight:400!important}
.feed-badge{font-family:var(--ui-font)!important;font-size:9.5px!important;font-weight:600!important}

/* Charts: typography must match surrounding UI, not look like a different product */
.pchart-axis{font-family:var(--ui-font)!important;font-size:10.5px!important;font-weight:500!important}
.pchart-axis.pchart-x{font-size:10px!important}
.pchart-label{font-family:var(--ui-font)!important;font-size:11px!important;font-weight:600!important}
.pchart-label.strong{font-weight:700!important}
.chart-label{font-family:var(--ui-font)!important;font-size:10px!important}
.legend,.donut-legend{font-family:var(--ui-font)!important;font-size:11px!important;font-weight:400!important}
.donut-center strong,.premium-donut-center strong{font-family:var(--ui-font)!important;font-size:21px!important;font-weight:700!important;letter-spacing:-.015em!important}
.donut-center span,.premium-donut-center span{font-family:var(--ui-font)!important;font-size:10px!important;font-weight:400!important}

/* Dialogs and notices */
.modal-head h2{font-family:var(--ui-font)!important;font-size:17px!important;font-weight:700!important}
.notice{font-family:var(--ui-font)!important;font-size:12px!important}
.empty-state strong{font-family:var(--ui-font)!important;font-size:16px!important;font-weight:700!important}
.empty-state{font-size:12px!important}

/* Preserve the desktop visual scale on tablet, without huge headings. */
@media (max-width:1450px) and (min-width:900px){
  .page-head h1{font-size:27px!important}
  .page-head p{font-size:12.5px!important}
  .nav button{font-size:13.5px!important}
  .kpi-copy strong{font-size:21px!important}
  .kpi-copy>span{font-size:11px!important}
  .card-head h2,.panel-head h2{font-size:15.5px!important}
}


/* ==========================================================
   V0.4.8 — PIXEL FIDELITY / PREMIUM GRAPHICS & ICONS
   Browser rendering aligned to validated Linkdeal mockups.
   ========================================================== */
:root{--ui-font:"Segoe UI Variable Text","Segoe UI Variable","Segoe UI",Arial,sans-serif!important}
html,body,button,input,select,textarea{font-family:var(--ui-font)!important}
body{font-size:13px!important;color:#1a2632!important}

/* Typography hierarchy: bold exactly where the mockups are bold. */
.page-head h1{font-size:30px!important;font-weight:700!important;line-height:1.08!important;letter-spacing:-.025em!important}
.page-head p{font-size:13px!important;font-weight:400!important;color:#617181!important}
.card-head h2,.panel-head h2{font-size:17px!important;font-weight:700!important;color:#121b24!important}
.card-head p,.panel-head p{font-size:11.5px!important;font-weight:400!important}
.nav button{font-size:14px!important;font-weight:600!important}.nav button.on{font-weight:700!important}
.nav button svg{width:19px!important;height:19px!important;stroke-width:2.05!important}
.nav button.sub{font-size:12.5px!important;font-weight:500!important}
.kpi-copy>span,.kpi-copy span{font-size:11.5px!important;font-weight:600!important;color:#4f5f6e!important}
.kpi-copy strong{font-size:23px!important;font-weight:700!important;letter-spacing:-.012em!important}
.trend{font-size:10.3px!important;font-weight:600!important}.trend small{font-size:9.3px!important;font-weight:400!important}

/* KPI icons: same visual density as mockups. */
.kpi-icon{width:42px!important;height:42px!important;border-radius:50%!important}
.kpi-icon svg{width:23px!important;height:23px!important;stroke-width:2.05!important;fill:none!important}

/* Action buttons: icon + label, polished spacing. */
.btn{height:42px!important;border-radius:9px!important;padding:0 14px!important;gap:8px!important;font-size:12.5px!important;font-weight:600!important}
.btn-icon{display:inline-grid;place-items:center;width:17px;height:17px;flex:0 0 17px}
.btn-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn.primary .btn-icon svg{stroke:#fff}.btn.ghost .btn-icon svg{stroke:#263441}
.page-actions{gap:10px!important}

/* Period selectors must match the mockup, compact and stable. */
.period-control{height:38px!important;min-width:128px!important;border-radius:9px!important;padding:0 11px 0 13px!important;font-size:11.5px!important;font-weight:600!important;background:#fff!important}
.period-control svg{width:13px!important;height:13px!important}

/* Charts should use the available card surface. */
.chart-card{min-width:0!important}.chart-area{height:300px!important;padding:5px 8px 10px!important}.dashboard-chart{height:300px!important}
.chart-area.small{height:248px!important}.chart-area.analytics-chart{height:292px!important}
.premium-chart{width:100%!important;height:100%!important;overflow:hidden!important}
.premium-chart svg{width:100%!important;height:100%!important;display:block!important;overflow:visible!important}
.pchart-grid{stroke:#e6ebef!important;stroke-width:1!important}.pchart-line{stroke-width:3.2!important}
.pchart-axis{font-family:var(--ui-font)!important;font-size:10.2px!important;font-weight:500!important;fill:#5d6d7c!important}
.pchart-axis.pchart-x{font-size:9.7px!important}.pchart-label{font-family:var(--ui-font)!important;font-size:10.8px!important;font-weight:600!important}

/* Donuts: larger, with a centered amount and roomy legend. */
.donut-premium{display:grid!important;grid-template-columns:minmax(205px,240px) minmax(180px,1fr)!important;align-items:center!important;justify-content:center!important;gap:22px!important;padding:18px 24px 22px!important;min-height:258px!important;width:100%!important}
.donut-svg{width:218px!important;height:218px!important;justify-self:center!important;position:relative!important}
.donut-svg svg{width:218px!important;height:218px!important;display:block!important}
.donut-center strong{font-size:23px!important;font-weight:700!important;line-height:1.05!important;white-space:nowrap!important}
.donut-center span{font-size:10.5px!important;color:#607080!important;white-space:nowrap!important;margin-top:4px!important}
.donut-legend{width:100%!important;max-width:240px!important;gap:10px!important;font-size:12px!important}
.donut-legend div{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;font-size:12px!important}
.donut-legend i{width:9px!important;height:9px!important;border-radius:3px!important}.donut-legend b{font-size:12px!important;font-weight:700!important}

/* Dashboard proportions closer to the validated reference. */
.split-2{grid-template-columns:minmax(0,1.52fr) minmax(430px,.82fr)!important;gap:12px!important}
.dashboard-feed-grid{grid-template-columns:1.12fr .88fr!important;gap:12px!important}
.feed-card .card-head{min-height:55px!important}.feed-card .card-head h2{font-size:17px!important;font-weight:700!important}
.feed-main b{font-size:11.3px!important;font-weight:500!important}.feed-meta{font-size:10.8px!important}.feed-row time{font-size:9.8px!important}

/* Tables and tabs: match the same typography language. */
.tabs button,.section-tabs button,.tabbar button{font-size:12.5px!important;font-weight:500!important}.tabs button.on,.section-tabs button.on,.tabbar button.on{font-weight:700!important}
.table-wrap th,.table th{font-size:10.5px!important;font-weight:700!important}.table-wrap td,.table td{font-size:11.8px!important}

/* Desktop-like tablet layout: preserve full cockpit. */
@media (max-width:1450px) and (min-width:900px){
  :root{--sidebar:210px!important}
  .main{min-width:1040px!important}
  .page-head h1{font-size:29px!important}
  .global-search{width:360px!important}
  .kpi-copy strong{font-size:22px!important}
  .split-2{grid-template-columns:minmax(0,1.45fr) minmax(390px,.82fr)!important}
  .donut-premium{grid-template-columns:190px minmax(165px,1fr)!important;gap:14px!important;padding:16px 14px 18px!important}
  .donut-svg,.donut-svg svg{width:188px!important;height:188px!important}
  .donut-center strong{font-size:20px!important}.donut-center span{font-size:9.5px!important}
  .donut-legend,.donut-legend div,.donut-legend b{font-size:10.8px!important}
  .chart-area{height:280px!important}.chart-area.analytics-chart{height:275px!important}
}

@media (max-width:899px){
  html,body{min-width:1180px!important;overflow-x:auto!important}
  .sidebar{width:210px!important;transform:none!important}
  .main{margin-left:210px!important;min-width:970px!important}
}


/* ==========================================================
   V0.4.9 — CHART SPACE / DONUT SCALE / KPI TRENDS
   Exact browser-rendering refinements from visual QA.
   ========================================================== */
/* KPI variation: the percentage itself must be visibly green/red like the mockup. */
.trend{display:inline-flex!important;align-items:baseline!important;gap:2px!important;color:#0cad55!important;font-weight:700!important;font-size:10.8px!important;line-height:1.2!important}
.trend.down{color:#e30613!important}
.trend.warn{color:#e79200!important}
.trend small{color:#6f7b87!important;font-weight:500!important;font-size:9.5px!important;margin-left:5px!important}

/* Chart typography: less light, more readable and closer to the reference. */
.pchart-axis{font-family:var(--ui-font)!important;font-size:11.4px!important;font-weight:600!important;fill:#526171!important}
.pchart-axis.pchart-x{font-size:10.7px!important;font-weight:600!important}
.pchart-label{font-size:11.6px!important;font-weight:650!important;fill:#34414d!important}
.pchart-line{stroke-width:3.35!important}

/* The line chart now follows its SVG ratio, so it fills the card instead of floating in the middle. */
.chart-area.dashboard-chart{height:auto!important;aspect-ratio:920 / 310!important;min-height:300px!important;padding:8px 12px 10px!important}
.chart-area.small{height:auto!important;aspect-ratio:500 / 270!important;min-height:245px!important;padding:8px 10px 10px!important}
.chart-area.analytics-chart{height:auto!important;aspect-ratio:2.12 / 1!important;min-height:270px!important;padding:8px 10px 10px!important}
.premium-chart,.premium-chart svg{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}

/* Dashboard donut: deliberately much larger because the card has the room. */
.dashboard-donut-card .donut-premium{grid-template-columns:minmax(270px,300px) minmax(190px,1fr)!important;gap:26px!important;min-height:320px!important;padding:18px 28px 24px!important;align-items:center!important}
.dashboard-donut-card .donut-svg,.dashboard-donut-card .donut-svg svg{width:270px!important;height:270px!important}
.dashboard-donut-card .donut-center strong{font-size:27px!important;font-weight:750!important}
.dashboard-donut-card .donut-center span{font-size:11.5px!important;font-weight:500!important}
.dashboard-donut-card .donut-legend{max-width:260px!important;gap:12px!important}
.dashboard-donut-card .donut-legend div,.dashboard-donut-card .donut-legend b{font-size:12.7px!important}

/* Finance donut: larger, but still adapted to the narrower four-column card. */
.finance-donut-card .donut-premium{grid-template-columns:minmax(205px,220px) minmax(145px,1fr)!important;gap:14px!important;min-height:270px!important;padding:16px 16px 20px!important}
.finance-donut-card .donut-svg,.finance-donut-card .donut-svg svg{width:210px!important;height:210px!important}
.finance-donut-card .donut-center strong{font-size:23px!important}
.finance-donut-card .donut-legend{gap:8px!important;max-width:190px!important}
.finance-donut-card .donut-legend div,.finance-donut-card .donut-legend b{font-size:11.2px!important}

/* Analytics donut also uses more of its card. */
.analytics-donut-card .donut-premium{grid-template-columns:minmax(220px,240px) minmax(165px,1fr)!important;gap:18px!important;min-height:285px!important;padding:16px 20px 22px!important}
.analytics-donut-card .donut-svg,.analytics-donut-card .donut-svg svg{width:225px!important;height:225px!important}

/* Alerts / live activity: semi-bold body copy exactly as requested. */
.feed-main b{font-weight:600!important;font-size:11.8px!important;color:#18232e!important}
.feed-meta{font-weight:500!important;font-size:11px!important;color:#5d6b78!important}
.feed-row time{font-weight:500!important;font-size:10px!important;color:#6d7883!important}
.feed-badge{font-weight:650!important}
.feed-footer button{font-weight:650!important}

@media (max-width:1450px) and (min-width:900px){
  .chart-area.dashboard-chart{min-height:270px!important}
  .dashboard-donut-card .donut-premium{grid-template-columns:215px minmax(150px,1fr)!important;gap:12px!important;min-height:270px!important;padding:14px!important}
  .dashboard-donut-card .donut-svg,.dashboard-donut-card .donut-svg svg{width:210px!important;height:210px!important}
  .dashboard-donut-card .donut-center strong{font-size:22px!important}
  .dashboard-donut-card .donut-legend div,.dashboard-donut-card .donut-legend b{font-size:11px!important}
  .finance-donut-card .donut-premium{grid-template-columns:185px minmax(135px,1fr)!important}
  .finance-donut-card .donut-svg,.finance-donut-card .donut-svg svg{width:185px!important;height:185px!important}
}


/* ==========================================================
   V0.4.10 — REAL TABLET RESPONSIVE
   Communications + Update Manager fit the viewport without
   horizontal page scrolling while keeping a desktop cockpit.
   ========================================================== */
.communications-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.72fr);gap:14px;align-items:start;min-width:0}
.communications-main,.communications-side{min-width:0}
.communications-side{display:grid;grid-template-columns:1fr;gap:14px}
.communications-page .table{min-width:680px}
.communications-page .table-wrap{max-width:100%;overflow-x:auto}
.communications-page .campaign-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.communications-page .campaign-stat{min-width:0;padding:12px 8px}
.communications-page .info-list{grid-template-columns:76px minmax(0,1fr);font-size:12px;overflow-wrap:anywhere}
.communications-page .panel-body{min-width:0}

/* Update page: allow both cards to shrink and never force body width. */
.update-layout{grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr)!important;min-width:0}
.update-layout>.card{min-width:0}
.version-boxes{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.update-steps{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.update-step{min-width:0;padding:10px 5px!important}
.upload-zone{min-width:0;overflow:hidden}
.upload-zone input[type=file]{width:100%;max-width:430px}

/* Tablet is desktop-like, but fluid: no fake 1180px canvas and no page scrollbar. */
@media (min-width:768px) and (max-width:1199px){
  html,body{min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
  .app{min-width:0!important;width:100%!important}
  :root{--sidebar:184px!important;--topbar-h:68px!important}
  .sidebar{width:var(--sidebar)!important;transform:none!important;padding:calc(var(--topbar-h) + 9px) 8px 12px!important}
  .brand-wrap{width:var(--sidebar)!important;height:var(--topbar-h)!important;padding:0 12px!important}
  .brand-wrap img{width:154px!important;height:44px!important;object-fit:contain!important}
  .nav button{height:40px!important;padding:0 10px!important;font-size:12.5px!important;gap:8px!important;justify-content:flex-start!important}
  .nav button svg{width:17px!important;height:17px!important}
  .nav button span.label,.nav .caret,.side-bottom .user-mini div:last-child,.env-pill b{display:initial!important}
  .nav button.sub{height:34px!important;padding-left:30px!important;font-size:11.5px!important;justify-content:flex-start!important}
  .env-pill{justify-content:flex-start!important;padding:0 8px!important}
  .main{margin-left:var(--sidebar)!important;min-width:0!important;width:calc(100% - var(--sidebar))!important;padding:0 14px 32px!important;overflow:visible!important}
  .topbar{min-width:0!important;width:auto!important;margin:0 -14px!important;padding:0 14px!important;height:var(--topbar-h)!important}
  .top-left{min-width:0!important;flex:1 1 auto!important}.top-right{flex:0 0 auto!important;gap:5px!important}
  .global-search{width:clamp(190px,30vw,300px)!important;height:39px!important;min-width:0!important}
  .environment{display:flex!important;min-width:102px!important;height:38px!important;padding:0 8px!important}
  .profile-chip{min-width:0!important;padding:3px 4px!important}.profile-chip div:nth-child(2){display:block!important}.profile-chip small{display:none!important}
  .page-head{gap:10px!important}.page-head h1{font-size:25px!important}.page-head p{font-size:12.5px!important}.page-actions{display:flex!important;gap:7px!important}
  .btn{padding:0 11px!important}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .kpi-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .communications-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .communications-layout{grid-template-columns:minmax(0,1fr) minmax(245px,.48fr)!important;gap:10px!important}
  .communications-page .campaign-stat-grid{grid-template-columns:1fr!important}
  .communications-page .campaign-stat{text-align:left!important;padding:10px 12px!important}
  .communications-page .campaign-stat small{display:inline!important;margin-left:6px!important}
  .communications-page .table{min-width:620px!important}
  .update-layout{grid-template-columns:1fr!important;gap:12px!important}
  .update-layout>.card:nth-child(2){order:2}
  .version-boxes{grid-template-columns:1fr 1fr!important}
  .update-steps{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .table-wrap{max-width:100%!important;overflow-x:auto!important}
  .table{min-width:680px!important}
}

/* Portrait tablet: keep full sidebar and desktop functions, stack page internals. */
@media (min-width:768px) and (max-width:920px){
  :root{--sidebar:170px!important}
  .brand-wrap{width:var(--sidebar)!important}.brand-wrap img{width:142px!important}
  .global-search{width:190px!important}
  .profile-chip div:nth-child(2){display:none!important}
  .environment{min-width:96px!important}
  .communications-layout{grid-template-columns:1fr!important}
  .communications-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .communications-page .campaign-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .communications-page .campaign-stat{text-align:center!important}
  .communications-page .campaign-stat small{display:block!important;margin-left:0!important}
  .version-boxes{grid-template-columns:1fr 1fr!important}
  .update-steps{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}

@media (max-width:767px){
  .communications-layout,.communications-side{grid-template-columns:1fr!important}
  .communications-page .campaign-stat-grid{grid-template-columns:1fr!important}
  .update-layout,.version-boxes{grid-template-columns:1fr!important}
  .update-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Mid-size desktop / large tablet: keep the whole page inside the viewport. */
@media (min-width:1200px) and (max-width:1350px){
  .communications-layout{grid-template-columns:minmax(0,1fr) minmax(270px,.46fr)!important;gap:10px!important}
  .communications-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .communications-page .campaign-stat-grid{grid-template-columns:1fr!important}
  .communications-page .campaign-stat{text-align:left!important}
  .communications-page .campaign-stat small{display:inline!important;margin-left:6px!important}
  .update-layout{grid-template-columns:1fr!important}
}


/* ==========================================================
   V0.4.12 — TABLET RESPONSIVE STABILITY
   Tablet stays desktop-like, but page sections reflow instead
   of being squeezed into unreadable columns.
   ========================================================== */
@media (min-width:768px) and (max-width:1199px){
  html,body,.app{min-width:0!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .main{min-width:0!important;width:calc(100% - var(--sidebar))!important;max-width:calc(100% - var(--sidebar))!important;overflow-x:hidden!important}
  .page-content,.card,.panel,.chart-card,.split-2>*,.dashboard-feed-grid>*{min-width:0!important;max-width:100%!important}

  /* Dashboard: one full-width chart row, then full-width offer distribution. */
  .split-2{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .dashboard-feed-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .chart-area.dashboard-chart{width:100%!important;max-width:100%!important;aspect-ratio:auto!important;height:300px!important;min-height:300px!important;padding:8px 10px 10px!important}
  .premium-chart,.premium-chart svg{width:100%!important;max-width:100%!important;height:100%!important}

  /* Keep the donut large on tablet; legend stays beside it when space permits. */
  .dashboard-donut-card .donut-premium{display:grid!important;grid-template-columns:minmax(220px,260px) minmax(180px,1fr)!important;gap:18px!important;min-height:300px!important;padding:18px 22px 22px!important}
  .dashboard-donut-card .donut-svg,.dashboard-donut-card .donut-svg svg{width:238px!important;height:238px!important}
  .dashboard-donut-card .donut-center strong{font-size:24px!important}
  .dashboard-donut-card .donut-center span{font-size:10.5px!important}
  .dashboard-donut-card .donut-legend{max-width:none!important;width:100%!important}
  .dashboard-donut-card .donut-legend div,.dashboard-donut-card .donut-legend b{font-size:12px!important}

  /* Finance/Analytics: prevent four-up chart rows from becoming narrow slivers. */
  .finance-chart-grid,.analytics-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .finance-donut-card .donut-premium,.analytics-donut-card .donut-premium{grid-template-columns:minmax(185px,210px) minmax(145px,1fr)!important;gap:14px!important}
  .finance-donut-card .donut-svg,.finance-donut-card .donut-svg svg,.analytics-donut-card .donut-svg,.analytics-donut-card .donut-svg svg{width:195px!important;height:195px!important}

  /* Generic multi-column grids: reflow instead of clipping. */
  .grid.cols-5,.grid.cols-6{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .split-3{grid-template-columns:minmax(0,1fr)!important}
  .coach-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (min-width:768px) and (max-width:920px){
  :root{--sidebar:170px!important}
  .main{width:calc(100% - var(--sidebar))!important;max-width:calc(100% - var(--sidebar))!important}
  .kpi-grid,.kpi-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-donut-card .donut-premium{grid-template-columns:minmax(190px,220px) minmax(150px,1fr)!important;gap:12px!important;padding:14px!important}
  .dashboard-donut-card .donut-svg,.dashboard-donut-card .donut-svg svg{width:205px!important;height:205px!important}
  .dashboard-donut-card .donut-legend div,.dashboard-donut-card .donut-legend b{font-size:11px!important}
  .chart-area.dashboard-chart{height:280px!important;min-height:280px!important}
  .finance-chart-grid,.analytics-chart-grid{grid-template-columns:minmax(0,1fr)!important}
}


/* ==========================================================
   V0.4.13 — LENOVO 12.7" LANDSCAPE REFERENCE
   Target: Lenovo Idea Tab Pro / Tab P12 class, 16:10, 2944x1840.
   Browser goal: desktop cockpit on large tablet, no mobile collapse.
   ========================================================== */
@media (min-width:1180px) and (max-width:1550px) and (orientation:landscape){
  :root{--sidebar:206px!important;--topbar-h:68px!important}
  html,body,.app{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .sidebar{width:var(--sidebar)!important;padding:calc(var(--topbar-h) + 10px) 9px 13px!important}
  .brand-wrap{width:var(--sidebar)!important;height:var(--topbar-h)!important;padding:0 13px!important}
  .brand-wrap img{width:166px!important;height:44px!important;object-fit:contain!important}
  .nav button{height:41px!important;padding:0 11px!important;font-size:13px!important;gap:9px!important}
  .nav button svg{width:18px!important;height:18px!important}
  .nav button.sub{height:34px!important;font-size:11.5px!important;padding-left:31px!important}
  .env-pill{height:35px!important;font-size:10.5px!important}
  .user-mini b{font-size:11px!important}.user-mini span{font-size:10px!important}

  .main{margin-left:var(--sidebar)!important;width:calc(100% - var(--sidebar))!important;max-width:calc(100% - var(--sidebar))!important;min-width:0!important;padding:0 16px 34px!important;overflow-x:hidden!important}
  .topbar{height:var(--topbar-h)!important;margin:0 -16px!important;padding:0 16px!important;min-width:0!important;width:auto!important}
  .top-left{min-width:0!important;flex:1 1 auto!important}.top-right{flex:0 0 auto!important;gap:8px!important}
  .global-search{width:clamp(270px,31vw,420px)!important;height:40px!important}
  .environment{height:39px!important;min-width:112px!important;padding:0 9px!important;font-size:11.5px!important}
  .profile-chip{min-height:40px!important;gap:7px!important}.profile-chip .avatar.small{width:34px!important;height:34px!important}.profile-chip b{font-size:11.5px!important}.profile-chip small{font-size:9.5px!important}
  .notify{width:39px!important;height:39px!important}.notify svg{width:20px!important;height:20px!important}

  .page-head{padding:18px 0 13px!important}.page-head h1{font-size:26px!important}.page-head p{font-size:12px!important}
  .btn{height:39px!important;font-size:11.5px!important;padding:0 12px!important}.btn.small{height:33px!important;font-size:10.5px!important}
  .period-control{height:36px!important;min-width:118px!important;font-size:10.8px!important}

  .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
  .kpi-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  .kpi-card{min-height:88px!important;padding:12px 13px!important;gap:9px!important}.kpi-icon{width:37px!important;height:37px!important}.kpi-icon svg{width:20px!important;height:20px!important}
  .kpi-copy>span,.kpi-copy span{font-size:10.5px!important}.kpi-copy strong{font-size:20px!important}.trend{font-size:9.8px!important}.trend small{font-size:8.8px!important}

  /* Dashboard keeps the desktop composition on Lenovo landscape. */
  .split-2{grid-template-columns:minmax(0,1.48fr) minmax(350px,.82fr)!important;gap:10px!important}
  .dashboard-feed-grid{grid-template-columns:1.08fr .92fr!important;gap:10px!important}
  .chart-area.dashboard-chart{height:285px!important;min-height:285px!important;aspect-ratio:auto!important;padding:7px 9px 9px!important}
  .dashboard-donut-card .donut-premium{grid-template-columns:minmax(190px,220px) minmax(145px,1fr)!important;gap:12px!important;min-height:285px!important;padding:14px 14px 16px!important}
  .dashboard-donut-card .donut-svg,.dashboard-donut-card .donut-svg svg{width:205px!important;height:205px!important}.dashboard-donut-card .donut-center strong{font-size:21px!important}.dashboard-donut-card .donut-center span{font-size:9.5px!important}.dashboard-donut-card .donut-legend div,.dashboard-donut-card .donut-legend b{font-size:10.8px!important}
  .feed-card .card-head{min-height:50px!important;padding:12px 14px!important}.feed-card .card-head h2{font-size:15px!important}.feed-list{padding:2px 13px 4px!important}.feed-row{min-height:39px!important}.feed-main b{font-size:10.6px!important}.feed-meta{font-size:9.8px!important}.feed-row time{font-size:9px!important}

  /* Finance and Analytics use two strong columns rather than narrow three/four-up charts. */
  .finance-chart-grid,.analytics-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  .analytics-charts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.analytics-charts>section:last-child{grid-column:1/-1!important}
  .analytics-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.analytics-bottom>section:last-child{grid-column:1/-1!important}
  .chart-area.analytics-chart{height:260px!important;min-height:260px!important;aspect-ratio:auto!important}.chart-area.small{height:235px!important;min-height:235px!important;aspect-ratio:auto!important}
  .finance-donut-card .donut-premium,.analytics-donut-card .donut-premium{grid-template-columns:minmax(175px,195px) minmax(135px,1fr)!important;gap:10px!important;min-height:245px!important;padding:12px!important}.finance-donut-card .donut-svg,.finance-donut-card .donut-svg svg,.analytics-donut-card .donut-svg,.analytics-donut-card .donut-svg svg{width:182px!important;height:182px!important}

  /* Communications and Update Manager remain fully visible without page-level horizontal scrolling. */
  .communications-layout{grid-template-columns:minmax(0,1.48fr) minmax(280px,.58fr)!important;gap:10px!important}.communications-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}.communications-page .campaign-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.communications-page .table-wrap{overflow-x:auto!important}.communications-page .table{min-width:650px!important}
  .update-layout{grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr)!important;gap:10px!important}.update-steps{grid-template-columns:repeat(5,minmax(0,1fr))!important}.version-boxes{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .table-wrap{max-width:100%!important;overflow-x:auto!important}.table{min-width:690px!important}.table th{font-size:9.8px!important}.table td{font-size:11px!important}
}

/* Lenovo portrait is still usable, but landscape is the reference work mode. */
@media (min-width:880px) and (max-width:1179px) and (orientation:portrait){
  :root{--sidebar:168px!important}
  .main{margin-left:var(--sidebar)!important;width:calc(100% - var(--sidebar))!important;max-width:calc(100% - var(--sidebar))!important}
  .split-2,.dashboard-feed-grid,.update-layout,.communications-layout{grid-template-columns:1fr!important}
  .kpi-grid,.kpi-grid.six,.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .finance-chart-grid,.analytics-chart-grid,.analytics-bottom{grid-template-columns:1fr!important}
}


/* ==========================================================
   V0.4.14 — SIDEBAR SUBMENU STABILITY
   Administration accordion stays inside the fixed sidebar and
   never changes the width available to the main application.
   ========================================================== */
.sidebar{
  overflow:hidden!important;
  contain:layout paint!important;
}
.nav{
  flex:1 1 auto!important;
  min-height:0!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
}
.nav button{
  min-width:0!important;
  max-width:100%!important;
  flex:0 0 auto!important;
}
.nav button .label{
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.nav .caret{
  flex:0 0 auto!important;
  margin-left:auto!important;
}
.admin-subnav{
  box-sizing:border-box!important;
  display:block!important;
  width:calc(100% - 18px)!important;
  max-width:calc(100% - 18px)!important;
  min-width:0!important;
  margin:3px 0 8px 18px!important;
  padding:3px 0 3px 5px!important;
  overflow:hidden!important;
  border-left:1px solid rgba(255,255,255,.16)!important;
}
.nav .admin-subnav button.sub{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding-left:14px!important;
  padding-right:9px!important;
  justify-content:flex-start!important;
}
.nav .admin-subnav button.sub .label{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.side-bottom{
  flex:0 0 auto!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}

/* Lenovo / large tablet: opening Administration must never resize the cockpit. */
@media (min-width:768px) and (max-width:1550px){
  .sidebar{min-width:var(--sidebar)!important;max-width:var(--sidebar)!important}
  .main{
    margin-left:var(--sidebar)!important;
    width:calc(100% - var(--sidebar))!important;
    max-width:calc(100% - var(--sidebar))!important;
    min-width:0!important;
  }
  .admin-subnav{
    width:calc(100% - 12px)!important;
    max-width:calc(100% - 12px)!important;
    margin-left:12px!important;
    padding-left:5px!important;
  }
  .nav .admin-subnav button.sub{
    height:34px!important;
    padding-left:12px!important;
    padding-right:7px!important;
  }
}

/* Very constrained tablet/browser windows: keep sidebar fixed and scroll its nav only. */
@media (min-width:768px) and (max-height:760px){
  .nav{padding-bottom:4px!important}
  .nav button{height:38px!important}
  .nav .admin-subnav button.sub{height:31px!important}
  .side-bottom{padding-top:7px!important}
  .env-pill{margin-bottom:5px!important}
  .user-mini{padding-top:6px!important;padding-bottom:6px!important}
}


/* ==========================================================
   V0.4.15 — SIDEBAR NAV SCROLL ACCESSIBILITY
   Keep the bottom account block fixed, while the complete
   navigation (including Administration sub-items) scrolls.
   ========================================================== */
.sidebar{
  position:fixed!important;
  overflow:hidden!important;
}
.nav{
  position:absolute!important;
  top:calc(var(--topbar-h) + 10px)!important;
  left:10px!important;
  right:8px!important;
  bottom:118px!important;
  width:auto!important;
  max-width:none!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(255,255,255,.28) transparent!important;
  padding:2px 2px 12px 0!important;
}
.nav::-webkit-scrollbar{width:5px!important}
.nav::-webkit-scrollbar-track{background:transparent!important}
.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24)!important;border-radius:8px!important}
.nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.38)!important}
.side-bottom{
  position:absolute!important;
  left:10px!important;
  right:10px!important;
  bottom:10px!important;
  width:auto!important;
  margin:0!important;
  background:linear-gradient(180deg,rgba(11,17,22,.88),#0b1116 24%)!important;
  z-index:3!important;
}
.admin-subnav{
  overflow:visible!important;
  max-height:none!important;
}

/* On short Lenovo/tablet browser heights, make room for all sub-items. */
@media (min-width:768px) and (max-height:760px){
  .nav{bottom:82px!important;top:calc(var(--topbar-h) + 7px)!important}
  .side-bottom{bottom:7px!important;padding-top:6px!important}
  .side-bottom .user-mini{display:none!important}
  .env-pill{height:35px!important;margin-bottom:0!important}
  .nav button{height:37px!important}
  .nav .admin-subnav button.sub{height:31px!important}
}
@media (min-width:768px) and (max-height:620px){
  .nav{bottom:67px!important}
  .side-bottom{padding-top:4px!important}
  .env-pill{height:32px!important;font-size:11px!important}
  .nav button{height:35px!important}
  .nav .admin-subnav button.sub{height:29px!important}
}


/* ==========================================================
   V0.4.16 — KPI TREND COLOR CONSISTENCY
   Positive = green, negative = Linkdeal red, neutral = gray.
   The comparison text remains neutral for readability.
   ========================================================== */
.kpi-copy span.trend,
.analytics-kpis .kpi-copy span.trend,
.summary-kpis .kpi-copy span.trend {
  display:inline-flex!important;
  align-items:baseline!important;
  width:auto!important;
  color:#0CAD55!important;
  font-weight:700!important;
}
.kpi-copy span.trend.down,
.analytics-kpis .kpi-copy span.trend.down,
.summary-kpis .kpi-copy span.trend.down { color:#E30613!important; }
.kpi-copy span.trend.neutral,
.analytics-kpis .kpi-copy span.trend.neutral,
.summary-kpis .kpi-copy span.trend.neutral { color:#6F7B87!important; }
.kpi-copy span.trend small,
.analytics-kpis .kpi-copy span.trend small,
.summary-kpis .kpi-copy span.trend small {
  color:#6F7B87!important;
  font-weight:500!important;
}


/* ==========================================================
   V0.4.17 — French terminology + contextual help bubbles
   ========================================================== */
.help-label{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
.help-label>span:first-child{min-width:0}
.info-tip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;min-width:17px;padding:0;border:0;background:transparent;color:#8a949e;vertical-align:middle;cursor:pointer;outline:none;z-index:6}
.info-tip-icon{display:grid;place-items:center;width:15px;height:15px;border:1px solid #c9d1d8;border-radius:50%;font:700 10px/1 var(--ui-font,Inter,Arial,sans-serif);background:#fff;color:#697580;transition:.15s ease}
.info-tip:hover .info-tip-icon,.info-tip.open .info-tip-icon,.info-tip:focus-visible .info-tip-icon{border-color:#aeb8c1;color:#26323c;background:#f7f9fa}
.info-tooltip{position:absolute;left:50%;bottom:calc(100% + 9px);width:max-content;max-width:min(300px,70vw);padding:10px 12px;border:1px solid #dce2e7;border-radius:9px;background:#fff;color:#25313a;box-shadow:0 12px 32px rgba(17,24,39,.14);font:500 12px/1.45 var(--ui-font,Inter,Arial,sans-serif);text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,4px);transition:opacity .14s ease,transform .14s ease,visibility .14s;z-index:1000}
.info-tooltip::after{content:"";position:absolute;left:50%;top:100%;width:8px;height:8px;background:#fff;border-right:1px solid #dce2e7;border-bottom:1px solid #dce2e7;transform:translate(-50%,-4px) rotate(45deg)}
.info-tip:hover .info-tooltip,.info-tip:focus-visible .info-tooltip,.info-tip.open .info-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
.kpi-copy .help-label{font-size:inherit;line-height:inherit}
.kpi-copy .info-tip{margin-left:1px}
.card-head h2 .info-tip,.panel-head h2 .info-tip{margin-left:5px;top:-1px}
.chart-head-actions .legend span{font-weight:650}
@media(max-width:900px){.info-tooltip{max-width:240px;font-size:11.5px}.info-tip{width:19px;height:19px;min-width:19px}.info-tip-icon{width:17px;height:17px}}



/* ==========================================================
   V0.4.18 — Premium help tooltips: top-right + global overlay
   ========================================================== */
.card-head,.panel-head,.kpi-card{position:relative}
.kpi-card.has-info{padding-right:42px!important}
.kpi-card.has-info>.info-tip{position:absolute!important;top:10px!important;right:10px!important;margin:0!important;z-index:45!important}
.card-head:has(.info-tip),.panel-head:has(.info-tip){padding-right:46px!important}
.card-head h2>.info-tip,.panel-head h2>.info-tip{position:absolute!important;top:11px!important;right:12px!important;margin:0!important;z-index:45!important}
.info-tip{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;min-width:19px;padding:0;border:0;background:transparent;color:#7d8994;cursor:pointer;outline:none;z-index:45}
.info-tip-icon{display:grid;place-items:center;width:17px;height:17px;border:1px solid #c5ced6;border-radius:50%;font:700 10px/1 var(--ui-font,Inter,Arial,sans-serif);background:#fff;color:#66727d;box-shadow:0 1px 3px rgba(17,24,39,.05);transition:border-color .14s ease,color .14s ease,background .14s ease,transform .14s ease}
.info-tip:hover .info-tip-icon,.info-tip.open .info-tip-icon,.info-tip:focus-visible .info-tip-icon{border-color:#919da8;color:#18232d;background:#f7f9fb;transform:translateY(-1px)}
.info-tooltip{display:none!important}
.global-info-tooltip{position:fixed;z-index:2147483000;width:max-content;max-width:320px;padding:11px 13px;border:1px solid #d9e0e6;border-radius:10px;background:#fff;color:#1f2a33;box-shadow:0 18px 44px rgba(15,23,42,.18);font:550 12px/1.48 var(--ui-font,Inter,Arial,sans-serif);letter-spacing:0;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease,visibility .12s}
.global-info-tooltip.visible{opacity:1;visibility:visible;transform:translateY(0)}
.global-info-tooltip::after{content:"";position:absolute;left:var(--tip-arrow-x,24px);width:9px;height:9px;background:#fff;transform:translateX(-50%) rotate(45deg)}
.global-info-tooltip[data-placement="top"]::after{top:calc(100% - 4px);border-right:1px solid #d9e0e6;border-bottom:1px solid #d9e0e6}
.global-info-tooltip[data-placement="bottom"]::after{bottom:calc(100% - 4px);border-left:1px solid #d9e0e6;border-top:1px solid #d9e0e6}
.help-label{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
@media(max-width:900px){.global-info-tooltip{font-size:12px;max-width:min(280px,calc(100vw - 24px))}.info-tip{width:21px;height:21px;min-width:21px}.info-tip-icon{width:18px;height:18px;font-size:10.5px}.kpi-card.has-info>.info-tip{top:8px!important;right:8px!important}}


/* V0.4.20 — Analytics period legend + 12-month chart fidelity */
.period-legend{display:flex!important;align-items:center!important;gap:18px!important;flex-wrap:nowrap!important;white-space:nowrap!important}
.period-legend span{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;font-weight:600!important}
.period-legend i{margin-right:0!important;flex:0 0 auto!important}
.activity-period-card .card-head{min-height:72px}
.activity-period-card .chart-head-actions{min-width:0;flex-wrap:nowrap}
.activation-chart-card .premium-chart,.activity-period-card .premium-chart{width:100%;height:100%}
.activation-chart-card .pchart-x{font-size:10.5px!important;font-weight:600!important}
.activity-period-card .pchart-x{font-size:9.5px!important;font-weight:600!important}
@media(max-width:1180px){
  .activity-period-card .card-head{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;gap:10px!important}
  .activity-period-card .chart-head-actions{width:100%!important;justify-content:space-between!important;gap:12px!important}
  .period-legend{gap:14px!important}
}
@media(max-width:780px){
  .activity-period-card .chart-head-actions{align-items:center!important}
  .period-legend{gap:10px!important;font-size:10.5px!important}
}

/* V0.4.20 — full 30-day / 12-month period visibility */
.activity-period-card .pchart-x.period-x{font-size:9.2px!important;font-weight:600!important}
.activation-chart-card .pchart-x.month-x{font-size:10px!important;font-weight:600!important}
.activity-period-card .premium-chart svg,.activation-chart-card .premium-chart svg{overflow:visible!important}
@media(max-width:1280px){.activity-period-card .pchart-x.period-x{font-size:8.7px!important}.activation-chart-card .pchart-x.month-x{font-size:9.5px!important}}


/* V0.4.21 — Analytics readability and space efficiency */
.analytics-charts .chart-card .card-head h2,
.analytics-bottom .chart-card .card-head h2{font-weight:750!important;letter-spacing:-.01em}
.analytics-charts .card-head p,
.analytics-bottom .card-head p{font-size:12px!important;font-weight:500!important}
.analytics-charts .chart-area.analytics-chart{height:312px!important;min-height:312px!important;padding:8px 10px 12px!important}
.analytics-charts .pchart-axis{font-size:12px!important;font-weight:650!important;fill:#455563!important}
.analytics-charts .pchart-axis.pchart-x{font-size:10.8px!important;font-weight:650!important}
.analytics-charts .pchart-label{font-size:12.4px!important;font-weight:650!important;fill:#2f3b46!important}
.analytics-charts .pchart-label.strong{font-size:12.6px!important;font-weight:750!important;fill:#1d2730!important}
.horizontal-performance-chart .network-label{font-size:12.6px!important;font-weight:700!important}
.horizontal-performance-chart .network-value{font-size:12.6px!important;font-weight:800!important}
.activity-period-card .pchart-x.period-x{font-size:10.2px!important;font-weight:650!important}
.activation-chart-card .pchart-x.month-x{font-size:11px!important;font-weight:650!important}
.period-legend span{font-size:12.5px!important;font-weight:650!important}
@media (max-width:1400px){
  .analytics-charts .chart-area.analytics-chart{height:300px!important;min-height:300px!important}
  .analytics-charts .pchart-axis{font-size:11.5px!important}
  .analytics-charts .pchart-axis.pchart-x{font-size:10.3px!important}
  .horizontal-performance-chart .network-label,.horizontal-performance-chart .network-value{font-size:12px!important}
}
@media (max-width:1120px){
  .analytics-charts .chart-area.analytics-chart{height:292px!important;min-height:292px!important}
  .analytics-charts .pchart-axis{font-size:11.2px!important}
  .horizontal-performance-chart .network-label,.horizontal-performance-chart .network-value{font-size:11.8px!important}
}


/* V0.4.22 — Analytics chart readability / no clipping */
.analytics-charts{align-items:stretch!important}
.analytics-charts .chart-card{min-width:0!important}
.analytics-charts .chart-area.analytics-chart{height:326px!important;min-height:326px!important;padding:8px 8px 10px!important;overflow:hidden!important}
.analytics-charts .premium-chart{overflow:visible!important}
.analytics-charts .premium-chart svg{overflow:visible!important}
.analytics-charts .pchart-axis{font-size:15.8px!important;font-weight:650!important;fill:#455563!important}
.analytics-charts .pchart-axis.pchart-x{font-size:14.2px!important;font-weight:650!important}
.analytics-charts .pchart-label{font-size:15.4px!important;font-weight:700!important;fill:#2f3b46!important}
.analytics-charts .pchart-label.strong{font-size:15.6px!important;font-weight:800!important;fill:#1d2730!important}
.analytics-charts .pchart-line.multi{stroke-width:3!important}
.horizontal-performance-chart .network-label{font-size:15.2px!important;font-weight:700!important}
.horizontal-performance-chart .network-value{font-size:15.2px!important;font-weight:800!important}
@media (max-width:1800px) and (min-width:1351px){
  .analytics-charts{grid-template-columns:1.08fr 1fr 1.02fr!important;gap:12px!important}
  .analytics-charts .chart-area.analytics-chart{height:320px!important;min-height:320px!important}
  .analytics-charts .pchart-axis{font-size:15.2px!important}
  .analytics-charts .pchart-axis.pchart-x{font-size:13.5px!important}
  .analytics-charts .pchart-label,.horizontal-performance-chart .network-label,.horizontal-performance-chart .network-value{font-size:14.6px!important}
}
@media (max-width:1350px){
  .analytics-charts{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .analytics-charts>section:last-child{grid-column:1/-1!important}
  .analytics-charts .chart-area.analytics-chart{height:310px!important;min-height:310px!important}
  .analytics-charts .pchart-axis{font-size:15px!important}
  .analytics-charts .pchart-axis.pchart-x{font-size:13.5px!important}
  .horizontal-performance-chart .network-label,.horizontal-performance-chart .network-value{font-size:15px!important}
}
@media (max-width:980px){
  .analytics-charts{grid-template-columns:1fr!important}
  .analytics-charts>section:last-child{grid-column:auto!important}
}

/* V0.4.23 — Analytics responsive strategy: never shrink charts below readable width */
.analytics-charts{display:grid!important;gap:16px!important;align-items:stretch!important}
.analytics-charts .chart-card{min-width:0!important;width:100%!important}
.analytics-charts .chart-area.analytics-chart{height:350px!important;min-height:350px!important;padding:10px 14px 12px!important}
.analytics-charts .premium-chart,.analytics-charts .premium-chart svg{width:100%!important;height:100%!important;display:block!important}
.analytics-charts .pchart-axis{font-size:14.5px!important;font-weight:650!important}
.analytics-charts .pchart-axis.pchart-x{font-size:13px!important;font-weight:650!important}
.analytics-charts .pchart-label{font-size:14.5px!important;font-weight:700!important}
.horizontal-performance-chart .network-label{font-size:14.5px!important;font-weight:700!important}
.horizontal-performance-chart .network-value{font-size:14.5px!important;font-weight:800!important}

/* Wide desktop: three cards are OK only when there is real room. */
@media (min-width:1901px){
  .analytics-charts{grid-template-columns:1.12fr 1fr 1fr!important}
  .analytics-kpis{grid-template-columns:repeat(8,minmax(0,1fr))!important}
}

/* Standard desktop / large tablet landscape: two cards, performance full width. */
@media (min-width:1501px) and (max-width:1900px){
  .analytics-charts{grid-template-columns:1fr 1fr!important}
  .analytics-charts>section:nth-child(3){grid-column:1/-1!important}
  .analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .analytics-charts .chart-area.analytics-chart{height:365px!important;min-height:365px!important}
}

/* Lenovo 12.7 and comparable tablet viewports: one full-width chart at a time. */
@media (min-width:700px) and (max-width:1500px){
  .analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
  .analytics-charts{grid-template-columns:1fr!important;gap:14px!important}
  .analytics-charts>section{grid-column:auto!important}
  .analytics-charts .chart-area.analytics-chart{height:390px!important;min-height:390px!important;padding:10px 16px 14px!important}
  .analytics-charts .pchart-axis{font-size:15px!important}
  .analytics-charts .pchart-axis.pchart-x{font-size:13.5px!important}
  .horizontal-performance-chart .network-label,.horizontal-performance-chart .network-value{font-size:15px!important}
}

@media (max-width:980px){
  .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* V0.4.25 — Analytics layout approved by user: yellow / pink / green / blue rows */
.analytics-row{display:grid!important;gap:16px!important;align-items:stretch!important;width:100%!important;min-width:0!important}
.analytics-row>section{min-width:0!important;width:100%!important}
.analytics-row-yellow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.analytics-row-pink{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.analytics-row-green{grid-template-columns:minmax(250px,.82fr) minmax(520px,1.85fr) minmax(280px,1fr)!important}
.analytics-row-coach{display:block!important;width:100%!important}
.analytics-row-coach>.card{width:100%!important}
.analytics-row .chart-area.analytics-chart{height:330px!important;min-height:330px!important;aspect-ratio:auto!important;padding:10px 14px 14px!important;overflow:hidden!important}
.analytics-row .premium-chart,.analytics-row .premium-chart svg{width:100%!important;height:100%!important;display:block!important}
.analytics-row .pchart-axis{font-size:13.5px!important;font-weight:650!important}
.analytics-row .pchart-axis.pchart-x{font-size:12px!important;font-weight:650!important}
.analytics-row .pchart-label,.analytics-row .network-label,.analytics-row .network-value{font-size:13px!important;font-weight:700!important}
.analytics-row-pink .analytics-donut-card .donut-premium{grid-template-columns:minmax(230px,260px) minmax(180px,1fr)!important;gap:22px!important;min-height:330px!important;padding:20px 24px!important;align-items:center!important}
.analytics-row-pink .analytics-donut-card .donut-svg,.analytics-row-pink .analytics-donut-card .donut-svg svg{width:245px!important;height:245px!important}
.analytics-row-pink .donut-legend{font-size:13px!important;gap:12px!important}
.analytics-frequency-card .card-body{display:flex!important;align-items:center!important;justify-content:center!important;min-height:330px!important;padding:18px!important}
.analytics-networks-card .table-wrap{overflow-x:auto!important}
.analytics-networks-card .table{min-width:760px!important}
.analytics-networks-card .table th,.analytics-networks-card .table td{font-size:12.5px!important;padding:13px 12px!important}
.analytics-health-card{min-height:360px!important}
.analytics-health-content{display:grid!important;grid-template-columns:minmax(180px,.95fr) minmax(170px,1.05fr)!important;align-items:center!important;min-height:300px!important;padding:8px 12px 16px!important}
.analytics-health-card .health-premium{padding:16px 6px!important;gap:12px!important;flex-direction:column!important;text-align:center!important}
.analytics-health-card .health-ring{width:150px!important;height:150px!important}
.analytics-health-card .health-caption b{font-size:16px!important}
.analytics-health-card .health-caption span{font-size:12px!important}
.analytics-health-card .mini-list{padding-left:10px!important}
.analytics-health-card .mini-row{font-size:12.5px!important}
.analytics-coach-card .coach-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.analytics-coach-card .coach-card{min-height:190px!important}
.analytics-coach-card .coach-card h3{font-size:16px!important}
.analytics-coach-card .coach-card p{font-size:12.5px!important;line-height:1.55!important}

/* Lenovo 12.7 landscape / compact desktop: preserve approved grouping without crushing content */
@media(max-width:1500px){
  .analytics-row-yellow,.analytics-row-pink{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
  .analytics-row-green{grid-template-columns:minmax(220px,.78fr) minmax(480px,1.8fr) minmax(250px,.95fr)!important;gap:12px!important}
  .analytics-row .chart-area.analytics-chart{height:310px!important;min-height:310px!important}
  .analytics-row-pink .analytics-donut-card .donut-premium{grid-template-columns:minmax(205px,225px) minmax(165px,1fr)!important;gap:14px!important;min-height:310px!important;padding:16px!important}
  .analytics-row-pink .analytics-donut-card .donut-svg,.analytics-row-pink .analytics-donut-card .donut-svg svg{width:215px!important;height:215px!important}
  .analytics-health-content{grid-template-columns:1fr!important;min-height:330px!important}
  .analytics-health-card .health-premium{flex-direction:row!important;text-align:left!important}
  .analytics-health-card .health-ring{width:120px!important;height:120px!important}
  .analytics-coach-card .coach-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Narrower tablet: do not compress; wrap groups while preserving order */
@media(max-width:1180px){
  .analytics-row-yellow,.analytics-row-pink{grid-template-columns:1fr!important}
  .analytics-row-green{grid-template-columns:1fr!important}
  .analytics-row .chart-area.analytics-chart{height:350px!important;min-height:350px!important}
  .analytics-row-pink .analytics-donut-card .donut-premium{grid-template-columns:minmax(240px,280px) minmax(180px,1fr)!important;min-height:330px!important}
  .analytics-row-pink .analytics-donut-card .donut-svg,.analytics-row-pink .analytics-donut-card .donut-svg svg{width:255px!important;height:255px!important}
  .analytics-frequency-card .card-body{min-height:300px!important}
  .analytics-health-content{grid-template-columns:minmax(200px,.9fr) minmax(220px,1.1fr)!important;min-height:280px!important}
  .analytics-health-card .health-premium{flex-direction:row!important}
}

@media(max-width:760px){
  .analytics-row-pink .analytics-donut-card .donut-premium{grid-template-columns:1fr!important;justify-items:center!important}
  .analytics-health-content{grid-template-columns:1fr!important}
  .analytics-coach-card .coach-grid{grid-template-columns:1fr!important}
}

/* V0.4.26 — Engagement utilisateurs */
.engagement-card .card-head{align-items:center}
.engagement-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 16px 0}
.engagement-stat{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;min-width:0}
.engagement-stat>span{display:block;font-size:11px;color:var(--muted);font-weight:600;margin-bottom:4px}
.engagement-stat>strong{display:block;font-size:18px;line-height:1.15;color:var(--ink);font-weight:800}
.engagement-stat .trend{margin-top:2px;font-size:12px;font-weight:750}
.engagement-stat .trend small{font-size:10px;font-weight:500}
.engagement-chart{padding-top:4px!important}
.engagement-chart .pchart-axis{font-size:11px!important;font-weight:600!important}
.engagement-chart .pchart-line{stroke-width:4!important}
@media(max-width:1100px){.engagement-summary{grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px 12px 0}.engagement-stat{padding:9px 10px}.engagement-stat>span{font-size:10.5px}.engagement-stat>strong{font-size:17px}}
@media(max-width:760px){.engagement-summary{grid-template-columns:1fr}.engagement-card .card-head{align-items:flex-start}.engagement-chart .pchart-axis{font-size:10.5px!important}}


/* V0.4.29 — analytics chart fit */
.analytics-row-yellow{align-items:stretch!important}
.analytics-row-yellow>.card{display:flex!important;flex-direction:column!important}
.analytics-row-yellow .card-head{align-items:flex-start!important}
.analytics-row-yellow .chart-area.analytics-chart{height:362px!important;min-height:362px!important}
.activation-chart-card .chart-area.analytics-chart{padding:6px 10px 8px!important}
.activation-chart-card .premium-chart,.activation-chart-card .premium-chart svg{width:100%!important;height:100%!important;display:block!important}
.activation-chart-card .pchart-axis{font-size:13px!important;font-weight:650!important}
.activation-chart-card .pchart-axis.pchart-x.month-x{font-size:12px!important;font-weight:650!important}
.engagement-card .pchart-axis.pchart-x{font-size:11px!important}
@media(max-width:1400px){
  .analytics-row-yellow .chart-area.analytics-chart{height:342px!important;min-height:342px!important}
}


/* V0.4.30 — preview sync + activation full-height */
.analytics-row-yellow>.activation-chart-card{display:flex!important;flex-direction:column!important}
.analytics-row-yellow>.activation-chart-card .card-head{flex:0 0 auto!important}
.analytics-row-yellow>.activation-chart-card .chart-area.analytics-chart{flex:1 1 auto!important;height:auto!important;min-height:420px!important;padding:4px 8px 6px!important}
.analytics-row-yellow>.activation-chart-card .premium-chart,.analytics-row-yellow>.activation-chart-card .premium-chart svg{width:100%!important;height:100%!important;display:block!important}
.engagement-chart .pchart-axis.pchart-x{font-size:11px!important;font-weight:650!important}
@media(max-width:1400px){.analytics-row-yellow>.activation-chart-card .chart-area.analytics-chart{min-height:390px!important}}
@media(max-width:900px){.analytics-row-yellow>.activation-chart-card .chart-area.analytics-chart{min-height:330px!important}}
