/* Polaris 北极星 overlay for Simple Kuma — v3 (2026-09-03)
   Source of truth: design canvas "Acc · Trending · Tracker" (KCampaigns/KReports/KEntities boards) +
   "Advertizer Tracker UI v3" Brand board. Values below are lifted verbatim from those artboards:
     app bar 52px #fff / border #edf0f4 · nav pills 999px, active #4f6bed · content padding 20px, gap 14
     card 14px radius, 1px #edf0f4, shadow 0 1px 2px rgba(16,24,40,.04) · KPI card 10px radius, 12px 14px
     th #fbfcfd 10.5px 600 uppercase .03em, 9px 12px, border #e2e6ec · td 12.5px 9px 12px border #edf0f4
     btn2 white 1px #e2e6ec radius 8 7px 11px 12.5px 500 #5a6678 · primary #4f6bed radius 8 7px 14px 12.5px 600
     chip 11px 600 2px 9px pill · label 11.5px 600 #5a6678 · input #fbfcfd 1px #e2e6ec radius 8 8px 11px 12.5px
     type: Inter (UI) + Fira Code (every number) · page title 22/700/-.02em · panel title 15/600/-.01em
   Lives OUTSIDE the Kuma tree; injected by Apache. No Kuma file is touched. */

@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url('/polaris/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');}
@font-face{font-family:'Fira Code Variable';font-style:normal;font-display:swap;font-weight:300 700;src:url('/polaris/fonts/fira-code-latin-wght-normal.woff2') format('woff2-variations');}

