/* VeproHR: HR panel, public pages and the employee app, in the blue talent design system (global_assets/talent):
   blue for actions, deep navy for chrome, teal/amber/coral/sky only for status. Montserrat (global_assets/fonts). */

body.panel-hr, body.hr-app, body.hr-lp, .panel-hr, .hr-lp, .hr-app,
body.lp.hr-lp.hr-lp.hr-lp.hr-lp.hr-lp {                       /* the repeated class beats the marketplace's blue on public pages */
  --brand: #2563EB; --brand-dark: #0B1736; --brand-tint: #EFF4FF; --hr-soft: #EFF4FF; --hr-navy: #0B1736;
  --ink: #16192C; --muted: #667085; --line: #E4E7EC; --paper: #F5F7FC; --surface: #FFFFFF;
  --good: #0B7F5F; --deal: #C9353A; --accent: #F5A524; --accent-tint: #FEF3DC;
  --ok: #0FA47A; --ok-tint: #E3F6EF; --ok-ink: #087556;
  --warn: #F5A524; --warn-tint: #FEF3DC; --warn-ink: #8A5A00;
  --bad: #E5484D; --bad-tint: #FDECEC; --bad-ink: #B4262B;
  --info: #2E90FA; --info-tint: #EAF3FF; --info-ink: #175CD3;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: var(--font);
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 4px 16px rgb(11 23 54 / 6%);
}
body.panel-hr, body.hr-lp, body.hr-app { font-family: var(--font); background: var(--paper); color: var(--ink); }
.panel-hr h1, .hr-lp h1, .hr-app h1 { letter-spacing: -0.02em; }
.logo-hr .mark { background: var(--brand); color: #fff; text-transform: lowercase; }

/* Shared status colours (badges, notices) inside VeproHR */
body.panel-hr .badge.ok, body.hr-lp .badge.ok, body.hr-app .badge.ok { background: var(--ok-tint); color: var(--ok-ink); }
body.panel-hr .badge.warn, body.hr-lp .badge.warn, body.hr-app .badge.warn { background: var(--warn-tint); color: var(--warn-ink); }
body.panel-hr .badge.bad, body.hr-lp .badge.bad, body.hr-app .badge.bad { background: var(--bad-tint); color: var(--bad-ink); }
body.panel-hr .notice.ok, body.hr-lp .notice.ok, body.hr-app .notice.ok { background: var(--ok-tint); color: var(--ok-ink); border-color: transparent; }
body.panel-hr .notice.warn, body.hr-lp .notice.warn, body.hr-app .notice.warn { background: var(--warn-tint); color: var(--warn-ink); border-color: transparent; }
body.panel-hr .notice.info, body.hr-lp .notice.info, body.hr-app .notice.info { background: var(--info-tint); color: var(--info-ink); border-color: transparent; }
body.panel-hr .notice.error, body.hr-lp .notice.error, body.hr-app .notice.error { background: var(--bad-tint); color: var(--bad-ink); border-color: transparent; }
body.panel-hr .card, body.hr-lp .card, body.hr-app .card { border-color: var(--line); box-shadow: var(--shadow); }
body.panel-hr .btn, body.hr-lp .btn, body.hr-app .btn { border-radius: var(--radius-sm); font-weight: 600; }
body.panel-hr .btn.outline, body.hr-lp .btn.outline, body.hr-app .btn.outline { border-color: #C9D7F5; color: var(--brand); background: #fff; }
:is(body.panel-hr, body.hr-lp, body.hr-app) :is(input, select, textarea):focus-visible, :is(body.panel-hr, body.hr-lp, body.hr-app) :is(a, button, .btn):focus-visible { outline: 3px solid rgb(37 99 235 / 35%); outline-offset: 2px; }

/* HR panel chrome */
.panel-hr .panel-nav { background: var(--hr-navy); }
.panel-hr .panel-nav a.item.on { background: var(--brand); }
.panel-hr .panel-nav .count { background: var(--warn); color: var(--ink); }

/* People and lines */
.hr-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hr-soft); color: var(--brand); font-weight: 700; font-size: .85rem; flex: none; vertical-align: middle; }
.hr-av.big { width: 44px; height: 44px; font-size: 1.1rem; }
.hr-av.xl { width: 64px; height: 64px; font-size: 22px; background: #2563EB; color: #fff; }
.hr-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hr-line:first-of-type { border-top: 0; }
.hr-line .push, .hr-dayrow .push, .row .push, .hr-task .push, .hr-work-mini .push { margin-left: auto; }
.hr-start ol { padding-left: 20px; margin: 0; }

/* Day codes (register, calendars, app) */
.hr-c { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 3px; border-radius: 6px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); background: transparent; position: relative; }
.hr-present, .hr-in { background: var(--ok-tint); color: var(--ok-ink); }
.hr-half { background: var(--warn-tint); color: var(--warn-ink); }
.hr-absent { background: var(--bad-tint); color: var(--bad-ink); }
.hr-leave, .hr-halfleave { background: var(--info-tint); color: var(--info-ink); }
.hr-off, .hr-holiday { background: #F2F4F7; color: var(--muted); }
.hr-notyet { background: #fff; color: #98A2B3; border: 1px dashed #D0D5DD; }
.hr-c.is-late::after, .hr-calday.is-late::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.hr-c.is-out { outline: 2px solid var(--bad); outline-offset: -2px; }
.hr-late { background: #fff; color: var(--warn-ink); }
.hr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; align-items: center; }
.hr-reg th, .hr-reg td { padding: 6px 3px; }
.hr-reg th.c, .hr-reg td.c { text-align: center; min-width: 28px; }
.hr-reg th.c small { font-weight: 400; color: var(--muted); }
.hr-reg .hr-sun { color: var(--bad-ink); }
.hr-sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; padding-left: 12px !important; }
.hr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 520px; }
.hr-cal > b { text-align: center; font-size: .8rem; color: var(--muted); }
.hr-calday { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; text-decoration: none; color: inherit; min-height: 46px; border: 1px solid var(--line); }
.hr-calday small { font-size: .75rem; }
.hr-calday.hr-future, .hr-calday.hr-none { background: transparent; color: #D0D5DD; }
.hr-selfie { width: 100%; max-width: 260px; border-radius: 12px; border: 1px solid var(--line); }
.hr-type-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hr-type-row:first-child { border-top: 0; }

/* Public pages */
.hr-hero { padding: 56px 0; background: #F3F7FF; }
.hr-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hr-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0; color: var(--hr-navy); font-weight: 800; }
.hr-hl { color: var(--brand); }
.hr-phone { display: grid; gap: 12px; max-width: 320px; justify-self: center; padding: 18px; border-radius: 34px; background: var(--hr-navy); box-shadow: none; }
.hr-phone-card { display: grid; gap: 8px; background: #fff; border-radius: 18px; padding: 16px; }
.hr-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hr-features h3 { margin: 0; font-size: 1.15rem; }
.hr-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--hr-soft); color: var(--brand); font-size: 1.2rem; flex: none; }
.hr-ic.ok { background: var(--ok-tint); color: var(--ok-ink); } .hr-ic.bad { background: var(--bad-tint); color: var(--bad-ink); } .hr-ic.info { background: var(--info-tint); color: var(--info-ink); }
.hr-band { background: #EFF4FF; }
.hr-ticks { padding-left: 20px; margin: 0; display: grid; gap: 4px; }
.hr-plans { display: grid; grid-template-columns: repeat(2, minmax(220px, 300px)); gap: 16px; justify-content: center; }
.hr-auth { max-width: 440px; margin: 32px auto; display: grid; gap: 14px; padding: 0 16px; }
.hr-auth h1 { color: var(--hr-navy); }
.hr-auth .hr-art { width: 200px; margin: 0 auto -4px; }
.hr-code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.hr-policy { max-width: 780px; } .hr-policy h2 { margin: 18px 0 4px; font-size: 1.2rem; } .hr-policy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 760px) { .hr-hero-grid { grid-template-columns: 1fr; } .hr-plans { grid-template-columns: 1fr; } }

