/* PPSA eRecruitment – design system */
/* Plus Jakarta Sans (SIL Open Font License) bundled locally for offline preview use */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Muted South African government palette: flag green, gold, red and blue softened for long-form UI */
  --primary: #0B5D3F; --primary-600: #0E6B49; --primary-800: #07432D; --primary-50: #EDF5F0; --primary-100: #D5E9DD;
  --gold: #D29B22; --gold-600: #946A0E; --gold-50: #FDF7E6; --gold-100: #F5E3B0; --gold-bright: #F2C14E;
  --sa-red: #C2574A; --sa-blue: #2F4F8F; --sa-green: #0B5D3F;
  --ink: #10221A; --ink-2: #2C3C34; --muted: #5B6962; --muted-2: #8A9790;
  --line: #E2E7E1; --line-2: #EEF2ED; --bg: #F7F6F0; --surface: #FFFFFF; --surface-2: #FAFBF7;
  --mint: #EAF4EE; --sand: #FBF4E2; --sky: #EAF0F8;
  --success: #1E7A4C; --success-50: #E5F3EA; --warn: #9C6410; --warn-50: #FCF2DC; --danger: #B23B31; --danger-50: #FBEAE7;
  --info: #2F4F8F; --info-50: #E9EFF8; --plum: #5E4C8E; --plum-50: #F0EDF8;
  --radius: 18px; --radius-sm: 12px; --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 26, .04);
  --shadow: 0 2px 4px rgba(16, 34, 26, .04), 0 12px 32px rgba(16, 34, 26, .07);
  --shadow-lg: 0 24px 60px rgba(16, 34, 26, .16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --flag: linear-gradient(90deg, var(--sa-green) 0 25%, var(--gold) 25% 50%, var(--sa-red) 50% 75%, var(--sa-blue) 75% 100%);
  --fs: 17px;
  color-scheme: light;
}
html.hc { --ink: #000; --ink-2: #000; --muted: #2b2b2b; --muted-2: #444; --line: #8a8a8a; --bg: #fff; --primary: #043A26; --gold: #6e4d00; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
html.fs-lg { --fs: 19px; } html.fs-xl { --fs: 21px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.18; color: var(--ink); }
h1, h2, .serif { font-family: var(--serif); font-weight: 750; letter-spacing: -.025em; }
h1 { font-size: 2.35rem; } h2 { font-size: 1.65rem; } h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; } h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .85em; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-800); }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); } .mono { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.3rem 0; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 999px; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* ---------- buttons ---------- */
.btn { --b: #CFD8D0; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.35em; border-radius: 999px; border: 1.5px solid var(--b); background: var(--surface); color: var(--ink); font: 650 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-50); border-color: var(--primary-100); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-800); border-color: var(--primary-800); color: #fff; }
.btn-gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn-gold:hover { background: #E8B235; border-color: #E8B235; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1f19; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #225c44; color: #fff; }
.btn-sm { padding: .48em .95em; font-size: .87rem; }
.btn-lg { padding: .95em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn-primary):not(.btn-gold):not(.btn-danger):not(.btn-success).is-busy::after { border-color: rgba(0, 0, 0, .15); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btn-row.end { justify-content: flex-end; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .24em .75em; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip-ok { background: var(--success-50); color: var(--success); }
.chip-warn { background: var(--warn-50); color: var(--warn); }
.chip-danger { background: var(--danger-50); color: var(--danger); }
.chip-info { background: var(--info-50); color: var(--info); }
.chip-muted { background: #EFF1EE; color: #5B6962; }
.chip-gold { background: var(--gold-50); color: var(--gold-600); border-color: var(--gold-100); }
.chip-plum { background: var(--plum-50); color: var(--plum); }
.chip-ink { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: .3em; padding: .18em .6em; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: .8rem; font-weight: 550; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; }
.count.gold { background: var(--gold-bright); color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; min-width: 0; }
.field > span, .label { font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.field > span .req { color: var(--danger); }
.field .hint { font-size: .84rem; color: var(--muted); }
.field .err { font-size: .8rem; color: var(--danger); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid #D6DED7; border-radius: var(--radius-sm); padding: .7em .9em; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #B9C6BC; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 93, 63, .13); }
input[type=checkbox], input[type=radio] { width: 1.05em; height: 1.05em; accent-color: var(--primary); padding: 0; flex: none; }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .97rem; cursor: pointer; margin-bottom: .6rem; }
.check input { margin-top: .2em; }
.grid { display: grid; gap: 0 1rem; }
.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)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .spanall { grid-column: 1 / -1; }
.input-group { display: flex; gap: .5rem; align-items: center; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); padding: 3px; gap: 2px; }
.seg button, .seg label { border: 0; background: transparent; padding: .5em 1em; border-radius: 999px; font: 650 .9rem var(--font); cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: .35em; }
.seg button.on, .seg input:checked + span { background: var(--primary); color: #fff; }
.seg label { padding: 0; } .seg label span { padding: .45em 1em; display: block; border-radius: 999px; } .seg input { position: absolute; opacity: 0; }

/* ---------- cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.5rem 1.6rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.6rem; border-bottom: 1px solid var(--line-2); }
.card-head h3, .card-head h2 { margin: 0; }
.card-body { padding: 1.3rem 1.6rem; }
.card-foot { padding: 1rem 1.6rem; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.row { display: flex; gap: 1rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.cols { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.cols-main-l { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.sticky { position: sticky; top: 84px; }
.divider-v { width: 1px; background: var(--line); align-self: stretch; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .ic { width: 38px; height: 38px; color: var(--muted-2); margin-bottom: .5rem; }
.callout { display: flex; gap: .75rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--info-50); color: #22396A; font-size: .95rem; align-items: flex-start; }
.callout .ic { margin-top: .15em; }
.callout.warn { background: var(--warn-50); color: #7a4c0b; }
.callout.ok { background: var(--success-50); color: #1d5039; }
.callout.danger { background: var(--danger-50); color: #82201a; }
.callout.gold { background: var(--gold-50); color: #6f4f12; border: 1px solid var(--gold-100); }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .5rem 1rem; font-size: .97rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.bullets { padding-left: 1.2rem; margin: 0 0 1rem; } .bullets li { margin-bottom: .35rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .96rem; }
.t th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .8rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.t td { padding: .85rem .9rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tbody tr { transition: background .1s; }
.t tbody tr:hover { background: var(--surface-2); }
.t tr.clickable { cursor: pointer; }
.t tr.selected { background: var(--gold-50) !important; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t .strong { font-weight: 600; }
.t tfoot td { font-weight: 700; background: var(--surface-2); }
.person { display: flex; gap: .65rem; align-items: center; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.2rem; }
.avatar.gold { background: var(--sand); color: var(--gold-600); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: .9rem 1.05rem; border: 0; background: none; font: 650 .95rem var(--font); color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--primary); border-bottom-color: var(--primary); border-bottom-width: 3px; }

/* ---------- toasts & modal ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1.15rem; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; animation: tin .25s ease; }
.toast .ic { margin-top: .12em; color: #8fd6b4; }
.toast-danger .ic { color: #ff9b91; } .toast-warn .ic, .toast-info .ic { color: #f2cf7d; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 28, 20, .45); display: grid; place-items: center; z-index: 200; padding: 16px; animation: fade .15s; backdrop-filter: blur(2px); }
.modal-backdrop.out { opacity: 0; transition: .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-sm { max-width: 460px; } .modal-md { max-width: 640px; } .modal-lg { max-width: 880px; } .modal-xl { max-width: 1100px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.6rem; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-body { padding: 1.4rem 1.6rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.6rem; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- loader ---------- */
.loader { display: grid; place-items: center; padding: 4rem; color: var(--muted); gap: .8rem; }
.loader::before { content: ''; width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f6f1ec, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* =========================================================
   PUBLIC PORTAL
   ========================================================= */
.util-bar { background: var(--primary-800); color: #D7E6DD; font-size: .84rem; position: relative; }
.util-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--flag); opacity: .9; }
.util-bar .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem .4rem; }
.util-bar button { background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: .12rem .55rem; font: 650 .78rem var(--font); cursor: pointer; }
.util-bar button.on { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.util-bar .a11y { display: flex; gap: .35rem; align-items: center; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.site-head { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-head .inner { display: flex; align-items: center; gap: 1.5rem; height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-text small { font-size: .74rem; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.site-nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.site-nav a { padding: .55rem .95rem; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: .98rem; border-radius: 999px; }
.site-nav a:hover, .site-nav a.on { background: var(--primary-50); color: var(--primary); }
.site-nav .btn { margin-left: .3rem; }
.site-nav a.btn-primary, .site-nav a.btn-gold { color: #fff; } .site-nav a.btn-primary:hover { background: var(--primary-800); color: #fff; } .site-nav a.btn-gold:hover { background: var(--gold-600); color: #fff; }
#view:focus { outline: none; }
.nav-toggle { display: none; }
.hero { background: radial-gradient(700px 380px at 92% 18%, rgba(242, 193, 78, .28), transparent 70%), radial-gradient(520px 320px at 4% 0%, rgba(11, 93, 63, .07), transparent 70%), var(--bg); color: var(--ink); position: relative; overflow: hidden; }
.hero .inner { position: relative; z-index: 1; padding-block: 4.4rem 5.4rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: var(--ink); font-size: 3.6rem; line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 68%, rgba(242, 193, 78, .55) 68%); padding: 0 .08em; }
.hero p.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 580px; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .8rem; }
.hero .eyebrow { color: var(--primary); background: var(--primary-50); padding: .4rem .9rem; border-radius: 999px; letter-spacing: .08em; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); position: relative; }
.hero-card::before { content: ''; position: absolute; left: 1.8rem; right: 1.8rem; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--flag); }
.hero-card h3 { color: var(--ink); font-weight: 750; font-size: 1.3rem; }
.hero-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.3rem; }
.hero-stats div { background: var(--mint); border-radius: 16px; padding: 1rem; }
.hero-stats div:nth-child(2) { background: var(--sand); } .hero-stats div:nth-child(3) { background: var(--sky); }
.hero-stats b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.hero-stats span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.search-bar { margin-top: -2.4rem; position: relative; z-index: 2; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: .6rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .6rem; }
.search-bar .field { margin: 0; }
.search-bar input, .search-bar select { border-color: transparent; background: var(--surface-2); height: 52px; border-radius: 999px; padding-inline: 1.2rem; }
.search-bar .btn { height: 52px; padding-inline: 1.6rem; }
.section { padding: 3.4rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.vac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.3rem; }
.vac-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.2rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.vac-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-100); color: inherit; }
.vac-card .ref { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.vac-card h3 { font-weight: 750; font-size: 1.28rem; letter-spacing: -.02em; margin: .6rem 0 .7rem; color: var(--ink); line-height: 1.25; }
.vac-card .meta { display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; color: var(--ink-2); margin-bottom: 1rem; }
.vac-card .meta span { display: flex; gap: .45rem; align-items: center; }
.vac-card .meta .ic { color: var(--primary); opacity: .7; }
.vac-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.vac-card .go { font-weight: 700; color: var(--primary); font-size: .94rem; display: flex; gap: .3rem; align-items: center; }
.closing { font-size: .86rem; font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.closing.ok { color: var(--success); } .closing.warn { color: var(--warn); } .closing.danger { color: var(--danger); } .closing.muted { color: var(--muted); }
.steps-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps-strip div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; position: relative; }
.steps-strip div:nth-child(1) { background: var(--mint); border-color: transparent; } .steps-strip div:nth-child(2) { background: var(--sand); border-color: transparent; } .steps-strip div:nth-child(3) { background: var(--sky); border-color: transparent; } .steps-strip div:nth-child(4) { background: #F6EDEA; border-color: transparent; }
.steps-strip div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 1.05rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm); }
.steps-strip b { display: block; margin-bottom: .35rem; font-size: 1.08rem; }
.steps-strip p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.site-foot { background: #0C2A1E; color: #BFD1C6; font-size: .93rem; margin-top: 3rem; position: relative; }
.site-foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
.site-foot .inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.4rem 1.6rem; }
.site-foot h4 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-foot a { color: #E3EEE7; }
.site-foot .base { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; font-size: .84rem; color: #8FA79A; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head { background: radial-gradient(600px 220px at 95% 0%, rgba(242, 193, 78, .2), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); padding: 2.4rem 0 1.9rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.advert h2 { font-family: var(--font); font-weight: 800; color: var(--primary); margin-top: 1.6rem; text-transform: uppercase; letter-spacing: .07em; font-size: .88rem; }
.fact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.fact-list li { display: flex; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line-2); font-size: .97rem; }
.fact-list li .ic { color: var(--primary); margin-top: .2em; }
.fact-list li span { color: var(--muted); display: block; font-size: .82rem; }
.fact-list li b { font-weight: 600; }

/* auth */
.auth-wrap { min-height: calc(100vh - 110px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(500px 300px at 100% 0%, rgba(242, 193, 78, .25), transparent 70%), linear-gradient(160deg, var(--primary-800), var(--primary)); color: #DDEBE3; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--flag); }
.auth-side h2 { color: #fff; font-size: 2.2rem; letter-spacing: -.03em; }
.auth-side ul { list-style: none; padding: 0; } .auth-side li { display: flex; gap: .6rem; margin-bottom: .7rem; } .auth-side li .ic { color: var(--gold-bright); margin-top: .2em; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box.wide { max-width: 620px; }
.captcha { display: flex; gap: .6rem; align-items: center; }
.captcha .img { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; height: 54px; flex: none; background: #f6efe6; }
.captcha .img svg { display: block; }
.otp { display: flex; gap: .5rem; justify-content: center; margin: 1.2rem 0; }
.otp input { width: 54px; height: 62px; text-align: center; font-size: 1.6rem; border-radius: 14px; font-weight: 700; font-family: var(--mono); padding: 0; }
.pin-preview { background: var(--sand); border: 1.5px dashed var(--gold); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.pin-preview b { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .2em; color: var(--primary); }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: .3rem; }
.pw-meter i { display: block; height: 100%; transition: width .2s, background .2s; }
.id-derived { font-size: .8rem; color: var(--success); display: flex; gap: .4rem; align-items: center; }

/* applicant area */
.me-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; padding: 1.8rem 0 3rem; align-items: start; }
.me-nav { position: sticky; top: 90px; }
.me-nav a { display: flex; gap: .7rem; align-items: center; padding: .72rem 1rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: .98rem; margin-bottom: .15rem; }
.me-nav a:hover { background: var(--surface); }
.me-nav a.on { background: var(--primary); color: #fff; }
.me-nav a.on .ic { color: var(--gold-bright) !important; }
.me-nav .ic { color: var(--muted-2); } .me-nav a.on .ic { color: var(--primary); }
.me-nav .count { margin-left: auto; }
.me-user { display: flex; gap: .7rem; align-items: center; padding: .4rem .5rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.progress-steps { display: flex; gap: 0; margin: 1rem 0 .4rem; }
.progress-steps .st { flex: 1; position: relative; text-align: center; font-size: .8rem; color: var(--muted-2); padding-top: 22px; font-weight: 600; line-height: 1.25; }
.progress-steps .st::before { content: ''; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); z-index: 1; }
.progress-steps .st::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress-steps .st:first-child::after { display: none; }
.progress-steps .st.done { color: var(--ink-2); } .progress-steps .st.done::before { background: var(--primary); border-color: var(--primary); } .progress-steps .st.done::after { background: var(--primary); }
.progress-steps .st.cur { color: var(--primary); } .progress-steps .st.cur::before { background: var(--gold-bright); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-100); }
.progress-steps .st.fail::before { background: var(--muted-2); border-color: var(--muted-2); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.05rem 1.7rem; font-size: .95rem; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.gold::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-50); }
.timeline li.muted::before { background: var(--muted-2); box-shadow: 0 0 0 3px var(--line-2); }
.timeline time { display: block; font-size: .83rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .6rem; align-items: center; padding: .42rem 0; font-size: .96rem; }
.checklist .ok { color: var(--success); } .checklist .no { color: var(--muted-2); }
.repeat-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1rem .2rem; margin-bottom: .8rem; background: var(--surface-2); position: relative; }
.repeat-item .rm { position: absolute; right: 8px; top: 8px; }
.upload-panel-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.15rem; }
.upload-panel-head h3 { margin: 0 0 .2rem; }
.upload-panel-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.upload-panel-icon, .profile-entry-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-50); color: var(--primary); }
.upload-panel-icon .ic, .profile-entry-icon .ic { width: 21px; height: 21px; }
.upload-category { max-width: 100%; margin-bottom: 1rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-height: 210px; box-sizing: border-box; border: 2px dashed #B9CEC0; border-radius: var(--radius); padding: 1.35rem; text-align: center; background: linear-gradient(180deg, #FBFDFB, #F4F8F4); cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-50); }
.dropzone-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; margin-bottom: .2rem; background: var(--primary-50); color: var(--primary); }
.dropzone-icon .ic { width: 24px; height: 24px; }
.dropzone-title { color: var(--ink); font-size: 1rem; }
.dropzone-subtitle { color: var(--muted); font-size: .88rem; }
.dropzone-types { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .4rem; }
.dropzone-types span { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .72rem; }
.doc-item { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .5rem; }
.doc-icon { width: 38px; height: 46px; border-radius: 5px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: .65rem; font-weight: 800; flex: none; position: relative; }
.doc-icon::after { content: ''; position: absolute; right: 0; top: 0; border-left: 10px solid var(--primary-100); border-bottom: 10px solid var(--primary-100); border-top: 10px solid var(--bg); border-right: 10px solid var(--bg); width: 0; height: 0; border-radius: 0 5px 0 0; transform: scale(.6); transform-origin: top right; }
.profile-collection { display: grid; gap: .9rem; }
.profile-entry-list { display: grid; gap: .7rem; }
.profile-entry { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.profile-entry-content { flex: 1; min-width: 0; }
.profile-entry-titleline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.profile-entry-titleline h4 { margin: 0; font-size: .98rem; overflow-wrap: anywhere; }
.profile-entry-subtitle { margin: .2rem 0 0; color: var(--muted); font-size: .87rem; }
.profile-entry-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.profile-entry-meta span { padding: .18rem .55rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .76rem; }
.profile-entry-badge { display: inline-flex; align-items: center; padding: .18rem .55rem; border-radius: 999px; background: var(--success-50); color: var(--success); font-size: .72rem; font-weight: 700; }
.profile-entry-description { margin: .55rem 0 0; color: var(--ink-2); font-size: .84rem; white-space: pre-line; }
.profile-entry-actions { display: flex; flex: none; align-items: center; gap: .35rem; }
.profile-entry-delete { color: var(--danger); }
.profile-entry-delete:hover { border-color: var(--danger-50); background: var(--danger-50); color: var(--danger); }
.profile-collection-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding-top: .2rem; }
.profile-add-entry { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); }
.profile-add-entry:hover { border-color: var(--primary); background: var(--primary-100); }
.profile-empty { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.profile-empty-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--surface); color: var(--muted); }
.profile-empty b { display: block; font-size: .9rem; }
.profile-empty p { margin: .1rem 0 0; color: var(--muted); font-size: .82rem; }
.profile-entry-editor { border: 1.5px solid var(--primary-100); border-radius: var(--radius-sm); padding: 1rem; background: linear-gradient(180deg, #FCFEFC, var(--primary-50)); }
.profile-entry-editor-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.profile-entry-editor-head h4 { margin: 0; font-size: .98rem; }
.profile-entry-editor-head p { margin: .12rem 0 0; color: var(--muted); font-size: .82rem; }
.profile-row-grid { align-items: start; }
.profile-entry-editor-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; padding-top: .8rem; border-top: 1px solid var(--primary-100); }
.profile-entry-editor-actions .btn-row { margin-left: auto; }
@media (max-width: 680px) {
  .profile-entry { flex-wrap: wrap; }
  .profile-entry-content { flex-basis: calc(100% - 60px); }
  .profile-entry-actions { margin-left: auto; }
  .profile-entry-editor-actions { align-items: flex-start; flex-direction: column; }
  .profile-entry-editor-actions .btn-row { margin-left: 0; }
  .dropzone { min-height: 180px; padding: 1rem; }
}
.wizard-steps { display: flex; gap: .4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.wizard-steps span { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--muted); }
.wizard-steps span i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); font-size: .8rem; }
.wizard-steps span.on { border-color: var(--primary); color: var(--primary); } .wizard-steps span.on i { background: var(--primary); color: #fff; }
.wizard-steps span.done { color: var(--success); } .wizard-steps span.done i { background: var(--success); color: #fff; }
.success-hero { text-align: center; padding: 2.4rem 1rem 1.5rem; }
.success-hero .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; margin: 0 auto 1rem; }
.success-hero .big-check .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.refno { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--primary); background: var(--primary-50); padding: .3rem .8rem; border-radius: 8px; display: inline-block; letter-spacing: .03em; }
.email-preview { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; text-align: left; }
.email-preview header { padding: .8rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line-2); font-size: .85rem; }
.email-preview header b { display: block; font-size: .95rem; color: var(--ink); }
.email-preview pre { white-space: pre-wrap; font-family: var(--font); font-size: .96rem; margin: 0; padding: 1rem; color: var(--ink-2); }

