/* Membra Enterprise Design System — Deep Obsidian Sidebar & Warm Alabaster Workspace */
:root {
  --canvas: #F8FAFC;
  --surface: #FFFFFF;
  --hover: #F1F5F9;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --rail: #0F172A;
  --rail-ink: #CBD5E1;
  --rail-muted: #64748B;
  --rail-hover: #1E293B;
  --brand: #0F172A;
  --accent: #0D9488;
  --green: #059669;
  --green-wash: #ECFDF5;
  --amber: #D97706;
  --amber-wash: #FFFBEB;
  --red: #DC2626;
  --red-wash: #FEF2F2;
  --orange: #F26F21;
  --orange-hover: #E2621A;
  --orange-wash: #FFF1E8;
  --focus: 0 0 0 3px rgba(13, 148, 136, 0.35);
  --radius: 8px;
  --font: "Inter", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14.5px; font-weight: 650; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.noscript { padding: 40px; text-align: center; }

/* ---------- Entry ---------- */
.entry { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.entry-card { width: min(560px, 100%); }
.entry-logo { height: 30px; width: auto; display: block; margin-bottom: 28px; }
.entry h1 { font-size: 30px; margin-bottom: 8px; }
.entry-lead { color: var(--muted); margin-bottom: 24px; max-width: 46ch; }
.role-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.role-list li + li { border-top: 1px solid var(--line); }
.role-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer; }
.role-btn:hover { background: var(--hover); }
.role-btn .who { flex: 1; min-width: 0; }
.role-btn strong { display: block; font-weight: 650; }
.role-btn span { color: var(--muted); font-size: 13.5px; }
.role-btn .go { color: var(--muted); font-size: 18px; }
.entry-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail-logo { height: 24px; width: auto; margin: 2px 10px 22px; align-self: flex-start; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-group { font-size: 12px; color: var(--muted); padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--hover); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--orange); }
.nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: var(--ink); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.rail-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.rail-foot strong { color: var(--ink); display: block; font-size: 13px; }
.main { min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.demo-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.topbar .spacer { flex: 1; }
.search { width: min(320px, 40vw); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.account { position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 0; cursor: pointer; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; background: var(--hover); color: var(--ink-2); cursor: default; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.18); padding: 6px; z-index: 40; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .who span { display: block; font-size: 12.5px; color: var(--muted); }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--hover); }
.content { padding: 32px 28px 64px; max-width: 1120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 10px; font-size: 13.5px; }
.back:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn.quiet { border-color: transparent; background: none; color: var(--ink-2); }
.btn.quiet:hover { background: var(--hover); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Lists ---------- */
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head .muted { font-size: 13px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.list > .row + .row { border-top: 1px solid var(--line); }
.row .body { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .sub { color: var(--muted); font-size: 13.5px; }
.row a.title { text-decoration: none; }
.row a.title:hover { text-decoration: underline; }
.row .end { text-align: right; flex: none; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.kind { font-size: 12px; color: var(--muted); min-width: 84px; flex: none; }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--canvas); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: var(--hover); }
tfoot td { font-weight: 700; background: var(--canvas); }

/* Labels */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.tag.ok { background: var(--green-wash); color: var(--green); }
.tag.wait { background: var(--amber-wash); color: var(--amber); }
.tag.bad { background: var(--red-wash); color: var(--red); }
.tag.plain { background: var(--hover); color: var(--ink-2); }

/* Facts strip: at most three numbers */
.facts { display: flex; gap: 36px; flex-wrap: wrap; margin: 4px 0 6px; }
.fact strong { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 13px; }
.fact a { text-decoration: none; }

/* Notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.notice.warn { border-color: #f1d3b0; background: var(--amber-wash); }
.notice.bad { border-color: #f2c2bd; background: var(--red-wash); }
.notice .body { flex: 1; }
.notice + .notice { margin-top: 8px; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Record page */
.record-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.record-head .avatar { width: 52px; height: 52px; font-size: 16px; cursor: default; }
.record-head .body { flex: 1; min-width: 0; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dl dt, .dl dd { margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); }
.dl dt:nth-last-of-type(1), .dl dd:last-child { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* Calendar strip */
.cal { display: grid; grid-template-columns: 180px repeat(10, minmax(28px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.cal > div { padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; text-align: center; }
.cal .name { text-align: left; padding-left: 16px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .hd { color: var(--muted); background: var(--canvas); }
.cal .off { background: var(--orange-wash); color: var(--ink-2); font-weight: 600; }
.cal .pend { background: repeating-linear-gradient(135deg, var(--amber-wash) 0 6px, transparent 6px 12px); }

/* Progress */
.bar { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; }

/* Payslip */
.slip { max-width: 560px; }
.slip table td { white-space: normal; }

/* Modal */
.scrim { position: fixed; inset: 0; background: rgba(23, 25, 29, .42); display: grid; place-items: center; padding: 16px; z-index: 60; }
.dialog { background: var(--surface); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 22px 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35); }
.dialog h2 { margin-bottom: 4px; }
.dialog .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; z-index: 80; max-width: calc(100vw - 32px); }

/* Phone */
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .topbar { padding: 0 16px; }
  .search { display: none; }
  .content { padding: 22px 16px 96px; }
  h1 { font-size: 23px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .tabbar a { flex: 1 0 64px; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font-size: 11.5px; text-decoration: none; color: var(--muted); border-radius: 8px; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--orange); }
  .tabbar .dot { position: absolute; top: 6px; right: 22%; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
  .row { padding: 13px 14px; flex-wrap: wrap; }
  .row .end { text-align: left; width: 100%; }
  .kind { min-width: 0; width: 100%; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
  .two-col, .grid-2 { grid-template-columns: 1fr; }
  .facts { gap: 24px; }
  .hide-m { display: none; }
}
@media print {
  .rail, .topbar, .tabbar, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.list .row .kind { width: 150px; }
@media (max-width: 860px) { .notice { flex-wrap: wrap; } .list .row .kind { width: 100%; } }

/* ---------- Visual layer: dark rail, warm banner, people imagery ---------- */
:root { --rail: #1b1c20; --rail-ink: #c9cbd1; --rail-muted: #8a8d96; --rail-hover: #26272c; --warm-1: #fff3eb; --warm-2: #ffe1cd; }
.rail { background: var(--rail); border-right: 0; }
.rail-logo { height: 26px; }
.nav-group { color: var(--rail-muted); }
.nav a { color: var(--rail-ink); }
.nav a:hover { background: var(--rail-hover); color: #fff; }
.nav a[aria-current="page"] { background: rgba(242, 111, 33, 0.16); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav svg, .ico { width: 18px; height: 18px; flex: none; }
.rail-foot { border-top-color: #2d2e33; color: var(--rail-muted); }
.rail-foot strong { color: #fff; }
.promo { position: relative; margin: 18px 4px 14px; border-radius: 14px; overflow: hidden; min-height: 210px; background: linear-gradient(180deg, #f8c9a6, #f3a46f); color: var(--ink); }
.promo img { position: absolute; right: -36px; bottom: 0; height: 100%; width: auto; object-fit: cover; mask-image: linear-gradient(90deg, transparent 0, #000 35%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.promo p { position: relative; padding: 16px 14px; font-size: 19px; font-weight: 700; line-height: 1.15; max-width: 9ch; }
.promo small { position: absolute; left: 14px; bottom: 14px; font-size: 12px; max-width: 12ch; line-height: 1.3; }

.hello { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(100deg, var(--warm-1) 0%, var(--warm-1) 45%, var(--warm-2) 100%); padding: 26px 28px; margin-bottom: 24px; min-height: 132px; display: flex; align-items: center; gap: 20px; }
.hello .body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hello h1 { font-size: 28px; }
.hello p { color: var(--ink-2); margin-top: 6px; max-width: 58ch; }
.hello .tagline { font-family: "Caveat", cursive; font-size: 30px; color: var(--ink); line-height: 1; transform: rotate(-4deg); white-space: nowrap; margin-right: 150px; position: relative; z-index: 1; }
.hello img { position: absolute; right: 0; bottom: 0; height: 100%; width: 190px; object-fit: cover; object-position: center 18%; mask-image: linear-gradient(90deg, transparent 0, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); }
.hello .btn-row { position: relative; z-index: 1; }
.hello.has-img .btn-row { margin-right: 170px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.tile-head .ico { color: var(--orange); }
.tile-head a { margin-left: auto; font-size: 13px; color: var(--orange-hover); text-decoration: none; font-weight: 600; }
.tile-head a:hover { text-decoration: underline; }
.tile .lead { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.tile table th { background: none; padding: 6px 0; }
.tile table td { padding: 8px 0; font-size: 13.5px; }
.tile table th + th, .tile table td + td { padding-left: 10px; }
.meter { margin-bottom: 14px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.meter-top span { color: var(--muted); font-size: 12.5px; }
.meter .bar { height: 8px; }
.meter .bar i { background: var(--orange); }
.tile .grow { flex: 1; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a, .quick button { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: left; }
.quick a:hover, .quick button:hover { background: var(--hover); }
.quick .ico { color: var(--orange); }
.story { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(110deg, #fff3eb 0%, #fde3cf 100%); padding: 20px; min-height: 170px; }
.story h3 { font-size: 18px; max-width: 14ch; line-height: 1.2; }
.story p { color: var(--ink-2); font-size: 13px; margin-top: 8px; max-width: 24ch; }
.story img { position: absolute; right: 0; bottom: 0; height: 100%; width: 45%; object-fit: cover; object-position: center 15%; mask-image: linear-gradient(90deg, transparent 0, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); }

.entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); display: grid; padding: 0; place-items: stretch; }
.entry-side { position: relative; background: linear-gradient(160deg, #fbd4b8 0%, #f39a63 100%); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.entry-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.entry-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23,25,29,.72) 100%); }
.entry-side blockquote { position: relative; z-index: 1; margin: 0; color: #fff; font-family: "Caveat", cursive; font-size: 42px; line-height: 1; max-width: 12ch; }
.entry-side small { position: relative; z-index: 1; color: rgba(255,255,255,.85); margin-top: 10px; }
.entry-main { display: grid; place-items: center; padding: 32px 16px; }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hello .tagline { display: none; } }
@media (max-width: 860px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry-side { min-height: 240px; padding: 24px; }
  .entry-side blockquote { font-size: 32px; }
  .hello { padding: 20px; min-height: 0; }
  .hello img { width: 120px; opacity: .9; }
  .hello.has-img .body { margin-right: 96px; }
  .hello.has-img .btn-row { margin-right: 0; }
  .hello h1 { font-size: 23px; }
  .quick { grid-template-columns: 1fr; }
}
.tile .list .row { padding: 12px 0; }
.btn .ico { width: 16px; height: 16px; }
.tile-head h2 { font-size: 15.5px; }

/* ---------- White rail with filled orange active item (Membra look) ---------- */
.rail { background: var(--surface); border-right: 1px solid var(--line); }
.nav-group { color: var(--muted); }
.nav a { color: var(--ink-2); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--orange); color: #fff; box-shadow: none; font-weight: 700; }
.nav a[aria-current="page"] .count { background: #fff; color: var(--ink); }
.nav .count { color: #fff; }
.rail-foot { border-top-color: var(--line); color: var(--muted); }
.rail-foot strong { color: var(--ink); }
.promo { min-height: 200px; background: linear-gradient(180deg, #fde7d6, #f9c9a3); }
.promo img { right: -18px; height: 92%; width: 62%; object-position: center 10%; }
.promo p { font-size: 17px; max-width: 8ch; padding: 16px 12px 6px; }
.promo small { position: relative; left: auto; bottom: auto; display: block; padding: 0 12px; max-width: 11ch; }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; }
.stat:hover { border-color: var(--line-2); box-shadow: 0 6px 18px -12px rgba(0,0,0,.25); }
.stat > .ico { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--orange-wash); color: var(--orange-hover); }
.stat-label { display: block; font-size: 13px; color: var(--ink-2); }
.stat strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-sub { display: block; font-size: 12.5px; color: var(--muted); }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; }
.icon-btn .ico { width: 16px; height: 16px; }
.icon-btn.ok { color: var(--green); } .icon-btn.ok:hover { background: var(--green-wash); }
.icon-btn.no { color: var(--red); } .icon-btn.no:hover { background: var(--red-wash); }
.pay-status { margin-bottom: 10px; }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 14px; font-size: 13.5px; }
.mini dt { color: var(--ink-2); } .mini dd { margin: 0; text-align: right; }
.warn-line { color: var(--amber); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.donut { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut > div { width: 96px; height: 96px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; }
.donut strong { font-size: 24px; line-height: 1; } .donut span { font-size: 12px; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; font-size: 13.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend strong { margin-left: auto; }
.vbars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 170px; margin-top: 8px; }
.vbars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 12px; }
.vbars i { display: block; width: 70%; background: var(--orange); border-radius: 4px 4px 0 0; }
.vbars span { color: var(--muted); }
.onb { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--line); }
.onb:first-of-type { border-top: 0; }
.onb .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.onb .body > span:not(.bar) { font-size: 12.5px; color: var(--muted); }
.onb .bar i { background: var(--orange); }
.span-2 { grid-column: span 2; }
.cards .story { min-height: 0; }
@media (max-width: 1100px) { .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: auto; } }
@media (max-width: 860px) { .stats4 { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 12px; } .stat > .ico { display: none; } .donut-wrap { flex-wrap: wrap; } }
.cards .story { align-self: start; min-height: 260px; }
@media (max-width: 860px) {
  .hello { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hello img { width: 112px; height: 100%; }
  .hello.has-img .body { margin-right: 100px; }
}

/* ---------- CEO view ---------- */
.sample-note { font-size: 12.5px; color: var(--muted); margin: -12px 0 14px; }
.stats6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats6 .stat { padding: 14px; gap: 10px; }
.stats6 .stat > .ico { width: 32px; height: 32px; padding: 7px; }
.stats6 .stat strong { font-size: 21px; }
.stats6 .stat-label { font-size: 12px; }
b.up { color: var(--green); font-weight: 700; }
.chart { width: 100%; height: auto; display: block; margin-top: 6px; }
.funnel-row { display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 8px; position: relative; padding: 9px 10px; margin-bottom: 6px; font-size: 13.5px; }
.funnel-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange-wash); border-left: 3px solid var(--orange); border-radius: 6px; z-index: 0; }
.funnel-row > :not(.funnel-bar) { position: relative; z-index: 1; }
.funnel-rate { color: var(--muted); font-size: 12px; text-align: right; }
.legend.health { margin: 4px 0 14px; }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mini3 div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mini3 strong { display: block; font-size: 18px; }
.mini3 span { font-size: 12px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li > span { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.checks li.done > span { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.checks li.done > span .ico { width: 12px; height: 12px; }
.checks li.done { color: var(--muted); text-decoration: line-through; }
@media (max-width: 1560px) { .stats6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .stats6 { grid-template-columns: 1fr 1fr; } .ceo-row .span-2 { grid-column: auto; } }

/* ================= Membra Workforce OS layer (spec: 70% white, 20% charcoal, 10% orange) ================= */
:root { --ink: #1f1f1f; --ink-2: #3a3c41; --muted: #5c5f66; --line: #e6e7eb; --line-2: #d5d7dd; --canvas: #f8f9fb; --hover: #f1f2f5; --charcoal-600: #5c5f66; --orange-hover: #d95f17; --orange-wash: var(--accent-wash); }
.rail { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px 14px; }
.rail-brand { display: grid; gap: 6px; padding: 2px 10px 14px; }
.rail-brand img { height: 26px; width: auto; }
.rail-brand span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a { gap: 10px; padding: 7px 10px; font-size: 14px; }
.nav a span { flex: 1; }
.nav-group { padding: 12px 10px 3px; font-size: 11.5px; letter-spacing: .02em; }
.rail-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.rail-bottom a, .rail-bottom .signout { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; font-weight: 500; }
.rail-bottom a:hover, .rail-bottom .signout:hover { background: var(--hover); color: var(--ink); }
.rail-bottom .signout { color: var(--ink); font-weight: 600; }
.rail-who { display: flex; align-items: center; gap: 10px; padding: 10px 10px 0; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.rail-who strong { display: block; color: var(--ink); font-size: 13px; }
.cmd { display: flex; align-items: center; gap: 10px; width: min(420px, 50vw); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--muted); cursor: pointer; text-align: left; }
.cmd span { flex: 1; } .cmd kbd { font: inherit; font-size: 11.5px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #fff; }
.cmd .ico { color: var(--orange); }
.view-tag { font-size: 12.5px; color: var(--muted); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.sm { background: var(--hover); color: var(--ink-2); overflow: hidden; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; background: var(--ink); color: #fff; overflow: hidden; cursor: default; }
.notice.global { border-radius: 0; border-width: 0 0 1px; }
.input { padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; min-width: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input { flex: 1 1 240px; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person > span { display: grid; }
.cell-person .muted { font-size: 12.5px; }
.link { background: none; border: 0; padding: 0; color: var(--orange-hover); font-weight: 600; cursor: pointer; font-size: 13px; }
.small { font-size: 12.5px; }
.big-num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.big-num span { font-size: 13px; font-weight: 500; color: var(--muted); }
.tight { margin: 6px 0 0; padding-left: 18px; }
.w-empty { color: var(--muted); padding: 10px 0; }
.w-error { display: flex; align-items: center; gap: 10px; color: var(--red); }
.sk-lines { display: grid; gap: 10px; padding: 8px 0; } .sk-lines i { display: block; height: 12px; border-radius: 6px; background: var(--hover); animation: sk-pulse 1.4s ease-in-out infinite; } .sk-lines i:nth-child(2) { width: 80%; } .sk-lines i:nth-child(3) { width: 60%; }
.span-3 { grid-column: 1 / -1; }
.tile.needs { border-color: var(--line-2); }
.list.plain { border: 0; background: none; } .list.plain .row { padding: 10px 0; }
.link-row { width: 100%; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; }
.link-row:hover { background: var(--hover); }
.link-row .ico { color: var(--muted); }

/* forms */
.form-group { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.form-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-err { color: var(--red); margin-top: 10px; font-size: 13.5px; }
.dialog.wide { width: min(720px, 100%); }
.form { max-width: none; }
.checks-box { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.checks-box label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 13.5px; }
.btn.big { padding: 11px 18px; font-size: 14.5px; margin-top: 4px; }
.entry-card .form { gap: 12px; }
.role-btn { cursor: default; }
.role-btn.is-off { opacity: .6; }
.role-btn select { max-width: 180px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; }

/* Employee 360 */
.record-head { display: flex; align-items: flex-start; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; flex-wrap: wrap; }
.record-head .body { flex: 1; min-width: 260px; }
.name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.facts-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 12px 0 0; }
.facts-row dt { font-size: 12px; color: var(--muted); }
.facts-row dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.complete-bar { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; font-size: 13.5px; }
.complete-bar .bar { width: 160px; flex: none; } .complete-bar .bar i { background: var(--orange); }
.tabs { display: flex; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 10px 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.tab-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { padding-left: 16px; position: relative; } .timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.timeline strong { display: block; font-weight: 600; font-size: 13.5px; } .timeline span { font-size: 12.5px; color: var(--muted); }
.timeline.big { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }

/* Org chart */
.org { overflow-x: auto; padding: 8px 0 24px; }
.org ul { list-style: none; margin: 0; padding-left: 26px; position: relative; }
.org > ul { padding-left: 0; }
.org li { position: relative; padding: 6px 0 6px 0; }
.org ul ul li::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; border-left: 1px solid var(--line-2); }
.org ul ul li:last-child::before { bottom: calc(100% - 28px); }
.org ul ul li::after { content: ""; position: absolute; left: -16px; top: 28px; width: 14px; border-top: 1px solid var(--line-2); }
.org-node { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 220px; }
.org-node span:last-child { display: grid; font-size: 12.5px; color: var(--muted); }
.org-node strong { color: var(--ink); font-size: 13.5px; }
.org-node a { text-decoration: none; }
.org-node.me { border-color: var(--orange); }
.org-node.open { border-style: dashed; background: var(--canvas); }

/* HR queue */
.queue { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 24px; }
.queue li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.queue .body { flex: 1; min-width: 0; }
.queue .title { font-weight: 600; text-decoration: none; }
.queue .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-count { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--orange-wash); color: var(--orange-hover); flex: none; }
.queue li.clear .q-count { background: var(--hover); color: var(--muted); } .queue li.clear .q-count .ico { width: 16px; height: 16px; }
.queue li.clear .title { font-weight: 500; color: var(--muted); }
.kv4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; margin-top: 4px; }
.kv4 div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; } .kv4 strong { display: block; font-size: 22px; } .kv4 span { font-size: 12px; color: var(--muted); }
.stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 12px 0 6px; gap: 2px; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.steps .body { flex: 1; }
.steps .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.steps .mark .ico { width: 13px; height: 13px; }
.steps li.done .mark { background: var(--ink-2); border-color: var(--ink-2); color: #fff; } .steps li.done .body { color: var(--muted); }
.steps li.next .mark { border-color: var(--orange); }

/* CEO briefing */
.briefing { background: linear-gradient(100deg, #fff 0%, var(--accent-wash) 60%, #ffeede 100%); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-bottom: 16px; }
.brief-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .brief-head .ico { color: var(--orange); } .brief-head .muted { margin-left: auto; font-size: 12.5px; }
.brief-text { font-size: 17px; line-height: 1.6; margin: 12px 0 4px; max-width: 80ch; color: var(--ink); }
.briefing h3 { margin: 16px 0 8px; font-size: 13px; color: var(--muted); }
.decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.decisions li { display: flex; align-items: center; gap: 10px; }
.decisions a { text-decoration: none; font-weight: 600; } .decisions a:hover { text-decoration: underline; }
.sev { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--amber); } .sev.high { background: var(--red); }
.stats6 .stat { text-decoration: none; }

/* AI */
.tile.ai .ai-form { display: flex; gap: 8px; margin-top: 4px; } .ai-form .input { flex: 1; }
.ai-big { padding: 24px; } .ai-big .ai-form .input { padding: 12px 14px; font-size: 15.5px; }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.pill:hover { border-color: var(--orange); color: var(--ink); }
.ai-answer { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 14px; }
.ai-q { font-weight: 700; margin-bottom: 6px; }
.ai-sub { font-weight: 600; margin-top: 10px; font-size: 13px; }
.ai-cites { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ai-cites li { display: flex; gap: 10px; font-size: 13.5px; } .ai-cites a { font-weight: 600; } .ai-cites span { color: var(--muted); }

/* employee quick actions */
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; grid-template-columns: none; }
.quick .btn { padding: 9px 14px; font-size: 13.5px; }
.quick .btn .ico { color: var(--orange); }
.slip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .cmd { width: auto; flex: 1; } .cmd kbd, .view-tag { display: none; }
  .record-head { padding: 16px; } .facts-row { gap: 10px 18px; }
  .queue { grid-template-columns: 1fr; }
  .brief-text { font-size: 15.5px; }
  .tabbar a { flex: 1 0 56px; }
  .tabbar .ico { width: 18px; height: 18px; }
}
@media print { .tabs, .btn-row, .tab-actions { display: none !important; } }
.nav a .count { flex: none; }
.rail { overflow: hidden; }
.rail .nav { overflow-y: auto; flex: 1 1 auto; min-height: 0; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; }
.rail-bottom { flex: none; }
.queue > li { min-width: 0; }
.cmd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .topbar .spacer { display: none; }
  .queue { grid-template-columns: minmax(0, 1fr); }
  .complete-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .complete-bar .bar { width: 100%; }
  .hello.has-img .body { margin-right: 110px; }
}
.rail-bottom .nav-group { display: block; padding: 4px 10px 3px; }
.tab-purpose { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 14px; }
.brief-grid h3 { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.brief-grid p { font-size: 15px; line-height: 1.55; }
.brief-head .btn { margin-left: 8px; }
.score { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 12px; } .score strong { font-size: 48px; line-height: 1; font-weight: 700; } .score span { color: var(--muted); }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.parts li { display: grid; grid-template-columns: 110px 1fr; gap: 2px 10px; align-items: center; font-size: 13.5px; }
.parts .bar i { background: var(--orange); } .parts .small { grid-column: 2; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.risks li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }
.risks a { font-weight: 600; text-decoration: none; } .risks a:hover { text-decoration: underline; }
.table-wrap.plain { border: 0; } .table-wrap.plain th { background: none; }
@media (max-width: 860px) { .brief-grid, .stat-grid { grid-template-columns: 1fr; } }
.bell-wrap { position: relative; }
.bell { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.bell .ico { width: 18px; height: 18px; }
.bell-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.notes { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.2); z-index: 50; }
.notes-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notes ul { list-style: none; margin: 0; padding: 4px; max-height: 60vh; overflow-y: auto; }
.notes li { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; } .notes li:hover { background: var(--hover); }
.notes li a { text-decoration: none; font-size: 13.5px; } .notes li span { font-size: 12px; color: var(--muted); }
.notes li.unread a { font-weight: 650; } .notes li.unread { box-shadow: inset 3px 0 0 var(--orange); }
.view-switch select { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar { gap: 10px; }
tbody tr.link { color: inherit; font-weight: inherit; font-size: inherit; background: none; }
tbody tr.link:hover { background: var(--hover); }
@media (max-width: 720px) {
  .topbar { min-width: 0; }
  .topbar > *:first-child { min-width: 0; flex: 1 1 auto; }
  .view-switch { flex: none; }
  .view-switch select { max-width: 120px; padding: 7px 6px; font-size: 13px; }
}

/* ---- Recruitment ---- */
.pipe-mini { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.pipe-mini span { display: flex; flex-direction: column; min-width: 58px; }
.pipe-mini b { font-size: 15px; color: var(--ink); font-weight: 650; }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-top: 4px; }
.kcol { background: #f1f2f4; border-radius: 12px; padding: 10px; min-height: 140px; }
.kcol h3 { font-size: 13px; font-weight: 650; margin: 2px 4px 10px; display: flex; justify-content: space-between; color: var(--ink-2); }
.kcol h3 span { color: var(--muted); font-weight: 600; }
.kcard { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--ink); font-size: 13px; }
.kcard:hover { border-color: var(--line-2); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.kcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kcard strong { font-size: 14px; }
.kmeta { color: var(--muted); font-size: 12px; }
.kscore { font-size: 12px; font-weight: 600; color: var(--green); }
.knext { font-size: 12px; display: flex; gap: 4px; align-items: center; color: var(--ink-2); }
.knext .ico { width: 13px; height: 13px; }
.kwarn { font-size: 12px; color: var(--amber); font-weight: 600; }
.kempty { color: var(--muted); font-size: 12.5px; margin: 4px; }
details.section > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.advert p { line-height: 1.6; margin: 0 0 6px; }
.advert h3 { font-size: 14px; margin: 18px 0 6px; }
.advert ul { margin: 0; padding-left: 20px; line-height: 1.65; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { display: flex; flex-direction: column; padding: 7px 0 7px 16px; border-left: 2px solid var(--line); position: relative; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline small { color: var(--muted); font-size: 12px; }
.sc-note { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; margin-top: 6px; padding: 7px 9px; background: var(--hover); border-radius: 8px; }
.sc-note span { color: var(--ink-2); }
.quote { white-space: pre-wrap; line-height: 1.55; color: var(--ink-2); margin: 0; }
.sm-h { font-size: 13px; margin: 16px 0 6px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 6px 0 12px; line-height: 1.4; }
label.check input { margin-top: 2px; }

/* ---- Public careers site ---- */
.pub { min-height: 100vh; background: var(--canvas); display: flex; flex-direction: column; }
.pub-top { display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, calc((100vw - 1040px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; }
.pub-brand img { height: 22px; width: auto; }
.pub-main { width: 100%; max-width: 1072px; margin: 0 auto; padding: 28px 16px 48px; flex: 1; }
.pub-hero h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.pub-hero p { margin: 4px 0; color: var(--ink-2); }
.pub-pay { font-weight: 650; color: var(--ink) !important; }
.pub-jobs { list-style: none; padding: 0; margin: 24px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pub-jobs li + li { border-top: 1px solid var(--line); }
.pub-jobs a { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.pub-jobs a:hover { background: var(--hover); }
.pub-jobs strong { font-size: 16px; }
.pub-jobs span { color: var(--muted); font-size: 13.5px; }
.pub-jobs .pub-pay { grid-column: 2; grid-row: 1; text-align: right; }
.pub-close { grid-column: 2; text-align: right; }
.pub-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; margin-top: 20px; align-items: start; }
.advert.open-ad { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.pub-form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.pub-form h2 { font-size: 18px; margin: 0 0 14px; }
.pub-form .btn.primary { width: 100%; padding: 11px; }
.pub-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 20px; }
@media (max-width: 760px) {
  .pub-grid { grid-template-columns: 1fr; }
  .pub-jobs a { grid-template-columns: 1fr; }
  .pub-jobs .pub-pay, .pub-close { grid-column: 1; grid-row: auto; text-align: left; }
  .pub-hero h1 { font-size: 26px; }
}

/* ---- Individual performance ---- */
.perf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.pcard.span-2 { grid-column: 1 / -1; }
.pc-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.pc-head h2 { font-size: 15px; margin: 0; }
.pc-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.pc-body { padding: 18px 20px; }
.pc-profile { display: flex; gap: 16px; align-items: flex-start; }
.pc-avatar { width: 52px; height: 52px; border-radius: 12px; background: var(--orange-wash); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.pc-profile div { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.pc-profile strong { font-size: 16px; }
.pc-overview { display: flex; gap: 22px; align-items: center; }
.ring { width: 96px; height: 96px; flex: none; }
.pc-overview dl { flex: 1; margin: 0; min-width: 0; }
.pc-overview dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pc-overview dl div:last-child { border: 0; }
.pcard dt { color: var(--muted); }
.pcard dd { margin: 0; font-weight: 600; text-align: right; }
.pc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 0; font-size: 13.5px; }
.pc-empty span { color: var(--muted); }
.pc-empty .btn { margin-top: 10px; }
.pc-big strong { font-size: 34px; letter-spacing: -0.02em; }
.pc-big span { color: var(--muted); margin-left: 8px; font-size: 13px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.pc-stats div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.pc-stats dd { text-align: left; font-size: 20px; }
.pc-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.pc-pad { padding: 18px 0; margin: 0; }
.table-wrap.flat { border: 0; border-radius: 0; }
td.wrap { white-space: normal; min-width: 200px; }
@media (max-width: 720px) {
  .perf-grid, .pc-team { grid-template-columns: 1fr; }
  .pc-overview { flex-direction: column; align-items: stretch; }
  .ring { align-self: center; }
  .board { grid-template-columns: repeat(5, 78vw); }
}

.pub-form .form { gap: 12px; }
.pub-form .field { min-width: 0; }
.pub-form .field input:not([type="checkbox"]), .pub-form .field select, .pub-form .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.pub-form .check { margin: 14px 0; }
.pub-grid > div { min-width: 0; }
.two-col > div { min-width: 0; }
.tile td.wrap { white-space: normal; }

/* ================= Premium layer ================= */
:root { --blue: #1D4E89; --blue-wash: #E6EEFB; }
/* Status colours: green approved, amber pending, blue draft, red error, each with a dot */
.tag.info { background: var(--blue-wash); color: var(--blue); }
.tag.ok::before, .tag.wait::before, .tag.bad::before, .tag.info::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.bad-text { color: var(--red); font-weight: 600; }

/* Command centre */
.command { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.command.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); position: relative; min-width: 0; }
a.kpi:hover { border-color: var(--line-2); box-shadow: 0 2px 8px rgba(17, 19, 24, 0.06); }
a.kpi:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.kpi::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: transparent; }
.kpi.good::after { background: var(--green); } .kpi.warn::after { background: var(--amber); } .kpi.bad::after { background: var(--red); }

/* Payroll hero */
.run-hero { background: linear-gradient(180deg, var(--accent-wash) 0%, #FFFFFF 70%); border: 1px solid var(--accent-line); border-radius: 18px; padding: 24px 26px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04); }
.run-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.run-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.run-hero h2 { font-size: 26px; letter-spacing: -0.02em; margin: 6px 0 0; }
.stepper { list-style: none; display: flex; gap: 6px; margin: 4px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.stepper li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); font-weight: 700; font-size: 11px; color: var(--ink-2); }
.stepper li span .ico { width: 12px; height: 12px; }
.stepper li.done { color: var(--green); } .stepper li.done span { background: var(--green-wash); color: var(--green); }
.stepper li.now { color: var(--ink); font-weight: 650; border-color: var(--accent-line); } .stepper li.now span { background: var(--orange); color: #fff; }
.run-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.run-figs > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.run-figs > div + div { border-left: 1px solid var(--line); }
.run-figs span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.run-figs strong { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.run-figs .net strong { font-size: 26px; color: var(--ink); }
.run-figs em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.run-block { margin-top: 14px; border: 1px solid #F3C7C3; background: var(--red-wash); border-radius: 12px; padding: 12px 14px; }
.run-block > strong { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: 14px; }
.run-block ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.run-block li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.run-block li a { margin-left: auto; font-weight: 600; color: var(--red); }
.run-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.run-foot p { margin: 0; font-size: 13.5px; }
.btn[data-size="lg"] { padding: 12px 22px; font-size: 15px; border-radius: 10px; }

/* Trust badges */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.trust-lead { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--green-wash); color: var(--green); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.badge .ico { width: 13px; height: 13px; }
.badge.ok { background: #fff; border: 1px solid #BFE3CB; }
.badge.warn { background: var(--amber-wash); color: var(--amber); }

/* AI shortcuts */
.ai-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.ai-chips > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-right: 4px; }
.ai-chips > span .ico { color: var(--orange); width: 16px; height: 16px; }
.ai-chips .pill { border: 1px solid var(--accent-line); background: var(--accent-wash); color: var(--ink); }
.ai-chips .pill:hover { background: var(--orange-wash); }
.ai-answer.inline { max-width: 640px; font-size: 14px; line-height: 1.55; }
.dialog .muted .ico { width: 14px; height: 14px; vertical-align: -2px; color: var(--orange); }

/* People everywhere */
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > span { display: flex; flex-direction: column; min-width: 0; }
.who .muted { font-size: 12.5px; }
.avatar { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
tr.row-bad td { background: #FFF6F5; }
tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--red); }
tr.row-bad a { color: var(--red); font-weight: 600; }

/* Empty states with a positive mark */
.empty-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: inline-grid; place-items: center; margin-bottom: 10px; }
.empty-ico .ico { width: 22px; height: 22px; }
.empty-ico.sm { width: 30px; height: 30px; margin: 0; flex: none; }
.empty-ico.sm .ico { width: 16px; height: 16px; }
.w-empty-box { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.w-empty-box .w-empty { padding: 0; }

/* Sidebar: cleaner spacing and an icons-only mode */
.rail-brand { position: relative; padding-right: 34px; }
.rail-toggle { position: absolute; right: 2px; top: 0; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.rail-toggle:hover { background: var(--hover); color: var(--ink); }
.rail-toggle .ico { width: 18px; height: 18px; }
.nav a { padding: 8px 10px; gap: 12px; }
.nav-group { padding-top: 16px; }
.shell.rail-min { grid-template-columns: 72px minmax(0, 1fr); }
.rail-min .rail { padding: 16px 10px 12px; align-items: center; }
.rail-min .rail-brand { padding: 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-min .rail-brand img { width: 28px; height: 26px; object-fit: cover; object-position: left center; }
.rail-min .rail-brand span, .rail-min .nav-group, .rail-min .nav a > span:not(.count), .rail-min .rail-bottom a > span, .rail-min .signout > span, .rail-min .rail-who > span { display: none; }
.rail-min .rail-toggle { position: static; }
.rail-min .nav { width: 100%; margin: 0; padding: 0; }
.rail-min .nav li.nav-group { display: block; height: 1px; padding: 0; margin: 10px 8px; background: var(--line); font-size: 0; }
.rail-min .nav a, .rail-min .rail-bottom a, .rail-min .signout { justify-content: center; padding: 10px 0; position: relative; }
.rail-min .nav a .count { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.rail-min .nav a[aria-current="page"] { box-shadow: none; }
.rail-min .rail-bottom { width: 100%; }
.rail-min .rail-bottom .nav-group { display: none; }
.rail-min .rail-who { justify-content: center; padding: 10px 0 0; }

/* Letter */
.letter { font-size: 14.5px; line-height: 1.65; max-width: 620px; }
.letter h2 { font-size: 18px; margin: 14px 0 10px; }

@media (max-width: 1100px) { .command { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .command, .command.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 14px; } .kpi-value { font-size: 21px; }
  .run-hero { padding: 18px 16px; border-radius: 14px; }
  .run-hero h2 { font-size: 21px; }
  .run-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-figs > div + div { border-left: 0; }
  .run-figs > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .run-figs > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .run-foot .btn-row { width: 100%; } .run-foot .btn[data-size="lg"] { flex: 1; }
  .shell.rail-min { grid-template-columns: minmax(0, 1fr); }
}
@media print { .trust, .ai-chips, .command { display: none; } }
@media (max-width: 720px) {
  .run-figs strong { font-size: 18px; } .run-figs .net strong { font-size: 19px; }
  .run-figs > div { padding: 12px 14px; }
  .command:not(.four) > .kpi:nth-child(5) { grid-column: span 2; }
  .trust { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; scrollbar-width: none; }
  .trust .badge { flex: none; } .trust-lead { display: none; }
}

/* ---- Sign-in ---- */
.entry-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #EEF0F3; border-radius: 10px; margin: 4px 0 18px; }
.entry-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 14px; }
.entry-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 19, 24, 0.08); }
.entry-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 64px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.pw-eye:hover { background: var(--hover); }
.demo-accts { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-accts h2 { font-size: 15px; margin: 0; }
.demo-accts .role-list { margin-top: 10px; max-height: 320px; overflow-y: auto; }
.entry-card .link { align-self: flex-start; }
.pw-hint { margin-top: -6px; font-size: 12.5px; color: var(--muted); }
.grid-2 { align-items: start; }
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .field { min-width: 0; } .pw-wrap input { width: 100%; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.kv4 > div { min-width: 0; } .kv4 span { overflow-wrap: anywhere; }
@media (max-width: 720px) { .kv4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.dialog { max-width: calc(100vw - 24px); box-sizing: border-box; } .dialog .form { min-width: 0; }

/* ================= Premium pass ================= */
:root { --canvas: #F8F9FB; --line: #E6E8EC; --line-2: #D5D9DF; --hover: #F2F4F7; --ink: #16181D; --ink-2: #3B4049; --muted: #667085;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05); --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.12); }
body { background: var(--canvas); letter-spacing: -0.003em; }
.tile, .card, .list, .table-wrap, .pcard, .kpi, .briefing { box-shadow: var(--shadow-sm); border-color: var(--line); }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.page-head p { font-size: 14.5px; }
.tile-head h2, .section-head h2, .pc-head h2 { letter-spacing: -0.01em; }
th { background: #FAFBFC; color: var(--muted); font-weight: 600; font-size: 12.5px; }
td { border-bottom-color: #EEF0F3; }
tbody tr:last-child td { border-bottom: 0; }
.btn { border-radius: 9px; box-shadow: var(--shadow-sm); transition: background 0.12s, border-color 0.12s, box-shadow 0.12s; }
.btn.primary { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
.field input, .field select, .field textarea { border-color: var(--line-2); border-radius: 9px; transition: border-color 0.12s, box-shadow 0.12s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C4C9D1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: var(--focus); outline: none; }
/* Sidebar: quiet active state, orange only as a marker */
.rail { background: #FFFFFF; border-right: 1px solid var(--line); }
.nav a { color: #4A505A; font-weight: 500; border-radius: 9px; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-wash); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--orange); }
.nav a[aria-current="page"] .ico { color: var(--orange); }
.nav a .count { background: #F2F4F7; color: var(--ink-2); font-weight: 650; }
.nav a[aria-current="page"] .count { background: var(--accent-line); color: var(--accent-ink); }
.nav-group { color: #98A2B3; font-weight: 600; }
.topbar { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); }
/* Greeting: white card with a soft brand glow, no handwriting */
.hello { background: radial-gradient(120% 160% at 100% 0%, var(--accent-wash) 0%, rgba(255, 230, 212, 0) 52%), #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hello .tagline { display: none; }
.hello h1 { letter-spacing: -0.025em; }
.kpi-value, .run-figs strong, .pc-big strong { letter-spacing: -0.03em; }

/* ---- Sign-in: form left, product preview right ---- */
.entry.premium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; padding: 0; background: #FFFFFF; }
.entry.premium .entry-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.entry.premium .entry-card { width: min(420px, 100%); }
.entry.premium .entry-logo { height: 28px; margin-bottom: 36px; }
.entry.premium h1 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 6px; }
.entry.premium .entry-lead { margin-bottom: 22px; }
.entry.premium .entry-tabs { display: flex; width: 100%; margin: 0 0 26px; }
.entry.premium .entry-tabs button { flex: 1; }
.entry.premium .btn.big { width: 100%; padding: 12px 18px; font-size: 15px; border-radius: 10px; margin-top: 6px; }
.entry.premium .entry-note { font-size: 12.5px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.entry.premium .grid-2 { gap: 12px; }
.showcase { position: relative; overflow: hidden; background: #16181D; color: #F2F3F5; padding: 44px 48px 32px; display: flex; flex-direction: column; gap: 28px; margin: 12px; border-radius: 24px; }
.sc-glow { position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; background: radial-gradient(closest-side, rgba(242, 111, 33, 0.45), rgba(242, 111, 33, 0)); pointer-events: none; }
.sc-head { display: flex; align-items: center; gap: 12px; position: relative; }
.sc-head img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.sc-head span { font-size: 13px; color: #9AA0AB; padding-left: 12px; border-left: 1px solid #343842; }
.sc-copy { position: relative; max-width: 30ch; }
.sc-copy h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; color: #FFFFFF; }
.sc-copy p { margin-top: 12px; color: #A9AFB9; font-size: 15px; line-height: 1.55; max-width: 44ch; }
.sc-stage { position: relative; flex: 1; min-height: 300px; }
.sc-card { position: absolute; background: #FFFFFF; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.sc-run { left: 0; top: 0; width: min(380px, 78%); padding: 20px 22px; }
.sc-row { display: flex; justify-content: space-between; align-items: center; }
.sc-pill { font-size: 11.5px; font-weight: 650; color: #8F5300; background: #FDF2E1; padding: 3px 9px; border-radius: 99px; }
.sc-muted { color: var(--muted); font-size: 12px; }
.sc-title { display: block; font-size: 18px; letter-spacing: -0.02em; margin: 10px 0 14px; }
.sc-figs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.sc-figs div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sc-figs div + div { border-left: 1px solid var(--line); }
.sc-figs span { font-size: 11px; color: var(--muted); font-weight: 600; }
.sc-figs b { font-size: 16px; letter-spacing: -0.02em; }
.sc-steps { display: flex; gap: 6px; margin: 14px 0; }
.sc-steps i { flex: 1; height: 4px; border-radius: 4px; background: #EEF0F3; }
.sc-steps i.on { background: var(--orange); }
.sc-btn { background: var(--orange); color: var(--ink); text-align: center; font-weight: 650; font-size: 13.5px; padding: 10px; border-radius: 10px; }
.sc-leave { right: 0; top: 46%; width: min(300px, 64%); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sc-leave div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sc-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.sc-ok { font-size: 12px; font-weight: 650; color: #1F7A4D; background: #E8F4EE; padding: 5px 10px; border-radius: 8px; }
.sc-kpi { left: 14%; bottom: 0; width: 200px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.sc-kpi b { font-size: 24px; letter-spacing: -0.03em; }
.sc-kpi svg { width: 100%; height: 30px; margin-top: 4px; }
.sc-trust { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-trust span { font-size: 12px; color: #D5D8DE; border: 1px solid #343842; padding: 5px 10px; border-radius: 99px; }
.sc-foot { position: relative; color: #6F7682; font-size: 11.5px; }
@media (max-width: 960px) {
  .entry.premium { grid-template-columns: 1fr; }
  .showcase { display: none; }
  .entry.premium .entry-main { padding: 36px 20px; align-items: flex-start; }
}
.sc-leave { top: auto; bottom: 22%; } .sc-kpi { left: 6%; } .sc-stage { min-height: 360px; }

/* ---- Sign-in fits one screen, no page scroll ---- */
.entry.premium { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.entry.premium .entry-main { height: 100%; min-height: 0; padding: clamp(14px, 3.5vh, 44px) clamp(20px, 4vw, 48px); align-items: center; overflow: hidden; }
.entry.premium .entry-card { max-height: 100%; display: flex; flex-direction: column; min-height: 0; }
.entry.premium .entry-logo { height: 26px; margin-bottom: clamp(12px, 3vh, 32px); flex: none; }
.entry.premium .entry-tabs { margin-bottom: clamp(12px, 2.6vh, 24px); flex: none; }
.entry.premium .entry-tabs button { padding: 7px 14px; }
.entry.premium h1 { font-size: clamp(22px, 3.4vh, 30px); margin-bottom: 4px; }
.entry.premium .entry-lead { margin-bottom: clamp(10px, 2.2vh, 22px); font-size: 14px; }
.entry.premium .form { gap: clamp(8px, 1.4vh, 12px); }
.entry.premium .field { gap: 4px; }
.entry.premium .field label { font-size: 12.5px; }
.entry.premium .field input, .entry.premium .field select { padding: clamp(7px, 1.1vh, 10px) 11px; }
.entry.premium .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.entry.premium .btn.big { padding: clamp(9px, 1.4vh, 12px) 18px; margin-top: 2px; }
.entry.premium .entry-note { margin-top: clamp(10px, 2vh, 20px); padding-top: clamp(8px, 1.6vh, 14px); font-size: 12px; flex: none; }
.entry.premium .pw-hint { margin-top: -4px; font-size: 12px; }
.entry.premium .muted.small { margin: 0; font-size: 12.5px; }
.entry.premium .demo-accts { margin-top: clamp(10px, 2vh, 20px); padding-top: clamp(8px, 1.6vh, 14px); flex: 1 1 auto; min-height: 90px; display: flex; flex-direction: column; }
.entry.premium .demo-accts h2 { font-size: 13.5px; font-weight: 650; }
.entry.premium .demo-accts .role-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; margin-top: 8px; }
.entry.premium .demo-accts .role-btn { padding: 7px 10px; gap: 10px; }
.entry.premium .demo-accts .role-btn .who span { display: none; }
.entry.premium .demo-accts .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.showcase { height: calc(100dvh - 24px); box-sizing: border-box; padding: clamp(24px, 4.5vh, 44px) clamp(28px, 3.5vw, 48px) clamp(18px, 3vh, 30px); gap: clamp(14px, 2.8vh, 28px); }
.sc-copy h2 { font-size: clamp(24px, 3.9vh, 34px); }
.sc-copy p { font-size: 14.5px; }
.sc-stage { min-height: 0; }
@media (max-width: 960px) {
  .entry.premium .entry-main { align-items: flex-start; padding-top: clamp(14px, 4vh, 36px); }
  .entry.premium .entry-card { width: 100%; max-width: 440px; margin: 0 auto; }
}
@media (max-height: 700px) and (max-width: 960px) { .entry.premium .entry-note { display: none; } .entry.premium .entry-lead { display: none; } }
.entry.premium .entry-logo { align-self: flex-start; width: auto; object-fit: contain; }
.entry.premium .entry-tabs, .entry.premium .btn.big { align-self: stretch; }
.entry.premium .demo-accts .role-list { padding-bottom: 44px; }

/* ---- Learning ---- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); min-width: 0; }
.lcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.lcard strong { font-size: 15.5px; letter-spacing: -0.01em; }
.lc-top, .lc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.lc-cat { font-weight: 600; }
.lcard .bar { margin-top: 6px; }
.prog { display: flex; align-items: center; gap: 10px; min-width: 140px; } .prog .bar { flex: 1; } .prog span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.course-desc { color: var(--ink-2); max-width: 70ch; margin: -8px 0 18px; line-height: 1.55; }
.lesson-row { align-items: center; }
.l-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 13px; }
.l-video { background: #FDE7DA; color: var(--accent-ink); } .l-document { background: #E3EEFB; color: #1D4E89; } .l-link { background: #F3E8FB; color: #6B2C91; } .l-text { background: #E4F4EA; color: #1E6B3A; }
.add-lessons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quiz-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.quiz-list li > div { display: inline-flex; flex-direction: column; gap: 2px; } .quiz-list li { display: list-item; } .quiz-list li .btn { float: right; }
.quiz-list b { color: var(--green); }
.player { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.outline { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: sticky; top: 76px; box-shadow: var(--shadow-sm); }
.outline h1 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 10px; }
.outline .bar { margin-bottom: 6px; }
.outline ol { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 2px; }
.outline button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font: inherit; font-size: 13.5px; }
.outline button:hover { background: var(--hover); }
.outline button.on { background: var(--accent-wash); color: var(--ink); font-weight: 600; }
.outline button small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.o-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); font-size: 11.5px; font-weight: 700; flex: none; color: var(--ink-2); }
.outline button.done .o-mark { background: var(--green-wash); color: var(--green); } .o-mark .ico { width: 13px; height: 13px; }
.outline button.on .o-mark { background: var(--orange); color: #fff; }
.player-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.p-kicker { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.player-card h2 { font-size: 24px; letter-spacing: -0.025em; margin: 6px 0 14px; }
.lesson-text { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.lesson-text p { margin: 0 0 12px; } .lesson-text ul { margin: 0 0 12px; padding-left: 20px; } .lesson-text li { margin: 4px 0; }
.media { margin: 6px 0 10px; border-radius: 12px; overflow: hidden; background: #0F1013; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #C7CBD2; }
.media video, .media iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.media.doc { aspect-ratio: auto; height: min(72vh, 760px); background: #F2F4F7; }
.media.link { aspect-ratio: auto; background: var(--canvas); border: 1px dashed var(--line-2); padding: 28px; text-align: center; color: var(--ink-2); gap: 10px; }
.player-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.quiz legend { font-weight: 650; padding: 0 6px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.opt:hover { background: var(--hover); }
.notice.ok { background: var(--green-wash); border-color: #BFE3CB; }
.cert { text-align: center; padding: 36px 24px; border: 2px solid var(--accent-line); border-radius: 16px; background: radial-gradient(120% 120% at 50% 0%, var(--accent-wash) 0%, #FFFFFF 60%); }
.cert img { margin: 0 auto 18px; display: block; }
.cert-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--orange-hover); margin: 0 0 14px; }
.cert h2 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 6px; } .cert h3 { font-size: 20px; margin: 6px 0 10px; }
.cert-org { margin-top: 18px; font-weight: 650; }
@media (max-width: 860px) { .player { grid-template-columns: 1fr; } .outline { position: static; } .player-card { padding: 18px 16px; } .player-card h2 { font-size: 20px; } .media.doc { height: 60vh; } }
/* ---- View switcher: one account, several perspectives ---- */
.view-switch { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); padding-left: 10px; }
.view-switch .vs-k, .view-tag .vs-k { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.view-switch select { border: 0 !important; background: transparent; font-weight: 650; padding: 7px 26px 7px 4px !important; box-shadow: none !important; cursor: pointer; }
.view-switch:focus-within { box-shadow: var(--focus); border-color: var(--orange); }
.view-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 13.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media (max-width: 720px) { .view-switch .vs-k, .view-tag .vs-k { display: none; } .view-switch { padding-left: 2px; } }
.rail .nav { display: flex; flex-direction: column; justify-content: flex-start; align-content: flex-start; } .rail .nav > li { flex: none; }
/* Long values (emails, addresses, names) wrap inside their card instead of spilling out */
.tile table, .card table, .pcard table { width: 100%; table-layout: auto; }
.tile td, .card td, .pcard td, .dl dd, dl dd { white-space: normal; overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.tile td:first-child, .card td:first-child { white-space: nowrap; overflow-wrap: normal; word-break: normal; padding-right: 12px; }
.tile td.num, .card td.num, .tile td.r, .card td.r { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tile, .card, .pcard, .tile > *, .two-col > div > * { min-width: 0; max-width: 100%; }
.who strong, .row .title, .kcard strong, .lcard strong { overflow-wrap: anywhere; }
.tile td, .card td, .pcard td, dl dd { overflow-wrap: break-word; word-break: normal; }
.tile { container-type: inline-size; }
@container (max-width: 440px) {
  .tile table tbody tr:has(> td:nth-child(2):last-child) { display: grid; grid-template-columns: 1fr; padding: 10px 16px; border-bottom: 1px solid #EEF0F3; }
  .tile table tbody tr:has(> td:nth-child(2):last-child):last-child { border-bottom: 0; }
  .tile table tbody tr:has(> td:nth-child(2):last-child) > td { padding: 0; border: 0; white-space: normal; }
  .tile table tbody tr:has(> td:nth-child(2):last-child) > td:first-child { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
  .tile table tbody tr:has(> td:nth-child(2):last-child) > td.r, .tile table tbody tr:has(> td:nth-child(2):last-child) > td.num { text-align: left; }
}
.dl dd { overflow-wrap: break-word; word-break: normal; min-width: 0; }
@container (max-width: 460px) {
  .tile .dl { grid-template-columns: minmax(0, 1fr) !important; }
  .tile .dl dt { border-bottom: 0 !important; padding-bottom: 0 !important; font-size: 12.5px; }
  .tile .dl dd { padding-top: 2px !important; }
}

/* ================= Contrast pass: dark rail, deeper canvas ================= */
:root { --canvas: #EEF0F4; --line: #E1E4EA; --line-2: #CDD2DA; --rail-bg: #16181D; --rail-ink: #C4C8D0; --rail-muted: #7C828D; --rail-hover: rgba(255, 255, 255, 0.06); }
body { background: var(--canvas); }
.tile, .card, .list, .table-wrap, .pcard, .kpi, .briefing, .player-card, .outline, .lcard { border-color: #DFE2E8; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04); }
.topbar { background: rgba(238, 240, 244, 0.86); border-bottom-color: #DCDFE5; }
.rail { background: var(--rail-bg) !important; border-right: 0 !important; color: var(--rail-ink); }
.rail-brand img { filter: brightness(0) invert(1); }
.rail-brand span { color: var(--rail-muted); }
.rail-toggle { color: var(--rail-muted); } .rail-toggle:hover { background: var(--rail-hover); color: #fff; }
.rail .nav-group, .rail-bottom .nav-group { color: var(--rail-muted) !important; }
.rail .nav a { color: var(--rail-ink) !important; }
.rail .nav a .ico { color: #9AA0AA; }
.rail .nav a:hover { background: var(--rail-hover) !important; color: #fff !important; }
.rail .nav a[aria-current="page"] { background: rgba(242, 111, 33, 0.14) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--orange) !important; }
.rail .nav a[aria-current="page"] .ico { color: var(--orange) !important; }
.rail .nav a .count { background: rgba(255, 255, 255, 0.1) !important; color: #E6E8EC !important; }
.rail .nav a[aria-current="page"] .count { background: var(--orange) !important; color: #16181D !important; }
.rail-bottom { border-top-color: #2A2D35 !important; }
.rail-bottom a, .rail-bottom .signout { color: var(--rail-ink) !important; }
.rail-bottom a .ico, .rail-bottom .signout .ico { color: #9AA0AA; }
.rail-bottom a:hover, .rail-bottom .signout:hover { background: var(--rail-hover) !important; color: #fff !important; }
.rail-who { border-top-color: #2A2D35 !important; color: var(--rail-muted) !important; }
.rail-who strong { color: #fff !important; }
.rail .nav { scrollbar-color: #3A3E47 transparent; }
.rail-min .nav li.nav-group { background: #2A2D35 !important; }
.hello { background: radial-gradient(120% 160% at 100% 0%, var(--accent-wash) 0%, rgba(255, 226, 204, 0) 55%), #FFFFFF; }
th { background: #F6F7F9; }

/* ================= Themes and company colour ================= */
:root { --accent-wash: #FFF1E8; --accent-line: #F6D6C2; --accent-ink: #9A3D10; --on-accent: #16181D; --focus: 0 0 0 3px color-mix(in srgb, var(--orange) 35%, transparent); }
html[data-accent="blue"] { --orange: #2563EB; --orange-hover: #1D4FD8; --orange-wash: #EAF1FE; --accent-wash: #EAF1FE; --accent-line: #C7D8FB; --accent-ink: #1D4ED8; --on-accent: #FFFFFF; }
html[data-accent="green"] { --orange: #15803D; --orange-hover: #116A32; --orange-wash: #E8F5EC; --accent-wash: #E8F5EC; --accent-line: #BFE3CB; --accent-ink: #166534; --on-accent: #FFFFFF; }
html[data-accent="purple"] { --orange: #7C3AED; --orange-hover: #6D28D9; --orange-wash: #F3EDFE; --accent-wash: #F3EDFE; --accent-line: #DDD0FB; --accent-ink: #5B21B6; --on-accent: #FFFFFF; }
html[data-accent="teal"] { --orange: #0F766E; --orange-hover: #0B5F58; --orange-wash: #E6F4F2; --accent-wash: #E6F4F2; --accent-line: #BFE1DC; --accent-ink: #115E59; --on-accent: #FFFFFF; }
html[data-accent="rose"] { --orange: #E11D48; --orange-hover: #BE123C; --orange-wash: #FDECF0; --accent-wash: #FDECF0; --accent-line: #F8C9D4; --accent-ink: #9F1239; --on-accent: #FFFFFF; }
.btn.primary { color: var(--on-accent); }
.btn.primary .ico { color: currentColor; }
.chart [stroke="#F26F21"] { stroke: var(--orange); } .chart [fill="#F26F21"] { fill: var(--orange); }
.rail .nav a[aria-current="page"] { background: color-mix(in srgb, var(--orange) 16%, transparent) !important; }
.rail .nav a[aria-current="page"] .count { color: var(--on-accent) !important; }
.kpi::after { } .sc-btn { background: var(--orange); color: var(--on-accent); } .sc-steps i.on { background: var(--orange); }

/* Daylight: everything light */
html[data-theme="daylight"] { --canvas: #F8F9FB; --line: #E6E8EC; }
html[data-theme="daylight"] .rail { background: #FFFFFF !important; border-right: 1px solid var(--line) !important; }
html[data-theme="daylight"] .rail-brand img { filter: none; }
html[data-theme="daylight"] .rail .nav a, html[data-theme="daylight"] .rail-bottom a, html[data-theme="daylight"] .rail-bottom .signout { color: #4A505A !important; }
html[data-theme="daylight"] .rail .nav a:hover, html[data-theme="daylight"] .rail-bottom a:hover, html[data-theme="daylight"] .rail-bottom .signout:hover { background: #F2F4F7 !important; color: var(--ink) !important; }
html[data-theme="daylight"] .rail .nav a[aria-current="page"] { background: var(--accent-wash) !important; color: var(--ink) !important; }
html[data-theme="daylight"] .rail .nav a .count { background: #F2F4F7 !important; color: var(--ink-2) !important; }
html[data-theme="daylight"] .rail-who strong { color: var(--ink) !important; }
html[data-theme="daylight"] .rail-bottom, html[data-theme="daylight"] .rail-who { border-top-color: var(--line) !important; }
html[data-theme="daylight"] .topbar { background: rgba(255, 255, 255, 0.88); }

/* Midnight: full dark mode */
html[data-theme="midnight"] { color-scheme: dark; --canvas: #0E1014; --surface: #171A20; --ink: #ECEEF2; --ink-2: #C3C8D0; --muted: #8C93A0; --line: #272B33; --line-2: #363B45; --hover: #20242B;
  --green: #4ADE80; --green-wash: rgba(74, 222, 128, 0.12); --amber: #FBBF24; --amber-wash: rgba(251, 191, 36, 0.12); --red: #F87171; --red-wash: rgba(248, 113, 113, 0.12); --blue: #93B4F8; --blue-wash: rgba(147, 180, 248, 0.14);
  --accent-wash: color-mix(in srgb, var(--orange) 16%, #171A20); --accent-line: color-mix(in srgb, var(--orange) 40%, #171A20); --accent-ink: color-mix(in srgb, var(--orange) 70%, #ffffff); --orange-wash: color-mix(in srgb, var(--orange) 16%, #171A20); }
html[data-theme="midnight"] body { background: var(--canvas); color: var(--ink); }
html[data-theme="midnight"] .rail { background: #0A0B0E !important; border-right: 1px solid #1E2127 !important; }
html[data-theme="midnight"] .topbar { background: rgba(14, 16, 20, 0.86); border-bottom-color: #1E2127; }
html[data-theme="midnight"] .tile, html[data-theme="midnight"] .card, html[data-theme="midnight"] .list, html[data-theme="midnight"] .table-wrap, html[data-theme="midnight"] .pcard, html[data-theme="midnight"] .kpi, html[data-theme="midnight"] .briefing, html[data-theme="midnight"] .player-card, html[data-theme="midnight"] .outline, html[data-theme="midnight"] .lcard, html[data-theme="midnight"] .dl, html[data-theme="midnight"] .role-list, html[data-theme="midnight"] .dialog, html[data-theme="midnight"] .run-figs, html[data-theme="midnight"] .notes, html[data-theme="midnight"] .menu, html[data-theme="midnight"] .kcard, html[data-theme="midnight"] .stepper li, html[data-theme="midnight"] .view-switch, html[data-theme="midnight"] .view-tag, html[data-theme="midnight"] .checks-box { background: var(--surface) !important; border-color: var(--line) !important; color: var(--ink); box-shadow: none; }
html[data-theme="midnight"] .hello, html[data-theme="midnight"] .run-hero, html[data-theme="midnight"] .briefing { background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--orange) 22%, transparent) 0%, transparent 55%), var(--surface) !important; border-color: var(--line) !important; }
html[data-theme="midnight"] th { background: #1C2027 !important; color: var(--muted); }
html[data-theme="midnight"] td, html[data-theme="midnight"] .dl dt, html[data-theme="midnight"] .dl dd { border-color: var(--line) !important; }
html[data-theme="midnight"] tbody tr.link:hover, html[data-theme="midnight"] tbody tr:hover td { background: #1C2027; }
html[data-theme="midnight"] tfoot td { background: #1C2027; color: var(--ink); }
html[data-theme="midnight"] input, html[data-theme="midnight"] select, html[data-theme="midnight"] textarea, html[data-theme="midnight"] .input { background: #0F1216 !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
html[data-theme="midnight"] .btn { background: #1F232A; border-color: var(--line-2); color: var(--ink); }
html[data-theme="midnight"] .btn:hover { background: #262A32; }
html[data-theme="midnight"] .btn.primary { background: var(--orange); border-color: var(--orange); color: var(--on-accent); }
html[data-theme="midnight"] .btn.quiet { background: transparent; }
html[data-theme="midnight"] .pill, html[data-theme="midnight"] .ai-chips .pill { background: #1F232A; border-color: var(--line-2); color: var(--ink); }
html[data-theme="midnight"] .tag.plain { background: #23272F; color: var(--ink-2); }
html[data-theme="midnight"] .tag.info { background: var(--blue-wash); color: var(--blue); }
html[data-theme="midnight"] .bar { background: #262A32; }
html[data-theme="midnight"] .kcol { background: #12151A; }
html[data-theme="midnight"] .notice { background: #1C2027; border-color: var(--line-2); color: var(--ink); }
html[data-theme="midnight"] .notice.warn { background: var(--amber-wash); } html[data-theme="midnight"] .notice.bad, html[data-theme="midnight"] .run-block { background: var(--red-wash); border-color: rgba(248, 113, 113, 0.3); }
html[data-theme="midnight"] .badge { background: var(--green-wash); color: var(--green); } html[data-theme="midnight"] .badge.ok { background: transparent; border-color: rgba(74, 222, 128, 0.35); }
html[data-theme="midnight"] .entry-tabs, html[data-theme="midnight"] .tabs { background: transparent; }
html[data-theme="midnight"] .tab-panel, html[data-theme="midnight"] .page-head p, html[data-theme="midnight"] .muted { color: var(--muted); }
html[data-theme="midnight"] .chart [stroke="#E6E7EB"] { stroke: #2A2E36; } html[data-theme="midnight"] .chart [fill="#5C5F66"] { fill: #8C93A0; } html[data-theme="midnight"] .chart [fill="#1F1F1F"] { fill: #ECEEF2; } html[data-theme="midnight"] .chart [fill="#3A3D44"] { fill: #6B7280; } html[data-theme="midnight"] .chart circle[fill="#fff"] { fill: #171A20; }
html[data-theme="midnight"] .ring circle[stroke="var(--hover)"] { stroke: #262A32; }
html[data-theme="midnight"] .tabbar { background: #0A0B0E; border-top-color: #1E2127; }
html[data-theme="midnight"] .tabbar a { color: #9AA0AA; } html[data-theme="midnight"] .tabbar a[aria-current="page"] { color: #fff; }
html[data-theme="midnight"] .scrim { background: rgba(0, 0, 0, 0.6); }
html[data-theme="midnight"] .toast { background: #ECEEF2; color: #0E1014; }
html[data-theme="midnight"] .lesson-text, html[data-theme="midnight"] .course-desc { color: var(--ink-2); }
html[data-theme="midnight"] .cert { background: var(--surface); }
html[data-theme="midnight"] tr.row-bad td { background: rgba(248, 113, 113, 0.08); }
html[data-theme="midnight"] .empty strong, html[data-theme="midnight"] h1, html[data-theme="midnight"] h2, html[data-theme="midnight"] h3, html[data-theme="midnight"] strong { color: var(--ink); }
html[data-theme="midnight"] a { color: inherit; }

/* Appearance picker */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-opt { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; background: var(--surface); }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt:has(input:checked) { border-color: var(--orange); box-shadow: var(--focus); }
.theme-opt:has(input:focus-visible) { box-shadow: var(--focus); }
.tp { height: 64px; border-radius: 8px; display: grid; grid-template-columns: 26% 1fr; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.06); }
.tp i { display: block; } .tp b { display: grid; gap: 5px; padding: 8px; align-content: start; } .tp b em { display: block; height: 9px; border-radius: 3px; }
.tp-classic i { background: #16181D; } .tp-classic b { background: #EEF0F4; } .tp-classic em { background: #fff; }
.tp-daylight i { background: #fff; border-right: 1px solid #E6E8EC; } .tp-daylight b { background: #F8F9FB; } .tp-daylight em { background: #fff; box-shadow: 0 0 0 1px #E6E8EC inset; }
.tp-midnight i { background: #0A0B0E; } .tp-midnight b { background: #0E1014; } .tp-midnight em { background: #1F232A; }
.tp em:first-child { width: 60%; background: var(--orange) !important; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font-size: 13px; font-weight: 600; background: var(--surface); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 22px; height: 22px; border-radius: 50%; }
.swatch:has(input:checked) { border-color: var(--ink); }
.swatch:has(input:focus-visible) { box-shadow: var(--focus); }
.theme-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.theme-btn:hover { background: var(--hover); } .theme-btn .ico { width: 18px; height: 18px; }
@media (max-width: 720px) { .theme-grid { grid-template-columns: 1fr 1fr 1fr; } .tp { height: 48px; } }
html[data-theme="midnight"] .bell, html[data-theme="midnight"] .theme-btn { background: var(--surface) !important; border-color: var(--line-2) !important; color: var(--ink-2) !important; }
html[data-theme="midnight"] kbd, html[data-theme="midnight"] .cmd kbd { background: #23272F !important; border-color: var(--line-2) !important; color: var(--muted) !important; }
html[data-theme="midnight"] .cmd, html[data-theme="midnight"] .search, html[data-theme="midnight"] .topbar .cmd { background: var(--surface) !important; border-color: var(--line-2) !important; color: var(--muted) !important; }
html[data-theme="midnight"] .demo-bar { background: #ECEEF2; color: #0E1014; } html[data-theme="midnight"] .demo-bar button { background: #0E1014; color: #fff; }
.run-block li { flex-wrap: wrap; row-gap: 4px; min-width: 0; } .run-block li > span { min-width: 0; }

/* ---------- hosted: loading and offline screens */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--canvas, #EEF0F4); }
.boot img { height: 31px; width: auto; }
.boot-h { font-size: 20px; margin: 6px 0 0; }
.boot-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line, #E3E5EA); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--orange, #F26F21); animation: boot-slide 1.1s ease-in-out infinite; }
@keyframes boot-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .boot-bar i { animation: none; width: 100%; opacity: .5; } }
#invite-link { font-size: 13px; }

/* ---------- employee records (all staff, every vital) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2, #F1F2F5); border: 1px solid var(--line); margin: 0 0 12px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.rec-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.rec-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-stat span { font-size: 12px; color: var(--muted); } .rec-stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.rec-gaps, .rec-cols { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.gap-chip, .col-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.gap-chip { border-color: rgba(220, 38, 38, .25); color: var(--red, #B42318); background: var(--red-wash, #FEF3F2); }
.gap-chip.on { outline: 2px solid var(--red, #B42318); }
.col-chip.on { background: var(--accent-wash, #FFF1E8); border-color: var(--accent-line, #F9C9A9); color: var(--accent-ink, #9A3B07); font-weight: 600; }
.rec-wrap { max-height: 70vh; overflow: auto; }
.rec-table { min-width: 100%; white-space: nowrap; }
.rec-table th { position: sticky; top: 0; z-index: 2; background: var(--surface-2, #F7F8FA); }
.rec-table td.sticky, .rec-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.rec-table th:first-child { z-index: 3; background: var(--surface-2, #F7F8FA); }
.th-sort { border: 0; background: none; font: inherit; font-weight: 600; color: inherit; cursor: pointer; padding: 0; white-space: nowrap; }
.rec-cards .dl + hr.soft, hr.soft { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .plain-list li { display: flex; flex-direction: column; }
@media (max-width: 720px) { .rec-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rec-table td.sticky, .rec-table th:first-child { position: static; } }
html[data-theme="midnight"] .rec-table th, html[data-theme="midnight"] .rec-table th:first-child { background: #1C2027; }
.tile-edit { margin-left: auto; } .tile-head .tile-edit .btn { padding: 4px 10px; }

/* ================= polish pass ================= */
:root { --r-sm: 8px; --r-md: 12px; --r-lg: 16px; }
.tile, .card, .table-wrap, .story, .onboard { border-radius: var(--r-lg); }
.btn { border-radius: 10px; } .tag { border-radius: 999px; }
.tile { padding: 20px; } .tile-head { min-height: 28px; }
@media (max-width: 720px) {
  .tile { padding: 16px; }
  .btn, .rail .nav a, .tabbar a, .tabs [role="tab"], .seg button, .col-chip, .gap-chip, .set-nav button, .input, select, input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
  .btn.sm { min-height: 40px; }
  .chart { width: 100%; height: auto; }
}
/* toast with a checkmark that draws itself */
#toast.ok { display: inline-flex; align-items: center; gap: 10px; }
#toast .tick svg { width: 20px; height: 20px; display: block; }
#toast .tick circle { fill: #2E9E6A; }
#toast .tick path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; animation: tick-draw .45s .1s ease-out forwards; }
#toast.ok:not([hidden]) { animation: toast-pop .28s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@keyframes toast-pop { from { transform: translateX(-50%) translateY(8px) scale(.96); opacity: 0; } }
.burst { position: fixed; left: 50%; bottom: 64px; width: 0; height: 0; z-index: 9999; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: burst 1.05s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) rotate(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d) - 60px)) rotate(240deg); } }
@media (prefers-reduced-motion: reduce) { #toast .tick path { animation: none; stroke-dashoffset: 0; } #toast.ok:not([hidden]) { animation: none; } }
/* empty states with illustrations */
.empty.illus .empty-art { display: block; width: 120px; height: 84px; margin: 0 auto 10px; }
.empty-art svg { width: 100%; height: 100%; }
.il-soft { fill: var(--accent-wash, #FFF1E8); } .il-accent { fill: var(--orange); } .il-ink { fill: #2A2C31; } .il-line { fill: #D9DBE1; } .il-line-l { fill: rgba(255, 255, 255, .55); }
.il-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.il-trend { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 4; }
html[data-theme="midnight"] .il-ink { fill: #C9CDD6; } html[data-theme="midnight"] .il-line { fill: #3A3F49; }
/* onboarding */
.onboard { background: linear-gradient(135deg, var(--accent-wash, #FFF4EC), var(--surface) 60%); border: 1px solid var(--accent-line, #F9D2B6); padding: 20px; margin: 0 0 20px; }
.ob-head { display: flex; gap: 16px; align-items: center; }
.ob-head h2 { font-size: 18px; margin: 0 0 4px; } .ob-head p { margin: 0; }
.ob-ring { position: relative; width: 56px; height: 56px; flex: none; }
.ob-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ob-track { fill: none; stroke: var(--line); stroke-width: 6; } .ob-fill { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ob-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.ob-hide { margin-left: auto; align-self: flex-start; }
.ob-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ob-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ob-steps li a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.ob-steps li.done a { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.ob-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.ob-steps li.done .ob-dot { background: #2E9E6A; border-color: #2E9E6A; }
.ob-dot svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 720px) { .ob-head { flex-wrap: wrap; } .ob-head > div:nth-child(2) { flex: 1 1 200px; } }
/* payroll check */
.pcheck .pc-badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--green-wash, #ECFDF3); color: #067647; }
.pcheck.is-warn .pc-badge { background: var(--amber-wash, #FFFAEB); color: #B54708; } .pcheck.is-bad .pc-badge { background: var(--red-wash, #FEF3F2); color: #B42318; }
.pcheck.is-bad { border-color: rgba(220, 38, 38, .35); }
.pc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.pc-list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pc-list li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pc-list li strong { font-size: 14px; } .pc-list .muted { font-size: 13px; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--muted); }
.pc-bad .pc-dot { background: #D92D20; } .pc-warn .pc-dot { background: #F79009; } .pc-info .pc-dot { background: #5B8DEF; }
/* analytics story */
.story { background: var(--surface); border: 1px solid var(--line); padding: 20px 22px; margin: 0 0 20px; }
.story-h { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 14px; } .story-h .ico { color: var(--orange); }
.story dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.story dt { font-size: 12px; font-weight: 700; color: var(--accent-ink, #9A3B07); margin-bottom: 3px; } .story dd { margin: 0; line-height: 1.5; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-grid > .tile:first-child { grid-column: 1 / -1; }
.an-more { font-size: 16px; margin: 28px 0 12px; }
@media (max-width: 900px) { .an-grid { grid-template-columns: minmax(0, 1fr); } }
/* settings */
.set-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.set-nav button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.set-nav button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--orange), 0 1px 2px rgba(16, 24, 40, .06); }
.set-nav button:hover { color: var(--ink); }
.cards.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .set-layout { grid-template-columns: minmax(0, 1fr); } .set-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .set-nav button { white-space: nowrap; } }
.sw-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 2px var(--c); } .sw:disabled { cursor: default; opacity: .8; }
.brand-preview { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line); }
.brand-preview img { height: 20px; width: auto; } .brand-preview > span:nth-child(2) { font-weight: 600; margin-right: auto; }
td.c, th.c { text-align: center; } .yes { color: var(--orange); font-size: 14px; }
.toggles { list-style: none; margin: 0; padding: 0; }
.toggles li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); } .toggles li:first-child { border-top: 0; }
.toggles li > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.switch { width: 44px; height: 26px; border-radius: 999px; border: 0; background: #D0D4DC; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on { background: var(--orange); } .switch.on i { transform: translateX(18px); }
button.theme-opt { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 10px; font: inherit; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink); }
button.theme-opt.on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--accent-wash, #FFE3D0); }
html[data-theme="midnight"] .onboard { background: linear-gradient(135deg, rgba(242, 111, 33, .12), var(--surface) 60%); }
.set-body .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pc-wrap { margin-bottom: 16px; }
/* KPI row used by attendance and recruitment */
.kt-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.kt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; overflow: hidden; }
.kt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.kt.good::before { background: #2E9E6A; } .kt.warn::before { background: #F79009; } .kt.bad::before { background: #D92D20; }
.kt span { font-size: 12.5px; color: var(--muted); } .kt b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.15; } .kt b small { font-size: 15px; color: var(--muted); font-weight: 600; } .kt em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .kt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt b { font-size: 22px; } }
/* attendance heatmap */
.heat-tile { margin: 0 0 16px; }
.heat-wrap { overflow-x: auto; margin: 6px -4px 0; }
.heat { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.heat th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 0; }
.heat th span { display: block; color: var(--ink); } .heat th i { font-style: normal; font-weight: 400; }
.heat td { padding: 0; text-align: center; }
.heat .hn { text-align: left; min-width: 180px; padding-right: 8px; } .heat .hn a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.heat .hn .avatar { width: 26px; height: 26px; font-size: 10.5px; }
.heat .hs { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 44px; color: var(--muted); }
.hc { display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: #EEF0F3; vertical-align: middle; }
.h-ontime { background: #3BA776; } .h-late { background: #F5A524; } .h-absent { background: #E5484D; } .h-leave { background: #9DB7E8; } .h-none { background: #F1F2F5; }
html[data-theme="midnight"] .h-none, html[data-theme="midnight"] .hc { } html[data-theme="midnight"] .h-none { background: #252A33; }
.heat-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend .hc { width: 12px; height: 12px; border-radius: 3px; }
.att-grid > .tile:first-child, .rec-dash > .tile:first-child { grid-column: auto; }
.star-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .star-row a { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px #3BA776; }
/* recruitment */
.funnel { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.f-top { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; } .f-top b { font-variant-numeric: tabular-nums; } .f-top em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.f-bar { height: 12px; background: var(--surface-2, #F1F2F5); border-radius: 6px; margin-top: 5px; overflow: hidden; } .f-bar i { display: block; height: 100%; border-radius: 6px; background: var(--orange); }
.funnel li:nth-child(n+2) .f-bar i { opacity: .88; } .funnel li:nth-child(n+3) .f-bar i { opacity: .76; } .funnel li:nth-child(n+4) .f-bar i { opacity: .64; } .funnel li:last-child .f-bar i { opacity: 1; background: #2E9E6A; }
.iv-when { margin-left: auto; text-align: right; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); } .iv-when b { color: var(--ink); font-size: 13.5px; }
.role-glance { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 12px; }
.role-glance li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 28px; gap: 12px; align-items: center; }
.role-glance a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; min-width: 0; } .role-glance a strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-glance b { text-align: right; font-variant-numeric: tabular-nums; }
.rg-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--surface-2, #F1F2F5); }
.rg-applied { background: #C9CED8; } .rg-screening { background: #9DB7E8; } .rg-interview { background: var(--orange); } .rg-offer { background: #2E9E6A; }
.legend .rg-applied, .legend .rg-screening, .legend .rg-interview, .legend .rg-offer { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
/* recruitment when nothing is open */
.nh-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 28px; margin: 0 0 16px; border-radius: var(--r-lg); border: 1px solid var(--accent-line, #F9D2B6); background: linear-gradient(120deg, var(--accent-wash, #FFF4EC), var(--surface) 70%); }
.nh-art svg { width: 100%; height: auto; }
.nh-copy h2 { font-size: 22px; margin: 0 0 6px; } .nh-copy p { margin: 0 0 16px; max-width: 60ch; color: var(--muted); line-height: 1.55; }
.nh-grid > .nh-how { grid-column: 1 / -1; }
.nh-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nh-steps li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2, #F7F8FA); }
.nh-steps .muted { font-size: 13px; line-height: 1.45; }
.nh-n { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-bottom: 6px; }
.nh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .nh-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .nh-stats b { font-size: 22px; overflow-wrap: anywhere; } .nh-stats span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .nh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nh-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; } .nh-art { width: 150px; } .nh-steps { grid-template-columns: minmax(0, 1fr); } .nh-stats b { font-size: 18px; } }
.star-row a { text-decoration: none; }

/* sign-in preview cards: shrink to fit short screens instead of disappearing */
@media (min-width: 901px) and (max-height: 860px) { .sc-stage { zoom: .86; } }
@media (min-width: 901px) and (max-height: 760px) { .sc-stage { zoom: .74; } .sc-copy p { display: none; } }
@media (min-width: 901px) and (max-height: 660px) { .sc-stage { zoom: .62; } .sc-trust { display: none; } }
@media (min-width: 901px) and (max-height: 560px) { .sc-stage { zoom: .5; } }

/* ---------- Layouts: Split view and Spaces + Copilot (per person, wide screens only) ---------- */
.lyp { height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.06); display: grid; background: #EEF0F4; }
.lyp em, .lyp u { display: block; height: 8px; border-radius: 3px; background: #fff; }
.lyp em:first-child { width: 60%; background: var(--orange); }
.lyp i { background: #16181D; display: block; }
.lyp b { display: grid; gap: 5px; padding: 8px; align-content: start; }
.lyp s { display: grid; gap: 4px; padding: 6px 5px; align-content: start; background: #fff; border-right: 1px solid #E3E5EA; }
.lyp s u { height: 7px; background: #E3E5EA; } .lyp s u:first-child { background: var(--orange-wash, #FFE3D0); box-shadow: inset 2px 0 var(--orange); }
.lyp-classic { grid-template-columns: 26% 1fr; }
.lyp-split { grid-template-columns: 9% 30% 1fr; }
.lyp-spaces { grid-template-columns: 1fr 30%; grid-template-rows: 12px 1fr; }
.lyp-spaces q { grid-column: 1 / -1; background: #fff; border-bottom: 1px solid #E3E5EA; position: relative; } .lyp-spaces q:after { content: ""; position: absolute; left: 8px; top: 3px; width: 26px; height: 5px; border-radius: 3px; background: #16181D; }
.lyp-spaces s { border-right: 0; border-left: 1px solid #E3E5EA; }
.lpane, .copilot, .sb-wrap { display: none; }

@media (min-width: 861px) {
  /* Split view: icon dock · list · detail */
  .shell.lay-split { grid-template-columns: 72px minmax(0, 1fr); }
  .shell.lay-split.has-lp { grid-template-columns: 72px 330px minmax(0, 1fr); }
  .lay-split .rail-toggle { display: none; }
  .lpane { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; min-width: 0; background: var(--surface); border-right: 1px solid var(--line); }
  .lp-head { display: flex; align-items: baseline; gap: 8px; padding: 18px 18px 10px; }
  .lp-head h2 { font-size: 19px; font-weight: 700; } .lp-head span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
  .lp-q { margin: 0 14px 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--ink); }
  .lp-items { flex: 1; overflow-y: auto; padding-bottom: 8px; }
  .lp-grp { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 12px 18px 5px; }
  .lp-it { display: flex; gap: 11px; align-items: center; padding: 10px 18px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
  .lp-grp + .lp-it { border-top: 0; }
  .lp-it:hover { background: var(--hover); }
  .lp-it.on { background: var(--orange-wash, #FFF1E8); box-shadow: inset 3px 0 0 var(--orange); }
  html[data-theme="midnight"] .lp-it.on { background: rgba(242, 111, 33, 0.12); }
  .lp-it.sub { padding-left: 34px; }
  .lp-it .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .lp-it b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lp-it.unread b:before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }
  .lp-it em { font-style: normal; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lp-it .e { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .lp-n { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); font-size: 12px; font-weight: 700; }
  .lp-n .ico { width: 16px; height: 16px; } .lp-n.new { background: var(--orange-wash, #FFF1E8); color: var(--orange); }
  .lp-empty { padding: 16px 18px; color: var(--muted); font-size: 13.5px; }
  .lp-keys { margin: 0; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .lp-keys kbd { font-family: inherit; font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; margin-right: 3px; background: var(--canvas); }

  /* Spaces + Copilot: spaces across the top, tabs under them, helper on the right */
  .shell.lay-spaces { grid-template-columns: minmax(0, 1fr); }
  .lay-spaces .rail, .lay-spaces .topbar { display: none; }
  .sb-wrap { display: block; position: sticky; top: 0; z-index: 25; background: var(--surface); border-bottom: 1px solid var(--line); }
  .sbar { height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 24px; }
  .sb-brand img { height: 22px; width: auto; display: block; }
  html[data-theme="midnight"] .sb-brand img { filter: brightness(0) invert(1); }
  .sb-spaces { display: flex; gap: 4px; }
  .sb-spaces a { display: flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; }
  .sb-spaces a:hover { color: var(--ink); background: var(--hover); }
  .sb-spaces a[aria-current="page"] { background: var(--ink); color: var(--surface); }
  .sb-spaces .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
  .sb-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .sb-tools .cmd { width: 260px; }
  .sb-acct { position: relative; } .sb-acct summary { list-style: none; cursor: pointer; } .sb-acct summary::-webkit-details-marker { display: none; }
  .sb-menu { position: absolute; right: 0; top: 44px; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.35); display: grid; gap: 2px; }
  .sb-who { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; } .sb-who span { font-size: 12.5px; color: var(--muted); }
  .sb-menu a, .sb-menu .signout { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; font-weight: 500; }
  .sb-menu a:hover, .sb-menu .signout:hover { background: var(--hover); color: var(--ink); }
  .sb-sub { display: flex; gap: 22px; padding: 0 24px; height: 42px; align-items: stretch; border-top: 1px solid var(--line); }
  .sb-sub a { display: flex; align-items: center; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; }
  .sb-sub a:hover { color: var(--ink); }
  .sb-sub a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--orange); }
  .sp-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .sp-body > .content { min-width: 0; }
  .copilot { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); padding: 18px 18px 72px; }
  .has-sub ~ .sp-body .copilot { top: 104px; height: calc(100vh - 104px); }
  .cp-hd { display: flex; align-items: center; gap: 8px; } .cp-hd strong { font-size: 15px; } .cp-hd span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }
  .cp-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-wash, #FFF1E8); color: var(--orange); } .cp-ic .ico { width: 16px; height: 16px; }
  .cp-list { display: grid; gap: 10px; }
  .cp-it { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
  .cp-it b { display: block; font-size: 13.5px; } .cp-it p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
  .cp-it .btn-row { margin-top: 10px; gap: 6px; }
  .cp-it.hot { border-color: color-mix(in srgb, var(--orange) 35%, var(--line)); background: color-mix(in srgb, var(--orange) 5%, var(--surface)); }
  .cp-it.calm { background: var(--canvas); }
  .cp-ask { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
  .cp-ask .ai-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  .cp-ask .ai-form { display: flex; gap: 6px; margin: 0; } .cp-ask .ai-form .input { flex: 1; min-width: 0; width: auto; } .cp-ask .ai-form .btn { flex: none; }
  .cp-ans { max-height: 260px; overflow-y: auto; font-size: 13px; }
}
@media (min-width: 861px) and (max-width: 1240px) {
  .shell.lay-split.has-lp { grid-template-columns: 72px 280px minmax(0, 1fr); }
  .sp-body { grid-template-columns: minmax(0, 1fr) 290px; }
  .sb-tools .cmd { width: 44px; } .sb-tools .cmd span, .sb-tools .cmd kbd { display: none; }
  .sb-spaces a { padding: 7px 10px; }
}

/* Leave request detail: team strip */
.lcal { display: grid; grid-template-columns: 150px repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: center; font-size: 12.5px; overflow-x: auto; }
.lcal .lh { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; }
.lcal .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcal i { display: block; height: 20px; border-radius: 5px; background: var(--hover); }
.lcal i.away { background: var(--ink-2); }
.lcal i.pend { background: repeating-linear-gradient(45deg, var(--muted) 0 3px, transparent 3px 7px); }
.lcal i.this { background: repeating-linear-gradient(45deg, var(--orange) 0 4px, color-mix(in srgb, var(--orange) 35%, transparent) 4px 8px); }
@media (max-width: 720px) { .lcal { grid-template-columns: 100px repeat(var(--n), 26px); } }

/* ---- Sign-in on phones and tablets: show the product cards under the form ---- */
@media (max-width: 960px) {
  .entry.premium { height: auto; min-height: 100dvh; overflow: visible; grid-template-rows: auto auto; }
  .entry.premium .entry-main { height: auto; overflow: visible; padding-bottom: 8px; }
  .showcase { display: flex; height: auto; margin: 8px 12px 12px; padding: 20px 18px 16px; gap: 14px; border-radius: 20px; }
  .showcase .sc-head, .showcase .sc-copy p, .showcase .sc-foot { display: none; }
  .showcase .sc-copy h2 { font-size: 19px; line-height: 1.2; }
  .sc-stage { flex: none; height: 300px; min-height: 0; }
  .sc-run { width: 84%; padding: 14px 16px; }
  .sc-title { font-size: 15px; margin: 8px 0 10px; }
  .sc-figs div { padding: 8px 10px; } .sc-figs b { font-size: 14px; }
  .sc-steps { margin: 10px 0; } .sc-btn { padding: 8px; font-size: 13px; }
  .sc-leave { width: 82%; top: auto; bottom: 0; right: 0; padding: 10px 12px; font-size: 12.5px; }
  .sc-kpi { display: none; }
  .sc-trust span { font-size: 11.5px; padding: 4px 9px; }
}
@media (min-width: 600px) and (max-width: 960px) { .sc-stage { height: 280px; } .sc-run { width: 60%; } .sc-leave { width: 46%; bottom: 24px; } .sc-kpi { display: flex; left: auto; right: 4%; top: 0; bottom: auto; width: 170px; } }
@media (max-width: 599px) {
  .entry.premium { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; grid-template-rows: 1fr; }
  .entry.premium .entry-main { height: 100%; overflow: hidden; }
  .showcase { display: none; }
}
.org-node.suggested { border-style: dashed; background: var(--canvas); }
.org ul ul li.sug::after { border-top-style: dashed; }
.org-sug { font-style: normal; font-size: 11.5px; color: var(--amber); }
.org-loose { display: flex; flex-wrap: wrap; gap: 10px; }
.org-loose .org-node { gap: 10px; } .org-loose .org-node .btn { margin-left: 8px; }
html[data-theme="midnight"] .org-node { background: var(--surface); }

/* ---------- Workforce Intelligence ---------- */
.wi.tile { margin-bottom: 16px; }
.wi-basis { margin-left: auto; font-size: 12.5px; }
.wi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.wi-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); }
.wi-tile .wi-l { font-size: 12px; color: var(--muted); }
.wi-tile strong { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wi-tile strong small { font-size: 13px; color: var(--muted); font-weight: 500; }
.wi-tile .wi-s { font-size: 12px; color: var(--muted); }
.wi-spark { display: block; margin-top: 6px; overflow: visible; }
td .wi-spark { display: inline-block; vertical-align: middle; margin: 0; width: 72px; height: 22px; }
.wi-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.5; }
.wi-quote { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--canvas); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.wi-quote span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.wi-empty { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 13.5px; display: grid; gap: 2px; }
.wi-empty span { color: var(--muted); }
.wi-foot { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.wi-note { margin: 8px 0 0; font-size: 12.5px; color: var(--amber); }
.wi-warn { color: var(--amber); font-weight: 600; }
.wi-up { color: var(--green); font-weight: 650; } .wi-down { color: var(--red); font-weight: 650; }
.wi-appraisal { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; background: var(--canvas); }
.wi-appraisal .wi-ah { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; }
.wi-appraisal .wi-ah .ico { width: 16px; height: 16px; color: var(--orange); }
.wi-appraisal .wi-ah span { margin-left: auto; font-size: 12px; color: var(--muted); }
.wi-appraisal .wi-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 10px; }
.wi-appraisal .wi-tile strong { font-size: 17px; }
.wi-succ { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.wi-role { padding: 14px 16px; }
.wi-rh { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.wi-rh div, .wi-bench li > div { display: flex; flex-direction: column; min-width: 0; }
.wi-bench { list-style: none; margin: 0; padding: 0; }
.wi-bench li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wi-bench li:last-child { border-bottom: 0; padding-bottom: 0; }
.wi-bench a { text-decoration: none; color: var(--ink); }
.wi-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wi-chips span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--ink-2); }
.wi-chips span.muted { border: 0; padding: 0; }

.brand-preview .btn, .brand-preview .tag { pointer-events: none; cursor: default; }

/* ---- Notifications on phones and tablets: a full-width sheet under the top bar, nothing cut off ---- */
.notes li a { overflow-wrap: anywhere; line-height: 1.45; }
.notes li span { display: flex; align-items: center; gap: 6px; }
@media (max-width: 860px) {
  .notes { position: fixed; left: 10px; right: 10px; top: 66px; width: auto; max-width: 520px; margin-left: auto; z-index: 60; display: flex; flex-direction: column; max-height: calc(100dvh - 66px - 92px); border-radius: 14px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45); }
  .notes-head { flex: none; padding: 14px 16px; }
  .notes ul { max-height: none; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px; }
  .notes li { padding: 12px 12px; border-bottom: 1px solid var(--line); border-radius: 10px; }
  .notes li:last-child { border-bottom: 0; }
  .notes li a { font-size: 14.5px; display: block; }
  .notes li span { font-size: 12.5px; margin-top: 2px; }
}
html[data-theme="midnight"] .notes { background: var(--surface); }

/* ---- notification clear + history ---- */
.notes-head .notes-acts { display: flex; gap: 6px; }
.note-it { position: relative; padding-right: 38px !important; transition: transform .2s ease, opacity .2s ease; touch-action: pan-y; }
.note-it.gone { transform: translateX(-110%); opacity: 0; }
.note-x { position: absolute; right: 6px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.note-x:hover, .note-x:focus-visible { background: var(--hover); color: var(--ink); }
.notes-all { display: block; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); }
.notes-tip { display: none; margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 860px) { .notes-tip { display: block; } .notes-all { flex: none; } }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips-row .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chips-row .chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chips-row .chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); } .chips-row .chip.on span { color: inherit; opacity: .7; }
.note-history .row { align-items: flex-start; }
.note-history .nh-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.note-history .unread .nh-dot { background: var(--orange); }
.note-history .unread .title { font-weight: 650; }
.note-history .cleared .title { color: var(--muted); }
.note-history .title { text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }

/* ---- two-step sign-in ---- */
.tsc-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.tsc-steps li { line-height: 1.5; }
.tsc-qr { margin: 10px 0 6px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: max-content; }
.tsc-qr svg { display: block; width: 200px; height: 200px; }
.tsc-key { font-size: 12.5px; word-break: break-all; background: var(--hover); padding: 2px 6px; border-radius: 6px; }
.tsc-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.tsc-codes code { font-size: 15px; letter-spacing: .04em; text-align: center; padding: 9px 6px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--canvas); }
@media (max-width: 420px) { .tsc-qr svg { width: 180px; height: 180px; } }

/* ---------- Inbox (a page, never an overlay) ---------- */
.ibx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.ibx-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.ibx-tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); }
.ibx-tabs button span { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--orange); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.ibx-group h3 { font-size: 12.5px; color: var(--muted); font-weight: 650; margin: 14px 0 8px; }
.ibx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ibx-item { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; position: relative; }
.ibx-item.unread { border-color: color-mix(in srgb, var(--orange) 35%, var(--line)); }
.ibx-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-wash, #FFF1E8); color: var(--orange); flex: none; } .ibx-ic .ico { width: 18px; height: 18px; }
.ibx-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; } .ibx-item.unread .ibx-dot { background: var(--orange); }
.ibx-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ibx-b a { text-decoration: none; color: var(--ink); } .ibx-b strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; } .ibx-item.unread strong { font-weight: 700; }
.ibx-k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ibx-s { font-size: 12.5px; color: var(--muted); }
.ibx-a { flex: none; gap: 6px; }
.ibx-item .note-x { position: static; flex: none; }
.ibx-tip { margin-top: 12px; }
@media (max-width: 700px) { .ibx-item { flex-wrap: wrap; } .ibx-a { width: 100%; padding-left: 48px; } }

/* ---------- Premium employee home ---------- */
.ek-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.ek { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.ek:hover { border-color: var(--line-2); }
.ek-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; } .ek-ic .ico { width: 20px; height: 20px; }
.k-red .ek-ic { background: #E5484D; } .k-blue .ek-ic { background: #3E7BFA; } .k-purple .ek-ic { background: #8B5CF6; } .k-green .ek-ic { background: #22A06B; } .k-orange .ek-ic { background: var(--orange); }
.ek-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ek-l { font-size: 12px; color: var(--muted); } .ek-b strong { font-size: 16px; letter-spacing: -0.01em; } .ek-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-bar { display: block; height: 5px; border-radius: 3px; background: var(--hover); overflow: hidden; margin: 2px 0; } .ek-bar i { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.k-blue .ek-bar i { background: #3E7BFA; } .k-green .ek-bar i { background: #22A06B; } .k-red .ek-bar i { background: #E5484D; }
.eh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.eh-grid .tile { margin: 0; }
.wi-callout { border: 1px solid color-mix(in srgb, #3E7BFA 30%, var(--line)); background: color-mix(in srgb, #3E7BFA 6%, var(--surface)); border-radius: 12px; padding: 12px 14px; display: grid; gap: 3px; font-size: 13.5px; margin-bottom: 12px; }
.wi-callout span { color: var(--muted); } .wi-callout.sm { font-size: 13px; }
.wi-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wi-pills span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--muted); }
.wi-pills span i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.wi-pills span.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); } .wi-pills .ico { width: 13px; height: 13px; }
.cl-item { display: flex; gap: 12px; align-items: center; padding: 6px 0; } .cl-item > div { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ql-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ql-grid .btn { justify-content: center; }
.pc-row { display: flex; gap: 14px; align-items: center; } .pc-row .ring { flex: none; color: var(--ink); }
@media (max-width: 1180px) { .ek-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eh-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .ek-row { grid-template-columns: 1fr 1fr; } .eh-grid { grid-template-columns: 1fr; } .ek-row .ek:last-child { grid-column: 1 / -1; } }

/* ---------- Workforce Intelligence tab ---------- */
.wi-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.wi-side { display: grid; gap: 16px; align-content: start; } .wi-side .tile, .wi-main { margin: 0; }
.wi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.wi-two h3 { font-size: 13.5px; margin: 0 0 8px; }
.wi-sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wi-sig li { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; font-size: 13.5px; } .wi-sig li .ico { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; } .wi-sig li.ok .ico { color: var(--green); }
.wi-sig li em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--muted); }
.wi-next { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
@media (max-width: 900px) { .wi-grid, .wi-two { grid-template-columns: 1fr; } }

/* Long words or pasted strings with no spaces (names, titles, announcements) wrap instead of widening the page.
   On phones a wider page zooms out and pushes the header and menu off screen. */
html, body { max-width: 100%; overflow-x: clip; }
#main, .dialog, .toast, .notes, .ibx-item, .tile, .row, .name-row, .org-node { overflow-wrap: anywhere; word-break: break-word; }
.ibx-b, .ibx-item > *, .row .body, .name-row, .name-row > *, .tile-head > *, .wi-tile, .kpi, .grid > *, .cards > * { min-width: 0; }
.org-node { max-width: 100%; }
.ibx-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }

/* Sign in / sign up, two-screen flow */
.entry2 .entry-main { position: relative; }
.entry-help { position: absolute; top: 24px; right: 28px; background: none; border: 0; padding: 6px 2px; font: 600 13.5px/1.3 inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.entry-help span { color: var(--orange-hover, #D85A10); }
.entry-help:hover span { text-decoration: underline; }
.entry-help:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.entry2 .ec2 h1 { font-size: 34px; letter-spacing: -0.035em; margin-bottom: 8px; }
.entry2 .ec2 .entry-lead { font-size: 15px; margin-bottom: 28px; }
.entry2 .ec2 .entry-lead .link, .entry-switch .link { font-size: inherit; }
.entry2 .ec2 .form { gap: 14px; }
.entry2 .ec2 input:not([type="hidden"]) { min-height: 48px; font-size: 15px; }
.ec-end { display: flex; justify-content: flex-end; margin-top: -4px; }
.entry-switch { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.help-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; line-height: 1.5; }
@media (max-width: 860px) { .entry-help { top: 14px; right: 16px; } .entry2 .entry-main { padding-top: 64px; } .entry2 .ec2 h1 { font-size: 28px; } }
@media (max-width: 520px) { .entry2 .grid-2 { grid-template-columns: 1fr; } }

/* Sign-up steps */
.su .entry-main { align-items: center; }
.su-col { width: min(460px, 100%); }
.su .ec2.su-wide { width: 100%; }
.su-side { margin: 12px; border-radius: 22px; background: #1F1F1F; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 52px 48px; position: relative; overflow: hidden; }
.su-side::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242,111,33,.35), rgba(242,111,33,0) 70%); pointer-events: none; }
.su-copy h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; max-width: 13ch; color: #fff; }
.su-copy p { font-size: 17px; color: rgba(255,255,255,.72); margin: 0; max-width: 34ch; }
.su-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.su-ring { width: 128px; height: 128px; }
.su-ring circle { fill: none; stroke-width: 9; }
.su-ring-bg { stroke: rgba(255,255,255,.16); }
.su-ring-fg { stroke: #F26F21; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .5s ease; }
.su-ring text { fill: #fff; font: 700 22px "Hanken Grotesk", system-ui, sans-serif; }
.su-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font: 600 16px inherit; font-family: inherit; cursor: pointer; padding: 8px 4px; }
.su-back .ico { width: 20px; height: 20px; color: #F26F21; }
.su-back:hover span { text-decoration: underline; }
.su-back:focus-visible { outline: 2px solid #F26F21; outline-offset: 3px; border-radius: 6px; }
.su-mobile { display: none; }
.su-choices { display: grid; gap: 14px; }
.su-choice { display: flex; gap: 16px; align-items: center; text-align: left; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.su-choice:hover, .su-choice:focus-visible { border-color: #F26F21; box-shadow: 0 0 0 3px rgba(242,111,33,.14); outline: none; }
.su-choice strong { display: block; font-size: 17px; margin-bottom: 4px; }
.su-choice span span { color: var(--muted); font-size: 14px; }
.su-ic { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #FFF1E8; color: #D85A10; }
.su-ic .ico { width: 26px; height: 26px; }
.su-interests { border: 0; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.su-interests legend { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; padding: 0; }
.su-check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; padding: 4px 0; }
.su-check input { width: 18px; height: 18px; min-height: 0 !important; accent-color: #F26F21; }
.su-share { display: grid; gap: 10px; }
.su-done { text-align: center; }
.su-done .entry-logo { margin-left: auto; margin-right: auto; }
.su-done .entry-lead { margin-left: auto; margin-right: auto; max-width: 38ch; }
.su-big-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: #FFF1E8; color: #D85A10; }
.su-big-ic .ico { width: 36px; height: 36px; }
.su-big-ic.ok { background: #E7F6EE; color: #157A4A; }
.su-big-ic.bad { background: #FDECEC; color: #B42318; }
.su-wait { background: #EEF0F3; animation: su-pulse 1.2s ease-in-out infinite; }
@keyframes su-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .su-wait { animation: none; } .su-ring-fg { transition: none; } }
.form-err.ok { color: #157A4A; }
@media (max-width: 860px) {
  .su-side { display: none; }
  .su-mobile { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .su-mobile i { flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #F26F21 var(--p), #EEF0F3 var(--p)); }
}
@media (max-width: 520px) { .su-interests { grid-template-columns: 1fr; } }
/* Phones: "Get help" sits in the page flow above the form so it never covers the step bar or Back. */
@media (max-width: 860px) {
  .entry2 .entry-main { flex-direction: column; align-items: center; padding-top: 16px; }
  .entry2 .entry-help { position: static; align-self: flex-end; margin: 0 0 12px; }
}
/* Tall forms scroll inside the form column instead of being cut off at the top. */
.entry2 .entry-main { overflow-y: auto; align-items: flex-start; }
.entry2 .entry-main > .su-col, .entry2 .entry-main > .entry-card { margin-block: auto; }
.acct-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #EEF0F3; color: var(--muted); white-space: nowrap; }
.acct-chip.active { background: #E7F6EE; color: #157A4A; }
.acct-chip.invited { background: #FFF4E5; color: #9A5B00; }
.acct-chip.none { background: #FFF1E8; color: #B5470C; }
/* =====================================================================
   Membra editorial layer
   A ledger, not a dashboard kit: stone paper with a faint grain, one ink, one orange.
   Serif (Fraunces) carries headings and the numbers people act on; DM Sans does the work.
   One level of containment only: panels hold rows and rules, never boxes inside boxes.
   ===================================================================== */
:root, html[data-theme="classic"], html[data-theme="daylight"] {
  --font: "Inter", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Inter", -apple-system, sans-serif;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B;
  --canvas: #F8FAFC; --surface: #FFFFFF; --hover: #F1F5F9;
  --line: #E2E8F0; --line-2: #CBD5E1;
  --rail: #0F172A; --rail-ink: #CBD5E1; --rail-muted: #64748B; --rail-hover: #1E293B;
  --brand: #0F172A; --accent: #0D9488;
  --orange: #F26F21; --orange-hover: #DB5F14;
  --accent-wash: #F0FDFA; --accent-line: #CCFBF1; --accent-ink: #0D9488; --orange-wash: #FFF1E8;
  --green: #059669; --green-wash: #ECFDF5; --amber: #D97706; --amber-wash: #FFFBEB; --red: #DC2626; --red-wash: #FEF2F2;
  --radius: 8px;
  --grain: none;
}
html[data-theme="midnight"] { --font: "Inter", system-ui, sans-serif; --serif: "Inter", sans-serif; --canvas: #0B0F19; --surface: #0F172A; --line: #1E293B; --line-2: #334155; --radius: 8px;
  --grain: none; }

body { font-family: var(--font); font-feature-settings: "tnum" 1, "ss01" 1; background: var(--canvas); letter-spacing: -0.003em; }
html[data-theme="midnight"] body { background: var(--canvas); }
.num, td.num, .kpi-value, .ek strong, strong.n { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
h1, .head h1, .hello h1, .record-head h1, .entry-card h1, .su-copy h2, .ed-side h2 { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; }
.head h1 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; }
.head p, .head .lead { font-size: 14.5px; color: var(--muted); max-width: 62ch; }
h2, .tile-head h2, .section-head h2 { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
.tile-head h2, .section-head h2 { font-size: 15px; }

/* ---------- chrome: rail and top bar ---------- */
.rail { background: #0F172A !important; border-right: 1px solid #1E293B !important; }
html[data-theme="daylight"] .rail { background: var(--surface) var(--grain) !important; border-right: 1px solid var(--line) !important; }
.rail .nav a[aria-current="page"], .nav a[aria-current="page"] { background: transparent !important; box-shadow: inset 2px 0 0 var(--orange) !important; border-radius: 0 !important; font-weight: 600; }
.rail .nav a { border-radius: 0 !important; }
.nav-group { letter-spacing: 0 !important; text-transform: none !important; font-size: 12px !important; }
.topbar { background: color-mix(in srgb, var(--canvas) 88%, transparent) !important; backdrop-filter: blur(6px); border-bottom: 1px solid var(--line) !important; }
.topbar .cmd { border-radius: var(--radius); background: var(--surface); }
.topbar .cmd kbd { font-family: var(--font); }

/* ---------- surfaces: one level, no soft shadows ---------- */
.tile, .card, .list, .table-wrap, .briefing, .dialog, .kcard, .lcard, .pcard, .needs, .command, .ek-row { border-radius: var(--radius) !important; box-shadow: none !important; }
.tile { border: 1px solid var(--line); padding: 24px 26px; }
.dialog { border: 1px solid var(--line-2) !important; }
.btn { border-radius: var(--radius); font-weight: 600; }
.btn:not(.primary):not(.quiet) { border-color: var(--ink); background: transparent; }
.btn:not(.primary):not(.quiet):hover { background: var(--ink); color: var(--surface); }
html[data-theme="midnight"] .btn:not(.primary):not(.quiet) { border-color: var(--line-2); }
.btn.primary { color: #1F1F1F; }
input, select, textarea { border-radius: var(--radius) !important; }
.chip, .acct-chip, .count { border-radius: 2px !important; }

/* Section icons sitting before headings go: the heading is the signpost. */
.tile-head > svg.ico, .tile-head > .ico, .section-head > svg.ico, .brief-head > svg.ico { display: none; }
.tile-head { gap: 12px; align-items: baseline; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tile-head a { white-space: nowrap; }
.wi-quote { background: none !important; border-left: 2px solid var(--ink) !important; border-radius: 0 !important; padding: 2px 0 2px 14px !important; font-family: var(--serif); font-size: 17px !important; font-style: italic; }
.wi-quote span { font-family: var(--font); font-style: normal; }
.tile .bar i, .meter .bar i { background: var(--ink); border-radius: 0 !important; }
.tile .bar, .meter .bar { border-radius: 0 !important; }
.tile-head a, .section-head a { font-weight: 600; font-size: 13px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------- dashboards: asymmetric grids ---------- */
.cards { gap: 0 !important; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: 1.45fr 1fr 1fr !important; }
.cards > .tile, .cards > section { border: 0 !important; border-radius: 0 !important; margin: 0; box-shadow: none; outline: 1px solid var(--line); }
.eh-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; margin-bottom: 16px !important; background: transparent !important; border: 0 !important; }
.eh-grid > .tile { border: 1px solid #E2E8F0 !important; border-radius: 8px !important; outline: none !important; margin: 0 !important; }
@media (max-width: 1100px) { .cards, .eh-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 720px) { .cards, .eh-grid { grid-template-columns: 1fr !important; } }

/* Greeting: set on the page, not in a box. */
.hello { background: none !important; border: 0 !important; padding: 8px 0 28px !important; border-bottom: 1px solid var(--ink) !important; border-radius: 0 !important; margin-bottom: 28px; align-items: flex-end; }
.hello h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1; margin-bottom: 12px; }
.hello p { font-size: 15px; color: var(--muted); }
.hello.has-img { min-height: 0; padding-right: 0 !important; }
.hello.has-img::before, .hello.has-img::after { display: none !important; }
.hello .hello-img, .hello.has-img img { border-radius: 2px; filter: grayscale(.15) contrast(1.02); }

/* KPI strips: uniform grid with standardized metric typography */
.command { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0 !important; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.command.four { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.command .kpi { border: 0 !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; padding: 16px 20px !important; box-shadow: none !important; }
.command .kpi:first-child { border-left: 0 !important; }
.command .kpi::before, .command .kpi::after { display: none !important; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: var(--font) !important; font-weight: 600 !important; font-size: 24px !important; letter-spacing: -0.02em; line-height: 1.2 !important; white-space: nowrap !important; font-variant-numeric: tabular-nums !important; }
.command .kpi:first-child .kpi-value { font-size: 18px !important; font-weight: 600 !important; line-height: 1.25 !important; }
.command .kpi.warn .kpi-value { color: var(--accent-ink); }
@media (max-width: 1100px) { .command, .command.four { grid-template-columns: 1fr 1fr !important; } .command .kpi { border-top: 1px solid var(--line) !important; } .command .kpi:first-child { grid-column: auto !important; border-top: 0 !important; } .command .kpi:nth-child(2n+1) { border-left: 0 !important; } }

/* Employee figures: same band, uniform typography */
.ek-row { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0 !important; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.ek-row .ek { border: 0 !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; padding: 16px 20px !important; box-shadow: none !important; }
.ek-row .ek:first-child { border-left: 0 !important; }
.ek-ic { display: none !important; }
.ek strong { font-family: var(--font) !important; font-weight: 600 !important; font-size: 18px !important; letter-spacing: -0.01em; line-height: 1.25 !important; font-variant-numeric: tabular-nums !important; }
.ek-bar, .ek-bar i { border-radius: 0 !important; }
.ek-bar i { background: var(--ink) !important; }
.ek-row .ek:first-child .ek-bar i { background: var(--orange) !important; }
@media (max-width: 1100px) { .ek-row { grid-template-columns: 1fr 1fr; } .ek-row .ek { border-top: 1px solid var(--line) !important; } .ek-row .ek:first-child { grid-column: 1 / -1; border-top: 0 !important; } .ek-row .ek:nth-child(2n) { border-left: 0 !important; } }

/* Nothing boxed inside a panel: inner groups become ruled rows. */
.tile .kv4, .tile .stat-grid, .tile .kt-row { gap: 0 !important; }
.tile .kv4 > *, .tile .stat, .tile .kt-row > *, .tile .wi-tile, .tile .dl, .tile .run-figs, .tile .wi-callout, .wi .wi-tile, .tile .checks-box, .tile .outline {
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.tile .kv4 > *, .tile .kt-row > * { border-top: 1px solid var(--line) !important; padding: 12px 0 !important; }
.tile .kv4 > * strong, .tile .stat strong { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.tile .dl { padding: 0 !important; }
.tile .dl dt, .tile .dl dd { padding-left: 0 !important; padding-right: 0 !important; }
.wi-tiles { gap: 0 !important; }
.wi .wi-tile { padding: 4px 24px 4px 0 !important; }
.wi .wi-tile + .wi-tile { border-left: 1px solid var(--line) !important; padding-left: 20px !important; }
.wi .wi-tile strong { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.tile .wi-callout { border-left: 3px solid #0D9488 !important; background: #F8FAFC !important; padding: 10px 12px !important; border-radius: 0 6px 6px 0 !important; }

/* Set-up checklist: a list, not a wall of pills. */
.onboard { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; }
.onboard li { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; }

/* Needs-attention queue: counts as serif numerals, not tinted squares. */
.q-count { background: none !important; border: 0 !important; font-family: var(--serif); font-size: 26px !important; font-weight: 400; color: var(--ink) !important; width: auto !important; min-width: 34px; border-radius: 0 !important; }
.queue li { border-color: var(--line) !important; }

/* Inbox: no icon squares; the kind of item reads as a quiet label. */
.ibx-ic { display: none !important; }
.ibx-item { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; background: none !important; padding-left: 0 !important; }
.ibx-list { border-top: 1px solid var(--line); }
.ibx-tabs button.on { box-shadow: inset 0 -2px 0 var(--ink) !important; }

/* Profiles */
.record-head h1 { font-size: clamp(30px, 3vw, 44px); }
.record-head { border-bottom: 1px solid var(--ink); padding-bottom: 22px !important; background: none !important; border-radius: 0 !important; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--ink) !important; color: var(--ink) !important; }

/* ---------- sign in / sign up ---------- */
.entry2 { background: var(--canvas) var(--grain) !important; }
.entry2 .entry-card h1 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.02; }
.ed-side { margin: 0; border-radius: 0; background: #1F1F1F var(--grain); color: #F1EFE9; display: grid; grid-template-rows: auto 1fr auto; padding: 56px clamp(36px, 5vw, 80px) 44px; min-height: 100%; }
.ed-mark { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: rgba(241,239,233,.6); }
.ed-mark img { filter: brightness(0) invert(1); height: 24px; width: auto; opacity: .92; }
.ed-side h2 { align-self: end; font-size: clamp(40px, 4.6vw, 76px); line-height: .98; color: #F1EFE9; margin: 0 0 34px; max-width: 11ch; }
.ed-side h2 em { font-style: italic; color: var(--orange); }
.ed-ledger { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid rgba(241,239,233,.22); max-width: 520px; }
.ed-ledger li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(241,239,233,.22); font-size: 14.5px; color: rgba(241,239,233,.82); }
.ed-ledger b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: #F1EFE9; line-height: 1.1; }
.ed-foot { font-size: 12.5px; color: rgba(241,239,233,.5); }
.su-side { border-radius: 0 !important; margin: 0 !important; background: #1F1F1F var(--grain) !important; }
.su-side::after, .sc-glow { display: none !important; }
.su-copy h2 { font-weight: 400; }
.su-ring-fg { stroke-linecap: butt !important; }
.su-ring text { font-family: var(--serif) !important; font-weight: 400 !important; }
.su-ic, .su-big-ic { display: none !important; }
.su-choice { border-radius: var(--radius) !important; border-color: var(--line-2) !important; padding: 22px 24px !important; position: relative; }
.su-choice strong { font-family: var(--serif); font-weight: 500; font-size: 22px !important; }
.su-choice::after { content: "→"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink); transition: transform .15s; }
.su-choice:hover::after { transform: translate(4px, -50%); }
.su-choice:hover, .su-choice:focus-visible { border-color: var(--ink) !important; box-shadow: none !important; }
.su-done { text-align: left !important; }
.su-done .entry-logo { margin-left: 0 !important; }
.su-done .entry-lead { margin-left: 0 !important; }
.entry-help span { color: var(--ink) !important; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.entry2 .ec2 input:not([type="hidden"]):not([type="checkbox"]) { background: var(--surface); border-color: var(--line-2); }
.entry-card .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
@media (max-width: 860px) { .ed-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .su-choice::after { transition: none; } }

/* Payroll run: enterprise clean card surface */
.run-hero { background: #FFFFFF !important; background-image: none !important; border: 1px solid #E2E8F0 !important; border-radius: 8px !important; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important; padding: 20px 24px !important; }
.run-hero::before, .run-hero::after { display: none !important; }
.run-figs { background: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; }
.run-figs > * { border-radius: 0 !important; background: none !important; }
.run-figs strong, .run-figs b { font-family: var(--font) !important; font-weight: 600 !important; font-size: 22px !important; font-variant-numeric: tabular-nums !important; }
.run-block { border-radius: 6px !important; border-width: 0 0 0 3px !important; }
.command.four { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.briefing, .nh-hero, .nh-hero.starter { background: var(--surface) !important; background-image: none !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
.briefing::before, .briefing::after, .nh-hero::before, .nh-hero::after { display: none !important; }
.brief-head h2 { font-family: var(--serif); font-weight: 500; }
.stat-grid { gap: 0 !important; background: var(--surface); }
.stat-grid .stat { border: 0 !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important; background: var(--surface) !important; box-shadow: none !important; }
.stat-grid .stat:first-child { border-left: 0 !important; }
.stat-grid .stat strong { font-family: var(--serif); font-weight: 400; }
.pcard .table-wrap.flat { border: 0 !important; border-radius: 0 !important; }
.nh-how li { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; }
.pcard .table-wrap.flat { background: none !important; }
.stat-grid > .tile { border: 0 !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important; }
html[data-theme] .hello, html[data-theme] .hello.has-img { background: none !important; background-image: none !important; box-shadow: none !important; }
html[data-theme="midnight"] .briefing, html[data-theme="midnight"] .run-hero, html[data-theme="midnight"] .nh-hero { background: var(--surface) !important; background-image: none !important; }


/* ==========================================================================
   MEMBRA ENTERPRISE WORKFORCE OS — DESIGN SYSTEM & TYPOGRAPHY OVERHAUL
   Inspired by Stripe, Linear, Rippling, and Airbnb Design Systems.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* Brand Accents & State Colors */
  --orange: #f26f21;
  --orange-hover: #dc5c11;
  --orange-wash: rgba(242, 111, 33, 0.08);
  --orange-subtle: rgba(242, 111, 33, 0.04);
  --orange-glow: rgba(242, 111, 33, 0.22);
  
  /* Typography System */
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-editorial: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Surfaces & Neutral Canvas */
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f1f5f9;
  --hover: #f1f5f9;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;

  /* System Indicators */
  --green: #059669;
  --green-wash: #ecfdf5;
  --green-line: #a7f3d0;
  --amber: #d97706;
  --amber-wash: #fffbeb;
  --amber-line: #fde68a;
  --red: #dc2626;
  --red-wash: #fef2f2;
  --red-line: #fecaca;
  --blue: #2563eb;
  --blue-wash: #eff6ff;
  --blue-line: #bfdbfe;

  /* Elevation & Shadows */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  --focus: 0 0 0 3px var(--orange-glow);
}

/* Tabular Numerics Everywhere for Financial & Operational Accuracy */
.num, .kpi-value, .metric, td.num, td.r, th.r, .run-figs strong, .pc-big strong, .brief-grid p, .total, .salary {
  font-family: var(--font);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  letter-spacing: -0.02em;
}

/* Global Reset & Smooth Font Rendering */
body {
  font-family: var(--font) !important;
  color: var(--ink);
  background-color: var(--canvas) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.011em;
}

/* Headings with Executive Gravitas */
h1, h2, h3, h4, .page-head h1 {
  font-family: var(--font-display) !important;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-head h1 {
  font-size: 28px !important;
  line-height: 1.25 !important;
}

.page-head p {
  color: var(--muted) !important;
  font-size: 14.5px !important;
  max-width: 68ch;
  line-height: 1.6;
}

/* Refined Shell & Navigation Rail (Linear Style) */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) !important;
}

.rail {
  background: #0f172a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 16px 12px !important;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-brand {
  padding: 8px 12px 18px !important;
}

.rail-brand img {
  filter: brightness(0) invert(1) !important;
  height: 26px !important;
  width: auto;
}

.nav-group {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  padding: 14px 12px 6px !important;
}

.nav a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  transition: all 0.15s ease !important;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
  transform: translateX(2px);
}

.nav a[aria-current="page"] {
  background: rgba(242, 111, 33, 0.14) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: inset 3px 0 0 var(--orange) !important;
}

.nav a[aria-current="page"] svg {
  stroke: var(--orange) !important;
}

.nav .count {
  background: rgba(242, 111, 33, 0.2) !important;
  color: #f26f21 !important;
  border: 1px solid rgba(242, 111, 33, 0.3) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 1px 7px !important;
  border-radius: var(--radius-pill) !important;
}

/* Polished Topbar & Command Trigger */
.topbar {
  height: 64px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 0 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
}

.topbar-command-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: min(340px, 40vw);
}

.topbar-command-trigger:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.topbar-command-trigger kbd {
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* Modern Card Surfaces (Goodbye harsh wireframe boxiness!) */
.tile, .card, .pcard, .table-wrap, .briefing, .kpi, .outline, .lcard {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tile:hover, .card:hover {
  box-shadow: var(--shadow-md) !important;
  border-color: var(--line-strong) !important;
}

/* Command Center Executive KPI Cards */
.kpi {
  padding: 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
}

.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.kpi:hover::before {
  background: var(--orange);
}

.kpi-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.kpi-value {
  font-size: 32px !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
  letter-spacing: -0.035em !important;
}

.kpi-sub {
  font-size: 12.5px !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

.trend-up {
  background: var(--green-wash);
  color: var(--green);
  border: 1px solid var(--green-line);
}

.trend-down {
  background: var(--amber-wash);
  color: var(--amber);
  border: 1px solid var(--amber-line);
}

/* Executive Horizon Action Queue */
.horizon-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.action-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.action-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--orange-wash);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}

.action-content h4 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.action-content p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Enterprise Tables (Stripe & Linear Quality) */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

th {
  background: #f8fafc !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid var(--line) !important;
  border-top: 0 !important;
}

th:first-child {
  border-top-left-radius: var(--radius);
}

th:last-child {
  border-top-right-radius: var(--radius);
}

td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
  color: var(--ink-2) !important;
  font-size: 13.5px !important;
  transition: background 0.15s ease !important;
}

tr:last-child td {
  border-bottom: 0 !important;
}

tbody tr:hover td {
  background: rgba(242, 111, 33, 0.02) !important;
}

/* Status Badges */
.badge, .tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 9px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.badge.ok, .tag.ok, .badge.paid, .badge.approved {
  background: var(--green-wash) !important;
  color: var(--green) !important;
  border: 1px solid var(--green-line) !important;
}

.badge.warn, .tag.warn, .badge.pending {
  background: var(--amber-wash) !important;
  color: var(--amber) !important;
  border: 1px solid var(--amber-line) !important;
}

.badge.err, .tag.err, .badge.rejected {
  background: var(--red-wash) !important;
  color: var(--red) !important;
  border: 1px solid var(--red-line) !important;
}

.badge.info, .tag.info {
  background: var(--blue-wash) !important;
  color: var(--blue) !important;
  border: 1px solid var(--blue-line) !important;
}

/* Buttons with Tactile Feedback */
.btn {
  font-family: var(--font) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: 1px solid var(--line-strong) !important;
  background: #ffffff !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-xs) !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:hover {
  background: var(--hover) !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm) !important;
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(242, 111, 33, 0.2), 0 2px 4px rgba(242, 111, 33, 0.15) !important;
}

.btn.primary:hover {
  background: var(--orange-hover) !important;
  border-color: var(--orange-hover) !important;
  box-shadow: 0 3px 8px var(--orange-glow) !important;
}

/* Command Palette Overlay (Linear / Stripe Style) */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
  animation: cmdFadeIn 0.15s ease-out;
}

@keyframes cmdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cmd-palette-card {
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: cmdSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes cmdSlideDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cmd-palette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.cmd-palette-head svg {
  color: var(--muted);
  width: 20px;
  height: 20px;
  flex: none;
}

.cmd-palette-input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.cmd-palette-input::placeholder {
  color: var(--muted-light);
}

.cmd-esc-tag {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.cmd-palette-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;
}

.cmd-item:hover, .cmd-item.selected {
  background: var(--orange-wash);
  color: var(--orange-hover);
}

.cmd-item svg {
  color: var(--muted);
  width: 17px;
  height: 17px;
}

.cmd-item:hover svg, .cmd-item.selected svg {
  color: var(--orange);
}

.cmd-item .cmd-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.cmd-palette-footer {
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.cmd-palette-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cmd-palette-footer kbd {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* Polished Toast Notifications */
.toast {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: var(--shadow-float) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 2000 !important;
  animation: toastPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr !important;
  }
  .rail {
    display: none !important;
  }
}




/* ==========================================================================
   PRINT STYLES FOR DIGITAL PAYSLIP EXPORTS
   ========================================================================== */
@media print {
  body {
    background: #FFFFFF !important;
    color: #0F172A !important;
  }
  body * {
    visibility: hidden !important;
  }
  .scrim, .dialog, .form, #payslip-print-modal, #payslip-print-modal * {
    visibility: visible !important;
  }
  .scrim {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: none !important;
  }
  .dialog {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }
  #payslip-print-modal {
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
  }
  .printable-payslip-card {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .no-print, [data-close], [data-print] {
    display: none !important;
  }
}


/* ==========================================================================
   MEMBRA FRONTIER SUITE — STYLES & VISUAL TOPOLOGY
   1. Multi-Currency Selector
   2. Interactive SVG Org Topology Canvas
   3. Sovereign Compliance Radar
   ========================================================================== */

/* Multi-Currency Dropdown in Topbar */
.currency-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.currency-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.currency-pill-btn:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.currency-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 160px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.currency-dropdown-menu.open {
  display: flex;
  animation: curDropIn 0.12s ease-out;
}

@keyframes curDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.currency-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.currency-opt:hover {
  background: var(--orange-wash);
  color: var(--orange-hover);
}

.currency-opt.active {
  background: var(--orange-wash);
  color: var(--orange-hover);
  font-weight: 700;
}

/* Compliance Radar Grid */
.compliance-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.radar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.radar-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.radar-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.radar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.radar-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.radar-metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}

.radar-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Interactive Org Chart Canvas */
.org-canvas-viewport {
  position: relative;
  width: 100%;
  height: 640px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #fafbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  cursor: grab;
}

.org-canvas-viewport:active {
  cursor: grabbing;
}

.org-canvas-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 2000px;
  height: 1200px;
  transform-origin: 0 0;
  transition: transform 0.05s ease-out;
}

.org-canvas-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  z-index: 10;
}

.org-control-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.1s ease;
}

.org-control-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.org-node-card {
  position: absolute;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.org-node-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.org-node-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex: none;
}

.org-node-info {
  flex: 1;
  min-width: 0;
}

.org-node-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.org-node-role {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 1px;
}

.org-node-dept {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--muted);
  margin-top: 4px;
}

.org-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   MEMBRA ENTERPRISE DESIGN SYSTEM — BATCH 1
   Deep Obsidian Sidebar (#0F172A) + Warm Alabaster Workspace (#F8FAFC)
   ========================================================================== */

/* 1. Root & Color Variables */
:root {
  --canvas: #F8FAFC;
  --surface: #FFFFFF;
  --hover: #F1F5F9;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --rail: #0F172A;
  --rail-ink: #CBD5E1;
  --rail-muted: #64748B;
  --rail-hover: #1E293B;
  --brand: #0F172A;
  --accent: #0D9488;
  --green: #059669;
  --green-wash: #ECFDF5;
  --amber: #D97706;
  --amber-wash: #FFFBEB;
  --red: #DC2626;
  --red-wash: #FEF2F2;
  --font: "Inter", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
}

body {
  background: #F8FAFC !important;
  background-image: none !important;
  color: #0F172A !important;
  font-family: var(--font) !important;
}

/* 2. Deep Obsidian Sidebar (.rail) */
.rail {
  background: #0F172A !important;
  color: #CBD5E1 !important;
  border-right: 1px solid #1E293B !important;
  box-shadow: none !important;
}

.rail-brand {
  border-bottom: 1px solid #1E293B !important;
  padding: 14px 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.rail-brand img {
  filter: brightness(0) invert(1) !important;
  height: 24px !important;
  width: auto !important;
}

.rail-brand span {
  color: #CBD5E1 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

.nav-group {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748B !important;
  padding: 16px 10px 6px !important;
}

.nav a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #CBD5E1 !important;
  padding: 7px 10px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.nav a svg, .nav a .ico {
  color: #64748B !important;
  stroke: #64748B !important;
  transition: all 0.15s ease !important;
}

.nav a:hover {
  background: #1E293B !important;
  color: #FFFFFF !important;
}

.nav a:hover svg, .nav a:hover .ico {
  color: #CBD5E1 !important;
  stroke: #CBD5E1 !important;
}

.nav a[aria-current="page"] {
  background: #1E293B !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: inset 3px 0 0 #0D9488 !important;
}

.nav a[aria-current="page"] svg, .nav a[aria-current="page"] .ico {
  color: #0D9488 !important;
  stroke: #0D9488 !important;
}

.nav .count {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 0 6px !important;
}

.rail-bottom, .rail-foot {
  border-top: 1px solid #1E293B !important;
  color: #CBD5E1 !important;
  background: transparent !important;
}

.rail-bottom a, .rail-bottom button {
  color: #CBD5E1 !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
}

.rail-bottom a:hover, .rail-bottom button:hover {
  background: #1E293B !important;
  color: #FFFFFF !important;
}

.rail-foot strong, .rail-who strong {
  color: #FFFFFF !important;
}

.rail-who {
  color: #94A3B8 !important;
  font-size: 12px !important;
  margin-top: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.rail-toggle {
  color: #64748B !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
}

.rail-toggle:hover {
  color: #FFFFFF !important;
  background: #1E293B !important;
}

/* 3. Workspace Canvas & Layout (.main, .topbar, .content) */
.shell {
  background: #F8FAFC !important;
}

.main {
  background: #F8FAFC !important;
  min-width: 0 !important;
}

.topbar {
  height: 56px !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 0 32px !important;
  box-shadow: none !important;
}

.topbar .cmd {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
  border-radius: 6px !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

.topbar .cmd:hover {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

.topbar .cmd kbd {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #64748B !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

.topbar .theme-btn, .topbar .bell {
  color: #64748B !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  border-radius: 6px !important;
}

.topbar .theme-btn:hover, .topbar .bell:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

.content {
  max-width: 1440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 24px 32px 64px !important;
}

.content > *, .sp-body > .content {
  max-width: 100% !important;
}

/* 4. Executive Header (.hello) */
.hello {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  border-radius: 0 !important;
  padding: 0 0 18px 0 !important;
  margin-bottom: 20px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
  box-shadow: none !important;
}

.hello h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #0F172A !important;
  font-family: var(--font) !important;
}

.hello p {
  font-size: 13.5px !important;
  color: #64748B !important;
  margin-top: 4px !important;
}

.hello .tagline, .hello img {
  display: none !important;
}

.hello.has-img .btn-row {
  margin-right: 0 !important;
}

/* 5. Workforce Command Centre (.command) & Employee KPI Ribbon (.ek-row) */
.command {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.command .kpi {
  padding: 16px 20px !important;
  border: 0 !important;
  border-left: 1px solid #E2E8F0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-decoration: none !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.command .kpi:first-child {
  border-left: 0 !important;
}

.command .kpi-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  text-transform: none !important;
}

.command .kpi-value {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums !important;
  font-family: var(--font) !important;
  letter-spacing: -0.02em !important;
}

.command .kpi-sub {
  font-size: 12px !important;
  color: #64748B !important;
}

@media (max-width: 1024px) {
  .command {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .command .kpi:nth-child(2n+1) {
    border-left: 0 !important;
  }
  .command .kpi {
    border-top: 1px solid #E2E8F0 !important;
  }
  .command .kpi:first-child, .command .kpi:nth-child(2) {
    border-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .command {
    grid-template-columns: 1fr !important;
  }
  .command .kpi {
    border-left: 0 !important;
    border-top: 1px solid #E2E8F0 !important;
  }
  .command .kpi:first-child {
    border-top: 0 !important;
  }
}

/* Employee KPI Ribbon (.ek-row) */
.ek-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ek-row .ek {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 0 !important;
  border-left: 1px solid #E2E8F0 !important;
  padding: 16px 20px !important;
  background: #FFFFFF !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ek-row .ek:first-child {
  border-left: 0 !important;
}

.ek-row .ek-l {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  margin-bottom: 4px !important;
}

.ek-row .ek strong {
  font-family: var(--font) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.02em !important;
}

.ek-row .ek-s {
  font-size: 12px !important;
  color: #64748B !important;
  margin-top: 4px !important;
}

.ek-row .ek-bar {
  height: 4px !important;
  background: #E2E8F0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin: 6px 0 !important;
}

.ek-row .ek-bar i {
  background: #0D9488 !important;
  border-radius: 999px !important;
}

.ek-row .ek-ic {
  display: none !important;
}

@media (max-width: 1024px) {
  .ek-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ek-row .ek:nth-child(2n+1) {
    border-left: 0 !important;
  }
  .ek-row .ek {
    border-top: 1px solid #E2E8F0 !important;
  }
  .ek-row .ek:first-child, .ek-row .ek:nth-child(2) {
    border-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .ek-row {
    grid-template-columns: 1fr !important;
  }
  .ek-row .ek {
    border-left: 0 !important;
    border-top: 1px solid #E2E8F0 !important;
  }
  .ek-row .ek:first-child {
    border-top: 0 !important;
  }
}

/* 6. Cards, Tiles, Buttons, Queues & Tables */
.tile {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.tile-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.tile-head h2 {
  font-family: var(--font) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  letter-spacing: -0.01em !important;
}

.tile-head .ico, .tile-head svg.ico {
  color: #475569 !important;
  stroke: #475569 !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
}

.tile-head a {
  color: #0D9488 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.tile-head a:hover {
  text-decoration: underline !important;
}

.btn {
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 13px !important;
  border: 1px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.btn:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
}

.btn.primary {
  background: #0F172A !important;
  border-color: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.btn.primary:hover {
  background: #1E293B !important;
  border-color: #1E293B !important;
}

.btn.quiet {
  background: transparent !important;
  border-color: transparent !important;
  color: #475569 !important;
}

.btn.quiet:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

/* Queues */
.queue li {
  border-top: 1px solid #E2E8F0 !important;
  padding: 12px 0 !important;
}

.queue .title {
  color: #0F172A !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

.queue .sub {
  color: #64748B !important;
  font-size: 12px !important;
}

.q-count {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  width: 32px !important;
  height: 32px !important;
}

.queue li.clear .q-count {
  background: #ECFDF5 !important;
  color: #059669 !important;
}

/* Restrained Empty States */
.empty.illus .empty-art, .empty-art {
  display: none !important;
}

.empty-ico {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  border-radius: 8px !important;
  color: #475569 !important;
  display: inline-grid !important;
  place-items: center !important;
  margin-bottom: 8px !important;
}

.empty-ico.sm {
  width: 28px !important;
  height: 28px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  border-radius: 6px !important;
  color: #475569 !important;
}

.empty-ico .ico, .empty-ico svg {
  width: 16px !important;
  height: 16px !important;
  color: #475569 !important;
}

/* Side-by-side HR Grid for Needs Attention + Setup Steps */
.hr-action-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  align-items: start !important;
}

@media (max-width: 900px) {
  .hr-action-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   BATCH 2 (MODULE 1): HIGH-DENSITY ENTERPRISE TABLES & EMPLOYEE DIRECTORY
   ========================================================================== */

/* 1. Unified Table Container */
.table-wrap, .table-container {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  margin-top: 0 !important;
}

/* Seamless Fusion: When .filters sits immediately above .table-wrap */
.filters {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #FAFAFA !important;
  border: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  border-top-left-radius: var(--radius) !important;
  border-top-right-radius: var(--radius) !important;
  padding: 12px 16px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

.filters + .table-wrap {
  border-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Toolbar Controls */
.filters input[type="search"], .filters input.input {
  flex: 1 1 240px !important;
  min-width: 180px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important;
  padding: 7px 12px 7px 32px !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: 10px center !important;
  background-size: 14px 14px !important;
  outline: none !important;
  transition: all 0.15s ease !important;
}

.filters input[type="search"]:focus, .filters input.input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
}

.filters select.input {
  background-color: #FFFFFF !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ink-2) !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.15s ease !important;
}

.filters select.input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
}

@media (max-width: 768px) {
  .filters {
    flex-wrap: wrap !important;
  }
  .filters input[type="search"] {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* 2. High-Density Table Layout */
table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  text-align: left !important;
}

th {
  background: #F8FAFC !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--line) !important;
  border-top: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  white-space: nowrap !important;
  font-family: var(--font) !important;
}

td {
  padding: 10px 16px !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  font-variant-numeric: tabular-nums !important;
  height: 42px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  font-family: var(--font) !important;
}

tbody tr:last-child td {
  border-bottom: 0 !important;
}

tbody tr.link {
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

tbody tr.link:hover td, tbody tr:hover td {
  background: #F8FAFC !important;
}

/* 3. Identity Pairings (Avatar + Name + Role Subtitle) */
.cell-person {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.cell-person .avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  flex: none !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

.cell-person span {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  line-height: 1.25 !important;
  min-width: 0 !important;
}

.cell-person strong {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.cell-person a {
  text-decoration: none !important;
  color: var(--ink) !important;
}

.cell-person a:hover strong {
  color: var(--accent) !important;
  text-decoration: underline !important;
}

.cell-person .muted {
  font-size: 11.5px !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 4. Semantic Status Badges with Dot Indicator */
.tag, .badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.tag::before, .badge::before {
  content: "";
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  flex: none !important;
}

/* Active / Complete / Paid / Approved (Green Dot) */
.tag.ok, .badge.ok, .badge.active, .badge.approved, .badge.paid {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
}

.tag.ok::before, .badge.ok::before, .badge.active::before, .badge.approved::before, .badge.paid::before {
  background: #059669 !important;
}

/* Probation / Notice / Pending / Waiting (Amber Dot) */
.tag.wait, .badge.wait, .badge.probation, .badge.notice, .badge.pending {
  background: #FFFBEB !important;
  color: #92400E !important;
  border: 1px solid #FDE68A !important;
}

.tag.wait::before, .badge.wait::before, .badge.probation::before, .badge.notice::before, .badge.pending::before {
  background: #D97706 !important;
}

/* Exited / Bad / Rejected / Danger (Red Dot) */
.tag.bad, .badge.bad, .badge.err, .badge.rejected {
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1px solid #FECACA !important;
}

.tag.bad::before, .badge.bad::before, .badge.err::before, .badge.rejected::before {
  background: #DC2626 !important;
}

/* Plain / Left / Neutral (Slate Dot) */
.tag.plain, .badge.plain, .badge.exited {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #E2E8F0 !important;
}

.tag.plain::before, .badge.plain::before, .badge.exited::before {
  background: #94A3B8 !important;
}

/* 5. Directory vs All Records Segmented View Switcher */
.seg {
  display: inline-flex !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 3px !important;
  gap: 2px !important;
  margin-bottom: 14px !important;
}

.seg button {
  border: 0 !important;
  background: transparent !important;
  color: #64748B !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 5px 14px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-family: var(--font) !important;
}

.seg button:hover {
  color: #0F172A !important;
}

.seg button.on, .seg button[aria-selected="true"] {
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

/* 6. Sticky First Column for Wide Record Tables */
.rec-table th.sticky, .rec-table td.sticky, .rec-table th:first-child, .rec-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 5 !important;
}

.rec-table th:first-child {
  z-index: 15 !important;
  background: #F8FAFC !important;
}

.rec-table tr:hover td.sticky {
  background: #F8FAFC !important;
}



/* ==========================================================================
   BATCH 2: MODULE 2 (ATS RECRUITMENT PIPELINE) & MODULE 3 (PERFORMANCE & CALIBRATION)
   ========================================================================== */

/* 1. Recruitment Pipeline KPI Metrics Ribbon (.kt-row, .kt) */
.kt-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 20px !important;
}

.kt {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.kt:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06) !important;
}

.kt::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: #CBD5E1 !important;
}

.kt.good::before {
  background: #059669 !important;
}

.kt.warn::before {
  background: #D97706 !important;
}

.kt.bad::before {
  background: #DC2626 !important;
}

.kt span {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748B !important;
}

.kt b {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.15 !important;
}

.kt b small {
  font-size: 14px !important;
  color: #64748B !important;
  font-weight: 500 !important;
}

.kt em {
  font-style: normal !important;
  font-size: 12px !important;
  color: #64748B !important;
}

@media (max-width: 1100px) {
  .kt-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .kt-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 2. ATS Recruitment Kanban Stage Board (.board, .kcol, .kcard) */
.board {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  overflow-x: auto !important;
  padding-bottom: 8px !important;
  margin-top: 12px !important;
  align-items: start !important;
}

.kcol {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  min-height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.kcol h3 {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748B !important;
  margin: 0 0 4px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.kcol h3 span {
  background: #E2E8F0 !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  font-variant-numeric: tabular-nums !important;
}

.kcard {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  text-decoration: none !important;
  color: #0F172A !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.kcard:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04) !important;
  transform: translateY(-1px) !important;
}

.kcard strong {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  line-height: 1.3 !important;
}

.kcard .muted {
  font-size: 12px !important;
  color: #64748B !important;
}

.kmeta {
  font-size: 11.5px !important;
  color: #64748B !important;
}

.kmeta.stale,
.stale-pill {
  background: #FFFBEB !important;
  color: #B45309 !important;
  border: 1px solid #FDE68A !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
}

.kscore {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #065F46 !important;
  background: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
  width: fit-content !important;
}

.knext {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  color: #334155 !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  width: fit-content !important;
}

.kwarn {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #991B1B !important;
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
  width: fit-content !important;
}

.kempty {
  color: #94A3B8 !important;
  font-size: 12px !important;
  font-style: italic !important;
  text-align: center !important;
  padding: 24px 8px !important;
  margin: 0 !important;
}

/* 3. Empty State Banner Restyling (.nh-hero) - No Oversized Art */
.nh-hero {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px 24px !important;
  margin: 0 0 20px !important;
  border-radius: 8px !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.nh-art {
  display: none !important;
}

.nh-copy h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  margin: 0 0 6px !important;
}

.nh-copy p {
  font-size: 13.5px !important;
  color: #64748B !important;
  line-height: 1.5 !important;
  margin: 0 0 14px !important;
}

.nh-steps {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 !important;
}

.nh-steps li {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
}

.nh-n {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  background: #0F172A !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

/* 4. Hiring Funnel & Roles At A Glance */
.funnel {
  list-style: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 12px !important;
}

.f-top {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  font-size: 13px !important;
}

.f-top span {
  font-weight: 500 !important;
  color: #334155 !important;
}

.f-top b {
  font-variant-numeric: tabular-nums !important;
  font-weight: 600 !important;
  color: #0F172A !important;
}

.f-top em {
  font-style: normal !important;
  color: #64748B !important;
  font-size: 11.5px !important;
  margin-left: auto !important;
}

.f-bar {
  height: 8px !important;
  background: #E2E8F0 !important;
  border-radius: 999px !important;
  margin-top: 5px !important;
  overflow: hidden !important;
}

.f-bar i {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: #0D9488 !important;
}

.funnel li:last-child .f-bar i {
  background: #059669 !important;
}

.pipe-mini {
  display: flex !important;
  gap: 12px !important;
  font-size: 11.5px !important;
  color: #64748B !important;
}

.pipe-mini span {
  display: flex !important;
  flex-direction: column !important;
  min-width: 52px !important;
}

.pipe-mini b {
  font-size: 14px !important;
  color: #0F172A !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}

/* 5. Standardized Progress Meters (.bar, .meter) - Membra Teal */
.bar {
  height: 6px !important;
  border-radius: 999px !important;
  background: #E2E8F0 !important;
  overflow: hidden !important;
  min-width: 80px !important;
}

.bar i,
.meter .bar i,
.onb .bar i,
.parts .bar i,
.complete-bar .bar i {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: #0D9488 !important; /* Membra Teal */
}

.meter-top {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 12.5px !important;
  margin-bottom: 4px !important;
}

.meter-top span {
  color: #334155 !important;
  font-weight: 500 !important;
}

.meter-top strong {
  color: #0F172A !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}

/* 6. Workforce Intelligence & Calibration Matrix (.wi-*, .wi-spark) */
.wi-spark {
  display: block !important;
  overflow: visible !important;
}

.wi-spark polyline {
  stroke: #0D9488 !important;
  stroke-width: 2px !important;
}

.wi-spark circle {
  fill: #0D9488 !important;
}

td .wi-spark {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  width: 72px !important;
  height: 22px !important;
}

.wi-up {
  color: #059669 !important;
  font-weight: 600 !important;
}

.wi-down {
  color: #DC2626 !important;
  font-weight: 600 !important;
}

.wi-warn {
  color: #D97706 !important;
  font-weight: 600 !important;
}

.wi-tile {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.wi-tile strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
}

.wi-tile strong small {
  font-size: 13px !important;
  color: #64748B !important;
  font-weight: 500 !important;
}

.wi-tile .wi-l {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.wi-tile .wi-s {
  font-size: 12px !important;
  color: #64748B !important;
}

/* 7. Candidate -> Employee Continuous Journey Card */
.transition-card {
  background: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.transition-card strong {
  color: #065F46 !important;
  font-size: 13.5px !important;
}

.transition-card p {
  color: #047857 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* 8. Super Admin "View As" Perspective Switcher */
.view-switch {
  display: inline-flex !important;
  align-items: center !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 2px 4px 2px 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.view-switch:hover {
  border-color: #CBD5E1 !important;
}

.view-switch:focus-within {
  border-color: #0D9488 !important;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15) !important;
}

.view-switch .vs-k,
.view-tag .vs-k {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748B !important;
  margin-right: 6px !important;
  user-select: none !important;
}

.view-switch select {
  border: 0 !important;
  background: transparent !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  padding: 5px 24px 5px 4px !important;
  cursor: pointer !important;
  outline: none !important;
}

.view-tag {
  display: inline-flex !important;
  align-items: center !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
}

/* ==========================================================================
   BATCH 3: FINANCIAL & WORKFORCE OPERATIONS DESIGN SYSTEM
   1. Executive Financial Ribbon (.fin-ribbon)
   2. Pre-Flight Blocker Banner (.payroll-preflight-banner, .pf-head, .pf-grid, .pf-item)
   3. Institutional Accounting Ledger Table (.pay-ledger-table)
   4. Institutional Payslip Voucher (.printable-payslip-card.slip, .slip-meta-grid, .slip-ledger-cols, .slip-disbursement-box)
   5. Benefits Administration (.ben-grid, .ben-card)
   6. Leave Administration & Approval Queue (.leave-queue, .leave-cal)
   7. Attendance Tracking (.cell-person, table styling)
   ========================================================================== */

/* 1. Executive Financial Ribbon */
.fin-ribbon {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin: 16px 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.fin-cell {
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.fin-cell + .fin-cell {
  border-left: 1px solid #E2E8F0 !important;
}

.fin-kicker {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748B !important;
}

.fin-val {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.2 !important;
}

.fin-sub {
  font-size: 12px !important;
  color: #64748B !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fin-cell.fin-net {
  background: #F8FAFC !important;
}

.fin-cell.fin-net .fin-kicker {
  color: #0D9488 !important;
}

.fin-cell.fin-net .fin-val {
  color: #0F172A !important;
  font-size: 24px !important;
}

@media (max-width: 768px) {
  .fin-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .fin-cell:nth-child(2n + 1) {
    border-left: 0 !important;
  }
  .fin-cell:nth-child(n + 3) {
    border-top: 1px solid #E2E8F0 !important;
  }
}

/* 2. Pre-Flight Blocker Banner */
.payroll-preflight-banner {
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
  border-radius: 8px !important;
  padding: 16px 18px !important;
  margin: 16px 0 !important;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.05) !important;
}

.pf-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.pf-title-wrap {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.pf-icon {
  color: #D97706 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.pf-title-wrap h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #92400E !important;
  margin: 0 0 2px !important;
  letter-spacing: -0.01em !important;
}

.pf-title-wrap p {
  font-size: 12.5px !important;
  color: #B45309 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.pf-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.pf-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #FFFFFF !important;
  border: 1px solid #FDE68A !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  gap: 12px !important;
}

.pf-person {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.pf-person strong {
  font-size: 13px !important;
  color: #0F172A !important;
  display: block !important;
}

.pf-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* 3. Statutory Ledger & Accounting Table */
.pay-ledger-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.pay-ledger-table th {
  background: #F8FAFC !important;
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.pay-ledger-table td {
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0 !important;
  height: 42px !important;
  box-sizing: border-box !important;
}

.pay-ledger-table td.num,
.pay-ledger-table th.r {
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
}

.pay-ledger-table tbody tr:hover {
  background: #F8FAFC !important;
}

.pay-ledger-table tfoot td {
  background: #F8FAFC !important;
  font-weight: 700 !important;
  border-top: 2px solid #CBD5E1 !important;
  border-bottom: 0 !important;
  color: #0F172A !important;
}

/* 4. Institutional Payslip Voucher */
.printable-payslip-card.slip {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 24px 28px !important;
  color: #0F172A !important;
  font-family: var(--font) !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.dialog:has(.printable-payslip-card),
.dialog.wide:has(.slip) {
  width: min(760px, 95vw) !important;
  max-width: 760px !important;
}

.slip-header-brand {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
}

.slip-brand-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.slip-org-meta {
  display: flex !important;
  flex-direction: column !important;
}

.slip-org-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

.slip-tagline {
  font-size: 11px !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
}

.slip-badge-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
}

.slip-period-badge {
  background: #0F172A !important;
  color: #F8FAFC !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
}

.slip-payday-meta {
  font-size: 11.5px !important;
  color: #64748B !important;
  font-variant-numeric: tabular-nums !important;
}

.slip-meta-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  margin-bottom: 18px !important;
}

.slip-meta-cell {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.slip-meta-k {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748B !important;
}

.slip-meta-v {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.slip-meta-sub {
  font-size: 11.5px !important;
  color: #64748B !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.slip-ledger-cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.slip-ledger-col {
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.slip-col-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 8px 12px !important;
}

.slip-col-head h3 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0F172A !important;
  margin: 0 !important;
}

.slip-col-head span {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748B !important;
}

.slip-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.slip-table td {
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  color: #334155 !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.slip-table td.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
}

.slip-table tfoot td {
  background: #F8FAFC !important;
  border-top: 1px solid #CBD5E1 !important;
  border-bottom: 0 !important;
  color: #0F172A !important;
  font-weight: 700 !important;
}

.slip-disbursement-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 14px 18px !important;
  margin-bottom: 16px !important;
}

.slip-disb-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.slip-disb-kicker {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0D9488 !important;
}

.slip-disb-amount {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

.slip-disb-dest {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: #64748B !important;
  margin-top: 2px !important;
}

.slip-disb-dest strong {
  color: #0F172A !important;
}

.slip-disb-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 6px !important;
}

.slip-disb-date {
  font-size: 11.5px !important;
  color: #64748B !important;
}

.slip-footnotes {
  border-top: 1px solid #E2E8F0 !important;
  padding-top: 12px !important;
}

.slip-footnotes p {
  font-size: 11px !important;
  color: #64748B !important;
  line-height: 1.5 !important;
  margin: 0 0 6px !important;
}

.slip-prorate-note {
  color: #D97706 !important;
}

/* 5. Benefits Grid & Cards */
.ben-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
}

.ben-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.ben-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 6. Leave Queue & Calendar */
.leave-queue .row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.leave-cal {
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.leave-cal .off {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  font-weight: 600 !important;
}

.leave-cal .pend {
  background: #FFFBEB !important;
  color: #92400E !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   BATCH 4: ORG ARCHITECTURE, SEAT PLANNING & COMPLIANCE VAULT
   1. Organization Hierarchy & Topology Canvas (.org, .org-node, .org-sug)
   2. Position Control & Succession Matrix (.wi-succ, .wi-role, .wi-bench)
   3. Document Compliance Vault & Audit Tables
   ========================================================================== */

/* 1. Organization Hierarchy Canvas */
.org {
  overflow-x: auto !important;
  padding: 16px 20px 32px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 20px !important;
}

.org ul {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 32px !important;
  position: relative !important;
}

.org > ul {
  padding-left: 0 !important;
}

.org li {
  position: relative !important;
  padding: 8px 0 !important;
}

.org ul ul li::before {
  content: "" !important;
  position: absolute !important;
  left: -20px !important;
  top: 0 !important;
  bottom: 0 !important;
  border-left: 1px solid #CBD5E1 !important;
}

.org ul ul li:last-child::before {
  bottom: calc(100% - 32px) !important;
}

.org ul ul li::after {
  content: "" !important;
  position: absolute !important;
  left: -20px !important;
  top: 32px !important;
  width: 18px !important;
  border-top: 1px solid #CBD5E1 !important;
}

.org-node {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  min-width: 240px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.org-node:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-1px) !important;
}

.org-node strong {
  color: #0F172A !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  display: block !important;
}

.org-node a {
  text-decoration: none !important;
  color: inherit !important;
}

.org-node a:hover strong {
  color: #0D9488 !important;
}

.org-node.me {
  border-color: #0D9488 !important;
  background: #F0FDFA !important;
}

.org-node.open {
  border-style: dashed !important;
  border-color: #94A3B8 !important;
  background: #F8FAFC !important;
}

.org-node.suggested {
  border-style: dashed !important;
  border-color: #FCD34D !important;
  background: #FFFBEB !important;
}

.org-sug {
  font-style: normal !important;
  font-size: 11px !important;
  color: #D97706 !important;
  font-weight: 500 !important;
  display: block !important;
}

/* 2. Succession Matrix */
.wi-succ {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
  gap: 16px !important;
}

.wi-role {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.wi-rh {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

.wi-rh strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  display: block !important;
}

.wi-bench {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.wi-bench li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
}

.wi-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-top: 6px !important;
}

.wi-chips span {
  font-size: 11px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   BATCH 5: COMPLIANCE REPORTS, GOVERNANCE & ENTERPRISE SETTINGS
   ========================================================================== */

/* Report Center & High-Density Tables */
.rec-table th {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748B !important;
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 12px 16px !important;
}

.rec-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  font-size: 13px !important;
  color: #1E293B !important;
}

.rec-table tfoot td {
  background: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
  padding: 10px 16px !important;
}

/* Executive Story Briefing */
.story.enterprise-story {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  padding: 20px 24px !important;
  margin-bottom: 24px !important;
}

.story.enterprise-story .story-h {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.story.enterprise-story .story-h .ico {
  color: #0D9488 !important;
}

.story.enterprise-story dl {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px 24px !important;
  margin: 0 !important;
}

.story.enterprise-story dt {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0D9488 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
}

.story.enterprise-story dd {
  font-size: 13px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.story-link {
  color: #0D9488 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  margin-left: 4px !important;
}

.story-link:hover {
  text-decoration: underline !important;
}

/* Settings Layout & Navigation */
.set-layout {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

.set-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.set-nav button {
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.set-nav button:hover {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

.set-nav button.on {
  background: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) !important;
}

/* Theme Selector Cards */
.theme-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 12px !important;
}

.theme-opt {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 14px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
}

.theme-opt:hover {
  border-color: #CBD5E1 !important;
  background: #F8FAFC !important;
}

.theme-opt.on {
  border-color: #0D9488 !important;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2) !important;
  background: #F0FDFA !important;
}

/* Enterprise Notification Toggles */
.toggles li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.toggles li:last-child {
  border-bottom: 0 !important;
}

.switch {
  width: 44px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: #E2E8F0 !important;
  position: relative !important;
  border: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  flex-shrink: 0 !important;
  padding: 2px !important;
}

.switch i {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  background: #FFFFFF !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s ease !important;
}

.switch.on {
  background: #0D9488 !important;
}

.switch.on i {
  transform: translateX(20px) !important;
}

/* Security Cards */
.cards.one > .card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 20px 24px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* ==========================================================================
   BATCH 6: LEARNING, UNIFIED INBOX & ENTERPRISE PORTALS
   ========================================================================== */

/* Unified Inbox & Operational Queue */
.ibx-tabs {
  display: flex !important;
  gap: 8px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  margin-bottom: 20px !important;
  overflow-x: auto !important;
}

.ibx-tabs button {
  border: 0 !important;
  background: transparent !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #64748B !important;
  cursor: pointer !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.ibx-tabs button:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

.ibx-tabs button.on {
  background: #0F172A !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1) !important;
}

.ibx-tabs button span {
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  padding: 0 6px !important;
  background: #E2E8F0 !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
}

.ibx-tabs button.on span {
  background: #0D9488 !important;
  color: #FFFFFF !important;
}

.ibx-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  border-top: 0 !important;
}

.ibx-item {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.ibx-item:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06) !important;
}

.ibx-item.unread {
  border-left: 3px solid #0D9488 !important;
}

.ibx-ic {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 6px !important;
  place-items: center !important;
  background: #F1F5F9 !important;
  color: #0F172A !important;
  flex: none !important;
}

.ibx-ic .ico {
  width: 18px !important;
  height: 18px !important;
}

.ibx-k {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0D9488 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.ibx-b strong {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
}

.ibx-s {
  font-size: 12px !important;
  color: #64748B !important;
  margin-top: 2px !important;
}

/* LMS Course Player & Curricula */
.player {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

.player-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 24px 28px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.outline {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.outline h1 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 0 12px !important;
}

.outline ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.outline button {
  width: 100% !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.outline button:hover {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

.outline button.on {
  background: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.outline button.on small {
  color: #94A3B8 !important;
}

.outline button.done .o-mark {
  background: #059669 !important;
  color: #FFFFFF !important;
}

.o-mark {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #E2E8F0 !important;
  color: #475569 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

/* Public Portals (Careers & Vacancies) */
.pub {
  background: #F8FAFC !important;
  min-height: 100vh !important;
}

.pub-top {
  background: #0F172A !important;
  border-bottom: 1px solid #1E293B !important;
  padding: 16px max(24px, calc((100vw - 1100px) / 2)) !important;
}

.pub-brand {
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.pub-top .muted {
  color: #94A3B8 !important;
  font-size: 13px !important;
}

.pub-hero h1 {
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #0F172A !important;
}

.pub-jobs {
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  background: #FFFFFF !important;
}

.pub-jobs a {
  padding: 18px 24px !important;
  transition: background 0.15s ease !important;
}

.pub-jobs a:hover {
  background: #F8FAFC !important;
}

.pub-form {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 24px 28px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.pub-foot {
  border-top: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  color: #64748B !important;
  font-size: 13px !important;
  padding: 24px !important;
}

/* ==========================================================================
   SURGICAL POST-AUDIT FIXES (PAYROLL METRICS, SIDEBAR, HEADER & COMPLIANCE)
   ========================================================================== */

/* 1. Neutralize Giant Wrapping KPI Metrics & Enforce Uniform Ribbon Layout */
.command.four {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.command:not(.four) {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.command .kpi, .ek-row .ek {
  padding: 16px 20px !important;
  border: 0 !important;
  border-left: 1px solid #E2E8F0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-decoration: none !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
}

.command .kpi:first-child, .ek-row .ek:first-child {
  border-left: 0 !important;
}

.command .kpi-value,
.command .kpi strong,
.kpi-value,
.fin-cell-val {
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.2 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
}

.command .kpi-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.command .kpi-sub {
  font-size: 12px !important;
  color: #64748B !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1024px) {
  .command, .command.four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .command .kpi:nth-child(2n+1) {
    border-left: 0 !important;
  }
  .command .kpi:nth-child(n+3) {
    border-top: 1px solid #E2E8F0 !important;
  }
}

/* 2. Sidebar Navigation Layout & Generous Headroom */
.rail {
  padding: 14px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #0F172A !important;
  border-right: 1px solid #1E293B !important;
}
/* Phones: the sidebar stays hidden (bottom tab bar is used instead). */
@media (max-width: 860px) { .rail { display: none !important; } }

.rail-brand {
  flex-shrink: 0 !important;
  padding: 4px 8px !important;
  border-bottom: 1px solid #1E293B !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.rail-brand img {
  height: 22px !important;
  width: auto !important;
  filter: brightness(0) invert(1) !important;
}

.rail .nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
  margin-right: -2px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #334155 transparent !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rail .nav li {
  margin: 1px 0 !important;
}

.nav a {
  padding: 5px 8px !important;
  min-height: 28px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #CBD5E1 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.nav-group {
  padding: 8px 8px 2px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748B !important;
  display: block !important;
}

.rail-bottom {
  flex-shrink: 0 !important;
  padding-top: 8px !important;
  margin-top: 8px !important;
  border-top: 1px solid #1E293B !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2px !important;
}
.rail-bottom > .nav-group, .rail-bottom > .rail-who { grid-column: 1 / -1 !important; }

.rail-bottom a, .rail-bottom .signout, .rail-bottom button {
  padding: 5px 8px !important;
  min-height: 28px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #CBD5E1 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
}

.rail-bottom a:hover, .rail-bottom .signout:hover, .rail-bottom button:hover {
  background: #1E293B !important;
  color: #FFFFFF !important;
}

.rail-bottom .nav-group {
  padding: 4px 10px 2px !important;
  font-size: 10px !important;
}

.rail-who {
  padding: 8px 8px 0 !important;
  margin-top: 6px !important;
  border-top: 1px solid #1E293B !important;
  font-size: 11.5px !important;
  color: #94A3B8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.rail-who strong {
  font-size: 12px !important;
  color: #FFFFFF !important;
}

/* 3. Page Header Alignment (Title/Subtitle Left, Export Buttons Right) */
.page-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 16px !important;
}

.page-head > div:first-child {
  flex: 1 1 auto !important;
  min-width: 260px !important;
}

#payroll-bank-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  margin-left: auto !important;
  flex-wrap: wrap !important;
}

#payroll-bank-actions .btn {
  font-size: 12.5px !important;
  padding: 8px 14px !important;
  white-space: nowrap !important;
}

/* 4. Nigerian Compliance Governance Bar & Crisp Micro-Badges */
.trust {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.trust-lead {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0F172A !important;
  margin-right: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.trust .badge {
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 3px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #F0FDF4 !important;
  color: #15803D !important;
  border: 1px solid #BBF7D0 !important;
  text-decoration: none !important;
}

.trust .badge.warn {
  background: #FFFBEB !important;
  color: #B45309 !important;
  border: 1px solid #FDE68A !important;
}

.trust .badge.warn:hover {
  background: #FEF3C7 !important;
}

.trust .badge.ok {
  background: #F0FDF4 !important;
  color: #15803D !important;
  border: 1px solid #BBF7D0 !important;
}

.trust .badge .ico, .trust .badge svg {
  width: 13px !important;
  height: 13px !important;
}

/* 5. Enterprise Payroll Run Card Surface */
.run-hero {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  padding: 20px 24px !important;
  margin-bottom: 20px !important;
}

.run-hero h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.015em !important;
}

/* --------------------------------------------------------------------------
   BATCH 6.2: EMPLOYEE DASHBOARD (#/home) & UNIVERSAL TYPOGRAPHY REFINEMENTS
   -------------------------------------------------------------------------- */

/* 1. Equalize all KPI font sizes & neutralize :first-child overrides */
.ek-row .ek strong,
.ek-row .ek:first-child strong,
.command a strong,
.command > *:first-child strong,
.kpis strong,
.kpis > *:first-child strong,
.stat strong {
  font-family: var(--font) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  color: #0F172A !important;
  font-variant-numeric: tabular-nums !important;
}

/* 2. Fix sliced / clipped text in .ek-row ("11 years, 2 months", "Agree goals with your manager") */
.ek-row .ek {
  padding: 16px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.ek-l {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.ek-s {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #64748B !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  margin-top: 6px !important;
  display: block !important;
}

/* 3. Normalize all card titles, list items & callout borders (.eh-grid, .tile, .wi-callout) */
.eh-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  background: transparent !important;
  border: 0 !important;
}

.row .title,
.list .title {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #0F172A !important;
}

.wi-callout {
  border-left: 3px solid #0D9488 !important;
  background: #F8FAFC !important;
  padding: 10px 12px !important;
  border-radius: 0 6px 6px 0 !important;
}

/* 4. Compact the left sidebar so all modules fit on one screen without scrollbar clipping */
.rail-brand {
  margin-bottom: 10px !important;
  padding: 4px 8px !important;
}

.nav-group {
  padding: 8px 8px 2px !important;
  font-size: 10.5px !important;
}

.nav a,
.rail-bottom a,
.rail-bottom .signout {
  padding: 5px 8px !important;
  font-size: 13px !important;
  min-height: 28px !important;
}

.rail-who {
  padding: 8px 8px 0 !important;
  margin-top: 6px !important;
}


/* ==========================================================================
   PHONE POLISH (<= 860px). Only affects small screens; desktop is unchanged.
   Several earlier layers re-assert desktop grids with !important, so these
   rules restore the intended phone layout.
   ========================================================================== */
@media (max-width: 860px) {
  /* forms: one column, 16px text so iOS does not zoom, comfortable touch targets */
  .entry.premium .grid-2, .entry2 .grid-2, .grid-2 { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; min-height: 46px; }
  .btn, .tabbar a, .set-nav button, .tabs [role="tab"] { min-height: 44px; }
  .su-interests label, .check { min-height: 44px; display: flex; align-items: center; }
  /* KPI strips: tighter cells, text may wrap instead of being cut off */
  .command .kpi, .kt, .kpi { padding: 12px 14px !important; min-width: 0; }
  .command .kpi *, .kt *, .kpi * { min-width: 0; overflow-wrap: anywhere; }
  .kpi-label, .kpi-sub, .kt span, .kt em { white-space: normal !important; }
  /* rows with buttons wrap instead of running off screen */
  .pf-meta, .dl dd, .dl > div, .section-head, .page-head, .btn-row, .tab-actions { flex-wrap: wrap !important; }
  .pf-meta { gap: 8px !important; }
  .page-head .btn, .btn-row .btn { flex: 1 1 auto; }
  .wi-grid, .wi-two, .an-grid, .set-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .wi-role, .card, .tile, .widget { min-width: 0; max-width: 100%; }
  .kt-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .queue, .wi-succ, .set-body .cards, .lgrid, .ob-steps { grid-template-columns: minmax(0, 1fr) !important; }
  .command, .command.four, .command:not(.four) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .command:not(.four) > .kpi:nth-child(5) { grid-column: 1 / -1 !important; }
  .command .kpi { border-top: 1px solid var(--line) !important; }
  .command .kpi:nth-child(-n+2) { border-top: 0 !important; }
  .command .kpi:nth-child(odd) { border-left: 0 !important; }
  .hello, .page-head { flex-direction: column !important; align-items: flex-start !important; text-align: left !important; }
  .table-wrap, .table-container { max-width: 100%; }
  .content { padding-left: 16px !important; padding-right: 16px !important; }
  /* bottom bar: room for the home indicator, labels never wrap */
  .tabbar a { white-space: nowrap; }
  /* top bar: search becomes a compact icon button */
  .topbar .cmd { flex: 0 0 auto; width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .topbar .cmd span, .topbar .cmd kbd { display: none !important; }
  /* "how it works" step cards: one per row so words do not break letter by letter */
  .nh-steps { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  /* settings sections: a swipeable tab strip, not a tall list */
  .set-nav { flex-direction: row !important; overflow-x: auto; position: static !important; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .set-nav button { white-space: nowrap; flex: 0 0 auto; border: 1px solid var(--line); }
  /* interactive org canvas is a desktop tool; phones use the reporting-line list below it */
  #membra-org-canvas-wrap { display: none !important; }
  /* payslip: stack the columns so amounts are readable */
  .slip-meta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .slip-ledger-cols { grid-template-columns: minmax(0, 1fr) !important; }
  .slip-table td.num, .slip-table .num { white-space: nowrap; }
  .slip-disbursement-box { flex-direction: column !important; align-items: flex-start !important; gap: 10px; }
  .slip-disb-amount { font-size: 26px !important; white-space: nowrap; }
}
/* Dashboard card grids: a late layer forced 3 columns at every width (crushed cards on phones). */
@media (max-width: 1100px) { .eh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 860px) {
  .eh-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .tile-head { flex-wrap: wrap; gap: 8px; }
  .tile-head h2 { min-width: 0; overflow-wrap: normal; word-break: normal; }
  .tile-head > a { white-space: nowrap; }
  .eh-grid .row { flex-wrap: wrap; gap: 8px; }
  .eh-grid .row .body { min-width: 0; flex: 1 1 160px; }
}
@media (max-width: 360px) { .ql-grid, .fin-ribbon { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 420px) {
  .tabbar a { flex: 1 1 0 !important; min-width: 0; padding: 6px 2px !important; font-size: 10.5px !important; }
}

/* ==========================================================================
   WORKFORCE INTELLIGENCE (phase 1) on Analytics. New classes only (wi1-*),
   so no earlier layer is touched.
   ========================================================================== */
.wi1 { margin: 0 0 24px; }
.wi1-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 0 12px; }
.wi1-head h2 { font-size: 17px; font-weight: 700; margin: 0; color: var(--ink); }
.wi1-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.wi1-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wi1-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--surface, #fff); border: 1px solid var(--line, #E2E8F0); border-radius: 10px; padding: 14px 16px 14px 19px; }
.wi1-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--wi1-c); }
.wi1-card { --wi1-c: #94A3B8; --wi1-bg: #F1F5F9; --wi1-fg: #475569; }
.wi1-card.s-red { --wi1-c: #D92D20; --wi1-bg: #FEF3F2; --wi1-fg: #B42318; }
.wi1-card.s-amber { --wi1-c: #F79009; --wi1-bg: #FFFAEB; --wi1-fg: #B54708; }
.wi1-card.s-ok { --wi1-c: #12B76A; --wi1-bg: #ECFDF3; --wi1-fg: #027A48; }
.wi1-card.s-info { --wi1-c: #2E90FA; --wi1-bg: #EFF8FF; --wi1-fg: #175CD3; }
.wi1-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wi1-area { font-size: 12px; color: var(--muted, #64748B); }
.wi1-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--wi1-bg); color: var(--wi1-fg); white-space: nowrap; }
.wi1-card h3 { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink, #0F172A); }
.wi1-val { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--ink, #0F172A); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wi1-val small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted, #64748B); margin-top: 3px; }
.s-building .wi1-val { font-size: 19px; color: var(--muted, #64748B); }
.wi1-ins, .wi1-need { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink, #0F172A); }
.wi1-need { color: var(--muted, #64748B); }
.wi1-detail { margin-top: 4px; min-width: 0; overflow-x: auto; }
.wi1-k { margin: 4px 0 6px; font-size: 12px; color: var(--muted, #64748B); }
.wi1-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.wi1-t th { text-align: left; font-weight: 600; color: var(--muted, #64748B); padding: 5px 6px 5px 0; border-bottom: 1px solid var(--line, #E2E8F0); }
.wi1-t td { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line, #E2E8F0); vertical-align: top; }
.wi1-t tr:last-child td { border-bottom: 0; }
.wi1-bars { display: grid; gap: 6px; }
.wi1-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; }
.wi1-bar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi1-bar .b { height: 8px; background: var(--line, #E2E8F0); border-radius: 4px; overflow: hidden; }
.wi1-bar .b i { display: block; height: 100%; background: var(--wi1-c); border-radius: 4px; }
.wi1-bar .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.wi1-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.wi1-strip span { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.wi1-strip .on { background: #ECFDF3; color: #027A48; }
.wi1-strip .off { background: #FEF3F2; color: #B42318; outline: 1.5px solid #D92D20; }
.wi1-how summary { cursor: pointer; font-size: 12.5px; color: var(--muted, #64748B); padding: 4px 0; min-height: 32px; display: flex; align-items: center; }
.wi1-how p { margin: 2px 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted, #64748B); }
.wi1-act { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) {
  .wi1-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wi1-act .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .wi1-how summary { min-height: 44px; }
}
.wi1-card table.wi1-t { table-layout: auto; width: 100% !important; min-width: 0 !important; margin: 0 !important; }
.wi1-card .wi1-t th, .wi1-card .wi1-t td { padding: 6px 10px 6px 0 !important; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; background: none !important; white-space: normal !important; height: auto !important; line-height: 1.4 !important; }
.wi1-card .wi1-t th { font-size: 12px !important; font-weight: 600 !important; color: var(--muted, #64748B) !important; }
.wi1-card .wi1-t td:last-child, .wi1-card .wi1-t th:last-child { padding-right: 0 !important; }
.wi1-card .wi1-t td { overflow-wrap: break-word !important; word-break: normal !important; }
.wi1-card .wi1-t td:first-child, .wi1-card .wi1-t th:first-child { white-space: nowrap !important; }
/* batch 2: measures not ready yet, checklists, pay requests */
.wi1-later { margin-top: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #E2E8F0); border-radius: 10px; }
.wi1-later > summary { cursor: pointer; padding: 12px 16px; font-weight: 650; font-size: 14px; color: var(--ink, #0F172A); min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wi1-later > summary span { font-weight: 400; font-size: 13px; color: var(--muted, #64748B); }
.wi1-later ul { list-style: none; margin: 0; padding: 0 16px 6px; }
.wi1-later li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, #E2E8F0); }
.wi1-later li > div { min-width: 0; }
.wi1-later li strong { font-size: 14px; color: var(--ink, #0F172A); }
.wi1-later li p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #64748B); }
.wi1-later li .btn { flex: none; }
.wi1-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #F1F5F9; color: #475569; margin-left: 4px; }
.wi1-checks { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.wi1-checks .check { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 14px; }
@media (max-width: 860px) {
  .wi1-later li { flex-direction: column; }
  .wi1-later li .btn { width: 100%; min-height: 44px; justify-content: center; }
  .wi1-req .section-head { flex-wrap: wrap; gap: 8px; }
  .wi1-req .row { flex-wrap: wrap; gap: 8px; }
}

/* ==========================================================================
   LAYOUT REPAIR (desktop): Split view and Spaces. A later layer fixed the left
   menu at 248px for every layout, so Split never slimmed down and Spaces kept
   the menu and pushed "View as" off screen on laptops.
   ========================================================================== */
@media (min-width: 861px) {
  .shell.rail-min, .shell.lay-split { grid-template-columns: 72px minmax(0, 1fr) !important; }
  .shell.lay-split.has-lp { grid-template-columns: 72px 330px minmax(0, 1fr) !important; }
  .shell.lay-spaces { grid-template-columns: minmax(0, 1fr) !important; }
  .shell.lay-spaces > .rail, .shell.lay-spaces .main > .topbar { display: none !important; }
  .rail-min .rail { padding: 14px 8px !important; align-items: center; }
  .rail-min .nav li.nav-group { font-size: 0 !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 10px 6px !important; overflow: hidden; }
  .rail-min .rail-bottom { grid-template-columns: minmax(0, 1fr) !important; }
  .rail-min .rail-bottom .nav-group, .rail-min .rail-bottom > h3, .rail-min .rail-bottom > p { display: none !important; }
  .view-switch, .view-switch .vs-k { white-space: nowrap; }
  .sbar { gap: 12px; min-width: 0; }
  .sb-spaces { min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
  .sb-spaces::-webkit-scrollbar { display: none; }
  .sb-spaces a { white-space: nowrap; flex: none; }
  .sb-tools { flex: none; gap: 8px; }
}
@media (min-width: 861px) and (max-width: 1400px) {
  .lay-spaces .sb-tools .cmd { width: 44px !important; min-width: 44px; padding: 0 !important; justify-content: center; }
  .lay-spaces .sb-tools .cmd span, .lay-spaces .sb-tools .cmd kbd { display: none !important; }
  .lay-spaces .sb-spaces a { padding: 7px 10px; }
  .lay-spaces .sp-body { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .lay-spaces .sp-body { grid-template-columns: minmax(0, 1fr); }
  .lay-spaces .copilot { display: none; }
  .lay-spaces .view-switch .vs-k { display: none; }
  .sbar { padding: 0 16px; }
}
@media (min-width: 861px) {
  .rail-min .rail-brand { padding: 0 0 10px !important; justify-content: center; }
  .rail-min .rail-brand img { width: 26px !important; height: 26px !important; max-width: 26px !important; object-fit: cover !important; object-position: left center !important; }
  .rail-min .nav a, .rail-min .rail-bottom a, .rail-min .signout { padding: 9px 0 !important; justify-content: center !important; position: relative; }
  .rail-min .nav a .count { position: absolute !important; top: 1px !important; right: 2px !important; min-width: 16px; height: 16px; font-size: 10px !important; line-height: 16px; padding: 0 4px !important; margin: 0 !important; }
  .rail-min .nav { overflow-y: auto; scrollbar-width: none; }
  .lay-spaces .sb-tools .cmd { height: 40px !important; }
  .copilot .cp-ask .ai-form { display: flex !important; gap: 6px; }
  .copilot .cp-ask .ai-form .input, .copilot .cp-ask .ai-form input { flex: 1 1 0 !important; width: 0 !important; min-width: 0 !important; }
  .copilot .cp-ask .ai-form .btn { flex: none !important; padding: 0 12px !important; }
}
@media (min-width: 861px) and (max-width: 1240px) {
  .shell.lay-split.has-lp { grid-template-columns: 72px 260px minmax(0, 1fr) !important; }
  .lay-split .topbar .cmd { width: 44px !important; min-width: 44px; height: 40px; padding: 0 !important; justify-content: center; flex: none; }
  .lay-split .topbar .cmd span, .lay-split .topbar .cmd kbd { display: none !important; }
  .lay-split .topbar { gap: 8px; padding-left: 16px !important; padding-right: 16px !important; }
  .lay-split .view-switch .vs-k { display: none; }
}
