/* ===================== HSE Hive corporate theme (D67) =====================
   Loaded last. One typeface (Inter), calm neutral surfaces, MHB navy as the brand, MHB blue as the one accent,
   status colours only for status. App shell on laptops: full-width top bar + labelled left sidebar.
   Light theme only (D51). */
:root{
  --bg:#F4F6F8; --surface:#FFFFFF; --sunk:#F2F4F7; --ink:#14263A; --ink-2:#344556; --muted:#5B6B7C; --line:#E2E7ED; --line-2:#CDD5DF;
  --accent:#156FA8; --accent-hover:#115D8D; --accent-bg:#EAF3FA; --navy:#0D2F48; --navy-2:#123A57;
  --display:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow:0 1px 2px rgba(16,24,40,.05);
  --rail:236px; --toph:56px;
}
body{font:14.5px/1.55 var(--body);letter-spacing:-.003em;color:var(--ink)}

/* Type: sentence case, one family, clear hierarchy */
h1,h2,h3{font-family:var(--body);letter-spacing:-.01em;text-transform:none;line-height:1.25}
h1{font-size:24px;font-weight:650}
h2{font-size:16px;font-weight:600;letter-spacing:-.005em;text-transform:none}
h3{font-size:15px;font-weight:600}
.muted{color:var(--muted)}
.head{align-items:center;gap:12px 16px;padding-bottom:2px}
.head p{font-size:14px}

