/* 5th Ocean Payroll — Fifth Ocean Studios brand */
:root {
  --navy: #0e1e42;        /* wordmark */
  --abyss: #13304d;       /* logo ring */
  --current: #1b5e7e;     /* deep wave */
  --crest: #3586a0;       /* light wave */
  --foam: #eef4f6;        /* page */
  --surface: #ffffff;
  --ink: #0e1e42; --muted: #5a6b80; --line: #d9e3e9; --line-soft: #e8eff3;
  --crest-soft: #e2f0f4;
  --ok: #17734a; --ok-soft: #e0f3e9; --warn: #8a5a00; --warn-soft: #fcefd6; --bad: #b42318; --bad-soft: #fde8e6;
  --display: 'Saira', 'IBM Plex Sans', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --r-lg: 14px; --r: 10px; --r-sm: 7px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--body); background: var(--foam); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--current); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--crest); outline-offset: 2px; }
h1, h2, .display { font-family: var(--display); letter-spacing: -0.005em; }
h1 { font-size: 28px; font-weight: 600; margin: 0 0 4px; line-height: 1.2; }
h2 { font-size: 19px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--muted); }
.boot { padding: 40px; color: var(--muted); }
.money { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- admin shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 0 8px 24px; }
.side .logo img { width: 168px; display: block; }
.side .logo span { display: block; font-size: 12px; color: #9fb7c8; margin-top: 6px; padding-left: 2px; }
.side a { color: #c4d6e2; padding: 9px 12px; border-radius: var(--r-sm); font-weight: 500; border-left: 3px solid transparent; }
.side a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.side a.on { background: rgba(53,134,160,.22); color: #fff; border-left-color: var(--crest); }
.side .spacer { flex: 1; }
.side .who { font-size: 12px; color: #8ea6b8; padding: 10px 12px 0; }
.main { padding: 30px 36px 70px; max-width: 1280px; width: 100%; min-width: 0; }

/* ---------- employee shell ---------- */
.eshell { min-height: 100vh; }
.etop { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.etop .in { max-width: 1040px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.etop .logo img { height: 48px; display: block; }
.etop nav { display: flex; gap: 4px; flex: 1; }
.etop nav a { color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: 99px; }
.etop nav a:hover { color: var(--ink); background: var(--foam); text-decoration: none; }
.etop nav a.on { color: #fff; background: var(--abyss); }
.etop .me { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--crest); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.emain { max-width: 1040px; margin: 0 auto; padding: 30px 24px 90px; }
.bottom-nav { display: none; }

/* ---------- common ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { margin: 0; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.dash2 { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i, .donut li i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid-l { stroke: var(--line-soft); }
.chart .ax, .donut .ax { font: 11px var(--body); fill: var(--muted); }
.chart .val { font: 600 11px var(--body); fill: var(--ink); }
.donut { display: flex; gap: 18px; align-items: center; }
.donut svg { width: 140px; flex: none; }
.donut .d-total { font: 600 15px var(--display); fill: var(--ink); }
.donut ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 7px; font-size: 13px; }
.donut li { display: grid; grid-template-columns: auto minmax(0,1fr) auto 38px; align-items: center; gap: 6px; }
.donut li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut li em { font-style: normal; color: var(--muted); font-size: 12px; }
.donut li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.donut li small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 6px 0 8px; }
.mini span { display: block; font-size: 12px; color: var(--muted); }
.mini b { font: 600 17px var(--display); font-variant-numeric: tabular-nums; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.todo li:last-child { border-bottom: 0; }
.todo li b { font-variant-numeric: tabular-nums; color: var(--muted); }
.todo li.warn b { color: #b06d10; }
.todo .names { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-family: var(--display); font-size: 26px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--muted); font-size: 12px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.section-title h2 { margin: 0; }

/* buttons & forms */
button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: 99px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
button:hover, .btn:hover { border-color: #b3c4cf; text-decoration: none; }
button.primary, .btn.primary { background: var(--abyss); color: #fff; border-color: var(--abyss); }
button.primary:hover, .btn.primary:hover { background: var(--navy); }
button.light, .btn.light { background: #fff; color: var(--navy); border-color: #fff; }
button.ghost-light, .btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
button.danger { color: var(--bad); border-color: #f1c4bf; }
button.small, .btn.small { padding: 5px 12px; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--crest-soft); border-color: var(--crest); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 18px; }
.form-grid .wide { grid-column: span 3; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.check input { width: auto; }
.hint { color: var(--muted); font-size: 13px; margin-top: 3px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 6px; margin: 0 0 18px; }
legend { font-family: var(--display); font-weight: 600; padding: 0 6px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { background: #f5f9fb; font-weight: 600; color: var(--muted); font-size: 13px; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 600; background: #f5f9fb; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f1f7fa; }

/* pills & notes */
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--crest-soft); color: var(--current); }
.pill.grey { background: #edf1f4; color: var(--muted); }
.note { padding: 12px 16px; border-radius: var(--r); background: var(--warn-soft); color: #6b4500; margin-bottom: 16px; }
.note.info { background: var(--crest-soft); color: var(--abyss); }
.note.bad { background: var(--bad-soft); color: var(--bad); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--abyss); border-color: var(--crest); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* payroll run steps — a real sequence */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin-bottom: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 13px; color: var(--muted); position: relative; }
.step b { display: block; font-size: 14px; color: var(--ink); margin: 2px 0; }
.step .num { font-family: var(--display); font-weight: 600; color: var(--crest); }

/* ---------- the signature: pay card ---------- */
.paycard { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 20px; padding: 30px 32px 28px; }
.paycard::after { content: ''; position: absolute; right: -40px; bottom: -70px; width: 330px; height: 280px;
  background: url('/brand/mark-white.png') no-repeat center / contain; opacity: .07; pointer-events: none; }
.paycard .lbl { color: #a9c3d3; font-size: 15px; }
.paycard .net { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.paycard .sub { color: #a9c3d3; }
.paycard .split { display: flex; gap: 34px; margin: 22px 0 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.paycard .split div { font-size: 13px; color: #a9c3d3; }
.paycard .split b { display: block; font-family: var(--display); font-size: 21px; color: #fff; font-weight: 500; }
.paycard .row { position: relative; z-index: 1; }
.secret-amt { font-variant-numeric: tabular-nums; }
.list .amt.open { color: var(--current); font-size: 14px; font-weight: 600; }
.paycard.empty .net { font-size: 26px; }

/* to-do list */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.todo li:last-child { border-bottom: 0; }
.todo .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.todo .dot.done { background: var(--ok-soft); color: var(--ok); }
.todo .dot.open { background: var(--warn-soft); color: var(--warn); }
.todo .txt { flex: 1; }
.todo .txt small { display: block; color: var(--muted); font-size: 13px; }

/* simple lists */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.list a.item, .list div.item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.list .item:last-child { border-bottom: 0; }
.list a.item:hover { background: #f5f9fb; text-decoration: none; }
.list .item .grow { flex: 1; }
.list .item small { display: block; color: var(--muted); font-size: 13px; }
.list .item .amt { font-family: var(--display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.list .fy { padding: 10px 20px; background: #f5f9fb; color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }

/* regime comparison */
.regimes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.regime { border: 2px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: #fff; }
.regime.best { border-color: var(--crest); background: #f3f9fb; }
.regime .t { font-family: var(--display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.regime .lbl { font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* documents checklist */
.doclist .item .state { width: 92px; text-align: right; }

/* modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(14,30,66,.5); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: min(680px, 100%); padding: 24px 26px; box-shadow: 0 24px 60px rgba(14,30,66,.3); }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
#toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 60; }
#toast div { background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 99px; margin-top: 8px; box-shadow: 0 10px 30px rgba(14,30,66,.3); }
#toast div.err { background: var(--bad); border-radius: var(--r); }
.secret { font-family: var(--display); font-size: 22px; background: var(--crest-soft); padding: 10px 16px; border-radius: var(--r-sm); letter-spacing: .03em; user-select: all; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .art { background: var(--navy); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art img.logo { width: 220px; position: relative; z-index: 1; }
.auth .art .big { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1.15; max-width: 12em; position: relative; z-index: 1; }
.auth .art p { color: #a9c3d3; max-width: 30em; position: relative; z-index: 1; }
.auth .art::after { content: ''; position: absolute; right: -90px; bottom: -110px; width: 520px; height: 440px; background: url('/brand/mark-white.png') no-repeat center / contain; opacity: .08; }
.auth .pane { display: grid; place-items: center; padding: 32px 24px; }
.auth .form { width: min(380px, 100%); }
.auth .form .mlogo { display: none; }
.auth .form p.sub { color: var(--muted); margin: 0 0 22px; }
.auth button.primary { width: 100%; justify-content: center; padding: 11px; }

/* payslip */
.slip { background: #fff; max-width: 860px; margin: 0 auto; padding: 32px 36px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.slip .top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; border-bottom: 3px solid var(--abyss); padding-bottom: 14px; margin-bottom: 16px; }
.slip .top img { height: 50px; }
.slip .top .co { font-size: 12px; color: var(--muted); line-height: 1.45; }
.slip .top .co b { color: var(--ink); font-size: 13px; }
.slip .top .title { text-align: right; color: var(--muted); }
.slip .top .title b { font-family: var(--display); font-size: 20px; display: block; color: var(--ink); }
.slip .who { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.slip .who h2 { font-family: var(--display); font-size: 18px; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.slip .who span { color: var(--muted); }
.slip .facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px 18px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.slip .facts span, .slip .days span { display: block; font-size: 11px; color: var(--muted); }
.slip .facts b, .slip .days b { font-weight: 500; overflow-wrap: anywhere; }
.slip .days { display: flex; gap: 28px; flex-wrap: wrap; padding: 12px 0; }
.slip table.pay { width: 100%; border: 1px solid var(--line); border-collapse: collapse; }
.slip table.pay th { background: #f2f7f9; text-align: left; font-size: 12px; }
.slip table.pay th, .slip table.pay td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); white-space: normal; }
.slip table.pay td:nth-child(3), .slip table.pay th:nth-child(3) { border-left: 1px solid var(--line); }
.slip table.pay tr.total td { font-weight: 600; border-top: 1px solid var(--line); background: #f8fbfc; }
.slip .netband { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; background: var(--abyss); color: #fff; border-radius: var(--r); padding: 12px 16px; }
.slip .netband small { display: block; font-size: 11px; color: #a9c3d3; }
.slip .netband b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.slip .netband .words { font-size: 12px; color: #dbe8ef; text-align: right; }
.slip .ytd { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; background: #f5f9fb; border-radius: var(--r); }
.slip .ytd > span { font-weight: 600; color: var(--muted); font-size: 12px; }
.slip .ytd small { display: block; font-size: 11px; color: var(--muted); }
.slip .ytd b { font-variant-numeric: tabular-nums; }
.slip .foot { color: var(--muted); font-size: 11px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.glossary dt { font-weight: 600; margin-top: 10px; }
.glossary dd { margin: 2px 0 0; color: var(--muted); }
details summary { cursor: pointer; color: var(--current); font-weight: 500; }
.noprint { margin: 0 auto 16px; max-width: 820px; }

@page { size: A4; margin: 12mm; }
@media print {
  body { background: #fff; }
  .side, .etop, .bottom-nav, .noprint, .head .row, details.glossary-box { display: none !important; }
  .shell { display: block; } .main, .emain { padding: 0; }
  .slip { border: 0; padding: 0; max-width: none; font-size: 14px; }
  .slip .top { grid-template-columns: auto 1fr auto !important; padding-bottom: 18px; margin-bottom: 20px; }
  .slip .top img { height: 64px; }
  .slip .top .co { font-size: 13px; } .slip .top .co b { font-size: 15px; }
  .slip .top .title b { font-size: 26px; }
  .slip .who h2 { font-size: 22px; }
  .slip .facts { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 14px 20px; padding: 16px 0 18px; }
  .slip .facts span, .slip .days span { font-size: 12px; }
  .slip .days { padding: 16px 0; }
  .slip table.pay th { font-size: 13px; }
  .slip table.pay th, .slip table.pay td { padding: 10px 12px; }
  .slip .netband { padding: 16px 20px; margin-top: 18px; } .slip .netband b { font-size: 28px; } .slip .netband .words { font-size: 14px; }
  .slip .ytd { margin-top: 18px; padding: 14px 18px; }
  .slip .foot { font-size: 12px; margin-top: 26px; }
  .slip .netband, .slip table.pay th, .slip .ytd, .slip table.pay tr.total td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slip, .slip table.pay, .slip .netband { break-inside: avoid; }
}
@media (prefers-reduced-motion: no-preference) {
  .paycard .net { animation: rise .5s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .donut { flex-direction: column; align-items: stretch; } .donut svg { margin: 0 auto; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px 14px; }
  .side .logo { padding: 0 8px 8px; width: 100%; } .side .logo img { width: 140px; } .side .logo span, .side .spacer, .side .who { display: none; }
  .main { padding: 20px 16px 50px; }
  .g2, .g3, .g4, .dash2, .steps, .form-grid, .regimes { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .etop nav, .etop .me .name { display: none; }
  .etop .in { padding: 10px 16px; justify-content: space-between; }
  .etop .logo img { height: 34px; }
  .emain { padding: 20px 16px 100px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--abyss); font-weight: 600; }
  .bottom-nav a:hover { text-decoration: none; }
  .card.stat { padding: 14px 16px; } .stat .v { font-size: 22px; }
  .paycard { padding: 24px 22px; border-radius: 16px; } .paycard .net { font-size: 42px; } .paycard .split { gap: 22px; }
  .auth { grid-template-columns: 1fr; } .auth .art { display: none; } .auth .form .mlogo { display: block; height: 44px; margin-bottom: 24px; }
}
@media screen and (max-width: 700px) {
  .slip { padding: 18px; }
  .slip .top { grid-template-columns: 1fr; } .slip .top .title { text-align: left; } .slip .top img { height: 40px; }
  .slip .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .slip table.pay, .slip table.pay tbody, .slip table.pay tr { display: block; }
  .slip table.pay thead { display: none; }
  .slip table.pay tr { display: grid; grid-template-columns: 1fr auto; }
  .slip table.pay td:empty { display: none; }
  .slip table.pay td:nth-child(3) { border-left: 0; }
  .slip .netband .words { text-align: left; }
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--current); font: 600 13px var(--body); padding: 6px 8px; min-height: 0; box-shadow: none; cursor: pointer; }
.pw-eye:hover { text-decoration: underline; background: transparent; }

/* leave & attendance */
.home-top { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
.today-card .clock { display: flex; gap: 28px; margin: 6px 0 4px; }
.today-card .clock small { display: block; font-size: 12px; color: var(--muted); }
.today-card .clock b { font: 600 26px var(--display); font-variant-numeric: tabular-nums; }
.rings { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.ring { display: grid; grid-template-columns: 84px auto; grid-template-rows: auto; align-items: center; column-gap: 12px; position: relative; }
.ring svg { width: 84px; height: 84px; grid-row: 1; grid-column: 1; }
.ring-v { grid-row: 1; grid-column: 1; text-align: center; line-height: 1.1; }
.ring-v b { font: 600 20px var(--display); display: block; } .ring-v small { font-size: 11px; color: var(--muted); }
.ring-l { font-weight: 600; font-size: 14px; } .ring-l small { display: block; font-weight: 400; color: #b06d10; font-size: 12px; }
.lop-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.lop-line span { color: var(--muted); }
.lvdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.plain li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
ul.plain li.past { color: var(--muted); }
ul.plain li.today { font-weight: 600; } ul.plain li em { font-style: normal; color: #b06d10; }
ul.plain li small { color: var(--muted); }
ul.plain .badge { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--crest-soft); color: var(--current); display: grid; place-items: center; font: 600 13px var(--display); }
.anns { display: grid; gap: 12px; max-height: 260px; overflow: auto; }
.ann h4 { margin: 0 0 3px; font-size: 14px; } .ann p { margin: 0 0 4px; font-size: 13px; } .ann small { color: var(--muted); font-size: 11px; }
.ann.pinned { border-left: 3px solid var(--crest); padding-left: 10px; }
.ann-admin { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; } .ann-admin p { margin: 4px 0; }
.policy { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 900px) { .home-top { grid-template-columns: 1fr; } }

.rev-note { display: block; margin-bottom: 16px; text-decoration: none; }
.rev-note:hover { text-decoration: none; filter: brightness(.98); }
a.note { display: block; margin-bottom: 12px; color: inherit; }

.addr-grid { grid-template-columns: 1fr 1fr; } .addr-grid .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .addr-grid { grid-template-columns: 1fr; } }
