/* ALPLINE 4.0.83 — Reference-density dashboard polish
   Visual layer only. Business plan, calculations, permissions, APIs and data remain unchanged. */

@media screen {
:root{
  --r483-bg:#031a2c;
  --r483-bg2:#06253d;
  --r483-panel:#082b47;
  --r483-panel2:#0b3555;
  --r483-line:rgba(125,192,232,.17);
  --r483-text:#f5fbff;
  --r483-muted:#9fc2d7;
  --r483-cyan:#23d9e5;
  --r483-green:#22d79d;
  --r483-gold:#ffc341;
  --r483-blue:#2f94ff;
  --r483-violet:#8b56ff;
  --r483-pink:#ef4e7f;
  --r483-orange:#ff8b22;
}

/* Reference font + density */
html body.portal-body.release-483{
  font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif!important;
  font-size:12px!important;
  background:var(--r483-bg)!important;
  color:var(--r483-text)!important;
}
html body.portal-body.release-483 *{box-sizing:border-box}
html body.portal-body.release-483 .portal-shell{background:var(--r483-bg)!important}

/* 258px desktop rail, as in the locked reference */
html body.portal-body.release-483 .portal-sidebar{
  width:258px!important;
  background:linear-gradient(180deg,#04162a 0%,#061e34 52%,#031426 100%)!important;
  border-right:1px solid rgba(95,174,224,.16)!important;
  box-shadow:10px 0 28px rgba(0,0,0,.18)!important;
}
html body.portal-body.release-483 .portal-brand{
  margin:8px 9px 7px!important;padding:8px 10px!important;min-height:62px!important;
  border-radius:10px!important;background:rgba(255,255,255,.025)!important;border-color:rgba(255,255,255,.08)!important;
}
html body.portal-body.release-483 .portal-brand img{width:45px!important;height:45px!important;border-radius:9px!important}
html body.portal-body.release-483 .portal-brand b{font-size:22px!important;line-height:1!important;letter-spacing:.035em!important}
html body.portal-body.release-483 .portal-brand small{font-size:8px!important;letter-spacing:.17em!important;margin-top:4px!important}
html body.portal-body.release-483 .live-data-badge{margin:4px 10px 7px!important;min-height:31px!important;padding:6px 10px!important;font-size:9px!important}
html body.portal-body.release-483 .portal-nav-label{margin:7px 13px 4px!important;font-size:8px!important;letter-spacing:.13em!important}
html body.portal-body.release-483 .portal-nav{padding:0 7px!important}
html body.portal-body.release-483 .portal-nav>a,
html body.portal-body.release-483 .portal-nav>form button,
html body.portal-body.release-483 .portal-nav-group>summary{
  min-height:35px!important;margin:1px 0!important;padding:5px 7px!important;border-radius:7px!important;
  font-size:11px!important;line-height:1.08!important;font-weight:700!important;
}
html body.portal-body.release-483 .portal-nav i,
html body.portal-body.release-483 .portal-nav-group>summary i{
  width:25px!important;height:25px!important;border-radius:6px!important;font-size:11px!important;flex:0 0 25px!important;
  background:linear-gradient(145deg,rgba(38,144,255,.42),rgba(31,211,178,.24))!important;
}
html body.portal-body.release-483 .portal-nav-group{margin:1px 7px!important}
html body.portal-body.release-483 .portal-nav-group .portal-nav{padding:1px 0 5px 8px!important;margin-left:11px!important}
html body.portal-body.release-483 .portal-nav-group .portal-nav>a{min-height:30px!important;padding:4px 6px!important;font-size:10px!important}
html body.portal-body.release-483 .portal-nav-group>summary b{font-size:12px!important}
html body.portal-body.release-483 .portal-public-link{margin:7px 10px 12px!important;padding:8px 10px!important;font-size:9px!important;border-radius:7px!important}

/* compact 56px command bar */
html body.portal-body.release-483 .portal-stage{background:#eaf0f6!important}
html body.portal-body.release-483 .portal-topbar{
  min-height:56px!important;height:56px!important;padding:6px 11px!important;gap:9px!important;
  background:linear-gradient(90deg,#041a30,#07365c 58%,#052744)!important;
  box-shadow:0 5px 14px rgba(1,20,36,.22)!important;
}
html body.portal-body.release-483 .topbar-identity{padding-left:10px!important;min-width:190px!important}
html body.portal-body.release-483 .topbar-identity small{font-size:8px!important;letter-spacing:.12em!important}
html body.portal-body.release-483 .topbar-identity b{font-size:12px!important;line-height:1.1!important}
html body.portal-body.release-483 .portal-topbar .vip-command__trigger{min-height:36px!important;height:36px!important;border-radius:7px!important;font-size:11px!important}
html body.portal-body.release-483 .portal-top-actions{gap:5px!important}
html body.portal-body.release-483 .portal-top-actions>a,
html body.portal-body.release-483 .portal-top-actions>form button,
html body.portal-body.release-483 .portal-top-actions>details>summary{
  min-height:34px!important;height:34px!important;padding:0 10px!important;border-radius:7px!important;font-size:10px!important;
}

/* Dashboard full-dark intelligence canvas */
html body.portal-body.release-483 .alp481-command{
  padding:8px!important;min-height:calc(100vh - 56px)!important;
  background:
    radial-gradient(circle at 73% 6%,rgba(28,123,205,.15),transparent 25%),
    radial-gradient(circle at 18% 12%,rgba(21,188,162,.09),transparent 22%),
    linear-gradient(180deg,#031a2c 0%,#05233a 58%,#03192a 100%)!important;
}

/* top action row: 5 slim blocks */
html body.portal-body.release-483 .alp481-command-strip{
  display:grid!important;grid-template-columns:1.05fr 1.05fr 1.15fr 1.45fr 1.45fr!important;
  gap:7px!important;margin:0 0 7px!important;
}
html body.portal-body.release-483 .alp481-command-strip>a,
html body.portal-body.release-483 .alp481-command-actions{
  min-height:72px!important;height:72px!important;padding:8px 9px!important;gap:7px!important;border-radius:8px!important;
  box-shadow:0 7px 17px rgba(0,0,0,.2)!important;
}
html body.portal-body.release-483 .alp481-command-icon{width:30px!important;height:30px!important;min-width:30px!important;border-radius:6px!important;font-size:15px!important}
html body.portal-body.release-483 .alp481-command-strip small,
html body.portal-body.release-483 .alp481-command-actions>small{font-size:10px!important;line-height:1!important}
html body.portal-body.release-483 .alp481-command-strip strong{font-size:19px!important;margin-top:1px!important}
html body.portal-body.release-483 .alp481-command-strip em{font-size:8.5px!important;margin-top:2px!important;line-height:1.15!important}
html body.portal-body.release-483 .alp481-command-actions>div{gap:5px!important;margin-top:5px!important}
html body.portal-body.release-483 .alp481-command-actions>div>a{min-height:24px!important;padding:4px 6px!important;border-radius:5px!important;font-size:9px!important}

/* reference-like 78px hero with mountain/botanical layer */
html body.portal-body.release-483 .alp481-command .alp481-hero{
  min-height:78px!important;height:auto!important;padding:10px 14px!important;margin:0 0 7px!important;border-radius:8px!important;
  background:
    linear-gradient(90deg,rgba(3,23,40,.96) 0%,rgba(4,37,62,.88) 47%,rgba(5,47,70,.56) 72%,rgba(3,23,40,.88) 100%),
    url('alpline-mountain-forest.webp') center 52%/cover no-repeat!important;
  box-shadow:0 7px 18px rgba(0,0,0,.23)!important;
}
html body.portal-body.release-483 .alp481-command .alp481-hero h1{font-size:28px!important;line-height:.98!important;margin:2px 0 3px!important;letter-spacing:-.035em!important}
html body.portal-body.release-483 .alp481-command .alp481-hero p:not(.alp457-kicker){font-size:10.5px!important;line-height:1.3!important}
html body.portal-body.release-483 .alp481-command .alp457-kicker{font-size:8px!important;letter-spacing:.14em!important}
html body.portal-body.release-483 .alp481-command .alp481-hero .alp457-admin-head__meta,
html body.portal-body.release-483 .alp481-command .alp481-hero .alp457-member-head__meta,
html body.portal-body.release-483 .alp481-command .alp481-hero .alp457-franchise-identity{
  padding:6px 8px!important;border-radius:6px!important;font-size:9px!important;gap:6px!important;
}
html body.portal-body.release-483 .alp481-command .alp481-hero .alp457-admin-head__meta a,
html body.portal-body.release-483 .alp481-command .alp481-hero .alp457-member-head__meta a{font-size:9px!important}

/* 12 live KPIs = 6 x 2 on normal desktop, not 4 x 3 */
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid{gap:7px!important;margin:0 0 7px!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid.twelve{grid-template-columns:repeat(6,minmax(0,1fr))!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid.eight{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid>a,
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid>article{
  min-height:78px!important;height:78px!important;padding:9px 10px!important;border-radius:8px!important;
  box-shadow:0 7px 16px rgba(0,0,0,.19)!important;
}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid small{font-size:9.5px!important;line-height:1.05!important;font-weight:750!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid strong{font-size:20px!important;line-height:1!important;margin-top:8px!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid span{font-size:8px!important;line-height:1.05!important;bottom:7px!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid i{width:31px!important;height:31px!important;border-radius:6px!important;font-size:15px!important;right:8px!important;top:8px!important}
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid>a:after,
html body.portal-body.release-483 .alp481-command .alp457-kpi-grid>article:after{width:62px!important;height:62px!important;right:-19px!important;top:-22px!important}

/* report chips exactly compact */
html body.portal-body.release-483 .alp481-report-heads{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:5px!important;margin:0 0 7px!important;
}
html body.portal-body.release-483 .alp481-report-heads a{min-height:31px!important;padding:6px 8px!important;border-radius:6px!important;font-size:8.5px!important}

/* core BI cards */
html body.portal-body.release-483 .alp481-dashboard-grid{grid-template-columns:1.08fr 1.12fr .78fr!important;gap:7px!important;margin-bottom:7px!important}
html body.portal-body.release-483 .alp481-middle-grid{grid-template-columns:.92fr .92fr 1.16fr!important;gap:7px!important;margin-bottom:7px!important}
html body.portal-body.release-483 .alp481-lower-grid{grid-template-columns:1.55fr .75fr!important;gap:7px!important}
html body.portal-body.release-483 .alp481-member-main-grid,
html body.portal-body.release-483 .alp481-franchise-main-grid{grid-template-columns:1.05fr 1.15fr .8fr!important;gap:7px!important;margin-bottom:7px!important}
html body.portal-body.release-483 .alp481-member-secondary-grid{grid-template-columns:1fr 1fr 1fr!important;gap:7px!important;margin-bottom:7px!important}
html body.portal-body.release-483 .alp481-command .alp457-paper{
  border-radius:8px!important;padding:10px!important;box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
  background:linear-gradient(160deg,#082b47,#061f36)!important;
}
html body.portal-body.release-483 .alp481-command .alp457-paper>header{padding:0 0 7px!important;margin-bottom:7px!important;min-height:32px!important}
html body.portal-body.release-483 .alp481-command .alp457-paper>header h2,
html body.portal-body.release-483 .alp481-command .alp457-paper h2{font-size:14px!important;line-height:1.05!important;margin:2px 0!important;color:#fff!important}
html body.portal-body.release-483 .alp481-command .alp457-paper>header a,
html body.portal-body.release-483 .alp481-command .alp457-text-link{font-size:8.5px!important;color:#66d9ff!important}
html body.portal-body.release-483 .alp481-command .alp457-paper p,
html body.portal-body.release-483 .alp481-command .alp457-paper small{font-size:8.5px!important;color:#9fc1d6!important}

/* chart density */
html body.portal-body.release-483 .alp457-bar-chart{height:178px!important;min-height:178px!important;padding:8px 7px 3px!important;border-radius:7px!important}
html body.portal-body.release-483 .alp457-bar-chart>div b{font-size:7.5px!important}
html body.portal-body.release-483 .alp481-mini-stats{gap:5px!important;margin-top:6px!important}
html body.portal-body.release-483 .alp481-mini-stats>span{padding:6px 7px!important;border-radius:6px!important}
html body.portal-body.release-483 .alp481-mini-stats small{font-size:7.5px!important}
html body.portal-body.release-483 .alp481-mini-stats b{font-size:14px!important}

/* Live India intelligence map: full dark surface; remove the white placeholder feel */
html body.portal-body.release-483 .alp481-map-card{min-height:302px!important}
html body.portal-body.release-483 .alp480-india-map{
  min-height:238px!important;display:grid!important;grid-template-columns:minmax(0,1.22fr) minmax(170px,.78fr)!important;
  gap:7px!important;padding:7px!important;border-radius:7px!important;background:linear-gradient(145deg,#031a2c,#063552)!important;
}
html body.portal-body.release-483 .alp480-map-visual{padding:4px!important;border-radius:7px!important;background:radial-gradient(circle at 52% 45%,rgba(25,211,189,.18),transparent 46%),#041d31!important}
html body.portal-body.release-483 .alp480-map-title{padding:6px 7px!important;border-radius:6px!important;background:rgba(3,20,34,.82)!important}
html body.portal-body.release-483 .alp480-map-title b{font-size:10px!important}
html body.portal-body.release-483 .alp480-map-title small{font-size:7.5px!important}
html body.portal-body.release-483 .india-map-viewport{min-height:174px!important;height:174px!important;background:radial-gradient(circle at 52% 45%,rgba(29,211,187,.10),transparent 52%),linear-gradient(180deg,#041a2c,#062840)!important;border-radius:6px!important;overflow:hidden!important}
html body.portal-body.release-483 .india-map-svg{height:184px!important;width:100%!important;filter:drop-shadow(0 0 11px rgba(20,219,193,.17))!important}
html body.portal-body.release-483 .india-map-svg>path:first-of-type{fill:#087b75!important;stroke:#35e5bd!important;stroke-width:1.9!important}
html body.portal-body.release-483 .india-map-svg .india-islands{fill:#087b75!important;stroke:#35e5bd!important}
html body.portal-body.release-483 .india-marker circle{fill:#ffd33f!important;stroke:#fff4a7!important;filter:drop-shadow(0 0 4px #ffc62e)!important}
html body.portal-body.release-483 .alp480-map-totals{gap:4px!important;margin-top:4px!important}
html body.portal-body.release-483 .alp480-map-totals span{padding:4px!important;border-radius:5px!important}
html body.portal-body.release-483 .alp480-map-totals small{font-size:6.5px!important}
html body.portal-body.release-483 .alp480-map-totals b{font-size:11px!important}
html body.portal-body.release-483 .territory-summary{padding:4px!important;gap:4px!important;background:transparent!important;color:#eaf7ff!important}
html body.portal-body.release-483 .alp480-territory-head b{font-size:10px!important;color:#fff!important}
html body.portal-body.release-483 .alp480-territory-head small{font-size:7px!important}
html body.portal-body.release-483 .territory-summary article{padding:5px 6px!important;min-height:32px!important;border-radius:5px!important;background:rgba(255,255,255,.045)!important}
html body.portal-body.release-483 .territory-summary article b{font-size:8px!important;color:#fff!important}
html body.portal-body.release-483 .territory-summary article small{font-size:6.5px!important;color:#9fc1d6!important}
html body.portal-body.release-483 .territory-summary article strong{font-size:11px!important;color:#fff!important}
html body.portal-body.release-483 .alp480-map-note{padding:6px!important;font-size:6.8px!important;line-height:1.35!important;background:rgba(255,255,255,.035)!important;color:#9fc1d6!important}

/* member donut / finance stack */
html body.portal-body.release-483 .alp457-donut{width:126px!important;height:126px!important;margin:8px auto!important}
html body.portal-body.release-483 .alp457-donut:before{inset:18px!important}
html body.portal-body.release-483 .alp457-donut span b{font-size:20px!important}
html body.portal-body.release-483 .alp457-donut span small{font-size:7px!important}
html body.portal-body.release-483 .alp457-donut-legend{font-size:8px!important;gap:8px!important}
html body.portal-body.release-483 .alp481-finance-stack{gap:5px!important;margin-top:6px!important}
html body.portal-body.release-483 .alp481-finance-stack a{padding:6px!important;border-radius:5px!important}
html body.portal-body.release-483 .alp481-finance-stack small{font-size:7px!important}
html body.portal-body.release-483 .alp481-finance-stack b{font-size:13px!important}

/* Quick Actions: reference uses compact colourful operational tiles, not giant white cards */
html body.portal-body.release-483 .alp457-action-grid.admin-actions,
html body.portal-body.release-483 .alp457-action-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid a{
  min-height:56px!important;height:56px!important;padding:7px!important;border-radius:7px!important;color:#fff!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  background:linear-gradient(145deg,#0b6f55,#084b3d)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:none!important;
}
html body.portal-body.release-483 .alp481-command .alp457-action-grid a:nth-child(6n+2){background:linear-gradient(145deg,#165eae,#103d72)!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid a:nth-child(6n+3){background:linear-gradient(145deg,#7349c9,#42277d)!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid a:nth-child(6n+4){background:linear-gradient(145deg,#d47518,#813f0d)!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid a:nth-child(6n+5){background:linear-gradient(145deg,#087a8b,#07505e)!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid a:nth-child(6n){background:linear-gradient(145deg,#b32957,#711835)!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid i{font-size:16px!important;line-height:1!important}
html body.portal-body.release-483 .alp481-command .alp457-action-grid span{font-size:8.5px!important;color:#fff!important;font-weight:800!important}

/* dense tables / pending work */
html body.portal-body.release-483 .alp457-table-wrap{border-radius:6px!important}
html body.portal-body.release-483 .alp457-table-wrap table{font-size:8.5px!important}
html body.portal-body.release-483 .alp457-table-wrap th{font-size:7.5px!important;padding:6px 7px!important;letter-spacing:.05em!important}
html body.portal-body.release-483 .alp457-table-wrap td{padding:6px 7px!important}
html body.portal-body.release-483 .alp457-stat-list{gap:5px!important}
html body.portal-body.release-483 .alp457-stat-list>div{padding:7px!important;border-radius:6px!important;min-height:48px!important}
html body.portal-body.release-483 .alp457-stat-list small{font-size:7px!important}
html body.portal-body.release-483 .alp457-stat-list b{font-size:16px!important}

/* Member / Franchise dashboards inherit the same density but retain role identity. */
html body.member-portal.release-483 .alp481-command{background:linear-gradient(180deg,#071c31,#0b2945 56%,#071a2d)!important}
html body.franchise-portal.release-483 .alp481-command{background:linear-gradient(180deg,#071a28,#0b2c3a 54%,#071824)!important}
html body.member-portal.release-483 .alp481-command .alp481-hero{background:linear-gradient(90deg,rgba(19,25,67,.96),rgba(37,60,129,.80),rgba(6,81,83,.63)),url('alpline-mountain-forest.webp') center/cover no-repeat!important}
html body.franchise-portal.release-483 .alp481-command .alp481-hero{background:linear-gradient(90deg,rgba(38,25,12,.94),rgba(10,72,78,.86),rgba(5,44,65,.72)),url('alpline-mountain-forest.webp') center/cover no-repeat!important}
html body.member-portal.release-483 .member-preview-banner{min-height:38px!important;padding:7px 12px!important;font-size:9px!important}

/* Genealogy / level pages: keep white working paper but reference-scale typography. */
html body.portal-body.release-483 .genealogy-command,
html body.portal-body.release-483 .genealogy-panel,
html body.portal-body.release-483 .team-level-navigator{
  border-radius:9px!important;box-shadow:0 7px 18px rgba(5,37,60,.08)!important;
}
html body.portal-body.release-483 .genealogy-command h1,
html body.portal-body.release-483 .genealogy-panel h2{font-size:22px!important;line-height:1.05!important}
html body.portal-body.release-483 .genealogy-direct-card,
html body.portal-body.release-483 .genealogy-sponsor{width:142px!important;min-width:142px!important;max-width:142px!important;padding:10px!important;border-radius:9px!important}
html body.portal-body.release-483 .team-level-navigator__paid{gap:6px!important}
html body.portal-body.release-483 .team-level-navigator__paid a{min-height:60px!important;padding:7px!important;border-radius:7px!important}

/* Non-dashboard module pages: slightly denser, clearer than 4.0.82 */
html body.portal-body.release-483 .portal-content>main:not(.alp481-command){padding:14px!important;min-height:calc(100vh - 56px)!important}
html body.portal-body.release-483 .portal-content :is(.dash-head,.admin-console-head,.network-head,.update-hero){padding:16px 18px!important;margin-bottom:10px!important;border-radius:10px!important}
html body.portal-body.release-483 .portal-content :is(.dash-head,.admin-console-head,.network-head,.update-hero) h1{font-size:30px!important;line-height:1!important}
html body.portal-body.release-483 .portal-content .control-card{padding:12px!important;border-radius:9px!important;margin-top:8px!important}
html body.portal-body.release-483 .portal-content .control-card h2{font-size:18px!important}
html body.portal-body.release-483 input,
html body.portal-body.release-483 select,
html body.portal-body.release-483 textarea{font-size:11px!important;border-radius:7px!important}
html body.portal-body.release-483 .btn{font-size:9px!important;border-radius:6px!important}
}

/* Prevent the older <=1500 rules from expanding the dashboard vertically on 1366–1920 desktops. */
@media screen and (min-width:1180px){
  html body.portal-body.release-483 .alp481-command-strip{grid-template-columns:1.05fr 1.05fr 1.15fr 1.45fr 1.45fr!important}
  html body.portal-body.release-483 .alp481-command .alp457-kpi-grid.twelve{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-report-heads{grid-template-columns:repeat(8,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-dashboard-grid{grid-template-columns:1.08fr 1.12fr .78fr!important}
  html body.portal-body.release-483 .alp481-dashboard-grid>article:last-child{grid-column:auto!important}
  html body.portal-body.release-483 .alp481-member-main-grid,
  html body.portal-body.release-483 .alp481-franchise-main-grid{grid-template-columns:1.05fr 1.15fr .8fr!important}
  html body.portal-body.release-483 .alp481-member-main-grid>article:last-child,
  html body.portal-body.release-483 .alp481-franchise-main-grid>article:last-child{grid-column:auto!important}
  html body.portal-body.release-483 .alp481-member-secondary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-member-secondary-grid>article:last-child{grid-column:auto!important}
}

/* Tablet */
@media screen and (max-width:1179px) and (min-width:761px){
  html body.portal-body.release-483 .portal-sidebar{width:230px!important}
  html body.portal-body.release-483 .alp481-command-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-command .alp457-kpi-grid.twelve{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-report-heads{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-dashboard-grid,
  html body.portal-body.release-483 .alp481-member-main-grid,
  html body.portal-body.release-483 .alp481-franchise-main-grid{grid-template-columns:1fr 1fr!important}
  html body.portal-body.release-483 .alp481-dashboard-grid>article:last-child,
  html body.portal-body.release-483 .alp481-member-main-grid>article:last-child,
  html body.portal-body.release-483 .alp481-franchise-main-grid>article:last-child{grid-column:1/-1!important}
  html body.portal-body.release-483 .alp457-action-grid.admin-actions,
  html body.portal-body.release-483 .alp457-action-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* Mobile remains app-like, not squeezed desktop. */
@media screen and (max-width:760px){
  html body.portal-body.release-483{font-size:13px!important}
  html body.portal-body.release-483 .portal-sidebar{width:min(86vw,310px)!important}
  html body.portal-body.release-483 .portal-topbar{height:auto!important;min-height:54px!important;padding:7px!important}
  html body.portal-body.release-483 .topbar-identity{display:none!important}
  html body.portal-body.release-483 .alp481-command{padding:6px!important}
  html body.portal-body.release-483 .alp481-command-strip{grid-template-columns:1fr 1fr!important;gap:6px!important}
  html body.portal-body.release-483 .alp481-command-strip>a,
  html body.portal-body.release-483 .alp481-command-actions{height:auto!important;min-height:68px!important}
  html body.portal-body.release-483 .alp481-command .alp481-hero{min-height:94px!important;padding:12px!important}
  html body.portal-body.release-483 .alp481-command .alp481-hero h1{font-size:25px!important}
  html body.portal-body.release-483 .alp481-command .alp457-kpi-grid.twelve,
  html body.portal-body.release-483 .alp481-command .alp457-kpi-grid.eight{grid-template-columns:1fr 1fr!important;gap:6px!important}
  html body.portal-body.release-483 .alp481-command .alp457-kpi-grid>a,
  html body.portal-body.release-483 .alp481-command .alp457-kpi-grid>article{height:86px!important;min-height:86px!important}
  html body.portal-body.release-483 .alp481-report-heads{grid-template-columns:1fr 1fr!important}
  html body.portal-body.release-483 .alp481-dashboard-grid,
  html body.portal-body.release-483 .alp481-member-main-grid,
  html body.portal-body.release-483 .alp481-franchise-main-grid,
  html body.portal-body.release-483 .alp481-member-secondary-grid,
  html body.portal-body.release-483 .alp481-middle-grid,
  html body.portal-body.release-483 .alp481-lower-grid{grid-template-columns:1fr!important}
  html body.portal-body.release-483 .alp480-india-map{grid-template-columns:1fr!important}
  html body.portal-body.release-483 .india-map-viewport{height:220px!important;min-height:220px!important}
  html body.portal-body.release-483 .india-map-svg{height:225px!important}
  html body.portal-body.release-483 .alp457-action-grid.admin-actions,
  html body.portal-body.release-483 .alp457-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.portal-body.release-483 .alp481-command .alp457-action-grid a{height:62px!important;min-height:62px!important}
}

@media print{
  body.release-483 .portal-sidebar,
  body.release-483 .portal-topbar,
  body.release-483 .alp481-command-strip,
  body.release-483 .alp481-report-heads,
  body.release-483 .alp457-action-grid{display:none!important}
  body.release-483,body.release-483 .portal-stage,body.release-483 .portal-content,body.release-483 main,body.release-483 .control-card{background:#fff!important;color:#000!important;box-shadow:none!important}
}
