/* Inday — tokens. Theme after Skymetrics by Zajno: monochrome, mono numerals, one green. */
:root {
  --canvas: #F3F3F2;
  --surface: #FFFFFF;
  --surface-2: #F5F5F4;
  --ink: #121212;
  --ink-2: #5E5E5E;      /* 6.4:1 on white */
  --ink-3: #737373;      /* 4.7:1 on white */
  --line: #EAEAE9;
  --line-2: #D8D8D6;
  --accent: #121212;     /* primary actions are black */
  --accent-ink: #121212;
  --accent-soft: #ECECEB;
  --on-accent: #FFFFFF;
  --hi: #3FAE65;         /* the one green: active bar, live time, current step */
  --hi-ink: #23824A;     /* green for text, 4.6:1 */
  --hi-soft: #E4F3E9;
  --panel: #161616;
  --panel-2: #222222;
  --panel-line: #2C2C2C;
  --panel-ink-2: #A3A3A3;

  --present: #23824A;  --present-soft: #E4F3E9;
  --late: #B25F0C;     --late-soft: #FBEEDC;
  --leave: #6B55C4;    --leave-soft: #EEEBFA;
  --holiday: #A07A0E;  --holiday-soft: #F7F0D8;
  --missing: #C93A2A;  --missing-soft: #FBE6E3;
  --pending: #5E5E5E;  --pending-soft: #EFEFEE;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 12px;
  --shadow-sheet: 0 20px 60px rgba(0, 0, 0, .18);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --side: 236px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0E0E0E; --surface: #191919; --surface-2: #212121;
    --ink: #EDEDED; --ink-2: #A8A8A8; --ink-3: #8C8C8C; --line: #282828; --line-2: #383838;
    --accent: #EDEDED; --accent-ink: #EDEDED; --accent-soft: #2A2A2A; --on-accent: #111111;
    --hi: #4CC27A; --hi-ink: #5BCB86; --hi-soft: #17301F;
    --panel: #191919; --panel-2: #232323; --panel-line: #2E2E2E; --panel-ink-2: #9A9A9A;
    --present: #5BCB86; --present-soft: #17301F; --late: #E9A04E; --late-soft: #33250F;
    --leave: #A592F0; --leave-soft: #26213F; --holiday: #DDB548; --holiday-soft: #322A10;
    --missing: #F07462; --missing-soft: #3A1C18; --pending: #A8A8A8; --pending-soft: #262626;
    --shadow-sheet: 0 20px 60px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --canvas: #0E0E0E; --surface: #191919; --surface-2: #212121;
  --ink: #EDEDED; --ink-2: #A8A8A8; --ink-3: #8C8C8C; --line: #282828; --line-2: #383838;
  --accent: #EDEDED; --accent-ink: #EDEDED; --accent-soft: #2A2A2A; --on-accent: #111111;
  --hi: #4CC27A; --hi-ink: #5BCB86; --hi-soft: #17301F;
  --panel: #191919; --panel-2: #232323; --panel-line: #2E2E2E; --panel-ink-2: #9A9A9A;
  --present: #5BCB86; --present-soft: #17301F; --late: #E9A04E; --late-soft: #33250F;
  --leave: #A592F0; --leave-soft: #26213F; --holiday: #DDB548; --holiday-soft: #322A10;
  --missing: #F07462; --missing-soft: #3A1C18; --pending: #A8A8A8; --pending-soft: #262626;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; }

.print-only { display: none; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px 16px; border-right: 1px solid var(--line); background: var(--canvas); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.brand b { display: block; font-size: 17px; letter-spacing: -0.02em; line-height: 1.1; }
.brand small { color: var(--ink-3); font-size: 13px; }
.nav-label { margin: 18px 10px 6px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; min-height: 38px;
  text-decoration: none; color: var(--ink-2); font-weight: 500;
}
.nav-item:hover { background: var(--surface); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav-item[aria-current="page"] .ic { color: var(--accent); }
.count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.me-link { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; }
.me-link:hover, .me-link[aria-current="page"] { background: var(--surface); }
.me-link b { display: block; font-size: 14px; }
.me-link small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }

.main { min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 80px; outline: none; }
.page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.tabbar { display: none; }

/* ---------- avatar ---------- */
.avatar {
  --s: 36px; width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .38);
  background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 45% 26%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--h) 30% 26%); color: hsl(var(--h) 60% 86%); } }
.avatar.xs { --s: 24px; } .avatar.sm { --s: 30px; } .avatar.lg { --s: 48px; } .avatar.xl { --s: 72px; }

/* ---------- headings / blocks ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.sub { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }
.head-actions { display: flex; gap: 8px; }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.block.flush { padding: 0; gap: 0; overflow: hidden; }
.block.flush > .block-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.block-head h2 { font-size: 17px; }
.mini-h { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.link { background: none; border: 0; padding: 4px 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-note { color: var(--ink-2); font-size: 13.5px; }
.foot-note.pad { padding: 12px 20px 16px; }
.big-figure { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.big-figure small { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-top: 4px; }
.empty { padding: 28px 20px; color: var(--ink-2); }
.empty.big { padding: 56px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.on-accent { background: #fff; border-color: #fff; color: #1F35B5; }
.btn.on-accent:hover { background: #EEF1FF; }
.btn.ghost-accent { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn.ghost-accent:hover { background: rgba(255, 255, 255, .2); }
.btn.danger-quiet { align-self: flex-start; color: var(--missing); border-color: var(--line-2); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); text-decoration: none;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.k-present { background: var(--present-soft); color: var(--present); }
.chip.k-late { background: var(--late-soft); color: var(--late); }
.chip.k-leave { background: var(--leave-soft); color: var(--leave); }
.chip.k-holiday { background: var(--holiday-soft); color: var(--holiday); }
.chip.k-missing { background: var(--missing-soft); color: var(--missing); }
.chip.k-pending, .chip.k-today, .chip.k-future, .chip.k-weekend, .chip.k-muted { background: var(--pending-soft); color: var(--pending); }
.t-late { color: var(--late); } .t-missing { color: var(--missing); }

/* ---------- today: clock panel (signature) ---------- */
.clock-panel {
  background: var(--panel); color: #fff; border-radius: 22px; padding: clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 26px; position: relative; overflow: hidden;
}
.clock-panel::after { /* punched holes along the top edge, like a time card */
  content: ''; position: absolute; top: 14px; right: 24px; width: 120px; height: 10px;
  background: radial-gradient(circle at 5px 5px, rgba(0,0,0,.22) 4px, transparent 4.5px) 0 0 / 20px 10px repeat-x;
}
.clock-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.clock-now { font-size: clamp(56px, 8vw, 92px); font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
.clock-now span { font-size: .32em; letter-spacing: 0; font-weight: 600; margin-left: 6px; color: var(--panel-ink-2); }
.clock-status { margin-top: 12px; font-size: 17px; color: #fff; }
.clock-figures { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0; }
.clock-figures dt { font-size: 13px; color: var(--panel-ink-2); }
.clock-figures dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.clock-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.strip { position: relative; padding-bottom: 22px; }
.strip-track { position: relative; height: 34px; border-radius: 10px; background: rgba(0, 0, 0, .18); overflow: hidden; }
.strip-shift { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .07); border-left: 1px dashed rgba(255,255,255,.35); border-right: 1px dashed rgba(255,255,255,.35); }
.seg { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; }
.seg-work { background: #fff; }
.seg-break { background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 3px, transparent 3px 7px); }
.seg.open { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.strip-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #FFD66B; border-radius: 2px; }
.strip-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.strip-ticks span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--panel-ink-2); }
.strip-ticks span:first-child { transform: none; }
.strip-ticks span:last-child { transform: translateX(-100%); }

.notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.notice p { flex: 1; min-width: 200px; }
.notice-mark { width: 12px; height: 18px; border-radius: 6px; border: 2px dashed var(--missing); flex: none; }
.notice-mark.k-pending { border-color: var(--pending); }

.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.today-grid .week-block { grid-column: span 1; }
.span-2 { grid-column: span 2; }

