/* ALPLINE 4.0.17 — unified premium portal system
   Owner-approved direction: dark emerald navigation + clean white workspace + restrained gold/blue accents.
   Large dark/green hero panels are intentionally removed from internal work screens. */
.release-417{--ap17-deep:#073f30;--ap17-deep-2:#0a523f;--ap17-gold:#c8a13a;--ap17-blue:#2d72d9;--ap17-red:#c9505a;--ap17-ink:#12251f;--ap17-muted:#687972;--ap17-border:#dfe8e3;--ap17-canvas:#f7f9f8;--ap17-card:#fff;--ap17-shadow:0 10px 28px rgba(12,55,43,.07)}
.release-417.portal-body{background:var(--ap17-canvas)!important;color:var(--ap17-ink);font-size:16px}
.release-417 .portal-sidebar{width:270px!important;padding:20px 14px!important;background:linear-gradient(180deg,#062f25 0%,#073f30 48%,#062b22 100%)!important;box-shadow:10px 0 30px rgba(5,40,31,.08)}
.release-417 .portal-stage{margin-left:270px!important;background:var(--ap17-canvas)}
.release-417 .portal-brand{height:68px;margin:0 0 14px;padding:8px 10px}
.release-417 .portal-brand img{width:46px;height:46px;border:1px solid rgba(255,255,255,.22);box-shadow:0 4px 14px rgba(0,0,0,.15)}
.release-417 .portal-brand b{font-size:18px}.release-417 .portal-brand small{font-size:9px;color:#d7e5df}
.release-417 .live-data-badge{margin:0 8px 14px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.08)!important}
.release-417 .portal-nav-label{margin:18px 10px 7px;color:#a9c2b8;font-size:9px}
.release-417 .portal-nav{gap:3px}.release-417 .portal-nav a{min-height:43px;padding:7px 10px;border-radius:9px;color:#e3eee9;font-size:13.5px}
.release-417 .portal-nav a i{width:27px;height:27px;border-radius:8px;color:#e7c96f;background:rgba(255,255,255,.06)}
.release-417 .portal-nav a:hover{background:rgba(255,255,255,.08)}
.release-417 .portal-nav a.active{background:#f5f2e7!important;color:#152720!important;box-shadow:0 7px 18px rgba(0,0,0,.12)}
.release-417 .portal-nav a.active i{background:#ead9a1;color:#6c551a}
.release-417 .portal-nav-group summary{border-radius:9px!important;color:#e3eee9!important}
.release-417 .portal-public-link{border-radius:9px}
.release-417 .portal-topbar{height:74px!important;padding:0 26px!important;background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e8eeeb!important;box-shadow:0 4px 18px rgba(20,52,43,.035)}
.release-417 .topbar-identity small{font-size:9px;color:#687972}.release-417 .topbar-identity b{font-size:14px;color:#153229}
.release-417 .portal-top-actions{gap:10px}.release-417 .portal-top-actions>a,.release-417 .portal-top-actions summary{min-height:38px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid #e3e9e6;border-radius:10px;background:#fff;font-size:12px;color:#17362c;box-shadow:0 4px 12px rgba(13,51,40,.035)}
.release-417 .portal-content{padding:24px 26px 38px!important;background:var(--ap17-canvas)!important}
.release-417 .portal-content>main{max-width:1560px;margin:0 auto}

/* Every internal page gets the same calm header. */
.release-417 .portal-content .dash-head,
.release-417 .portal-content .admin-console-head,
.release-417 .portal-content .network-head,
.release-417 .seller-hero,
.release-417 .customer-hero,
.release-417 .franchise-hero{
  min-height:0!important;padding:24px 28px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:24px!important;align-items:center!important;
  border:1px solid var(--ap17-border)!important;border-radius:18px!important;background:linear-gradient(135deg,#fff 0%,#fbfcfb 72%,#f7f2df 100%)!important;color:var(--ap17-ink)!important;box-shadow:var(--ap17-shadow)!important
}
.release-417 .portal-content .dash-head h1,
.release-417 .portal-content .admin-console-head h1,
.release-417 .portal-content .network-head h1,
.release-417 .seller-hero h1,
.release-417 .customer-hero h1{margin:4px 0 7px!important;font-size:clamp(29px,3.4vw,43px)!important;line-height:1.04!important;color:#14291f!important;letter-spacing:-.035em!important}
.release-417 .portal-content .dash-head h1 em,
.release-417 .portal-content .admin-console-head h1 em,
.release-417 .portal-content .network-head h1 em,
.release-417 .seller-hero h1 em,
.release-417 .customer-hero h1 em{color:#0b6b50!important;font-style:normal}
.release-417 .portal-content .dash-head p:not(.eyebrow),
.release-417 .portal-content .admin-console-head p:not(.eyebrow),
.release-417 .portal-content .network-head p:not(.eyebrow),
.release-417 .seller-hero p,.release-417 .customer-hero p{max-width:850px!important;margin:0!important;color:#677871!important;font-size:14px!important;line-height:1.55!important}
.release-417 .portal-content .eyebrow,.release-417 .command-kicker{color:#997725!important;font-size:9.5px!important;font-weight:900!important;letter-spacing:.14em!important}
.release-417 .portal-content .identity,.release-417 .portal-content .root-id-card,.release-417 .portal-content .network-identity,.release-417 .seller-id,.release-417 .customer-hero aside{
 min-width:220px!important;padding:16px 18px!important;border:1px solid #eadba8!important;border-radius:14px!important;background:#fffaf0!important;color:#183329!important;box-shadow:none!important
}
.release-417 .portal-content .identity b,.release-417 .portal-content .root-id-card strong,.release-417 .seller-id b,.release-417 .customer-hero aside b{font-size:21px!important;color:#173329!important}
.release-417 .portal-content .root-id-card p{color:#6d776f!important;font-size:12px!important}.release-417 .portal-content .root-id-card a{color:#876b1e!important;font-size:10px!important;font-weight:900}

/* Approved executive overview from the visual reference. */
.release-417 .ap17-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:16px 0}
.release-417 .ap17-stat{min-height:108px;padding:18px;display:flex;align-items:center;gap:15px;border:1px solid var(--ap17-border);border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(15,57,45,.045)}
.release-417 .ap17-stat>i{width:50px;height:50px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;font-style:normal;font-size:22px;font-weight:900}
.release-417 .ap17-stat span{display:grid;min-width:0}.release-417 .ap17-stat small{font-size:10px;font-weight:850;color:#4e625b;letter-spacing:.05em}.release-417 .ap17-stat b{margin:3px 0;font-size:25px;color:#152a22;line-height:1}.release-417 .ap17-stat em{font-size:10px;color:#75867f;font-style:normal}
.release-417 .ap17-stat.mint{background:linear-gradient(145deg,#fff,#f1fbf6)}.release-417 .ap17-stat.mint>i{background:#dff4e9;color:#0b7b58}
.release-417 .ap17-stat.gold{background:linear-gradient(145deg,#fff,#fff8e8)}.release-417 .ap17-stat.gold>i{background:#f7e9bf;color:#9b7215}
.release-417 .ap17-stat.rose{background:linear-gradient(145deg,#fff,#fff1f3)}.release-417 .ap17-stat.rose>i{background:#f9dfe3;color:#b53d4b}
.release-417 .ap17-stat.blue{background:linear-gradient(145deg,#fff,#f0f6ff)}.release-417 .ap17-stat.blue>i{background:#deebff;color:#2b6dc9}
.release-417 .ap17-health-row{display:grid;grid-template-columns:1fr 1.08fr;gap:14px;margin:0 0 16px}
.release-417 .ap17-health-card,.release-417 .ap17-update-card{min-height:120px;padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--ap17-border);border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(15,57,45,.04)}
.release-417 .ap17-health-card h2,.release-417 .ap17-update-card h2{margin:2px 0 5px!important;font-size:17px!important;color:#173329}.release-417 .ap17-update-card p{margin:0;color:#6c7c75;font-size:11px}
.release-417 .ap17-update-card{border-color:#d9c171;background:linear-gradient(135deg,#fff,#fffdf5)}
.release-417 .ap17-health-pills{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.release-417 .ap17-health-pills span{padding:7px 9px;border-radius:999px;background:#f1f7f4;color:#31564a;font-size:9px;font-weight:800}.release-417 .ap17-health-pills span::first-letter{color:#0aa06a}

/* Existing functions remain below, but are compact and visually consistent. */
.release-417 .admin-quick-launch{margin-top:14px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.release-417 .admin-quick-launch>a{min-height:78px!important;padding:12px!important;border-radius:13px!important;background:#fff!important;border:1px solid var(--ap17-border)!important;box-shadow:none!important;color:#173329!important}
.release-417 .admin-quick-launch>a.primary{background:#f5faf7!important;border-color:#cde4d8!important}.release-417 .admin-quick-launch>a i{background:#edf6f2!important;color:#087052!important}.release-417 .admin-quick-launch>a b{font-size:11px!important}.release-417 .admin-quick-launch>a small{font-size:9px!important;color:#74857e!important}
.release-417 .admin-kpis,.release-417 .seller-kpis,.release-417 .customer-kpis,.release-417 .franchise-kpis{gap:11px!important}
.release-417 .admin-kpis article,.release-417 .seller-kpis article,.release-417 .customer-kpis article,.release-417 .franchise-kpis article{min-height:96px!important;padding:16px!important;border:1px solid var(--ap17-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 20px rgba(16,58,46,.04)!important;color:#173329!important}
.release-417 .admin-kpis article:nth-child(4n+1),.release-417 .seller-kpis article:nth-child(4n+1),.release-417 .customer-kpis article:nth-child(4n+1),.release-417 .franchise-kpis article:nth-child(4n+1){background:#f1fbf6!important}
.release-417 .admin-kpis article:nth-child(4n+2),.release-417 .seller-kpis article:nth-child(4n+2),.release-417 .customer-kpis article:nth-child(4n+2),.release-417 .franchise-kpis article:nth-child(4n+2){background:#fff9eb!important}
.release-417 .admin-kpis article:nth-child(4n+3),.release-417 .seller-kpis article:nth-child(4n+3),.release-417 .customer-kpis article:nth-child(4n+3),.release-417 .franchise-kpis article:nth-child(4n+3){background:#fff3f4!important}
.release-417 .admin-kpis article:nth-child(4n+4),.release-417 .seller-kpis article:nth-child(4n+4),.release-417 .customer-kpis article:nth-child(4n+4),.release-417 .franchise-kpis article:nth-child(4n+4){background:#f2f7ff!important}
.release-417 .admin-kpis b,.release-417 .seller-kpis b,.release-417 .customer-kpis b,.release-417 .franchise-kpis b{font-size:24px!important;color:#183129!important}.release-417 .seller-kpis small,.release-417 .customer-kpis small,.release-417 .franchise-kpis small{color:#5f716a!important;font-size:9px!important}.release-417 .seller-kpis a,.release-417 .customer-kpis a{color:#0a6a50!important}

.release-417 .control-card,.release-417 .glass-panel,.release-417 .command-panel,.release-417 .customer-panel,.release-417 .tree-section,.release-417 .team-section,.release-417 .income-trace,.release-417 .invite-card{border:1px solid var(--ap17-border)!important;border-radius:15px!important;background:#fff!important;box-shadow:0 7px 22px rgba(15,57,45,.04)!important;color:#173329!important}
.release-417 .control-card h2,.release-417 .glass-panel h2,.release-417 .command-panel h2,.release-417 .customer-panel h2{font-size:22px!important;color:#173329!important}
.release-417 .control-card p,.release-417 .glass-panel p,.release-417 .command-panel p,.release-417 .customer-panel p{color:#687972}
.release-417 .portal-content .btn{border-radius:9px!important}.release-417 .portal-content .btn.dark{background:#073f30!important;color:#fff!important}.release-417 .portal-content .btn.gold{background:#c8a13a!important;color:#fff!important}
.release-417 .portal-content input,.release-417 .portal-content select,.release-417 .portal-content textarea{border-radius:9px!important;border-color:#cad8d2!important;background:#fff!important;min-height:40px}
.release-417 .table-wrap{border-radius:12px}.release-417 table{border-collapse:separate;border-spacing:0}.release-417 thead th{background:#f4f7f5!important;color:#51645d!important}.release-417 tbody tr:hover td{background:#fbfcfb}

/* Member/customer visual family. */
.release-417 .seller-hero,.release-417 .customer-hero{margin-bottom:14px!important}.release-417 .seller-badges span{background:#f0f7f4!important;color:#31584b!important;border-color:#dcebe4!important}.release-417 .seller-id dl{color:#4e625b!important}.release-417 .customer-promise article{background:#fff!important;border:1px solid var(--ap17-border)!important;border-radius:13px!important;box-shadow:none!important}.release-417 .customer-promise i{background:#e9f5ef!important;color:#0b7556!important}
.release-417 .command-grid>a{border-radius:13px!important;border:1px solid var(--ap17-border)!important;background:#fff!important;box-shadow:none!important}.release-417 .command-grid>a.primary{background:#f3faf6!important;border-color:#cae2d6!important;color:#173329!important}.release-417 .command-grid>a i{color:#0a7053!important}.release-417 .command-grid small{color:#74857e!important}
.release-417 .career-command{background:linear-gradient(145deg,#fff,#fffaf0)!important}.release-417 .career-command aside{background:#073f30!important;border-radius:14px!important}

/* Franchise remains fully functional below its executive overview. */
.release-417 .franchise-command-strip{gap:10px!important}.release-417 .franchise-command-strip>a{min-height:76px!important;border:1px solid var(--ap17-border)!important;border-radius:13px!important;background:#fff!important;color:#173329!important}.release-417 .franchise-command-strip>a i{background:#eaf5ef!important;color:#0a7153!important}

/* The oversized Safe Update green hero is replaced by a compact executive card. */
.release-417 .update-centre{max-width:1560px!important}.release-417 .update-hero{min-height:0!important;padding:25px 28px!important;grid-template-columns:minmax(0,1fr) 170px!important;gap:20px!important;border:1px solid #d9c171!important;border-radius:18px!important;background:linear-gradient(135deg,#fff 0%,#fbfdfc 68%,#fff8e6 100%)!important;color:#173329!important;box-shadow:var(--ap17-shadow)!important}
.release-417 .update-hero:after{display:none!important}.release-417 .update-hero h1{margin:4px 0 8px!important;font-size:clamp(31px,4vw,48px)!important;line-height:1!important;letter-spacing:-.04em!important;color:#153129!important}.release-417 .update-hero h1 em{color:#0a6a50!important}.release-417 .update-hero p{max-width:840px!important;margin:0!important;font-size:13px!important;color:#6d7c76!important}.release-417 .update-badges{margin-top:13px!important;gap:6px!important}.release-417 .update-badges span{padding:6px 9px!important;border:1px solid #dce7e2!important;background:#f5f9f7!important;color:#426157!important;font-size:8px!important}.release-417 .orbit-ring{width:142px!important;min-width:142px!important;box-shadow:none!important;background:conic-gradient(#c8a13a,#0a7153,#dcebe4,#0a7153,#c8a13a)!important}.release-417 .orbit-ring:before{inset:10px!important;background:#073f30!important}.release-417 .orbit-ring span{font-size:2rem!important;transform:translateY(-32px)!important}.release-417 .orbit-ring b{font-size:1rem!important}.release-417 .orbit-ring small{transform:translateY(34px)!important;font-size:8px!important}.release-417 .health-console{border-radius:15px!important;box-shadow:0 7px 22px rgba(15,57,45,.04)!important}

/* Settings must be readable even when a value is structured JSON. */
.release-417 .ap17-setting-value{display:block;max-width:520px;white-space:normal;overflow-wrap:anywhere;color:#40564d;font-size:12px}.release-417 .ap17-warning-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:5px solid #c8a13a!important;background:#fffaf0!important}

/* Public site: preserve content, unify surface and typography only. */
.release-417.public-body{background:#fff;color:#183129}.release-417.public-body .premium-company-header{box-shadow:0 5px 22px rgba(9,52,39,.05)}

@media(max-width:1180px){
 .release-417 .ap17-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.release-417 .admin-quick-launch{grid-template-columns:repeat(3,minmax(0,1fr))!important}.release-417 .ap17-health-row{grid-template-columns:1fr}.release-417 .ap17-health-pills{justify-content:flex-start}
}
@media(max-width:980px){
 .release-417 .portal-sidebar{width:270px!important}.release-417 .portal-stage{margin-left:0!important}.release-417 .portal-content{padding:15px!important}.release-417 .portal-topbar{padding:0 14px!important}.release-417 .portal-content .dash-head,.release-417 .portal-content .admin-console-head,.release-417 .portal-content .network-head,.release-417 .seller-hero,.release-417 .customer-hero,.release-417 .franchise-hero{grid-template-columns:1fr!important;padding:21px!important}.release-417 .portal-content .identity,.release-417 .portal-content .root-id-card,.release-417 .portal-content .network-identity,.release-417 .seller-id,.release-417 .customer-hero aside{min-width:0!important;width:100%!important}.release-417 .update-hero{grid-template-columns:1fr!important}.release-417 .reverse-orbit{display:none!important}.release-417 .admin-quick-launch{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
 .release-417 .ap17-overview-grid{grid-template-columns:1fr 1fr;gap:8px}.release-417 .ap17-stat{min-height:96px;padding:13px;gap:10px}.release-417 .ap17-stat>i{width:38px;height:38px;font-size:17px}.release-417 .ap17-stat b{font-size:20px}.release-417 .ap17-stat em{display:none}.release-417 .ap17-health-card,.release-417 .ap17-update-card{align-items:flex-start;flex-direction:column}.release-417 .admin-quick-launch{grid-template-columns:1fr 1fr!important}.release-417 .portal-content .dash-head h1,.release-417 .portal-content .admin-console-head h1,.release-417 .portal-content .network-head h1,.release-417 .seller-hero h1,.release-417 .customer-hero h1{font-size:30px!important}.release-417 .seller-kpis,.release-417 .customer-kpis,.release-417 .franchise-kpis,.release-417 .admin-kpis{grid-template-columns:1fr 1fr!important}.release-417 .portal-content .control-card{padding:17px!important}.release-417 .ap17-warning-card{align-items:flex-start;flex-direction:column}.release-417 .portal-top-actions>a:nth-child(n+2){display:none}
}
