/* ============================================================================
 * Incrowd console — premium light design system. Built for clarity (SMM users):
 * overview-first pages, actions in side drawers, restrained gradient, soft depth.
 * Fonts: Geist (display) · Inter (UI/body).
 * ==========================================================================*/
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#fbfcfe;            /* app background, a hair off pure white */
  --surface:#ffffff;
  --surface2:#f5f7fb;      /* subtle panel fill */
  --surface3:#eef1f7;
  --ink:#0d0f16;
  --ink2:#3a3f4f;
  --muted:#646b80;
  --muted2:#9398ab;
  --line:#eceef4;
  --line2:#e1e4ee;
  --cyan:#0bb6c8; --cyan2:#22d3e6;
  --violet:#7b4dff; --violet2:#9a78ff; --blue:#5b6cff;
  --ok:#0f9d54; --okbg:#e9f7ef;
  --warn:#b5740a; --warnbg:#fdf3e1;
  --err:#dd4444; --errbg:#fdecec;
  --grad:linear-gradient(115deg,#7b4dff,#5b6cff 50%,#22d3e6);
  --grad-soft:linear-gradient(135deg,rgba(123,77,255,.10),rgba(34,211,230,.08));
  --sh-sm:0 1px 2px rgba(13,15,22,.05);
  --sh:0 2px 4px rgba(13,15,22,.04),0 8px 24px -10px rgba(13,15,22,.12);
  --sh-md:0 12px 32px -14px rgba(13,15,22,.22);
  --sh-lg:0 30px 70px -24px rgba(13,15,22,.34);
  --ring:0 0 0 3.5px rgba(123,77,255,.16);
  --r:18px; --r2:14px; --rsm:10px;
  --ease:cubic-bezier(.22,1,.36,1); --ease2:cubic-bezier(.34,1.56,.64,1);
  --side:248px; --top:64px; --maxw:1200px;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
}
@property --ang{syntax:'<angle>';initial-value:0deg;inherits:false}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.55;letter-spacing:-.006em}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(820px 460px at 8% -10%,rgba(123,77,255,.07),transparent 58%),
    radial-gradient(720px 420px at 102% -6%,rgba(34,211,230,.06),transparent 55%)}
a{color:var(--violet);text-decoration:none;transition:color .2s var(--ease)}
a:hover{color:var(--violet2)}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit}
::placeholder{color:var(--muted2)}
::selection{background:rgba(123,77,255,.16)}
h1,h2,h3,h4,h5{font-family:'Geist','Inter',sans-serif;letter-spacing:-.025em;line-height:1.1;color:var(--ink);font-weight:700}
code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-thumb{background:#d3d7e3;border-radius:20px;border:2px solid transparent;background-clip:content-box}
*::-webkit-scrollbar-thumb:hover{background:#bfc4d4;background-clip:content-box}

/* ---------- LOGO ---------- */
.logo{display:inline-flex;align-items:center}
.logo img{height:25px;width:auto;display:block}
.logo.lg img{height:38px}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;
  border-radius:11px;font-family:'Geist','Inter',sans-serif;font-size:13.5px;font-weight:600;letter-spacing:.002em;
  border:1px solid transparent;white-space:nowrap;position:relative;isolation:isolate;
  transition:transform .25s var(--ease),box-shadow .3s var(--ease),background .2s,border-color .2s,color .2s}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 10px 24px -10px rgba(123,77,255,.6)}
.btn-primary:hover{transform:translateY(-1.5px);box-shadow:0 16px 32px -10px rgba(123,77,255,.7)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{background:var(--surface);color:var(--ink);border-color:var(--line2);box-shadow:var(--sh-sm)}
.btn-ghost:hover{background:var(--surface2);border-color:#d3d7e5;transform:translateY(-1.5px);box-shadow:var(--sh)}
.btn-sm{height:34px;padding:0 13px;font-size:12.5px;border-radius:9px}
.btn-icon{width:34px;height:34px;padding:0;border-radius:9px}
.btn:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none}
.btn-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}

/* ---------- LOGIN ---------- */
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative}
.login-wrap::after{content:"";position:absolute;width:560px;height:560px;border-radius:50%;z-index:-1;
  background:var(--grad-soft);filter:blur(40px);opacity:.7}
.login-card{width:100%;max-width:418px;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);
  border:1px solid var(--line);border-radius:24px;padding:40px 36px;box-shadow:var(--sh-lg);position:relative;overflow:hidden;
  animation:pop .5s var(--ease2) both}
