/* ALPLINE 4.0.87 — stable unified visual system
   Visual-only final layer. Business logic/data remain untouched. */

:root{
  --u-primary:var(--brand-primary,#173a5e);
  --u-accent:var(--brand-accent,#d5a72f);
  --u-canvas:var(--brand-canvas,#f4f7fb);
  --u-ink:#10233a;
  --u-muted:#607084;
  --u-line:color-mix(in srgb,var(--u-primary) 14%,#dbe4ec 86%);
  --u-surface:color-mix(in srgb,#fff 92%,var(--u-canvas) 8%);
  --u-surface-2:color-mix(in srgb,#fff 84%,var(--u-primary) 16%);
  --u-surface-3:color-mix(in srgb,#fff 88%,var(--u-accent) 12%);
  --u-deep:color-mix(in srgb,var(--u-primary) 74%,#071728 26%);
  --u-deeper:color-mix(in srgb,var(--u-primary) 60%,#06121f 40%);
  --u-soft-primary:color-mix(in srgb,#fff 91%,var(--u-primary) 9%);
  --u-soft-accent:color-mix(in srgb,#fff 88%,var(--u-accent) 12%);
  --u-radius:clamp(12px,var(--theme-radius),20px);
  --u-shadow:0 12px 32px rgba(16,35,58,.09);
  --u-shadow-soft:0 7px 20px rgba(16,35,58,.07);
  --u-focus:0 0 0 3px color-mix(in srgb,var(--u-accent) 35%,transparent);
  --module-accent:var(--u-primary);
}

html{scroll-behavior:smooth}
body.release-487{background:var(--u-canvas)!important;color:var(--u-ink)!important;font-size:15px!important;line-height:1.48!important}
body.release-487 *,body.release-487 *::before,body.release-487 *::after{box-sizing:border-box}
body.release-487 :focus-visible{outline:2px solid var(--u-accent)!important;outline-offset:2px!important;box-shadow:var(--u-focus)}

/* ------------------------------
   Portal shell / header / sidebar
   ------------------------------ */
body.release-487 .portal-shell{background:var(--u-canvas)!important}
body.release-487 .portal-sidebar{
  width:252px!important;
  background:linear-gradient(180deg,var(--u-deeper),color-mix(in srgb,var(--u-primary) 80%,#15113e 20%))!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  box-shadow:12px 0 30px rgba(11,26,45,.10)!important;
}
body.release-487 .portal-brand{min-height:78px!important;padding:14px 17px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:18px!important;background:rgba(255,255,255,.035)!important;margin:14px 14px 10px!important;width:auto!important}
body.release-487 .portal-brand img{width:46px!important;height:46px!important;object-fit:contain!important;background:#fff!important;border-radius:12px!important}
body.release-487 .portal-brand b{font-size:24px!important;line-height:1!important;letter-spacing:.05em!important;color:#fff!important}
body.release-487 .portal-brand small{font-size:9px!important;letter-spacing:.18em!important;color:rgba(255,255,255,.62)!important;margin-top:5px!important}
body.release-487 .live-data-badge{margin:0 14px 14px!important;min-height:36px!important;padding:0 12px!important;border-radius:999px!important;background:rgba(57,193,170,.10)!important;border:1px solid rgba(92,225,199,.24)!important;color:#d8fff8!important;font-size:10px!important;font-weight:800!important;letter-spacing:.10em!important}
body.release-487 .portal-nav-label{margin:8px 20px 6px!important;color:rgba(255,255,255,.48)!important;font-size:9px!important;letter-spacing:.14em!important}
body.release-487 .portal-nav,.release-487 .alp482-nav-groups{padding:0 10px!important}
body.release-487 .portal-nav a,
body.release-487 .portal-nav button,
body.release-487 .portal-nav-group>summary{
  min-height:44px!important;
  border-radius:12px!important;
  padding:8px 11px!important;
  gap:10px!important;
  margin:2px 0!important;
  color:rgba(255,255,255,.87)!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
body.release-487 .portal-nav a i,
body.release-487 .portal-nav button i,
body.release-487 .portal-nav-group>summary i{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:rgba(255,255,255,.08)!important;color:#fff!important;font-size:13px!important}
body.release-487 .portal-nav a.active,
body.release-487 .portal-nav-group[open]>summary,
body.release-487 .portal-nav-group a.active{background:linear-gradient(135deg,var(--u-accent),color-mix(in srgb,var(--u-accent) 76%,#fff 24%))!important;color:#182238!important;box-shadow:0 7px 18px color-mix(in srgb,var(--u-accent) 30%,transparent)!important}
body.release-487 .portal-nav a.active i,body.release-487 .portal-nav-group[open]>summary i{background:rgba(255,255,255,.44)!important;color:#17304e!important}
body.release-487 .portal-nav-group>div,body.release-487 .portal-nav-group>nav{padding:2px 0 6px 38px!important}
body.release-487 .portal-nav-group>div a,body.release-487 .portal-nav-group>nav a{min-height:34px!important;font-size:11.5px!important;padding:6px 9px!important;border-radius:9px!important;color:rgba(255,255,255,.72)!important}
body.release-487 .portal-stage{min-width:0!important;background:linear-gradient(180deg,color-mix(in srgb,var(--u-canvas) 92%,#fff 8%),var(--u-canvas))!important}
body.release-487 .portal-topbar{height:62px!important;min-height:62px!important;padding:8px 14px!important;gap:10px!important;background:linear-gradient(90deg,var(--u-deep),color-mix(in srgb,var(--u-primary) 82%,#3c276f 18%))!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:0 5px 18px rgba(12,28,47,.12)!important;position:sticky!important;top:0!important;z-index:50!important}
body.release-487 .topbar-identity b{font-size:13.5px!important;color:#fff!important}.release-487 .topbar-identity small{font-size:8.5px!important;color:rgba(255,255,255,.70)!important}.release-487 .topbar-identity span{font-size:9px!important;color:rgba(255,255,255,.58)!important}
body.release-487 .portal-top-actions>a,body.release-487 .portal-top-actions summary,body.release-487 .esc-back,body.release-487 .sidebar-toggle{min-height:38px!important;border-radius:10px!important;background:rgba(255,255,255,.96)!important;color:#15304b!important;font-size:11px!important;font-weight:800!important;border:1px solid rgba(255,255,255,.18)!important}
body.release-487 .portal-content{padding:16px 18px 30px!important;background:transparent!important;min-height:calc(100vh - 62px)!important}

/* ------------------------------
   Shared page workspace system
   ------------------------------ */
body.release-487 .dashboard,
body.release-487 .admin-page,
body.release-487 .alp457-member-dashboard,
body.release-487 .franchise-dashboard,
body.release-487 main.dashboard{max-width:1480px!important;margin:0 auto!important;color:var(--u-ink)!important}
body.release-487 .dash-head,
body.release-487 .network-head,
body.release-487 .alp481-hero,
body.release-487 .franchise-hero{
  min-height:auto!important;
  padding:24px 26px!important;
  border-radius:var(--u-radius)!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--module-accent) 88%,#0d1b2a 12%),color-mix(in srgb,var(--u-primary) 72%,#fff 28%))!important;
  color:#fff!important;
  box-shadow:var(--u-shadow)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  overflow:hidden!important;
  position:relative!important;
}
body.release-487 .dash-head::after,
body.release-487 .network-head::after,
body.release-487 .alp481-hero::after{content:"";position:absolute;right:-60px;top:-80px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--u-accent) 26%,transparent),transparent 70%);pointer-events:none}
body.release-487 .dash-head h1,
body.release-487 .network-head h1,
body.release-487 .alp481-hero h1{font-size:clamp(26px,2.1vw,36px)!important;line-height:1.08!important;letter-spacing:-.035em!important;color:#fff!important;margin:5px 0 8px!important}
body.release-487 .dash-head h1 em{color:var(--u-accent)!important;font-style:normal!important}
body.release-487 .dash-head p,
body.release-487 .network-head p,
body.release-487 .alp481-hero p{font-size:13.5px!important;line-height:1.55!important;color:rgba(255,255,255,.78)!important;max-width:780px!important}
body.release-487 .eyebrow,body.release-487 .alp457-kicker{font-size:9px!important;letter-spacing:.15em!important;font-weight:900!important;text-transform:uppercase!important;color:var(--u-accent)!important}
body.release-487 .control-card,
body.release-487 .glass-panel,
body.release-487 .alp457-paper,
body.release-487 .alp-card,
body.release-487 details.control-card{
  background:linear-gradient(180deg,rgba(255,255,255,.98),color-mix(in srgb,#fff 92%,var(--u-canvas) 8%))!important;
  color:var(--u-ink)!important;
  border:1px solid var(--u-line)!important;
  border-radius:var(--u-radius)!important;
  box-shadow:var(--u-shadow-soft)!important;
}
body.release-487 .control-card{padding:20px!important;margin-top:14px!important}
body.release-487 .control-card h2,body.release-487 .glass-panel h2,body.release-487 .alp457-paper h2{font-size:20px!important;line-height:1.18!important;color:var(--u-ink)!important;margin:4px 0 10px!important}
body.release-487 .control-card p,body.release-487 .glass-panel p,body.release-487 .alp457-paper p{font-size:13px!important;color:var(--u-muted)!important;line-height:1.55!important}
body.release-487 .notice{font-size:12.5px!important;line-height:1.5!important;padding:11px 13px!important;border-radius:11px!important;background:var(--u-soft-accent)!important;border:1px solid color-mix(in srgb,var(--u-accent) 25%,#fff 75%)!important;color:#574b22!important}
body.release-487 details>summary{font-size:13px!important;font-weight:850!important;color:var(--u-ink)!important;padding:12px 14px!important;border-radius:10px!important;cursor:pointer!important;background:var(--u-soft-primary)!important}
body.release-487 details[open]>summary{margin-bottom:14px!important}

/* Inputs / forms / buttons */
body.release-487 .form-grid,body.release-487 .journal-form,body.release-487 .product-master-form,body.release-487 .report-filter{gap:12px!important}
body.release-487 label{font-size:11.5px!important;font-weight:800!important;color:#31465c!important;letter-spacing:.01em!important}
body.release-487 :is(input,select,textarea){min-height:42px!important;border-radius:10px!important;border:1px solid #ccd7e2!important;background:#fff!important;color:var(--u-ink)!important;font-size:13px!important;padding:9px 11px!important;box-shadow:inset 0 1px 2px rgba(10,30,50,.02)!important}
body.release-487 textarea{min-height:110px!important}
body.release-487 :is(input,select,textarea):focus{border-color:var(--u-primary)!important;box-shadow:var(--u-focus)!important;outline:none!important}
body.release-487 .btn,body.release-487 .alp-btn,body.release-487 button.btn{min-height:40px!important;border-radius:10px!important;padding:9px 15px!important;font-size:11px!important;font-weight:900!important;letter-spacing:.02em!important;text-transform:none!important;box-shadow:none!important}
body.release-487 .btn.gold,body.release-487 .header-join{background:linear-gradient(135deg,var(--u-accent),color-mix(in srgb,var(--u-accent) 74%,#fff 26%))!important;color:#172438!important;border-color:transparent!important}
body.release-487 .btn.dark{background:var(--u-deep)!important;color:#fff!important;border-color:transparent!important}

/* Tables */
body.release-487 .table-wrap{border:1px solid var(--u-line)!important;border-radius:13px!important;background:#fff!important;overflow:auto!important}
body.release-487 table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;color:var(--u-ink)!important;font-size:12.5px!important}
body.release-487 table thead th{position:sticky!important;top:0!important;z-index:2!important;background:color-mix(in srgb,var(--u-primary) 8%,#fff 92%)!important;color:#18334e!important;font-size:10px!important;letter-spacing:.06em!important;text-transform:uppercase!important;padding:11px 12px!important;border-bottom:1px solid var(--u-line)!important}
body.release-487 table tbody td{padding:11px 12px!important;border-bottom:1px solid #edf1f5!important;color:#31465c!important;vertical-align:middle!important}
body.release-487 table tbody tr:hover td{background:color-mix(in srgb,var(--u-primary) 3%,#fff 97%)!important}

/* Route-specific identity, still driven by chosen theme */
body.release-487[data-route^="admin.products"]{--module-accent:color-mix(in srgb,var(--u-primary) 62%,#008f76 38%)}
body.release-487[data-route^="admin.orders"]{--module-accent:color-mix(in srgb,var(--u-primary) 58%,#2878c7 42%)}
body.release-487[data-route^="admin.members"]{--module-accent:color-mix(in srgb,var(--u-primary) 58%,#7a4fd1 42%)}
body.release-487[data-route^="admin.payout"],body.release-487[data-route^="admin.withdraw"]{--module-accent:color-mix(in srgb,var(--u-primary) 55%,#0aa277 45%)}
body.release-487[data-route^="admin.report"]{--module-accent:color-mix(in srgb,var(--u-primary) 60%,#2d83d3 40%)}
body.release-487[data-route^="admin.settings"],body.release-487[data-route^="admin.system"]{--module-accent:color-mix(in srgb,var(--u-primary) 74%,#48515e 26%)}
body.release-487[data-route^="admin.network"],body.release-487[data-route="network"]{--module-accent:color-mix(in srgb,var(--u-primary) 58%,#008b73 42%)}

/* ------------------------------
   Admin Command Centre — readable, reference-density without micro text
   ------------------------------ */
body.admin-portal.release-487 .portal-content:has(.alp484-admin-dashboard){padding:12px 14px 24px!important}
body.release-487 .alp484-admin-dashboard{max-width:none!important;display:grid!important;gap:10px!important}
body.release-487 .alp484-command-row{display:grid!important;grid-template-columns:1.05fr 1.05fr 1.05fr 1.5fr 1.45fr!important;gap:8px!important}
body.release-487 .alp484-command-card{min-height:84px!important;border-radius:13px!important;padding:11px 12px!important;box-shadow:var(--u-shadow-soft)!important;border:1px solid rgba(255,255,255,.15)!important;overflow:hidden!important}
body.release-487 .alp484-command-card .icon{width:36px!important;height:36px!important;border-radius:10px!important;font-size:17px!important}
body.release-487 .alp484-command-card small{font-size:11px!important;font-weight:850!important;color:#fff!important}.release-487 .alp484-command-card strong{font-size:24px!important;line-height:1!important}.release-487 .alp484-command-card li,.release-487 .alp484-command-card p,.release-487 .alp484-command-card em{font-size:9.5px!important;line-height:1.35!important}
body.release-487 .alp484-command-card.quick-create .mini-actions a,body.release-487 .alp484-command-card.top-reports .mini-actions a{min-height:30px!important;font-size:9px!important;border-radius:7px!important;padding:5px 7px!important}
body.release-487 .alp484-hero{min-height:96px!important;padding:17px 18px!important;border-radius:13px!important;background:linear-gradient(90deg,rgba(8,35,55,.90),rgba(10,65,76,.78)),url('/assets/alpline-mountain-forest.webp') center 46%/cover!important;color:#fff!important;box-shadow:var(--u-shadow-soft)!important;border:1px solid rgba(255,255,255,.14)!important}
body.release-487 .alp484-hero h1{font-size:29px!important;line-height:1!important;letter-spacing:-.035em!important;color:#fff!important}.release-487 .alp484-hero p{font-size:11.5px!important;color:rgba(255,255,255,.78)!important}.release-487 .alp484-hero .filters :is(a,button,select){min-height:32px!important;font-size:9px!important}
body.release-487 .alp484-primary-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}.release-487 .alp484-primary-kpis .kpi{min-height:88px!important;border-radius:12px!important;padding:11px 12px!important}.release-487 .alp484-primary-kpis small{font-size:9.5px!important}.release-487 .alp484-primary-kpis strong{font-size:23px!important}.release-487 .alp484-primary-kpis span{font-size:9px!important}
body.release-487 .alp484-secondary-kpis{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:5px!important}.release-487 .alp484-secondary-kpis .mini-kpi{min-height:70px!important;border-radius:11px!important;padding:9px 10px!important}.release-487 .mini-kpi small{font-size:8.8px!important}.release-487 .mini-kpi strong{font-size:16px!important}.release-487 .mini-kpi span{font-size:8.2px!important}
body.release-487 .alp484-intelligence-grid{display:grid!important;grid-template-columns:1.22fr 1.08fr .82fr!important;gap:9px!important;align-items:stretch!important}
body.release-487 .alp484-panel{background:linear-gradient(180deg,#fff,color-mix(in srgb,#fff 94%,var(--u-primary) 6%))!important;color:var(--u-ink)!important;border:1px solid var(--u-line)!important;border-radius:13px!important;box-shadow:var(--u-shadow-soft)!important;padding:12px!important;min-width:0!important}
body.release-487 .alp484-panel header{min-height:31px!important;margin-bottom:7px!important}.release-487 .alp484-panel header h2{font-size:12.5px!important;color:var(--u-ink)!important}.release-487 .alp484-panel header a{font-size:9px!important;color:var(--u-primary)!important}
body.release-487 .alp484-chart{height:215px!important;border-radius:10px!important;background:linear-gradient(180deg,var(--u-soft-primary),#fff)!important;border:1px solid var(--u-line)!important}
body.release-487 .alp484-chart .bar b{font-size:8.5px!important;color:var(--u-muted)!important}.release-487 .alp484-chart .bar span{background:linear-gradient(180deg,#57d887,#20b889)!important}
body.release-487 .alp485-member-line polyline{stroke:#f39a2f!important;stroke-width:2.2!important}.release-487 .alp485-member-line circle{fill:#fff!important;stroke:#f39a2f!important;stroke-width:1.2!important}
body.release-487 .chart-summary{gap:6px!important;margin-top:7px!important}.release-487 .chart-summary span{background:var(--u-soft-primary)!important;border:1px solid var(--u-line)!important;border-radius:9px!important;padding:8px!important}.release-487 .chart-summary small{font-size:8.7px!important}.release-487 .chart-summary b{font-size:14px!important;color:var(--u-ink)!important}
body.release-487 .alp484-panel.map{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr)!important;grid-template-rows:auto 1fr auto!important;column-gap:7px!important}.release-487 .alp484-panel.map>header{grid-column:1/-1!important}.release-487 .map-wrap{min-width:0!important}.release-487 .state-rank{min-width:0!important}
body.release-487 .india-coverage-map{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;background:transparent!important;border:0!important;padding:0!important}.release-487 .alp480-map-visual{background:linear-gradient(180deg,color-mix(in srgb,var(--u-primary) 92%,#091728 8%),color-mix(in srgb,var(--u-primary) 76%,#061b25 24%))!important;border-radius:10px!important;min-height:224px!important;border:1px solid color-mix(in srgb,var(--u-primary) 40%,#fff 60%)!important;overflow:hidden!important}.release-487 .alp480-map-title{color:#fff!important;padding:9px 11px!important}.release-487 .alp480-map-title b{font-size:11px!important}.release-487 .alp480-map-title small{font-size:8.5px!important;color:rgba(255,255,255,.68)!important}.release-487 .india-map-viewport{height:164px!important;display:grid!important;place-items:center!important}.release-487 .india-map-svg{width:100%!important;height:100%!important;filter:drop-shadow(0 9px 14px rgba(0,0,0,.18))!important}.release-487 .india-map-svg path:first-of-type{fill:color-mix(in srgb,var(--u-primary) 42%,#0ca587 58%)!important;stroke:#6fe7c7!important}.release-487 .india-marker circle{fill:var(--u-accent)!important;stroke:#fff!important;stroke-width:1.2!important}.release-487 .india-marker text{fill:#061f2c!important;font-size:6px!important;font-weight:900!important}.release-487 .alp480-map-totals{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4px!important;padding:6px!important;background:rgba(0,0,0,.13)!important}.release-487 .alp480-map-totals span{padding:5px!important;border-radius:7px!important;background:rgba(255,255,255,.07)!important;color:#fff!important}.release-487 .alp480-map-totals small{font-size:7.5px!important}.release-487 .alp480-map-totals b{font-size:12px!important}
body.release-487 .territory-summary{display:none!important}
body.release-487 .state-rank{background:var(--u-soft-primary)!important;border:1px solid var(--u-line)!important;border-radius:10px!important;padding:8px!important}.release-487 .state-rank h3{font-size:10px!important;color:var(--u-ink)!important;margin:0 0 6px!important}.release-487 .state-rank>div{font-size:8.7px!important;color:var(--u-muted)!important;border-bottom:1px solid var(--u-line)!important;padding:6px 0!important}.release-487 .state-rank>div b{width:21px!important;height:21px!important;font-size:8.5px!important;background:var(--u-primary)!important;color:#fff!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important}.release-487 .state-rank>div em{color:var(--u-ink)!important;font-style:normal!important;font-weight:800!important}
body.release-487 .map-summary{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5px!important;margin-top:6px!important}.release-487 .map-summary span{background:var(--u-soft-primary)!important;border:1px solid var(--u-line)!important;border-radius:9px!important;padding:7px!important}.release-487 .map-summary b{font-size:13px!important;color:var(--u-ink)!important}.release-487 .map-summary small{font-size:7.8px!important;color:var(--u-muted)!important}
body.release-487 .alp484-right-stack{gap:7px!important}.release-487 .alp484-right-stack .alp484-panel{padding:9px!important}.release-487 .member-core{gap:8px!important}.release-487 .donut{width:88px!important;height:88px!important}.release-487 .member-legend p{font-size:9px!important;color:var(--u-muted)!important}.release-487 .finance-grid,.release-487 .system-grid{gap:4px!important}.release-487 .finance-grid span,.release-487 .system-grid a{padding:7px!important;border-radius:8px!important;background:var(--u-soft-primary)!important;border:1px solid var(--u-line)!important}.release-487 .finance-grid small,.release-487 .system-grid span{font-size:7.8px!important}.release-487 .finance-grid b,.release-487 .system-grid b{font-size:10px!important;color:var(--u-ink)!important}
body.release-487 .alp484-operational-row,body.release-487 .alp484-bottom-grid{gap:9px!important}.release-487 .alp484-bottom-grid{grid-template-columns:1fr 1.15fr .95fr 1fr!important}.release-487 .order-cells a,.release-487 .product-cells a,.release-487 .quick-grid a,.release-487 .system-large a{border-radius:9px!important;border:1px solid var(--u-line)!important;background:var(--u-soft-primary)!important;color:var(--u-ink)!important}.release-487 .quick-grid a{min-height:64px!important;font-size:10px!important}.release-487 .quick-grid a span{font-size:9px!important}

/* ------------------------------
   Member & Franchise — same family, role-specific, lighter reading surfaces
   ------------------------------ */
body.member-portal.release-487 .alp481-command-strip,body.franchise-portal.release-487 .alp481-command-strip{gap:8px!important;grid-template-columns:1.05fr 1.05fr 1.05fr 1.35fr 1.35fr!important}.release-487 .alp481-command-strip>a,.release-487 .alp481-command-actions{min-height:84px!important;border-radius:13px!important;padding:11px 13px!important}.release-487 .alp481-command-strip small{font-size:10.5px!important}.release-487 .alp481-command-strip strong{font-size:22px!important}.release-487 .alp481-command-strip em{font-size:9.5px!important}
body.member-portal.release-487 .alp457-member-head{padding:22px 24px!important;min-height:112px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--u-primary) 86%,#17255e 14%),color-mix(in srgb,var(--u-primary) 64%,#fff 36%))!important}
body.member-portal.release-487 .alp457-member-head h1{font-size:32px!important;color:#fff!important}
body.member-portal.release-487 .alp457-kpi-grid.eight{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.release-487 .alp457-kpi-grid.eight article{min-height:105px!important;border-radius:13px!important;padding:13px!important}.release-487 .alp457-kpi-grid.eight small{font-size:10px!important}.release-487 .alp457-kpi-grid.eight strong{font-size:24px!important}.release-487 .alp457-kpi-grid.eight span{font-size:9.5px!important}
body.member-portal.release-487 .alp481-member-main-grid{grid-template-columns:1.05fr 1.12fr .82fr!important;gap:10px!important}.release-487 .alp481-member-main-grid>.alp457-paper{min-height:320px!important;padding:14px!important}.release-487 .alp457-bar-chart{height:205px!important;background:linear-gradient(180deg,var(--u-soft-primary),#fff)!important;border:1px solid var(--u-line)!important;border-radius:10px!important}.release-487 .alp457-income-lines>div{border-bottom:1px solid var(--u-line)!important;color:var(--u-muted)!important}.release-487 .alp457-income-lines b{color:var(--u-ink)!important}
body.member-portal.release-487 .alp481-member-secondary-grid{gap:10px!important}.release-487 .alp457-profile-card,.release-487 .alp457-kyc-card,.release-487 .alp481-team-growth-card{min-height:230px!important}
body.franchise-portal.release-487 .franchise-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}.release-487 .franchise-kpis article{background:var(--u-surface)!important;border:1px solid var(--u-line)!important;color:var(--u-ink)!important;border-radius:11px!important;padding:12px!important}.release-487 .franchise-kpis article small{font-size:8.8px!important}.release-487 .franchise-kpis article b{font-size:20px!important}

/* Genealogy / network */
body.release-487 .genealogy-command,body.release-487 .network-stage,body.release-487 .team-section{background:var(--u-surface)!important;border:1px solid var(--u-line)!important;border-radius:var(--u-radius)!important;box-shadow:var(--u-shadow-soft)!important;color:var(--u-ink)!important}
body.release-487 .genealogy-command .member-card,body.release-487 .genealogy-command article,body.release-487 .downline-node{background:#fff!important;border:1px solid var(--u-line)!important;border-top:3px solid var(--u-accent)!important;color:var(--u-ink)!important;border-radius:13px!important;box-shadow:0 5px 16px rgba(16,35,58,.06)!important}
body.release-487 .genealogy-command h2,body.release-487 .genealogy-command h3{color:var(--u-ink)!important}

/* ------------------------------
   Public website — compact premium composition, no giant hero
   ------------------------------ */
body.public-body.release-487{background:linear-gradient(180deg,#fff 0%,var(--u-canvas) 100%)!important;color:var(--u-ink)!important}
body.public-body.release-487 .utility-bar{display:none!important}
body.public-body.release-487 .site-header{position:sticky!important;top:0!important;z-index:60!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(16px)!important;border-bottom:1px solid var(--u-line)!important;box-shadow:0 8px 28px rgba(16,35,58,.06)!important}
body.public-body.release-487 .main-header{max-width:1480px!important;margin:auto!important;min-height:72px!important;padding:10px 20px!important;display:grid!important;grid-template-columns:auto 1fr auto!important;gap:20px!important;align-items:center!important}
body.public-body.release-487 .brand{min-width:250px!important;gap:10px!important}.release-487 .brand .crest img{width:46px!important;height:46px!important}.release-487 .brand b{font-size:24px!important;letter-spacing:.07em!important;color:var(--u-primary)!important}.release-487 .brand small{font-size:10px!important;color:var(--u-primary)!important}.release-487 .brand em{font-size:8.5px!important;color:#a76f00!important}
body.public-body.release-487 .primary-nav{display:flex!important;justify-content:center!important;gap:2px!important;border:0!important;background:transparent!important;padding:0!important}.release-487 .primary-nav a{padding:9px 10px!important;border-radius:9px!important;font-size:11.5px!important;font-weight:800!important;color:#385066!important}.release-487 .primary-nav a:hover,.release-487 .primary-nav a.active{background:var(--u-soft-primary)!important;color:var(--u-primary)!important}
body.public-body.release-487 .header-actions{gap:7px!important}.release-487 .header-actions summary,.release-487 .header-actions>a{min-height:38px!important;border-radius:10px!important;font-size:10.5px!important;padding:9px 13px!important}

/* new home hero */
body.public-body.release-487 .alp487-public-home{max-width:1480px!important;margin:0 auto!important;padding:18px 20px 50px!important}
body.public-body.release-487 .alp487-public-hero{display:grid!important;grid-template-columns:minmax(0,1.02fr) minmax(520px,.98fr)!important;min-height:510px!important;border-radius:24px!important;overflow:hidden!important;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--u-canvas) 78%,#fff 22%))!important;border:1px solid var(--u-line)!important;box-shadow:0 24px 60px rgba(16,35,58,.10)!important;position:relative!important}
body.public-body.release-487 .alp487-public-hero__copy{padding:56px 54px 38px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;position:relative!important;z-index:2!important}.release-487 .alp487-public-hero__copy::before{content:"";position:absolute;left:-110px;top:-120px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--u-accent) 16%,transparent),transparent 70%);z-index:-1}
body.public-body.release-487 .alp487-public-hero h1{margin:10px 0 18px!important;font-family:var(--theme-font)!important;font-size:clamp(48px,4.3vw,72px)!important;line-height:.98!important;letter-spacing:-.055em!important;color:var(--u-primary)!important;font-weight:850!important}.release-487 .alp487-public-hero h1 strong{display:block!important;color:color-mix(in srgb,var(--u-accent) 78%,#9f6c00 22%)!important;font-weight:850!important}
body.public-body.release-487 .alp487-public-hero .alp487-lead{font-size:16px!important;line-height:1.65!important;color:#52677a!important;max-width:680px!important;margin:0 0 24px!important}.release-487 .alp487-public-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}.release-487 .alp487-public-actions a{min-height:44px!important;padding:12px 17px!important;border-radius:11px!important;font-size:11px!important;font-weight:900!important;text-decoration:none!important}.release-487 .alp487-public-actions .primary{background:var(--u-primary)!important;color:#fff!important}.release-487 .alp487-public-actions .secondary{border:1px solid var(--u-line)!important;color:var(--u-primary)!important;background:#fff!important}
body.public-body.release-487 .alp487-public-hero__visual{position:relative!important;min-height:510px!important;overflow:hidden!important;background:var(--u-soft-primary)!important}.release-487 .alp487-public-hero__visual img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important}.release-487 .alp487-public-hero__visual::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.35) 18%,transparent 48%)!important}.release-487 .alp487-hero-badge{position:absolute!important;right:24px!important;top:24px!important;z-index:3!important;max-width:185px!important;padding:12px 14px!important;border-radius:14px!important;background:rgba(255,255,255,.88)!important;backdrop-filter:blur(10px)!important;border:1px solid rgba(255,255,255,.74)!important;box-shadow:0 12px 30px rgba(16,35,58,.12)!important}.release-487 .alp487-hero-badge b{display:block!important;font-size:11px!important;color:var(--u-primary)!important}.release-487 .alp487-hero-badge span{font-size:9.5px!important;color:var(--u-muted)!important}
body.public-body.release-487 .alp487-trust-row{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;margin:0!important;background:rgba(255,255,255,.95)!important;border-top:1px solid var(--u-line)!important}.release-487 .alp487-trust-row>div{padding:13px 16px!important;display:grid!important;grid-template-columns:32px 1fr!important;column-gap:8px!important;align-items:center!important;border-right:1px solid var(--u-line)!important}.release-487 .alp487-trust-row>div:last-child{border-right:0!important}.release-487 .alp487-trust-row i{grid-row:1/3!important;width:30px!important;height:30px!important;border-radius:9px!important;background:var(--u-soft-primary)!important;color:var(--u-primary)!important;display:grid!important;place-items:center!important;font-style:normal!important}.release-487 .alp487-trust-row b{font-size:11px!important;color:var(--u-ink)!important}.release-487 .alp487-trust-row small{font-size:9px!important;color:var(--u-muted)!important}

body.public-body.release-487 .alp457-public-home{max-width:1480px!important;margin:auto!important}
body.public-body.release-487 .alp457-public-hero{min-height:500px!important;border-radius:22px!important;margin:18px 20px!important;overflow:hidden!important}
body.public-body.release-487 .alp457-public-hero__copy{padding:48px!important;max-width:760px!important}.release-487 .alp457-public-hero h1{font-family:var(--theme-font)!important;font-size:clamp(44px,4.4vw,68px)!important;line-height:.98!important;letter-spacing:-.05em!important}.release-487 .alp457-public-hero .alp457-lead{font-size:15px!important;line-height:1.6!important;max-width:650px!important}
body.public-body.release-487 .alp457-public-section,body.public-body.release-487 .alp-section{padding:44px 20px!important}.release-487 .alp457-section-heading h2,.release-487 .alp-catalog-toolbar h2,.release-487 .alp-section h2{font-size:clamp(26px,2.4vw,36px)!important;line-height:1.08!important;letter-spacing:-.035em!important;color:var(--u-ink)!important}
body.public-body.release-487 .alp457-product-strip,body.public-body.release-487 .alp-product-grid{gap:12px!important}.release-487 .alp457-product-tile,.release-487 .alp-product-card{background:#fff!important;border:1px solid var(--u-line)!important;border-radius:16px!important;box-shadow:var(--u-shadow-soft)!important;overflow:hidden!important}.release-487 .alp457-product-tile__image,.release-487 .alp-product-image{background:linear-gradient(180deg,#fff,var(--u-soft-primary))!important;min-height:190px!important}.release-487 .alp457-product-tile h3,.release-487 .alp-product-card h3{font-size:16px!important;color:var(--u-ink)!important}.release-487 .alp457-product-tile p,.release-487 .alp-product-card p{font-size:12px!important;color:var(--u-muted)!important}
body.public-body.release-487 .alp-page-hero{padding:30px 20px!important;background:linear-gradient(135deg,var(--u-soft-primary),var(--u-soft-accent))!important;border-bottom:1px solid var(--u-line)!important}.release-487 .alp-page-hero .alp-shell{min-height:auto!important;align-items:center!important}.release-487 .alp-page-hero h1{font-size:clamp(34px,3.4vw,52px)!important;line-height:1!important;letter-spacing:-.045em!important;color:var(--u-primary)!important}.release-487 .alp-page-hero p{font-size:14px!important;line-height:1.6!important;color:var(--u-muted)!important;max-width:760px!important}.release-487 .alp-page-hero aside{border-radius:15px!important;background:#fff!important;border:1px solid var(--u-line)!important;padding:18px!important;box-shadow:var(--u-shadow-soft)!important}
body.public-body.release-487 .alp-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.public-body.release-487 .site-footer{background:linear-gradient(135deg,var(--u-deep),var(--u-deeper))!important;border-top:3px solid var(--u-accent)!important;color:#fff!important}.release-487 .site-footer a,.release-487 .site-footer p,.release-487 .site-footer span{color:rgba(255,255,255,.76)!important}.release-487 .site-footer strong{color:var(--u-accent)!important}

/* Login / recovery (existing markup, compact and premium) */
body.public-body.release-487 .login-shell{max-width:1240px!important;margin:26px auto!important;min-height:610px!important;border-radius:22px!important;overflow:hidden!important;display:grid!important;grid-template-columns:1.05fr .95fr!important;background:linear-gradient(135deg,var(--u-deep),color-mix(in srgb,var(--u-primary) 70%,#0b5b52 30%))!important;box-shadow:0 28px 70px rgba(16,35,58,.16)!important;border:1px solid var(--u-line)!important}.release-487 .login-shell>section{padding:50px!important}.release-487 .login-shell h1{font-size:clamp(42px,4vw,60px)!important;line-height:.98!important;letter-spacing:-.05em!important;color:#fff!important}.release-487 .login-shell h1 em{color:var(--u-accent)!important}.release-487 .login-card{padding:46px!important;background:#fff!important;color:var(--u-ink)!important}.release-487 .login-card h2{font-size:28px!important;color:var(--u-ink)!important}.release-487 .login-portal-grid>a{border-radius:13px!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(255,255,255,.04)!important}.release-487 .login-portal-grid>a.active{background:var(--u-soft-accent)!important;color:var(--u-ink)!important;border-color:var(--u-accent)!important}

/* Theme Studio preview reflects the entire platform */
body.release-487 .theme-studio{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:22px!important}.release-487 .theme-preview{min-height:110px!important;border-radius:16px!important;background:linear-gradient(135deg,var(--brand-primary),color-mix(in srgb,var(--brand-primary) 55%,var(--brand-canvas) 45%))!important;border:1px solid var(--u-line)!important;position:relative!important;overflow:hidden!important}.release-487 .theme-preview i{display:inline-block!important;width:44px!important;height:44px!important;border-radius:12px!important;margin:18px 6px!important}.release-487 .theme-preview i:nth-child(1){background:var(--brand-primary)!important;margin-left:18px!important}.release-487 .theme-preview i:nth-child(2){background:var(--brand-accent)!important}.release-487 .theme-preview i:nth-child(3){background:var(--brand-canvas)!important}.release-487 .theme-preview span{position:absolute!important;right:16px!important;bottom:14px!important;color:#fff!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important}

/* Print remains clean paper */
@media print{
  body.release-487 .portal-sidebar,body.release-487 .portal-topbar,body.release-487 .site-header,body.release-487 .site-footer,body.release-487 .quick-grid,body.release-487 .alp484-command-row{display:none!important}
  body.release-487,body.release-487 .portal-stage,body.release-487 .portal-content{background:#fff!important;color:#000!important;padding:0!important;margin:0!important}
  body.release-487 .control-card,body.release-487 .glass-panel,body.release-487 .alp457-paper{box-shadow:none!important;border:0!important;background:#fff!important}
}

/* Responsive */
@media (max-width:1250px){
  body.release-487 .portal-sidebar{width:228px!important}
  body.release-487 .alp484-command-row{grid-template-columns:repeat(3,1fr)!important}.release-487 .alp484-command-card.quick-create,.release-487 .alp484-command-card.top-reports{grid-column:auto!important}
  body.release-487 .alp484-primary-kpis{grid-template-columns:repeat(3,1fr)!important}.release-487 .alp484-secondary-kpis{grid-template-columns:repeat(4,1fr)!important}
  body.release-487 .alp484-intelligence-grid{grid-template-columns:1fr 1fr!important}.release-487 .alp484-right-stack{grid-column:1/-1!important;grid-template-columns:repeat(3,1fr)!important;display:grid!important}
  body.public-body.release-487 .alp487-public-hero{grid-template-columns:1fr 1fr!important}.release-487 .alp487-public-hero__copy{padding:42px 36px 30px!important}.release-487 .alp487-public-hero h1{font-size:52px!important}
}
@media (max-width:900px){
  body.release-487 .portal-sidebar{width:280px!important;max-width:86vw!important}
  body.release-487 .portal-content{padding:12px!important}
  body.release-487 .alp484-command-row{grid-template-columns:1fr 1fr!important}.release-487 .alp484-primary-kpis{grid-template-columns:1fr 1fr!important}.release-487 .alp484-secondary-kpis{grid-template-columns:1fr 1fr!important}.release-487 .alp484-intelligence-grid,.release-487 .alp484-bottom-grid,.release-487 .alp484-operational-row{grid-template-columns:1fr!important}.release-487 .alp484-right-stack{grid-template-columns:1fr!important;grid-column:auto!important}.release-487 .alp484-panel.map{grid-template-columns:1fr!important}.release-487 .state-rank{display:none!important}
  body.member-portal.release-487 .alp481-command-strip,body.franchise-portal.release-487 .alp481-command-strip{grid-template-columns:1fr 1fr!important}.release-487 .alp457-kpi-grid.eight{grid-template-columns:1fr 1fr!important}.release-487 .alp481-member-main-grid{grid-template-columns:1fr!important}
  body.public-body.release-487 .main-header{grid-template-columns:1fr auto!important}.release-487 .primary-nav{display:none!important}.release-487 .brand{min-width:0!important}.release-487 .brand em{display:none!important}
  body.public-body.release-487 .alp487-public-hero{grid-template-columns:1fr!important}.release-487 .alp487-public-hero__visual{min-height:340px!important;order:-1!important}.release-487 .alp487-public-hero__copy{padding:34px 28px!important}.release-487 .alp487-public-hero h1{font-size:46px!important}.release-487 .alp487-trust-row{grid-template-columns:1fr 1fr!important}.release-487 .alp-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.public-body.release-487 .login-shell{grid-template-columns:1fr!important;margin:14px!important}.release-487 .login-shell>section,.release-487 .login-card{padding:30px!important}
}
@media (max-width:560px){
  body.release-487{font-size:14px!important}
  body.release-487 .portal-topbar{height:56px!important;min-height:56px!important}.release-487 .topbar-identity{display:none!important}.release-487 .portal-top-actions>a:nth-of-type(n+2){display:none!important}
  body.release-487 .alp484-command-row,.release-487 .alp484-primary-kpis,.release-487 .alp484-secondary-kpis{grid-template-columns:1fr!important}.release-487 .alp484-command-card{min-height:76px!important}.release-487 .alp484-hero{min-height:88px!important}.release-487 .alp484-hero h1{font-size:24px!important}
  body.member-portal.release-487 .alp481-command-strip,body.franchise-portal.release-487 .alp481-command-strip,.release-487 .alp457-kpi-grid.eight{grid-template-columns:1fr!important}
  body.public-body.release-487 .alp487-public-home{padding:10px 10px 34px!important}.release-487 .alp487-public-hero{border-radius:18px!important}.release-487 .alp487-public-hero__visual{min-height:260px!important}.release-487 .alp487-public-hero__copy{padding:26px 20px!important}.release-487 .alp487-public-hero h1{font-size:38px!important}.release-487 .alp487-public-hero .alp487-lead{font-size:14px!important}.release-487 .alp487-trust-row{grid-template-columns:1fr!important}.release-487 .alp487-trust-row>div{border-right:0!important;border-bottom:1px solid var(--u-line)!important}.release-487 .alp-catalog-grid{grid-template-columns:1fr!important}
  body.public-body.release-487 .main-header{padding:8px 12px!important}.release-487 .brand b{font-size:20px!important}.release-487 .brand small{font-size:8.5px!important}
}

/* Public home secondary composition */
body.public-body.release-487 .alp457-public-grid{display:grid!important;grid-template-columns:1.08fr .92fr!important;gap:14px!important;padding:14px 20px!important;max-width:1480px!important;margin:0 auto!important}
body.public-body.release-487 .alp457-opportunity-card,
body.public-body.release-487 .alp457-strength-card,
body.public-body.release-487 .alp457-benefits-card,
body.public-body.release-487 .alp457-franchise-card{border-radius:20px!important;border:1px solid var(--u-line)!important;box-shadow:var(--u-shadow-soft)!important;padding:28px!important;overflow:hidden!important;min-height:300px!important}
body.public-body.release-487 .alp457-opportunity-card{background:linear-gradient(135deg,color-mix(in srgb,var(--u-primary) 8%,#fff 92%),#fff)!important}
body.public-body.release-487 .alp457-strength-card{background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--u-accent) 10%,#fff 90%))!important}
body.public-body.release-487 .alp457-benefits-card{background:#fff!important}
body.public-body.release-487 .alp457-franchise-card{background:linear-gradient(135deg,color-mix(in srgb,var(--u-primary) 10%,#fff 90%),color-mix(in srgb,var(--u-accent) 7%,#fff 93%))!important}
body.public-body.release-487 :is(.alp457-opportunity-card,.alp457-strength-card,.alp457-benefits-card,.alp457-franchise-card) h2{font-family:var(--theme-font)!important;font-size:clamp(27px,2.4vw,38px)!important;line-height:1.05!important;letter-spacing:-.04em!important;color:var(--u-primary)!important;margin:8px 0 16px!important}
body.public-body.release-487 :is(.alp457-opportunity-card,.alp457-strength-card,.alp457-benefits-card,.alp457-franchise-card) p,
body.public-body.release-487 :is(.alp457-opportunity-card,.alp457-strength-card,.alp457-benefits-card,.alp457-franchise-card) li{font-size:13px!important;line-height:1.55!important;color:var(--u-muted)!important}
body.public-body.release-487 .alp457-strength-grid,body.public-body.release-487 .alp457-benefit-row{gap:10px!important}
body.public-body.release-487 .alp457-strength-grid>div,body.public-body.release-487 .alp457-benefit-row>div{background:#fff!important;border:1px solid var(--u-line)!important;border-radius:13px!important;padding:13px!important;box-shadow:0 4px 12px rgba(16,35,58,.04)!important}
body.public-body.release-487 .alp457-strength-grid b,body.public-body.release-487 .alp457-benefit-row b{font-size:12px!important;color:var(--u-ink)!important}.release-487 .alp457-strength-grid small,.release-487 .alp457-benefit-row small{font-size:9.5px!important;color:var(--u-muted)!important}

/* Generic admin module pages: clear visual signatures without giant heroes */
body.admin-portal.release-487 .admin-page>.dash-head{margin-bottom:12px!important}
body.admin-portal.release-487 .admin-page>.dash-head .identity{min-width:190px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:13px!important;padding:12px!important}.release-487 .admin-page>.dash-head .identity small{font-size:8.5px!important;color:rgba(255,255,255,.62)!important}.release-487 .admin-page>.dash-head .identity b{font-size:22px!important;color:#fff!important}.release-487 .admin-page>.dash-head .identity span{font-size:9px!important;color:rgba(255,255,255,.72)!important}
body.admin-portal.release-487 .report-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}.release-487 .report-kpis article{min-height:92px!important;border-radius:13px!important;background:linear-gradient(180deg,#fff,var(--u-soft-primary))!important;border:1px solid var(--u-line)!important;box-shadow:var(--u-shadow-soft)!important;padding:13px!important}.release-487 .report-kpis small{font-size:9.5px!important;color:var(--u-muted)!important}.release-487 .report-kpis b{font-size:20px!important;color:var(--u-primary)!important}.release-487 .report-kpis span{font-size:9px!important;color:var(--u-muted)!important}
body.admin-portal.release-487 .report-grid{gap:10px!important}
body.admin-portal.release-487 .product-master-page .media-capability-strip{border-radius:12px!important;border:1px solid var(--u-line)!important;background:var(--u-soft-primary)!important;color:var(--u-ink)!important;padding:12px!important;margin:10px 0!important}
body.admin-portal.release-487 .product-master-page .product-card,body.admin-portal.release-487 .product-master-page article.product{border-radius:14px!important;border:1px solid var(--u-line)!important;background:#fff!important;box-shadow:var(--u-shadow-soft)!important}

/* Status & badges */
body.release-487 .status{border-radius:999px!important;padding:5px 9px!important;font-size:9px!important;font-weight:900!important;letter-spacing:.04em!important}.release-487 .status.active{background:#dff8ed!important;color:#087455!important}.release-487 .status.pending{background:#fff1c9!important;color:#8c5b00!important}.release-487 .status.danger,.release-487 .status.error{background:#ffe1e4!important;color:#a71d35!important}
body.release-487 .flash{border-radius:12px!important;font-size:12px!important;padding:11px 14px!important;box-shadow:var(--u-shadow-soft)!important}

@media (max-width:900px){
  body.public-body.release-487 .alp457-public-grid{grid-template-columns:1fr!important;padding:10px!important}
  body.admin-portal.release-487 .report-kpis{grid-template-columns:repeat(2,1fr)!important}
}
