:root{
  --bg:#f7f9fc;
  --bg-soft:#eef4fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#172033;
  --muted:#6b7280;
  --muted-2:#94a3b8;
  --line:#e6ebf2;
  --blue:#2563eb;
  --blue-2:#0ea5e9;
  --green:#16a34a;
  --red:#dc2626;
  --yellow:#d97706;
  --ink:#0f172a;
  --radius:18px;
  --radius-sm:13px;
  --gap:12px;
  --shadow:0 14px 34px rgba(15,23,42,.07);
  --shadow-soft:0 8px 22px rgba(15,23,42,.05);
  --login-bg:url('https://i.pinimg.com/1200x/4f/a4/cc/4fa4ccbfef6a9677e1c0f1a68a62165f.jpg');
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.hidden{display:none!important}.muted{color:var(--muted)}.fine{font-size:12px;color:var(--muted)}

/* Generic buttons and inputs */
.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:760;letter-spacing:-.01em;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease;min-height:42px;white-space:nowrap}
.btn:hover{transform:translateY(-1px);filter:brightness(1.02)}
.btn:active{transform:translateY(0)}
.btn-primary{background:linear-gradient(135deg,var(--blue),var(--blue-2));color:#fff;box-shadow:0 10px 20px rgba(37,99,235,.18)}
.btn-dark{background:var(--ink);color:#fff}.btn-soft{background:#eef5ff;color:#1d4ed8}.btn-danger{background:#fee2e2;color:#991b1b}.btn-ok{background:#dcfce7;color:#166534}.btn-ghost{background:#fff;color:var(--text);border:1px solid var(--line)}.btn-full{width:100%}
.input{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px 13px;background:#fff;color:var(--text);outline:none;transition:.18s ease;min-height:45px}
.input:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.08)}
.form{display:grid;gap:var(--gap)}textarea.input{min-height:88px;resize:vertical}.toast{position:fixed;right:18px;bottom:18px;background:#101827;color:#fff;padding:12px 14px;border-radius:15px;box-shadow:var(--shadow);display:none;z-index:300;max-width:min(420px,calc(100vw - 28px));font-size:13px}.toast.open{display:block}
.logo{width:39px;height:39px;border-radius:14px;background:linear-gradient(145deg,#f97316,#ef4444);display:grid;place-items:center;color:#fff;font-weight:900;font-size:20px;box-shadow:0 10px 24px rgba(249,115,22,.24);flex:0 0 auto}.logo.small{width:32px;height:32px;border-radius:11px;font-size:16px}
.side-brand{display:flex;align-items:center;gap:10px}.side-brand strong{color:var(--text);font-size:16px;letter-spacing:-.03em}.side-brand div div{font-size:12px;color:var(--muted);margin-top:1px}

/* Clean login */
.auth-active{background:#07111f;overflow:hidden}.login-screen{min-height:100vh;display:grid;place-items:center;padding:22px;position:relative;background-image:linear-gradient(120deg,rgba(2,6,23,.63),rgba(15,23,42,.30) 42%,rgba(255,255,255,.10)),var(--login-bg);background-size:cover;background-position:center;background-repeat:no-repeat}.login-screen:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.18),transparent 30%),linear-gradient(0deg,rgba(2,6,23,.35),rgba(2,6,23,.05));pointer-events:none}.login-card{position:relative;width:min(390px,100%);background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.58);border-radius:26px;padding:24px;box-shadow:0 28px 90px rgba(0,0,0,.24);backdrop-filter:blur(18px)}.login-card .side-brand{margin-bottom:22px}.login-title{font-size:26px;line-height:1.08;letter-spacing:-.06em;margin:0 0 7px;color:#0f172a}.login-subtitle{margin:0 0 18px;color:#64748b;font-size:13px;line-height:1.55}.login-foot{margin:14px 0 0;text-align:center;font-size:12px;color:#64748b}.login-mini{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.login-mini span{border:1px solid rgba(148,163,184,.38);background:rgba(255,255,255,.62);border-radius:13px;padding:9px;text-align:center;font-size:11px;color:#475569}

/* Landing */
.hero{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(135deg,#f8fafc,#eef6ff)}.hero-copy{max-width:1020px;width:100%;background:rgba(255,255,255,.82);border:1px solid rgba(226,232,240,.9);border-radius:32px;padding:34px;box-shadow:var(--shadow);backdrop-filter:blur(16px)}.hero-copy h1{font-size:clamp(34px,5vw,62px);letter-spacing:-.065em;line-height:.98;margin:20px 0 14px;color:#0f172a}.hero-copy p{font-size:16px;line-height:1.65;color:#64748b;max-width:720px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);margin-top:24px}.feature-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow-soft)}.feature-card b{display:block;margin-bottom:6px;color:#0f172a}.feature-card span{font-size:12px;line-height:1.45;color:#64748b}

/* App shell */
.layout{min-height:100vh;background:linear-gradient(180deg,#fbfdff,#f5f8fc);display:block}.topbar{height:66px;background:rgba(255,255,255,.83);border-bottom:1px solid rgba(226,232,240,.8);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:50;backdrop-filter:blur(14px)}.top-left{display:flex;align-items:center;gap:12px;min-width:0}.icon-btn{width:42px;height:42px;border-radius:14px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow-soft);color:#0f172a}.hamb-lines{width:17px;height:12px;display:grid;gap:3px}.hamb-lines span{display:block;height:2px;border-radius:999px;background:#0f172a}.page-heading b{display:block;font-size:15px;letter-spacing:-.02em}.page-heading div{font-size:12px;margin-top:2px}.top-actions{display:flex;align-items:center;gap:8px}.content{padding:16px;max-width:1440px;margin:0 auto}.content.compact{padding-top:12px}

/* Drawer menu default hidden */
.sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,86vw);background:rgba(255,255,255,.96);border-right:1px solid var(--line);box-shadow:30px 0 80px rgba(15,23,42,.14);padding:18px;z-index:120;transform:translateX(-104%);transition:transform .22s ease;backdrop-filter:blur(18px);overflow:auto}.sidebar.open{transform:translateX(0)}.drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:110;opacity:0;pointer-events:none;transition:.2s ease}.drawer-backdrop.open{opacity:1;pointer-events:auto}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{background:transparent;border:1px solid transparent;color:#334155;text-align:left;padding:10px 11px;border-radius:13px;cursor:pointer;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:space-between}.nav button:after{content:"›";opacity:.28}.nav button.active,.nav button:hover{background:#f1f6ff;border-color:#dbeafe;color:#1d4ed8}.nav button.logout-item{margin-top:10px;color:#991b1b;background:#fff5f5}.nav button.logout-item:after{display:none}

/* Cards and tables */
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}.kpi,.card,.status-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft)}.kpi{padding:16px}.kpi span{font-size:12px;color:var(--muted);font-weight:720}.kpi b{display:block;font-size:31px;letter-spacing:-.06em;line-height:1;margin-top:9px;color:#0f172a}.kpi small{color:var(--green);font-weight:800;font-size:12px}.section-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:var(--gap);margin-top:var(--gap)}.card{padding:16px}.card h3{margin:0 0 12px;font-size:16px;letter-spacing:-.03em;color:#111827}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;font-size:13px;background:#fff}th,td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}tr:last-child td{border-bottom:0}th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#64748b;background:#f8fafc;white-space:nowrap}.badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;line-height:1}.badge.green{background:#dcfce7;color:#166534}.badge.yellow{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.badge.blue{background:#dbeafe;color:#1d4ed8}
.map-fake{height:252px;border-radius:18px;background:linear-gradient(135deg,#e0f2fe,#f8fafc 50%,#dcfce7);position:relative;overflow:hidden;border:1px solid #dbeafe}.map-fake:before,.map-fake:after{content:"";position:absolute;background:rgba(255,255,255,.78);height:16px;width:130%;transform:rotate(-18deg);left:-20%;top:48px;box-shadow:0 45px 0 rgba(255,255,255,.58),0 95px 0 rgba(255,255,255,.62)}.map-fake:after{transform:rotate(24deg);top:152px;box-shadow:0 42px 0 rgba(255,255,255,.52)}.pin{position:absolute;width:18px;height:18px;border-radius:999px;background:#ef4444;border:3px solid #fff;box-shadow:0 10px 18px rgba(15,23,42,.22);z-index:2}.pin.green{background:#22c55e}.pin.yellow{background:#f59e0b}.insight{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fbfdff}.insight b{font-size:13px}.insight span{font-size:12px;color:var(--muted);line-height:1.45}

/* Mobile tester */
.mobile-body{background:linear-gradient(180deg,#f8fbff,#edf5ff);min-height:100vh;padding:18px}.mobile-frame{max-width:430px;margin:0 auto;background:#f7f9fc;min-height:calc(100vh - 36px);border-radius:34px;overflow:hidden;box-shadow:0 24px 70px rgba(15,23,42,.13);border:1px solid rgba(226,232,240,.9)}.mobile-login{padding:22px;min-height:calc(100vh - 36px);display:grid;align-content:center;gap:14px;background-image:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.94)),var(--login-bg);background-size:cover;background-position:center}.mobile-header{background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);color:#0f172a;padding:16px;backdrop-filter:blur(12px);position:sticky;top:0;z-index:10}.mobile-content{padding:14px;display:grid;gap:var(--gap)}.status-box{padding:15px}.status-box h2{letter-spacing:-.04em}.big-action{min-height:58px;border-radius:16px;font-size:15px}.tabs{position:sticky;bottom:0;background:rgba(255,255,255,.94);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);backdrop-filter:blur(12px)}.tabs button{border:0;background:transparent;padding:11px 6px;color:#64748b;font-weight:800;font-size:12px}.tabs button.active{color:var(--blue)}.camera-preview{width:100%;max-height:220px;object-fit:cover;border-radius:16px;border:1px solid var(--line);background:#e5e7eb;margin-top:10px}

/* Responsive */
@media(max-width:1060px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.section-grid{grid-template-columns:1fr}.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.content{padding:12px}.cards,.feature-grid{grid-template-columns:1fr}.topbar{padding:0 12px}.top-actions .btn span{display:none}.hero{padding:14px}.hero-copy{padding:22px;border-radius:24px}.login-card{padding:20px}.section-grid{gap:10px}.card,.kpi,.status-box{border-radius:16px}.mobile-body{padding:0}.mobile-frame{border-radius:0;min-height:100vh;border:0}.mobile-login{min-height:100vh}}

/* v1.4 HR Command polish */
.redirect-body{min-height:100vh;display:grid;place-items:center;background:#f8fafc;padding:22px}.redirect-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:26px;text-align:center;box-shadow:var(--shadow)}.redirect-card .logo{margin:0 auto 14px}.redirect-card h1{font-size:24px;letter-spacing:-.05em;margin:0 0 8px}.redirect-card p{color:var(--muted);font-size:13px;line-height:1.55;margin:0 0 16px}.login-only{background-image:linear-gradient(120deg,rgba(2,6,23,.58),rgba(15,23,42,.20) 46%,rgba(255,255,255,.06)),var(--login-bg)}.login-card-simple{width:min(360px,100%);padding:26px}.login-mark{display:grid;place-items:center;margin-bottom:12px}.login-title.center,.login-subtitle.center{text-align:center}.login-form-tight{margin-top:18px;gap:10px}.hr-shell{--gap:11px}.hero-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 142px;gap:var(--gap);align-items:stretch;margin-bottom:var(--gap);background:linear-gradient(135deg,#ffffff,#f4f8ff);border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:var(--shadow-soft)}.hero-dashboard h1{font-size:30px;line-height:1.02;letter-spacing:-.065em;margin:6px 0;color:#0f172a}.hero-dashboard p{max-width:760px;margin:0;color:#64748b;font-size:13px;line-height:1.55}.eyebrow{display:inline-flex;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#2563eb;background:#dbeafe;border:1px solid #bfdbfe;border-radius:999px;padding:6px 9px}.hero-score{border:1px solid #dbeafe;border-radius:20px;background:#fff;display:grid;place-items:center;text-align:center;padding:12px}.hero-score span{font-size:11px;color:#64748b;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.hero-score b{font-size:42px;letter-spacing:-.08em;line-height:1;color:#0f172a}.hero-score small{font-weight:900;color:#2563eb}.hr-kpis{grid-template-columns:repeat(8,minmax(0,1fr))}.hr-kpis .kpi{padding:14px;border-radius:18px}.hr-kpis .kpi b{font-size:28px}.hr-main-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.72fr)}.brief-list,.priority-list,.location-health-list,.score-list,.alert-list{display:grid;gap:9px}.brief-item,.priority-item,.alert-item{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;border:1px solid var(--line);border-radius:16px;background:#fbfdff;padding:12px}.brief-item b,.priority-item b,.alert-item b{display:block;font-size:13px;color:#0f172a}.brief-item span,.priority-item span,.alert-item span{display:block;font-size:12px;line-height:1.45;color:#64748b;margin-top:3px}.location-health-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border:1px solid var(--line);border-radius:17px;background:#fff;padding:12px;box-shadow:var(--shadow-soft)}.location-health-card b{display:block;font-size:13px;color:#0f172a}.location-health-card span{display:block;font-size:12px;color:#64748b;margin-top:2px}.health-score{grid-row:span 2;width:48px;height:48px;border-radius:16px;background:#eff6ff;border:1px solid #dbeafe;color:#1d4ed8;display:grid;place-items:center;font-weight:950;font-size:18px}.health-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}.health-meta span{font-size:11px;background:#f8fafc;border:1px solid var(--line);border-radius:999px;padding:5px 8px;margin:0}.mini-bar{grid-column:1/-1;height:7px;background:#eef2f7;border-radius:999px;overflow:hidden}.mini-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#60a5fa,#22c55e)}.score-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:11px;box-shadow:var(--shadow-soft)}.score-card b{display:block;font-size:13px}.score-card span{display:block;font-size:11px;color:#64748b;margin-top:2px}.score-card strong{font-size:22px;color:#0f172a;line-height:1}.score-card .mini-bar{grid-column:1/-1}.btn-ok{background:#dcfce7;color:#166534;border-color:#bbf7d0}.btn-danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}.fine{font-size:12px;color:#64748b}.hidden{display:none!important}@media(max-width:1250px){.hr-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:920px){.hero-dashboard{grid-template-columns:1fr}.hero-score{place-items:start;text-align:left}.hr-main-grid{grid-template-columns:1fr}}@media(max-width:620px){.hr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-dashboard h1{font-size:25px}.hero-dashboard{border-radius:20px;padding:15px}.health-meta{display:grid;grid-template-columns:repeat(2,1fr)}}

/* v1.5 Compact Typography Patch — smaller, sharper, denser */
:root{
  --radius:16px;
  --radius-sm:11px;
  --gap:10px;
  --shadow:0 12px 28px rgba(15,23,42,.06);
  --shadow-soft:0 6px 18px rgba(15,23,42,.045);
}
html{font-size:14px;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{font-size:13px;line-height:1.42;font-weight:520;letter-spacing:-.006em;color:#111827}
button,input,select,textarea{font-size:12.5px;font-weight:650}
strong,b,th,.btn,.nav button,.badge,.kpi span,.eyebrow{font-weight:820}
.fine{font-size:11px;line-height:1.35;color:#64748b}.muted{font-size:12px;color:#64748b}

/* tighter controls */
.btn{border-radius:11px;padding:9px 12px;min-height:36px;font-size:12px;gap:6px;font-weight:820}
.input{border-radius:11px;padding:10px 11px;min-height:39px;font-size:12.5px;font-weight:620}
textarea.input{min-height:76px}.toast{font-size:12px;padding:10px 12px;border-radius:13px}
.logo{width:34px;height:34px;border-radius:12px;font-size:17px}.logo.small{width:29px;height:29px;border-radius:10px;font-size:14px}
.side-brand{gap:8px}.side-brand strong{font-size:14px;letter-spacing:-.035em}.side-brand div div{font-size:11px;line-height:1.25}

/* login: cleaner and more precise */
.login-screen{padding:18px}.login-card{width:min(350px,100%);border-radius:22px;padding:21px;box-shadow:0 22px 72px rgba(0,0,0,.22)}
.login-card .side-brand{margin-bottom:17px}.login-title{font-size:22px;letter-spacing:-.055em;margin-bottom:5px}.login-subtitle{font-size:12px;line-height:1.45;margin-bottom:14px}.login-foot{font-size:11px}.login-mini{gap:7px;margin-top:10px}.login-mini span{font-size:10.5px;padding:7px;border-radius:11px}.login-card-simple{width:min(335px,100%);padding:22px}.login-form-tight{gap:9px;margin-top:15px}

/* shell density */
.topbar{height:56px;padding:0 14px}.top-left{gap:9px}.icon-btn{width:36px;height:36px;border-radius:12px}.hamb-lines{width:15px;height:11px;gap:2.5px}.hamb-lines span{height:1.8px}.page-heading b{font-size:13px}.page-heading div{font-size:11px;margin-top:1px}.top-actions{gap:6px}.content{padding:12px;max-width:1480px}.content.compact{padding-top:10px}
.sidebar{width:min(270px,86vw);padding:15px}.drawer-head{margin-bottom:11px}.nav{gap:5px}.nav button{padding:8.5px 10px;border-radius:11px;font-size:12px;font-weight:780}

/* cards and dashboard density */
.cards{gap:10px}.kpi,.card,.status-box{border-radius:15px}.kpi{padding:12px}.kpi span{font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}.kpi b{font-size:25px;margin-top:6px;letter-spacing:-.055em}.kpi small{font-size:10.5px}.section-grid{gap:10px;margin-top:10px}.card{padding:13px}.card h3{font-size:13.5px;margin-bottom:9px;letter-spacing:-.025em}.card-head{gap:8px;margin-bottom:9px}
.table-wrap{border-radius:12px}table{font-size:12px}th,td{padding:8.5px 10px}th{font-size:10px;letter-spacing:.045em}.badge{padding:4px 7px;font-size:10px;letter-spacing:.01em}.map-fake{height:224px;border-radius:15px}.insight{gap:5px;padding:10px;border-radius:12px}.insight b{font-size:12px}.insight span{font-size:11px;line-height:1.38}

/* HR command extra compact */
.hr-shell{--gap:9px}.hero-dashboard{grid-template-columns:minmax(0,1fr) 118px;gap:9px;margin-bottom:9px;border-radius:19px;padding:14px}.hero-dashboard h1{font-size:24px;letter-spacing:-.06em;margin:4px 0}.hero-dashboard p{font-size:11.8px;line-height:1.45}.eyebrow{font-size:9.8px;padding:5px 7px;letter-spacing:.075em}.hero-score{border-radius:16px;padding:10px}.hero-score span{font-size:9.8px}.hero-score b{font-size:34px}.hero-score small{font-size:10.5px}.hr-kpis{gap:9px}.hr-kpis .kpi{padding:10px;border-radius:14px}.hr-kpis .kpi b{font-size:22px}.hr-main-grid{grid-template-columns:minmax(0,1fr) minmax(340px,.68fr);gap:9px}.brief-list,.priority-list,.location-health-list,.score-list,.alert-list{gap:7px}.brief-item,.priority-item,.alert-item{gap:8px;padding:9.5px;border-radius:13px}.brief-item b,.priority-item b,.alert-item b{font-size:11.8px}.brief-item span,.priority-item span,.alert-item span{font-size:10.8px;line-height:1.36;margin-top:2px}.location-health-card{gap:7px;padding:10px;border-radius:13px}.location-health-card b{font-size:11.8px}.location-health-card span{font-size:10.8px}.health-score{width:42px;height:42px;border-radius:13px;font-size:15px}.health-meta{gap:5px}.health-meta span{font-size:10px;padding:4px 6px}.mini-bar{height:6px}.score-card{gap:6px;padding:9px;border-radius:13px}.score-card b{font-size:11.8px}.score-card span{font-size:10.5px}.score-card strong{font-size:19px}

/* mobile tester compact */
.mobile-body{padding:14px}.mobile-frame{max-width:410px;border-radius:28px}.mobile-login{padding:19px;gap:11px}.mobile-header{padding:13px}.mobile-content{padding:12px;gap:9px}.status-box{padding:12px}.status-box h2{font-size:20px}.big-action{min-height:50px;border-radius:14px;font-size:13px}.tabs button{padding:9px 5px;font-size:11px}.camera-preview{border-radius:13px;max-height:190px}

/* readable but not bulky on mobile */
@media(max-width:620px){
  body{font-size:12.5px}.content{padding:10px}.topbar{height:54px;padding:0 10px}.card,.kpi,.status-box{border-radius:14px}.hero-dashboard{border-radius:17px;padding:12px}.hero-dashboard h1{font-size:22px}.hr-kpis{gap:8px}.hr-kpis .kpi b{font-size:21px}.health-meta{grid-template-columns:repeat(2,1fr)}.mobile-body{padding:0}.mobile-frame{border-radius:0}
}

/* v1.6 mobile responsive refinement */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}.page{min-width:0}.layout main{min-width:0}.content>*{min-width:0}.card,.kpi,.status-box,.hero-dashboard{min-width:0}.card-head{min-width:0}.card-head h3{min-width:0;overflow-wrap:anywhere}.table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.table-wrap table{min-width:680px}.table-wrap:after{content:"Geser tabel →";display:none;font-size:10px;font-weight:800;color:#94a3b8;padding:7px 9px;background:#fff;border-top:1px solid var(--line)}.topbar,.mobile-header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.content,.mobile-content{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.tabs{padding-bottom:env(safe-area-inset-bottom)}

@media(max-width:1180px){
  .hr-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hr-main-grid,.section-grid{grid-template-columns:1fr}
  .hero-dashboard{grid-template-columns:minmax(0,1fr) 112px}
}

@media(max-width:860px){
  :root{--gap:9px;--radius:14px;--radius-sm:11px}
  body{background:#f8fbff}
  .topbar{height:auto;min-height:54px;gap:8px;padding-top:8px;padding-bottom:8px;align-items:center}
  .page-heading{min-width:0}.page-heading b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:54vw}.page-heading div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:54vw}
  .top-actions .btn{min-width:38px;padding-left:10px;padding-right:10px}
  .sidebar{width:min(292px,90vw);padding:14px;border-radius:0 22px 22px 0}.nav button{min-height:38px}
  .content{padding:10px}.content.compact{padding-top:9px}
  .hero-dashboard{grid-template-columns:1fr;border-radius:17px;padding:12px}.hero-dashboard h1{font-size:22px;line-height:1.03}.hero-score{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;padding:10px 12px}.hero-score b{font-size:27px}.hero-score small{margin-left:auto}
  .cards,.hr-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kpi{padding:10px}.kpi span{font-size:9.6px;line-height:1.2}.kpi b,.hr-kpis .kpi b{font-size:21px}.kpi small{font-size:9.8px;line-height:1.2}
  .card{padding:11px}.card-head{align-items:flex-start;flex-wrap:wrap}.card-head .btn{width:auto}.brief-item,.priority-item,.alert-item{grid-template-columns:1fr;padding:9px}.location-health-card,.score-card{padding:9px}.health-score{width:38px;height:38px;border-radius:12px;font-size:14px}.health-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.health-meta span{white-space:normal;text-align:center}
  .table-wrap table{min-width:640px}.table-wrap:after{display:block}
  .login-screen{align-items:end;padding:16px;min-height:100svh}.login-card-simple,.login-card{width:100%;max-width:360px;margin:0 auto;border-radius:22px;padding:20px}.login-title{font-size:21px}.login-subtitle{font-size:11.5px}.input{min-height:38px}.btn{min-height:36px}
}

@media(max-width:520px){
  body{font-size:12px}.topbar{position:sticky;top:0}.icon-btn{width:34px;height:34px;border-radius:11px}.page-heading b{font-size:12.5px;max-width:48vw}.page-heading div{font-size:10.5px;max-width:48vw}.top-actions .btn{font-size:0;width:34px;height:34px;padding:0;border-radius:11px}.top-actions .btn:before{content:"↻";font-size:15px;font-weight:950;color:inherit}
  .content{padding:8px}.cards,.hr-kpis{gap:7px}.kpi{border-radius:12px;padding:9px}.kpi span{font-size:9px}.kpi b,.hr-kpis .kpi b{font-size:19px}.kpi small{font-size:9px}
  .hero-dashboard{margin-bottom:8px;padding:11px;border-radius:15px}.hero-dashboard h1{font-size:20px}.hero-dashboard p{font-size:10.8px}.eyebrow{font-size:9px;padding:4px 6px}.hero-score b{font-size:24px}
  .card{border-radius:13px;padding:10px}.card h3{font-size:12.5px}.fine,.muted{font-size:10.8px}.badge{font-size:9px;padding:3.5px 6px}.brief-item b,.priority-item b,.alert-item b,.location-health-card b,.score-card b{font-size:11px}.brief-item span,.priority-item span,.alert-item span,.location-health-card span,.score-card span{font-size:10px}
  .table-wrap{border-radius:11px;margin-left:-1px;margin-right:-1px}.table-wrap table{min-width:600px;font-size:11.3px}th,td{padding:7.5px 8px}th{font-size:9px}.table-wrap:after{font-size:9px;padding:6px 8px}
  .form{gap:8px}.input{font-size:12px;border-radius:10px;padding:9px 10px}.btn{font-size:11.5px;border-radius:10px;padding:8px 10px}
  .login-screen{padding:12px}.login-card-simple,.login-card{max-width:none;padding:18px;border-radius:20px}.login-mark{margin-bottom:9px}.login-title{font-size:20px}.login-subtitle{font-size:11px}.login-form-tight{gap:8px;margin-top:13px}
  .mobile-body{padding:0}.mobile-frame{width:100%;max-width:none;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.mobile-login{min-height:100dvh;padding:18px}.mobile-header{padding:12px}.mobile-content{padding:10px 10px calc(62px + env(safe-area-inset-bottom));gap:8px}.status-box{padding:11px;border-radius:13px}.status-box h2{font-size:18px}.big-action{min-height:46px;font-size:12px}.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30}.tabs button{font-size:10.5px;padding:9px 3px calc(9px + env(safe-area-inset-bottom))}
}

@media(max-width:370px){
  .cards,.hr-kpis{grid-template-columns:1fr}.page-heading b,.page-heading div{max-width:44vw}.hero-score{display:grid}.health-meta{grid-template-columns:1fr}.table-wrap table{min-width:560px}
}


/* v1.7 regular typography refinement: kecil, tipis, tetap tegas */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:geometricPrecision}
body{font-size:12.8px;line-height:1.48;font-weight:400;letter-spacing:-.003em;color:#111827}
button,input,select,textarea{font-size:12.3px;font-weight:400;letter-spacing:-.002em}
strong,b{font-weight:500;color:#111827}
.btn{font-weight:500;letter-spacing:-.003em}
.btn-primary,.btn-dark{font-weight:500}
.nav button{font-weight:450;letter-spacing:-.002em;color:#334155}
.nav button.active,.nav button:hover{font-weight:500}
.logo{font-weight:600}.side-brand strong{font-weight:520;letter-spacing:-.025em}
.page-heading b{font-weight:520}.page-heading div{font-weight:400}
.login-title{font-weight:520;letter-spacing:-.045em}.login-subtitle,.login-foot,.login-mini span{font-weight:400}
.hero-dashboard h1{font-weight:520;letter-spacing:-.052em}.hero-dashboard p{font-weight:400}.eyebrow{font-weight:500;letter-spacing:.065em}
.hero-score span{font-weight:450}.hero-score b{font-weight:520}.hero-score small{font-weight:450}
.kpi span{font-weight:450;letter-spacing:.035em}.kpi b{font-weight:520;letter-spacing:-.046em}.kpi small{font-weight:450}
.card h3{font-weight:520;letter-spacing:-.018em}th{font-weight:500;letter-spacing:.038em}.badge{font-weight:500;letter-spacing:.003em}
td b,.brief-item b,.priority-item b,.alert-item b,.location-health-card b,.score-card b{font-weight:500}.score-card strong,.health-score{font-weight:520}
.insight b{font-weight:500}.tabs button{font-weight:450}.tabs button.active{font-weight:520}
.table-wrap:after{font-weight:450}.top-actions .btn:before{font-weight:520}
.status-box h2{font-weight:520}.big-action{font-weight:500}
.input::placeholder{font-weight:400;color:#9ca3af}
.muted,.fine{font-weight:400;color:#64748b}
@media(max-width:620px){body{font-size:12.2px}.btn{font-weight:500}.kpi b,.hr-kpis .kpi b{font-weight:520}.page-heading b{font-weight:500}}
@media(max-width:520px){body{font-size:11.8px}.card h3{font-weight:500}.badge{font-weight:500}.hero-dashboard h1{font-weight:520}.login-title{font-weight:520}}
