/* ============================================================================
   Make It Marketing — Client Portal (demo)
   Custom design system. No framework. Neon-lime + ink on warm paper.
   ========================================================================== */

:root{
  /* brand */
  --lime:        #c7fb46;
  --lime-bright: #d4ff5a;
  --lime-deep:   #a9e614;
  --ink:         #0e0f0d;
  --ink-2:       #17191a;
  --ink-3:       #23272a;
  --paper:       #f4f1e9;   /* warm cream page bg */
  --card:        #ffffff;
  --line:        #e7e3d8;   /* warm hairline */
  --line-2:      #efece3;

  /* text */
  --tx:          #14151a;
  --tx-2:        #5b5f66;
  --tx-3:        #8a8f98;
  --tx-inv:      #f6f7f2;

  /* signal */
  --good:        #1f9d57;
  --good-bg:     #e7f6ec;
  --warn:        #c67c0b;
  --warn-bg:     #fbf0db;
  --bad:         #d64545;
  --bad-bg:      #fbe9e9;
  --info:        #2f6df0;
  --info-bg:     #e8f0ff;

  /* channel accents */
  --ch-ads:      #0e0f0d;
  --ch-seo:      #2f6df0;
  --ch-lsa:      #7b4ddb;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow:    0 1px 2px rgba(15,17,10,.04), 0 8px 24px -12px rgba(15,17,10,.14);
  --shadow-lg: 0 24px 60px -24px rgba(15,17,10,.28);
  --sidebar: 248px;
  --maxw: 1280px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--paper);
  color:var(--tx);
  font-size:14px;
  line-height:1.5;
  letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,.display{ font-family:"Space Grotesk","Inter",sans-serif; letter-spacing:-0.02em; margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; }
.num{ font-variant-numeric:tabular-nums; }
.mono{ font-family:"Space Grotesk",ui-monospace,monospace; font-variant-numeric:tabular-nums; }
svg.ico{ width:16px; height:16px; flex:none; display:inline-block; vertical-align:-2px; }

/* ---- real logo (make it. MARKETING) --------------------------------------- */
.brand-logo{ display:inline-block; line-height:0; }
.brand-logo img{ height:40px; width:auto; display:block; border-radius:10px; }
.brand-logo.sm img{ height:30px; border-radius:8px; }
/* Sidebar: larger + centered logo badge. */
.sidebar .brand-logo{ display:block; text-align:center; }
.sidebar .brand-logo img{ height:62px; border-radius:12px; margin:0 auto; }

/* ---- brand lockup (legacy CSS wordmark, retained for favicon/login echoes) - */
.brand{ display:inline-flex; align-items:center; gap:10px; user-select:none; }
.brand-chip{
  display:inline-flex; align-items:center;
  background:var(--lime);
  color:var(--ink);
  font-family:"Space Grotesk",sans-serif;
  font-weight:700; font-size:19px; line-height:1;
  padding:7px 12px 8px;
  letter-spacing:-0.04em;
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);
}
.brand-chip .dot{ color:var(--ink); }
.brand-sub{
  font-family:"Space Grotesk",sans-serif; font-weight:600;
  font-size:9.5px; letter-spacing:.42em; color:var(--tx-2);
  padding-left:1px;
}
.brand.on-dark .brand-sub{ color:rgba(255,255,255,.62); }
.brand.sm .brand-chip{ font-size:16px; padding:5px 9px 6px; }
.brand.sm .brand-sub{ font-size:8px; letter-spacing:.34em; }

/* ============================================================================
   App shell
   ========================================================================== */
.app{ display:flex; min-height:100vh; }