/* ───────────── Employee app ───────────── */
body.hr-app { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 15px; line-height: 1.5; }
body.hr-app small, body.hr-app .small { font-size: 13px; }
.hr-app-top { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--hr-navy); color: #fff; }
.hr-app-logo img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.hr-app-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: rgb(255 255 255 / 10%); text-decoration: none; }
.hr-app-icon:hover { color: #fff; background: rgb(255 255 255 / 18%); }
.hr-app-biz { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.hr-app-biz strong { font-size: 15px; font-weight: 600; }
.hr-app-biz small { font-size: 12px; color: #C3C8F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-app-main { max-width: 560px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.hr-app-main .card { padding: 18px; border-radius: 18px; }
.hr-app-main h2 { font-size: 17px; font-weight: 600; margin: 0; }
.hr-h1 { font-size: 23px; font-weight: 700; margin: 2px 0; color: var(--ink); }
.hr-sub { font-size: 15px; font-weight: 600; color: var(--muted); margin: 6px 2px -4px; }
.hr-app .btn { min-height: 44px; font-size: 15px; padding: 10px 18px; }
.hr-app .btn.small { min-height: 36px; font-size: 13px; padding: 6px 12px; }
.hr-app label { font-size: 13px; font-weight: 500; color: var(--muted); }
.hr-app :is(input, select, textarea) { min-height: 44px; font-size: 15px; border-radius: 12px; }

/* Cards fade in and rise, a little staggered */
@keyframes hr-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hr-app-main > * { animation: hr-rise .26s ease-out both; }
.hr-app-main > :nth-child(2) { animation-delay: .05s; } .hr-app-main > :nth-child(3) { animation-delay: .1s; } .hr-app-main > :nth-child(4) { animation-delay: .15s; }
.hr-app-main > :nth-child(5) { animation-delay: .2s; } .hr-app-main > :nth-child(n+6) { animation-delay: .25s; }

/* Bottom tabs */
.hr-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: none; }
.hr-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; min-height: 56px; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; }
.hr-tab-ic { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 99px; transition: background .2s ease-out, color .2s ease-out; }
.hr-tabs a i { font-size: 18px; }
.hr-tabs a.on { color: var(--brand); font-weight: 600; }
.hr-tabs a.on .hr-tab-ic { background: var(--hr-soft); }

/* Status pills */
.hr-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; line-height: 1.3; background: #F2F4F7; color: #344054; width: fit-content; }
.hr-pill.small { font-size: 12px; padding: 3px 10px; }
.hr-pill.ok { background: var(--ok-tint); color: var(--ok-ink); }
.hr-pill.warn { background: var(--warn-tint); color: var(--warn-ink); }
.hr-pill.bad { background: var(--bad-tint); color: var(--bad-ink); }
.hr-pill.info { background: var(--info-tint); color: var(--info-ink); }

/* The attendance card: the hero of Home */
.hr-att { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 4px rgb(16 24 40 / 4%); }
.hr-att-head { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 20px; color: #fff; background: #2563EB; }
.hr-att-head small { font-size: 13px; color: #D5D9FA; }
.hr-time { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hr-att-head .hr-pill { margin-top: 10px; background: rgb(255 255 255 / 16%); color: #fff; }
.hr-att-head .hr-pill.ok { background: #0FA47A; color: #fff; }
.hr-att-head .hr-pill.warn { background: #F5A524; color: #0B1736; }
.hr-att-head .hr-pill.info { background: rgb(46 144 250 / 92%); color: #fff; }
.hr-att-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.hr-punch-form { display: grid; gap: 10px; justify-items: center; }
.hr-loc { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; width: 100%; background: #F2F4F7; color: #344054; }
.hr-loc.ok { background: var(--ok-tint); color: var(--ok-ink); }
.hr-loc.bad { background: var(--bad-tint); color: var(--bad-ink); }
.hr-loc.checking { background: var(--info-tint); color: var(--info-ink); }
.hr-loc.warn { background: var(--warn-tint); color: var(--warn-ink); }
.hr-loc-ic { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / 70%); flex: none; }
.hr-loc.checking .hr-loc-ic::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--info); animation: hr-pulse 1.4s ease-out infinite; }
@keyframes hr-pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.hr-punch-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 4px; }
.hr-punch-spacer { width: 56px; }
.hr-punch-btn { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 32px; background: #2563EB; box-shadow: 0 0 0 8px var(--hr-soft); transition: transform .15s ease-out, background .3s ease-out, box-shadow .3s ease-out; }
.hr-punch-btn.out { background: #0B1736; box-shadow: 0 0 0 8px #E3EAF8; }
.hr-punch-btn:active { transform: scale(.94); }
.hr-punch-btn[disabled] { cursor: wait; }
.hr-punch-btn .hr-check, .hr-punch-btn .hr-spin { display: none; }
.hr-punch-btn.is-busy .hr-punch-ic { display: none; }
.hr-punch-btn.is-busy .hr-spin { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 35%); border-top-color: #fff; animation: hr-spin .8s linear infinite; }
.hr-punch-btn.is-done { background: var(--ok); box-shadow: 0 0 0 8px var(--ok-tint); }
.hr-punch-btn.is-done .hr-punch-ic, .hr-punch-btn.is-done .hr-spin { display: none; }
.hr-punch-btn.is-done .hr-check { display: block; width: 44px; height: 44px; }
.hr-punch-btn.is-done::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ok); animation: hr-ripple .7s ease-out forwards; pointer-events: none; }
@keyframes hr-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
@keyframes hr-spin { to { transform: rotate(360deg); } }
.hr-check { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hr-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: hr-draw .35s .1s ease-out forwards; }
@keyframes hr-draw { to { stroke-dashoffset: 0; } }
.hr-punch-label { font-size: 16px; font-weight: 600; color: var(--ink); }
.hr-punch-label.ok { color: var(--ok-ink); }
.hr-punch-sub { margin-top: -6px; }
.hr-selfie-pick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px dashed #98A2B3; cursor: pointer; color: var(--muted); overflow: hidden; text-align: center; line-height: 1; }
.hr-selfie-pick span { display: grid; gap: 2px; justify-items: center; } .hr-selfie-pick small { font-size: 10px; }
.hr-selfie-pick img { width: 100%; height: 100%; object-fit: cover; }
.hr-selfie-pick.has { border: 2px solid var(--ok); }
.hr-att-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hr-att-sum div { display: grid; padding: 10px 12px; border-radius: 14px; background: var(--paper); }
.hr-att-sum small { color: var(--muted); font-size: 12px; } .hr-att-sum strong { font-size: 17px; }

/* Home extras */
.hr-alert { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--warn-ink); background: var(--warn-tint); border-color: transparent; font-weight: 600; }
.hr-ask { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; }
.hr-work-mini { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.hr-work-mini > span:nth-child(2) { display: grid; } .hr-work-mini small { color: var(--muted); }
.hr-note { display: flex; gap: 12px; align-items: flex-start; }
.hr-note .hr-ic { width: 36px; height: 36px; font-size: 15px; }
.hr-link-row { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 6px; font-weight: 600; text-decoration: none; font-size: 14px; }

/* Leave rings */
.hr-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.hr-ring-item { display: grid; justify-items: center; gap: 4px; text-align: center; }
.hr-ring { --c: var(--ok); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #EAECF0 0); position: relative; }
.hr-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.hr-ring strong { position: relative; font-size: 20px; font-weight: 700; }
.hr-ring.warn { --c: var(--warn); } .hr-ring.bad { --c: var(--bad); }
.hr-ring-name { font-size: 14px; font-weight: 600; }
.hr-ring-item small { color: var(--muted); font-size: 12px; margin-top: -4px; }

/* Stat tiles (my attendance) */
.hr-bal { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.hr-bal > div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.hr-bal strong { font-size: 22px; font-weight: 700; color: var(--brand); }
.hr-bal .ok strong { color: var(--ok-ink); } .hr-bal .warn strong { color: var(--warn-ink); } .hr-bal .bad strong { color: var(--bad-ink); } .hr-bal .info strong { color: var(--info-ink); }
.hr-bal small { font-size: 12px; color: var(--muted); }
.hr-dayrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hr-dayrow:first-of-type { border-top: 0; }
.hr-req { padding: 8px 0; border-top: 1px solid var(--line); }

/* Pay */
.hr-slip { display: grid; gap: 12px; }
.hr-slip-month { display: block; font-size: 17px; font-weight: 600; }
.hr-slip.big .hr-slip-month { font-size: 20px; }
.hr-slip-net { display: grid; }
.hr-slip-net strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hr-slip.big .hr-slip-net strong { font-size: 34px; color: var(--hr-navy); }
.hr-slip:not(.big) .hr-dl { justify-self: start; }
.hr-slip-parts { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.hr-slip-parts summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 14px; }
.hr-slip-parts[open] summary { margin-bottom: 6px; }
.hr-slip-parts .row { padding: 3px 0; }
.hr-minus { color: var(--bad-ink); }
.hr-slip-total { border-top: 1px dashed var(--line); padding-top: 8px !important; }
.hr-dl.is-loading { pointer-events: none; opacity: .8; }
.hr-dl.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Work */
.hr-perf-big { margin: 0; font-size: 15px; } .hr-perf-big strong { font-size: 26px; font-weight: 700; color: var(--hr-navy); }
.hr-bar { position: relative; flex: 1; height: 10px; border-radius: 99px; background: #EAECF0; overflow: visible; }
.hr-bar > span { display: block; height: 100%; border-radius: 99px; background: #2563EB; transition: width .6s ease-out; }
.hr-bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--hr-navy); opacity: .45; border-radius: 2px; }
.hr-perf-pct { font-size: 15px; min-width: 44px; text-align: right; } .hr-perf-pct.ok { color: var(--ok-ink); }
.hr-perf-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.hr-perf-row .hr-bar { grid-column: 1 / -1; height: 6px; }
.hr-task { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hr-task:first-of-type { border-top: 0; }
.hr-task > span:nth-child(2) { display: grid; min-width: 0; }
.hr-task .hr-ic { width: 38px; height: 38px; font-size: 15px; }
.hr-late-txt { color: var(--bad-ink); font-weight: 600; }
.hr-call { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok-tint); color: var(--ok-ink); cursor: pointer; }
.hr-lb { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.hr-lb.me { background: var(--hr-soft); }
.hr-lb-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F2F4F7; font-weight: 700; color: var(--muted); font-size: 14px; }
.hr-lb-rank.top1 { background: #FEF3DC; color: #C98400; } .hr-lb-rank.top2 { background: #EEF0F4; color: #7A8394; } .hr-lb-rank.top3 { background: #FBEDE4; color: #B0643A; }
.hr-lb-val { display: grid; justify-items: end; line-height: 1.2; }

/* Profile */
.hr-profile { display: flex; gap: 14px; align-items: center; padding: 4px 2px; }
.hr-kv { display: grid; gap: 10px; }
.hr-kv div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.hr-kv div:first-child { border-top: 0; padding-top: 0; }
.hr-kv small { color: var(--muted); } .hr-kv strong { font-weight: 600; text-align: right; }
.hr-menu { padding: 6px 18px !important; }
.hr-menu a { display: flex; gap: 12px; align-items: center; min-height: 56px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.hr-menu a:first-child { border-top: 0; }
.hr-menu a > i:last-child { margin-left: auto; color: #98A2B3; }
.hr-menu .hr-ic { width: 36px; height: 36px; font-size: 15px; }
.hr-menu .count { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 700; animation: hr-pop .35s ease-out 1; }
@keyframes hr-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* VeproHR ID card and record requests */
.hr-veid { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--hr-soft); }
.hr-veid small:first-child, .hr-veid small:last-child { grid-column: 1 / -1; }
.hr-veid strong { font-size: 22px; letter-spacing: .06em; color: var(--brand); }
.hr-xfer { padding: 12px 0; border-top: 1px solid var(--line); }
.hr-xfer:first-of-type { border-top: 0; padding-top: 4px; }

/* Empty states and illustrations */
.hr-art { display: block; width: 160px; height: auto; }
.hr-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 8px 0; }
.hr-empty .hr-art { width: 140px; margin-bottom: 4px; }
.hr-empty small { color: var(--muted); max-width: 280px; }

/* Success sheet (slides up from the tabs) */
.hr-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 8; max-width: 536px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px !important; border-radius: 18px !important;
  background: #fff !important; color: var(--ink) !important; box-shadow: none; animation: hr-sheet-up .3s ease-out both; font-weight: 500; }
.hr-sheet .hr-check { width: 36px; height: 36px; flex: none; color: #fff; }
.hr-sheet .hr-check circle { fill: var(--ok); stroke: none; }
.hr-sheet span { flex: 1; font-size: 14px; }
.hr-sheet-x { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; width: 36px; height: 36px; }
.hr-sheet.is-gone { animation: hr-sheet-down .25s ease-in forwards; }
@keyframes hr-sheet-up { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hr-sheet-down { to { transform: translateY(120%); opacity: 0; } }

/* Launch splash, pull to refresh, first-open welcome */
.hr-splash { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--hr-navy); color: #fff; font-size: 22px; animation: hr-splash .7s ease-out .45s forwards; }
.hr-splash[hidden] { display: none; }
.hr-splash img { border-radius: 18px; animation: hr-logo .45s ease-out both; }
@keyframes hr-logo { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes hr-splash { to { opacity: 0; visibility: hidden; } }
.hr-ptr { position: fixed; top: 64px; left: 50%; z-index: 4; width: 36px; height: 36px; margin-left: -18px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(-40px); transition: opacity .15s; pointer-events: none; }
.hr-ptr span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--hr-soft); border-top-color: var(--brand); }
.hr-ptr.is-loading span { animation: hr-spin .8s linear infinite; }
.hr-onb { position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center; background: rgb(22 25 44 / 45%); padding: 16px; }
.hr-onb[hidden] { display: none; }
.hr-onb-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 24px 20px 18px; display: grid; gap: 14px; text-align: center; animation: hr-sheet-up .3s ease-out both; }
.hr-onb-slide { display: grid; justify-items: center; gap: 6px; }
.hr-onb-slide .hr-art { width: 200px; }
.hr-onb-slide h2 { font-size: 21px !important; font-weight: 700; color: var(--hr-navy); }
.hr-onb-dots { display: flex; gap: 6px; justify-content: center; }
.hr-onb-dots i { width: 8px; height: 8px; border-radius: 99px; background: #D0D5DD; transition: width .2s, background .2s; }
.hr-onb-dots i.on { width: 22px; background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .hr-app *, .hr-app *::before, .hr-app *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
}

/* Quiet buttons (Skip, Cancel) */
:is(body.panel-hr, body.hr-lp, body.hr-app) .btn.ghost { background: transparent; border-color: transparent; color: var(--brand); box-shadow: none; }
:is(body.panel-hr, body.hr-lp, body.hr-app) .btn.ghost:hover { background: var(--hr-soft); color: var(--brand-dark); filter: none; }

/* Small footer on sign-in pages */
.hr-mini-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; padding: 28px 16px 36px; font-size: 13px; color: var(--muted); }
.hr-mini-foot a { color: var(--muted); }
.hr-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hr-choose-card { display: grid; justify-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.hr-choose-card:hover { transform: translateY(-2px); color: var(--ink); }
.hr-choose-card strong { font-size: 18px; color: var(--hr-navy); }
.hr-choose-card .btn { margin-top: 6px; }