.login-card::before{content:"";position:absolute;inset:0;border-radius:24px;padding:1px;pointer-events:none;
  background:linear-gradient(150deg,rgba(123,77,255,.55),transparent 38%,transparent 62%,rgba(34,211,230,.45));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.login-card .logo{margin-bottom:20px}
.login-card .sub{color:var(--muted);font-size:14px;margin:0 0 26px}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

/* ---------- APP SHELL ---------- */
.shell{display:grid;grid-template-columns:var(--side) 1fr;grid-template-rows:var(--top) 1fr;
  grid-template-areas:"side top" "side main";min-height:100vh}
.topbar{grid-area:top;display:flex;align-items:center;gap:14px;padding:0 26px;
  background:rgba(251,252,254,.8);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.topbar .crumb{font-size:13px;color:var(--muted2);font-weight:500}
.topbar .crumb b{color:var(--ink);font-weight:600}
.topbar .spacer{flex:1}
.tenant-chip{display:flex;align-items:center;gap:8px;padding:7px 13px;background:var(--surface);
  border:1px solid var(--line2);border-radius:11px;font-size:12.5px;color:var(--muted);box-shadow:var(--sh-sm)}
.tenant-chip b{color:var(--ink);font-weight:600}
.tenant-chip .pin{width:7px;height:7px;border-radius:50%;background:var(--grad)}
.roles{display:flex;gap:6px}
.role{font-size:9.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--violet);
  background:rgba(123,77,255,.09);border:1px solid rgba(123,77,255,.16);padding:4px 8px;border-radius:7px}

.sidebar{grid-area:side;background:var(--surface);border-right:1px solid var(--line);
  padding:16px 12px;display:flex;flex-direction:column;gap:1px;overflow-y:auto;position:sticky;top:0;height:100vh}
.sidebar .logo{padding:10px 12px 20px}
.nav-group{font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted2);padding:16px 12px 6px}
.nav-item{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:var(--rsm);color:var(--muted);
  font-size:13.5px;font-weight:500;cursor:pointer;position:relative;
  transition:background .16s var(--ease),color .16s var(--ease),transform .12s var(--ease)}
.nav-item:hover{background:var(--surface2);color:var(--ink)}
.nav-item.active{background:linear-gradient(100deg,rgba(123,77,255,.10),rgba(91,108,255,.05));color:var(--ink);font-weight:600}
.nav-item.active::before{content:"";position:absolute;left:-12px;top:50%;transform:translateY(-50%);
  width:3px;height:18px;border-radius:0 3px 3px 0;background:var(--grad)}
.nav-item .ic{width:18px;height:18px;flex:0 0 auto;display:grid;place-items:center;opacity:.7;transition:opacity .16s}
.nav-item:hover .ic,.nav-item.active .ic{opacity:1}
.nav-item .ic svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;fill:none}
.nav-item.active .ic{color:var(--violet)}

.main{grid-area:main;padding:28px 32px 80px;max-width:var(--maxw);width:100%}

/* ---------- PAGE HEADER ---------- */
.ph{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}
.ph .eyebrow{display:inline-flex;align-items:center;gap:7px;font-family:'Geist';font-size:10.5px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--violet);margin-bottom:9px}
.ph .eyebrow::before{content:"";width:16px;height:2px;background:var(--grad);border-radius:2px}
.ph h2{font-size:26px;font-weight:800;letter-spacing:-.03em}
.ph p{color:var(--muted);font-size:14px;margin-top:6px;max-width:680px}
.ph .actions{display:flex;gap:9px;flex-wrap:wrap;flex-shrink:0;padding-top:4px}