.sidebar{
  width:var(--sidebar); flex:0 0 var(--sidebar);
  background:var(--ink); color:var(--tx-inv);
  position:sticky; top:0; height:100vh;
  display:flex; flex-direction:column;
  padding:22px 16px;
  z-index:40;
}
.sidebar .brand, .sidebar .brand-logo{ padding:2px 6px 22px; }
.side-group{ margin-top:14px; }
.side-group-label{
  font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.34); padding:0 12px 8px;
}
.nav-item{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:11px;
  color:rgba(255,255,255,.72); font-weight:500; font-size:13.5px;
  transition:background .15s var(--ease), color .15s var(--ease);
  position:relative;
}
.nav-item:hover{ background:rgba(255,255,255,.07); color:#fff; }
.nav-item.active{ background:var(--lime); color:var(--ink); font-weight:600; }
.nav-item.active .ico{ opacity:1; }
.nav-item .ico{ width:18px; height:18px; flex:0 0 18px; opacity:.85; }
.nav-item .beta{
  margin-left:auto; font-size:8.5px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; background:rgba(255,255,255,.14); color:#fff;
  padding:2px 6px; border-radius:6px;
}
.nav-item.active .beta{ background:rgba(0,0,0,.14); color:var(--ink); }
.sidebar-foot{ margin-top:auto; padding:14px 10px 2px; border-top:1px solid rgba(255,255,255,.08); }
.sidebar-foot .who{ font-size:12px; color:rgba(255,255,255,.6); }
.sidebar-foot .who b{ color:#fff; font-weight:600; }
.sidebar-foot .signout{ font-size:12px; color:rgba(255,255,255,.4); margin-top:3px; }
.sidebar-foot .signout:hover{ color:#fff; }

/* main column */
.main{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.topbar{
  display:none; /* desktop uses sidebar; mobile shows this */
}
.content{ width:100%; max-width:var(--maxw); margin:0 auto; padding:30px 34px 72px; }

/* mobile bottom tab bar */
.tabbar{ display:none; }

/* ============================================================================
   Page header
   ========================================================================== */
.page-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:22px; }
.page-head .eyebrow{ font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--tx-3); margin-bottom:6px; display:flex; align-items:center; gap:8px; }
.page-head h1{ font-size:27px; font-weight:600; }
.page-head p.sub{ color:var(--tx-2); margin:7px 0 0; max-width:62ch; font-size:13px; }

.crumbs{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--tx-3); margin-bottom:16px; }
.crumbs a:hover{ color:var(--tx); }
.crumbs .sep{ opacity:.5; }

/* ============================================================================
   Buttons / controls
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line); background:var(--card); color:var(--tx);
  padding:9px 15px; border-radius:11px; font-weight:600; font-size:13px;
  transition:all .15s var(--ease);
}
.btn:hover{ border-color:#d8d3c6; box-shadow:var(--shadow); }
.btn.dark{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.dark:hover{ background:var(--ink-2); }
.btn.lime{ background:var(--lime); border-color:var(--lime); color:var(--ink); }
.btn.lime:hover{ background:var(--lime-bright); }
.btn.sm{ padding:7px 11px; font-size:12px; border-radius:9px; }

.select, .input{
  appearance:none; background:var(--card); border:1px solid var(--line);
  border-radius:10px; padding:8px 30px 8px 12px; font-size:13px; font-weight:500; color:var(--tx);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b5f66' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center;
}
.input{ background-image:none; padding:8px 12px; }
.seg{ display:inline-flex; background:var(--line-2); border-radius:11px; padding:3px; gap:2px; }
.seg button{
  border:0; background:transparent; color:var(--tx-2); font-weight:600; font-size:12.5px;
  padding:6px 13px; border-radius:8px; transition:all .15s var(--ease);
}
.seg button.on{ background:var(--card); color:var(--tx); box-shadow:0 1px 2px rgba(0,0,0,.06); }

/* ============================================================================
   Cards / KPI
   ========================================================================== */
.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow); }
.card-p{ padding:20px; }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; border-bottom:1px solid var(--line-2); }
.card-head h3{ font-size:15px; font-weight:600; }
.card-head .hint{ font-size:12px; color:var(--tx-3); }