/* =========================================================
   STAFF PORTAL
   ========================================================= */
.staff { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { background: #0C2A1E; color: #C3D6CB; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 1.3rem 1.2rem 1.1rem; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .07); position: relative; }
.side .brand::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
.side .brand-text b { color: #fff; font-size: 1.1rem; } .side .brand-text small { color: #8FB3A0; }
.side nav { padding: .8rem .6rem; flex: 1; }
.side .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #7FA190; padding: .9rem .7rem .4rem; font-weight: 700; }
.side nav a { display: flex; align-items: center; gap: .75rem; padding: .66rem .9rem; border-radius: 999px; color: #DDEAE2; text-decoration: none; font-size: .97rem; font-weight: 600; margin-bottom: 1px; }
.side nav a .ic { color: #8FB3A0; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.side nav a.on .ic { color: var(--gold-bright); }
.side nav a .count { margin-left: auto; background: var(--gold-bright); color: var(--ink); }
.side-foot { padding: 1rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .8rem; color: #7FA190; }
.topbar { height: 70px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.6rem; position: sticky; top: 0; z-index: 40; }
.topbar .title { font-weight: 700; color: var(--muted); font-size: .97rem; }
.topbar .spacer { flex: 1; }
.role-switch { display: flex; align-items: center; gap: .5rem; padding: .3rem .35rem .3rem .85rem; border: 1.5px dashed var(--gold); background: var(--sand); border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--gold-600); }
.role-switch select { border: 0; background: var(--surface); border-radius: 999px; padding: .38rem 1.9rem .38rem .8rem; font-size: .88rem; font-weight: 600; width: auto; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem .3rem .3rem; border-radius: 999px; }
.user-chip b { display: block; font-size: .94rem; line-height: 1.25; } .user-chip small { color: var(--muted); font-size: .8rem; }
.main { padding: 2rem 2.2rem 3.5rem; min-width: 0; }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.page-title h1 { font-size: 2.1rem; margin: 0; }
.page-title p { margin: .35rem 0 0; color: var(--muted); font-size: 1.04rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; position: relative; overflow: hidden; }
.kpi .lbl { font-size: .87rem; color: var(--muted); font-weight: 650; display: flex; gap: .4rem; align-items: center; }
.kpi .lbl .ic { color: var(--primary); }
.kpi .val { font-family: var(--serif); font-size: 2.3rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: .4rem 0 .2rem; color: var(--ink); }
.kpi .val small { font-size: .9rem; font-family: var(--font); color: var(--muted); font-weight: 600; }
.kpi .sub { font-size: .84rem; color: var(--muted); }
.kpi .val small { margin-left: .3rem; letter-spacing: 0; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi.accent { background: linear-gradient(140deg, var(--primary), var(--primary-800)); border-color: var(--primary); }
.kpi.accent .lbl, .kpi.accent .sub, .kpi.accent .val small { color: #CFE3D7; } .kpi.accent .val { color: #fff; } .kpi.accent .lbl .ic { color: var(--gold-bright); }
a.kpi { text-decoration: none; transition: box-shadow .15s; } a.kpi:hover { box-shadow: var(--shadow); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.chart .val { font-size: 12px; fill: var(--ink-2); font-weight: 700; font-family: var(--font); }
.chart .bar rect { transition: opacity .15s; } .chart .bar:hover rect { opacity: .82; }
.hbars { display: flex; flex-direction: column; gap: .5rem; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 48px; gap: .8rem; align-items: center; font-size: .93rem; }
.hbar-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 14px; border-radius: 999px; background: var(--line-2); border-radius: 6px; overflow: hidden; display: flex; }
.hbar-fill { height: 100%; transition: width .5s ease; }
.hbar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.stacks .legend { margin-bottom: .7rem; }
.donut-wrap { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.donut-num { font-family: var(--serif); font-size: 28px; font-weight: 800; fill: var(--ink); }
.donut-sub { font-size: 10px; fill: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .93rem; flex: 1; min-width: 140px; }
.legend li { display: flex; gap: .5rem; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; } .legend span { color: var(--muted); width: 38px; text-align: right; font-size: .8rem; }
.legend-inline { flex-direction: row; flex-wrap: wrap; gap: .4rem 1rem; }
.empty-chart { padding: 2rem; text-align: center; color: var(--muted); font-size: .9rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.ring-txt { font-size: 14px; font-weight: 800; fill: var(--ink); font-family: var(--font); }
.funnel { display: flex; flex-direction: column; gap: .35rem; }
.funnel div { display: flex; gap: .5rem; justify-content: space-between; align-items: center; padding: .6rem 1rem; border-radius: 999px; color: #fff; font-size: .92rem; font-weight: 600; margin: 0 auto; min-width: 62%; transition: width .4s; }
.list-row { display: flex; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.date-badge { width: 52px; text-align: center; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; flex: none; background: var(--surface); }
.date-badge b { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.25rem; line-height: 1.35; }
.date-badge span { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 700; background: var(--primary); color: #fff; letter-spacing: .05em; padding: 1px 0; }
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-2); }
.toolbar input, .toolbar select { width: auto; padding: .55em .9em; font-size: .94rem; border-radius: 999px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search input { width: 100%; padding-left: 2.4em; }
.toolbar .search .ic { position: absolute; left: .85em; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.bulkbar { display: flex; align-items: center; gap: .6rem; background: var(--primary-800); color: #fff; padding: .65rem 1.2rem; font-size: .94rem; }
.bulkbar .btn { padding: .35em .75em; font-size: .82rem; }
.workflow { display: flex; gap: 0; flex-wrap: wrap; }
.wf-step { flex: 1; min-width: 160px; padding: .95rem 1.05rem; border: 1px solid var(--line); background: var(--surface); position: relative; font-size: .9rem; }
.wf-step + .wf-step { border-left: 0; }
.wf-step:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); } .wf-step:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wf-step .wf-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); margin-bottom: .4rem; }
.wf-step .wf-ic .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.wf-step.approved .wf-ic { background: var(--success); color: #fff; }
.wf-step.pending { background: var(--sand); border-color: var(--gold-100); } .wf-step.pending .wf-ic { background: var(--gold-bright); color: var(--ink); }
.wf-step.rejected .wf-ic, .wf-step.returned .wf-ic { background: var(--danger); color: #fff; }
.wf-step b { display: block; } .wf-step small { color: var(--muted); display: block; }
.wf-step .cmt { font-style: italic; color: var(--ink-2); margin-top: .3rem; font-size: .8rem; }
.score-grid { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; }
.rating { display: inline-flex; gap: .25rem; }
.rating label { cursor: pointer; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; color: var(--muted); background: var(--surface); transition: .1s; }
.rating input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.rating input:focus-visible + span { outline: 3px solid var(--gold); }
.score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: .25rem .6rem; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .92rem; }
.score-hi { background: var(--success-50); color: var(--success); } .score-mid { background: var(--gold-50); color: var(--gold-600); } .score-lo { background: var(--danger-50); color: var(--danger); }
.screen-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: .7rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.screen-row .ok { color: var(--success); } .screen-row .no { color: var(--danger); }
.mailbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: calc(100vh - 200px); min-height: 520px; }
.mailbox .lst { border-right: 1px solid var(--line); overflow-y: auto; }
.mailbox .itm { display: block; width: 100%; text-align: left; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; font: inherit; }
.mailbox .itm:hover { background: var(--surface-2); } .mailbox .itm.on { background: var(--mint); box-shadow: inset 4px 0 0 var(--primary); }
.mailbox .itm b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox .itm span { font-size: .89rem; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox .itm time { font-size: .8rem; color: var(--muted); float: right; }
.mailbox .view { overflow-y: auto; padding: 1.4rem 1.6rem; }
.mail-letterhead { display: flex; gap: .8rem; align-items: center; padding-bottom: .9rem; border-bottom: 2px solid var(--primary); margin-bottom: 1rem; }
.mail-body { white-space: pre-wrap; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.audit-hash { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }
.fab-mail { position: fixed; left: 14px; bottom: 14px; opacity: .96; z-index: 90; display: flex; gap: .5rem; align-items: center; background: var(--primary-800); color: #fff; border-radius: 999px; padding: .55rem .95rem .55rem .75rem; font-weight: 650; font-size: .84rem; text-decoration: none; box-shadow: var(--shadow-lg); }
.fab-mail:hover { background: #000; color: #fff; }
.fab-mail .count { background: var(--gold-bright); color: var(--ink); }
.letter { background: #fff; border: 1px solid var(--line); padding: 2.5rem 3rem; font-size: .95rem; line-height: 1.7; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.letter .lh { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: .8rem; overflow-x: auto; }
.lane { background: var(--line-2); border-radius: var(--radius); padding: .7rem; min-height: 120px; }
.lane h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.lane .card { padding: .7rem .8rem; margin-bottom: .5rem; font-size: .86rem; box-shadow: var(--shadow-sm); }
.req-list li { padding: .35rem 0; }
.pill-toggle { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.pill-toggle label { position: relative; }
.pill-toggle input { position: absolute; opacity: 0; }
.pill-toggle span { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; cursor: pointer; background: var(--surface); }
.pill-toggle input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.preview-advert { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--surface); font-size: .94rem; max-height: 72vh; overflow-y: auto; }
.preview-advert h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 3px var(--success-50); }

@media print {
  .side, .topbar, .site-head, .util-bar, .site-foot, .fab-mail, .no-print, .toolbar, #toasts { display: none !important; }
  .staff { display: block; } .main { padding: 0; } body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

@media (max-width: 1100px) {
  .cols-main { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .kanban { grid-template-columns: repeat(5, 220px); }
}
@media (max-width: 900px) {
  .staff { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 120; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .nav-toggle { display: inline-grid; }
  .topbar { padding: 0 1rem; } .main { padding: 1.1rem 1rem 3rem; }
  .role-switch > span { display: none; }
  .role-switch select { max-width: 150px; }
  .topbar .title { display: none; }
  .user-chip div { display: none; }
  .hero .inner { grid-template-columns: 1fr; padding-block: 2.6rem 3.8rem; gap: 1.8rem; } .hero h1 { font-size: 2.5rem; }
  .search-bar { border-radius: var(--radius-lg); }
  .search-bar { grid-template-columns: 1fr 1fr; } .search-bar .field:first-child { grid-column: 1 / -1; }
  .steps-strip { grid-template-columns: 1fr 1fr; }
  .site-foot .inner { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; }
  .me-shell { grid-template-columns: 1fr; } .me-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; } .me-nav .me-user { display: none; } .me-nav a { white-space: nowrap; }
  .cols-2, .cols-3, .cols-main-l { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .kpis.k3 { grid-template-columns: 1fr 1fr; }
  .mailbox { grid-template-columns: 1fr; height: auto; } .mailbox .lst { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-nav { position: fixed; inset: 70px 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: .8rem 1rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: .3rem 0 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 2.15rem; } h1 { font-size: 1.85rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .search-bar { grid-template-columns: 1fr; }
  .vac-grid { grid-template-columns: 1fr; }
  .steps-strip { grid-template-columns: 1fr; }
  .util-bar .inner > span { display: none; }
  .brand-text small { display: none; }
  .otp input { width: 42px; height: 52px; }
  .page-title h1 { font-size: 1.65rem; }
  .letter { padding: 1.4rem; }
  .progress-steps .st { font-size: 0; }
  .hbar { grid-template-columns: 90px 1fr 36px; }
}

/* ---------- preview utility styles ---------- */
