
:root{
  --green:#174f2d; --green2:#246b3e; --green3:#0e351e;
  --gold:#cba93c; --ink:#16301d; --muted:#708078;
  --line:#dce7de; --bg:#f4f7f4; --white:#fff;
  --shadow:0 18px 48px rgba(22,48,29,.10);
}
*{box-sizing:border-box}
html,body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:inherit}
button,input,select{font:inherit}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at top left,#e9f4eb 0,#f7f9f7 45%,#edf2ee 100%)}
.auth-shell{width:min(1080px,100%);min-height:640px;display:grid;grid-template-columns:1.06fr .94fr;background:#fff;border:1px solid var(--line);border-radius:30px;overflow:hidden;box-shadow:0 28px 80px rgba(20,54,31,.15)}
.auth-shell.compact{max-width:920px;min-height:540px}
.brand-panel{padding:64px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(140deg,var(--green3),var(--green2));color:#fff;position:relative;overflow:hidden}
.brand-panel:after{content:"";position:absolute;width:380px;height:380px;border:60px solid rgba(255,255,255,.035);border-radius:50%;right:-170px;bottom:-180px}
.brand-mark{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#ddc05b,#b98f22);color:#12351f;font-size:34px;font-weight:900;box-shadow:0 12px 28px rgba(0,0,0,.22)}
.brand-mark.sm{width:44px;height:44px;border-radius:13px;font-size:22px}
.brand-panel h1{font-size:44px;line-height:1.08;margin:26px 0 14px;max-width:520px;position:relative;z-index:2}
.brand-panel p{font-size:17px;line-height:1.7;color:#dcebe0;max-width:500px;position:relative;z-index:2}
.service-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px;position:relative;z-index:2}
.service-chips span{padding:8px 11px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);font-size:12px}
.auth-card{padding:58px;display:flex;flex-direction:column;justify-content:center}
.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:900;color:#aa8213;margin-bottom:7px}
.auth-card h2,.section-head h1{font-size:34px;letter-spacing:-.03em;margin:4px 0 10px}
.muted,.section-head p{color:var(--muted);line-height:1.6}
.auth-card label,.panel label{display:block;font-size:13px;font-weight:750;margin:17px 0 7px}
.auth-card input,.panel input,.panel select{width:100%;padding:14px 15px;border:1px solid #cbd9ce;border-radius:12px;background:#fbfdfb;outline:none;transition:.2s}
.auth-card input:focus,.panel input:focus,.panel select:focus{border-color:#2e7d4b;box-shadow:0 0 0 4px rgba(46,125,75,.1);background:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:linear-gradient(145deg,var(--green2),var(--green));color:#fff;text-decoration:none;padding:14px 18px;font-weight:800;cursor:pointer;margin-top:18px;box-shadow:0 9px 20px rgba(36,107,62,.17);transition:.2s}
.btn:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(36,107,62,.23)}
.btn.secondary{background:#fff;color:var(--green2);border:1px solid #ccded0;margin:0;box-shadow:none}
.btn.disabled{background:#dce3dd;color:#7d877f;cursor:not-allowed;box-shadow:none}
.text-link{display:block;margin-top:18px;text-decoration:none;color:#52705a;font-weight:650}
.alert,.success-banner{padding:13px 15px;border-radius:12px;margin:16px 0;font-size:14px}
.alert{background:#fff2f2;color:#983c3c;border:1px solid #efcece}
.success-banner{background:#edf8ef;color:#24643a;border:1px solid #c9e5cf}
.small{font-size:12px;color:#758078;line-height:1.5}
.secure-note{text-align:center}
.dashboard-page{min-height:100vh;background:linear-gradient(#f7f9f7,#f2f6f2)}
.topbar{height:78px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);padding:0 max(22px,calc((100% - 1200px)/2));display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}
.brand-inline{display:flex;align-items:center;gap:12px}
.brand-inline div:last-child{display:flex;flex-direction:column;gap:2px}
.brand-inline span{font-size:11px;color:#7b887f;letter-spacing:.05em}
.user-menu{display:flex;align-items:center;gap:10px;font-size:13px}
.user-menu a{text-decoration:none;padding:9px 11px;border-radius:9px;color:#356346}
.user-menu a:hover{background:#f0f5f1}
.role{font-size:10px;background:#edf4ee;border:1px solid #d6e5d9;padding:5px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.07em}
.container{width:min(1200px,calc(100% - 36px));margin:0 auto;padding:34px 0 60px}
.hero{background:radial-gradient(circle at 90% 15%,rgba(203,169,60,.18),transparent 24%),linear-gradient(125deg,#0f351f,#205d37 65%,#286c40);color:#fff;border-radius:26px;padding:42px 44px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}
.hero h1{font-size:40px;letter-spacing:-.03em;margin:8px 0 10px}
.hero p{margin:0;color:#d8e7dc;max-width:700px;line-height:1.65}
.shield{width:124px;height:124px;border-radius:30px;background:rgba(255,255,255,.09);display:grid;place-items:center;font-size:40px;font-weight:900;border:1px solid rgba(255,255,255,.14);text-align:center}
.shield span{display:block;font-size:10px;line-height:1.35;margin-top:-22px;text-transform:uppercase;letter-spacing:.11em}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin:34px 0 18px}
.section-head h2{margin:0 0 6px;font-size:25px}
.section-head p{margin:0}
.app-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.app-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 8px 28px rgba(34,70,40,.06);position:relative;overflow:hidden;transition:.22s}
.app-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--green2),var(--gold))}
.app-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(34,70,40,.11)}
.app-card.locked{opacity:.64}
.app-icon{width:56px;height:56px;border-radius:16px;background:#edf5ee;color:var(--green2);display:grid;place-items:center;font-size:25px;font-weight:900;border:1px solid #dbe8dd}
.app-icon.large{width:78px;height:78px;font-size:34px;background:rgba(255,255,255,.11);color:#fff;border-color:rgba(255,255,255,.14)}
.app-card h3{font-size:21px;margin:20px 0 8px}
.app-card p{color:#718078;line-height:1.55;min-height:48px}
.status{display:inline-block;font-size:10px;font-weight:850;padding:6px 8px;border-radius:999px;margin-top:18px;text-transform:uppercase;letter-spacing:.06em}
.status.ok{background:#e9f6ec;color:#24723e}
.status.no{background:#f3eded;color:#8c5555}
.app-btn{width:100%}
.security-strip{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;display:flex;align-items:center;justify-content:center;gap:28px;box-shadow:0 8px 28px rgba(34,70,40,.05)}
.security-strip div:not(.arrow){display:flex;flex-direction:column;gap:4px}
.security-strip span{font-size:11px;color:#7a877f}
.arrow{color:#aab8ad}
.admin-layout{display:grid;grid-template-columns:390px 1fr;gap:20px}
.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 8px 28px rgba(34,70,40,.06)}
.panel h2{margin-top:0}
.panel fieldset{border:1px solid var(--line);border-radius:14px;margin:18px 0;padding:14px}
.panel legend{font-size:11px;font-weight:900;padding:0 7px;text-transform:uppercase;letter-spacing:.08em}
.panel label.check{display:flex;align-items:center;gap:9px;margin:9px 0;font-weight:650}
.panel label.check input{width:auto}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{text-align:left;padding:14px 10px;border-bottom:1px solid #edf1ed;white-space:nowrap}
th{color:#718078;font-size:10px;text-transform:uppercase;letter-spacing:.09em}
tr:hover td{background:#fbfdfb}
.cell-sub{display:block;color:#819087;font-size:11px;margin-top:4px}
.inline-form{display:inline}
.mini-btn{border:1px solid #cedbd1;background:#fff;padding:7px 9px;border-radius:8px;cursor:pointer;color:#45614e}
.success-box h2{margin-top:0}
.system-access-row{padding:12px 0;border-bottom:1px solid #edf1ed}
.system-access-row:last-child{border-bottom:0}
.system-access-row .check{margin:0 0 8px}
.system-access-row>input{margin:0}
@media(max-width:900px){
  .auth-shell{grid-template-columns:1fr}
  .brand-panel{padding:42px;min-height:300px}
  .brand-panel h1{font-size:34px}
  .auth-card{padding:40px}
  .app-grid{grid-template-columns:1fr}
  .hero{padding:32px}
  .shield{display:none}
  .security-strip{align-items:flex-start;flex-direction:column;gap:12px}
  .arrow{transform:rotate(90deg)}
  .admin-layout{grid-template-columns:1fr}
  .topbar{padding:0 16px}
  .user-menu .role,.user-menu>span:first-child{display:none}
  .section-head{align-items:flex-start;flex-direction:column;gap:16px}
}
@media(max-width:560px){
  .auth-page{padding:12px}
  .auth-shell{border-radius:20px}
  .brand-panel{padding:30px}
  .auth-card{padding:30px 24px}
  .hero h1{font-size:31px}
  .container{width:min(100% - 22px,1200px)}
}


/* VERSION 4: VISUAL WORKSPACE + STRICT APP VISIBILITY */
.visual-hero{
  position:relative;min-height:300px;border-radius:26px;overflow:hidden;
  box-shadow:var(--shadow);background:#11351f
}
.visual-hero>img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.88) contrast(1.03)
}
.visual-hero:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,38,21,.94) 0%,rgba(10,49,27,.82) 40%,rgba(10,40,22,.25) 78%,rgba(10,40,22,.12) 100%)
}
.visual-hero-overlay{
  position:relative;z-index:2;max-width:690px;padding:44px;color:#fff
}
.visual-hero-overlay h1{font-size:42px;letter-spacing:-.035em;margin:8px 0 10px}
.visual-hero-overlay p{font-size:17px;color:#dceae0;line-height:1.6;margin:0}
.eyebrow.light{color:#d7bb56}
.hero-pills{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.hero-pills span{
  font-size:11px;padding:8px 10px;border-radius:999px;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13)
}
.app-grid.visible-only{align-items:stretch}
.visual-app-card{
  background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  box-shadow:0 8px 28px rgba(34,70,40,.07);transition:.22s;display:flex;flex-direction:column
}
.visual-app-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(34,70,40,.12)}
.app-photo{height:180px;position:relative;overflow:hidden;background:#edf3ee}
.app-photo img{width:100%;height:100%;object-fit:cover;transition:.35s}
.visual-app-card:hover .app-photo img{transform:scale(1.025)}
.access-chip{
  position:absolute;top:14px;left:14px;padding:7px 10px;border-radius:999px;
  background:rgba(31,110,58,.94);color:#fff;font-size:10px;font-weight:850;
  text-transform:uppercase;letter-spacing:.05em;box-shadow:0 4px 12px rgba(0,0,0,.16)
}
.visual-app-body{padding:22px;display:flex;flex-direction:column;flex:1}
.visual-app-body .app-icon{margin-top:-49px;position:relative;z-index:2;background:#fff;box-shadow:0 5px 16px rgba(28,65,36,.14)}
.visual-app-body h3{font-size:22px;margin:16px 0 7px}
.visual-app-body p{color:#718078;line-height:1.55;margin:0 0 16px;flex:1}
.app-security-note{
  background:#f4f8f5;border:1px solid #e1eae3;color:#5f7466;border-radius:10px;
  font-size:11px;padding:9px 10px
}
.empty-access{
  background:#fff;border:1px solid var(--line);border-radius:20px;padding:48px 28px;text-align:center;
  box-shadow:0 8px 28px rgba(34,70,40,.06)
}
.empty-icon{font-size:40px;margin-bottom:10px}
.empty-access h2{margin:0 0 8px}
.empty-access p{max-width:600px;margin:0 auto;color:#708078;line-height:1.6}
.security-panels{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.security-panel{
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;
  display:flex;gap:12px;align-items:flex-start
}
.security-symbol{
  width:40px;height:40px;border-radius:12px;background:#eef5ef;
  display:grid;place-items:center;flex:0 0 40px
}
.security-panel div:last-child{display:flex;flex-direction:column;gap:4px}
.security-panel strong{font-size:13px}
.security-panel span{font-size:11px;color:#75837a;line-height:1.45}
@media(max-width:900px){
  .visual-hero{min-height:330px}
  .visual-hero-overlay{padding:32px}
  .visual-hero-overlay h1{font-size:34px}
  .security-panels{grid-template-columns:1fr}
}
@media(max-width:560px){
  .visual-hero{min-height:360px}
  .visual-hero-overlay{padding:26px}
  .visual-hero:after{background:rgba(8,38,21,.78)}
  .app-photo{height:160px}
}

/* V5 — Hazgen branded workspace */
.workspace-v5{margin:0;background:#f5f6f6;color:#151515;font-family:Inter,Segoe UI,Arial,sans-serif}.v5-sidebar{position:fixed;inset:0 auto 0 0;width:215px;background:linear-gradient(180deg,#101313,#151918);color:#fff;z-index:30;display:flex;flex-direction:column;overflow:hidden}.v5-logo{padding:20px 18px 24px;border-bottom:1px solid #2b2f2d;text-align:center}.v5-logo img{width:120px;max-height:105px;object-fit:contain}.v5-logo span{display:block;color:#f58b00;font-size:11px;font-weight:800;letter-spacing:.09em;margin-top:2px}.v5-sidebar nav{padding:20px 12px;display:grid;gap:10px}.v5-sidebar nav a{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none;padding:14px;border-radius:10px;font-weight:700}.v5-sidebar nav a b{font-size:20px;width:22px;text-align:center}.v5-sidebar nav a:hover,.v5-sidebar nav a.active{background:linear-gradient(135deg,#ff9500,#f57c00)}.sidebar-message{margin-top:auto;position:relative;min-height:265px;overflow:hidden}.sidebar-message:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#141817 0%,transparent 45%)}.sidebar-message img{width:100%;height:265px;object-fit:cover}.sidebar-message strong{position:absolute;z-index:2;top:20px;left:20px;font-size:13px;line-height:1.6}.sidebar-message em{font-style:normal;color:#f58b00}.v5-shell{margin-left:215px;min-height:100vh}.v5-topbar{height:90px;background:#fff;border-bottom:1px solid #e3e3e3;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.v5-topbar>div:first-child{display:grid;gap:2px}.v5-topbar span{font-size:13px}.v5-topbar strong{font-size:19px}.v5-topbar small{font-size:11px;color:#ef7d00}.v5-top-actions{display:flex;align-items:center;gap:22px}.v5-top-actions a{color:#d62b20;text-decoration:none;font-weight:700}.secure-dot{display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #ddd;font-weight:900;color:#16843b}.v5-main{padding:16px;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;max-width:1500px;margin:auto}.v5-hero{height:360px;border-radius:18px;overflow:hidden;position:relative;color:#fff;box-shadow:0 4px 18px rgba(0,0,0,.08)}.v5-hero>img{position:absolute;width:100%;height:100%;object-fit:cover}.v5-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,8,7,.88),rgba(8,10,9,.55) 52%,rgba(0,0,0,.15))}.v5-hero-copy{position:absolute;left:28px;top:36px;z-index:2}.v5-hero-copy>span{color:#ff8a00;font-weight:900;font-size:19px}.v5-hero-copy h1{font-size:42px;line-height:1.04;margin:5px 0 18px;letter-spacing:-.03em}.v5-hero-copy p{font-size:16px;line-height:1.55}.v5-hero-points{position:absolute;z-index:2;left:20px;right:20px;bottom:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:rgba(15,17,16,.84);border-radius:14px;padding:12px}.v5-hero-points>div{display:flex;gap:10px;align-items:center}.v5-hero-points b{font-size:22px;color:#ff8a00}.v5-hero-points span{display:grid;font-size:10px;color:#ddd;line-height:1.35}.v5-hero-points strong{font-size:10px;color:#fff}.v5-profile-card,.v5-activity,.v5-apps-panel,.about-card,.commit-card{background:#fff;border:1px solid #e5e5e5;border-radius:18px;box-shadow:0 4px 16px rgba(0,0,0,.04)}.v5-profile-card{padding:24px;text-align:center}.profile-badge{width:86px;height:86px;border-radius:50%;margin:0 auto 14px;background:linear-gradient(135deg,#151918,#f58b00);color:#fff;display:grid;place-items:center;font-size:34px;font-weight:900;border:5px solid #f3f3f3}.v5-profile-card h2{font-size:19px;margin:5px}.v5-profile-card>span{color:#f27d00;font-size:13px;font-weight:700}.profile-lines{text-align:left;margin-top:22px;border-top:1px solid #eee;padding-top:12px}.profile-lines p{font-size:12px;padding:7px 0;margin:0;border-bottom:1px solid #f2f2f2;overflow-wrap:anywhere}.v5-apps-panel{padding:18px;min-width:0}.v5-section-title h2{margin:0;font-size:20px}.v5-section-title p{margin:3px 0 14px;color:#6f7471;font-size:12px}.v5-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.v5-app-card{border:1px solid #e2e2e2;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.04)}.v5-app-image{height:150px;position:relative}.v5-app-image img{width:100%;height:100%;object-fit:cover}.v5-app-image span{position:absolute;top:10px;left:10px;background:#16843b;color:#fff;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900}.v5-app-content{padding:18px;text-align:center;position:relative}.v5-app-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#f58200;color:#fff;border:4px solid #fff;margin:-46px auto 12px;position:relative;font-size:22px;box-shadow:0 2px 8px rgba(0,0,0,.15)}.v5-app-content h3{font-size:19px;margin:5px 0}.v5-app-content p{font-size:12px;color:#555;line-height:1.5;min-height:54px}.v5-app-content a{display:flex;justify-content:space-between;align-items:center;background:#171918;color:#fff;text-decoration:none;border-radius:9px;padding:12px 15px;font-size:12px;font-weight:800;border:1px solid #f58200}.v5-app-content a b{color:#f58200;font-size:20px}.v5-activity{padding:18px}.activity-row{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #eee}.activity-row i{font-style:normal;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e7f6e9;color:#16843b;font-weight:900;flex:0 0 34px}.activity-row div{display:grid;gap:4px}.activity-row strong{font-size:12px}.activity-row span{font-size:10px;color:#777}.v5-about{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.about-card,.commit-card{min-height:215px;padding:22px;position:relative;overflow:hidden}.about-card>div{position:relative;z-index:2;width:56%}.about-card>img{position:absolute;right:0;top:0;width:48%;height:100%;object-fit:cover}.about-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 48%,rgba(255,255,255,.9) 56%,transparent 75%)}.about-card span,.commit-card>span{font-size:10px;color:#f58200;font-weight:900}.about-card h2,.commit-card h2{font-size:22px;margin:8px 0}.about-card p{font-size:12px;line-height:1.55}.commit-card ul{list-style:none;padding:0;margin:10px 0;position:relative;z-index:2}.commit-card li{font-size:12px;margin:9px 0}.commit-card img{position:absolute;right:0;bottom:0;width:42%;height:100%;object-fit:cover;opacity:.9}.commit-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 55%,rgba(255,255,255,.65),transparent)}.commit-card>*:not(img){position:relative;z-index:2}.v5-footer{height:62px;background:#fff;border-top:1px solid #e4e4e4;padding:0 26px;display:flex;align-items:center;gap:18px;font-size:11px;color:#666}.v5-footer img{width:48px;height:42px;object-fit:contain}.v5-footer b{margin-left:auto;color:#444}.workspace-v5 .empty-access{box-shadow:none;border:0;padding:34px}
@media(max-width:1100px){.v5-main{grid-template-columns:1fr}.v5-profile-card,.v5-activity{display:none}.v5-app-grid{grid-template-columns:repeat(2,1fr)}.v5-about{grid-column:auto}}
@media(max-width:760px){.v5-sidebar{width:76px}.v5-logo{padding:14px 7px}.v5-logo img{width:58px}.v5-logo span,.v5-sidebar nav a:not(.active){font-size:0}.v5-sidebar nav a{justify-content:center;padding:13px 5px}.v5-sidebar nav a b{font-size:20px}.sidebar-message{display:none}.v5-shell{margin-left:76px}.v5-topbar{padding:0 14px}.v5-app-grid,.v5-about{grid-template-columns:1fr}.v5-hero{height:420px}.v5-hero-copy h1{font-size:32px}.v5-hero-points{grid-template-columns:1fr;gap:7px}.about-card>div{width:70%}.v5-top-actions .secure-dot{display:none!important}}
@media(max-width:520px){.v5-main{padding:9px}.v5-hero-copy{left:20px;top:26px}.v5-hero-copy h1{font-size:28px}.v5-hero-copy p{font-size:13px}.v5-topbar strong{font-size:15px}.v5-top-actions{gap:8px}.v5-footer span{display:none}}


/* ============================================================
   HAZGEN WORKSPACE V6 - CORPORATE BLACK/ORANGE LOGIN
   ============================================================ */

.hg-login-page{
  margin:0;
  min-height:100vh;
  background:#080a09;
  color:#fff;
  font-family:Inter,Segoe UI,Arial,sans-serif;
}

.hg-login-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(480px,.96fr);
  overflow:hidden;
  background:#090b0a;
}

/* LEFT VISUAL */
.hg-login-visual{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:#111;
}

.hg-login-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.82) contrast(1.08) brightness(.72);
}

.hg-login-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(6,8,7,.30) 0%,rgba(5,7,6,.22) 30%,rgba(5,7,6,.67) 72%,rgba(5,7,6,.92) 100%),
    linear-gradient(90deg,rgba(7,9,8,.78) 0%,rgba(7,9,8,.34) 62%,rgba(7,9,8,.2) 100%);
}

.hg-login-visual-content{
  position:relative;
  z-index:2;
  min-height:100vh;
  padding:42px 44px 34px;
  display:flex;
  flex-direction:column;
}

.hg-login-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:max-content;
}

.hg-login-brand img{
  width:125px;
  max-height:105px;
  object-fit:contain;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.28));
}

.hg-login-brand span{
  margin-top:-3px;
  margin-left:64px;
  font-size:12px;
  letter-spacing:.16em;
  font-weight:900;
  color:#ff8a00;
}

.hg-login-copy{
  margin-top:auto;
  margin-bottom:185px;
  max-width:690px;
}

.hg-login-copy h1{
  margin:0;
  display:flex;
  flex-direction:column;
  font-size:clamp(42px,4.2vw,70px);
  line-height:.98;
  letter-spacing:-.045em;
  font-weight:900;
}

.hg-login-copy h1 span{
  color:#fff;
}

.hg-login-copy h1 strong{
  color:#ff8500;
  font-weight:900;
}

.hg-orange-rule{
  width:70px;
  height:3px;
  margin:22px 0;
  border-radius:999px;
  background:#ff8500;
}

.hg-orange-rule.small{
  width:46px;
  margin:17px 0 21px;
}

.hg-login-copy h2{
  margin:0 0 18px;
  font-size:17px;
  letter-spacing:.025em;
  font-weight:800;
}

.hg-login-copy>p{
  max-width:590px;
  margin:0;
  color:#e0e2e1;
  font-size:16px;
  line-height:1.65;
}

.hg-login-features{
  margin-top:34px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  max-width:720px;
}

.hg-login-features article{
  min-height:115px;
  padding:0 24px;
  border-left:1px solid rgba(255,255,255,.28);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.hg-login-features article:first-child{
  border-left:0;
  padding-left:0;
}

.hg-feature-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  margin-bottom:10px;
  border:1px solid #ff8500;
  border-radius:50%;
  color:#ff8500;
  background:rgba(0,0,0,.26);
  font-size:20px;
}

.hg-login-features strong{
  font-size:12px;
  letter-spacing:.02em;
  color:#fff;
}

.hg-login-features span{
  margin-top:5px;
  color:#d6d8d7;
  font-size:12px;
  line-height:1.45;
}

.hg-worker-strip{
  position:absolute;
  right:0;
  bottom:0;
  width:52%;
  height:245px;
  overflow:hidden;
  pointer-events:none;
}

.hg-worker-strip:before{
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  background:linear-gradient(90deg,rgba(7,9,8,1) 0%,rgba(7,9,8,.15) 35%,rgba(7,9,8,0) 100%);
}

.hg-worker-strip img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
  filter:saturate(.85) brightness(.80);
}

.hg-slogan{
  position:absolute;
  left:44px;
  bottom:35px;
  z-index:4;
  min-width:395px;
  padding:18px 24px;
  display:flex;
  gap:14px;
  align-items:center;
  background:rgba(14,17,15,.92);
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  box-shadow:0 12px 28px rgba(0,0,0,.28);
}

.hg-slogan>span{
  font-size:25px;
  color:#66a927;
}

.hg-slogan strong{
  font-size:13px;
  letter-spacing:.04em;
}

.hg-slogan em{
  color:#70b52b;
  font-style:normal;
}

.hg-slogan b{
  color:#ff8500;
}

/* RIGHT FORM SIDE */
.hg-login-form-side{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:70px 70px 72px;
  background:
    radial-gradient(circle at 75% 30%,rgba(255,133,0,.035),transparent 34%),
    radial-gradient(circle at 90% 88%,rgba(255,255,255,.028),transparent 30%),
    #080a09;
}

.hg-login-form-side:after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.18;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.18) .6px,transparent .6px);
  background-size:11px 11px;
  mask-image:linear-gradient(90deg,transparent 8%,#000 100%);
}

.hg-form-top{
  position:absolute;
  z-index:2;
  top:38px;
  right:48px;
}

.hg-secure-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 13px;
  border:1px solid #292d2a;
  border-radius:999px;
  background:#0f1210;
  color:#ddd;
  font-size:12px;
  font-weight:700;
}

.hg-login-card{
  position:relative;
  z-index:2;
  width:min(570px,100%);
  padding:38px 40px 34px;
  border:1px solid #3a3e3b;
  border-radius:24px;
  background:linear-gradient(145deg,rgba(23,26,24,.96),rgba(15,17,16,.98));
  box-shadow:0 28px 70px rgba(0,0,0,.34);
}

.hg-login-card:after{
  content:"HG";
  position:absolute;
  top:22px;
  right:26px;
  font-size:112px;
  line-height:1;
  font-weight:900;
  color:rgba(255,255,255,.018);
  pointer-events:none;
}

.hg-lock-tile{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  margin-bottom:20px;
  border:1px solid #464b47;
  border-radius:14px;
  background:#131614;
  color:#ff8500;
  font-size:26px;
}

.hg-login-eyebrow{
  color:#ff8500;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}

.hg-login-card h2{
  position:relative;
  z-index:2;
  margin:13px 0 0;
  font-size:38px;
  letter-spacing:-.035em;
  color:#fff;
}

.hg-login-intro{
  margin:0 0 25px;
  max-width:440px;
  color:#c7cac8;
  line-height:1.6;
  font-size:14px;
}

.hg-login-error{
  margin:0 0 18px;
  padding:12px 14px;
  color:#ffd5d5;
  background:rgba(165,45,45,.18);
  border:1px solid rgba(224,85,85,.45);
  border-radius:10px;
  font-size:13px;
}

.hg-login-form label{
  display:block;
  margin:17px 0 8px;
  color:#fff;
  font-size:13px;
  font-weight:750;
}

.hg-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.hg-input-wrap input{
  width:100%;
  height:52px;
  padding:0 48px 0 49px;
  border:1px solid #3a3e3b;
  border-radius:9px;
  outline:none;
  background:#181b19;
  color:#fff;
  font-size:14px;
  transition:.2s;
}

.hg-input-wrap input::placeholder{
  color:#777d79;
}

.hg-input-wrap input:focus{
  border-color:#ff8500;
  box-shadow:0 0 0 3px rgba(255,133,0,.10);
  background:#1b1e1c;
}

.hg-input-icon{
  position:absolute;
  z-index:2;
  left:17px;
  color:#c8cbc9;
  font-size:19px;
  pointer-events:none;
}

.hg-password-toggle{
  position:absolute;
  z-index:3;
  right:10px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#d0d3d1;
  cursor:pointer;
  font-size:18px;
}

.hg-password-toggle:hover{
  background:#242824;
}

.hg-login-button{
  width:100%;
  min-height:58px;
  margin-top:28px;
  padding:0 20px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:22px;
  border:0;
  border-radius:9px;
  color:#fff;
  background:linear-gradient(90deg,#ff7800,#ff9300);
  font-weight:900;
  font-size:14px;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(255,127,0,.16);
  transition:.2s;
}

.hg-login-button span:last-child{
  font-size:24px;
  line-height:1;
}

.hg-login-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
  box-shadow:0 16px 30px rgba(255,127,0,.23);
}

.hg-trust-divider{
  margin:27px 0 24px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:15px;
  align-items:center;
}

.hg-trust-divider>span{
  height:1px;
  background:#4b4f4c;
}

.hg-trust-divider strong{
  font-size:12px;
  letter-spacing:.04em;
  color:#e0e2e1;
  white-space:nowrap;
}

.hg-trust-divider em{
  color:#ff8500;
  font-style:normal;
}

.hg-master-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:#888e8a;
}

.hg-master-note>div{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #424744;
  border-radius:11px;
  color:#8f9691;
}

.hg-master-note p{
  margin:2px 0 0;
  font-size:12px;
  line-height:1.5;
}

.hg-login-support{
  position:absolute;
  z-index:2;
  right:55px;
  bottom:34px;
  display:flex;
  align-items:center;
  gap:7px;
  color:#9ba09c;
  font-size:12px;
}

.hg-login-support strong{
  color:#ff8500;
}

@media(max-width:1100px){
  .hg-login-shell{
    grid-template-columns:1fr 1fr;
  }

  .hg-login-visual-content{
    padding:34px 30px 28px;
  }

  .hg-login-copy{
    margin-bottom:165px;
  }

  .hg-login-features{
    gap:12px;
  }

  .hg-login-features article{
    padding:0 12px;
  }

  .hg-login-form-side{
    padding:70px 36px;
  }
}

@media(max-width:860px){
  .hg-login-shell{
    display:block;
  }

  .hg-login-visual{
    min-height:470px;
  }

  .hg-login-visual-content{
    min-height:470px;
  }

  .hg-login-copy{
    margin-top:90px;
    margin-bottom:105px;
  }

  .hg-login-copy h1{
    font-size:48px;
  }

  .hg-worker-strip{
    width:52%;
    height:155px;
  }

  .hg-slogan{
    left:30px;
    bottom:24px;
    min-width:0;
  }

  .hg-login-form-side{
    min-height:auto;
    padding:76px 24px 90px;
  }

  .hg-form-top{
    top:24px;
    right:24px;
  }

  .hg-login-support{
    position:static;
    margin-top:26px;
  }
}

@media(max-width:600px){
  .hg-login-visual{
    min-height:600px;
  }

  .hg-login-visual-content{
    min-height:600px;
    padding:28px 22px 22px;
  }

  .hg-login-brand img{
    width:105px;
  }

  .hg-login-copy{
    margin-top:80px;
    margin-bottom:120px;
  }

  .hg-login-copy h1{
    font-size:39px;
  }

  .hg-login-copy>p{
    font-size:14px;
  }

  .hg-login-features{
    grid-template-columns:1fr;
    gap:12px;
    margin-top:24px;
  }

  .hg-login-features article{
    min-height:0;
    padding:0;
    border-left:0;
    display:grid;
    grid-template-columns:42px 1fr;
    column-gap:11px;
  }

  .hg-login-features strong,
  .hg-login-features span{
    grid-column:2;
  }

  .hg-feature-icon{
    grid-row:1 / span 2;
  }

  .hg-worker-strip{
    display:none;
  }

  .hg-slogan{
    right:22px;
    left:22px;
    bottom:18px;
  }

  .hg-login-form-side{
    padding:74px 16px 70px;
  }

  .hg-login-card{
    padding:28px 20px 26px;
    border-radius:18px;
  }

  .hg-login-card h2{
    font-size:32px;
  }

  .hg-trust-divider strong{
    font-size:10px;
  }
}


/* VERSION 8 - DIRECT APP ACCESS + USER ACCESS MANAGEMENT */
.workspace-logo{
  width:48px;
  height:48px;
  object-fit:contain;
}
.user-access-card{
  padding:18px 0;
  border-bottom:1px solid #edf1ed;
}
.user-access-card:last-child{
  border-bottom:0;
}
.user-access-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.user-access-head>div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.user-access-head>div>strong{
  font-size:14px;
}
.user-access-head>div>span{
  color:#7b887f;
  font-size:11px;
}
.access-form{
  margin-bottom:9px;
}
.access-checkbox-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.access-check{
  margin:0 !important;
  padding:10px 11px;
  border:1px solid #e0e8e1;
  border-radius:10px;
  background:#fafcfa;
}
.primary-mini{
  background:#1c6037;
  color:#fff;
  border-color:#1c6037;
}
@media(max-width:700px){
  .access-checkbox-grid{
    grid-template-columns:1fr;
  }
}


/* ============================================================
   V9 - HAZGEN PROFESSIONAL VISUAL DASHBOARD
   ============================================================ */
.hg-workspace{
  margin:0;
  background:#f2f3f1;
  color:#171b18;
  font-family:Inter,Segoe UI,Arial,sans-serif;
}
.hg-app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
}
.hg-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:26px 18px 20px;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at 30% 78%,rgba(255,130,0,.08),transparent 27%),
    linear-gradient(180deg,#111513,#0b0e0c);
  color:#fff;
  overflow:hidden;
}
.hg-side-brand{
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  padding:0 6px 25px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.hg-side-brand img{
  width:58px;
  height:58px;
  object-fit:contain;
}
.hg-side-brand div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.hg-side-brand strong{
  font-size:17px;
  letter-spacing:.05em;
}
.hg-side-brand span{
  font-size:9px;
  color:#f28a18;
  font-weight:800;
  letter-spacing:.13em;
}
.hg-side-nav{
  display:grid;
  gap:7px;
  margin-top:25px;
}
.hg-side-nav a{
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 14px;
  color:#e8e9e8;
  text-decoration:none;
  border-radius:11px;
  font-size:13px;
  transition:.18s;
}
.hg-side-nav a:hover{
  background:rgba(255,255,255,.06);
}
.hg-side-nav a.active{
  background:linear-gradient(90deg,#f27d0b,#ff9717);
  color:#fff;
  box-shadow:0 8px 18px rgba(242,125,11,.18);
}
.nav-icon{
  width:22px;
  text-align:center;
  font-size:19px;
}
.hg-side-security{
  margin-top:auto;
  padding:17px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.side-shield{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#ff8b0e;
  border:1px solid rgba(255,139,14,.55);
  margin-bottom:10px;
}
.hg-side-security strong{
  font-size:13px;
}
.hg-side-security p{
  margin:7px 0 0;
  color:#aeb5b0;
  font-size:11px;
  line-height:1.5;
}
.hg-side-photo{
  position:relative;
  height:150px;
  margin-top:15px;
  overflow:hidden;
  border-radius:14px;
}
.hg-side-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.55) saturate(.9);
}
.hg-side-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent,rgba(5,7,6,.88));
}
.hg-side-photo div{
  position:absolute;
  left:14px;
  right:14px;
  bottom:13px;
  z-index:2;
  display:flex;
  flex-direction:column;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}
.hg-side-photo span{color:#e7e7e7}
.hg-side-photo strong{color:#ff8b0e}
.hg-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.hg-topbar{
  height:78px;
  padding:0 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#fff;
  border-bottom:1px solid #e0e4e0;
}
.hg-welcome-mini{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.hg-welcome-mini span{
  font-size:12px;
  color:#7a827c;
}
.hg-welcome-mini strong{
  font-size:17px;
}
.hg-user-actions{
  display:flex;
  align-items:center;
  gap:13px;
  font-size:12px;
}
.hg-user-actions a{
  color:#315d3e;
  text-decoration:none;
}
.logout-link{color:#b64837 !important}
.hg-role-badge{
  padding:6px 9px;
  border-radius:999px;
  background:#eef5ef;
  border:1px solid #d6e4d8;
  color:#2c613b;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hg-content{
  padding:28px 30px 34px;
}
.hg-hero{
  position:relative;
  min-height:310px;
  overflow:hidden;
  border-radius:22px;
  background:#111;
  box-shadow:0 14px 34px rgba(25,40,29,.12);
}
.hg-hero>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hg-hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(5,10,7,.93) 0%,rgba(6,18,10,.83) 42%,rgba(6,18,10,.22) 76%,rgba(6,18,10,.08) 100%);
}
.hg-hero-content{
  position:relative;
  z-index:2;
  width:min(720px,74%);
  padding:39px 42px 34px;
  color:#fff;
}
.hg-kicker{
  color:#ff8b0e;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
}
.hg-kicker.dark{
  color:#bb761c;
}
.hg-hero-content h1{
  margin:9px 0 8px;
  font-size:43px;
  letter-spacing:-.04em;
}
.hg-hero-content>p{
  margin:0;
  max-width:590px;
  color:#e4e7e4;
  font-size:16px;
  line-height:1.55;
}
.hg-hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:29px;
}
.hg-hero-stats>div{
  padding:13px 15px;
  display:grid;
  grid-template-columns:30px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  gap:1px 8px;
  background:rgba(10,15,11,.63);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  backdrop-filter:blur(4px);
}
.hg-hero-stats>div>span{
  grid-row:1 / 3;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,135,0,.14);
  color:#ff8b0e;
  font-weight:900;
}
.hg-hero-stats strong{
  font-size:11px;
}
.hg-hero-stats small{
  color:#bfc6c1;
  font-size:9px;
}
.hg-hero-logo{
  position:absolute;
  top:23px;
  right:29px;
  z-index:2;
  width:91px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(6,8,7,.68);
  border:1px solid rgba(255,255,255,.12);
}
.hg-hero-logo img{
  max-width:72px;
  max-height:58px;
  object-fit:contain;
}
.hg-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:20px;
  margin-top:22px;
}
.hg-applications-panel{
  min-width:0;
}
.hg-section-heading{
  margin-bottom:15px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
}
.hg-section-heading h2{
  margin:4px 0 3px;
  font-size:24px;
}
.hg-section-heading p{
  margin:0;
  color:#747d76;
  font-size:12px;
}
.hg-outline-btn{
  padding:10px 13px;
  border-radius:9px;
  border:1px solid #d2dbd4;
  background:#fff;
  text-decoration:none;
  color:#245b36;
  font-weight:800;
  font-size:11px;
}
.hg-system-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(225px,1fr));
  gap:16px;
}
.hg-system-card{
  overflow:hidden;
  border:1px solid #dde3de;
  border-radius:17px;
  background:#fff;
  box-shadow:0 7px 20px rgba(28,45,32,.06);
  transition:.2s;
}
.hg-system-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(28,45,32,.11);
}
.hg-system-image{
  position:relative;
  height:168px;
  overflow:hidden;
  background:#ddd;
}
.hg-system-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.22));
}
.hg-system-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.3s;
}
.hg-system-card:hover .hg-system-image img{
  transform:scale(1.025);
}
.hg-authorised-badge{
  position:absolute;
  z-index:3;
  top:12px;
  left:12px;
  padding:6px 9px;
  border-radius:999px;
  color:#fff;
  background:#258343;
  font-size:9px;
  font-weight:900;
  letter-spacing:.04em;
}
.hg-system-body{
  position:relative;
  padding:21px 18px 17px;
}
.hg-system-icon{
  position:absolute;
  top:-31px;
  left:18px;
  width:57px;
  height:57px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  border:1px solid #e0e4e0;
  color:#ec800d;
  font-size:24px;
  font-weight:900;
  box-shadow:0 7px 15px rgba(0,0,0,.08);
}
.hg-system-category{
  display:block;
  margin-top:19px;
  color:#bb761c;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hg-system-body h3{
  margin:5px 0 7px;
  font-size:20px;
}
.hg-system-body>p{
  min-height:56px;
  margin:0;
  color:#69736b;
  font-size:12px;
  line-height:1.55;
}
.hg-system-footer{
  margin-top:15px;
  padding-top:13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid #edf0ed;
}
.hg-system-footer>span{
  color:#818881;
  font-size:9px;
}
.hg-system-footer a{
  padding:9px 11px;
  border-radius:8px;
  background:#151917;
  color:#fff;
  text-decoration:none;
  font-size:10px;
  font-weight:900;
}
.hg-system-footer a b{
  margin-left:5px;
  color:#ff8b0e;
  font-size:15px;
}
.hg-security-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:11px;
  margin-top:17px;
}
.hg-security-row article{
  min-height:76px;
  padding:13px;
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid #dde3de;
  border-radius:13px;
  background:#fff;
}
.hg-security-row article>span{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff1e2;
  color:#ee7f0c;
  font-size:17px;
}
.hg-security-row article div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.hg-security-row strong{
  font-size:10px;
}
.hg-security-row small{
  color:#7b837d;
  font-size:9px;
  line-height:1.35;
}
.hg-right-column{
  display:grid;
  gap:15px;
  align-content:start;
}
.hg-profile-card,
.hg-activity-card{
  padding:20px;
  border:1px solid #dde3de;
  border-radius:17px;
  background:#fff;
  box-shadow:0 7px 20px rgba(28,45,32,.05);
}
.hg-profile-card{
  text-align:center;
}
.hg-profile-logo{
  width:78px;
  height:78px;
  margin:0 auto 10px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f4f5f3;
  border:1px solid #e1e4e1;
}
.hg-profile-logo img{
  max-width:58px;
  max-height:50px;
}
.hg-profile-card h3{
  margin:0 0 3px;
  font-size:18px;
}
.hg-profile-card>span{
  color:#e1780e;
  font-size:11px;
  font-weight:800;
}
.hg-profile-details{
  margin-top:17px;
  padding-top:14px;
  display:grid;
  gap:11px;
  border-top:1px solid #ecefec;
  text-align:left;
}
.hg-profile-details div{
  display:flex;
  align-items:center;
  gap:9px;
  color:#656d67;
  font-size:10px;
}
.hg-profile-details b{
  width:25px;
  color:#1e6037;
  text-align:center;
}
.hg-card-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:13px;
}
.hg-card-heading h3{
  margin:4px 0 0;
  font-size:17px;
}
.hg-activity-list{
  display:grid;
}
.hg-activity-item{
  padding:11px 0;
  display:flex;
  align-items:flex-start;
  gap:10px;
  border-bottom:1px solid #eef0ee;
}
.hg-activity-item:last-child{
  border-bottom:0;
}
.activity-dot{
  width:9px;
  height:9px;
  flex:0 0 9px;
  margin-top:5px;
  border-radius:50%;
  background:#278946;
  box-shadow:0 0 0 5px #edf7ef;
}
.activity-dot.danger{
  background:#cc4135;
  box-shadow:0 0 0 5px #fff0ee;
}
.hg-activity-item div:last-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.hg-activity-item strong{
  font-size:10px;
  line-height:1.35;
}
.hg-activity-item span{
  color:#858c86;
  font-size:9px;
}
.hg-empty-activity{
  color:#858c86;
  font-size:11px;
  line-height:1.5;
}
.hg-commitment-card{
  position:relative;
  min-height:160px;
  overflow:hidden;
  border-radius:17px;
}
.hg-commitment-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hg-commitment-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.78));
}
.hg-commitment-card div{
  position:absolute;
  z-index:2;
  left:17px;
  right:17px;
  bottom:16px;
  display:flex;
  flex-direction:column;
  color:#fff;
}
.hg-commitment-card span{
  color:#ff8b0e;
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
}
.hg-commitment-card strong{
  margin-top:5px;
  font-size:13px;
}
.hg-no-access{
  padding:44px 25px;
  text-align:center;
  border:1px solid #dde3de;
  border-radius:17px;
  background:#fff;
}
.hg-no-access>div{
  font-size:34px;
}
.hg-no-access h3{
  margin:7px 0;
}
.hg-no-access p{
  max-width:480px;
  margin:0 auto;
  color:#777f79;
  font-size:12px;
  line-height:1.5;
}
.hg-footer{
  margin-top:auto;
  min-height:62px;
  padding:0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #e0e4e0;
  background:#fff;
  color:#6d756f;
  font-size:10px;
}
.hg-footer div{
  display:flex;
  align-items:center;
  gap:9px;
}
.hg-footer img{
  width:36px;
  height:30px;
  object-fit:contain;
}
.hg-footer strong{
  color:#36563f;
}
.hg-footer em{
  color:#ef7f0d;
  font-style:normal;
}
@media(max-width:1080px){
  .hg-app-shell{
    grid-template-columns:78px minmax(0,1fr);
  }
  .hg-sidebar{
    padding:21px 10px;
  }
  .hg-side-brand{
    justify-content:center;
    padding:0 0 20px;
  }
  .hg-side-brand img{
    width:50px;
  }
  .hg-side-brand div,
  .hg-side-nav a span:last-child,
  .hg-side-security,
  .hg-side-photo{
    display:none;
  }
  .hg-side-nav a{
    justify-content:center;
    padding:13px 10px;
  }
  .hg-dashboard-grid{
    grid-template-columns:1fr;
  }
  .hg-right-column{
    grid-template-columns:repeat(3,1fr);
  }
}
@media(max-width:760px){
  .hg-app-shell{
    display:block;
  }
  .hg-sidebar{
    position:static;
    height:auto;
    flex-direction:row;
    align-items:center;
    padding:11px 15px;
  }
  .hg-side-brand{
    border:0;
    padding:0;
  }
  .hg-side-brand img{
    width:44px;
    height:44px;
  }
  .hg-side-nav{
    margin:0 0 0 auto;
    display:flex;
  }
  .hg-side-nav a{
    padding:9px 10px;
  }
  .hg-topbar{
    height:auto;
    padding:13px 16px;
  }
  .hg-content{
    padding:17px 14px 24px;
  }
  .hg-hero{
    min-height:365px;
  }
  .hg-hero-content{
    width:100%;
    padding:30px 24px;
  }
  .hg-hero-content h1{
    font-size:34px;
  }
  .hg-hero-shade{
    background:rgba(5,10,7,.74);
  }
  .hg-hero-stats{
    grid-template-columns:1fr;
  }
  .hg-hero-logo{
    display:none;
  }
  .hg-section-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .hg-system-grid{
    grid-template-columns:1fr;
  }
  .hg-security-row,
  .hg-right-column{
    grid-template-columns:1fr;
  }
  .hg-user-actions .hg-role-badge{
    display:none;
  }
  .hg-footer{
    padding:15px 17px;
    flex-direction:column;
    align-items:flex-start;
  }
}