/* ═══════════ Tokens: override Kuma's theme packs ═══════════ */
html[data-theme="light"], html:root{
  --font-family:'Inter Variable','Inter','PingFang SC','Microsoft YaHei',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --pm:'Fira Code Variable','Fira Code',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --p-bg:#f7f8fa; --p-bg2:#ffffff; --p-bg3:#f4f6f8; --p-ctl:#fbfcfd; --p-total:#f6f8ff;
  --p-ink:#101828; --p-ink2:#5a6678; --p-ink3:#98a2b3;
  --p-line:#edf0f4; --p-line2:#e2e6ec;
  --p-accent:#4f6bed; --p-accent-h:#3d57d6; --p-accent-l:#eef1fe; --p-accent-b:#cdd6fb;
  --p-ok:#12b76a; --p-ok-s:#ecfdf3; --p-ok-b:#a6f4c5; --p-ok-t:#067647;
  --p-warn:#dc6803; --p-warn-s:#fffaeb; --p-warn-b:#fedf89; --p-warn-t:#b54708;
  --p-bad:#e5484d; --p-bad-s:#fef3f2; --p-bad-b:#fecdca; --p-bad-t:#b42318;
  --p-info:#2e90fa; --p-info-s:#eff8ff; --p-info-b:#b2ddff; --p-info-t:#175cd3;
  --p-ai:#7a5af8; --p-ai-s:#f4f3ff; --p-ai-b:#d9d6fe; --p-ai-t:#5925dc;
  --p-sh:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --p-pop:0 12px 32px rgba(16,24,40,.12);

  --color-forest-dark:#3d57d6; --color-forest:#4f6bed; --color-forest-light:#8b9cf0;
  --color-bark:#cdd6fb; --color-bark-dark:#98a2b3; --color-cream:#f7f8fa; --color-cream-dark:#edf0f4;
  --color-white:#ffffff; --color-gray-100:#f4f6f8; --color-gray-200:#edf0f4; --color-gray-300:#e2e6ec; --color-gray-600:#5a6678; --color-gray-800:#101828; --color-black:#000000;
  --color-success:#12b76a; --color-success-bg:#ecfdf3; --color-warning:#dc6803; --color-warning-bg:#fffaeb; --color-error:#e5484d; --color-error-bg:#fef3f2; --color-info:#2e90fa; --color-info-bg:#eff8ff;
  --sidebar-bg:#0f172a; --sidebar-text:#cbd5e1; --sidebar-text-muted:#94a3b8; --sidebar-hover-bg:rgba(148,163,184,.12); --sidebar-active-bg:rgba(79,107,237,.24); --sidebar-active-border:#8b9cf0; --sidebar-scrollbar-track:#0b1220; --sidebar-scrollbar-thumb:rgba(148,163,184,.28); --sidebar-scrollbar-thumb-hover:rgba(148,163,184,.42); --sidebar-border:rgba(148,163,184,.14);
  --page-bg:#f7f8fa; --surface:#ffffff; --surface-raised:#ffffff; --text-primary:#101828; --text-muted:#5a6678; --border-color:#edf0f4; --navbar-bg:#ffffff; --navbar-border:#edf0f4; --card-header-border:#edf0f4;
  --input-bg:#fbfcfd; --input-border:#e2e6ec; --input-text:#101828; --input-placeholder:#98a2b3;
  --table-bg:#ffffff; --table-header-bg:#fbfcfd; --table-header-text:#5a6678; --table-header-accent:none; --table-row-hover:#f7f9fc; --table-border:#edf0f4;
  --btn-on-primary-text:#ffffff; --btn-outline-hover-text:#ffffff; --badge-warning-text:#b54708;
  --auth-page-bg:linear-gradient(135deg,#0f172a 0%,#1b2545 100%); --auth-header-bg:linear-gradient(135deg,#4f6bed 0%,#8b9cf0 100%); --auth-container-shadow:0 24px 60px rgba(2,6,23,.45); --auth-tagline-text:#ffffff; --auth-tagline-shadow:none;
  --chart-grid:#eef0f3; --chart-tick:#98a2b3; --chart-legend:#5a6678; --chart-point-border:#ffffff; --chart-clicks:#4f6bed; --chart-clicks-fill:rgba(79,107,237,.07); --chart-tooltip-border:#4f6bed; --chart-tooltip-bg:rgba(16,24,40,.92);
  --shadow-sm:0 1px 2px rgba(16,24,40,.05); --shadow-md:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06); --shadow-lg:0 12px 32px rgba(16,24,40,.12);
}
html[data-theme="dark"]{
  --p-bg:#0f172a; --p-bg2:#1e293b; --p-bg3:#172033; --p-ctl:#1e293b; --p-total:#334155;
  --p-ink:#e2e8f0; --p-ink2:#94a3b8; --p-ink3:#64748b; --p-line:#334155; --p-line2:#475569;
  --p-accent:#8b9cf0; --p-accent-h:#a4b2f4; --p-accent-l:#232b4a; --p-accent-b:#46549b;
  --p-ok:#7dbf9a; --p-ok-s:rgba(34,197,94,.11); --p-ok-b:rgba(125,191,154,.30); --p-ok-t:#8fc6a6;
  --p-warn:#d8ab52; --p-warn-s:rgba(245,158,11,.11); --p-warn-b:rgba(216,171,82,.30); --p-warn-t:#d9bd7e;
  --p-bad:#e09595; --p-bad-s:rgba(239,68,68,.11); --p-bad-b:rgba(224,149,149,.30); --p-bad-t:#d6a3a3;
  --p-info:#79a6dd; --p-info-s:rgba(59,130,246,.12); --p-info-b:rgba(121,166,221,.32); --p-info-t:#a3bfdf;
  --p-ai:#a189cc; --p-ai-s:rgba(168,85,247,.12); --p-ai-b:rgba(161,137,204,.32); --p-ai-t:#c3afdf;
  --p-sh:0 1px 2px rgba(0,0,0,.30),0 1px 3px rgba(0,0,0,.24); --p-pop:0 16px 40px rgba(0,0,0,.5);

  --color-forest-dark:#a4b2f4; --color-forest:#8b9cf0; --color-forest-light:#a4b2f4; --color-bark:#46549b; --color-bark-dark:#64748b; --color-cream:#0f172a; --color-cream-dark:#172033;
  --color-white:#1e293b; --color-gray-100:#172033; --color-gray-200:#334155; --color-gray-300:#475569; --color-gray-600:#94a3b8; --color-gray-800:#e2e8f0; --color-black:#ffffff;
  --color-success:#7dbf9a; --color-success-bg:rgba(34,197,94,.11); --color-warning:#d8ab52; --color-warning-bg:rgba(245,158,11,.11); --color-error:#e09595; --color-error-bg:rgba(239,68,68,.11); --color-info:#79a6dd; --color-info-bg:rgba(59,130,246,.12);
  --page-bg:#0f172a; --surface:#1e293b; --surface-raised:#1e293b; --text-primary:#e2e8f0; --text-muted:#94a3b8; --border-color:#334155; --navbar-bg:#1e293b; --navbar-border:#334155; --card-header-border:#334155;
  --input-bg:#172033; --input-border:#475569; --input-text:#e2e8f0; --input-placeholder:#64748b;
  --table-bg:#1e293b; --table-header-bg:#1e293b; --table-header-text:#94a3b8; --table-header-accent:none; --table-row-hover:rgba(148,163,184,.10); --table-border:#334155;
  --btn-on-primary-text:#0f172a; --btn-outline-hover-text:#0f172a; --badge-warning-text:#d9bd7e;
  --auth-page-bg:linear-gradient(135deg,#0b1220 0%,#0f172a 100%); --auth-header-bg:linear-gradient(135deg,#232b4a 0%,#46549b 100%); --auth-container-shadow:0 24px 60px rgba(0,0,0,.6); --auth-tagline-text:#e2e8f0; --auth-tagline-shadow:none;
  --chart-grid:#334155; --chart-tick:#64748b; --chart-legend:#94a3b8; --chart-point-border:#1e293b; --chart-clicks:#7d8fe0; --chart-clicks-fill:rgba(125,143,224,.12); --chart-tooltip-border:#8b9cf0; --chart-tooltip-bg:rgba(15,23,42,.95);
  --shadow-sm:0 1px 2px rgba(0,0,0,.32); --shadow-md:0 1px 2px rgba(0,0,0,.30),0 1px 3px rgba(0,0,0,.24); --shadow-lg:0 16px 40px rgba(0,0,0,.5);
}

/* ═══════════ Base type (Polaris prod: Inter Variable; content body 14) ═══════════ */
html body{font-family:var(--font-family);font-size:14px;line-height:1.5;color:var(--p-ink);background:var(--p-bg);-webkit-font-smoothing:antialiased;}
html body code, html body pre, html body .mono, html body .click-id, html body .token-chip{font-family:var(--pm);font-variant-numeric:tabular-nums;letter-spacing:0;}
html body a{color:var(--p-accent);} html body a:hover{color:var(--p-accent-h);}

/* ═══════════ Shell — values read from v3.fluxadtech.com computed styles (2026-09-03) ═══════════
   header 64px, bg #fbfcfd, border-bottom 1px #edf0f4, shadow 0 1px 2px rgba(0,0,0,.05), padding 0 24px
   brand img 32px r8 · brand 14/700 · page title 20/700 lh28 · time chip mono 12/700 #175cd3
   nav button 14/500 #5a6678, 6px 12px, r8, h32, gap 6, icon 16 · active 600 #4f6bed on #eef1fe · row gap 4, 0 16px
   primary button 14/500 #fff on #4f6bed r8 6px 12px h32 · input r8 1px #edf0f4 white 6px 12px 13px h32 */
html body .sidebar, html body .navbar, html body .mobile-menu-toggle{display:none!important;}
html body .main-content{margin-left:0!important;min-height:100vh;}
html body .polaris-shell{position:sticky;top:0;z-index:90;}
html body .polaris-appbar{display:flex;align-items:center;gap:12px;padding:0 24px;height:64px;background:var(--p-ctl);border-bottom:1px solid var(--p-line);box-shadow:0 1px 2px rgba(0,0,0,.05);}
html body .polaris-appbar .pb{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--p-ink);}
html body .polaris-appbar .pb img{width:32px;height:32px;border-radius:8px;display:block;}
html body .polaris-appbar .pb b{display:block;font-size:14px;font-weight:700;line-height:20px;white-space:nowrap;}
html body .polaris-appbar .pb small{display:none;}
html body .polaris-appbar .pt{font-size:20px;font-weight:700;line-height:28px;color:var(--p-ink);margin-left:12px;white-space:nowrap;}
html body .polaris-appbar .ptime{font-family:var(--pm);font-size:12px;font-weight:700;color:var(--p-info-t);display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;background:var(--p-info-s);margin-left:4px;}
html body .polaris-appbar .sp{flex:1;}
html body .polaris-appbar .pc{display:flex;align-items:center;gap:8px;}
html body .polaris-appbar .pc .theme-select{margin:0;min-width:0;height:32px;padding:0 28px 0 12px;font-size:13px;font-weight:500;color:var(--p-ink2);background-color:var(--p-bg2);border:1px solid var(--p-line);border-radius:8px;font-family:var(--font-family);background-position:right 9px center;}
html body .polaris-appbar .pc .navbar-logout-btn{margin:0;display:inline-flex;align-items:center;gap:6px;height:32px;background:var(--p-bg2);border:1px solid var(--p-line);border-radius:8px;padding:0 12px;font-size:13px;color:var(--p-ink2);font-weight:500;text-decoration:none;}
html body .polaris-appbar .pc .navbar-logout-btn:hover{background:var(--p-bg3);color:var(--p-ink);}
html body .polaris-appbar .pc .navbar-avatar{width:32px;height:32px;border-radius:8px;background:var(--p-accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;margin:0;}
html body .polaris-lang{display:inline-flex;align-items:center;gap:2px;height:32px;border-radius:8px;background:var(--p-bg3);padding:0 6px;font-size:12px;font-weight:600;margin:0;}
html body .polaris-lang button{appearance:none;border:0;background:transparent;color:var(--p-ink3);padding:4px 5px;cursor:pointer;font:inherit;font-weight:600;letter-spacing:.02em;}
html body .polaris-lang button.on{color:var(--p-accent);}
html body .polaris-lang button + button::before{content:"/";color:var(--p-ink3);font-weight:400;margin-right:6px;}
html body .polaris-nav{display:flex;align-items:center;gap:4px;padding:8px 16px;background:var(--p-bg2);border-bottom:1px solid var(--p-line);flex-wrap:wrap;}
html body .polaris-nav a.np{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;height:32px;border-radius:8px;font-size:14px;font-weight:500;line-height:20px;color:var(--p-ink2);text-decoration:none;white-space:nowrap;transition:background .15s,color .15s;}
html body .polaris-nav a.np:hover{background:var(--p-bg3);color:var(--p-ink);}
html body .polaris-nav a.np.on{background:var(--p-accent-l);color:var(--p-accent);font-weight:600;}
html body .polaris-nav a.np::before{content:"";width:16px;height:16px;flex:0 0 16px;background:currentColor;opacity:.9;-webkit-mask:var(--pi) center/contain no-repeat;mask:var(--pi) center/contain no-repeat;}
html body .polaris-nav a.np{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/></svg>");}
html body .polaris-nav a.np[href*="page=dashboard"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='9' rx='1'/><rect x='14' y='3' width='7' height='5' rx='1'/><rect x='14' y='12' width='7' height='9' rx='1'/><rect x='3' y='16' width='7' height='5' rx='1'/></svg>");}
html body .polaris-nav a.np[href*="page=visitors"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M22 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>");}
html body .polaris-nav a.np[href*="page=conversions"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m9 12 2 2 4-4'/></svg>");}
html body .polaris-nav a.np[href*="page=campaigns"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m3 11 18-5v12L3 14v-3z'/><path d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/></svg>");}
html body .polaris-nav a.np[href*="page=traffic-sources"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4.9 19.1C1 15.2 1 8.8 4.9 4.9'/><path d='M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5'/><circle cx='12' cy='12' r='2'/><path d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5'/><path d='M19.1 4.9C23 8.8 23 15.1 19.1 19.1'/></svg>");}
html body .polaris-nav a.np[href*="page=offers"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12.6 2.6a2 2 0 0 0-1.4-.6H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l9.2 9.2a2 2 0 0 0 2.8 0l7.2-7.2a2 2 0 0 0 0-2.8Z'/><circle cx='7.5' cy='7.5' r='1'/></svg>");}
html body .polaris-nav a.np[href*="page=landing-pages"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/><path d='M14 2v5h5'/><path d='M8 13h8'/><path d='M8 17h8'/></svg>");}
html body .polaris-nav a.np[href*="page=networks"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>");}
html body .polaris-nav a.np[href*="page=click-lookup"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");}
html body .polaris-nav a.np[href*="page=postback"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/><path d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/></svg>");}
html body .polaris-nav a.np[href*="page=kuma-api"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m16 18 6-6-6-6'/><path d='m8 6-6 6 6 6'/></svg>");}
html body .polaris-nav a.np[href*="page=settings"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/></svg>");}
html body .polaris-nav a.np[href*="page=short-links"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 17H7A5 5 0 0 1 7 7h2'/><path d='M15 7h2a5 5 0 1 1 0 10h-2'/><path d='M8 12h8'/></svg>");}
html body .polaris-nav a.np[href*="page=billing"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/><path d='M8 8h8'/><path d='M8 12h8'/><path d='M8 16h5'/></svg>");}
html body .polaris-nav a.np[href$="index.php"]{--pi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='9' rx='1'/><rect x='14' y='3' width='7' height='5' rx='1'/><rect x='14' y='12' width='7' height='9' rx='1'/><rect x='3' y='16' width='7' height='5' rx='1'/></svg>");}

html body .polaris-nav .sep{width:1px;height:18px;background:var(--p-line);margin:0 6px;}

/* ═══════════ Content (Polaris prod: page padding 24, panel gap 16) ═══════════ */
html body .content-container{padding:24px;max-width:none;display:flex;flex-direction:column;gap:16px;}
html body .page-header{margin-bottom:0;}
html body .page-title{font-size:20px;font-weight:700;color:var(--p-ink);margin:0;line-height:28px;}
html body .page-description{font-size:12px;color:var(--p-ink3);margin:2px 0 0;}
html body .content-container img[src*="/assets/images/"]{display:none!important;}
html body .empty-state, html body [class*="empty"]{color:var(--p-ink2);font-size:13px;}

/* Panels (prod: rounded-2xl=14, border line-primary, shadow-sm, p-5) */
html body .card{background:var(--p-bg2);border:1px solid var(--p-line);border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:20px;margin-bottom:0;}
html body .card-header{margin:-20px -20px 16px;padding:14px 20px;border-bottom:1px solid var(--p-line);display:flex;align-items:center;gap:10px;justify-content:space-between;}
html body .card-title{font-size:16px;font-weight:700;color:var(--p-ink);margin:0;line-height:1.4;}
html body .card-body{color:var(--p-ink);}

/* KPI cards (prod: rounded-2xl px-5 py-4, label 11/600 caps .55px #98a2b3 mb-1.5, value 24/700 mono lh30, delta 11) */
html body .dashboard-stats-grid{gap:16px!important;margin-bottom:0!important;}
html body .dashboard-stats-grid .card{border-radius:14px;padding:16px 20px!important;}
html body .dashboard-stats-grid .card > div:nth-child(1){font-size:11px!important;color:var(--p-ink3)!important;text-transform:uppercase;letter-spacing:.55px;font-weight:600;margin-bottom:6px!important;}
html body .dashboard-stats-grid .card > div:nth-child(2){font-family:var(--pm);font-size:24px!important;font-weight:700!important;line-height:30px;font-variant-numeric:tabular-nums;}
html body .dashboard-stats-grid .card > div:nth-child(3){font-size:11px!important;color:var(--p-ink3)!important;margin-top:6px;}
html body .dashboard-stats-grid .card > div:nth-child(3) img{display:none;}
html body span[style*="color: #666"], html body div[style*="color: #666"]{color:var(--p-ink2)!important;}
html body .dashboard-quick-actions{display:flex;align-items:center;gap:8px;background:var(--p-bg2);border:1px solid var(--p-line);border-radius:14px;padding:12px 20px;box-shadow:0 1px 2px rgba(0,0,0,.05);}
html body .dashboard-quick-actions img{display:none!important;}
html body .dashboard-quick-actions-label{font-size:12px;color:var(--p-ink3);font-weight:600;}

/* Buttons (prod primary: 14/500 white on accent, r8, 6px 12px, h32) */
html body .btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;min-height:32px;font-size:14px;font-weight:500;border-radius:8px;border:1px solid transparent;line-height:20px;transition:background .15s,color .15s,border-color .15s;}
html body .btn-primary{background:var(--p-accent);border-color:var(--p-accent);color:#fff;}
html body .btn-primary:hover{background:var(--p-accent-h);border-color:var(--p-accent-h);color:#fff;}
html body .btn-secondary, html body .btn-outline{background:var(--p-bg2);border:1px solid var(--p-line);color:var(--p-ink2);}
html body .btn-secondary:hover, html body .btn-outline:hover{background:var(--p-bg3);color:var(--p-ink);}
html body .btn-sm{padding:4px 10px;min-height:24px;font-size:12px;border-radius:6px;}
html body .btn-danger{background:var(--p-bad-s);border-color:var(--p-bad-b);color:var(--p-bad-t);}

/* Chips */
html body .badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;font-size:11px;font-weight:600;border-radius:999px;text-transform:none;letter-spacing:0;}
html body .badge-success{background:var(--p-ok-s);color:var(--p-ok-t);}
html body .badge-warning{background:var(--p-warn-s);color:var(--p-warn-t);}
html body .badge-error{background:var(--p-bad-s);color:var(--p-bad-t);}
html body .badge-info{background:var(--p-info-s);color:var(--p-info-t);}

/* Tables (prod CampaignsPage: thead surface-control 12/600 caps, rows 44, row-alt/hover tokens) */
html body .table-wrapper{border:1px solid var(--p-line);border-radius:10px;overflow:auto;background:var(--p-bg2);}
html body .card > .table-wrapper, html body .card-body > .table-wrapper{border:0;border-radius:0;margin:0 -20px -20px;width:calc(100% + 40px);}
html body .table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;background:var(--p-bg2);}
html body .table thead th{background:var(--p-ctl);color:var(--p-ink2);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--p-line2);font-size:12px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;box-shadow:none;}
html body .table tbody td{padding:10px 12px;height:44px;border-bottom:1px solid var(--p-line);vertical-align:middle;}
html body .table tbody tr:nth-child(even) td{background:#fcfcfd;}
html[data-theme="dark"] body .table tbody tr:nth-child(even) td{background:rgba(148,163,184,.05);}
html body .table tbody tr:hover td{background:var(--p-bg3);}
html body .table tbody tr:last-child td{border-bottom:0;}
html body .table td.numeric, html body .table td[data-numeric], html body .table td[style*="text-align: right"], html body .table th[style*="text-align: right"]{font-family:var(--pm);font-variant-numeric:tabular-nums;}

/* Forms (prod input: r8, 1px #edf0f4, white, 6px 12px, 13px, h32) */
html body label, html body .form-label{font-size:12px;font-weight:600;color:var(--p-ink2);}
html body .form-control, html body input[type="text"], html body input[type="password"], html body input[type="email"], html body input[type="number"], html body input[type="url"], html body input[type="search"], html body input[type="date"], html body select, html body textarea{background:var(--p-bg2);border:1px solid var(--p-line);border-radius:8px;padding:6px 12px;min-height:32px;font-size:13px;color:var(--p-ink);font-family:var(--font-family);}
html body .form-control:focus, html body input:focus, html body select:focus, html body textarea:focus{outline:2px solid var(--p-accent);outline-offset:1px;border-color:var(--p-accent);box-shadow:none;}
html body input::placeholder, html body textarea::placeholder{color:var(--p-ink3);}

/* Modals */
html body .modal-content, html body .modal, html body .modal-dialog{border-radius:14px;box-shadow:0 12px 32px rgba(16,24,40,.14);border:1px solid var(--p-line);}
html body .modal-footer{background:var(--p-ctl);border-top:1px solid var(--p-line);border-radius:0 0 14px 14px;}

/* Login page */
html body.auth-page .login-header img, html body.auth-page .login-header .retro-text{display:none!important;}
html body.auth-page .login-header{padding:28px 20px 22px;}
html body.auth-page .polaris-auth-brand{display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;}
html body.auth-page .polaris-auth-brand img{width:56px;height:56px;border-radius:16px;box-shadow:0 8px 24px rgba(2,6,23,.35);}
html body.auth-page .polaris-auth-brand strong{font-size:20px;font-weight:700;}
html body.auth-page .polaris-auth-brand small{font-size:12px;opacity:.85;}
html body.auth-page .login-container{border-radius:14px;overflow:hidden;}
html body.auth-page .polaris-lang{position:fixed;right:16px;top:16px;z-index:50;}
html body .polaris-brand{display:none;}