/* ---------- GRID / CARDS ---------- */
.grid{display:grid;gap:18px}
.cols-2{grid-template-columns:repeat(2,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1040px){.cols-3,.cols-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.cols-2,.cols-3,.cols-4{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;box-shadow:var(--sh-sm);
  transition:box-shadow .3s var(--ease),transform .3s var(--ease),border-color .3s}
.card.hover:hover{box-shadow:var(--sh-md);transform:translateY(-3px);border-color:var(--line2)}
.card h3{font-size:15.5px;font-weight:700;margin-bottom:3px}
.card .hint{color:var(--muted);font-size:12.5px;margin-bottom:0;line-height:1.5}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.card-head h3{margin:0}

/* ---------- STAT (KPI) ---------- */
.stat{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;
  box-shadow:var(--sh-sm);overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.stat:hover{transform:translateY(-3px);box-shadow:var(--sh-md)}
.stat .ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;margin-bottom:14px;
  background:var(--grad-soft);color:var(--violet)}
.stat .ic svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none}
.stat .label{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.stat .value{font-family:'Geist';font-size:30px;font-weight:800;margin-top:6px;letter-spacing:-.04em}
.stat .value.grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat .sub{font-size:12px;color:var(--muted2);margin-top:4px}

/* ---------- FORMS ---------- */
.field{margin-bottom:15px}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink2);margin-bottom:7px}
.field .lh{font-weight:400;color:var(--muted2);font-size:11.5px;margin-left:6px}
.field input,.field select,.field textarea{width:100%;min-height:43px;border:1px solid var(--line2);
  border-radius:var(--rsm);background:var(--surface);padding:10px 13px;font-size:14px;color:var(--ink);
  transition:border-color .2s,box-shadow .2s,background .2s;outline:none}
.field textarea{min-height:100px;resize:vertical;line-height:1.55}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--violet);box-shadow:var(--ring)}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#cdd1de}
.field select{appearance:none;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='%239398ab' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:34px}
.field .ck{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:var(--ink2);font-weight:500;cursor:pointer}
.field .ck input{width:17px;height:17px;min-height:auto;margin-top:1px;accent-color:var(--violet);flex:0 0 auto}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:13px}
@media(max-width:560px){.frow{grid-template-columns:1fr}}

/* ---------- TABLES ---------- */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);box-shadow:var(--sh-sm)}
table{width:100%;border-collapse:collapse;font-size:13.5px}
th{text-align:left;font-weight:600;color:var(--muted);font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;
  padding:13px 16px;border-bottom:1px solid var(--line);background:var(--surface2);white-space:nowrap}
td{padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:none}
tbody tr{transition:background .14s}
tbody tr.clickable{cursor:pointer}
tbody tr:hover td{background:#f8f9fd}
.t-name{font-weight:600;color:var(--ink)}
.t-sub{font-size:12px;color:var(--muted2);margin-top:2px}
.empty{padding:50px 28px;text-align:center}
.empty .ei{width:52px;height:52px;border-radius:15px;margin:0 auto 14px;display:grid;place-items:center;
  background:var(--grad-soft);color:var(--violet)}
.empty .ei svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7;fill:none}
.empty h4{font-size:15px;margin-bottom:5px}
.empty p{color:var(--muted);font-size:13px;max-width:340px;margin:0 auto 16px}

/* ---------- BADGES ---------- */
.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:4px 9px;border-radius:8px;
  border:1px solid var(--line2);background:var(--surface2);color:var(--muted);letter-spacing:.01em;white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.65}
.badge.ok{color:var(--ok);background:var(--okbg);border-color:transparent}
.badge.warn{color:var(--warn);background:var(--warnbg);border-color:transparent}
.badge.err{color:var(--err);background:var(--errbg);border-color:transparent}
.badge.vio{color:var(--violet);background:rgba(123,77,255,.1);border-color:transparent}
.badge.plain::before{display:none}

/* ---------- DRAWER (the core simplicity move) ---------- */
.scrim{position:fixed;inset:0;z-index:90;background:rgba(13,15,22,.4);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .3s var(--ease)}
.scrim.in{opacity:1}
.drawer{position:fixed;top:0;right:0;height:100vh;width:min(520px,94vw);z-index:91;background:var(--surface);
  border-left:1px solid var(--line);box-shadow:var(--sh-lg);display:flex;flex-direction:column;
  transform:translateX(102%);transition:transform .42s var(--ease)}
.drawer.in{transform:none}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:24px 26px 18px;border-bottom:1px solid var(--line)}
.drawer-head .eyebrow{font-family:'Geist';font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--violet);margin-bottom:7px}
.drawer-head h3{font-size:19px;font-weight:800;letter-spacing:-.02em}
.drawer-head p{color:var(--muted);font-size:13px;margin-top:5px}
.drawer-x{flex:0 0 auto;width:34px;height:34px;border-radius:9px;border:1px solid var(--line2);background:var(--surface);
  display:grid;place-items:center;color:var(--muted);transition:.2s var(--ease)}
.drawer-x:hover{background:var(--surface2);color:var(--ink);transform:rotate(90deg)}
.drawer-x svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none}
.drawer-body{padding:22px 26px;overflow-y:auto;flex:1}
.drawer-foot{padding:16px 26px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end;background:var(--surface)}