/* V10 ADMIN VISUALS */
.hg-admin-page{margin:0;background:#f2f3f1;color:#171b18;font-family:Inter,Segoe UI,Arial,sans-serif}.hg-admin-hero{position:relative;min-height:230px;overflow:hidden;border-radius:22px;background:#111;box-shadow:0 14px 34px rgba(25,40,29,.11)}.hg-admin-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hg-admin-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,12,9,.94),rgba(9,20,12,.82) 52%,rgba(7,12,9,.2))}.hg-admin-hero-content{position:relative;z-index:2;width:min(680px,72%);padding:36px 40px;color:#fff}.hg-admin-hero-content h1{margin:8px 0;font-size:38px;letter-spacing:-.035em}.hg-admin-hero-content p{margin:0;color:#dde2de;font-size:14px;line-height:1.6}.hg-admin-hero-badge{position:absolute;z-index:3;top:26px;right:28px;padding:13px 15px;display:flex;align-items:center;gap:10px;border-radius:13px;background:rgba(12,15,13,.78);border:1px solid rgba(255,255,255,.13);color:#fff}.hg-admin-hero-badge img{width:48px;height:44px;object-fit:contain}.hg-admin-hero-badge div{display:flex;flex-direction:column}.hg-admin-hero-badge span{font-size:9px;color:#ff8b0e}.hg-admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}.hg-admin-stats article{padding:16px 17px;display:flex;align-items:center;gap:12px;border:1px solid #dde3de;border-radius:15px;background:#fff;box-shadow:0 6px 16px rgba(28,45,32,.05)}.hg-admin-stats article>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#fff2e3;color:#f18411;font-size:19px}.hg-admin-stats div{display:flex;flex-direction:column}.hg-admin-stats strong{font-size:22px}.hg-admin-stats small{color:#7a837c;font-size:9px;text-transform:uppercase}.hg-admin-message{margin-top:17px;padding:13px 15px;border-radius:11px;font-size:12px}.hg-admin-message.success{background:#edf8ef;border:1px solid #c7e1cc;color:#23653a}.hg-admin-message.error{background:#fff1ef;border:1px solid #efcbc7;color:#9d3d33}.hg-admin-grid{display:grid;grid-template-columns:370px minmax(0,1fr);gap:18px;margin-top:18px}.hg-create-user-card,.hg-user-management-card{border:1px solid #dde3de;border-radius:18px;background:#fff;box-shadow:0 7px 20px rgba(28,45,32,.06)}.hg-create-user-card,.hg-user-management-card{padding:22px}.hg-admin-card-head{display:flex;gap:12px;padding-bottom:17px;border-bottom:1px solid #edf0ed}.hg-admin-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#161a17;color:#ff8b0e;font-size:23px}.hg-admin-card-head h2,.hg-users-head h2{margin:4px 0;font-size:21px}.hg-admin-card-head p,.hg-users-head p{margin:0;color:#747d76;font-size:10px;line-height:1.5}.hg-admin-form{margin-top:17px}.hg-admin-form label{display:block;margin:14px 0 6px;font-size:11px;font-weight:800}.hg-admin-form>input,.hg-admin-form>select{width:100%;height:46px;padding:0 13px;border:1px solid #d3ddd5;border-radius:10px;background:#fbfcfb}.hg-app-fieldset{margin:18px 0 0;padding:12px;border:1px solid #dfe5e0;border-radius:13px}.hg-app-fieldset legend{padding:0 7px;font-size:9px;font-weight:900;text-transform:uppercase}.hg-system-check{position:relative;display:grid!important;grid-template-columns:22px 1fr;gap:10px;margin:0!important;padding:11px 8px;border-bottom:1px solid #edf0ed;cursor:pointer}.hg-system-check:last-child{border-bottom:0}.hg-system-check input{position:absolute;opacity:0}.hg-check-box{width:19px;height:19px;border-radius:6px;border:1px solid #cad7cc;background:#fff}.hg-system-check input:checked+.hg-check-box{background:#1f6d3e;border-color:#1f6d3e}.hg-system-check input:checked+.hg-check-box:after{content:'✓';display:grid;place-items:center;height:100%;color:#fff;font-size:11px}.hg-system-check div{display:flex;flex-direction:column}.hg-system-check strong{font-size:10px}.hg-system-check small{color:#808881;font-size:8px}.hg-primary-admin-btn{width:100%;height:48px;margin-top:17px;border:0;border-radius:10px;background:linear-gradient(90deg,#ec7e0c,#ff9515);color:#fff;font-size:11px;font-weight:900}.hg-users-head{display:flex;justify-content:space-between;align-items:flex-end;padding-bottom:16px;border-bottom:1px solid #edf0ed}.hg-user-count{padding:6px 9px;border-radius:999px;background:#f2f5f2;font-size:9px}.hg-user-card{padding:18px 0;border-bottom:1px solid #edf0ed}.hg-user-summary{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:11px}.hg-user-avatar{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#171b18,#343a35);color:#ff8b0e;font-weight:900}.hg-user-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.hg-user-meta>span{color:#707a72;font-size:9px}.hg-user-meta>div{display:flex;gap:8px;flex-wrap:wrap}.hg-user-meta small{color:#8a918b;font-size:8px}.hg-account-status{padding:6px 8px;border-radius:999px;font-size:8px;font-weight:900}.hg-account-status.active{color:#25713f;background:#eaf6ed}.hg-account-status.disabled{color:#9e4b42;background:#faecea}.hg-access-control-form{margin-top:13px}.hg-access-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hg-access-option{position:relative;padding:10px 9px;display:grid!important;grid-template-columns:30px 1fr;gap:8px;align-items:center;margin:0!important;border:1px solid #e0e5e1;border-radius:11px;background:#fafbfa}.hg-access-option.selected{border-color:#c6ddcc;background:#f1f8f3}.hg-access-option input{position:absolute;opacity:0}.hg-access-option>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#fff;border:1px solid #e2e6e2;color:#e67c0d}.hg-access-option div{display:flex;flex-direction:column}.hg-access-option strong{font-size:9px}.hg-access-option small{color:#838b85;font-size:7px}.hg-user-actions-row{margin-top:10px}.hg-save-access-btn{padding:9px 12px;border:0;border-radius:8px;background:#1e6639;color:#fff;font-size:9px;font-weight:900}.hg-account-toggle-form{margin-top:8px}.hg-toggle-account-btn{padding:8px 11px;border-radius:8px;background:#fff;font-size:9px;font-weight:800}.hg-toggle-account-btn.danger{color:#9a4339;border:1px solid #e8c7c3}.hg-toggle-account-btn.enable{color:#27633a;border:1px solid #c9dfce}@media(max-width:1100px){.hg-admin-grid{grid-template-columns:1fr}}@media(max-width:820px){.hg-admin-stats{grid-template-columns:repeat(2,1fr)}.hg-access-options{grid-template-columns:1fr}}@media(max-width:600px){.hg-admin-hero-content{width:100%;padding:28px 24px}.hg-admin-hero-badge{display:none}.hg-admin-stats{grid-template-columns:1fr}.hg-user-summary{grid-template-columns:42px 1fr}.hg-account-status{grid-column:2;width:max-content}}

/* V13 account security + audit trail */
.hg-password-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);background:#fff}
.hg-password-visual{position:relative;min-height:100vh;overflow:hidden;background:#111}
.hg-password-visual>img{position:absolute;width:100%;height:100%;object-fit:cover}
.hg-password-overlay{position:absolute;inset:0;background:linear-gradient(120deg,rgba(9,17,12,.94),rgba(12,39,23,.70))}
.hg-password-brand{position:absolute;left:9%;bottom:12%;max-width:560px;color:#fff}
.hg-password-brand img{width:105px;height:90px;object-fit:contain}.hg-password-brand span{display:block;color:#f58a12;font-size:11px;font-weight:900;letter-spacing:.14em}
.hg-password-brand h1{font-size:42px;line-height:1.05;margin:12px 0}.hg-password-brand p{color:#dce3de;line-height:1.6}
.hg-password-panel{padding:8vh 9%;display:flex;flex-direction:column;justify-content:center}.hg-password-panel h2{font-size:32px;margin:8px 0}.hg-password-panel>p{color:#69736c;line-height:1.55}
.hg-password-back{color:#22663b;text-decoration:none;font-weight:800;margin-bottom:40px}.hg-password-note{margin-top:18px;padding:13px;border-radius:10px;background:#f4f7f4;color:#647068;font-size:11px}
.hg-audit-shell{max-width:1500px;margin:auto;padding:22px 3% 50px}.hg-audit-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.hg-audit-header>div{display:flex;align-items:center;gap:12px}.hg-audit-header img{width:58px;height:52px;object-fit:contain}.hg-audit-header span{font-size:9px;color:#e77c0d;font-weight:900;letter-spacing:.12em}.hg-audit-header h1{margin:2px 0;font-size:22px}.hg-audit-header nav{display:flex;gap:9px}.hg-audit-header a,.hg-audit-search a{padding:10px 13px;border:1px solid #d7e0d9;border-radius:9px;text-decoration:none;color:#245f39;font-size:10px;font-weight:800;background:#fff}
.hg-audit-hero{display:flex;justify-content:space-between;align-items:center;padding:28px 30px;border-radius:18px;background:linear-gradient(120deg,#101612,#173522);color:#fff}.hg-audit-hero h2{font-size:28px;margin:6px 0}.hg-audit-hero p{margin:0;color:#d3ddd6}.hg-audit-hero>strong{padding:10px 13px;border-radius:10px;background:#f28412;color:#fff;font-size:11px}
.hg-audit-search{display:flex;gap:9px;margin:18px 0}.hg-audit-search input{flex:1;min-width:0;height:43px;padding:0 14px;border:1px solid #d6dfd8;border-radius:10px}.hg-audit-search button{border:0;border-radius:9px;padding:0 17px;background:#1e6639;color:#fff;font-weight:800;cursor:pointer}
.hg-audit-table-wrap{overflow:auto;border:1px solid #dfe5e0;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(28,45,32,.05)}.hg-audit-table{width:100%;border-collapse:collapse;min-width:900px}.hg-audit-table th{text-align:left;padding:12px 14px;background:#f5f7f5;color:#69746c;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.hg-audit-table td{padding:13px 14px;border-top:1px solid #edf0ed;font-size:10px}.hg-audit-table td strong{display:block;font-size:10px}.hg-audit-table td small{display:block;color:#879087;margin-top:3px}.hg-audit-empty{text-align:center!important;padding:40px!important;color:#7c857e}
@media(max-width:800px){.hg-password-page{grid-template-columns:1fr}.hg-password-visual{display:none}.hg-password-panel{min-height:100vh}.hg-audit-header{align-items:flex-start;gap:15px}.hg-audit-header nav{flex-direction:column}.hg-audit-hero>strong{display:none}}


/* V14 - EDIT EXISTING USER ACCESS */
.hg-access-summary{
  margin-top:13px;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#f5f8f5;
  border:1px solid #e0e8e1;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.hg-access-summary strong{
  font-size:10px;
  color:#225e36;
}
.hg-access-summary span{
  font-size:8px;
  color:#7b857e;
  line-height:1.4;
}
.hg-remove-access-form{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed #e3e8e4;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.hg-remove-all-access-btn{
  padding:8px 10px;
  border:1px solid #e5c8c4;
  border-radius:8px;
  background:#fff;
  color:#a04b40;
  font-size:8px;
  font-weight:800;
  cursor:pointer;
}
.hg-remove-all-access-btn:hover{
  background:#fff3f1;
}
.hg-remove-access-form small{
  color:#8a918b;
  font-size:8px;
}


/* V14.2 - FIX CLICKABLE ACCESS CHECKBOXES */
.hg-access-option{
  grid-template-columns:22px 32px minmax(0,1fr) auto !important;
  align-items:center !important;
  cursor:pointer !important;
}
.hg-access-option input.hg-real-access-checkbox{
  position:static !important;
  opacity:1 !important;
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  width:18px !important;
  height:18px !important;
  margin:0 !important;
  cursor:pointer !important;
  accent-color:#1f6d3e;
}
.hg-access-option .hg-access-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#fff;
  border:1px solid #e2e6e2;
  color:#e67c0d;
  font-size:15px;
  font-weight:900;
}
.hg-access-state{
  min-width:34px;
  padding:5px 7px;
  border-radius:999px;
  background:#f1f2f1;
  color:#7c837e;
  font-size:8px;
  font-weight:900;
  text-align:center;
}
.hg-access-option.selected .hg-access-state{
  background:#e6f5ea;
  color:#216b3e;
}
.hg-access-option:hover{
  border-color:#bcd4c2;
  background:#f7fbf8;
}


/* ============================================================
   V15 - ALIVE UI / MOTION SYSTEM
   ============================================================ */
:root{
  --hg-orange:#ff8610;
  --hg-orange2:#ff9b20;
  --hg-green:#1f6d3e;
  --hg-ink:#101513;
  --hg-glow:0 0 0 1px rgba(255,134,16,.08),0 16px 38px rgba(19,41,27,.10);
}
html{scroll-behavior:smooth}
body{animation:hgPageIn .45s ease both}
@keyframes hgPageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

.hg-main,.hg-content,.hg-admin-page,.hg-workspace{position:relative}
.hg-main:before{
  content:"";
  position:fixed;
  inset:0 0 auto 236px;
  height:260px;
  pointer-events:none;
  background:
    radial-gradient(circle at 72% -20%,rgba(255,134,16,.08),transparent 42%),
    radial-gradient(circle at 28% 0%,rgba(31,109,62,.07),transparent 38%);
  z-index:0;
}
.hg-content,.hg-topbar,.hg-footer{position:relative;z-index:1}

/* animated sidebar */
.hg-sidebar:before{
  content:"";
  position:absolute;inset:-30% -80% auto -80%;
  height:240px;
  background:linear-gradient(110deg,transparent 20%,rgba(255,134,16,.09),transparent 65%);
  transform:rotate(-8deg);
  animation:hgSideSweep 9s linear infinite;
  pointer-events:none;
}
@keyframes hgSideSweep{
  0%{transform:translateX(-40%) rotate(-8deg)}
  55%,100%{transform:translateX(150%) rotate(-8deg)}
}
.hg-side-brand img{
  transition:transform .35s ease,filter .35s ease;
}
.hg-side-brand:hover img{
  transform:scale(1.06) rotate(-2deg);
  filter:drop-shadow(0 0 12px rgba(255,134,16,.26));
}
.hg-side-nav a{
  position:relative;overflow:hidden;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.hg-side-nav a:hover{transform:translateX(3px)}
.hg-side-nav a.active{
  animation:hgActiveGlow 3.2s ease-in-out infinite;
}
@keyframes hgActiveGlow{
  0%,100%{box-shadow:0 8px 18px rgba(242,125,11,.18)}
  50%{box-shadow:0 8px 28px rgba(242,125,11,.34),0 0 24px rgba(255,134,16,.12)}
}

/* hero motion */
.hg-animated-surface{isolation:isolate}
.hg-animated-surface:before{
  content:"";
  position:absolute;
  width:320px;height:320px;border-radius:50%;
  right:-120px;bottom:-190px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 0 40px rgba(255,255,255,.025),0 0 0 85px rgba(255,255,255,.018);
  animation:hgOrb 7s ease-in-out infinite;
  z-index:2;pointer-events:none;
}
@keyframes hgOrb{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-18px) scale(1.035)}
}
.hg-hero>img,.hg-admin-hero>img,.hg-login-bg{
  transform:scale(1.02);
  transition:transform .55s cubic-bezier(.2,.7,.2,1);
}
.hg-hero-content,.hg-admin-hero-content{
  animation:hgHeroCopy .65s .08s both;
}
@keyframes hgHeroCopy{
  from{opacity:0;transform:translateX(-18px)}
  to{opacity:1;transform:none}
}

/* live security pill */
.hg-live-status{
  display:flex;align-items:center;gap:7px;
  padding:7px 10px;border-radius:999px;
  background:#f4f8f5;border:1px solid #dfe9e1;
  color:#58705f;font-size:9px;white-space:nowrap;
}
.hg-live-status b{color:#234e31;font-size:9px}
.hg-live-dot{
  width:7px;height:7px;border-radius:50%;background:#2c9a51;
  box-shadow:0 0 0 0 rgba(44,154,81,.42);
  animation:hgPulse 1.9s infinite;
}
@keyframes hgPulse{
  0%{box-shadow:0 0 0 0 rgba(44,154,81,.42)}
  70%{box-shadow:0 0 0 8px rgba(44,154,81,0)}
  100%{box-shadow:0 0 0 0 rgba(44,154,81,0)}
}

/* reveal */
.hg-reveal{
  opacity:0;
  transform:translateY(16px) scale(.985);
}
.hg-reveal.is-visible{
  opacity:1;
  transform:none;
  transition:
    opacity .55s var(--reveal-delay,0ms) ease,
    transform .62s var(--reveal-delay,0ms) cubic-bezier(.18,.75,.25,1);
}

/* interactive 3d tilt / light */
.hg-tilt{
  --rx:0deg;--ry:0deg;--mx:50%;--my:50%;
  transform-style:preserve-3d;
  transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:transform .16s ease,box-shadow .25s ease,border-color .25s ease;
  position:relative;
}
.hg-tilt:after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(circle at var(--mx) var(--my),rgba(255,255,255,.28),transparent 28%);
  opacity:0;transition:opacity .2s ease;pointer-events:none;
}
.hg-tilt:hover:after{opacity:.65}
.hg-system-card:hover{
  border-color:rgba(255,134,16,.28);
  box-shadow:0 20px 44px rgba(22,44,29,.14);
}
.hg-system-image img{transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .4s ease}
.hg-system-card:hover .hg-system-image img{transform:scale(1.065);filter:saturate(1.08) contrast(1.03)}
.hg-system-icon{
  transition:transform .28s ease,box-shadow .28s ease;
}
.hg-system-card:hover .hg-system-icon{
  transform:translateY(-3px) rotate(-3deg);
  box-shadow:0 9px 22px rgba(255,134,16,.18);
}
.hg-authorised-badge{
  animation:hgBadgeFloat 3.4s ease-in-out infinite;
}
@keyframes hgBadgeFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

/* buttons */
button,.hg-system-footer a,.hg-outline-btn,.hg-side-nav a{
  position:relative;overflow:hidden;
}
.hg-primary-admin-btn,.hg-login-button,.hg-save-access-btn,.hg-system-footer a{
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.hg-primary-admin-btn:hover,.hg-login-button:hover,.hg-save-access-btn:hover,.hg-system-footer a:hover{
  transform:translateY(-2px);
  filter:brightness(1.04);
}
.hg-primary-admin-btn:hover,.hg-login-button:hover{
  box-shadow:0 14px 28px rgba(255,134,16,.22);
}
.hg-ripple{
  position:absolute;width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.42);
  transform:translate(-50%,-50%) scale(0);
  animation:hgRipple .62s ease-out forwards;
  pointer-events:none;
}
@keyframes hgRipple{
  to{transform:translate(-50%,-50%) scale(28);opacity:0}
}

/* admin stats feel live */
.hg-admin-stats article{
  position:relative;overflow:hidden;
}
.hg-admin-stats article:before{
  content:"";position:absolute;left:-50%;top:-120%;width:60%;height:340%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  transform:rotate(18deg);
  transition:transform .6s ease;
}
.hg-admin-stats article:hover:before{transform:translateX(320%) rotate(18deg)}
.hg-admin-stats strong{
  transition:color .2s ease;
}
.hg-admin-stats article:hover strong{color:var(--hg-orange)}

/* user access options */
.hg-access-option{
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.hg-access-option:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(26,48,33,.07);
}
.hg-access-option.selected{
  box-shadow:inset 0 0 0 1px rgba(31,109,62,.05);
}
.hg-access-state{
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.hg-access-option.selected .hg-access-state{transform:scale(1.04)}

/* profile/activity */
.hg-profile-card:hover .hg-profile-logo{
  transform:scale(1.045) rotate(-2deg);
  box-shadow:0 8px 22px rgba(255,134,16,.12);
}
.hg-profile-logo{transition:.25s ease}
.hg-activity-item{
  transition:background .18s ease,padding-left .18s ease;
}
.hg-activity-item:hover{
  background:#f8faf8;
  padding-left:5px;
}
.activity-dot{animation:hgDot 2.6s ease-in-out infinite}
@keyframes hgDot{0%,100%{transform:scale(1)}50%{transform:scale(1.2)}}

/* audit table */
.hg-audit-table tbody tr{
  transition:background .15s ease,transform .15s ease;
}
.hg-audit-table tbody tr:hover{
  background:#fafcfb;
}
.hg-audit-hero{
  position:relative;overflow:hidden;
}
.hg-audit-hero:after{
  content:"";position:absolute;width:240px;height:240px;border-radius:50%;
  right:-90px;top:-140px;background:rgba(255,134,16,.07);
  animation:hgOrb 7s ease-in-out infinite;
}

/* login "alive" treatment */
.hg-login-card{
  animation:hgLoginCard .65s .12s both;
}
@keyframes hgLoginCard{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:none}
}
.hg-login-card:before{
  content:"";position:absolute;inset:-1px;border-radius:24px;pointer-events:none;
  background:linear-gradient(120deg,transparent 15%,rgba(255,134,16,.13),transparent 55%);
  background-size:220% 100%;
  animation:hgCardSweep 5.5s linear infinite;
  opacity:.45;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  padding:1px;
  -webkit-mask-composite:xor;
  mask-composite:exclude;
}
@keyframes hgCardSweep{
  from{background-position:220% 0}
  to{background-position:-120% 0}
}
.hg-lock-tile{
  animation:hgLockFloat 3s ease-in-out infinite;
}
@keyframes hgLockFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

/* smoother page shell transitions */
.hg-footer{
  animation:hgFooterIn .55s .3s both;
}
@keyframes hgFooterIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}

.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important;
}
@media(max-width:760px){
  .hg-live-status{display:none}
  .hg-main:before{left:0}
  .hg-reveal{opacity:1;transform:none}
}

.hg-version-badge{padding:5px 7px;border-radius:999px;background:#111713;color:#ff8b0e;border:1px solid #2e3931;font-size:8px;font-weight:900;letter-spacing:.06em}


/* V22 - Department grouping + filters */
.hg-department-nav .hg-filter-link b{
  margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:999px;
  display:grid;place-items:center;background:rgba(255,255,255,.08);font-size:8px;color:#d6ddd8;
}
.hg-department-nav .hg-filter-link.active b{background:rgba(255,255,255,.20);color:#fff}
.hg-side-divider{height:1px;background:rgba(255,255,255,.09);margin:8px 8px}
.hg-department-sections{display:grid;gap:25px}
.hg-department-section{
  scroll-margin-top:90px;padding:0;opacity:1;transform:none;
  transition:opacity .26s ease,transform .26s ease,max-height .3s ease;
}
.hg-department-section.hg-department-hidden{display:none}
.hg-department-heading{
  min-height:74px;margin-bottom:12px;padding:12px 14px;
  display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;
  border:1px solid #dde4df;border-radius:14px;background:linear-gradient(105deg,#fff,#f7faf7);
  box-shadow:0 5px 15px rgba(24,45,30,.04);
}
.hg-department-icon{
  width:46px;height:46px;display:grid;place-items:center;border-radius:13px;
  background:#141916;color:#f58a12;font-size:20px;font-weight:900;
}
.hg-department-heading>div:nth-child(2){display:flex;flex-direction:column}
.hg-department-heading span{font-size:8px;color:#d87912;font-weight:900;letter-spacing:.12em}
.hg-department-heading h3{margin:2px 0;font-size:16px}
.hg-department-heading p{margin:0;color:#78827b;font-size:9px}
.hg-department-heading>strong{
  padding:6px 9px;border-radius:999px;background:#edf5ef;color:#28643a;font-size:8px;
}
.hg-card-department{
  position:absolute;z-index:3;right:11px;bottom:11px;padding:5px 8px;border-radius:999px;
  background:rgba(15,20,16,.82);backdrop-filter:blur(5px);color:#fff;font-size:8px;font-weight:800;
}
.hg-admin-dept-block{padding:10px 0 5px;border-bottom:1px solid #edf0ed}
.hg-admin-dept-block:last-child{border-bottom:0}
.hg-admin-dept-title{display:flex;gap:9px;align-items:center;padding:7px 7px 5px}
.hg-admin-dept-title>span{
  width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#161a17;color:#f58a12
}
.hg-admin-dept-title>div{display:flex;flex-direction:column;gap:2px}
.hg-admin-dept-title strong{font-size:10px}.hg-admin-dept-title small{font-size:7px;color:#818a83}
.hg-access-department-groups{display:grid;gap:11px}
.hg-user-dept-access{padding:9px;border:1px solid #e2e7e3;border-radius:12px;background:#fbfcfb}
.hg-user-dept-head{display:flex;gap:7px;align-items:center;margin-bottom:7px;color:#4e5f53}
.hg-user-dept-head span{color:#e47d10}.hg-user-dept-head strong{font-size:9px}
.hg-user-dept-access .hg-access-options{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
@media(max-width:760px){
 .hg-department-heading{grid-template-columns:42px 1fr}.hg-department-heading>strong{grid-column:2;width:max-content}
 .hg-department-nav .hg-filter-link b{display:none}
}

/* V27 Corporate Workspace UI */
.hg-v27{background:#f3f6f4;color:#162019}.hg-v27 .hg-app-shell{background:#f3f6f4}
.v27-sidebar{width:230px;background:linear-gradient(180deg,#0b1511,#0b120f);padding:0 14px 16px;display:flex;flex-direction:column}
.v27-brand{height:150px;padding:24px 10px 18px!important;border-bottom:1px solid rgba(255,255,255,.08);align-items:flex-start!important}
.v27-brand img{width:58px!important;height:58px!important;object-fit:contain}.v27-brand div{padding-top:4px}
.v27-brand strong{font-size:15px!important;letter-spacing:.08em}.v27-brand span{color:#ff9b19!important;font-size:9px!important;letter-spacing:.18em!important}
.v27-brand small{display:block;color:#a9b4ad;font-size:8px;margin-top:6px}
.v27-sidebar .hg-side-nav{padding-top:14px;flex:1}.v27-sidebar .hg-side-nav a{min-height:46px;border-radius:9px;margin:3px 0;font-size:11px}
.v27-sidebar .hg-side-nav a.active{background:linear-gradient(90deg,#d9820d,#8d5e1d);box-shadow:0 8px 20px rgba(233,132,0,.18)}
.v27-side-bottom{display:grid;gap:10px}.v27-side-bottom>a,.v27-side-tag{display:flex;gap:10px;align-items:center;padding:10px;border-radius:10px;color:#fff;text-decoration:none;background:rgba(255,255,255,.025)}
.v27-side-bottom b{font-size:9px}.v27-side-bottom small{display:block;font-size:7px;color:#9aa69f;margin-top:2px}.v27-side-tag{margin-top:2px;color:#8fe18d}
.v27-main{margin-left:230px!important;min-width:0}.v27-topbar{height:64px;background:linear-gradient(90deg,#17211d,#07120e);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:30;border-bottom:1px solid rgba(255,255,255,.08)}
.v27-search{width:min(540px,55vw);height:38px;border:1px solid #46524c;border-radius:9px;display:flex;align-items:center;gap:9px;padding:0 11px;color:#c8d0cb;background:rgba(255,255,255,.035)}
.v27-search input{flex:1;border:0;outline:0;background:transparent;color:#fff;font-size:10px}.v27-search kbd{font-size:8px;border:1px solid #68726d;border-radius:5px;padding:3px 5px}
.v27-top-actions{display:flex;align-items:center;gap:10px;color:#fff}.v27-top-actions>div{display:flex;flex-direction:column}.v27-top-actions strong{font-size:10px}.v27-top-actions small{font-size:8px;color:#aeb9b3}.v27-top-actions>a{color:#fff;text-decoration:none}
.v27-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#17736a;border:1px solid #62b7a7;font-size:11px;font-weight:900}.v27-bell{position:relative}.v27-bell b{position:absolute;top:-8px;right:-7px;background:#e5483f;border-radius:20px;font-size:7px;padding:2px 5px}
.v27-content{padding:0 18px 18px}.v27-hero{height:235px;border-radius:0 0 18px 18px;position:relative;overflow:hidden;background:#08130e;color:#fff}
.v27-hero>img{width:100%;height:100%;object-fit:cover}.v27-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,8,.98) 0%,rgba(4,12,8,.88) 42%,rgba(4,12,8,.18) 76%)}
.v27-hero-copy{position:absolute;left:30px;top:31px}.v27-hero-copy>span{color:#ff9b19;font-size:10px;font-weight:900;letter-spacing:.32em}.v27-hero-copy h1{font-size:28px;line-height:1;margin:8px 0 7px;letter-spacing:.02em}.v27-hero-copy>p{font-size:11px;color:#e5ebe7}
.v27-values{display:flex;gap:34px;margin-top:27px}.v27-values>div{display:flex;align-items:center;gap:8px}.v27-values b{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#075d2c;color:#fff}.v27-values span{display:flex;flex-direction:column}.v27-values strong{font-size:9px}.v27-values small{font-size:7px;color:#b8c4bc}
.v27-hero-list{position:absolute;right:26px;top:45px;display:grid;gap:11px;font-size:8px;color:#d7e2db;letter-spacing:.08em}.v27-hero-list:after{content:'“Smart Solutions for a Sustainable Future”';margin-top:10px;font-size:8px;font-style:italic;color:#fff}
.v27-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:16px;margin-top:16px}.v27-app-area{min-width:0}.v27-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 4px 12px}
.v27-section-head h2{margin:0;font-size:20px}.v27-section-head p{margin:3px 0 0;color:#6e7972;font-size:9px}.v27-pills{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.v27-pills button{border:1px solid #d8dfda;background:#fff;border-radius:8px;padding:8px 12px;font-size:8px;color:#4d5a52;cursor:pointer}.v27-pills button.active{background:#111a16;color:#fff}
.v27-dept-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v27-dept-card{border:1px solid #dce5df;background:#fff;border-radius:14px;padding:10px;box-shadow:0 5px 18px rgba(23,45,31,.04);min-width:0}
.v27-dept-card>header{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:8px;margin-bottom:9px}.v27-dept-icon{width:42px;height:42px;border-radius:10px;background:#0a9b50;color:#fff;display:grid;place-items:center;font-size:18px}
.v27-dept-card:nth-child(2) .v27-dept-icon{background:#1774d1}.v27-dept-card:nth-child(3) .v27-dept-icon{background:#62b72c}.v27-dept-card:nth-child(4) .v27-dept-icon{background:#f18a13}.v27-dept-card:nth-child(5) .v27-dept-icon{background:#8a43cf}.v27-dept-card:nth-child(6) .v27-dept-icon{background:#65727b}
.v27-dept-card h3{margin:0;font-size:11px}.v27-dept-card header p{margin:2px 0 0;font-size:7px;color:#68756d}.v27-dept-card header>b{width:23px;height:23px;border:1px solid #4bb36e;color:#168746;border-radius:50%;display:grid;place-items:center;font-size:8px}
.v27-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v27-mini-grid .v27-mini-app:only-child{grid-column:1/-1}.v27-mini-app{position:relative;min-width:0;overflow:hidden;border:1px solid #e3e8e5;border-radius:10px;background:#fbfcfb;text-decoration:none;color:#142019;transition:.2s}
.v27-mini-app:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(22,50,31,.10);border-color:#b8cec0}.v27-mini-app img{width:100%;height:68px;object-fit:cover}.v27-mini-app>div{padding:8px 26px 9px 8px;display:flex;flex-direction:column}.v27-mini-app strong{font-size:9px}.v27-mini-app small{font-size:7px;line-height:1.35;color:#647168;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.v27-mini-app>span{position:absolute;right:8px;bottom:11px;width:19px;height:19px;border-radius:50%;background:#e7f3eb;display:grid;place-items:center;font-weight:900}
.v27-right{display:grid;align-content:start;gap:12px}.v27-greeting,.v27-activity{background:#fff;border:1px solid #e0e5e2;border-radius:14px;padding:16px}.v27-greeting>span{font-size:8px;color:#66736b}.v27-greeting h2{font-size:18px;margin:7px 0 4px}.v27-greeting p{font-size:8px;color:#7b857f}.v27-greeting em{display:inline-block;margin:3px 0 12px;background:#daf4e2;color:#2c8b4d;border-radius:20px;padding:5px 9px;font-size:7px;font-style:normal;font-weight:800}
.v27-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v27-stats>div{padding:10px;border-radius:10px;background:#f3f7fb;display:flex;align-items:baseline;gap:6px}.v27-stats b{font-size:16px}.v27-stats small{font-size:7px;color:#6d7871}
.v27-activity header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.v27-activity h3{font-size:12px;margin:0}.v27-activity header a{font-size:7px;color:#5d6962;text-decoration:none}.v27-activity-row{display:flex;gap:8px;padding:9px 0;border-bottom:1px solid #edf0ee}.v27-activity-row:last-child{border-bottom:0}.v27-activity-row>span{width:23px;height:23px;border-radius:7px;background:#dff4e6;color:#249454;display:grid;place-items:center;font-size:8px}.v27-activity-row>div{display:flex;flex-direction:column}.v27-activity-row strong{font-size:8px}.v27-activity-row small{font-size:7px;color:#89928c;margin-top:2px}
.v27-sustain{height:130px;border-radius:14px;overflow:hidden;position:relative;color:#fff}.v27-sustain img{width:100%;height:100%;object-fit:cover}.v27-sustain:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,55,25,.9),rgba(7,55,25,.15))}.v27-sustain div{position:absolute;z-index:2;inset:0;padding:18px;display:flex;align-items:flex-end;justify-content:space-between}.v27-sustain strong{font-size:13px}.v27-sustain span{width:28px;height:28px;border-radius:50%;background:#fff;color:#18211c;display:grid;place-items:center}
.v27-footer{height:48px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid #e4e8e5;color:#7a847e;font-size:7px}.v27-footer div{display:flex;gap:16px}.v27-footer a{color:#657068;text-decoration:none}
@media(max-width:1180px){.v27-dept-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v27-layout{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:900px){.v27-sidebar{width:74px}.v27-main{margin-left:74px!important}.v27-brand div,.v27-sidebar .hg-side-nav a span:not(.nav-icon),.v27-sidebar .hg-side-nav a b,.v27-side-bottom div,.v27-side-bottom b,.v27-side-bottom small,.v27-side-tag{display:none}.v27-layout{grid-template-columns:1fr}.v27-right{grid-template-columns:1fr 1fr}.v27-sustain{display:none}.v27-hero-list{display:none}}
@media(max-width:650px){.v27-content{padding:0 8px 12px}.v27-topbar{padding:0 10px}.v27-search{width:55vw}.v27-search kbd,.v27-top-actions>div{display:none}.v27-hero{height:220px}.v27-hero-copy{left:18px}.v27-hero-copy h1{font-size:22px}.v27-values{gap:12px}.v27-section-head{align-items:flex-start;flex-direction:column}.v27-pills{justify-content:flex-start}.v27-dept-grid,.v27-right{grid-template-columns:1fr}}

/* V28 FIT & SMOOTHNESS PATCH
   Prevents desktop content from becoming tiny/narrow and keeps all panels inside viewport. */
html,body{max-width:100%;overflow-x:hidden}
.hg-v27 .hg-app-shell{width:100%;max-width:none}
.hg-v27 .v27-sidebar{position:fixed!important;left:0;top:0;bottom:0;height:100dvh!important;overflow-y:auto;overflow-x:hidden;z-index:60}
.hg-v27 .v27-main{
  margin-left:230px!important;
  width:calc(100% - 230px)!important;
  max-width:none!important;
  min-width:0!important;
}
.hg-v27 .v27-topbar{width:100%;box-sizing:border-box}
.hg-v27 .v27-content{
  width:100%;max-width:none!important;box-sizing:border-box;
  padding:0 20px 20px!important;
}
.hg-v27 .v27-hero{width:100%;max-width:none;box-sizing:border-box}
.hg-v27 .v27-layout{
  width:100%;max-width:none;box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) clamp(240px,20vw,300px)!important;
  gap:18px!important;
}
.hg-v27 .v27-app-area{width:100%;min-width:0}
.hg-v27 .v27-dept-grid{
  width:100%;
  grid-template-columns:repeat(3,minmax(240px,1fr))!important;
  gap:14px!important;
}
.hg-v27 .v27-dept-card{width:auto;min-width:0}
.hg-v27 .v27-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hg-v27 .v27-mini-app{min-width:0}
.hg-v27 .v27-mini-app img{height:82px}
.hg-v27 .v27-right{width:100%;min-width:0}
.hg-v27 .v27-section-head{align-items:center}
.hg-v27 .v27-pills{max-width:62%;overflow:visible}
.hg-v27 .v27-pills button{white-space:nowrap}
.hg-v27 *{scrollbar-width:thin}
.hg-v27 a,.hg-v27 button,.hg-v27 .v27-mini-app{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,opacity .16s ease}
.hg-v27 button:focus-visible,.hg-v27 a:focus-visible,.hg-v27 input:focus-visible{outline:2px solid #f39a19;outline-offset:2px}

/* Normal office laptops / smaller desktop widths */
@media (max-width:1360px){
  .hg-v27 .v27-dept-grid{grid-template-columns:repeat(2,minmax(250px,1fr))!important}
  .hg-v27 .v27-layout{grid-template-columns:minmax(0,1fr) 250px!important}
  .hg-v27 .v27-pills{max-width:58%}
}
@media (max-width:1120px){
  .hg-v27 .v27-sidebar{width:190px}
  .hg-v27 .v27-main{margin-left:190px!important;width:calc(100% - 190px)!important}
  .hg-v27 .v27-layout{grid-template-columns:1fr!important}
  .hg-v27 .v27-right{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}
  .hg-v27 .v27-sustain{display:block}
  .hg-v27 .v27-section-head{align-items:flex-start;flex-direction:column}
  .hg-v27 .v27-pills{max-width:100%;justify-content:flex-start}
}
@media (max-width:820px){
  .hg-v27 .v27-sidebar{width:72px}
  .hg-v27 .v27-main{margin-left:72px!important;width:calc(100% - 72px)!important}
  .hg-v27 .v27-brand div,
  .hg-v27 .v27-sidebar .hg-side-nav a span:not(.nav-icon),
  .hg-v27 .v27-sidebar .hg-side-nav a b,
  .hg-v27 .v27-side-bottom div,
  .hg-v27 .v27-side-bottom b,
  .hg-v27 .v27-side-bottom small,
  .hg-v27 .v27-side-tag{display:none!important}
  .hg-v27 .v27-dept-grid{grid-template-columns:1fr!important}
  .hg-v27 .v27-right{grid-template-columns:1fr}
  .hg-v27 .v27-hero-list{display:none}
}
@media (max-width:560px){
  .hg-v27 .v27-sidebar{width:58px;padding-left:7px;padding-right:7px}
  .hg-v27 .v27-main{margin-left:58px!important;width:calc(100% - 58px)!important}
  .hg-v27 .v27-content{padding:0 8px 12px!important}
  .hg-v27 .v27-topbar{height:54px;padding:0 8px}
  .hg-v27 .v27-search{width:calc(100% - 52px);max-width:none}
  .hg-v27 .v27-search kbd,.hg-v27 .v27-top-actions>div,.hg-v27 .v27-bell{display:none}
  .hg-v27 .v27-avatar{width:32px;height:32px}
  .hg-v27 .v27-hero{height:205px}
  .hg-v27 .v27-hero-copy{left:15px;top:25px}
  .hg-v27 .v27-hero-copy h1{font-size:20px}
  .hg-v27 .v27-hero-copy>p{font-size:9px;max-width:90%}
  .hg-v27 .v27-values{gap:8px;margin-top:20px}
  .hg-v27 .v27-values small{display:none}
  .hg-v27 .v27-mini-grid{grid-template-columns:1fr}
  .hg-v27 .v27-mini-grid .v27-mini-app:only-child{grid-column:auto}
}

/* V29 - DESKTOP WIDTH / LAYOUT CORRECTION
   The legacy Workspace shell was still a CSS grid while V27/V28 used a fixed
   sidebar. That double layout calculation compressed the dashboard. */
.hg-v27 .hg-app-shell{
  display:block!important;
  width:100vw!important;
  max-width:100vw!important;
  min-height:100dvh!important;
}
.hg-v27 .v27-sidebar{
  width:230px!important;
  box-sizing:border-box!important;
}
.hg-v27 .v27-main{
  display:block!important;
  position:relative!important;
  margin:0 0 0 230px!important;
  width:calc(100vw - 230px)!important;
  max-width:calc(100vw - 230px)!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.hg-v27 .v27-topbar{
  left:auto!important;right:auto!important;
  width:100%!important;max-width:100%!important;
}
.hg-v27 .v27-content{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.hg-v27 .v27-hero{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-height:220px!important;
}
.hg-v27 .v27-layout{
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(245px,290px)!important;
}
.hg-v27 .v27-app-area,.hg-v27 .v27-right{min-width:0!important}
.hg-v27 .v27-section-head{width:100%!important;box-sizing:border-box}
.hg-v27 .v27-dept-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.hg-v27 .v27-dept-card{min-width:0!important;width:100%!important;box-sizing:border-box!important}

/* Standard laptop widths */
@media(max-width:1360px){
 .hg-v27 .v27-dept-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .hg-v27 .v27-layout{grid-template-columns:minmax(0,1fr) 250px!important}
}
@media(max-width:1120px){
 .hg-v27 .v27-sidebar{width:190px!important}
 .hg-v27 .v27-main{margin-left:190px!important;width:calc(100vw - 190px)!important;max-width:calc(100vw - 190px)!important}
 .hg-v27 .v27-layout{grid-template-columns:1fr!important}
 .hg-v27 .v27-right{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
 .hg-v27 .v27-sidebar{width:72px!important}
 .hg-v27 .v27-main{margin-left:72px!important;width:calc(100vw - 72px)!important;max-width:calc(100vw - 72px)!important}
 .hg-v27 .v27-dept-grid{grid-template-columns:1fr!important}
 .hg-v27 .v27-right{grid-template-columns:1fr!important}
}
@media(max-width:560px){
 .hg-v27 .v27-sidebar{width:58px!important}
 .hg-v27 .v27-main{margin-left:58px!important;width:calc(100vw - 58px)!important;max-width:calc(100vw - 58px)!important}
}

/* V30 - CONTENT DENSITY / FILTERED VIEW FIX */
.hg-v27 .v27-content{min-height:0!important}
.hg-v27 .v27-layout{align-items:start!important}
.hg-v27 .v27-app-area{align-self:start!important}
.hg-v27 .v27-dept-grid{align-items:start!important;grid-auto-rows:auto!important}
.hg-v27 .v27-dept-card{align-self:start!important;height:auto!important}

/* When a department is selected, use the available application area instead
   of leaving the selected department in only one third of the screen. */
.hg-v27 .v27-dept-grid.is-filtered{
  grid-template-columns:minmax(0,1fr)!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-dept-card{
  width:100%!important;
  max-width:none!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-grid{
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-app{
  display:grid!important;
  grid-template-columns:150px minmax(0,1fr) 28px!important;
  min-height:112px!important;
  align-items:center!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-app img{
  width:150px!important;height:112px!important;
  grid-row:1!important;object-fit:cover!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-app>div{
  padding:14px!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-app strong{font-size:11px!important}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-app small{
  font-size:8px!important;-webkit-line-clamp:3!important;
}
.hg-v27 .v27-dept-grid.is-filtered .v27-mini-app>span{
  position:static!important;margin-right:10px!important;
}

/* Keep the default all-systems dashboard dense and balanced. */
.hg-v27 .v27-dept-grid:not(.is-filtered){
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
}
.hg-v27 .v27-right{align-self:start!important}
.hg-v27 .v27-footer{margin-top:20px!important}

/* Reduce wasted vertical space and keep the lower page compact. */
.hg-v27 .v27-greeting,.hg-v27 .v27-activity{height:auto!important}
.hg-v27 .v27-sustain{height:120px!important}

@media(max-width:700px){
 .hg-v27 .v27-dept-grid.is-filtered .v27-mini-app{
   display:block!important;min-height:0!important;
 }
 .hg-v27 .v27-dept-grid.is-filtered .v27-mini-app img{
   width:100%!important;height:100px!important;
 }
 .hg-v27 .v27-dept-grid.is-filtered .v27-mini-app>span{
   position:absolute!important;right:8px!important;bottom:11px!important;
 }
}

/* V31 - FULL HEIGHT FIXED SIDEBAR */
.hg-v27 .v27-sidebar{
 position:fixed!important;top:0!important;left:0!important;bottom:0!important;
 height:100vh!important;height:100dvh!important;max-height:100dvh!important;
 overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;
 z-index:100!important;scrollbar-width:thin;
}
.hg-v27 .v27-sidebar .hg-side-nav{flex:1 0 auto!important}
.hg-v27 .v27-side-bottom{margin-top:auto!important;padding-bottom:8px!important}
.hg-v27 .v27-main{margin-left:230px!important;width:calc(100vw - 230px)!important;max-width:calc(100vw - 230px)!important}
body.hg-v27{min-height:100vh!important;min-height:100dvh!important}
@media(max-height:760px) and (min-width:821px){
 .hg-v27 .v27-brand{height:118px!important;padding-top:16px!important;padding-bottom:12px!important}
 .hg-v27 .v27-sidebar .hg-side-nav{padding-top:8px!important}
 .hg-v27 .v27-sidebar .hg-side-nav a{min-height:40px!important;margin:2px 0!important}
 .hg-v27 .v27-side-bottom{gap:6px!important}
 .hg-v27 .v27-side-bottom>a,.hg-v27 .v27-side-tag{padding:8px!important}
}
@media(max-width:1120px){.hg-v27 .v27-main{margin-left:190px!important;width:calc(100vw - 190px)!important;max-width:calc(100vw - 190px)!important}}
@media(max-width:820px){.hg-v27 .v27-main{margin-left:72px!important;width:calc(100vw - 72px)!important;max-width:calc(100vw - 72px)!important}}
@media(max-width:560px){.hg-v27 .v27-main{margin-left:58px!important;width:calc(100vw - 58px)!important;max-width:calc(100vw - 58px)!important}}

/* V32 - ALL PAGES COMPATIBILITY
   Extends the upgraded corporate/fixed navigation behavior across Workspace pages. */

/* Administration: full-height fixed sidebar + independent content */
.hg-admin-page .hg-app-shell{display:block!important;width:100%!important;max-width:none!important}
.hg-admin-page .hg-sidebar{
 position:fixed!important;left:0!important;top:0!important;bottom:0!important;
 width:230px!important;height:100vh!important;height:100dvh!important;
 overflow-y:auto!important;overflow-x:hidden!important;z-index:100!important;
}
.hg-admin-page .hg-main{
 margin-left:230px!important;width:calc(100% - 230px)!important;
 max-width:calc(100% - 230px)!important;min-width:0!important;
}
.hg-admin-page .hg-topbar{
 position:sticky!important;top:0!important;z-index:80!important;
 width:100%!important;box-sizing:border-box!important;
}
.hg-admin-page .hg-content{width:100%!important;max-width:none!important;box-sizing:border-box!important}
.hg-admin-page .hg-admin-grid,.hg-admin-page .hg-admin-stats{min-width:0!important}
.hg-admin-page .hg-user-access-card,.hg-admin-page .hg-create-user-card{min-width:0!important}

/* Tables and forms never push a page outside the browser */
.hg-audit-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
.hg-audit-table{min-width:850px}
.hg-audit-shell,.hg-password-page{max-width:100%!important;box-sizing:border-box!important}
.hg-admin-form input,.hg-admin-form select,.hg-admin-form textarea{max-width:100%!important;box-sizing:border-box!important}

/* Corporate consistency / smoother scrolling */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.hg-admin-page,.hg-login-page,.auth-page{max-width:100%;overflow-x:hidden}
.hg-admin-page button,.hg-admin-page a,.hg-login-page button,.hg-login-page a{
 transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.hg-admin-page button:focus-visible,.hg-admin-page a:focus-visible,
.hg-login-page button:focus-visible,.hg-login-page a:focus-visible,
.hg-admin-page input:focus-visible,.hg-admin-page select:focus-visible{
 outline:2px solid #f39a19!important;outline-offset:2px!important;
}

/* Laptop */
@media(max-width:1120px){
 .hg-admin-page .hg-sidebar{width:190px!important}
 .hg-admin-page .hg-main{margin-left:190px!important;width:calc(100% - 190px)!important;max-width:calc(100% - 190px)!important}
 .hg-admin-page .hg-user-actions{gap:6px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
}

/* Tablet: compact permanent sidebar */
@media(max-width:820px){
 .hg-admin-page .hg-sidebar{width:72px!important;padding-left:8px!important;padding-right:8px!important}
 .hg-admin-page .hg-main{margin-left:72px!important;width:calc(100% - 72px)!important;max-width:calc(100% - 72px)!important}
 .hg-admin-page .hg-side-brand div,
 .hg-admin-page .hg-side-nav a span:not(.nav-icon),
 .hg-admin-page .hg-side-security,
 .hg-admin-page .hg-side-photo{display:none!important}
 .hg-admin-page .hg-side-brand{justify-content:center!important;padding-left:0!important;padding-right:0!important}
 .hg-admin-page .hg-side-brand img{margin:auto!important}
 .hg-admin-page .hg-side-nav a{justify-content:center!important;padding-left:0!important;padding-right:0!important}
 .hg-admin-page .hg-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .hg-admin-page .hg-admin-grid{grid-template-columns:1fr!important}
 .hg-admin-page .hg-topbar{padding-left:12px!important;padding-right:12px!important}
 .hg-admin-page .hg-welcome-mini span,.hg-admin-page .hg-live-status{display:none!important}
 .hg-audit-header{flex-wrap:wrap!important;gap:10px!important}
 .hg-audit-search{display:flex!important;flex-wrap:wrap!important}
}

/* Phone */
@media(max-width:560px){
 .hg-admin-page .hg-sidebar{width:58px!important}
 .hg-admin-page .hg-main{margin-left:58px!important;width:calc(100% - 58px)!important;max-width:calc(100% - 58px)!important}
 .hg-admin-page .hg-content{padding-left:9px!important;padding-right:9px!important}
 .hg-admin-page .hg-admin-stats{grid-template-columns:1fr!important}
 .hg-admin-page .hg-user-actions a:not(.logout-link),.hg-admin-page .hg-role-badge{display:none!important}
 .hg-admin-page .hg-admin-hero{min-height:180px!important}
 .hg-password-page{display:block!important;min-height:100dvh!important}
 .hg-password-visual{min-height:220px!important;width:100%!important}
 .hg-password-panel{width:100%!important;max-width:none!important;padding:24px 18px!important;box-sizing:border-box!important}
 .hg-audit-shell{padding:12px!important}
 .hg-audit-header nav{width:100%!important;display:flex!important;gap:8px!important}
}

/* V33 — unified visual polish and responsive layout stabilization */
:root{--hg-ink:#172b32;--hg-muted:#647781;--hg-line:#dce6e7;--hg-surface:#fff;--hg-canvas:#f5f8f8;--hg-accent:#e99a20}
*,*::before,*::after{box-sizing:border-box}
html{min-width:320px}
body{margin:0;max-width:100%;background:var(--hg-canvas);color:var(--hg-ink);-webkit-font-smoothing:antialiased}
img,video,svg{max-width:100%}img{height:auto}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid var(--hg-accent);outline-offset:2px}
:where(.hg-v27,.hg-admin-page) :where(.v27-content,.hg-content){min-width:0;overflow-wrap:break-word}
.hg-v27 .v27-content{padding:clamp(16px,2.4vw,34px)!important}
.hg-admin-page .hg-content{padding:clamp(16px,2.4vw,34px)!important}
.hg-v27 .v27-main,.hg-admin-page .hg-main{min-height:100dvh}
.hg-v27 .v27-topbar,.hg-admin-page .hg-topbar{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.hg-v27 .v27-dept-grid,.hg-v27 .v27-mini-grid,.hg-admin-page .hg-admin-grid,.hg-admin-page .hg-admin-stats{min-width:0}
.hg-v27 .v27-dept-grid > *,.hg-v27 .v27-mini-grid > *,.hg-admin-page .hg-admin-grid > *,.hg-admin-page .hg-admin-stats > *{min-width:0}
.hg-v27 :where(.v27-mini-app,.v27-hero,.v27-right > *),.hg-admin-page :where(.hg-user-access-card,.hg-create-user-card){overflow-wrap:anywhere}
.hg-v27 :where(input,select,textarea),.hg-admin-page :where(input,select,textarea){max-width:100%;min-width:0}
.hg-v27 :where(button,.v27-mini-app),.hg-admin-page button{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
@media(hover:hover){.hg-v27 .v27-mini-app:hover{transform:translateY(-2px)}}
@media(max-width:820px){.hg-v27 .v27-content,.hg-admin-page .hg-content{padding:18px!important}.hg-v27 .v27-layout{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:560px){.hg-v27 .v27-content,.hg-admin-page .hg-content{padding:12px!important}.hg-v27 .v27-topbar,.hg-admin-page .hg-topbar{min-width:0}.hg-v27 .v27-hero-copy h1{font-size:clamp(19px,5vw,26px)!important;line-height:1.18}.hg-v27 .v27-hero-copy>p{font-size:12px!important;line-height:1.45}.hg-v27 .v27-mini-grid,.hg-v27 .v27-dept-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V34 - Workspace sidebar: compact, usable and independently scrollable */
.hg-v27 .v27-sidebar{display:flex!important;flex-direction:column!important;box-sizing:border-box!important;padding:0 12px 12px!important;overflow:hidden!important;min-height:0!important}
.hg-v27 .v27-sidebar .v27-brand{flex:0 0 auto!important;min-height:0!important;height:auto!important;padding:13px 7px 12px!important}
.hg-v27 .v27-sidebar .hg-side-nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:7px 3px!important;margin:0 -3px!important;scrollbar-width:thin;overscroll-behavior:contain}
.hg-v27 .v27-sidebar .hg-side-nav a{display:flex!important;align-items:center!important;gap:10px!important;min-height:38px!important;margin:2px 0!important;padding:7px 10px!important;box-sizing:border-box!important;line-height:1.25!important}
.hg-v27 .v27-sidebar .hg-side-nav a .nav-icon{flex:0 0 22px!important;text-align:center!important}
.hg-v27 .v27-sidebar .hg-side-nav a span:nth-child(2){flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere}
.hg-v27 .v27-sidebar .hg-side-nav a>b{flex:0 0 auto!important;margin-left:auto!important}
.hg-v27 .v27-side-bottom{flex:0 0 auto!important;margin-top:0!important;padding:9px 0 0!important;gap:5px!important;border-top:1px solid rgba(255,255,255,.09)}
.hg-v27 .v27-side-bottom>a{min-height:37px!important;padding:8px 10px!important;box-sizing:border-box!important}
.hg-v27 .v27-side-tag{padding:7px 9px!important}
@media(max-height:720px) and (min-width:821px){.hg-v27 .v27-sidebar .v27-brand{padding-top:8px!important;padding-bottom:7px!important}.hg-v27 .v27-sidebar .hg-side-nav a{min-height:34px!important;padding-top:5px!important;padding-bottom:5px!important}.hg-v27 .v27-side-tag{display:none!important}}
@media(max-width:820px){.hg-v27 .v27-sidebar{padding-left:7px!important;padding-right:7px!important}.hg-v27 .v27-sidebar .hg-side-nav a{justify-content:center!important;padding-left:4px!important;padding-right:4px!important}.hg-v27 .v27-sidebar .hg-side-nav a .nav-icon{flex-basis:auto!important}}