.kpi-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:22px; }
.kpi{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px; box-shadow:var(--shadow); position:relative; overflow:hidden; }
.kpi .k-label{ font-size:12px; color:var(--tx-2); font-weight:500; display:flex; align-items:center; gap:7px; }
.kpi .k-val{ font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:30px; letter-spacing:-0.03em; margin-top:9px; line-height:1; }
.kpi .k-val small{ font-size:16px; color:var(--tx-3); font-weight:500; }
.kpi .k-foot{ display:flex; align-items:center; gap:8px; margin-top:11px; font-size:12px; color:var(--tx-2); }
.kpi .spark{ position:absolute; right:14px; bottom:12px; width:72px; height:30px; opacity:.9; }
.kpi.hero{ background:var(--ink); color:#fff; border-color:var(--ink); }
.kpi.hero .k-label{ color:rgba(255,255,255,.66); }
.kpi.hero .k-val{ color:#fff; }
.kpi.hero .k-val small{ color:rgba(255,255,255,.5); }
.kpi.hero .k-foot{ color:rgba(255,255,255,.66); }

.delta{ display:inline-flex; align-items:center; gap:3px; font-weight:600; font-size:12px; padding:2px 7px; border-radius:7px; }
.delta.up{ color:var(--good); background:var(--good-bg); }
.delta.down{ color:var(--bad); background:var(--bad-bg); }
.delta.flat{ color:var(--tx-2); background:var(--line-2); }
.kpi.hero .delta.up{ background:rgba(199,251,70,.16); color:var(--lime); }

/* ============================================================================
   Tables
   ========================================================================== */
.tbl-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table.tbl{ width:100%; border-collapse:collapse; font-size:13px; }
.tbl thead th{
  text-align:left; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--tx-3); padding:12px 16px; border-bottom:1px solid var(--line); white-space:nowrap; background:#fcfbf7;
}
.tbl thead th.r, .tbl td.r{ text-align:right; }
.tbl tbody td{ padding:14px 16px; border-bottom:1px solid var(--line-2); vertical-align:middle; }
.tbl tbody tr:last-child td{ border-bottom:0; }
.tbl tbody tr.clickable{ cursor:pointer; transition:background .12s var(--ease); }
.tbl tbody tr.clickable:hover{ background:#fbfdf4; }
.tbl .acct{ display:flex; align-items:center; gap:12px; }
.tbl .acct .logo{ width:34px; height:34px; border-radius:9px; flex:0 0 34px; display:flex; align-items:center; justify-content:center; font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:13px; color:#fff; }
.tbl .acct .nm{ font-weight:600; color:var(--tx); }
.tbl .acct .mt{ font-size:11.5px; color:var(--tx-3); }
.t-strong{ font-weight:600; }

/* ============================================================================
   Badges / pills
   ========================================================================== */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.badge.good{ background:var(--good-bg); color:var(--good); }
.badge.warn{ background:var(--warn-bg); color:var(--warn); }
.badge.bad{ background:var(--bad-bg); color:var(--bad); }
.badge.neutral{ background:var(--line-2); color:var(--tx-2); }
.badge.ink{ background:var(--ink); color:#fff; }
.dot{ width:7px; height:7px; border-radius:50%; display:inline-block; }
.dot.good{ background:var(--good); } .dot.warn{ background:var(--warn); } .dot.bad{ background:var(--bad); } .dot.off{ background:#c7c2b4; }

.chip{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; padding:3px 9px; border-radius:7px; border:1px solid var(--line); background:#fff; color:var(--tx-2); }
.chip .cdot{ width:7px; height:7px; border-radius:2px; }
.chip.ads .cdot{ background:var(--ch-ads); } .chip.seo .cdot{ background:var(--ch-seo); } .chip.lsa .cdot{ background:var(--ch-lsa); }
.chip.off{ opacity:.38; }

/* ============================================================================
   Tabs (client detail)
   ========================================================================== */
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin:22px 0 24px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tab{
  position:relative; padding:11px 14px; font-weight:600; font-size:13.5px; color:var(--tx-3);
  white-space:nowrap; border:0; background:transparent; transition:color .15s var(--ease);
  display:inline-flex; align-items:center; gap:8px;
}
.tab:hover{ color:var(--tx); }
.tab.on{ color:var(--tx); }
.tab.on::after{ content:""; position:absolute; left:8px; right:8px; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--lime); }
.tab .tcount{ font-size:11px; background:var(--line-2); color:var(--tx-2); padding:1px 7px; border-radius:999px; font-weight:700; }
.tab.on .tcount{ background:var(--ink); color:#fff; }

/* ============================================================================
   Charts
   ========================================================================== */
.chart{ width:100%; display:block; }
.legend{ display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--tx-2); }
.legend .li{ display:inline-flex; align-items:center; gap:7px; }
.legend .sw{ width:11px; height:11px; border-radius:3px; }

.bars{ display:flex; flex-direction:column; gap:12px; }
.bar-row{ display:grid; grid-template-columns:150px 1fr auto; align-items:center; gap:14px; font-size:13px; }
.bar-track{ height:10px; background:var(--line-2); border-radius:999px; overflow:hidden; }
.bar-fill{ height:100%; border-radius:999px; }

/* rank movement */
.rank-move{ display:inline-flex; align-items:center; gap:3px; font-weight:600; font-size:12px; }
.rank-move.up{ color:var(--good); } .rank-move.down{ color:var(--bad); } .rank-move.flat{ color:var(--tx-3); }
.rankpill{ display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:26px; padding:0 8px; border-radius:8px; font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:13px; }
.rankpill.top3{ background:var(--lime); color:var(--ink); }
.rankpill.top10{ background:#eef7d8; color:#5c7a08; }
.rankpill.rest{ background:var(--line-2); color:var(--tx-2); }

/* ============================================================================
   Call / form log
   ========================================================================== */
.log{ display:flex; flex-direction:column; }
.log-row{ display:grid; grid-template-columns:auto 1fr auto; gap:14px; padding:15px 20px; border-bottom:1px solid var(--line-2); align-items:start; }
.log-row:last-child{ border-bottom:0; }
.log-ava{ width:38px; height:38px; border-radius:10px; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:"Space Grotesk",sans-serif; font-size:13px; flex:0 0 38px; }
.log-main .nm{ font-weight:600; }
.log-main .meta{ font-size:12px; color:var(--tx-3); margin-top:2px; display:flex; gap:10px; flex-wrap:wrap; }
.log-main .snip{ font-size:12.5px; color:var(--tx-2); margin-top:8px; background:#fbfaf5; border:1px solid var(--line-2); border-left:3px solid var(--line); padding:9px 12px; border-radius:0 8px 8px 0; font-style:italic; }
.log-side{ text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.score{ font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:14px; padding:3px 9px; border-radius:8px; }
.score.hi{ background:var(--good-bg); color:var(--good); } .score.mid{ background:var(--warn-bg); color:var(--warn); } .score.lo{ background:var(--bad-bg); color:var(--bad); }

/* ============================================================================
   Assistant
   ========================================================================== */
.chat{ max-width:820px; margin:0 auto; }
.msg{ display:flex; gap:12px; margin-bottom:18px; }
.msg .av{ width:32px; height:32px; border-radius:9px; flex:0 0 32px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; }
.msg.bot .av{ background:var(--lime); color:var(--ink); font-family:"Space Grotesk",sans-serif; }
.msg.me .av{ background:var(--ink); color:#fff; }
.msg .bubble{ background:var(--card); border:1px solid var(--line); border-radius:4px 16px 16px 16px; padding:14px 16px; font-size:13.5px; box-shadow:var(--shadow); }
.msg.me{ flex-direction:row-reverse; }
.msg.me .bubble{ background:var(--ink); color:#fff; border-color:var(--ink); border-radius:16px 4px 16px 16px; }
.suggest{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.suggest .s{ border:1px solid var(--line); background:#fff; border-radius:11px; padding:12px 14px; font-size:13px; max-width:240px; transition:all .15s var(--ease); }
.suggest .s:hover{ border-color:var(--lime-deep); box-shadow:var(--shadow); }
.suggest .s b{ display:block; font-weight:600; margin-bottom:2px; }
.suggest .s span{ color:var(--tx-3); font-size:12px; }
.composer{ display:flex; gap:10px; margin-top:22px; position:sticky; bottom:16px; }
.composer input{ flex:1; background:var(--card); border:1px solid var(--line); border-radius:13px; padding:14px 16px; font-size:14px; box-shadow:var(--shadow); }

/* ============================================================================
   Misc
   ========================================================================== */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.stack-gap{ display:flex; flex-direction:column; gap:20px; }
.muted{ color:var(--tx-2); }
.tiny{ font-size:11.5px; }
.flex{ display:flex; } .between{ justify-content:space-between; } .center{ align-items:center; } .gap{ gap:12px; } .wrap{ flex-wrap:wrap; }
.mt-0{ margin-top:0; } .mt{ margin-top:16px; } .mt-l{ margin-top:26px; }
.right{ text-align:right; } .nowrap{ white-space:nowrap; }
.empty{ text-align:center; padding:52px 20px; color:var(--tx-3); }
.empty .big{ font-size:15px; color:var(--tx-2); font-weight:600; margin-bottom:5px; }

.coming{ display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:600; color:var(--info); background:var(--info-bg); padding:4px 10px; border-radius:999px; }
.src{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; color:var(--tx-3); border:1px dashed var(--line); padding:3px 9px; border-radius:7px; }

.notice{ background:#fff; border:1px solid var(--line); border-left:3px solid var(--lime-deep); border-radius:0 12px 12px 0; padding:13px 16px; font-size:13px; color:var(--tx-2); }
.notice b{ color:var(--tx); }

/* progress ring-ish bar for pacing */
.pace{ display:flex; align-items:center; gap:10px; }
.pace-track{ width:78px; height:8px; border-radius:999px; background:var(--line-2); overflow:hidden; }
.pace-fill{ height:100%; border-radius:999px; background:var(--ink); }

/* demo banner */
.demo-banner{
  background:linear-gradient(90deg, var(--lime), var(--lime-bright));
  color:var(--ink); text-align:center; font-size:12.5px; font-weight:600;
  padding:7px 16px; letter-spacing:-0.01em;
}
.demo-banner b{ font-weight:700; }

/* ============================================================================
   Login
   ========================================================================== */
.login-wrap{ min-height:100vh; display:grid; grid-template-columns:1.05fr .95fr; }
.login-left{ background:var(--ink); color:#fff; padding:48px 56px; display:flex; flex-direction:column; }
.login-left .brand{ margin-bottom:auto; }
.login-hero h1{ font-size:44px; font-weight:600; line-height:1.04; letter-spacing:-0.03em; }
.login-hero h1 .hl{ background:var(--lime); color:var(--ink); padding:0 8px; box-shadow:8px 0 0 var(--lime), -4px 0 0 var(--lime); }
.login-hero p{ color:rgba(255,255,255,.64); max-width:40ch; margin-top:18px; font-size:15px; }
.login-stats{ display:flex; gap:34px; margin-top:34px; }
.login-stats .s .v{ font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:28px; color:var(--lime); }
.login-stats .s .l{ font-size:12px; color:rgba(255,255,255,.55); margin-top:2px; }
.login-right{ display:flex; align-items:center; justify-content:center; padding:40px; }
.login-card{ width:100%; max-width:380px; }
.login-card h2{ font-size:22px; font-weight:600; }
.login-card .lbl{ font-size:12px; font-weight:600; color:var(--tx-2); margin:16px 0 6px; display:block; }
.login-card .input{ width:100%; }

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width:1080px){
  .kpi-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .sidebar{ display:none; }
  .content{ padding:18px 16px 96px; }
  .topbar{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    position:sticky; top:0; z-index:30;
    background:var(--ink); color:#fff; padding:12px 16px;
  }
  .topbar .t-right{ display:flex; align-items:center; gap:14px; }
  .topbar .t-date{ font-size:11px; color:rgba(255,255,255,.5); }
  .tabbar{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:50;
    background:var(--ink); border-top:1px solid rgba(255,255,255,.08);
    padding:7px 6px calc(7px + env(safe-area-inset-bottom,0));
    justify-content:space-around;
  }
  .tabbar a{ display:flex; flex-direction:column; align-items:center; gap:3px; color:rgba(255,255,255,.55); font-size:10px; font-weight:600; padding:4px 10px; border-radius:10px; }
  .tabbar a.active{ color:var(--lime); }
  .tabbar a .ico{ width:21px; height:21px; }
  .page-head h1{ font-size:22px; }
  .grid-2{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .kpi-grid{ grid-template-columns:1fr 1fr; gap:11px; }
  .kpi .k-val{ font-size:25px; }
  .bar-row{ grid-template-columns:110px 1fr auto; gap:10px; }
  .login-wrap{ grid-template-columns:1fr; }
  .login-left{ padding:30px 26px; min-height:auto; }
  .login-hero h1{ font-size:32px; }
  .login-stats{ gap:22px; }
}
@media (max-width:460px){
  .kpi-grid{ grid-template-columns:1fr 1fr; }
  .page-head{ gap:12px; }
  .card-head{ padding:14px 16px; }
  .tbl thead th, .tbl tbody td{ padding:11px 12px; }
}