/* ---------- TABS ---------- */
.tabs{display:flex;gap:4px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:4px;margin-bottom:20px;width:fit-content}
.tab{padding:8px 16px;border-radius:9px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;transition:.18s var(--ease)}
.tab:hover{color:var(--ink)}
.tab.active{background:var(--surface);color:var(--ink);box-shadow:var(--sh-sm)}

/* ---------- OUTPUT / RESULT ---------- */
.out{margin-top:14px;border:1px solid #1c1f33;border-radius:var(--rsm);background:#0b0d18;color:#cbd1ef;
  padding:13px 15px;font-family:ui-monospace,Menlo,monospace;font-size:11.5px;line-height:1.6;
  max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;display:none}
.out.show{display:block;animation:fade .25s var(--ease)}
.out.ok{border-color:rgba(15,157,84,.5)} .out.err{border-color:rgba(221,68,68,.55)}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ---------- TOASTS ---------- */
#toasts{position:fixed;right:20px;bottom:20px;z-index:9999;display:flex;flex-direction:column;gap:10px}
.toast{min-width:240px;max-width:380px;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);
  border:1px solid var(--line2);border-left:3px solid var(--violet);border-radius:12px;padding:13px 15px 13px 16px;
  box-shadow:var(--sh-lg);font-size:13px;color:var(--ink2);display:flex;gap:11px;align-items:flex-start;animation:tin .4s var(--ease2)}
.toast .ti{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
.toast .ti svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none}
.toast.ok{border-left-color:var(--ok)} .toast.ok .ti{color:var(--ok)}
.toast.err{border-left-color:var(--err)} .toast.err .ti{color:var(--err)}
.toast b{display:block;margin-bottom:1px;font-weight:700;color:var(--ink)}
@keyframes tin{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}

/* ---------- CHAT ---------- */
.chat{display:flex;flex-direction:column;gap:10px;max-height:440px;overflow-y:auto;padding:6px 2px 12px}
.msg{max-width:82%;padding:11px 15px;border-radius:16px;font-size:13.5px;line-height:1.5;animation:fade .22s var(--ease)}
.msg.user{align-self:flex-end;background:var(--grad);color:#fff;border-bottom-right-radius:5px}
.msg.assistant{align-self:flex-start;background:var(--surface3);color:var(--ink);border-bottom-left-radius:5px;white-space:pre-wrap}
.msg.tool{align-self:center;background:var(--warnbg);color:var(--warn);font-size:11.5px;border-radius:9px;padding:6px 12px}

/* ---------- SKELETON ---------- */
.skel{background:linear-gradient(90deg,var(--surface2) 25%,#e9ecf3 37%,var(--surface2) 63%);
  background-size:400% 100%;animation:sh 1.3s ease infinite;border-radius:8px;height:14px}
@keyframes sh{0%{background-position:100% 0}100%{background-position:-100% 0}}
.skel-row{display:flex;gap:14px;padding:13px 16px;border-bottom:1px solid var(--line)}
.skel-row .skel{flex:1}

/* ---------- MISC ---------- */
.divider{height:1px;background:var(--line);margin:18px 0}
.kvs{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;font-size:13.5px}
.kvs dt{color:var(--muted);font-weight:500} .kvs dd{color:var(--ink);word-break:break-word;font-weight:500}
.muted{color:var(--muted)} .small{font-size:12px} .mt{margin-top:14px} .mb{margin-bottom:14px}
.flex{display:flex;gap:12px;align-items:center} .between{justify-content:space-between} .wrapf{flex-wrap:wrap}
.copy{cursor:pointer;color:var(--violet);font-size:11.5px;font-weight:600;display:inline-flex;gap:4px;align-items:center}
.copy:hover{color:var(--violet2)}
.loading{display:inline-block;width:15px;height:15px;border:2px solid var(--line2);border-top-color:var(--violet);
  border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}
.reveal>*{animation:rise .45s var(--ease) both}
.reveal>*:nth-child(2){animation-delay:.04s}
.reveal>*:nth-child(3){animation-delay:.08s}
.reveal>*:nth-child(4){animation-delay:.12s}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- MOBILE ---------- */
.menu-btn{display:none}
@media(max-width:880px){
  .shell{grid-template-columns:1fr;grid-template-areas:"top" "main"}
  .sidebar{position:fixed;left:0;top:0;z-index:60;width:248px;transform:translateX(-102%);transition:transform .35s var(--ease)}
  .sidebar.open{transform:none;box-shadow:var(--sh-lg)}
  .menu-btn{display:grid}
  .main{padding:20px 16px 60px}
  .ph{flex-direction:column}
}

/* ---------- USER MENU (topbar) ---------- */
.usermenu{position:relative}
.avatar{width:36px;height:36px;border-radius:11px;border:1px solid var(--line2);background:var(--grad);color:#fff;
  font-family:'Geist';font-weight:700;font-size:13px;letter-spacing:.02em;display:grid;place-items:center;
  box-shadow:0 6px 16px -8px rgba(123,77,255,.6);transition:transform .2s var(--ease),box-shadow .2s}
.avatar:hover{transform:translateY(-1px);box-shadow:0 10px 22px -8px rgba(123,77,255,.7)}
.menu{position:absolute;right:0;top:46px;min-width:210px;background:var(--surface);border:1px solid var(--line2);
  border-radius:14px;box-shadow:var(--sh-lg);padding:6px;opacity:0;transform:translateY(-6px) scale(.97);pointer-events:none;
  transition:opacity .2s var(--ease),transform .2s var(--ease);z-index:50}
.menu.open{opacity:1;transform:none;pointer-events:auto}
.menu-head{padding:10px 12px 9px;display:flex;flex-direction:column;gap:2px}
.menu-head b{font-size:13.5px;color:var(--ink)} .menu-head span{font-size:11px;color:var(--muted2)}
.menu-sep{height:1px;background:var(--line);margin:5px 0}
.menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:9px;border:none;background:none;
  font-size:13.5px;font-weight:500;color:var(--ink2);text-align:left;transition:background .15s}
.menu-item:hover{background:var(--surface2)}
.menu-item svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;opacity:.7}
.menu-item.danger{color:var(--err)} .menu-item.danger:hover{background:var(--errbg)}