/* Top bar */
.top{background:var(--navy);box-shadow:0 1px 0 rgba(255,255,255,.06) inset}
.top .row{min-height:var(--toph);padding:8px 16px;gap:10px 12px}
.tape{height:2px;background:var(--accent)}
.brand{gap:10px}
.brand .mark{width:34px;height:34px;border-radius:0;background:none}
.brand .mark svg{width:34px;height:34px;display:block}
.brand b{font-family:var(--body);font-size:16.5px;font-weight:650;letter-spacing:-.01em;text-transform:none}
.brand small{font-size:11.5px;opacity:1;color:#A9BDD0;letter-spacing:0;margin-top:2px}
.iconbtn{background:transparent;width:38px;height:38px;border-radius:8px}
.iconbtn:hover{background:rgba(255,255,255,.1)}
.badge{background:#D92D20;color:#fff;border-color:var(--navy)}
.lang{background:transparent;border:1px solid rgba(255,255,255,.22);border-radius:8px;height:36px;padding:0 8px}
.seg{background:rgba(255,255,255,.08)}
.seg button[aria-pressed="true"]{background:#fff;color:var(--navy)}
.topbtn{height:36px;border-radius:8px;border-color:rgba(255,255,255,.28);font-size:13.5px}
.mechip{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:500;color:#E6EEF5;white-space:nowrap}
.mechip .av{width:30px;height:30px;font-size:11.5px}
@media (max-width:760px){.mechip span.nm{display:none}}

/* Surfaces */
main{gap:18px}
.card{border-radius:10px;border-color:var(--line);padding:18px 20px;box-shadow:var(--shadow);gap:14px}
.card-h{gap:10px 12px}
.card-h h2{font-size:15.5px}
.stats{gap:12px}
.stat{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:6px;border:1px solid var(--line);border-left-width:1px;border-radius:10px;padding:14px 16px;box-shadow:var(--shadow);position:relative}
.stat .n{font-family:var(--body);font-size:26px;font-weight:650;letter-spacing:-.02em;color:var(--ink)}
.stat .l{font-size:12.5px;font-weight:500;margin:0;color:var(--muted)}
.stat::after{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:3px;border-radius:10px 10px 0 0;background:transparent}
.stat.bad::after{background:var(--bad)}.stat.warn::after{background:#E0A43A}.stat.off::after{background:var(--accent)}.stat.new::after{background:var(--ok)}
.banner{border-radius:8px;border:1px solid rgba(180,35,24,.18);font-size:13.5px}
.banner.warn{border-color:rgba(147,55,13,.18)}
.banner.info{background:#F2F6FA;border-color:var(--line);color:var(--ink-2)}

/* Controls */
.btn{height:36px;padding:0 14px;border-radius:8px;border-color:var(--line-2);font-size:13.5px;font-weight:600;color:var(--ink-2);background:#fff;transition:background .12s,border-color .12s}
.btn:hover{background:#F4F6F8;border-color:#B8C2CE}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);filter:none}
.btn.sm{height:30px;padding:0 10px;font-size:12.5px}
.btn.ghost{background:transparent;border-color:transparent;color:var(--accent);padding:0 8px}
.btn.ghost:hover{background:var(--accent-bg)}
.field label{font-size:13px;font-weight:600;color:var(--ink-2)}
.field input,.field select,.field textarea{background:#fff;border:1px solid var(--line-2);border-radius:8px;padding:9px 11px;min-height:40px}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(21,111,168,.15)}
.search{border-color:var(--line-2);border-radius:8px;background:#fff}
.search:focus-within{box-shadow:0 0 0 3px rgba(21,111,168,.15)}
.chip{border-radius:6px;padding:1px 8px;font-size:12px;font-weight:600}
.fchip{border-color:var(--line-2);border-radius:8px;font-weight:500}
.fchip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Lists and tables */
.item,.tr,.req,.step{border-top-color:var(--line)}
.matrix.table th,.matrix.table td{border-bottom-color:var(--line)}
.matrix.table thead th{background:#F6F8FA}
.matrix.table thead th button,.matrix.table thead th{color:#475467;font-size:12.5px;font-weight:600}
.matrix.wide thead th{background:#F6F8FA}
.matrix.wide .stick{background:#fff}
.matrix.wide thead .stick{background:#F6F8FA}

/* Dashboard tabs */
.dashnav{gap:2px;border-bottom-color:var(--line)}
.dashnav button{font-size:13.5px;font-weight:500;color:var(--muted);padding:10px 12px;border-radius:0;border-bottom-width:2px}
.dashnav button[aria-selected="true"]{color:var(--accent);font-weight:600}
.dashnav button:hover{background:transparent;color:var(--ink)}

/* Passport card: keep the document feel, drop the condensed caps */
.passport{border-radius:12px}
.pp-top{font-family:var(--body);font-size:11.5px;letter-spacing:1.2px;font-weight:600}
.pp-main h1{font-size:24px}
.av.lg{font-family:var(--body);font-weight:600}
.where .big{font-family:var(--body);font-size:20px;font-weight:650}
.pob{font-family:var(--body);font-size:12px;letter-spacing:.4px;font-weight:600}
.pob b{font-size:18px}
.app{border-radius:10px;box-shadow:var(--shadow)}
.app-ic{font-family:var(--body);font-weight:700;font-size:15px;border-radius:10px}

/* Modal sheet, toast */
.sheet{border-radius:14px 14px 0 0}
.toast{background:#1B2B3C;border-radius:8px}

/* Phone tab bar */
.tabs{box-shadow:0 -1px 0 var(--line)}
.tabs button{font-size:11px;font-weight:500;color:#667085}
.tabs button[aria-current="page"]{color:var(--accent);font-weight:600}

/* Sign-in */
.mark.big{width:72px;height:72px;border-radius:0;background:none}
.mark.big svg{width:72px;height:72px}
.signin-brand h1{font-size:24px}
.signin{box-shadow:0 8px 28px rgba(16,24,40,.08)}

/* ---------- Laptop: full-width top bar + labelled sidebar ---------- */
@media (min-width:1024px){
  body{padding-left:0}
  .preview-bar{margin-left:0;padding-left:16px}
  .top .row{max-width:none;padding:0 24px 0 20px}
  main{width:min(1240px,calc(100% - var(--rail) - 48px));margin:0 0 0 calc(var(--rail) + (100% - var(--rail) - min(1240px,calc(100% - var(--rail) - 48px))) / 2);padding:28px 0 56px}
  body:has(nav.tabs[hidden]) main{width:auto;margin:0 auto;padding:28px 24px 56px}
  body:has(nav.tabs[hidden]) main.v-visitor{max-width:1180px}
  body:has(nav.tabs[hidden]) main.v-signin{max-width:480px}
  .tabs{top:0;bottom:0;width:var(--rail);z-index:20;background:#fff;border-right:1px solid var(--line);box-shadow:none;padding-top:calc(var(--toph) + 2px + 18px)}
  body:has(#pbar:not([hidden])) .tabs{padding-top:calc(var(--toph) + 2px + 18px + 30px)}
  .tabs .row{gap:2px}
  .tabs .row::before{content:"Menu";font-size:11px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:#98A2B3;padding:0 24px 8px}
  .tabs button{flex-direction:row;justify-content:flex-start;gap:12px;margin:0 12px;padding:9px 12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ink-2)}
  .tabs button:hover{background:#F2F4F7;color:var(--ink)}
  .tabs button[aria-current="page"]{background:var(--accent-bg);color:var(--accent);font-weight:600}
  .tabs button[aria-current="page"]::after{left:-12px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0}
  .tabs .i{width:20px;height:20px}
  .tabs .dot{position:static;margin-left:auto;background:#D92D20;color:#fff}
  h1{font-size:26px}
  .stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
  .toast{bottom:28px;left:calc(50% + var(--rail) / 2)}
}
.stat.bad,.stat.warn,.stat.off,.stat.new{border-left-color:var(--line)}

/* ===== D67 rev: MHB logo, CQHSSE credit, loading screen (i-UCUA pattern) ===== */
.mhb-tile{width:40px;height:40px;border-radius:10px;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.mhb-tile img{width:28px;height:auto;display:block}
.mhb-tile.sm{width:34px;height:34px;border-radius:8px}
.mhb-tile.sm img{width:23px}
.brand-div{width:1px;height:26px;background:rgba(255,255,255,.22);flex:none}
.brand .mark img{width:34px;height:34px;display:block}
.mark.big img{width:72px;height:72px;display:block}
@media (max-width:420px){.brand .mhb-tile.sm,.brand .brand-div{display:none}}
.credit{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:2px}
.credit .mhb-tile{box-shadow:none;border:1px solid var(--line)}
.credit div{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted);line-height:1.45}
.credit b{font-weight:600;color:var(--ink-2)}
.mrz{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px;letter-spacing:1.2px}

.splash{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;grid-template-rows:1fr auto;
  background:radial-gradient(700px 500px at 50% 38%,#1A4C72 0%,rgba(26,76,114,0) 70%),linear-gradient(160deg,#0D2F48,#071827);
  transition:opacity .5s ease,visibility .5s ease}
.splash.done{opacity:0;visibility:hidden}
.splash-in{display:flex;flex-direction:column;align-items:center;text-align:center;align-self:center}
.splash-logo{position:relative;width:140px;height:140px;display:grid;place-items:center;margin-bottom:22px}
.splash-logo::before,.splash-logo::after{content:"";position:absolute;inset:0;border-radius:50%}
.splash-logo::before{border:3px solid rgba(255,255,255,.08);border-top-color:#59B9F2;border-right-color:rgba(89,185,242,.35);animation:spSpin 1.1s linear infinite}
.splash-logo::after{inset:-10px;border:1px solid rgba(89,185,242,.18);animation:spPulse 2s ease-out infinite}
.splash-logo img{width:96px;height:96px;animation:spBreathe 2s ease-in-out infinite}
.splash-word{color:#fff;font-size:30px;font-weight:800;letter-spacing:-.02em;animation:spRise .7s .1s cubic-bezier(.2,.8,.2,1) both}
.splash-sub{color:#9FC3E2;font-size:13px;font-weight:500;margin-top:4px;animation:spRise .7s .2s cubic-bezier(.2,.8,.2,1) both}
.splash-bar{width:140px;height:3px;border-radius:3px;background:rgba(255,255,255,.1);margin-top:22px;overflow:hidden}
.splash-bar span{display:block;width:40%;height:100%;border-radius:3px;background:linear-gradient(90deg,#1A83C4,#7FCBF5);animation:spSlide 1.2s ease-in-out infinite}
.splash-foot{display:flex;align-items:center;gap:12px;color:#9FC3E2;font-size:12px;line-height:1.45;max-width:420px;padding:0 20px 28px;text-align:left}
.splash-foot .mhb-tile{width:38px;height:38px}
@keyframes spSpin{to{transform:rotate(360deg)}}
@keyframes spPulse{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.18);opacity:0}}
@keyframes spBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@keyframes spRise{from{transform:translateY(8px)}to{transform:none}} /* no opacity: the name must show even where animations are paused */
@keyframes spSlide{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@media (prefers-reduced-motion:reduce){.splash *,.splash-logo::before,.splash-logo::after{animation:none!important}}
/* sidebar footer credit (laptop) */
@media (min-width:1024px){
  .tabs::after{content:"Developed by CQHSSE\A Strategy & Performance team";white-space:pre-line;position:absolute;left:24px;right:16px;bottom:18px;font-size:11px;line-height:1.5;color:#98A2B3}
}

/* ===== Sign-in (D68): app bar hidden, brand panel on laptops, one compact card ===== */
body.auth-mode .top,body.auth-mode .preview-bar{display:none}
main.v-signin{max-width:none!important;width:auto!important;margin:0!important;padding:0!important}
.auth{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:var(--bg)}
.auth-card{width:100%;max-width:400px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px 24px 20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 10px 30px rgba(16,24,40,.08)}
.auth-card h2{font-size:22px;font-weight:650;margin:0}
.auth-logo{display:flex;justify-content:center;margin-bottom:4px}
.auth-logo img{width:64px;height:64px}
.auth-card .field input{font-size:20px;letter-spacing:3px;text-align:center;height:50px}
.btn.block{width:100%;justify-content:center;height:46px;font-size:15px}
.btn.ghost.block{height:40px;font-size:14px}
.auth-note{margin:0;text-align:center;font-size:12.5px;color:var(--muted)}
.auth-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ink-2)}
.auth-foot{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:14px;margin-top:4px;font-size:11.5px;line-height:1.45;color:var(--muted)}
.auth-foot .mhb-tile.sm{box-shadow:none;border:1px solid var(--line)}
.auth-wait{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 0}
.spin{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spSpin .9s linear infinite}
.auth-hero{display:none}
.banner .btn.sm{margin-left:auto;flex:none}
@media (min-width:1024px){
  .auth{grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);padding:0;place-items:stretch}
  .auth-card{align-self:center;justify-self:center;max-width:420px}
  .auth-hero{display:flex;flex-direction:column;justify-content:space-between;padding:48px clamp(40px,5vw,72px);color:#fff;position:relative;overflow:hidden;
    background:radial-gradient(800px 500px at 100% 110%,#1A6FA8 0%,transparent 60%),linear-gradient(160deg,#0D2F48 0%,#0A2338 100%)}
  .hero-brand{display:flex;align-items:center;gap:14px}
  .hero-brand .mhb-tile{width:52px;height:52px;border-radius:13px}
  .hero-brand .mhb-tile img{width:36px}
  .hero-brand b{display:block;font-size:20px;font-weight:700}
  .hero-brand span{font-size:13px;color:#9FC3E2}
  .hero-eb{margin:0 0 10px;font-size:13px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#7FCBF5}
  .hero-h{font-size:44px;font-weight:750;letter-spacing:-.03em;margin:0 0 26px;color:#fff}
  .hero-feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;font-size:16px;color:#DCE9F4}
  .hero-feats li{display:flex;align-items:center;gap:12px}
  .hero-feats .i{width:22px;height:22px;color:#7FCBF5}
  .hero-foot{margin:0;font-size:12.5px;color:#9FC3E2}
}