.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; align-items: end; }
.week-bars li { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-track { position: relative; flex: 1; width: 100%; max-width: 30px; border-radius: 7px; background: var(--surface-2); overflow: hidden; display: flex; align-items: flex-end; }
.bar { width: 100%; background: var(--ink); border-radius: 7px; }
.week-bars .k-late .bar { background: var(--late); }
.week-bars .k-leave .bar { background: var(--leave-soft); }
.week-bars .k-holiday .bar { background: var(--holiday-soft); }
.week-bars .is-today .bar { background: var(--accent); }
.target { position: absolute; left: 0; right: 0; bottom: 80%; border-top: 1.5px dashed var(--line-2); }
.bar-val { font-size: 11.5px; color: var(--ink-2); height: 16px; white-space: nowrap; }
.bar-day { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.is-today .bar-day { color: var(--accent-ink); }

.bal-list { display: flex; flex-direction: column; gap: 14px; }
.bal-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.bal-list .num { color: var(--ink-2); font-size: 14px; }
.bal-list .num b { color: var(--ink); font-size: 17px; }
.meter { grid-column: 1 / -1; display: flex; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter > span { background: var(--leave); }
.meter > .pend { background: repeating-linear-gradient(135deg, var(--leave) 0 2px, transparent 2px 5px); opacity: .7; }

.date-tile { width: 46px; height: 50px; flex: none; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: var(--ink-2); line-height: 1.15; }
.date-tile b { font-size: 18px; color: var(--ink); }
.date-tile.k-holiday { background: var(--holiday-soft); border-color: transparent; color: var(--holiday); }
.date-tile.k-holiday b { color: var(--holiday); }
.date-tile.k-leave { background: var(--leave-soft); border-color: transparent; color: var(--leave); }
.date-tile.k-leave b { color: var(--leave); }
.date-tile.outline { background: transparent; border: 1.5px dashed var(--line-2); }
.up-list { display: flex; flex-direction: column; gap: 10px; }
.up-list li, .out-list li { display: flex; align-items: center; gap: 12px; }
.up-list b, .out-list b { display: block; font-size: 14.5px; }
.up-list small, .out-list small { color: var(--ink-2); font-size: 13px; }
.out-list { display: flex; flex-direction: column; gap: 8px; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news li { border-top: 2px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.news h3 { font-size: 15.5px; line-height: 1.3; }
.news p { color: var(--ink-2); font-size: 14px; }
.news small { color: var(--ink-3); font-size: 13px; margin-top: auto; }

/* ---------- figures row ---------- */
.figures { display: flex; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures > div { flex: 1; padding: 14px 16px 14px 0; min-width: 0; }
.figures > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.figures dt { font-size: 13px; color: var(--ink-2); }
.figures dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.figures.stacked { flex-direction: column; border: 0; }
.figures.stacked > div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); }
.figures.stacked > div:first-child { border-top: 0; }
.figures.stacked dd { font-size: 17px; }
.figures.small dd { font-size: 16px; }

/* ---------- attendance ---------- */
.month-bar { display: flex; align-items: center; gap: 8px; }
.month-name { font-size: 20px; min-width: 9.5em; text-align: center; }

.punchcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
  position: relative;
}
.punchcard::before { /* the clipped corner of a real punch card */
  content: ''; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--canvas) 50%, transparent 50%); border-top-left-radius: var(--r-lg);
}
.pc-head, .pc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pc-head span { text-align: center; font-size: 13px; color: var(--ink-3); font-weight: 600; padding-bottom: 8px; }
.pc-day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 92px;
  padding: 8px 4px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font: inherit; color: inherit; text-align: center;
}
button.pc-day:hover { border-color: var(--ink-3); background: var(--surface); }
.pc-num { align-self: flex-start; padding-left: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pc-hole { width: 16px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); flex: none; }
.pc-sub { font-size: 12px; color: var(--ink-2); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-blank { min-height: 92px; }
.pc-day.k-weekend { background: transparent; border-style: dashed; }
.pc-day.k-weekend .pc-hole { visibility: hidden; }
.pc-day.k-future { background: transparent; }
.pc-day.k-future .pc-hole { border-style: dashed; }
.k-present .pc-hole, .pc-hole.k-present { background: var(--ink); border-color: var(--ink); }
.k-late .pc-hole, .pc-hole.k-late { background: var(--late); border-color: var(--late); }
.k-leave .pc-hole, .pc-hole.k-leave { background: var(--leave); border-color: var(--leave); }
.k-holiday .pc-hole, .pc-hole.k-holiday { background: repeating-linear-gradient(135deg, var(--holiday) 0 3px, transparent 3px 6px); border-color: var(--holiday); }
.k-missing .pc-hole, .pc-hole.k-missing { border: 2px dashed var(--missing); background: transparent; }
.pc-day.k-missing { background: var(--missing-soft); border-color: transparent; }
.pc-day.k-missing .pc-sub { color: var(--missing); font-weight: 600; }
.pc-day.k-leave { background: var(--leave-soft); border-color: transparent; }
.pc-day.k-holiday { background: var(--holiday-soft); border-color: transparent; }
.pc-day.pend { background: transparent; border: 1.5px dashed var(--leave); }
.pc-day.pend .pc-hole { background: transparent; border: 2px solid var(--leave); }
.pc-day.pend .pc-sub { color: var(--leave); }
.pc-day.k-today .pc-hole { border-color: var(--accent); border-style: dashed; }
.pc-day.is-today { box-shadow: 0 0 0 2px var(--accent); border-color: transparent; }
.pc-day.is-today .pc-num { color: var(--accent-ink); }
.pc-day.live .pc-hole { background: linear-gradient(to top, var(--accent) 60%, transparent 60%); border-color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .pc-hole { width: 10px; height: 16px; border-radius: 5px; }
.legend.inline { border: 0; padding: 0; margin: 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { white-space: nowrap; text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .num { text-align: right; }
.table td.act { text-align: right; padding-top: 6px; padding-bottom: 6px; }
.table td:has(.cell-sub) { white-space: normal; }
.cell-sub { display: block; color: var(--ink-3); font-size: 12.5px; }
.log td { color: var(--ink-2); }

/* ---------- leave ---------- */
.balances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.bal { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.bal + .bal { border-left: 1px solid var(--line); }
.bal h2 { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bal-num { font-size: 15px; color: var(--ink-2); }
.bal-num b { font-size: 34px; color: var(--ink); letter-spacing: -0.03em; margin-right: 2px; }
.bal-foot { font-size: 13px; color: var(--ink-3); }
.leave-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.seg-ctl { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-ctl button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-height: 32px; }
.seg-ctl button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.req-list > li { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.req-list > li:last-child { border-bottom: 0; }
.req-body { flex: 1; min-width: 0; }
.req-title { font-weight: 600; }
.req-meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.req-note { margin-top: 8px; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.team-cal { overflow-x: auto; padding: 12px 20px 4px; }
.tc-row { display: grid; grid-template-columns: 110px repeat(14, minmax(22px, 1fr)); gap: 3px; align-items: center; min-width: 470px; }
.tc-row + .tc-row { margin-top: 5px; }
.tc-headrow span { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.15; }
.tc-headrow small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; }
.tc-headrow .we { color: var(--ink-3); }
.tc-headrow .now { color: var(--accent-ink); }
.tc-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; text-align: left !important; white-space: nowrap; }
.tc-cell { height: 24px; border-radius: 5px; background: var(--surface-2); }
.tc-cell.we { background: transparent; }
.tc-cell.leave { background: var(--leave); }
.tc-cell.leave.pend { background: transparent; box-shadow: inset 0 0 0 2px var(--leave); }
.tc-cell.holiday { background: var(--holiday-soft); box-shadow: inset 0 0 0 1.5px var(--holiday); }

/* ---------- payroll ---------- */
.pay-layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.pay-layout > *, .leave-layout > *, .today-grid > * { min-width: 0; }
.money th { white-space: normal; }
.slip-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 24px; }
.slip-list ul { display: flex; flex-direction: column; gap: 2px; }
.slip-list button {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; text-align: left; font-size: 14px; color: var(--ink-2);
}
.slip-list button:hover { background: var(--surface); }
.slip-list button[aria-current="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; }
.slip-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.slip-bar span { display: block; height: 100%; background: var(--ink-3); }
[aria-current="true"] .slip-bar span { background: var(--accent); }

.payslip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 22px; outline: none; }
.slip-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.slip-head h2 { font-size: 22px; }
.net { text-align: right; }
.net p:first-child { font-size: 13.5px; color: var(--ink-2); }
.net-num { font-size: clamp(34px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.slip-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.slip-meta dt { font-size: 13px; color: var(--ink-3); }
.slip-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.slip-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; align-items: start; }
.money caption { text-align: left; font-weight: 700; font-size: 15px; padding-bottom: 8px; }
.money th, .money td { padding: 9px 0; }
.money tbody th { font-weight: 400; color: var(--ink-2); }
.money tfoot th, .money tfoot td { font-weight: 700; border-top: 1.5px solid var(--ink); border-bottom: 0; }
.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.sb-net { background: var(--ink); } .sb-tax { background: var(--accent); } .sb-oth { background: var(--line-2); }
.slip-foot { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
.pay-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kv li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv li span:first-child { color: var(--ink-2); }

/* ---------- documents ---------- */
.doc-list li + li { border-top: 1px solid var(--line); }
.doc { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: none; border: 0; text-align: left; text-decoration: none; min-height: 56px; }
.doc:hover { background: var(--surface-2); }
.doc .ic { color: var(--ink-3); }
.doc span { flex: 1; }
.doc b { display: block; font-weight: 600; }
.doc small { color: var(--ink-2); font-size: 13px; }
.doc-size { flex: none !important; color: var(--ink-3); font-size: 13px; }
.doc-preview { aspect-ratio: 1 / 1.3; max-height: 260px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.doc-preview span { height: 8px; border-radius: 4px; background: var(--line); }
.doc-preview span.short { width: 60%; }

/* ---------- holidays ---------- */
.hol-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hol-month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.hol-month h2 { font-size: 16px; margin-bottom: 10px; }
.hol { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.hol + .hol { border-top: 1px solid var(--line); }
.hol-name { flex: 1; min-width: 140px; }
.hol-name b { display: block; font-weight: 600; }
.hol-name small { color: var(--ink-2); font-size: 13px; }
.hol.past { opacity: .55; }
.hol.is-next .hol-name small { color: var(--accent-ink); font-weight: 600; }

/* ---------- people ---------- */
.filters { display: flex; flex-direction: column; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); max-width: 460px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .ic { color: var(--ink-3); }
.search input { flex: 1; border: 0; background: transparent; min-height: 44px; outline: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-height: 34px; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.person { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); align-items: flex-start; }
.person-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.person-name { font-weight: 700; }
.person-name small { font-weight: 400; color: var(--ink-3); }
.person-role { color: var(--ink-2); font-size: 14px; }
.person-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.person-meta .ic { width: 15px; height: 15px; }
.person-meta span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 8px 3px 6px; }
.person-actions { display: flex; gap: 6px; }
.person-actions .icon-btn { width: 36px; height: 36px; }
.person-actions .ic { width: 18px; height: 18px; }

/* ---------- approvals ---------- */
.approvals { display: flex; flex-direction: column; gap: 10px; }
.appr { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.appr-body { flex: 1; min-width: 220px; }
.appr-actions { display: flex; gap: 6px; }

/* ---------- profile ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head > div { flex: 1; min-width: 220px; }
.profile-head h1 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.025em; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl { margin: 0; display: flex; flex-direction: column; }
.dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dl > div:first-child { border-top: 0; }
.dl dt { color: var(--ink-2); font-size: 14px; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- more (mobile) ---------- */
.more-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.more-list li + li { border-top: 1px solid var(--line); }
.more-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; min-height: 60px; }
.more-list a > .ic { color: var(--accent); }
.more-list span { flex: 1; }
.more-list b { display: block; font-weight: 600; }
.more-list small { color: var(--ink-2); font-size: 13.5px; }
.more-list .chev { color: var(--ink-3); width: 18px; }

/* ---------- sheet ---------- */
.sheet {
  border: 0; padding: 0; margin: 0 0 0 auto; width: min(480px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sheet);
}
.sheet::backdrop { background: rgba(10, 14, 24, .38); }
.sheet[open] { animation: sheet-in .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet-inner { display: flex; flex-direction: column; height: 100%; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 19px; }
.sheet-body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; outline: none; }
.sheet-body form { display: flex; flex-direction: column; gap: 16px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; position: sticky; bottom: -20px; background: var(--surface); padding: 12px 0 4px; }
.form-h { font-size: 16px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.day-status { display: flex; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 15px; outline: none; color-scheme: light dark;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[type=file] { padding: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-card { position: relative; display: flex; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; }
.radio-card b { display: block; font-size: 14.5px; font-weight: 600; }
.radio-card small { color: var(--ink-2); font-size: 13px; }
.radio-card input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.radio-card input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.radio-card input:disabled + span { opacity: .45; cursor: not-allowed; }
.summary:not(:empty) { padding: 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.form-error { color: var(--missing); font-weight: 600; font-size: 14px; }
.form-error:empty { display: none; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); font-weight: 500; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toast-in .22s ease-out; transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast-undo { border: 0; background: transparent; color: var(--accent-soft); font-weight: 700; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }


/* ================= Skymetrics theme layer ================= */
body { font-size: 14.5px; letter-spacing: -0.005em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }
.num, .clock-now, .clock-figures dd, .big-figure, .figures dd, .bal-num b, .bal-list .num, .net-num, .bar-val,
.pc-sub, .money td, .date-tile b, .count, .table td.num, .slip-list .num, .strip-ticks span, .kv .num, .board-sum, .sc-lbl {
  font-family: var(--mono); letter-spacing: -0.02em; font-feature-settings: 'zero' 0;
}
.big-figure small, .figures dd small { font-family: var(--font); letter-spacing: 0; }
.page-head h1, .profile-head h1 { font-weight: 500; letter-spacing: -0.035em; font-size: clamp(26px, 3vw, 32px); }

/* shell */
.sidebar { background: var(--surface); padding: 16px 12px; gap: 4px; }
.brand { padding: 4px 8px 14px; }
.brand-mark { width: 28px; height: 28px; }
.brand b { font-size: 15px; font-weight: 600; }
.nav-item { min-height: 34px; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.nav-item .ic { width: 18px; height: 18px; }
.nav-item:hover { background: var(--surface-2); }
.nav-item[aria-current="page"] { background: var(--surface-2); box-shadow: none; }
.nav-item[aria-current="page"] .ic { color: var(--ink); }
.nav-label { font-size: 12.5px; margin: 16px 10px 4px; }
.count { background: var(--ink); color: var(--surface); font-family: var(--mono); font-size: 11.5px; height: 20px; min-width: 20px; }
.me-link:hover, .me-link[aria-current="page"] { background: var(--surface-2); }
.mode { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin: 0 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.mode a { text-align: center; padding: 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.mode a[aria-current="true"] { background: var(--ink); color: var(--surface); }

/* blocks */
.block { border-radius: var(--r); padding: 16px; gap: 12px; }
.block.flush > .block-head { padding: 14px 16px; }
.block-head h2 { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.mini-h { font-weight: 500; font-size: 13px; }
.link { color: var(--ink); font-weight: 500; font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }
.big-figure { font-size: 28px; font-weight: 500; }
.muted { color: var(--ink-3); font-weight: 400; }

/* buttons: pills, like the reference */
.btn { border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 500; font-size: 14px; border-color: var(--line-2); }
.btn.sm { border-radius: 999px; min-height: 32px; font-size: 13px; }
.btn.lg { border-radius: 999px; min-height: 46px; font-size: 15px; }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.on-accent { background: #fff; border-color: #fff; color: #121212; }
.btn.on-accent:hover { background: #E9E9E9; }
.btn.ghost-accent { background: var(--panel-2); border-color: var(--panel-line); color: #fff; }
.btn.ghost-accent:hover { background: #2C2C2C; }
.icon-btn { border-radius: 999px; width: 36px; height: 36px; }
.fchip { min-height: 32px; font-weight: 500; font-size: 13px; padding: 5px 13px; }
.seg-ctl { border-radius: 999px; }
.seg-ctl button { border-radius: 999px; font-weight: 500; }
.seg-ctl button[aria-selected="true"] { background: var(--ink); color: var(--surface); box-shadow: none; }

/* badges replace dotted chips */
.chip { border-radius: 6px; padding: 2px 8px; font-size: 12.5px; font-weight: 500; }
.chip::before { display: none; }

/* KPI cards, as in the reference */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; border: 0; }
.figures > div, .figures > div + div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.figures dt { font-size: 12.5px; }
.figures dd { font-size: 22px; font-weight: 500; margin-top: 8px; }
.figures dd small { font-size: 13px; color: var(--ink-3); }
.figures.stacked { display: flex; gap: 0; }
.figures.stacked > div, .figures.stacked > div + div { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 9px 0; }
.figures.stacked > div:first-child { border-top: 0; }
.figures.stacked dd { font-size: 15px; margin: 0; }
.balances { border-radius: var(--r); }
.bal-num b { font-weight: 500; font-size: 30px; }
.bal h2 { font-weight: 500; font-size: 13px; }

/* clock panel: the charcoal card with green */
.clock-panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 16px; }
.clock-panel::after { display: none; }
.clock-now { font-family: var(--font); font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.clock-now span { font-family: var(--font); color: var(--panel-ink-2); font-weight: 400; }
.clock-figures dd { font-weight: 400; font-size: 18px; }
.clock-figures div:nth-child(3) dd { font-family: var(--font); letter-spacing: -0.01em; }
.strip-track { background: var(--panel-2); border-radius: 8px; }
.strip-shift { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); }
.seg-work { background: var(--hi); }
.seg-break { background: repeating-linear-gradient(135deg, rgba(255,255,255,.4) 0 2px, transparent 2px 6px); }
.seg.open { box-shadow: 0 0 0 3px rgba(76,194,122,.25); }
.strip-now { background: #fff; }

/* bars: grey, with green for today */
.bar { background: var(--line-2); border-radius: 4px; }
.bar-track { background: var(--surface-2); border-radius: 4px; max-width: 26px; }
.week-bars .k-present .bar { background: #B5B5B3; }
.week-bars .k-late .bar { background: var(--late); opacity: .75; }
.week-bars .is-today .bar { background: var(--hi); }
.is-today .bar-day { color: var(--hi-ink); }
.meter { height: 5px; box-shadow: none; background: var(--surface-2); }
.meter > span { background: var(--ink); }
.meter > .pend { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 5px); opacity: .5; }
.date-tile { border-radius: 8px; }
.date-tile b { font-weight: 500; }
.news li { border-top: 1px solid var(--line-2); }

/* punch card */
.punchcard { border-radius: var(--r); }
.punchcard::before { border-top-left-radius: var(--r); }
.pc-day { border-radius: 8px; }
.k-present .pc-hole, .pc-hole.k-present { background: var(--ink); border-color: var(--ink); }
.pc-day.is-today { box-shadow: 0 0 0 2px var(--hi); }
.pc-day.is-today .pc-num { color: var(--hi-ink); }
.pc-day.k-today .pc-hole { border-color: var(--hi); }
.pc-day.live .pc-hole { background: linear-gradient(to top, var(--hi) 60%, transparent 60%); border-color: var(--hi); }

/* payroll */
.slip-list button[aria-current="true"] { background: var(--surface); }
[aria-current="true"] .slip-bar span { background: var(--hi); }
.net-num { font-weight: 400; letter-spacing: -0.05em; }
.sb-net { background: var(--ink); } .sb-tax { background: var(--hi); }
.payslip { border-radius: var(--r); }
.money tfoot th, .money tfoot td { border-top-width: 1px; }

/* forms + misc */
.field input, .field select, .field textarea { border-radius: 8px; }
.radio-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.search { border-radius: 999px; }
.search:focus-within, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.sheet { border-radius: 14px 0 0 14px; }
.toast-undo { color: var(--hi); }
.avatar { font-weight: 600; }

/* ================= admin components ================= */
.hr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.hr-grid > * { min-width: 0; }
.stack-chart { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; height: 170px; align-items: end; }
.stack-chart li { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sc-col { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.sc-col > span { display: block; width: 100%; }
.sc-present { background: #B5B5B3; } .sc-late { background: var(--late); } .sc-leave { background: var(--leave); } .sc-missing { background: var(--missing); }
.sc-lbl { font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.2; }
.sc-lbl b { display: block; font-family: var(--font); font-weight: 500; color: var(--ink-2); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 10px; font-size: 13.5px; }
.hbars b { font-family: var(--mono); font-weight: 500; text-align: right; }
.hbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.hbars li:first-child .hbar span { background: var(--hi); }
.board-group + .board-group { padding-top: 12px; border-top: 1px solid var(--line); }
.board-group .mini-h { margin-bottom: 8px; }
.up-list.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.req-side.row { flex-direction: row; align-items: center; }
.req-meta.small { font-size: 13px; color: var(--ink-3); }
.link.sm { font-size: 12.5px; padding: 0; }
form.stack { display: flex; flex-direction: column; gap: 14px; }

.steps { display: flex; gap: 8px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 500; color: var(--ink-3); font-size: 14px; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); flex: none; }
.step-dot .ic { width: 14px; height: 14px; }
.steps .cur { color: var(--ink); border-color: var(--ink); }
.steps .cur .step-dot { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.steps .done { color: var(--ink-2); }
.steps .done .step-dot { background: var(--hi); border-color: var(--hi); color: #fff; }
.steps.compact li { padding: 6px 0; border: 0; background: none; font-size: 13px; gap: 6px; }
.steps.compact .step-dot { width: 20px; height: 20px; font-size: 11px; }

.emp-cell { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; min-height: 36px; }
button.emp-cell:hover b, button.emp-cell:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.emp-cell b { display: block; font-weight: 500; }
.emp-cell small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.emp-head { display: flex; align-items: center; gap: 14px; }
.table.pay tfoot th, .table.pay tfoot td { font-weight: 600; border-top: 1px solid var(--line-2); border-bottom: 0; background: var(--surface-2); }
.table thead th { font-weight: 500; }

.board-wrap { padding: 14px 16px; overflow: hidden; }
.board { overflow-x: auto; }
.board-row { display: grid; grid-template-columns: 170px repeat(14, minmax(26px, 1fr)) 92px; gap: 4px; align-items: center; min-width: 720px; }
.board-row + .board-row { margin-top: 4px; }
.board-headrow > span { text-align: center; font-size: 12px; font-weight: 500; color: var(--ink-2); line-height: 1.15; padding-bottom: 6px; }
.board-headrow small { display: block; color: var(--ink-3); font-weight: 400; font-size: 11px; }
.board-headrow .we { color: var(--ink-3); }
.board-headrow .now { color: var(--hi-ink); }
.board-name { text-align: left !important; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name .emp-cell { min-height: 30px; gap: 8px; }
.board-sum { font-size: 12.5px; text-align: right; color: var(--ink-2); white-space: nowrap; }
.board-sum small { display: block; font-size: 11.5px; }
.bcell { height: 32px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); border: 0; padding: 0; }
.bcell .pc-hole { width: 9px; height: 16px; border-radius: 5px; border-width: 1.5px; }
.bcell.k-weekend, .bcell.k-future, .bcell.k-none { background: transparent; }
.bcell.k-weekend .pc-hole, .bcell.k-future .pc-hole, .bcell.k-none .pc-hole { visibility: hidden; }
.bcell.k-leave { background: var(--leave-soft); }
.bcell.k-holiday { background: var(--holiday-soft); }
.bcell.k-missing { background: var(--missing-soft); cursor: pointer; }
button.bcell.k-missing:hover { box-shadow: inset 0 0 0 1.5px var(--missing); }
.bcell.pend .pc-hole { border-style: solid; border-color: var(--pending); }
.bcell.k-notyet .pc-hole { border-style: dashed; }

@media (max-width: 1180px) { .hr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .hr-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .stack-chart { gap: 4px; height: 140px; }
  .req-side.row { padding-left: 44px; justify-content: flex-end; }
  .figures { grid-template-columns: 1fr 1fr; }
  .board-wrap { padding: 10px 8px; }
  .board-row { grid-template-columns: 110px repeat(14, minmax(22px, 1fr)) 64px; min-width: 620px; }
  .emp .emp-cell small { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .today-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
  .pay-extra { grid-template-columns: 1fr 1fr; }
  .leave-layout { grid-template-columns: 1fr; }
  .pay-layout { grid-template-columns: 1fr; }
  .slip-list { position: static; }
  .slip-list ul { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .slip-list li { flex: none; scroll-snap-align: start; }
  .slip-list button { width: 150px; grid-template-columns: 1fr; gap: 2px; border-color: var(--line); background: var(--surface); }
}
@media (max-width: 980px) {
  .leave-layout, .profile-grid { grid-template-columns: 1fr; }
  .balances { grid-template-columns: 1fr 1fr; }
  .bal:nth-child(3) { border-left: 0; }
  .bal:nth-child(n+3) { border-top: 1px solid var(--line); }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  .app { display: block; }
  .sidebar { display: none; }
  .main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 50px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
  .tabbar a .ic { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  .tabbar .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--missing); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .slip-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { gap: 18px; }
  .today-grid, .pay-extra { grid-template-columns: 1fr; }
  .clock-panel { border-radius: 20px; gap: 20px; }
  .clock-figures { width: 100%; justify-content: space-between; }
  .clock-figures dd { font-size: 17px; }
  .clock-actions .btn { flex: 1; }
  .strip-ticks span:nth-child(even) { display: none; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .figures dd { font-size: 19px; }
  .punchcard { padding: 12px 8px; }
  .pc-head, .pc-grid { gap: 4px; }
  .pc-day, .pc-blank { min-height: 64px; }
  .pc-day { padding: 6px 2px; gap: 4px; }
  .pc-num { padding-left: 2px; font-size: 12px; }
  .pc-hole { width: 12px; height: 20px; }
  .pc-sub { display: none; }
  .month-name { min-width: 0; flex: 1; font-size: 18px; }
  .balances { grid-template-columns: 1fr 1fr; }
  .bal { padding: 14px; }
  .bal-num b { font-size: 28px; }
  .net { text-align: left; }
  .slip-head { flex-direction: column; align-items: flex-start; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; }
  .row2, .radio-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .hol-list { grid-template-columns: 1fr; }
  .req-list > li { flex-wrap: wrap; }
  .req-side { flex-direction: row; align-items: center; width: 100%; padding-left: 60px; justify-content: space-between; }

  /* tables become stacked rows */
  .table:not(.money) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table:not(.money), .table:not(.money) tbody, .table:not(.money) tr, .table:not(.money) th, .table:not(.money) td { display: block; }
  .table:not(.money) tr { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .table:not(.money) tbody tr:last-child { border-bottom: 0; }
  .table:not(.money) th, .table:not(.money) td { padding: 0; border: 0; text-align: left; }
  .table:not(.money) tbody th { grid-column: 1 / -1; font-size: 15px; }
  .table:not(.money) td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--ink-3); }
  .table:not(.money) td.num { text-align: left; }
  .table:not(.money) td.act:empty { display: none; }
  .table:not(.money) td.act { text-align: left; }

  .sheet { margin: auto 0 0; width: 100vw; height: auto; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  .sheet-inner { max-height: 92dvh; }
  .sheet-head { position: relative; padding-top: 22px; }
  .sheet-head::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); }
  .sheet-actions { bottom: -20px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .sheet-actions .btn { flex: 1; min-height: 48px; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 380px) {
  .row2, .radio-grid { grid-template-columns: 1fr; }
  .clock-figures > div:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- print: payslip only ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; }
  .sidebar, .tabbar, .page-head, .slip-list, .pay-extra, .toasts, .skip, .split-bar, .legend.inline { display: none !important; }
  .app { display: block; } .main { padding: 0; }
  .pay-layout { display: block; }
  .payslip { border: 0; padding: 0; }
  .print-only { display: block; margin-bottom: 12px; font-size: 13px; }
}

/* headers stay in the text face even when the column holds numbers */
.table thead th, .board-headrow > span, .table tfoot th { font-family: var(--font); letter-spacing: 0; }
@media (max-width: 640px) {
  .table.pay tfoot { display: none; }
  .table:not(.money) td[data-l]::before { font-family: var(--font); letter-spacing: 0; }
}

/* ---------- punch location ---------- */
.clock-privacy { font-size: 13px; color: var(--panel-ink-2); line-height: 1.7; margin-top: -8px; }
.clock-privacy .where { color: #fff; }
.clock-privacy .where a { color: var(--panel-ink-2); }
.where { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.where .ic { width: 15px; height: 15px; flex: none; }
.where a { color: inherit; font-size: .92em; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: currentColor; opacity: .8; }
.w-office .ic { color: var(--hi); }
.w-away .ic { color: var(--late); }
.w-none .ic, .w-manual .ic { color: var(--ink-3); }
.clock-privacy .w-away { color: #F2C08A; }
.clock-privacy .w-none { color: #F2A496; }
.log .w-away { color: var(--late); }
.log .w-none { color: var(--missing); }
.loc-row dd { font-size: 14px !important; font-family: var(--font) !important; letter-spacing: 0 !important; text-align: right; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[aria-busy="true"] { opacity: 1; cursor: progress; }
.bcell { position: relative; }
.off-dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--surface); }
.off-dot.static { position: static; display: inline-block; }

/* ---------- reimbursements ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: f; }
.flow li { counter-increment: f; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.flow li::before { content: counter(f); font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.flow b { font-weight: 500; font-size: 14px; }
.flow small { color: var(--ink-2); font-size: 12.5px; }
.claim-list li + li { border-top: 1px solid var(--line); }
.claim-row { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.claim-row:hover { background: var(--surface-2); }
.claim-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.claim-ic .ic { width: 18px; height: 18px; }
.claim-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.claim-main b { font-weight: 500; }
.claim-main small { color: var(--ink-2); font-size: 13px; }
.claim-status { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.claim-status.s-returned { color: var(--late) !important; }
.claim-status.s-rejected { color: var(--missing) !important; }
.claim-status.s-paid, .claim-status.s-verified { color: var(--hi-ink) !important; }
.trk { display: inline-flex; gap: 3px; flex: none; }
.trk i { width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.trk i.on { background: var(--hi); }
.trk.stopped i.on { background: var(--ink-3); }
.trk i.x { background: var(--missing); }
.claim-amt { text-align: right; display: flex; flex-direction: column; gap: 2px; flex: none; }
.claim-amt b { font-weight: 500; font-size: 15px; }
.claim-amt small { font-size: 12px; }

.type-pick { display: grid; gap: 10px; }
.type-card { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font: inherit; color: inherit; }
.type-card:hover { border-color: var(--ink); }
.type-card .ic { grid-row: span 2; width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.type-card b { font-weight: 500; font-size: 15px; }
.type-card small { color: var(--ink-2); font-size: 13px; }
.back { align-self: flex-start; }
.items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.item-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.item-top b { font-weight: 500; }
.calc { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--line-2); }
.rcpt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.rcpt img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.rcpt > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpt-up { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13.5px; cursor: pointer; position: relative; }
.rcpt-up:hover { border-color: var(--ink); color: var(--ink); }
.rcpt-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rcpt-up:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 2px; flex: none; }
.summary b.num { font-size: 18px; margin-left: 6px; }

.claim-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.claim-total { font-size: 32px; letter-spacing: -0.04em; line-height: 1.1; }
.claim-now { font-size: 14px; }
.flags { padding: 12px 14px; border-radius: var(--r); background: var(--late-soft); color: var(--ink); font-size: 13.5px; }
.flags b { font-weight: 600; color: var(--late); }
.flags ul { list-style: disc; padding-left: 18px; margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.items-t th b { font-weight: 500; color: var(--ink); }
.items-t .cell-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.items-t .cell-sub .ic { width: 14px; height: 14px; }
.rcpt-thumb { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.rcpt-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); transition: width .2s, height .2s; }
.rcpt-thumb.big { cursor: zoom-out; }
.rcpt-thumb.big img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.timeline { display: flex; flex-direction: column; gap: 0; padding-top: 4px; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--hi); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.tl-dot .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.timeline .done .tl-dot { background: var(--hi); border-color: var(--hi); color: #fff; }
.timeline .cur .tl-dot { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 12px var(--ink); }
.timeline .bad .tl-dot { background: var(--missing); border-color: var(--missing); color: #fff; }
.timeline b { font-weight: 500; font-size: 14px; display: block; }
.timeline small { display: block; color: var(--ink-2); font-size: 13px; }
.tl-note { margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink) !important; }
.sheet-actions.wrap { flex-wrap: wrap; }
.notice-mark.k-late { border-color: var(--late); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .claim-row { flex-wrap: wrap; }
  .claim-amt { flex-direction: row; gap: 10px; align-items: baseline; width: 100%; padding-left: 50px; text-align: left; }
  .sheet-actions.wrap .btn { flex: 1 1 100%; }
}

/* ---------- claim filters + stage tracking ---------- */
.claim-filters { gap: 10px 16px; }
.claim-filters .chips { flex: 1; }
.fcount { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.fchip[aria-pressed="true"] .fcount { color: inherit; opacity: .7; }
.kind-sel select { min-height: 32px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 30px 0 12px; font-size: 13px; font-weight: 500; }
.claim-amt .chip { align-self: flex-end; margin-top: 4px; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 620px; }
.stages li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stages i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); margin-bottom: 6px; }
.stages b { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.stages small { font-size: 12px !important; color: var(--ink-3) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages .st-done i { background: var(--hi); }
.stages .st-done b { color: var(--ink); }
.stages .st-done small { color: var(--ink-2) !important; }
.stages .st-now i { background: linear-gradient(90deg, var(--ink) 50%, var(--line-2) 50%); }
.stages .st-now b { color: var(--ink); font-weight: 600; }
.stages .st-now small { color: var(--ink) !important; }
.stages .st-stop i { background: var(--missing); }
.stages .st-stop b, .stages .st-stop small { color: var(--missing) !important; }
.stages .st-off { opacity: .45; }
.sheet .stages { max-width: none; margin: 0; }
@media (max-width: 640px) {
  .claim-filters { flex-direction: column; align-items: stretch; }
  .claim-filters .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .kind-sel select { width: 100%; }
  .fchip { flex: none; }
  .stages small { white-space: normal; }
}

/* ---------- payslip list by financial year ---------- */
.slip-list ul { max-height: 70vh; overflow-y: auto; }
.slip-fy { font-size: 12px; color: var(--ink-3); padding: 12px 12px 4px; font-weight: 500; }
.slip-fy:first-child { padding-top: 2px; }
@media (max-width: 1180px) { .slip-list ul { max-height: none; overflow-y: visible; } .slip-fy { align-self: center; padding: 0 4px 0 8px; white-space: nowrap; writing-mode: horizontal-tb; } }

/* ---------- payroll privacy ---------- */
.lock { max-width: 420px; margin: clamp(24px, 8vh, 80px) auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lock h1 { font-size: 26px; letter-spacing: -0.03em; font-weight: 500; }
.lock .sub { margin: 0 auto; }
.lock-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--panel); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.lock-ic .ic { width: 26px; height: 26px; }
.lock-form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; text-align: left; }
.lock-form .btn { width: 100%; }
.lock .foot-note { margin-top: 8px; }
input.pin { font-family: var(--mono); letter-spacing: .4em; text-align: center; font-size: 20px !important; }
input.pin.big { font-size: 28px !important; min-height: 60px !important; letter-spacing: .6em; }
input.pin::placeholder { color: var(--line-2); }
.lockbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--hi-soft); color: var(--hi-ink); font-size: 13.5px; }
.lockbar > span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lockbar .ic { width: 16px; height: 16px; }
.lockbar .muted { color: var(--ink-2); }
.lockbar b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.masked { font-family: var(--mono); letter-spacing: .05em; color: var(--ink-3); user-select: none; }
body.privacy-veil .payslip, body.privacy-veil .slip-list, body.privacy-veil .pay-extra, body.privacy-veil .page-hr-payroll .table, body.privacy-veil .page-hr-payroll .figures,
body.privacy-veil .page-hr-people .table .num, body.privacy-veil .masked-zone, body.privacy-veil .page-documents .block { filter: blur(14px); transition: filter .15s; }
body.privacy-veil .page-payroll::before, body.privacy-veil .page-hr-payroll::before, body.privacy-veil .page-documents::before {
  content: 'Hidden while this window isn’t in focus'; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30;
  background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { body.privacy-veil * { transition: none !important; } }

/* ---------- onboarding form ---------- */
.sheet.wide { width: min(600px, 100vw); }
.hire-steps { flex-wrap: wrap; gap: 4px 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hire-steps li { flex: none; }
.form-h.first { border-top: 0; padding-top: 0; }
.hint { color: var(--ink-3); font-size: 12.5px; }
.field-err { color: var(--missing); font-size: 13px; font-weight: 500; }
[aria-invalid="true"] { border-color: var(--missing) !important; }
fieldset { display: flex; flex-direction: column; gap: 12px; }
.doc-check { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); }
.doc-check li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.doc-check li + li { border-top: 1px solid var(--line); }
.dc-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; flex: none; }
.dc-mark.ok { background: var(--hi); border: 0; color: #fff; }
.dc-mark .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.dc-label { flex: 1; min-width: 0; }
.dc-label b { display: block; font-weight: 500; font-size: 14px; }
.dc-label small { color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.doc-check label.btn { position: relative; cursor: pointer; }
.doc-check label.btn:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.rev { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.rev-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rev-head h3 { font-size: 14px; font-weight: 600; }
.rev .dl > div { grid-template-columns: 140px 1fr; padding: 6px 0; font-size: 14px; }
@media (max-width: 640px) { .hire-steps .step-name { display: none; } .hire-steps li.cur .step-name { display: inline; } .sheet.wide { width: 100vw; } }
.steps.hire-steps { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
@media (max-width: 640px) { .steps.hire-steps { flex-direction: row; gap: 6px; } .steps.hire-steps li { padding: 4px 0; } }

/* ---------- edit employee ---------- */
.emp-head { flex-wrap: wrap; }
.emp-head > div { flex: 1; min-width: 160px; }
.edit-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.edit-tabs button { flex: none; border: 0; background: transparent; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); position: relative; min-height: 34px; }
.edit-tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.edit-tabs button.has-err { color: var(--missing); }
.edit-tabs button[aria-selected="true"].has-err { color: var(--surface); }
.edit-tabs i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--missing); margin-left: 6px; vertical-align: 2px; }
.audit { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.audit summary { cursor: pointer; }
.audit ul { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.audit b { font-weight: 500; color: var(--ink); }
.audit small { display: block; color: var(--ink-3); }

/* ================= attendance calendar (Apple Calendar–style) ================= */
.cal { display: flex; flex-direction: column; gap: 12px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-title { font-size: clamp(24px, 3vw, 32px); font-weight: 400; letter-spacing: -0.03em; color: var(--ink-3); }
.cal-title b { font-weight: 600; color: var(--ink); }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav .icon-btn { width: 32px; height: 32px; }
.cal-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 84px; }
.cal-head span { padding: 10px 10px 8px; text-align: right; font-size: 13px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.cal-head .we { color: var(--ink-3); }
.cal-head .cal-total-h { text-align: center; color: var(--ink-3); background: var(--surface-2); border-left: 1px solid var(--line); }
.cal-cell {
  min-height: 116px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  background: var(--surface); border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: inherit; color: inherit; text-align: left;
}
.cal-grid > :nth-child(8n + 1) { border-left: 0; }
.cal-cell.we { background: color-mix(in srgb, var(--surface-2) 65%, var(--surface)); }
button.cal-cell { cursor: pointer; }
button.cal-cell:hover { background: var(--surface-2); }
button.cal-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 0; }
.cal-num { align-self: flex-end; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 13px; font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 2px; white-space: nowrap; }
.cal-cell.we .cal-num { color: var(--ink-2); }
.cal-cell.out .cal-num { color: var(--ink-3); opacity: .55; font-weight: 400; }
.cal-cell.is-today .cal-num { background: var(--hi); color: #fff; font-weight: 600; }
.ev { display: flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.3; min-width: 0; }
.ev-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); letter-spacing: -0.02em; }
.ev.k-holiday .ev-t, .ev.k-leave .ev-t, .ev.k-missing .ev-t, .ev.k-today .ev-t, .ev.k-pending .ev-t { font-family: var(--font); letter-spacing: 0; }
.ev .cap { width: 5px; height: 10px; border-radius: 3px; flex: none; background: currentColor; }
.ev-sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-left: 18px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-pin { width: 12px; height: 12px; flex: none; margin-left: auto; opacity: .8; }
.ev.pend { background: transparent; border: 1px dashed currentColor; padding: 2px 6px; }
.ev.k-pending { color: var(--pending); }
.ev.k-present { background: var(--present-soft); color: var(--present); }
.ev.k-late { background: var(--late-soft); color: var(--late); }
.ev.k-live { background: var(--hi); color: #fff; }
.ev.k-live .cap { background: #fff; }
.ev.k-leave { background: var(--leave-soft); color: var(--leave); }
.ev.k-holiday { background: var(--holiday-soft); color: var(--holiday); }
.ev.k-holiday .cap { background: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px currentColor; }
.ev.k-missing { background: var(--missing-soft); color: var(--missing); }
.ev.k-missing .cap { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.ev.k-today { background: transparent; color: var(--ink-3); padding-left: 0; }
.ev.k-today .cap { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hi); }
.cal-total { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--surface-2); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-total b { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: -0.02em; }
.cal-total small { font-size: 11.5px; color: var(--ink-3); }
.cal-grid > :nth-last-child(-n + 8) { border-bottom: 0; }
.cal-legend { border-top: 0; margin-top: 0; padding-top: 0; }
.cal-legend .swatch { padding: 3px 5px; }
.cal-legend .ev-pin { margin: 0; }
@media (max-width: 1100px) {
  .cal-head, .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) 64px; }
  .ev-sub { display: none; }
}
@media (max-width: 760px) {
  /* phone: events collapse to coloured dots under the date, like the iPhone month view */
  .cal-head, .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cal-total, .cal-total-h { display: none !important; }
  .cal-grid > :nth-child(8n + 1) { border-left: 1px solid var(--line); }
  .cal-grid > .cal-cell:nth-child(8n + 1) { border-left: 0; }
  .cal-head span { text-align: center; padding: 8px 0 6px; font-size: 12px; }
  .cal-cell { min-height: 58px; padding: 4px 2px 6px; align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 3px; }
  .cal-num { align-self: auto; width: 100%; min-width: 0; height: 26px; margin: 0 0 2px; font-size: 14px; padding: 0; }
  .cal-cell .cal-num { flex: 0 0 100%; }
  .cal-cell.is-today .cal-num { background: radial-gradient(circle at center, var(--hi) 12.5px, transparent 13px); }
  .lg-pin { display: none !important; }
  .ev, .ev.pend { padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; }
  .ev-t, .ev-sub, .ev-pin { display: none; }
  .ev .cap { width: 6px; height: 6px; border-radius: 50%; }
  .ev.k-live .cap { background: var(--hi); }
  .ev.k-holiday .cap { background: var(--holiday); box-shadow: none; }
  .ev.pend .cap { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
  .cal-legend .ev.pend.swatch { border: 0 !important; }
  .cal-legend .swatch .cap { width: 8px; height: 8px; }
}

/* ---------- attendance chart colours (validated: lightness band, chroma, CVD ≥ 8, normal-vision ≥ 15) ---------- */
:root { --c-ontime: #26794B; --c-late: #DB9D30; --c-leave: #7663D6; --c-nopunch: #D44E3B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-ontime: #2A7D4C; --c-late: #C2862A; --c-leave: #7E6BD6; --c-nopunch: #C9503E; } }
:root[data-theme="dark"] { --c-ontime: #2A7D4C; --c-late: #C2862A; --c-leave: #7E6BD6; --c-nopunch: #C9503E; }
.sc-present { background: var(--c-ontime) !important; } .sc-late { background: var(--c-late) !important; }
.sc-leave { background: var(--c-leave) !important; } .sc-missing { background: var(--c-nopunch) !important; }
.sc-col { background: transparent; gap: 2px; border-radius: 0; overflow: visible; }
.sc-col > span { border-radius: 2px; }
.sc-col > span:first-child { border-radius: 2px 2px 4px 4px; }
.sc-col > span:last-child { border-radius: 4px 4px 2px 2px; }
.sc-col > span:only-child { border-radius: 4px; }
.stack-chart li { position: relative; outline: none; border-radius: 6px; }
.stack-chart li:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.stack-chart li.is-today .sc-lbl b { color: var(--ink); font-weight: 600; }
.stack-chart li.is-today .sc-col { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--line-2); border-radius: 5px; }
.stack-chart li:hover .sc-col, .stack-chart li:focus-visible .sc-col { filter: brightness(1.08); }
.sc-tip { display: none; position: absolute; bottom: calc(100% - 20px); left: 50%; transform: translateX(-50%); z-index: 5; min-width: 150px;
  background: var(--ink); color: var(--surface); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; }
.sc-tip b { font-weight: 600; margin-bottom: 2px; }
.sc-tip > span { display: flex; align-items: center; gap: 7px; }
.sc-tip em { margin-left: auto; font-style: normal; font-family: var(--mono); }
.sc-tip .sw { width: 9px; height: 9px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.stack-chart li:hover .sc-tip, .stack-chart li:focus-visible .sc-tip { display: flex; }
.stack-chart li:first-child .sc-tip, .stack-chart li:nth-child(2) .sc-tip { left: 0; transform: none; }
.stack-chart li:last-child .sc-tip, .stack-chart li:nth-last-child(2) .sc-tip { left: auto; right: 0; transform: none; }
.sc-table summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.sc-table[open] summary { margin-bottom: 8px; }
.sc-table .table th, .sc-table .table td { padding: 7px 10px; font-size: 13px; }
.legend .sw.sc-present, .legend .sw.sc-late, .legend .sw.sc-leave, .legend .sw.sc-missing { border-radius: 3px; }

/* ---------- HR overview: two stacked columns, no gaps between cards ---------- */
.hr-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.hr-main, .hr-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hr-side .block { gap: 12px; }
.hr-main .up-list.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 20px; }
@media (max-width: 1000px) { .hr-cols { grid-template-columns: 1fr; } }
.big-figure .masked { letter-spacing: -0.04em; font-size: .8em; }

/* ---------- HR holiday calendar ---------- */
.hol-admin { display: flex; flex-direction: column; }
.ha-month + .ha-month { border-top: 1px solid var(--line); }
.ha-month h3 { font-size: 13px; font-weight: 500; color: var(--ink-3); padding: 14px 16px 4px; }
.ha-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.ha-row.past { opacity: .55; }
.ha-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ha-main b { font-weight: 500; }
.ha-main small { color: var(--ink-2); font-size: 13px; }
.ha-acts { display: flex; gap: 6px; align-items: center; }
.ha-acts .icon-btn { width: 32px; height: 32px; }
.ha-acts .ic { width: 16px; height: 16px; }
.dd-text { font-family: var(--font) !important; font-size: 17px !important; letter-spacing: -0.01em !important; }
.dd-text small { display: block; margin-top: 2px; }
.office-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 4px 0 0 28px; }
.office-checks[hidden] { display: none; }
.btn.primary.danger { background: var(--missing); border-color: var(--missing); color: #fff; }
.hol-note { color: var(--ink-2) !important; }
@media (max-width: 640px) { .ha-row { flex-wrap: wrap; } .ha-acts { width: 100%; padding-left: 60px; } }

/* ================= HR attendance board (redesign) ================= */
.board2 { display: flex; flex-direction: column; gap: 12px; }
.b2-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.b2-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.b2 { display: grid; grid-template-columns: var(--cols); min-width: 980px; }
.b2-row { display: contents; }
.b2-row > * { display: flex; align-items: center; min-height: 52px; padding: 6px 3px; border-bottom: 1px solid var(--line); background: var(--surface); }
.b2-row:last-child > * { border-bottom: 0; }
.b2-row:not(.b2-head):hover > * { background: var(--surface-2); }
.b2-head > * { min-height: 44px; background: var(--surface-2) !important; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.b2-name { padding-left: 14px !important; position: sticky; left: 0; z-index: 1; min-width: 0; }
.b2-name .emp-cell { gap: 10px; min-width: 0; }
.b2-name .emp-cell b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.b2-name .emp-cell small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-name .emp-cell > span:last-child { min-width: 0; }
.b2-head .bx { flex-direction: column; justify-content: center; gap: 1px; line-height: 1.1; }
.b2-head .bx small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.b2-head .bx b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.b2-head .bx.now b { background: var(--hi); color: #fff; border-radius: 999px; padding: 1px 7px; }
.b2-head .bx.now small { color: var(--hi-ink); }
.bx { justify-content: center; position: relative; }
.bx.wk { border-left: 1px solid var(--line); }
.bx.we { padding: 0; background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, transparent 3px 6px) !important; }
.b2-row:not(.b2-head) > .bx.now { background: color-mix(in srgb, var(--hi) 9%, var(--surface)); }
.b2-row:not(.b2-head):hover > .bx.now { background: color-mix(in srgb, var(--hi) 14%, var(--surface-2)); }
button.bx { border: 0; border-bottom: 1px solid var(--line); font: inherit; cursor: pointer; }
.blk { width: 100%; max-width: 64px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 3px; position: relative; font-size: 12px; }
.blk b { font-family: var(--mono); font-weight: 500; letter-spacing: -0.03em; }
.blk.k-present { background: var(--c-ontime); color: #fff; }
.blk.k-late { background: var(--c-late); color: #1b1203; }
.blk.k-leave { background: var(--c-leave); color: #fff; }
.blk.k-leave b, .blk.k-holiday b, .blk.k-missing b, .blk.k-pend b { font-family: var(--font); letter-spacing: 0; font-size: 11.5px; }
.blk.k-holiday { background: repeating-linear-gradient(135deg, var(--holiday-soft) 0 4px, color-mix(in srgb, var(--holiday) 22%, transparent) 4px 8px); color: var(--holiday); }
.blk.k-missing { background: color-mix(in srgb, var(--c-nopunch) 14%, transparent); color: var(--c-nopunch); box-shadow: inset 0 0 0 1.5px var(--c-nopunch); }
.blk.k-pend { background: transparent; color: var(--ink-2); outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; }
.blk.k-notyet { color: var(--ink-3); outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; }
.blk.k-future, .blk.k-none, .blk.k-today { background: transparent; }
.blk.live::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 14px; height: 2px; margin-left: -7px; border-radius: 1px; background: rgba(255,255,255,.75); }
button.bx:hover .blk.k-missing { background: var(--c-nopunch); color: #fff; }
.bx-pin { position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: var(--ink); color: var(--surface); stroke-width: 2.4; }
.bx-pin.lg { position: static; width: 16px; height: 16px; }
.b2-sum { font-size: 12.5px; color: var(--ink-2); padding: 6px 10px !important; }
.b2-sum.c { justify-content: center; }
.att { display: flex; align-items: center; gap: 8px; width: 100%; }
.att b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--ink); min-width: 36px; text-align: right; }
.att-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.att-bar i { display: block; height: 100%; background: var(--c-ontime); border-radius: 3px; }
.att-bar i.low { background: var(--c-late); }
.cnt { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.cnt.k-late { background: color-mix(in srgb, var(--c-late) 22%, transparent); color: var(--late); }
.cnt.k-missing { background: color-mix(in srgb, var(--c-nopunch) 18%, transparent); color: var(--missing); }
.b2-legend { border-top: 0; margin: 0; padding: 0; }
.blk.sw2 { width: 22px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-we { width: 14px; height: 14px; border-radius: 3px; display: inline-block; background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 4px); }
@media (max-width: 640px) { .b2-tools { flex-direction: column; align-items: stretch; } .b2-name { box-shadow: 1px 0 0 var(--line); } }

/* ================= dropdowns: one consistent style everywhere ================= */
:root { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5E5E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); }
select {
  -webkit-appearance: none; appearance: none; color-scheme: light dark; cursor: pointer;
  background-color: var(--surface); background-image: var(--chev); background-repeat: no-repeat;
  background-position: right 12px center; background-size: 16px 16px;
  color: var(--ink); font: inherit; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
select::-ms-expand { display: none; }
select option { background: var(--surface); color: var(--ink); }
select:disabled { opacity: .5; cursor: not-allowed; }
/* form dropdowns: same box as text inputs, room for the arrow */
.field select { padding: 10px 40px 10px 12px !important; min-height: 44px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface) var(--chev) no-repeat right 12px center / 16px 16px; }
.field select:hover { border-color: var(--ink-3); }
/* toolbar dropdowns (sort, type): match the filter chips */
.kind-sel { display: inline-flex; flex: none; }
.kind-sel select {
  height: 34px; min-height: 34px; padding: 0 38px 0 14px !important; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; line-height: 32px; background: var(--surface) var(--chev) no-repeat right 12px center / 14px 14px; min-width: 150px;
}
.kind-sel select:hover { border-color: var(--ink-3); background-color: var(--surface-2); }
.field select[aria-invalid="true"] { border-color: var(--missing) !important; }
.kind-sel select:focus-visible, .field select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) { .kind-sel, .kind-sel select { width: 100%; } }

/* avatar colours when dark mode is switched on by hand */
:root[data-theme="dark"] .avatar { background: hsl(var(--h) 30% 26%); color: hsl(var(--h) 60% 86%); }

/* ================= checkboxes and radio buttons ================= */
input[type="checkbox"], .check input[type="radio"] {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 2px 0 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface);
  display: inline-grid; place-content: center; transition: background-color .12s, border-color .12s, box-shadow .12s;
}
.check input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::after {
  content: ''; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent);
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .12s ease-out;
}
.check input[type="radio"]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .12s ease-out; }
input[type="checkbox"]:hover, .check input[type="radio"]:hover { border-color: var(--ink-3); }
input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input[type="radio"]:checked { border-color: var(--ink); }
.check input[type="radio"]:checked::after { transform: scale(1); }
input[type="checkbox"]:focus-visible, .check input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1.5px var(--ink); }
input[type="checkbox"]:disabled, .check input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
.check { cursor: pointer; align-items: flex-start; }
.check span { padding-top: 1px; }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"]::after, .check input[type="radio"]::after { transition: none; } }

/* ================= dark mode switch ================= */
.theme-switch { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.theme-switch:hover { background: var(--surface-2); color: var(--ink); }
.theme-switch .ic { width: 18px; height: 18px; }
.theme-switch span { flex: 1; }
.sw-track { width: 36px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; flex: none; transition: background-color .18s; }
.sw-track i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease-out; }
.theme-switch[aria-checked="true"] .sw-track { background: var(--hi); }
.theme-switch[aria-checked="true"] .sw-track i { transform: translateX(14px); }
.theme-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.theme-switch.side { margin-top: auto; }
.theme-switch.side + .me-link { margin-top: 2px; }
.more-list .theme-switch.row { padding: 14px 16px; min-height: 60px; border-radius: 0; color: var(--ink); font-size: 15px; }
.more-list .theme-switch.row .ic { color: var(--accent); width: 20px; height: 20px; }
.seg-ctl.wide { display: flex; width: 100%; }
.seg-ctl.wide button { flex: 1; }
@media (prefers-reduced-motion: reduce) { .sw-track, .sw-track i { transition: none; } }

/* ================= sign-in ================= */
body.signed-out .app { display: block; }
body.signed-out .sidebar, body.signed-out .tabbar { display: none !important; }
body.signed-out .main { padding: 0; }
.si { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.9fr) 1.1fr; }
.si-brand { background: var(--panel); color: #fff; padding: 36px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 1px solid var(--panel-line); }
.si-logo { display: flex; align-items: center; gap: 10px; }
.si-logo b { display: block; font-size: 16px; font-weight: 600; }
.si-logo small { color: var(--panel-ink-2); font-size: 13px; }
.si-brand .si-logo small { color: #9A9A9A; }
.si-brand .brand-mark path { fill: #fff; } .si-brand .brand-mark g { fill: #161616; }
.si-card { max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.si-time { font-size: clamp(56px, 7vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.si-time span { font-size: .3em; color: #9A9A9A; margin-left: 6px; letter-spacing: 0; }
.si-holes { display: grid; grid-template-columns: repeat(7, 22px); gap: 10px 14px; }
.si-holes i { width: 14px; height: 24px; border-radius: 7px; background: #2A2A2A; }
.si-holes .h-present { background: var(--c-ontime); } .si-holes .h-late { background: var(--c-late); } .si-holes .h-leave { background: var(--c-leave); }
.si-holes .h-missing { background: transparent; box-shadow: inset 0 0 0 2px var(--c-nopunch); } .si-holes .h-we { background: transparent; box-shadow: inset 0 0 0 1.5px #333; }
.si-card p:last-child { color: #C9C9C9; font-size: 17px; line-height: 1.5; max-width: 34ch; }
.si-foot { color: #8C8C8C; font-size: 13px; }
.si-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; gap: 24px; background: var(--canvas); }
.si-panel { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.si-panel h1 { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.si-panel .sub { margin-top: -6px; }
.si-panel form { display: flex; flex-direction: column; gap: 14px; }
.si-panel .btn.lg { width: 100%; }
.si-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink-2); }
.si-back .ic { width: 16px; height: 16px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px !important; }
.pw .link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); text-decoration: none; }
.si-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.si-demo { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px; gap: 8px; }
.si-demo legend { font-size: 12.5px; color: var(--ink-3); font-weight: 500; padding: 0 4px; margin: 0; }
.si-hint { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.si-hint summary { cursor: pointer; font-weight: 500; }
.si-hint p { margin-top: 8px; line-height: 1.7; }
.si-hint code { font-family: var(--mono); font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; user-select: all; }
.si-legal { font-size: 12px; color: var(--ink-3); max-width: 400px; text-align: center; }
.si-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 0; }
.si-wait .spinner { width: 28px; height: 28px; }
.si-logo.mobile { display: none; }
.me-row { margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.me-row .me-link { flex: 1; min-width: 0; margin-top: 0; }
.me-row .me-link span { min-width: 0; } .me-row .me-link b, .me-row .me-link small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-btn { width: 34px; height: 34px; border-color: transparent; background: transparent; flex: none; }
.so-btn:hover { border-color: var(--line-2); }
.so-btn .ic { width: 17px; height: 17px; }
.more-list .so-row { color: var(--missing) !important; }
.more-list .so-row .ic { color: var(--missing) !important; }
@media (max-width: 860px) {
  .si { grid-template-columns: 1fr; }
  .si-brand { display: none; }
  .si-logo.mobile { display: flex; margin-bottom: 18px; }
  .si-main { justify-content: flex-start; padding-top: 48px; }
}

/* ---------- access levels ---------- */
.access-pick { gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.access-pick legend { padding-top: 14px; }
.radio-stack { display: flex; flex-direction: column; gap: 8px; }
.radio-stack .radio-card span { display: flex; flex-direction: column; gap: 2px; }
.acc { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; margin-right: 4px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.acc-manager { background: var(--leave-soft); color: var(--leave); border-color: transparent; }
.acc-hr { background: var(--ink); color: var(--surface); border-color: transparent; }
.acc-accounts { background: var(--holiday-soft); color: var(--holiday); border-color: transparent; }

/* ---------- password reset ---------- */
.si-ok { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--hi-soft); color: var(--hi-ink); }
.si-ok.bad { background: var(--missing-soft); color: var(--missing); }
.si-ok .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.si-demo-box { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.si-resend { font-size: 13.5px; color: var(--ink-2); }
.si-resend .link:disabled { color: var(--ink-3); text-decoration: none; cursor: default; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -6px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--line); }
.pw-meter i.on.s1 { background: var(--c-nopunch); } .pw-meter i.on.s2 { background: var(--c-late); }
.pw-meter i.on.s3, .pw-meter i.on.s4 { background: var(--c-ontime); }
.pw-label { font-size: 12.5px; color: var(--ink-2); margin-top: -8px; min-height: 16px; }
.pw-rules { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-3); margin-top: -4px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; }
.pw-rules .ic { width: 14px; height: 14px; padding: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); stroke-width: 3; color: transparent; flex: none; }
.pw-rules li.ok { color: var(--ink); }
.pw-rules li.ok .ic { background: var(--c-ontime); border-color: var(--c-ontime); color: #fff; }
.pw-rules li.later { opacity: .7; }

.dd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
form[data-form=pw-change] { display: flex; flex-direction: column; gap: 14px; }
form[data-form=pw-change] .pw-meter { margin-top: -8px; }

/* ================= Inday brand ================= */
.brand-mark .bm-tile { fill: var(--ink); }
.brand-mark .bm-dot { fill: var(--hi); }
.brand-mark .bm-cap { fill: var(--surface); }
.brand b, .si-logo b { font-size: 19px !important; font-weight: 600 !important; letter-spacing: -0.04em; line-height: 1; }
.brand small, .si-logo small { margin-top: 3px; display: block; }
.si-brand .brand-mark .bm-tile { fill: #FFFFFF; }
.si-brand .brand-mark .bm-dot { fill: #161616; }
.si-brand .brand-mark .bm-cap { fill: #3FAE65; }
.si-tag { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; color: #fff; margin-bottom: -8px; }

/* wordmark */
.wordmark { display: block; height: 30px; width: auto; color: var(--ink); overflow: visible; }
.brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 10px 16px; }
.brand-co { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.si-logo { flex-direction: column; align-items: flex-start; gap: 8px; }
.si-logo .wordmark { height: 40px; }
.si-brand .wordmark { color: #fff; }
.si-brand .brand-co { color: #8C8C8C; }
.si-logo.mobile .wordmark { height: 36px; }

.wordmark-text { font-size: 24px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.si-brand .wordmark-text { color: #fff; font-size: 30px; }

/* inday logo (switch + wordmark), outlines from Urbanist Black */
.wordmark { display: block; height: 28px; width: auto; color: var(--ink); }
.si-logo .wordmark { height: 38px; } .si-logo.mobile .wordmark { height: 32px; }
.si-brand .wordmark { color: #fff; }

/* ---------- HR password reset ---------- */
.ticks-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; font-size: 14px; color: var(--ink-2); }
.ticks-list li { display: flex; gap: 10px; align-items: baseline; }
.ticks-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--hi); flex: none; transform: translateY(-2px); }
.temp-pw { display: flex; flex-wrap: nowrap; gap: 3px; margin: 16px 0 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.temp-pw span { min-width: 1.05em; padding: 6px 2px; text-align: center; border-radius: 8px; background: var(--surface-2, var(--bg-2)); }
.temp-pw span:nth-child(5), .temp-pw span:nth-child(10) { background: transparent; color: var(--ink-3); }

/* portfolio prototype: one-tap demo sign-in */
.si-quick { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.si-quick .sub { margin-bottom: 12px; }
.si-quick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .si-quick-row { grid-template-columns: 1fr; } }

/* wide tables never clip their last column: tighter cells on laptop widths, and the card scrolls sideways if it still needs to */
.block.flush:has(> .table) { overflow-x: auto; }
@media (max-width: 1560px) { .table th, .table td { padding-left: 14px; padding-right: 14px; } .table.emp td:nth-child(2) { white-space: normal; } }
@media (max-width: 1360px) { .table th, .table td { padding-left: 10px; padding-right: 10px; } .table.emp td:nth-child(3) { white-space: normal; } }

/* portfolio demo: scroll without a visible scrollbar, like the real app on a phone */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
