/* Hallmark · design system: Soft Pill (owner brief, Phase 3) · scope: app · theme: soft-pill-light · surface: tinted lavender · contrast: pass · v2.0.0 */
/* Hallmark · answered 2a · the pink-violet-indigo gradient is the brief's rule for AI features only (AI live, AI monitor badges) */
/* Hallmark · answered 67 · sidebar group labels are the brief's "small eyebrows" (11px, uppercase, .08em) */
/* Hallmark · answered F7 · every text field shares one recipe on purpose: fields are one role across the panel */
/* =====================================================================
   Soft Pill for the panel (update 111, Phase 5). Only active while <body> has .theme-softpill (or .theme-softpilldark), which needs the
   switch cp_soft_pill (Feature switches) and the theme picked under Appearance & themes. Same tokens as the website
   (assets/soft-pill/soft-pill.css on zamarketing.org). Page structure and PHP are unchanged: this file restyles them.
   ===================================================================== */
:root{
  /* Soft Pill palette (only the .theme-softpill rules and the .spp- dashboard pieces read these) */
  --sp-bg:#E6E5EB; --sp-shell:#F1F0F5; --sp-card:#FFFFFF; --sp-soft:#F5F4F8; --sp-soft2:#ECEBF1;
  --sp-ink:#111114; --sp-mute:#5F5F6A; --sp-faint:#A4A3AE; --sp-line:rgba(17,17,20,.07);
  --sp-pill:#111114; --sp-pill-text:#FFFFFF; --sp-hatch:#D6D5DE;
  --sp-accent:#4F46E5; --sp-accent2:#7C78FF; --sp-accent-soft:#EEEDFF;
  --sp-green:#16A34A; --sp-green-ink:#11743A; --sp-green-soft:#E7F7EC; --sp-red:#E5484D; --sp-red-ink:#B4232A; --sp-red-soft:#FDECEC; --sp-amber:#B45309; --sp-amber-soft:#FEF3C7;
  --sp-hero-grad:radial-gradient(90% 80% at 100% 0%,rgba(170,168,255,.2),transparent 55%),linear-gradient(160deg,#5D5BF7,#3E32E0);
  --sp-shadow:0 1px 2px rgba(16,16,24,.04),0 8px 24px -12px rgba(16,16,24,.08);
  --sp-lift:0 18px 40px -16px rgba(30,27,75,.28);
  --sp-ease:cubic-bezier(.2,.8,.2,1); --sp-spring:cubic-bezier(.3,1.35,.5,1);
  --sp-on-hero:#FDFDFF; --sp-on-hero-mute:rgba(253,253,255,.9); --sp-glass:rgba(255,255,255,.16); --sp-glass-line:rgba(255,255,255,.28); --sp-focus:0 0 0 3px rgba(79,70,229,.45);
  --sp-ink-2:#3B3B44; --sp-accent-deep:#3E32E0; --sp-amber-ink:#7A3A06; --sp-accent-ink:#2F2A9C; --sp-green-hover:#0E6331;
  --sp-ai-grad:linear-gradient(135deg,#EC4899 0%,#8B5CF6 45%,#4F46E5 100%);
  --sp-topbar:rgba(255,255,255,.86); --sp-tabbar:rgba(255,255,255,.94); --sp-light:rgba(255,255,255,.18); --sp-light-0:rgba(255,255,255,0);
  /* Soft Pill Dark palette (read only by body.theme-softpilldark) */
  
  /* Soft Pill Dark palette (read only by body.theme-softpilldark) */
  --spd-bg:#050507; --spd-shell:#0D0D12; --spd-card:#15151C; --spd-soft:#1C1C25; --spd-soft2:#24242F;
  --spd-ink:#F3F3F6; --spd-mute:#9B9BA7; --spd-faint:#5E5E6A; --spd-line:rgba(255,255,255,.07);
  --spd-pill:#F3F3F6; --spd-pill-text:#0D0D12; --spd-hatch:#2C2C38;
  --spd-accent:#8B85FF; --spd-accent2:#A5A1FF; --spd-accent-soft:#23224A; --spd-accent-deep:#7C78FF; --spd-accent-ink:#C9C6FF;
  --spd-green:#22C55E; --spd-green-ink:#4ADE80; --spd-green-soft:#11291A; --spd-green-hover:#86EFAC;
  --spd-red:#F87171; --spd-red-ink:#FCA5A5; --spd-red-soft:#2E1517; --spd-amber:#F59E0B; --spd-amber-ink:#FCD34D; --spd-amber-soft:#2E2410;
  --spd-ink-2:#D4D4DC; --spd-topbar:rgba(21,21,28,.86); --spd-tabbar:rgba(21,21,28,.94);
  --spd-shadow:0 1px 2px rgba(0,0,0,.4); --spd-lift:0 18px 40px -16px rgba(0,0,0,.7);
  --spd-on-hero:#FDFDFF; --spd-on-hero-mute:rgba(253,253,255,.9);
}
body.theme-softpill.app,body.theme-softpilldark.app{
  /* the panel's own variables, pointed at Soft Pill */
  --ink:var(--sp-ink); --ink-2:var(--sp-ink-2); --muted:var(--sp-mute); --line:var(--sp-line); --bg:var(--sp-shell); --card:var(--sp-card); --tint:var(--sp-soft);
  --nav:var(--sp-card); --nav-2:var(--sp-soft); --nav-ink:var(--sp-ink); --nav-dim:var(--sp-mute);
  --brand:var(--sp-accent); --brand-2:var(--sp-accent-deep); --brand-soft:var(--sp-accent-soft); --brand-light:var(--sp-accent2); --hero:var(--sp-accent-deep); --heading:var(--sp-ink);
  --gold:var(--sp-accent); --gold-2:var(--sp-accent); --gold-soft:var(--sp-accent-soft); --gold-ink:var(--sp-accent);
  --green:var(--sp-green); --green-2:var(--sp-green-ink); --green-soft:var(--sp-green-soft); --green-ink:var(--sp-green-ink); --amber:var(--sp-amber); --amber-soft:var(--sp-amber-soft);
  --red:var(--sp-red-ink); --red-ink:var(--sp-red-ink); --red-soft:var(--sp-red-soft); --blue:var(--sp-accent); --blue-soft:var(--sp-accent-soft); --gray-soft:var(--sp-soft2);
  --green-btn:var(--sp-green-ink); --green-btn-hover:var(--sp-green-hover);
  --radius:22px; --radius-sm:12px; --shadow:var(--sp-shadow);
  --display:"Inter",system-ui,sans-serif;
  background:var(--sp-shell);color:var(--sp-ink);font-feature-settings:"cv11","ss01"
}
:is(body.theme-softpill,body.theme-softpilldark) :focus-visible{outline:none;box-shadow:var(--sp-focus);border-radius:10px}
/* Soft Pill Dark (update 112): the brief's dark tokens; every rule above and below serves both themes */
body.theme-softpilldark.app{
  --sp-bg:var(--spd-bg); --sp-shell:var(--spd-shell); --sp-card:var(--spd-card); --sp-soft:var(--spd-soft); --sp-soft2:var(--spd-soft2); --sp-ink:var(--spd-ink); --sp-mute:var(--spd-mute); --sp-faint:var(--spd-faint); --sp-line:var(--spd-line); --sp-pill:var(--spd-pill); --sp-pill-text:var(--spd-pill-text); --sp-hatch:var(--spd-hatch); --sp-accent:var(--spd-accent); --sp-accent2:var(--spd-accent2); --sp-accent-soft:var(--spd-accent-soft); --sp-accent-deep:var(--spd-accent-deep); --sp-accent-ink:var(--spd-accent-ink); --sp-green:var(--spd-green); --sp-green-ink:var(--spd-green-ink); --sp-green-soft:var(--spd-green-soft); --sp-green-hover:var(--spd-green-hover); --sp-red:var(--spd-red); --sp-red-ink:var(--spd-red-ink); --sp-red-soft:var(--spd-red-soft); --sp-amber:var(--spd-amber); --sp-amber-ink:var(--spd-amber-ink); --sp-amber-soft:var(--spd-amber-soft); --sp-ink-2:var(--spd-ink-2); --sp-topbar:var(--spd-topbar); --sp-tabbar:var(--spd-tabbar); --sp-shadow:var(--spd-shadow); --sp-lift:var(--spd-lift); --sp-on-hero:var(--spd-on-hero); --sp-on-hero-mute:var(--spd-on-hero-mute);
  color-scheme:dark
}
body.theme-softpilldark .wa-float{background:var(--sp-green-soft);color:var(--sp-green-ink)}
body.theme-softpilldark .wa-float:hover{background:var(--sp-green-soft);color:var(--sp-green-hover)}
/* low priority (:where) so components such as the dashboard hero keep their own colours */
:where(body.theme-softpill,body.theme-softpilldark) h1,:where(body.theme-softpill,body.theme-softpilldark) h2{color:var(--sp-ink);font-weight:600;letter-spacing:-.025em;text-wrap:balance}
:where(body.theme-softpill,body.theme-softpilldark) a{color:var(--sp-accent)}
:where(body.theme-softpill,body.theme-softpilldark) a:hover{color:var(--sp-ink)}

/* ---- shell: floating white sidebar with the ink pill ---- */
:is(body.theme-softpill,body.theme-softpilldark) .sidebar{inset:12px auto 12px 12px;width:240px;background:var(--sp-card);color:var(--sp-ink);border:1px solid var(--sp-line);border-radius:26px;box-shadow:var(--sp-shadow)}
:is(body.theme-softpill,body.theme-softpilldark) .brand{color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .brand-mark{background:var(--sp-pill);color:var(--sp-pill-text);border-color:var(--sp-pill)}
:is(body.theme-softpill,body.theme-softpilldark) .brand-logo{box-shadow:0 0 0 3px var(--sp-soft2)}
:is(body.theme-softpill,body.theme-softpilldark) .brand-name span{color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a{color:var(--sp-mute);border-radius:999px;padding:10px 16px;transition:background .25s var(--sp-ease),color .2s}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a .ico{color:var(--sp-faint)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a:hover{background:var(--sp-soft);color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a:hover .ico{color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a:active{transform:scale(.98)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a.active{background:var(--sp-pill);color:var(--sp-pill-text);font-weight:600}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a.active .ico{color:var(--sp-pill-text)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a.active::before{display:none}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav .count,:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a .badge{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar-foot{border-top:1px solid var(--sp-line)}
:is(body.theme-softpill,body.theme-softpilldark) .side-balance small{color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .side-balance strong{color:var(--sp-ink);font-variant-numeric:tabular-nums}
:is(body.theme-softpill,body.theme-softpilldark) .side-balance strong.neg{color:var(--sp-red-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .logout{color:var(--sp-mute);border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .logout:hover{background:var(--sp-soft);color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar .wa,:is(body.theme-softpill,body.theme-softpilldark) .sidebar a[href*="wa.me"],:is(body.theme-softpill,body.theme-softpilldark) .sidebar-foot a[href*="wa"]{color:var(--sp-green-ink);opacity:1}
:is(body.theme-softpill,body.theme-softpilldark) .main{margin-left:264px}
:is(body.theme-softpill,body.theme-softpilldark) .topbar{margin:12px 12px 0 12px;padding:12px 20px;border:1px solid var(--sp-line);border-radius:999px;background:var(--sp-topbar);box-shadow:var(--sp-shadow)}
:is(body.theme-softpill,body.theme-softpilldark) .topbar h1{font-size:1.25rem;font-weight:600;letter-spacing:-.02em}
:is(body.theme-softpill,body.theme-softpilldark) .content{padding:24px 24px 64px}
:is(body.theme-softpill,body.theme-softpilldark) .menu-btn{border-radius:999px;background:var(--sp-soft2);color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .avatar{background:var(--sp-pill);color:var(--sp-pill-text)}

/* ---- cards, tiles, tables ---- */
:is(body.theme-softpill,body.theme-softpilldark) .card,:is(body.theme-softpill,body.theme-softpilldark) .stat,:is(body.theme-softpill,body.theme-softpilldark) .cd-tile{border-radius:22px;border:1px solid var(--sp-line);box-shadow:var(--sp-shadow);background:var(--sp-card)}
:is(body.theme-softpill,body.theme-softpilldark) .card{padding:20px 24px}
:is(body.theme-softpill,body.theme-softpilldark) .stat,:is(body.theme-softpill,body.theme-softpilldark) .cd-tile{transition:transform .35s var(--sp-spring),box-shadow .35s var(--sp-ease)}
:is(body.theme-softpill,body.theme-softpilldark) .stat:hover,:is(body.theme-softpill,body.theme-softpilldark) .cd-tile:hover{transform:translateY(-4px);box-shadow:var(--sp-lift)}
:is(body.theme-softpill,body.theme-softpilldark) .stat strong,:is(body.theme-softpill,body.theme-softpilldark) .cd-tile b,:is(body.theme-softpill,body.theme-softpilldark) .amount-big{font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
:is(body.theme-softpill,body.theme-softpilldark) .stat small,:is(body.theme-softpill,body.theme-softpilldark) .cd-tile small{color:var(--sp-mute);font-size:13px}
:is(body.theme-softpill,body.theme-softpilldark) .cd-ico{border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .ic-blue{background:var(--sp-accent-soft);color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .ic-gold{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .table-wrap{margin:0 -24px;padding:0 24px}
:is(body.theme-softpill,body.theme-softpilldark) th{background:var(--sp-soft);color:var(--sp-mute);border:0;font-size:13px;padding:12px}
:is(body.theme-softpill,body.theme-softpilldark) th:first-child{border-radius:12px 0 0 12px}
:is(body.theme-softpill,body.theme-softpilldark) th:last-child{border-radius:0 12px 12px 0}
:is(body.theme-softpill,body.theme-softpilldark) td{border-bottom:1px solid var(--sp-line);padding:16px 12px;height:52px}
:is(body.theme-softpill,body.theme-softpilldark) tbody tr:hover td{background:var(--sp-soft)}

/* ---- buttons: pills; primary = ink ---- */
:is(body.theme-softpill,body.theme-softpilldark) .btn{border-radius:999px;padding:12px 20px;transition:transform .18s var(--sp-spring),background .2s,box-shadow .2s}
:is(body.theme-softpill,body.theme-softpilldark) .btn:active{transform:scale(.96)}
:is(body.theme-softpill,body.theme-softpilldark) .btn-sm{padding:8px 16px;border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .btn-primary{background:var(--sp-pill);color:var(--sp-pill-text)}
:is(body.theme-softpill,body.theme-softpilldark) .btn-primary:hover{background:var(--sp-pill);color:var(--sp-pill-text);box-shadow:var(--sp-lift)}
:is(body.theme-softpill,body.theme-softpilldark) .btn-ghost{background:var(--sp-soft2);border-color:transparent;color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .btn-ghost:hover{background:var(--sp-hatch);border-color:transparent}
:is(body.theme-softpill,body.theme-softpilldark) .btn-gold{background:var(--sp-accent);color:var(--sp-on-hero)}
:is(body.theme-softpill,body.theme-softpilldark) .btn-red{background:var(--sp-red-soft);color:var(--sp-red-ink);border-color:transparent}

/* ---- chips, badges, alerts ---- */
:is(body.theme-softpill,body.theme-softpilldark) .badge{border-radius:999px;padding:4px 12px 4px 8px}
:is(body.theme-softpill,body.theme-softpilldark) .badge-green{background:var(--sp-green-soft);color:var(--sp-green-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .badge-amber{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .badge-red{background:var(--sp-red-soft);color:var(--sp-red-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .badge-blue{background:var(--sp-accent-soft);color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .badge-gray{background:var(--sp-soft2);color:var(--sp-ink-2)}
:is(body.theme-softpill,body.theme-softpilldark) .chip{border-radius:999px;background:var(--sp-soft2);color:var(--sp-ink-2)}
:is(body.theme-softpill,body.theme-softpilldark) .alert{border-radius:16px;border-left-width:1px}
:is(body.theme-softpill,body.theme-softpilldark) .alert-warn{background:var(--sp-amber-soft);border-color:transparent;color:var(--sp-amber-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .alert-info{background:var(--sp-accent-soft);border-color:transparent;color:var(--sp-accent-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .alert-success{background:var(--sp-green-soft);border-color:transparent;color:var(--sp-green-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .alert-error{background:var(--sp-red-soft);border-color:transparent;color:var(--sp-red-ink)}

/* ---- inputs ---- */
:is(body.theme-softpill,body.theme-softpilldark) .field input,:is(body.theme-softpill,body.theme-softpilldark) .field select,:is(body.theme-softpill,body.theme-softpilldark) .field textarea,:is(body.theme-softpill,body.theme-softpilldark) .filters input,:is(body.theme-softpill,body.theme-softpilldark) .filters select{background:var(--sp-soft);border:1px solid var(--sp-line);border-radius:12px;color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .field input:focus,:is(body.theme-softpill,body.theme-softpilldark) .field select:focus,:is(body.theme-softpill,body.theme-softpilldark) .field textarea:focus{background:var(--sp-card);border-color:var(--sp-accent);box-shadow:var(--sp-focus);outline:none}
:is(body.theme-softpill,body.theme-softpilldark) .file-drop{border-radius:16px;background:var(--sp-soft);border-color:var(--sp-hatch)}
:is(body.theme-softpill,body.theme-softpilldark) .pay-opt{border-radius:16px}
:is(body.theme-softpill,body.theme-softpilldark) .wallet-pills button{border-radius:999px;background:var(--sp-soft2);border-color:transparent;color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .wallet-pills button:hover{background:var(--sp-hatch)}
:is(body.theme-softpill,body.theme-softpilldark) .coin{border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .coin.active{background:var(--sp-pill);color:var(--sp-pill-text);border-color:var(--sp-pill)}
:is(body.theme-softpill,body.theme-softpilldark) .coin.active small{color:var(--sp-on-hero-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .addr,:is(body.theme-softpill,body.theme-softpilldark) .qr,:is(body.theme-softpill,body.theme-softpilldark) .paybox{border-radius:16px}
:is(body.theme-softpill,body.theme-softpilldark) .pager a,:is(body.theme-softpill,body.theme-softpilldark) .pager span{border-radius:999px}

/* ---- dashboard ---- */
:is(body.theme-softpill,body.theme-softpilldark) .cd-hero{background:var(--sp-hero-grad);border-radius:28px;box-shadow:var(--sp-lift)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-hero:before{background:radial-gradient(circle,var(--sp-light),var(--sp-light-0) 70%);animation:spp-drift 9s var(--sp-ease) infinite alternate}
@keyframes spp-drift{from{transform:translate(-20px,-10px)}to{transform:translate(30px,20px)}}
:is(body.theme-softpill,body.theme-softpilldark) .cd-hello h1{color:var(--sp-on-hero)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-hello p{color:var(--sp-on-hero-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-act,:is(body.theme-softpill,body.theme-softpilldark) .cd-act:hover{color:var(--sp-on-hero)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-act{border-radius:18px;background:var(--sp-glass);border-color:var(--sp-glass-line)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-act .ico{color:var(--sp-on-hero)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-wallet{border-radius:22px;box-shadow:var(--sp-shadow)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-wallet.is-low{box-shadow:inset 0 4px 0 var(--sp-amber),var(--sp-shadow)}
:is(body.theme-softpill,body.theme-softpilldark) .cd-wallet .btn{background:var(--sp-pill);color:var(--sp-pill-text);border:0}
:is(body.theme-softpill,body.theme-softpilldark) .cd-gold{background:var(--sp-pill)!important;color:var(--sp-pill-text)!important}
:is(body.theme-softpill,body.theme-softpilldark) .cd-bar{border-radius:6px 6px 0 0}

/* ---- mobile tab bar ---- */
:is(body.theme-softpill,body.theme-softpilldark) .tabbar{left:12px;right:12px;bottom:12px;border-radius:999px;background:var(--sp-tabbar);border:1px solid var(--sp-line);box-shadow:var(--sp-lift)}
:is(body.theme-softpill,body.theme-softpilldark) .tabbar a.on,:is(body.theme-softpill,body.theme-softpilldark) .tabbar a.active,:is(body.theme-softpill,body.theme-softpilldark) .tabbar a[aria-current]{color:var(--sp-ink)}

/* ---- update 111: dashboard pieces (London clock, counted vs replaced ring, 48 h rings) ---- */
.spp-clock{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding:4px 12px;border-radius:999px;background:var(--sp-glass);border:1px solid var(--sp-glass-line);font-variant-numeric:tabular-nums;font-weight:600;font-size:13px}
.spp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;margin-bottom:20px}
.spp-ringwrap{display:flex;align-items:center;gap:20px}
.spp-ring{flex:none;width:120px;height:120px}
.spp-ring circle{fill:none;stroke-width:12}
.spp-ring .t{stroke:var(--sp-soft2)}
.spp-ring .v{stroke:var(--sp-accent);stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset 1.5s cubic-bezier(.2,.8,.2,1)}
.spp-ring text{font:600 20px/1 Inter,system-ui,sans-serif;fill:var(--sp-ink);font-variant-numeric:tabular-nums}
.spp-legend{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.spp-legend li{display:flex;align-items:center;gap:8px}
.spp-legend i{width:10px;height:10px;border-radius:50%;background:var(--sp-accent)}
.spp-legend i.r{background:var(--sp-soft2);box-shadow:inset 0 0 0 1px var(--sp-hatch)}
.spp-orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.spp-order{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border-radius:18px;background:var(--sp-soft);text-align:center;color:inherit}
.spp-order:hover{text-decoration:none;background:var(--sp-soft2)}
.spp-order .spp-ring{width:88px;height:88px}
.spp-order .spp-ring circle{stroke-width:9}
.spp-order .spp-ring text{font-size:15px}
.spp-order small{color:var(--sp-mute)}
@media (max-width:900px){
  :is(body.theme-softpill,body.theme-softpilldark) .sidebar{inset:8px auto 8px 8px}
  :is(body.theme-softpill,body.theme-softpilldark) .main{margin-left:0}
  :is(body.theme-softpill,body.theme-softpilldark) .topbar{margin:8px 8px 0}
  :is(body.theme-softpill,body.theme-softpilldark) .content{padding:16px 12px 96px}
  .spp-row{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  :is(body.theme-softpill,body.theme-softpilldark) *,:is(body.theme-softpill,body.theme-softpilldark) *::before{animation:none!important;transition:none!important}
}
:is(body.theme-softpill,body.theme-softpilldark) .logout.wa-side{color:var(--sp-green-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .wa-float{background:var(--sp-green-ink);color:var(--sp-pill-text)}   /* white on #25D366 is under 2:1; the darker green keeps 4.5:1 */
:is(body.theme-softpill,body.theme-softpilldark) .wa-float:hover{background:var(--sp-green-hover);color:var(--sp-pill-text)}
:is(body.theme-softpill,body.theme-softpilldark) .wa-side,:is(body.theme-softpill,body.theme-softpilldark) .wa-side .ico{color:var(--sp-green-ink)!important}   /* the base sheet forces a pale green meant for the dark sidebar */
:is(body.theme-softpill,body.theme-softpilldark) .net-ini{background:var(--sp-pill)!important;color:var(--sp-pill-text)!important;border-radius:14px}
:is(body.theme-softpill,body.theme-softpilldark) .topbar h1{color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .card h2,:is(body.theme-softpill,body.theme-softpilldark) .card-head h2,:is(body.theme-softpill,body.theme-softpilldark) .card h3{color:var(--sp-ink);font-size:17px;font-weight:600;letter-spacing:-.015em}

/* ---- update 112 (Phase 6): admin shell ---- */
:is(body.theme-softpill,body.theme-softpilldark) .area-tag{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .nav-group{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .nav-group::after{background:var(--sp-line)}
:is(body.theme-softpill,body.theme-softpilldark) .ng-head{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sp-mute);border-radius:999px;padding:8px 12px}
:is(body.theme-softpill,body.theme-softpilldark) .ng-head:hover{color:var(--sp-ink);background:var(--sp-soft)}
:is(body.theme-softpill,body.theme-softpilldark) .ng-head:active{opacity:.8}
:is(body.theme-softpill,body.theme-softpilldark) .count{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a.active .count{background:var(--sp-pill-text);color:var(--sp-pill)}
:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a[href*="sentinel.php"] .count,:is(body.theme-softpill,body.theme-softpilldark) .sidebar nav a[href*="advisor.php"] .count{background:var(--sp-ai-grad);color:var(--sp-on-hero)}
:is(body.theme-softpill,body.theme-softpilldark) .nav-search{background:var(--sp-soft);border:1px solid var(--sp-line);border-radius:999px;color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .nav-search:focus-within{background:var(--sp-card);border-color:var(--sp-accent);color:var(--sp-ink);box-shadow:var(--sp-focus)}
:is(body.theme-softpill,body.theme-softpilldark) .nav-search input{color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .nav-search input::placeholder{color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .sb-mini-btn{background:var(--sp-soft2);color:var(--sp-ink);border-radius:999px;border-color:transparent}
:is(body.theme-softpill,body.theme-softpilldark) .gs-btn{background:var(--sp-soft);border:1px solid var(--sp-line);border-radius:999px;color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .gs-btn:hover{color:var(--sp-ink);background:var(--sp-soft2)}
:is(body.theme-softpill,body.theme-softpilldark) .gs-btn kbd,:is(body.theme-softpill,body.theme-softpilldark) .gs kbd{background:var(--sp-card);border:1px solid var(--sp-line);border-radius:8px;color:var(--sp-mute)}
:is(body.theme-softpill,body.theme-softpilldark) .gs-box{background:var(--sp-card);border-radius:22px;box-shadow:var(--sp-lift);border:1px solid var(--sp-line)}
:is(body.theme-softpill,body.theme-softpilldark) .rail-btn{background:linear-gradient(var(--sp-card),var(--sp-card)) padding-box,var(--sp-ai-grad) border-box;border:1.5px solid transparent;color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .rail-btn .ico{color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .theme-btn,:is(body.theme-softpill,body.theme-softpilldark) .sp-mode{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:999px;background:var(--sp-soft2);border:0;color:var(--sp-ink);cursor:pointer;transition:transform .18s var(--sp-spring)}
:is(body.theme-softpill,body.theme-softpilldark) .theme-btn:hover,:is(body.theme-softpill,body.theme-softpilldark) .sp-mode:hover{background:var(--sp-hatch)}
:is(body.theme-softpill,body.theme-softpilldark) .sp-mode:active,:is(body.theme-softpill,body.theme-softpilldark) .theme-btn:active{transform:scale(.94)}
:is(body.theme-softpill,body.theme-softpilldark) .sp-mode .ico{width:18px;height:18px}
:is(body.theme-softpill,body.theme-softpilldark) .theme-pop{background:var(--sp-card);border:1px solid var(--sp-line);border-radius:22px;box-shadow:var(--sp-lift);color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .who{padding:4px 12px 4px 4px;border-radius:999px;background:var(--sp-soft2);color:var(--sp-ink)}
/* AI live side panel */
:is(body.theme-softpill,body.theme-softpilldark) .rail{background:transparent}
:is(body.theme-softpill,body.theme-softpilldark) .rl-sec{background:var(--sp-card);border:1px solid var(--sp-line);border-radius:22px;box-shadow:var(--sp-shadow)}
:is(body.theme-softpill,body.theme-softpilldark) .rl-head{color:var(--sp-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .rl-live{color:var(--sp-green-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .rl-sec.rl-ai{background:linear-gradient(var(--sp-card),var(--sp-card)) padding-box,var(--sp-ai-grad) border-box;border:1.5px solid transparent}
/* Command centre (dashboard) panels */
:is(body.theme-softpill,body.theme-softpilldark) .cc-panel,:is(body.theme-softpill,body.theme-softpilldark) .kpi,:is(body.theme-softpill,body.theme-softpilldark) .agc-tiles>*{border-radius:22px!important}
:is(body.theme-softpill,body.theme-softpilldark) .cc-quick a{border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .stabs,:is(body.theme-softpill,body.theme-softpilldark) .seg{border-radius:999px;background:var(--sp-soft);padding:4px}
:is(body.theme-softpill,body.theme-softpilldark) .stabs a,:is(body.theme-softpill,body.theme-softpilldark) .stabs button,:is(body.theme-softpill,body.theme-softpilldark) .seg a,:is(body.theme-softpill,body.theme-softpilldark) .seg button,:is(body.theme-softpill,body.theme-softpilldark) .dtab{border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .stabs .on,:is(body.theme-softpill,body.theme-softpilldark) .stabs .active,:is(body.theme-softpill,body.theme-softpilldark) .stabs [aria-selected="true"],:is(body.theme-softpill,body.theme-softpilldark) .seg .on,:is(body.theme-softpill,body.theme-softpilldark) .seg .active,:is(body.theme-softpill,body.theme-softpilldark) .seg [aria-selected="true"]{background:var(--sp-pill);color:var(--sp-pill-text)}

/* AI monitor + AI advisor: AI gradient header, soft level tiles (the pages' own <style> blocks set dark-navy colours) */
:is(body.theme-softpill,body.theme-softpilldark) .sn-hero,:is(body.theme-softpill,body.theme-softpilldark) .ad-hero{background:var(--sp-ai-grad);border-radius:28px;box-shadow:var(--sp-lift)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-hero .btn-primary,:is(body.theme-softpill,body.theme-softpilldark) .ad-hero .btn-primary{background:var(--sp-glass);color:var(--sp-on-hero);border:1px solid var(--sp-glass-line)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-hero .btn-primary:hover,:is(body.theme-softpill,body.theme-softpilldark) .ad-hero .btn-primary:hover{background:var(--sp-on-hero);color:var(--sp-accent-deep)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-lv{border-radius:22px;color:var(--sp-ink);box-shadow:var(--sp-shadow);border:1px solid var(--sp-line)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-lv.c{background:var(--sp-red-soft);color:var(--sp-red-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-lv.s{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-lv.w{background:var(--sp-accent-soft);color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-lv.g{background:var(--sp-green-soft);color:var(--sp-green-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-lv small{color:inherit;opacity:.9}
:is(body.theme-softpill,body.theme-softpilldark) .sn-inc{background:var(--sp-card);border-color:var(--sp-line);border-radius:22px;box-shadow:var(--sp-shadow)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-inc.lv-critical{background:var(--sp-card);border-left-color:var(--sp-red)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-inc.lv-serious{border-left-color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-inc.lv-warning{border-left-color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-tag,:is(body.theme-softpill,body.theme-softpilldark) .ad-tag{border-radius:999px;background:var(--sp-soft2);color:var(--sp-ink-2)}
:is(body.theme-softpill,body.theme-softpilldark) .lv-critical .sn-tag{background:var(--sp-red-soft);color:var(--sp-red-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .lv-serious .sn-tag{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .lv-warning .sn-tag{background:var(--sp-accent-soft);color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .sn-ai{background:var(--sp-accent-soft);border-color:transparent;border-radius:16px}
:is(body.theme-softpill,body.theme-softpilldark) .sn-note{background:var(--sp-soft);border-radius:12px}
:is(body.theme-softpill,body.theme-softpilldark) .sn-tabs a,:is(body.theme-softpill,body.theme-softpilldark) .sn-tabs button{border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .stat.accent{background:var(--sp-hero-grad);color:var(--sp-on-hero);border-color:transparent}
:is(body.theme-softpill,body.theme-softpilldark) .stat.accent strong,:is(body.theme-softpill,body.theme-softpilldark) .stat.accent b{color:var(--sp-on-hero)}
:is(body.theme-softpill,body.theme-softpilldark) .stat.accent small,:is(body.theme-softpill,body.theme-softpilldark) .stat.accent .sub,:is(body.theme-softpill,body.theme-softpilldark) .stat.accent a{color:var(--sp-on-hero-mute)}

/* update 113: empty-state illustrations */
.spp-empty{display:block;margin:0 auto 8px;width:160px;height:auto}

/* update 114 (QA): negative amounts in the darker red so they keep 4.5:1 */
:is(body.theme-softpill,body.theme-softpilldark) .neg,:is(body.theme-softpill,body.theme-softpilldark) td.neg,:is(body.theme-softpill,body.theme-softpilldark) .amount-neg{color:var(--sp-red-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .cp-heat small{color:var(--sp-ink);font-weight:600}
:is(body.theme-softpill,body.theme-softpilldark) .ad-pill{border-radius:999px}
:is(body.theme-softpill,body.theme-softpilldark) .ad-pill.c{background:var(--sp-red-soft);color:var(--sp-red-ink)}
:is(body.theme-softpill,body.theme-softpilldark) .ad-pill.s{background:var(--sp-amber-soft);color:var(--sp-amber)}
:is(body.theme-softpill,body.theme-softpilldark) .ad-pill.w{background:var(--sp-accent-soft);color:var(--sp-accent)}
:is(body.theme-softpill,body.theme-softpilldark) .ad-pill.g{background:var(--sp-green-soft);color:var(--sp-green-ink)}
/* update 115: on every other theme (Navy & Gold and the rest) the dashboard rings and legend follow that theme's colours */
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-ring .v{stroke:var(--brand)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-ring .t{stroke:var(--line)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-ring text{fill:var(--ink)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-legend i{background:var(--brand)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-legend i.r{background:var(--tint);box-shadow:inset 0 0 0 1px var(--line)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-order{background:var(--tint)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-order:hover{background:var(--brand-soft)}
body.app:not(.theme-softpill):not(.theme-softpilldark) .spp-order small{color:var(--muted)}