/* ---------- refinements ---------- */
.topbar{box-shadow:0 1px 0 rgba(13,15,22,.02)}
.stat .value{color:var(--ink)}
.btn-icon svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none}
.btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;flex:0 0 auto}
.btn-primary svg{stroke:#fff}
/* stagger entry for grids */
.reveal .grid>*{animation:rise .5s var(--ease) both}
.reveal .grid>*:nth-child(1){animation-delay:.02s}
.reveal .grid>*:nth-child(2){animation-delay:.06s}
.reveal .grid>*:nth-child(3){animation-delay:.10s}
.reveal .grid>*:nth-child(4){animation-delay:.14s}

/* ---------- retention presets ---------- */
.stat-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--grad-soft);color:var(--violet)}
.stat-ic svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
.preset{transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s}
.preset:hover{border-color:var(--violet2)}
.preset .badge svg{width:12px;height:12px;stroke-width:2.4}

/* ---------- PICKER (click-to-choose, no IDs) ---------- */
.picker{position:relative}
.picker-btn{width:100%;min-height:43px;border:1px solid var(--line2);border-radius:var(--rsm);background:var(--surface);
  padding:10px 13px;font-size:14px;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:10px;
  transition:border-color .2s,box-shadow .2s;text-align:left}
.picker-btn:hover{border-color:#c8ccdd}
.picker-btn svg{width:16px;height:16px;stroke:var(--muted2);stroke-width:2;fill:none;flex:0 0 auto}
.picker-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picker-val.empty{color:var(--muted2)}
.picker-pop{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;background:var(--surface);border:1px solid var(--line2);
  border-radius:13px;box-shadow:var(--sh-lg);padding:6px;opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity .18s var(--ease),transform .18s var(--ease)}
.picker-pop.open{opacity:1;transform:none;pointer-events:auto}
.picker-search{padding:4px 4px 6px}
.picker-search input{width:100%;height:38px;border:1px solid var(--line2);border-radius:9px;padding:8px 11px;font-size:13.5px;outline:none}
.picker-search input:focus{border-color:var(--violet);box-shadow:var(--ring)}
.picker-list{max-height:240px;overflow-y:auto}
.picker-item{padding:9px 11px;border-radius:9px;cursor:pointer;transition:background .14s}
.picker-item:hover{background:var(--surface2)}
.pi-l{font-size:13.5px;font-weight:500;color:var(--ink)}
.pi-s{font-size:11.5px;color:var(--muted2);margin-top:1px}
.picker-empty{padding:18px;text-align:center;color:var(--muted2);font-size:12.5px}
