:root {
  --brand-red: #e60000;
  --brand-red-hover: #c90000;
  --brand-red-dark: #a70000;
  --brand-red-soft: #fff0ef;
  --brand-red-faint: #fff8f6;
  --navy-950: #030344;
  --navy-900: #080852;
  --navy-800: #11115f;
  --navy-700: #222275;
  --navy-100: #e9e9f4;
  --navy-50: #f6f6fb;
  --success-800: #145f43;
  --success-700: #18704f;
  --success-600: #21815d;
  --success-100: #ddf2e8;
  --success-50: #eff9f4;
  --ink-950: #18181c;
  --ink-800: #2e2e35;
  --ink-700: #47474f;
  --ink-600: #62626b;
  --ink-500: #7e7e87;
  --line: #e3e0dc;
  --line-soft: #f0eeeb;
  --surface: #ffffff;
  --canvas: #f7f5f2;
  --amber: #a96908;
  --amber-bg: #fff5df;
  --blue: #1769aa;
  --blue-bg: #eaf5fd;
  --error: #9f1d3a;
  --error-bg: #fff0f3;
  --violet: #6953ac;
  --violet-bg: #f2effb;
  --shadow-sm: 0 1px 2px rgba(3, 3, 68, .04), 0 6px 18px rgba(3, 3, 68, .055);
  --shadow-md: 0 18px 50px rgba(3, 3, 68, .13);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: "Aptos", "Segoe UI", Arial, sans-serif;
  --font-display: "Aptos Display", "Segoe UI", Arial, sans-serif;
}

/* PH-07 private documents and final submission */
.document-wallet-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.document-wallet-card { background: #fff; border: 1px solid var(--border, #dfe4ea); border-radius: 16px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(18, 37, 63, .06); }
.document-wallet-card h2 { margin: .65rem 0 .35rem; font-size: 1.15rem; }
.document-wallet-card p { display: flex; flex-direction: column; gap: .25rem; color: #24364b; }
.document-wallet-card small { color: #6b7785; }
.document-wallet-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.document-wallet-card details { margin-top: 1rem; border-top: 1px solid #e8ebef; padding-top: .8rem; }
.document-wallet-card details li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.candidate-form-narrow { max-width: 760px; margin-inline: auto; }
.application-documents-card select { margin-top: .7rem; }
.declaration-review { border: 2px solid rgba(177, 18, 38, .18); }
.declaration-text { background: #f7f8fa; border-left: 4px solid var(--brand-red, #b11226); border-radius: 10px; padding: 1rem 1.1rem; margin: 1rem 0; color: #24364b; }
.declaration-text p { margin: 0 0 .8rem; }
.declaration-text p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .document-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-950); background: var(--surface); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.16; letter-spacing: -.035em; }
p { color: var(--ink-600); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(230, 0, 0, .2); outline-offset: 2px; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; transform: translateY(-160%); padding: 9px 14px; border-radius: 7px; color: white; background: var(--navy-800); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Shared brand and actions */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.pms-logo { display: block; width: 112px; height: auto; flex: 0 0 auto; }
.logo-plate { display: inline-flex; padding: 4px 6px; align-items: center; border-radius: 7px; background: white; }
.logo-plate .pms-logo { width: 92px; }
.brand-division { padding-left: 11px; border-left: 1px solid var(--line); color: var(--navy-800); font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { margin-top: 4px; color: var(--ink-500); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand-light { color: white; }
.brand-light .brand-copy span { color: rgba(255,255,255,.62); }
.brand-light .brand-division { border-color: rgba(255,255,255,.22); color: white; }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 700; line-height: 1.2; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .62; }
.btn-primary { color: white; background: var(--brand-red); box-shadow: 0 5px 15px rgba(230,0,0,.2); }
.btn-primary:hover:not(:disabled) { background: var(--brand-red-hover); box-shadow: 0 7px 20px rgba(201,0,0,.25); }
.btn-secondary { color: var(--navy-800); border-color: #c7c6d6; background: white; }
.btn-secondary:hover:not(:disabled) { border-color: var(--navy-700); background: var(--navy-50); }
.btn-ghost { color: var(--ink-700); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--canvas); }
.btn-light { color: var(--navy-900); background: white; box-shadow: 0 8px 30px rgba(0,0,0,.16); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 13px 21px; }
.btn-block { width: 100%; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--ink-500); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.brand { color: var(--brand-red-dark); }
.eyebrow.pale { color: #d9d9f0; }

/* Public shell */
.public-header { position: relative; z-index: 30; height: 76px; border-bottom: 1px solid rgba(3,3,68,.09); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.public-nav { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.public-links { display: flex; align-items: center; gap: 30px; color: var(--ink-700); font-size: 14px; font-weight: 600; }
.public-links > a:not(.btn):hover { color: var(--brand-red); }
.mobile-sign-in { display: none; color: var(--brand-red-dark); font-weight: 700; }
.candidate-header-state { display: flex; margin-left: -10px; padding-left: 18px; flex-direction: column; border-left: 1px solid var(--line); line-height: 1.2; text-align: right; }
.candidate-header-state > span { color: var(--success-700); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.candidate-header-state > strong { max-width: 190px; margin-top: 2px; overflow: hidden; color: var(--navy-800); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-candidate-account { display: none; }
.hero { position: relative; overflow: hidden; padding: 78px 0 82px; background: linear-gradient(135deg, #fff6f4 0%, #fdfcfa 52%, #f3f3f8 100%); }
.hero::after { position: absolute; right: -120px; bottom: -220px; width: 650px; height: 650px; border: 1px solid rgba(3,3,68,.08); border-radius: 50%; content: ""; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-orb-one { top: 30px; left: -150px; width: 310px; height: 310px; background: rgba(230,0,0,.045); }
.hero-orb-two { top: 10%; right: 33%; width: 100px; height: 100px; background: rgba(217,160,51,.08); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; gap: 80px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--brand-red-dark); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 5px var(--brand-red-soft); }
.hero-copy h1 { max-width: 650px; margin-bottom: 23px; font-size: clamp(48px, 5.1vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.058em; }
.hero-copy h1 em { color: var(--brand-red); font-style: normal; }
.hero-copy > p { max-width: 610px; margin-bottom: 31px; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.text-link { color: var(--ink-600); font-size: 14px; }
.text-link strong { color: var(--brand-red-dark); }
.trust-row { display: flex; gap: 22px; margin-top: 35px; color: var(--ink-600); font-size: 12px; font-weight: 600; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row i { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: var(--success-700); background: var(--success-100); font-size: 10px; font-style: normal; }
.hero-visual { position: relative; min-height: 440px; }
.hero-image-panel { position: absolute; inset: 0 18px 0 30px; padding: 14px; border: 1px solid rgba(3,3,68,.13); border-radius: 120px 24px 120px 24px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-md); transform: rotate(1.5deg); }
.image-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 13px; overflow: hidden; border-radius: 108px 16px 108px 16px; color: rgba(255,255,255,.78); background: radial-gradient(circle at 75% 15%, rgba(230,0,0,.28), transparent 32%), linear-gradient(145deg, var(--navy-700), var(--navy-950) 70%); letter-spacing: .08em; text-transform: uppercase; }
.image-placeholder::before, .image-placeholder::after { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.image-placeholder::before { width: 260px; height: 260px; }
.image-placeholder::after { width: 350px; height: 350px; }
.hero-logo-plate { position: relative; z-index: 1; display: grid; width: 210px; min-height: 126px; padding: 15px; place-items: center; border-radius: 18px; background: white; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.hero-logo-plate img { width: 180px; height: auto; }
.image-placeholder > span:last-child { position: relative; z-index: 1; font-size: 10px; font-weight: 700; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; min-width: 215px; padding: 14px 16px; border: 1px solid rgba(3,3,68,.09); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 14px 35px rgba(3,3,68,.16); }
.floating-card-top { top: 55px; left: -13px; }
.floating-card-bottom { right: -4px; bottom: 45px; }
.floating-card > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--success-700); background: var(--success-100); font-weight: 800; }
.floating-card .floating-number { width: auto; padding: 0 10px; color: var(--blue); background: var(--blue-bg); }
.floating-card div { display: flex; flex-direction: column; }
.floating-card strong { font-size: 13px; }
.floating-card div span { color: var(--ink-500); font-size: 11px; }
.section { padding: 88px 0; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(32px, 3vw, 44px); }
.section-heading p { max-width: 600px; margin-bottom: 0; font-size: 16px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.split-heading p { max-width: 420px; padding-bottom: 4px; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.campaign-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.campaign-card:hover { transform: translateY(-4px); border-color: #c7c6d6; box-shadow: var(--shadow-md); }
.campaign-art { display: flex; height: 138px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; overflow: hidden; color: white; background: var(--navy-800); }
.campaign-art span { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: .08em; }
.campaign-art i { padding: 4px 9px; border: 1px solid rgba(255,255,255,.23); border-radius: 20px; color: rgba(255,255,255,.72); font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.art-fbr { background: radial-gradient(circle at 20% 0, rgba(230,0,0,.72), transparent 38%), linear-gradient(135deg, #181866, var(--navy-950)); }
.art-energy { background: radial-gradient(circle at 85% 5%, #c49c4a, transparent 32%), linear-gradient(135deg, #202061, #08083f); }
.art-banking { background: radial-gradient(circle at 20% 5%, #6a86a8, transparent 35%), linear-gradient(135deg, #243e5a, #172938); }
.campaign-content { padding: 22px; }
.campaign-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--ink-500); font-size: 11px; }
.campaign-content h3 { margin-bottom: 9px; font-size: 20px; }
.campaign-content p { min-height: 66px; margin-bottom: 19px; font-size: 13px; line-height: 1.65; }
.card-link { display: flex; justify-content: space-between; color: var(--brand-red-dark); font-size: 13px; font-weight: 800; }
.demo-notice { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding: 13px 16px; border: 1px solid #c8dce9; border-radius: 10px; background: #f1f8fc; }
.demo-notice > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-family: Georgia, serif; font-weight: 700; }
.demo-notice p { margin: 0; color: #416273; font-size: 12px; }
.process-section { background: var(--canvas); }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.process-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.process-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.process-steps li:last-child { border: 0; }
.process-steps > li > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-family: var(--font-display); font-weight: 800; }
.process-steps strong { font-family: var(--font-display); font-size: 17px; }
.process-steps p { margin: 5px 0 0; font-size: 13px; }
.candidate-cta { padding: 64px 0; color: white; background: radial-gradient(circle at 85% 20%, rgba(230,0,0,.26), transparent 30%), linear-gradient(110deg, var(--navy-950), var(--navy-700)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { margin-bottom: 8px; font-size: 34px; }
.cta-inner p { max-width: 680px; margin-bottom: 0; color: rgba(255,255,255,.7); }
.public-footer { padding: 55px 0 20px; color: white; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.footer-grid > div:first-child p { max-width: 390px; margin: 18px 0 0; color: rgba(255,255,255,.56); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,.68); font-size: 13px; }
.footer-links .eyebrow { margin-bottom: 5px; color: rgba(255,255,255,.4); }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.35); font-size: 11px; }

/* Candidate and staff authentication */
.auth-section { min-height: calc(100vh - 76px); padding: 84px 0; background: linear-gradient(130deg, #fff6f4, #fff 65%); }
.auth-grid { display: grid; grid-template-columns: 1fr 480px; gap: 100px; align-items: center; }
.auth-intro h1 { margin-bottom: 20px; font-size: clamp(42px, 4.4vw, 62px); }
.auth-intro > p { max-width: 600px; font-size: 17px; }
.auth-points { display: grid; gap: 18px; margin-top: 35px; }
.auth-points > span { display: flex; align-items: flex-start; gap: 13px; }
.auth-points i { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--success-700); background: var(--success-100); font-style: normal; }
.auth-points > span > span { display: flex; flex-direction: column; color: var(--ink-600); font-size: 13px; }
.auth-points strong { color: var(--ink-950); font-size: 15px; }
.auth-card { padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-md); }
.auth-card-icon { display: grid; width: 52px; height: 52px; margin-bottom: 20px; place-items: center; border-radius: 14px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 24px; }
.auth-card h2 { margin: 14px 0 12px; font-size: 28px; }
.auth-card > p { font-size: 14px; }
.auth-help { display: block; margin-top: 18px; color: var(--ink-500); font-size: 12px; text-align: center; }
.auth-help a { color: var(--brand-red-dark); font-weight: 700; }
.staff-login-body { min-height: 100vh; background: #faf8f5; }
.staff-login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(400px, .85fr) minmax(520px, 1.15fr); }
.login-brand-panel { position: relative; display: flex; overflow: hidden; padding: 45px clamp(40px, 6vw, 90px); flex-direction: column; justify-content: space-between; color: white; background: radial-gradient(circle at 20% 80%, rgba(230,0,0,.27), transparent 35%), radial-gradient(circle at 100% 0, rgba(82,82,161,.2), transparent 35%), var(--navy-950); }
.login-brand-panel::after { position: absolute; right: -180px; bottom: -130px; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; }
.login-panel-copy { position: relative; z-index: 1; max-width: 560px; }
.hero-kicker.light { color: #f3bbbb; }
.login-panel-copy h1 { margin-bottom: 22px; font-size: clamp(42px, 4.7vw, 68px); line-height: 1.05; }
.login-panel-copy p { max-width: 500px; color: rgba(255,255,255,.64); font-size: 17px; }
.security-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; max-width: 420px; padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.06); }
.security-note > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #f2b7b7; background: rgba(255,255,255,.08); }
.security-note div { display: flex; flex-direction: column; }
.security-note strong { font-size: 13px; }
.security-note p { margin: 2px 0 0; color: rgba(255,255,255,.48); font-size: 11px; }
.login-form-panel { display: grid; place-items: center; padding: 60px 30px; }
.login-form-wrap { width: min(430px, 100%); }
.login-form-wrap h2 { margin-bottom: 7px; font-size: 38px; }
.form-lead { margin-bottom: 30px; }
.stack-form { display: grid; gap: 20px; }
.login-help { display: flex; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); flex-direction: column; color: var(--ink-500); font-size: 12px; }
.login-help strong { color: var(--ink-700); }
.back-link { display: inline-block; margin-top: 28px; color: var(--brand-red-dark); font-size: 13px; font-weight: 700; }

/* Forms and feedback */
.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-group label { color: var(--ink-800); font-size: 13px; font-weight: 700; }
.field-group input, .field-group select, .field-group textarea, .search-field, .select-control { width: 100%; border: 1px solid #d3cfca; border-radius: 9px; color: var(--ink-950); background: white; transition: border-color .15s, box-shadow .15s; }
.field-group input, .field-group select, .field-group textarea { min-height: 45px; padding: 10px 12px; }
.field-group textarea { resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #98948f; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus, .search-field:focus-within, .select-control:focus-within { border-color: var(--brand-red); outline: 0; box-shadow: 0 0 0 3px rgba(230,0,0,.1); }
.field-group small { color: var(--ink-500); font-size: 11px; }
.field-group.has-error input, .field-group.has-error select { border-color: var(--error); background: #fffafb; }
.field-error { color: var(--error); font-size: 11px; font-weight: 600; }
.errorlist { margin: 2px 0 0; padding-left: 18px; }
.choice-row { display: flex; min-height: 45px; align-items: center; gap: 22px; }
.radio-control, .check-control { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-700); font-size: 13px; }
.radio-control input, .check-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-control > span, .check-control > span { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1.5px solid #b7b2ad; background: white; }
.radio-control > span { border-radius: 50%; }
.check-control > span { border-radius: 4px; }
.radio-control input:checked + span { border: 5px solid var(--brand-red); }
.check-control input:checked + span { border-color: var(--brand-red); background: var(--brand-red); }
.check-control input:checked + span::after { color: white; content: "✓"; font-size: 11px; font-weight: 800; }
.text-check { min-height: 45px; }
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid; border-radius: 10px; }
.alert > span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; }
.alert div { flex: 1; }
.alert strong { display: block; color: inherit; font-size: 13px; }
.alert p { margin: 2px 0 0; color: inherit; font-size: 12px; opacity: .82; }
.alert-success { border-color: #b9ddce; color: var(--success-800); background: var(--success-50); }
.alert-success > span { color: white; background: var(--success-600); }
.alert-info { border-color: #c3ddea; color: #245e7a; background: #f0f8fc; }
.alert-info > span { color: white; background: var(--blue); }
.alert-warning { border-color: #ead29f; color: #815513; background: var(--amber-bg); }
.alert-warning > span { color: white; background: #b97816; }
.alert-error { border-color: #e6bdc7; color: var(--error); background: var(--error-bg); }
.alert-error > span { color: white; background: var(--error); }
.alert-danger { border-color: #e8bdc8; color: var(--error); background: var(--error-bg); }
.alert-danger > span { color: white; background: var(--error); }
.alert.compact { margin-bottom: 20px; padding: 10px 13px; }
.alert-stack { display: grid; gap: 10px; }
.message-stack { display: grid; gap: 8px; margin-top: 18px; }

/* Internal application shell */
.internal-body { min-width: 320px; background: var(--canvas); }
.internal-layout { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: 248px; padding: 20px 14px 16px; flex-direction: column; color: white; background: var(--navy-950); }
.sidebar-brand { display: flex; padding: 0 7px 22px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .logo-plate { padding: 3px 5px; }
.sidebar-brand .pms-logo { width: 72px; }
.sidebar-brand .brand-copy strong { font-size: 14px; }
.sidebar-brand .brand-copy span { font-size: 8px; }
.sidebar-close { display: none !important; color: white !important; }
.sidebar-nav { display: flex; padding: 22px 0; flex: 1; flex-direction: column; gap: 4px; }
.nav-label { padding: 0 12px 8px; color: rgba(255,255,255,.35); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 20px; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
a.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: rgba(230,0,0,.2); box-shadow: inset 3px 0 0 var(--brand-red); }
.nav-item.disabled { color: rgba(255,255,255,.38); cursor: default; }
.nav-icon { width: 20px; color: #f09b9b; font-size: 16px; text-align: center; }
.soon { margin-left: auto; color: rgba(255,255,255,.34); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.support-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.055); }
.support-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #f2aaaa; }
.support-card div { display: flex; flex-direction: column; }
.support-card strong { font-size: 11px; }
.support-card div span { color: rgba(255,255,255,.4); font-size: 9px; }
.sidebar-scrim { display: none; }
.internal-workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 35; top: 0; display: flex; height: 68px; padding: 0 28px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 13px; }
.topbar-left > div { display: flex; flex-direction: column; line-height: 1.15; }
.workspace-label { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topbar-left strong { margin-top: 3px; font-size: 13px; }
.icon-btn { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; color: var(--ink-600); background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--canvas); }
.menu-toggle { display: none; }
.notification-btn { position: relative; border: 1px solid var(--line); }
.notification-btn i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--brand-red); }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 5px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: white; background: var(--navy-700); font-size: 11px; font-weight: 800; }
.user-copy { display: flex; min-width: 105px; flex-direction: column; line-height: 1.25; }
.user-copy strong { font-size: 12px; }
.user-copy small { color: var(--ink-500); font-size: 9px; }
.internal-main { width: min(1480px, 100%); margin: 0 auto; padding: 27px 28px 55px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.page-heading .eyebrow { margin-bottom: 6px; }
.page-heading h1 { margin-bottom: 6px; font-size: 30px; }
.page-heading p { max-width: 690px; margin-bottom: 0; font-size: 13px; }
.heading-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.soon-inline { padding: 2px 5px; border-radius: 4px; color: var(--navy-800); background: rgba(255,255,255,.88); font-size: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; display: flex; min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; flex-direction: column; background: white; box-shadow: 0 1px 2px rgba(3,3,68,.025); }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.metric-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; font-weight: 800; }
.metric-icon.brand { color: var(--brand-red-dark); background: var(--brand-red-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-bg); }
.metric-icon.amber { color: var(--amber); background: var(--amber-bg); }
.metric-icon.violet { color: var(--violet); background: var(--violet-bg); }
.metric-change { padding: 3px 6px; border-radius: 5px; color: var(--ink-500); background: var(--canvas); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.metric-card > strong { font-family: var(--font-display); font-size: 27px; line-height: 1.1; }
.metric-card > span { margin-top: 2px; color: var(--ink-700); font-size: 12px; font-weight: 700; }
.metric-card > small { margin-top: auto; color: var(--ink-500); font-size: 9px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 1px 2px rgba(3,3,68,.025); }
.panel-header { display: flex; min-height: 65px; padding: 15px 18px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.panel-header h2 { margin: 0 0 2px; font-size: 16px; }
.panel-header p { margin: 0; font-size: 10px; }
.filter-bar { display: flex; min-height: 60px; padding: 11px 16px; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-soft); background: #fdfbf9; }
.filter-bar.standalone { border: 1px solid var(--line-soft); border-radius: 10px; }
.search-field { display: flex; width: min(290px, 100%); height: 37px; align-items: center; gap: 8px; padding: 0 10px; }
.search-field span { color: var(--ink-500); font-size: 18px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink-800); background: transparent; font-size: 11px; }
.select-control { display: flex; width: auto; height: 37px; align-items: center; gap: 5px; padding: 0 9px; color: var(--ink-500); font-size: 10px; }
.select-control select { min-width: 88px; border: 0; outline: 0; color: var(--ink-700); background: transparent; font-size: 10px; font-weight: 700; }
.filter-count { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; color: white; background: var(--brand-red); font-size: 9px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.data-table th { height: 38px; padding: 8px 12px; color: var(--ink-500); background: #faf8f5; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { height: 64px; padding: 9px 12px; border-top: 1px solid var(--line-soft); color: var(--ink-700); font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fdfbf9; }
.data-table th:first-child, .data-table td:first-child { width: 42px; padding-left: 16px; }
.data-table td strong { display: block; color: var(--ink-900); font-size: 11px; }
.data-table td small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 9px; }
.person-cell { display: flex; min-width: 150px; align-items: center; gap: 9px; }
.person-cell .avatar { width: 31px; height: 31px; }
.soft-navy { color: var(--navy-700); background: var(--navy-100); }
.soft-blue { color: var(--blue); background: var(--blue-bg); }
.soft-violet { color: var(--violet); background: var(--violet-bg); }
.soft-amber { color: var(--amber); background: var(--amber-bg); }
.soft-rose { color: #a44861; background: #faedf1; }
.badge { display: inline-flex; width: max-content; min-height: 22px; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; font-size: 9px; font-weight: 800; letter-spacing: .01em; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-brand { color: var(--navy-800); background: var(--navy-100); }
.badge-success { color: var(--success-700); background: var(--success-100); }
.badge-info { color: var(--blue); background: var(--blue-bg); }
.badge-warning { color: var(--amber); background: var(--amber-bg); }
.badge-danger { color: var(--error); background: var(--error-bg); }
.badge-neutral { color: #66736f; background: #eef2f0; }
.badge-purple { color: var(--violet); background: var(--violet-bg); }
.row-action { width: 29px; height: 29px; border: 0; border-radius: 7px; color: var(--ink-500); background: transparent; cursor: pointer; }
.row-action:hover { color: var(--ink-800); background: var(--canvas); }
.pagination { display: flex; min-height: 57px; padding: 10px 16px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-soft); }
.pagination-summary { color: var(--ink-500); font-size: 10px; }
.pagination-summary strong { color: var(--ink-700); }
.page-list { display: flex; align-items: center; gap: 4px; }
.page-btn { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-600); background: white; cursor: pointer; font-size: 10px; }
.page-btn:hover:not(:disabled) { border-color: var(--brand-red); color: var(--brand-red-dark); }
.page-btn.active { border-color: var(--brand-red); color: white; background: var(--brand-red); }
.page-btn:disabled { opacity: .45; }
.page-ellipsis { color: var(--ink-500); font-size: 10px; }
.lower-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; margin-top: 18px; }
.flow-list { display: grid; gap: 16px; padding: 19px; }
.flow-list > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; }
.flow-list span { display: flex; align-items: center; gap: 8px; color: var(--ink-700); font-size: 11px; font-weight: 600; }
.flow-list strong { font-size: 11px; }
.flow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); }
.flow-dot.blue { background: var(--blue); }.flow-dot.violet { background: var(--violet); }.flow-dot.amber { background: #c18426; }
.progress { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 5px; background: var(--line-soft); }
.progress i { display: block; height: 100%; border-radius: 5px; background: var(--brand-red); }
.progress.blue i { background: var(--blue); }.progress.violet i { background: var(--violet); }.progress.amber i { background: #c18426; }
.status-list { margin: 0; padding: 9px 18px 15px; list-style: none; }
.status-list li { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.status-list li:last-child { border: 0; }
.status-list > li > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 800; }
.status-check { color: var(--success-700); background: var(--success-100); }
.status-pending { color: var(--amber); background: var(--amber-bg); }
.status-list div { display: flex; flex-direction: column; }
.status-list strong { font-size: 11px; }
.status-list small { color: var(--ink-500); font-size: 9px; }

/* Component gallery */
.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.component-panel.wide { grid-column: 1 / -1; }
.component-row { display: flex; min-height: 105px; padding: 23px 18px; align-items: center; flex-wrap: wrap; gap: 12px; }
.form-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 22px 18px 27px; }
.alert-stack { padding: 20px 18px; }
.upload-zone { display: flex; min-height: 190px; margin: 20px; padding: 25px; align-items: center; justify-content: center; flex-direction: column; border: 1.5px dashed #c8c3bd; border-radius: 12px; color: var(--ink-700); background: #fdfbf9; cursor: pointer; text-align: center; }
.upload-zone:hover { border-color: var(--brand-red); background: var(--brand-red-faint); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; width: 42px; height: 42px; margin-bottom: 12px; place-items: center; border-radius: 11px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 22px; }
.upload-zone strong { font-size: 13px; }
.upload-zone em { color: var(--brand-red-dark); font-style: normal; }
.upload-zone small { margin-top: 5px; color: var(--ink-500); font-size: 10px; }
.empty-state { display: flex; min-height: 230px; padding: 30px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-icon { display: grid; width: 48px; height: 48px; margin-bottom: 12px; place-items: center; border-radius: 14px; color: var(--navy-700); background: var(--navy-100); font-size: 22px; }
.empty-state h3 { margin-bottom: 5px; font-size: 15px; }
.empty-state p { max-width: 300px; margin-bottom: 15px; font-size: 11px; }

@media (max-width: 1080px) {
  .hero-grid { gap: 45px; }
  .hero-visual { min-height: 390px; }
  .campaign-grid { gap: 15px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-login-layout { grid-template-columns: .8fr 1.2fr; }
  .login-brand-panel { padding-inline: 45px; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 32px, 720px); }
  .public-links > a:not(.btn) { display: none; }
  .hero { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { width: min(520px, 100%); min-height: 400px; margin: 10px auto 0; }
  .campaign-grid { grid-template-columns: 1fr 1fr; }
  .campaign-card:last-child { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; gap: 25px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .auth-grid { grid-template-columns: 1fr; gap: 50px; }
  .auth-intro { text-align: center; }
  .auth-intro > p { margin-inline: auto; }
  .auth-points { width: min(460px, 100%); margin-inline: auto; text-align: left; }
  .auth-card { width: min(500px, 100%); margin: 0 auto; }
  .staff-login-layout { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 360px; gap: 40px; }
  .security-note { display: none; }
  .internal-layout { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 50px rgba(0,0,0,.2); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: grid !important; }
  .sidebar-scrim { position: fixed; z-index: 45; inset: 0; background: rgba(3,3,68,.52); }
  .sidebar-open .sidebar-scrim { display: block; }
  .internal-workspace { width: 100%; }
  .menu-toggle { display: grid; }
  .lower-grid { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: 1fr; }
  .component-panel.wide { grid-column: auto; }
  .form-demo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 26px, 560px); }
  .public-header { height: 66px; }
  .public-links { display: none; }
  .mobile-sign-in { display: block; }
  .mobile-candidate-account { display: flex; min-width: 0; max-width: 190px; align-items: center; justify-content: flex-end; gap: 9px; }
  .mobile-candidate-account > span { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; text-align: right; }
  .mobile-candidate-account small { color: var(--success-700); font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
  .mobile-candidate-account strong { overflow: hidden; color: var(--navy-800); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-candidate-account b { flex: 0 0 auto; color: var(--brand-red-dark); font-size: 10px; }
  .pms-logo { width: 96px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 9px; }
  .hero { padding: 48px 0 55px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
  .hero-visual { min-height: 330px; }
  .hero-image-panel { inset: 0 10px; }
  .floating-card { min-width: 190px; padding: 10px 12px; }
  .floating-card-top { top: 35px; left: -4px; }
  .floating-card-bottom { right: -4px; bottom: 25px; }
  .section { padding: 60px 0; }
  .split-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-card:last-child { grid-column: auto; }
  .campaign-content p { min-height: auto; }
  .process-steps li { grid-template-columns: 52px 1fr; }
  .candidate-cta { padding: 50px 0; }
  .cta-inner h2 { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .auth-section { min-height: calc(100vh - 66px); padding: 55px 0; }
  .auth-intro h1 { font-size: 39px; }
  .auth-card { padding: 26px 22px; }
  .staff-login-layout { display: block; }
  .login-brand-panel { min-height: 250px; padding: 28px 24px 35px; }
  .login-panel-copy h1 { margin-bottom: 0; font-size: 36px; }
  .login-panel-copy p { display: none; }
  .login-form-panel { padding: 48px 24px; }
  .topbar { padding: 0 14px; }
  .workspace-label, .topbar-left > div > strong, .notification-btn, .user-copy { display: none; }
  .topbar-actions { gap: 4px; }
  .internal-main { padding: 21px 14px 45px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 138px; padding: 14px; }
  .filter-bar { align-items: stretch; flex-wrap: wrap; }
  .search-field { width: 100%; }
  .select-control { flex: 1; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .pagination-summary { order: 2; }
  .form-demo-grid { grid-template-columns: 1fr; }
  .component-row { align-items: stretch; flex-direction: column; }
  .component-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* PH-08 applicant screening workspace */
.screening-vacancy-table { min-width: 900px; }
.applicant-heading { margin-bottom: 16px; }
.cohort-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cohort-tabs a { position: relative; display: grid; min-height: 86px; padding: 13px 15px; grid-template-columns: 1fr auto; gap: 2px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.cohort-tabs a:hover { border-color: #bab6c8; }
.cohort-tabs a.active { border-color: var(--navy-700); box-shadow: inset 0 0 0 1px var(--navy-700); }
.cohort-tabs a.active::before { position: absolute; top: -1px; right: 14px; left: 14px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-red); content: ""; }
.cohort-tabs span { color: var(--ink-800); font-size: 12px; font-weight: 800; }
.cohort-tabs strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: var(--font-display); font-size: 25px; }
.cohort-tabs small { color: var(--ink-500); font-size: 9px; }
.applicant-filters { margin-bottom: 14px; }
.applicant-filters summary { display: flex; min-height: 52px; padding: 12px 16px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.applicant-filters summary::-webkit-details-marker { display: none; }
.applicant-filters summary span { font-size: 12px; font-weight: 800; }
.applicant-filters summary small { color: var(--ink-500); font-size: 9px; }
.applicant-filters details[open] summary { border-bottom: 1px solid var(--line-soft); }
.applicant-filter-grid { display: grid; padding: 14px 16px 16px; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; background: #fdfbf9; }
.applicant-filter-grid label, .side-form label { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.applicant-filter-grid label > span, .side-form label > span { color: var(--ink-600); font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.applicant-filter-grid input, .applicant-filter-grid select, .side-form input, .side-form select, .side-form textarea, .bulk-toolbar input, .bulk-toolbar select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d3cfca; border-radius: 7px; color: var(--ink-800); background: white; font-size: 10px; }
.applicant-filter-grid .answer-filter { padding-top: 8px; border-top: 1px dashed var(--line); }
.filter-actions { display: flex; grid-column: 1 / -1; gap: 8px; padding-top: 4px; }
.applicant-table-panel { overflow: visible; }
.bulk-toolbar { position: sticky; z-index: 12; top: 68px; display: flex; min-height: 55px; padding: 9px 14px; align-items: center; gap: 12px; border-bottom: 1px solid #cbc9d9; border-radius: 12px 12px 0 0; background: #f2f1f8; }
.bulk-toolbar > strong { min-width: 90px; color: var(--navy-800); font-size: 11px; }
.bulk-toolbar label { display: flex; align-items: center; gap: 6px; color: var(--ink-600); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bulk-toolbar select { width: 140px; }
.bulk-toolbar .bulk-reason { flex: 1; }
.bulk-toolbar .bulk-reason input { min-width: 180px; }
.table-meta { display: flex; min-height: 42px; padding: 9px 15px; align-items: center; justify-content: space-between; color: var(--ink-500); background: #fdfbf9; font-size: 9px; }
.table-meta strong { color: var(--ink-800); }
.applicant-table { min-width: 1500px; }
.applicant-table th:first-child, .applicant-table td:first-child { width: 40px; }
.applicant-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand-red); }
.stage-submitted { color: var(--blue); background: var(--blue-bg); }
.stage-screening { color: var(--violet); background: var(--violet-bg); }
.stage-shortlisted { color: var(--success-700); background: var(--success-100); }
.stage-on_hold { color: var(--amber); background: var(--amber-bg); }
.stage-rejected { color: var(--error); background: var(--error-bg); }
.draft-cohort-notice, .draft-detail-banner { display: flex; min-height: 48px; padding: 11px 15px; align-items: center; gap: 12px; border-bottom: 1px solid #e6cb92; color: #6f4b13; background: #fff8e8; font-size: 10px; }
.draft-cohort-notice strong, .draft-detail-banner strong { flex: 0 0 auto; padding: 3px 7px; border-radius: 5px; color: #74480b; background: #f8dfaa; font-size: 9px; text-transform: uppercase; }
.draft-table { min-width: 1000px; }
.detail-stage { min-height: 30px; padding-inline: 12px; font-size: 10px; }
.decision-strip { display: grid; margin-bottom: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.decision-strip > div { display: flex; min-height: 66px; padding: 12px 15px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line-soft); }
.decision-strip > div:last-child { border: 0; }
.decision-strip span { color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.decision-strip strong { margin-top: 4px; font-size: 12px; }
.decision-strip.compact { margin: 0; grid-template-columns: repeat(3, 1fr); }
.applicant-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 15px; align-items: start; }
.detail-main-stack, .detail-side-stack { display: grid; gap: 14px; }
.detail-side-stack { position: sticky; top: 82px; }
.detail-section { overflow: hidden; }
.detail-content { padding: 16px 18px; }
.history-label { padding: 4px 7px; border-radius: 5px; color: var(--navy-700); background: var(--navy-100); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.attempt-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 9px; }
.attempt-card + .attempt-card { margin-top: 10px; }
.attempt-card header { display: flex; padding: 10px 12px; align-items: center; justify-content: space-between; background: #faf8f5; }
.attempt-card header strong { font-size: 11px; }
.attempt-card header span { color: var(--ink-500); font-size: 9px; }
.attempt-card ul { margin: 0; padding: 5px 12px; list-style: none; }
.attempt-card li { display: flex; padding: 8px 0; align-items: flex-start; gap: 9px; border-bottom: 1px solid var(--line-soft); }
.attempt-card li:last-child { border: 0; }
.attempt-card li > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 900; }
.attempt-card li.passed > span { color: var(--success-700); background: var(--success-100); }
.attempt-card li.failed > span { color: var(--error); background: var(--error-bg); }
.attempt-card li div { display: flex; flex-direction: column; }
.attempt-card li strong { font-size: 10px; }
.attempt-card li small { margin-top: 2px; color: var(--ink-500); font-size: 8px; }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }
.identity-grid > div { min-height: 72px; padding: 12px 14px; background: white; }
.identity-grid > div > span { display: block; margin-bottom: 5px; color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.identity-grid > div > strong { display: block; overflow-wrap: anywhere; font-size: 11px; }
.sensitive-reveal { margin-top: 7px; padding: 0; border: 0; color: var(--brand-red-dark); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.sensitive-reveal:disabled { opacity: .55; }
[data-cnic-feedback] { display: block; margin-top: 4px; color: var(--ink-500); font-size: 8px; }
.answer-list { margin: 0; }
.answer-list > div { display: grid; padding: 10px 0; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 18px; border-bottom: 1px solid var(--line-soft); }
.answer-list > div:last-child { border: 0; }
.answer-list dt { color: var(--ink-600); font-size: 10px; font-weight: 700; }
.answer-list dd { margin: 0; color: var(--ink-900); font-size: 11px; white-space: pre-wrap; }
.document-review-list { display: grid; gap: 8px; }
.document-review-list article { display: flex; min-height: 70px; padding: 11px 12px; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line-soft); border-radius: 8px; }
.document-review-list article > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.document-review-list article strong { font-size: 11px; }
.document-review-list article span { margin-top: 2px; overflow: hidden; color: var(--ink-700); font-size: 9px; text-overflow: ellipsis; }
.document-review-list article small { margin-top: 3px; color: var(--ink-500); font-size: 8px; }
.document-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.history-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.history-columns > div + div { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.history-columns h3 { margin-bottom: 10px; font-size: 12px; }
.history-columns article { display: flex; padding: 8px 0; flex-direction: column; border-bottom: 1px solid var(--line-soft); }
.history-columns article strong { font-size: 10px; }
.history-columns article span, .history-columns article small { color: var(--ink-500); font-size: 9px; }
.declaration-block p { margin-bottom: 10px; color: var(--ink-800); font-size: 11px; }
.declaration-block small { color: var(--ink-500); font-size: 9px; }
.side-form { display: grid; gap: 10px; padding: 14px; }
.side-form textarea { resize: vertical; }
.note-list { display: grid; max-height: 420px; padding: 5px 14px; overflow-y: auto; }
.note-list article { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.note-list article p { margin: 0 0 5px; color: var(--ink-800); font-size: 10px; }
.note-list article small { color: var(--ink-500); font-size: 8px; }
.note-form { border-top: 1px solid var(--line-soft); background: #fdfbf9; }
.stage-timeline { margin: 0; padding: 12px 16px 14px; list-style: none; }
.stage-timeline li { position: relative; display: grid; padding: 6px 0 11px; grid-template-columns: 13px 1fr; gap: 8px; }
.stage-timeline li::before { position: absolute; top: 17px; bottom: -5px; left: 4px; width: 1px; background: var(--line); content: ""; }
.stage-timeline li:last-child::before { display: none; }
.stage-timeline li > span { z-index: 1; width: 9px; height: 9px; margin-top: 4px; border: 2px solid white; border-radius: 50%; background: var(--navy-700); box-shadow: 0 0 0 1px var(--navy-700); }
.stage-timeline div { display: flex; flex-direction: column; }
.stage-timeline strong { font-size: 10px; }
.stage-timeline small { color: var(--ink-500); font-size: 8px; }
.stage-timeline p { margin: 4px 0 0; font-size: 9px; }
.empty-copy { margin: 0; padding: 13px 0; color: var(--ink-500); font-size: 10px; }
.draft-detail-banner { margin-bottom: 14px; border: 1px solid #e6cb92; border-radius: 9px; }

@media (max-width: 1180px) {
  .applicant-filter-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .applicant-detail-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .applicant-filter-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .applicant-detail-grid { grid-template-columns: 1fr; }
  .detail-side-stack { position: static; }
  .bulk-toolbar { position: static; align-items: stretch; flex-wrap: wrap; }
  .bulk-toolbar .bulk-reason { min-width: 260px; }
}

@media (max-width: 620px) {
  .cohort-tabs { grid-template-columns: 1fr; }
  .cohort-tabs a { min-height: 68px; }
  .applicant-filter-grid { grid-template-columns: 1fr; }
  .decision-strip { grid-template-columns: 1fr 1fr; }
  .decision-strip > div:nth-child(2) { border-right: 0; }
  .decision-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .identity-grid, .history-columns { grid-template-columns: 1fr; }
  .history-columns > div + div { padding: 15px 0 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .answer-list > div { grid-template-columns: 1fr; gap: 4px; }
  .document-review-list article { align-items: flex-start; flex-direction: column; }
  .bulk-toolbar label { width: 100%; align-items: stretch; flex-direction: column; }
  .bulk-toolbar select, .bulk-toolbar .bulk-reason input { width: 100%; }
}

/* PH-01 vacancies and public careers */
.btn-warning { color: #6f4808; border-color: #e8ca8c; background: var(--amber-bg); }
.btn-warning:hover:not(:disabled) { border-color: #c89a41; background: #ffedc5; }
.btn-danger-soft { color: var(--error); border-color: #e5bac5; background: var(--error-bg); }
.btn-danger-soft:hover:not(:disabled) { border-color: var(--error); background: #ffe5eb; }
.breadcrumb-link, .public-back-link { display: inline-flex; margin-bottom: 14px; color: var(--brand-red-dark); font-size: 12px; font-weight: 800; }
.page-heading .breadcrumb-link + .eyebrow { margin-top: 2px; }
.table-count { color: var(--ink-500); font-size: 11px; font-weight: 700; }
.filter-form { display: flex; align-items: center; gap: 8px; }
.filter-form .select-control { min-width: 205px; }
.table-actions { display: flex; align-items: center; gap: 11px; }
.row-link { color: var(--brand-red-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.row-link:hover { text-decoration: underline; }
.muted { color: var(--ink-500) !important; }
.status-draft { color: var(--ink-600); background: #efefef; }
.status-open { color: var(--success-700); background: var(--success-100); }
.status-paused { color: var(--amber); background: var(--amber-bg); }
.status-closed { color: var(--error); background: var(--error-bg); }
.vacancy-table { min-width: 1080px; }
.vacancy-table th:first-child, .vacancy-table td:first-child { width: auto; padding-left: 18px; }
.vacancy-form-heading { align-items: end; }
.vacancy-form-heading .heading-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vacancy-form-heading form { margin: 0; }
.lifecycle-strip { display: flex; min-height: 48px; margin-bottom: 18px; padding: 10px 14px; align-items: center; flex-wrap: wrap; gap: 12px 22px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-600); background: white; font-size: 11px; }
.lifecycle-strip a { color: var(--brand-red-dark); font-weight: 800; }
.vacancy-form { display: grid; gap: 14px; }
.form-section { position: relative; display: grid; grid-template-columns: 45px 220px 1fr; gap: 18px; padding: 22px; overflow: visible; }
.form-section-index { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 10px; font-weight: 900; }
.form-section-heading h2 { margin: 1px 0 6px; font-size: 16px; }
.form-section-heading p { margin: 0; font-size: 11px; line-height: 1.6; }
.form-section-fields { padding-left: 22px; border-left: 1px solid var(--line-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.checkbox-align { display: flex; align-items: end; padding-bottom: 7px; }
.required-mark { margin-left: 3px; color: var(--brand-red); }
.native-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox-field { justify-content: center; }
.checkbox-field .check-control strong { color: var(--ink-800); font-size: 12px; }
.checkbox-field small { margin-left: 25px; }
.sticky-form-actions { position: sticky; z-index: 8; bottom: 12px; display: flex; padding: 12px 14px; align-items: center; justify-content: flex-end; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(3,3,68,.12); backdrop-filter: blur(12px); }
.audit-panel { margin-top: 18px; }
.audit-list { margin: 0; padding: 8px 18px 16px; list-style: none; }
.audit-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.audit-list li:last-child { border: 0; }
.audit-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 4px var(--brand-red-soft); }
.audit-list div { display: flex; flex-direction: column; }
.audit-list strong { font-size: 11px; }
.audit-list small { margin-top: 2px; color: var(--ink-500); font-size: 9px; }
.master-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.master-list { max-height: 430px; margin: 0; padding: 6px 17px; overflow: auto; list-style: none; }
.master-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 0; align-items: center; border-bottom: 1px solid var(--line-soft); }
.master-list li:last-child { border: 0; }
.master-list li > div { display: flex; min-width: 0; flex-direction: column; }
.master-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.master-list small { margin-top: 2px; color: var(--ink-500); font-size: 9px; }
.master-empty { display: flex; min-height: 115px; align-items: center; justify-content: center; flex-direction: column; color: var(--ink-500); }
.master-empty span { font-size: 24px; }
.master-empty p { margin: 4px 0 0; font-size: 11px; }
.narrow-heading { max-width: 760px; }
.compact-form-panel { max-width: 760px; padding: 24px; }
.form-actions { display: flex; padding-top: 8px; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line-soft); }
.campaign-art-live { background: radial-gradient(circle at 16% 0, rgba(230,0,0,.78), transparent 40%), radial-gradient(circle at 100% 100%, rgba(76,76,154,.34), transparent 45%), linear-gradient(135deg, var(--navy-700), var(--navy-950)); }
.public-empty-state { display: flex; min-height: 280px; padding: 35px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); text-align: center; }
.public-empty-state > span { display: grid; width: 54px; height: 54px; margin-bottom: 14px; place-items: center; border-radius: 15px; color: var(--navy-700); background: var(--navy-100); font-size: 24px; }
.public-empty-state h3 { margin-bottom: 6px; font-size: 20px; }
.public-empty-state p { max-width: 480px; margin-bottom: 18px; }
.campaign-hero, .vacancy-hero { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 82% 5%, rgba(230,0,0,.3), transparent 30%), linear-gradient(125deg, var(--navy-950), var(--navy-700)); }
.campaign-hero::after, .vacancy-hero::after { position: absolute; right: -140px; bottom: -260px; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.campaign-hero { padding: 72px 0; }
.campaign-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 260px; gap: 80px; align-items: center; }
.campaign-hero h1, .vacancy-hero h1 { margin-bottom: 14px; font-size: clamp(42px, 5vw, 68px); }
.campaign-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.68); font-size: 17px; }
.campaign-hero .public-back-link, .vacancy-hero .public-back-link { color: #ffc3c3; }
.campaign-count-card { display: flex; padding: 24px; flex-direction: column; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.07); }
.campaign-count-card strong { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.campaign-count-card span { margin-top: 7px; font-size: 13px; font-weight: 800; }
.campaign-count-card small { margin-top: 12px; color: rgba(255,255,255,.5); font-size: 10px; }
.public-listing-section { background: var(--canvas); }
.vacancy-card-list { display: grid; gap: 13px; }
.public-vacancy-card { display: flex; padding: 24px 25px; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.public-vacancy-card:hover { border-color: #c7c6d6; box-shadow: 0 10px 30px rgba(3,3,68,.08); }
.vacancy-card-main { min-width: 0; }
.vacancy-card-meta { display: flex; margin-bottom: 9px; align-items: center; gap: 10px; color: var(--ink-500); font-size: 10px; font-weight: 700; }
.public-vacancy-card h3 { margin-bottom: 7px; font-size: 21px; }
.public-vacancy-card h3 a:hover { color: var(--brand-red-dark); }
.public-vacancy-card p { max-width: 760px; margin-bottom: 13px; font-size: 12px; }
.vacancy-facts { display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--ink-600); font-size: 11px; font-weight: 700; }
.vacancy-facts span { display: flex; align-items: center; gap: 6px; }
.vacancy-facts i { color: var(--brand-red-dark); font-style: normal; }
.preview-banner { color: white; background: var(--amber); }
.preview-banner .container { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; }
.preview-banner a { font-weight: 800; }
.vacancy-hero { padding: 70px 0; }
.vacancy-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 345px; gap: 75px; align-items: center; }
.vacancy-title-meta { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 700; }
.vacancy-title-meta .badge { border: 1px solid rgba(255,255,255,.18); }
.vacancy-hero h1 { margin: 15px 0 10px; }
.vacancy-client { color: rgba(255,255,255,.72); font-size: 17px; }
.vacancy-hero-facts { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 20px; }
.vacancy-hero-facts > span { display: flex; min-width: 130px; padding-right: 20px; flex-direction: column; border-right: 1px solid rgba(255,255,255,.16); }
.vacancy-hero-facts small { color: rgba(255,255,255,.47); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vacancy-hero-facts strong { margin-top: 3px; font-size: 12px; }
.vacancy-action-card { padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; color: var(--ink-950); background: white; box-shadow: var(--shadow-md); }
.vacancy-action-card > small { display: block; margin-top: 10px; color: var(--ink-500); font-size: 9px; text-align: center; }
.state-callout { display: flex; gap: 12px; margin-bottom: 18px; }
.state-callout > span { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 10px; font-weight: 900; }
.state-callout.open > span { color: var(--success-700); background: var(--success-100); }
.state-callout.paused > span { color: var(--amber); background: var(--amber-bg); }
.state-callout.closed > span { color: var(--error); background: var(--error-bg); }
.state-callout.draft > span { color: var(--navy-700); background: var(--navy-100); }
.state-callout strong { display: block; font-size: 13px; }
.state-callout p { margin: 3px 0 0; font-size: 10px; }
.vacancy-detail-section { padding: 70px 0 90px; background: var(--canvas); }
.vacancy-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 30px; align-items: start; }
.vacancy-content { display: grid; gap: 18px; }
.vacancy-content > section, .detail-card { padding: 28px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.vacancy-content h2 { margin-bottom: 15px; font-size: 26px; }
.rich-copy p { margin-bottom: 11px; color: var(--ink-700); font-size: 13px; line-height: 1.75; }
.rich-copy p:last-child { margin-bottom: 0; }
.requirement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-icon { display: grid; width: 38px; height: 38px; margin-bottom: 14px; place-items: center; border-radius: 10px; color: var(--brand-red-dark); background: var(--brand-red-soft); }
.detail-card h3 { margin-bottom: 10px; font-size: 18px; }
.role-detail-list { margin: 0; }
.role-detail-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 25px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.role-detail-list > div:last-child { border: 0; }
.role-detail-list dt { color: var(--ink-500); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.role-detail-list dd { margin: 0; color: var(--ink-800); font-size: 12px; }
.eligibility-panel { position: sticky; top: 22px; overflow: hidden; border-radius: 17px; color: white; background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-md); }
.eligibility-heading { display: flex; padding: 26px; align-items: center; gap: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.eligibility-icon { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: white; background: var(--brand-red); font-weight: 900; }
.eligibility-heading .eyebrow { margin-bottom: 2px; }
.eligibility-heading h2 { margin: 0; font-size: 23px; }
.eligibility-language { padding: 23px 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.eligibility-language > span { display: inline-flex; margin-bottom: 11px; padding: 3px 8px; border-radius: 20px; color: #ffc3c3; background: rgba(230,0,0,.19); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.eligibility-language.urdu { font-family: "Noto Nastaliq Urdu", "Segoe UI", Arial, sans-serif; }
.eligibility-language.urdu > span { font-size: 12px; }
.rich-copy.inverse p { color: rgba(255,255,255,.82); font-size: 12px; }
.eligibility-language.urdu .rich-copy p { font-size: 15px; line-height: 2; }
.eligibility-note { padding: 17px 26px; color: rgba(255,255,255,.52); background: rgba(255,255,255,.04); font-size: 9px; line-height: 1.6; }

@media (max-width: 1080px) {
  .form-section { grid-template-columns: 42px 180px 1fr; }
  .campaign-hero-grid { gap: 45px; }
  .vacancy-hero-grid { gap: 40px; }
  .vacancy-detail-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 860px) {
  .master-grid { grid-template-columns: 1fr; }
  .form-section { grid-template-columns: 42px 1fr; }
  .form-section-fields { grid-column: 1 / -1; padding: 18px 0 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .campaign-hero-grid, .vacancy-hero-grid, .vacancy-detail-grid { grid-template-columns: 1fr; }
  .campaign-count-card { width: min(280px, 100%); }
  .vacancy-action-card { width: min(480px, 100%); }
  .eligibility-panel { position: static; }
}

@media (max-width: 620px) {
  .filter-bar, .filter-form { align-items: stretch; flex-direction: column; }
  .filter-form { width: 100%; }
  .filter-form .select-control { min-width: 0; }
  .vacancy-form-heading .heading-actions { align-items: stretch; flex-direction: column; }
  .vacancy-form-heading .heading-actions form, .vacancy-form-heading .heading-actions .btn { width: 100%; }
  .form-section { grid-template-columns: 36px 1fr; padding: 17px; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .sticky-form-actions { bottom: 8px; }
  .master-list li { grid-template-columns: 1fr auto; }
  .master-list .row-link { grid-column: 1 / -1; }
  .campaign-hero, .vacancy-hero { padding: 50px 0; }
  .campaign-hero h1, .vacancy-hero h1 { font-size: 39px; }
  .public-vacancy-card { align-items: stretch; flex-direction: column; gap: 18px; }
  .public-vacancy-card .btn { width: 100%; }
  .preview-banner .container { padding-block: 8px; align-items: flex-start; flex-direction: column; gap: 2px; }
  .vacancy-hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .vacancy-hero-facts > span { padding: 0; border: 0; }
  .vacancy-detail-section { padding: 42px 0 55px; }
  .requirement-grid { grid-template-columns: 1fr; }
  .vacancy-content > section, .detail-card { padding: 22px; }
  .role-detail-list > div { grid-template-columns: 1fr; gap: 5px; }
}

/* PH-02 eligibility funnel and form versioning */
.version-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.version-summary-card { min-height: 175px; padding: 21px; }
.version-summary-card .eyebrow { margin-bottom: 12px; }
.version-card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.version-card-title > strong { font-family: var(--font-display); font-size: 20px; }
.version-summary-card p { margin: 10px 0 14px; font-size: 11px; line-height: 1.65; }
.version-summary-card > small { color: var(--ink-500); font-size: 9px; font-weight: 700; }
.version-summary-card form { margin-top: 15px; }
.eligibility-setup-form { display: grid; gap: 14px; }
.timer-field { max-width: 340px; }
.criteria-panel { overflow: visible; }
.criteria-list { display: grid; gap: 12px; padding: 14px; }
.criterion-editor { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fdfbf9; }
.criterion-editor-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.criterion-number { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 9px; font-weight: 900; }
.criterion-editor-heading > div { display: flex; flex: 1; flex-direction: column; }
.criterion-editor-heading strong { font-size: 12px; }
.criterion-editor-heading small { color: var(--ink-500); font-size: 9px; }
.criterion-remove { display: flex; align-items: center; gap: 6px; color: var(--error); cursor: pointer; font-size: 10px; font-weight: 800; }
.criterion-grid { display: grid; grid-template-columns: 110px 180px 90px minmax(220px, 1fr); gap: 14px; }
.criterion-grid .span-2 { grid-column: span 2; }
.criteria-empty { display: flex; min-height: 150px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.criteria-empty > span { display: grid; width: 40px; height: 40px; margin-bottom: 9px; place-items: center; border-radius: 11px; color: var(--navy-700); background: var(--navy-100); }
.criteria-empty strong { font-size: 12px; }
.criteria-empty p { margin: 3px 0 0; font-size: 10px; }
.split-actions { justify-content: space-between; }
.split-actions > span { color: var(--ink-500); font-size: 10px; font-weight: 700; }
.split-actions > div { display: flex; gap: 8px; }
.publish-panel { display: flex; margin-top: 16px; padding: 22px; align-items: center; justify-content: space-between; gap: 30px; border-color: #e7c5c5; background: linear-gradient(90deg, #fff9f8, white); }
.publish-panel .eyebrow { margin-bottom: 5px; }
.publish-panel h2 { margin-bottom: 5px; font-size: 18px; }
.publish-panel p { margin: 0; font-size: 10px; }
.publish-panel form { flex: 0 0 auto; }
.version-history-panel { margin-top: 16px; }
.version-table { min-width: 760px; }
.version-table th:first-child, .version-table td:first-child { width: auto; padding-left: 18px; }
.read-only-version { margin-top: 16px; }
.read-only-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.read-only-grid > div { padding: 22px; }
.read-only-grid > div + div { border-left: 1px solid var(--line-soft); }
.read-only-grid span { display: block; margin-bottom: 10px; color: var(--ink-500); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.read-only-grid p { font-size: 12px; }

.funnel-section { min-height: calc(100vh - 76px); padding: 42px 0 76px; background: linear-gradient(145deg, #fff7f5, var(--canvas) 38%, #f2f2f8); }
.funnel-container { width: min(1040px, calc(100% - 48px)); }
.narrow-funnel { width: min(820px, calc(100% - 48px)); }
.funnel-progress { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 0 auto 44px; }
.funnel-progress > span { position: relative; display: flex; align-items: center; gap: 9px; color: var(--ink-500); font-size: 10px; font-weight: 800; }
.funnel-progress > span::after { position: absolute; z-index: 0; top: 15px; left: 36px; right: 8px; height: 1px; background: #cecbd0; content: ""; }
.funnel-progress > span:last-child::after { display: none; }
.funnel-progress i { position: relative; z-index: 1; display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid #cbc7c3; border-radius: 50%; color: var(--ink-500); background: var(--surface); font-style: normal; }
.funnel-progress .active { color: var(--brand-red-dark); }
.funnel-progress .active i { border-color: var(--brand-red); color: white; background: var(--brand-red); box-shadow: 0 0 0 5px rgba(230,0,0,.08); }
.funnel-progress .complete i { border-color: var(--success-600); color: white; background: var(--success-600); }
.funnel-heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.funnel-heading .public-back-link { justify-content: center; }
.funnel-heading h1 { margin-bottom: 9px; font-size: clamp(34px, 4vw, 49px); }
.funnel-heading p { margin: 0; font-size: 14px; }
.funnel-alert { max-width: 820px; margin: 0 auto 18px; }
.disclosure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.disclosure-card { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.disclosure-card.urdu { font-family: "Noto Nastaliq Urdu", "Segoe UI", Arial, sans-serif; }
.language-label { display: flex; margin-bottom: 22px; align-items: center; gap: 11px; }
.language-label > span { display: grid; min-width: 40px; height: 40px; padding: 0 7px; place-items: center; border-radius: 10px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 10px; font-weight: 900; }
.language-label > div { display: flex; flex-direction: column; }
.language-label strong { font-size: 13px; }
.language-label small { color: var(--ink-500); font-size: 9px; }
.disclosure-card.urdu .rich-copy p { font-size: 16px; line-height: 2.1; }
.funnel-action-card { display: flex; min-height: 118px; margin-top: 18px; padding: 22px 24px; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid #d5d2ce; border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.funnel-action-card > div > strong { font-size: 13px; }
.funnel-action-card > div > p { margin: 3px 0 0; font-size: 10px; }
.acknowledgement-check { display: flex; flex: 1; align-items: flex-start; gap: 12px; cursor: pointer; }
.acknowledgement-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.acknowledgement-check > span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 2px solid #b9b4af; border-radius: 6px; background: white; }
.acknowledgement-check input:checked + span { border-color: var(--brand-red); background: var(--brand-red); }
.acknowledgement-check input:checked + span::after { color: white; content: "✓"; font-weight: 900; }
.acknowledgement-check > div { display: flex; flex-direction: column; }
.acknowledgement-check strong { font-size: 12px; }
.acknowledgement-check small { margin-top: 5px; color: var(--ink-600); font-size: 12px; }
.funnel-action-end { display: flex; align-items: center; gap: 18px; }
.reading-timer { display: flex; flex-direction: column; color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-align: right; text-transform: uppercase; }
.reading-timer strong { margin-top: 2px; color: var(--amber); font-size: 10px; white-space: nowrap; }
.question-form { display: grid; gap: 13px; }
.question-card { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.question-card legend { display: flex; width: 100%; padding: 0; align-items: flex-start; gap: 12px; }
.question-card legend > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 9px; font-weight: 900; }
.question-card legend > div { display: flex; flex: 1; flex-direction: column; }
.question-card legend strong { color: var(--ink-950); font-size: 14px; }
.question-card legend small { margin-top: 6px; color: var(--ink-600); font-size: 14px; font-weight: 500; line-height: 1.9; }
.question-help { margin: 8px 0 14px 46px; padding: 8px 11px; border-left: 3px solid var(--navy-100); font-size: 10px; }
.yes-no-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0 46px; }
.yes-no-options label { cursor: pointer; }
.yes-no-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.yes-no-options label > span { display: flex; min-height: 58px; padding: 11px 15px; align-items: center; gap: 9px; border: 1px solid #d6d2cd; border-radius: 10px; background: #fdfbf9; }
.yes-no-options label > span i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: var(--ink-500); background: white; font-style: normal; }
.yes-no-options label > span b { font-size: 12px; }
.yes-no-options label > span small { margin-left: auto; color: var(--ink-500); font-size: 11px; }
.yes-no-options input:checked + span { border-color: var(--brand-red); background: var(--brand-red-faint); box-shadow: 0 0 0 2px rgba(230,0,0,.08); }
.yes-no-options input:checked + span i { color: white; background: var(--brand-red); }
.zero-criteria-card { display: flex; padding: 30px; align-items: center; gap: 16px; border: 1px solid #bbddcf; border-radius: 14px; background: var(--success-50); }
.zero-criteria-card > span { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: white; background: var(--success-600); font-weight: 900; }
.zero-criteria-card h2 { margin-bottom: 4px; font-size: 18px; }
.zero-criteria-card p { margin: 0; font-size: 11px; }
.question-actions { display: flex; margin-top: 5px; align-items: center; justify-content: space-between; }
.result-section { display: grid; min-height: calc(100vh - 76px); padding: 70px 0; place-items: center; background: radial-gradient(circle at 50% 0, #fff0ee, transparent 38%), var(--canvas); }
.result-container { width: min(680px, calc(100% - 40px)); padding: 48px; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-md); text-align: center; }
.result-icon { display: grid; width: 67px; height: 67px; margin: 0 auto 22px; place-items: center; border-radius: 19px; font-size: 30px; font-weight: 900; }
.result-icon.passed { color: white; background: var(--success-600); box-shadow: 0 10px 28px rgba(33,129,93,.2); }
.result-icon.flagged { color: #784c0a; background: var(--amber-bg); }
.result-icon.blocked { color: white; background: var(--error); box-shadow: 0 10px 28px rgba(159,29,58,.2); }
.result-container h1 { margin-bottom: 13px; font-size: clamp(32px, 4vw, 46px); }
.result-container > p { max-width: 560px; margin: 0 auto 25px; font-size: 14px; }
.result-actions { display: flex; justify-content: center; gap: 10px; }
.result-privacy { display: block; margin-top: 23px; color: var(--ink-500); font-size: 9px; }

@media (max-width: 860px) {
  .criterion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criterion-grid .span-2 { grid-column: 1 / -1; }
  .disclosure-grid { grid-template-columns: 1fr; }
  .disclosure-card { min-height: 0; }
  .funnel-action-card { align-items: stretch; flex-direction: column; }
  .funnel-action-end { justify-content: space-between; }
}

@media (max-width: 620px) {
  .version-summary-grid, .read-only-grid { grid-template-columns: 1fr; }
  .read-only-grid > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  .criterion-grid { grid-template-columns: 1fr; }
  .criterion-grid .span-2 { grid-column: auto; }
  .split-actions, .publish-panel { align-items: stretch; flex-direction: column; }
  .split-actions > div, .publish-panel form, .publish-panel .btn { width: 100%; }
  .split-actions .btn { flex: 1; }
  .funnel-section { min-height: calc(100vh - 66px); padding: 28px 0 55px; }
  .funnel-container, .narrow-funnel { width: min(100% - 26px, 560px); }
  .funnel-progress { margin-bottom: 32px; }
  .funnel-progress b { display: none; }
  .funnel-progress > span { justify-content: flex-start; }
  .funnel-progress > span::after { left: 35px; right: 5px; }
  .funnel-heading h1 { font-size: 34px; }
  .disclosure-card { padding: 21px; }
  .funnel-action-card { padding: 19px; }
  .funnel-action-end { align-items: stretch; flex-direction: column; }
  .reading-timer { text-align: left; }
  .question-card { padding: 17px; }
  .question-help, .yes-no-options { margin-left: 0; }
  .yes-no-options { grid-template-columns: 1fr; }
  .question-actions, .result-actions { align-items: stretch; flex-direction: column; }
  .question-actions .btn, .result-actions .btn { width: 100%; }
  .result-section { min-height: calc(100vh - 66px); padding: 35px 0; }
  .result-container { padding: 35px 22px; }
}

/* PH-03 candidate identity, OTP and secure account boundary */
.candidate-auth-section { background: radial-gradient(circle at 8% 12%, rgba(230,0,0,.08), transparent 30%), linear-gradient(135deg, #fff8f6, #fff 58%, #f2f2f8); }
.candidate-auth-form { margin-top: 23px; }
.candidate-auth-form .alert { margin-bottom: 2px; }
.identity-privacy-note { display: flex; margin-top: 20px; padding: 12px 13px; align-items: flex-start; gap: 10px; border-radius: 10px; background: var(--navy-50); }
.identity-privacy-note > span { color: var(--navy-700); font-size: 10px; }
.identity-privacy-note p { margin: 0; color: var(--ink-600); font-size: 10px; line-height: 1.6; }
.otp-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 25px !important; font-weight: 800; letter-spacing: .22em; text-align: center; }
.otp-secondary-actions { display: flex; margin-top: 20px; align-items: center; justify-content: center; gap: 18px; color: var(--brand-red-dark); font-size: 11px; font-weight: 700; }
.text-button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.text-button:hover, .otp-secondary-actions a:hover { text-decoration: underline; }
.recovery-note { max-width: 520px; margin: 0 auto 24px; text-align: left; }
.recovery-note p { margin: 2px 0 0; }

.candidate-account-section { min-height: calc(100vh - 76px); padding: 68px 0 86px; background: linear-gradient(145deg, #fff8f6, var(--canvas) 42%, #f1f1f7); }
.candidate-account-wrap { width: min(960px, calc(100% - 48px)); }
.candidate-account-heading { display: flex; margin-bottom: 28px; align-items: flex-end; justify-content: space-between; gap: 30px; }
.candidate-account-heading h1 { margin-bottom: 8px; font-size: clamp(36px, 4vw, 50px); }
.candidate-account-heading p { margin: 0; }
.candidate-account-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.candidate-identity-card, .candidate-next-card { min-height: 290px; padding: 29px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-sm); }
.account-card-icon { display: grid; width: 46px; height: 46px; margin-bottom: 22px; place-items: center; border-radius: 13px; color: white; background: var(--success-600); font-weight: 900; }
.candidate-identity-card h2, .candidate-next-card h2 { margin-bottom: 8px; font-size: 25px; }
.candidate-identity-card p, .candidate-next-card p { font-size: 12px; line-height: 1.7; }
.candidate-identity-card dl { display: grid; gap: 9px; margin: 22px 0 0; }
.candidate-identity-card dl > div { display: flex; padding: 10px 12px; align-items: center; justify-content: space-between; border-radius: 9px; background: var(--canvas); }
.candidate-identity-card dt { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.candidate-identity-card dd { margin: 0; color: var(--ink-800); font-size: 12px; font-weight: 800; }
.candidate-next-card { display: flex; align-items: flex-start; flex-direction: column; }
.candidate-next-card .btn, .candidate-next-card .badge { margin-top: auto; }
.account-boundary-note { margin-top: 18px; }
.account-boundary-note p { margin: 2px 0 0; }

@media (max-width: 760px) {
  .candidate-account-heading { align-items: stretch; flex-direction: column; }
  .candidate-account-heading form, .candidate-account-heading .btn { width: 100%; }
  .candidate-account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .candidate-auth-section { padding: 42px 0 55px; }
  .candidate-auth-section .auth-grid { gap: 32px; }
  .candidate-auth-section .auth-intro h1 { font-size: 37px; }
  .candidate-auth-section .auth-card { padding: 25px 20px; }
  .otp-secondary-actions { align-items: center; flex-direction: column; gap: 10px; }
  .candidate-account-section { min-height: calc(100vh - 66px); padding: 42px 0 55px; }
  .candidate-account-wrap { width: min(100% - 26px, 560px); }
  .candidate-identity-card, .candidate-next-card { min-height: 0; padding: 23px; }
  .candidate-next-card .btn, .candidate-next-card .badge { margin-top: 18px; }
}

/* PH-04 reusable Candidate Profile and structured history */
.candidate-account-nav { display: flex; min-height: 54px; margin-bottom: 20px; padding: 5px; align-items: center; gap: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.candidate-account-nav > a, .candidate-account-nav form button { display: inline-flex; min-height: 42px; padding: 9px 15px; align-items: center; justify-content: center; border-radius: 9px; color: var(--ink-600); font-size: 12px; font-weight: 800; white-space: nowrap; }
.candidate-account-nav > a:hover { color: var(--navy-800); background: var(--navy-50); }
.candidate-account-nav > a.active { color: white; background: var(--navy-800); box-shadow: 0 5px 14px rgba(3,3,68,.16); }
.candidate-account-nav form { margin-left: auto; }
.candidate-account-nav form button { color: var(--brand-red-dark); }
.candidate-account-nav form button:hover { background: var(--brand-red-soft); }
.profile-start-card .profile-counts { display: grid; width: 100%; margin: 7px 0 18px; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-counts > span { display: flex; padding: 10px 12px; flex-direction: column; border-radius: 9px; color: var(--ink-600); background: var(--canvas); font-size: 9px; font-weight: 700; }
.profile-counts strong { color: var(--navy-800); font-family: var(--font-display); font-size: 20px; }
.account-opportunity-card { display: flex; margin-top: 18px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-sm); }
.account-opportunity-card .eyebrow { margin-bottom: 3px; }
.account-opportunity-card strong { font-family: var(--font-display); font-size: 17px; }
.account-opportunity-card p { margin: 2px 0 0; font-size: 11px; }
.profile-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.verified-identity-panel, .candidate-form-card { border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-sm); }
.verified-identity-panel { position: sticky; top: 18px; padding: 25px; }
.verified-identity-panel h2 { margin-bottom: 8px; font-size: 23px; }
.verified-identity-panel > p { font-size: 11px; line-height: 1.7; }
.verified-identity-panel dl { display: grid; gap: 8px; margin: 20px 0; }
.verified-identity-panel dl > div { padding: 10px 11px; border-radius: 9px; background: var(--canvas); }
.verified-identity-panel dt { margin-bottom: 2px; color: var(--ink-500); font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.verified-identity-panel dd { margin: 0; color: var(--navy-800); font-size: 12px; font-weight: 800; }
.verified-identity-panel > small { display: block; padding-top: 15px; border-top: 1px solid var(--line-soft); color: var(--ink-500); font-size: 9px; line-height: 1.65; }
.candidate-form-card { padding: 27px; }
.candidate-form-heading { display: flex; margin-bottom: 24px; padding-bottom: 18px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.candidate-form-heading .eyebrow { margin-bottom: 3px; }
.candidate-form-heading h2 { margin: 0; font-size: 25px; }
.candidate-profile-form { display: grid; gap: 24px; }
.profile-form-alert { margin-bottom: -6px; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-field-grid .span-2 { grid-column: 1 / -1; }
.profile-field-grid .field-group > label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.profile-field-grid .field-group > label > small { color: var(--ink-500); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.profile-choice-checkbox { width: 21px; height: 21px; accent-color: var(--brand-red); }
.candidate-form-actions { display: flex; padding-top: 18px; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line-soft); }
.candidate-checkbox { display: flex !important; min-height: 48px; padding: 11px 13px; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); cursor: pointer; }
.candidate-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.candidate-checkbox > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1.5px solid #aaa6a0; border-radius: 5px; background: white; }
.candidate-checkbox input:checked + span { border-color: var(--brand-red); background: var(--brand-red); }
.candidate-checkbox input:checked + span::after { color: white; content: "✓"; font-size: 12px; }
.candidate-checkbox strong { font-size: 12px; }
.history-heading { align-items: center; }
.history-record-list { display: grid; gap: 12px; }
.history-record-card { display: grid; padding: 22px; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.history-record-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 17px; font-weight: 900; }
.history-record-copy .eyebrow { margin-bottom: 4px; }
.history-record-copy h2 { margin-bottom: 4px; font-size: 20px; }
.history-record-copy > p { margin-bottom: 0; font-size: 11px; }
.history-record-copy .history-description { max-width: 650px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-600); line-height: 1.7; }
.history-facts { display: flex; margin: 13px 0 0; gap: 20px; }
.history-facts div { display: flex; flex-direction: column; }
.history-facts dt { color: var(--ink-500); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.history-facts dd { margin: 2px 0 0; color: var(--ink-800); font-size: 10px; font-weight: 700; }
.history-record-actions { display: flex; gap: 5px; }
.danger-link { color: var(--error); }
.candidate-empty-history { display: flex; min-height: 360px; padding: 40px; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed #cbc6bf; border-radius: 17px; background: rgba(255,255,255,.72); text-align: center; }
.candidate-empty-history > span { display: grid; width: 58px; height: 58px; margin-bottom: 17px; place-items: center; border-radius: 16px; color: var(--navy-700); background: var(--navy-100); font-size: 24px; }
.candidate-empty-history h2 { margin-bottom: 7px; font-size: 24px; }
.candidate-empty-history p { max-width: 470px; margin-bottom: 20px; font-size: 12px; }
.history-form-card { width: min(760px, 100%); margin: 0 auto; }
.candidate-delete-card strong { color: var(--ink-950); }
.candidate-delete-card form { margin-top: 24px; }

@media (max-width: 760px) {
  .candidate-account-nav form { margin-left: 4px; }
  .profile-layout { grid-template-columns: 1fr; }
  .verified-identity-panel { position: static; }
  .history-record-card { grid-template-columns: 44px minmax(0, 1fr); }
  .history-record-actions { grid-column: 2; }
}

@media (max-width: 620px) {
  .candidate-account-nav { display: grid; margin-right: -2px; margin-left: -2px; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .candidate-account-nav > a { padding-inline: 7px; font-size: 10px; }
  .candidate-account-nav form { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line-soft); }
  .candidate-account-nav form button { width: 100%; min-height: 35px; padding: 6px 10px; }
  .candidate-account-heading.history-heading { align-items: stretch; }
  .candidate-account-heading.history-heading .btn { width: 100%; }
  .profile-start-card .profile-counts, .profile-field-grid { grid-template-columns: 1fr; }
  .profile-field-grid .span-2 { grid-column: auto; }
  .account-opportunity-card { align-items: stretch; flex-direction: column; }
  .account-opportunity-card .btn { width: 100%; }
  .candidate-form-card, .verified-identity-panel { padding: 21px 18px; }
  .candidate-form-heading { align-items: flex-start; flex-direction: column; }
  .candidate-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .candidate-form-actions .btn { width: 100%; }
  .history-record-card { padding: 18px; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .history-record-icon { width: 38px; height: 38px; }
  .history-record-actions { grid-column: 1 / -1; }
  .history-record-actions .btn { flex: 1; }
  .history-facts { flex-direction: column; gap: 8px; }
  .candidate-empty-history { min-height: 320px; padding: 28px 20px; }
}

/* PH-05 Vacancy Application Form Builder */
.builder-profile-panel, .builder-structure-panel { margin-top: 16px; }
.builder-profile-panel .panel-header, .builder-structure-panel .panel-header { min-height: 82px; }
.builder-profile-panel .eyebrow, .builder-structure-panel .eyebrow { margin-bottom: 3px; }
.profile-requirements-form { padding: 0 18px 18px; }
.profile-requirements-form > .alert { margin-top: 16px; }
.profile-requirement-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.profile-requirement-group > div:first-child { display: flex; flex-direction: column; }
.profile-requirement-group > div:first-child strong { color: var(--navy-800); font-size: 12px; }
.profile-requirement-group > div:first-child small { margin-top: 4px; color: var(--ink-500); font-size: 9px; line-height: 1.6; }
.profile-requirement-list { display: grid; gap: 8px; }
.profile-requirement-row { display: grid; min-height: 58px; padding: 9px 11px; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 18px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fdfbf9; }
.profile-requirement-row > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.profile-requirement-row label { color: var(--ink-800); font-size: 11px; font-weight: 800; }
.profile-requirement-row small { display: block; width: 100%; color: var(--ink-500); font-size: 8px; }
.profile-requirement-row select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #d3cfca; border-radius: 8px; background: white; font-size: 11px; }
.badge-neutral { color: var(--navy-700); background: var(--navy-100); font-size: 7px; }
.builder-inline-actions { display: flex; padding-top: 16px; align-items: center; justify-content: space-between; gap: 20px; }
.builder-inline-actions > span, .builder-read-only-note { color: var(--ink-500); font-size: 9px; }
.builder-read-only-note { padding: 22px; }
.read-only-requirements { display: grid; padding: 0 22px 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.read-only-requirements > div { padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fdfbf9; }
.read-only-requirements strong { color: var(--navy-800); font-size: 10px; }
.read-only-requirements ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.read-only-requirements li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-700); font-size: 9px; }
.builder-section-list { display: grid; gap: 12px; padding: 14px; background: #fbfaf8; }
.builder-section-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.builder-section-card > header { display: grid; min-height: 78px; padding: 15px; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line-soft); }
.builder-order, .question-order, .option-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 9px; font-weight: 900; }
.builder-section-card h3 { margin: 0 0 2px; font-size: 16px; }
.builder-section-card header p { margin: 0; font-size: 9px; }
.builder-section-card header small { display: block; margin-top: 4px; color: var(--ink-500); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 7px; }
.builder-row-actions { display: flex; align-items: center; gap: 3px; }
.builder-row-actions form { margin: 0; }
.builder-row-actions .icon-btn { width: 30px; height: 30px; border: 1px solid var(--line); background: white; }
.builder-question-list { display: grid; }
.builder-question-row { display: grid; min-height: 68px; padding: 12px 15px; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.builder-question-row:last-child { border-bottom: 0; }
.question-order { width: 27px; height: 27px; color: var(--navy-700); background: var(--navy-50); }
.builder-question-copy > div { display: flex; align-items: center; gap: 7px; }
.builder-question-copy strong { font-size: 11px; }
.builder-question-copy small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 8px; }
.required-pill, .optional-pill { padding: 2px 5px; border-radius: 4px; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.required-pill { color: var(--error); background: var(--error-bg); }
.optional-pill { color: var(--ink-500); background: var(--canvas); }
.condition-note { margin: 4px 0 0; color: var(--violet); font-size: 8px; }
.builder-section-card > footer { padding: 10px 15px; border-top: 1px solid var(--line-soft); background: #fdfbf9; font-size: 10px; }
.builder-empty-inline { padding: 17px; color: var(--ink-500); font-size: 9px; text-align: center; }
.builder-empty { min-height: 240px; }
.builder-editor-card { width: min(920px, 100%); margin: 0 auto; padding: 24px; }
.builder-editor-card form { display: grid; gap: 22px; }
.builder-question-form { display: grid; gap: 14px; }
.builder-question-form .builder-editor-card { margin: 0; width: 100%; }
.builder-editor-heading { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.builder-editor-heading .eyebrow { margin-bottom: 4px; }
.builder-editor-heading h2 { margin: 0 0 3px; font-size: 19px; }
.builder-editor-heading p { margin: 0; font-size: 9px; }
.builder-options-list { display: grid; gap: 9px; margin-bottom: 12px; }
.builder-option-row { display: grid; padding: 11px; grid-template-columns: 31px minmax(160px, 1fr) minmax(160px, 1fr) 80px auto; align-items: end; gap: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fdfbf9; }
.builder-option-row .option-number { width: 31px; height: 38px; }
.builder-option-row .field-group { gap: 4px; }
.builder-option-row .field-group input { min-height: 38px; padding: 7px 9px; font-size: 11px; }
.builder-option-row .field-group label { font-size: 9px; }
[data-options-panel].is-inactive { border-style: dashed; background: #fcfbfa; }
[data-options-panel].is-inactive .builder-editor-heading::after { display: inline-flex; margin-top: 8px; padding: 3px 7px; border-radius: 5px; color: var(--ink-500); background: var(--canvas); content: "Not used by the selected question type"; font-size: 8px; font-weight: 800; }
.preview-mode-banner { display: flex; margin-bottom: 16px; padding: 11px 14px; align-items: center; gap: 12px; border-radius: 9px; color: #754b0b; background: var(--amber-bg); font-size: 10px; }
.preview-mode-banner > span { padding: 3px 7px; border-radius: 5px; color: white; background: var(--amber); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.preview-mode-banner > a { margin-left: auto; font-weight: 900; }
.candidate-form-preview { width: min(900px, 100%); margin: 0 auto; }
.candidate-form-preview-heading { margin-bottom: 15px; padding: 31px; border-radius: 16px; color: white; background: radial-gradient(circle at 90% 0, rgba(230,0,0,.34), transparent 35%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-md); }
.candidate-form-preview-heading .eyebrow { color: #ffb7b7; }
.candidate-form-preview-heading h1 { margin-bottom: 7px; font-size: 34px; }
.candidate-form-preview-heading p { max-width: 690px; margin-bottom: 18px; color: rgba(255,255,255,.68); font-size: 11px; }
.candidate-form-preview-heading > div { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.6); font-size: 9px; }
.preview-profile-card, .preview-question-section { margin-bottom: 14px; padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.preview-section-heading { display: flex; margin-bottom: 22px; align-items: flex-start; gap: 13px; }
.preview-section-heading > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: white; background: var(--brand-red); font-size: 9px; font-weight: 900; }
.preview-section-heading h2 { margin: 0 0 4px; font-size: 22px; }
.preview-section-heading p { margin: 0; font-size: 10px; }
.preview-profile-group + .preview-profile-group { margin-top: 20px; }
.preview-profile-group h3 { margin-bottom: 10px; color: var(--navy-700); font-size: 11px; text-transform: uppercase; }
.preview-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.preview-profile-field { display: flex; flex-direction: column; gap: 6px; }
.preview-profile-field > label, .preview-field > label { color: var(--ink-800); font-size: 11px; font-weight: 800; }
.preview-profile-field > input, .preview-field > .form-control { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d3cfca; border-radius: 9px; background: white; }
.preview-profile-field > input:disabled { color: var(--ink-500); background: var(--canvas); }
.preview-profile-field > small { color: var(--ink-500); font-size: 8px; }
.preview-reusable-section { display: flex; min-height: 57px; padding: 9px; align-items: center; gap: 9px; border: 1px dashed #cbc6bf; border-radius: 9px; background: var(--canvas); }
.preview-reusable-section > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: var(--brand-red-dark); background: var(--brand-red-soft); }
.preview-reusable-section strong { font-size: 9px; }
.preview-reusable-section small { margin-left: auto; color: var(--ink-500); font-size: 7px; }
.preview-question-stack { display: grid; gap: 15px; }
.preview-field { padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fdfbf9; }
.preview-field[hidden] { display: none; }
.preview-optional { margin-left: 6px; color: var(--ink-500); font-size: 8px; font-weight: 600; }
.preview-urdu { margin: 4px 0 0; color: var(--ink-700); font-size: 13px; }
.preview-help { display: block; margin: 4px 0 9px; color: var(--ink-500); font-size: 9px; }
.preview-field textarea.form-control { resize: vertical; }
.preview-choice-grid { display: grid; margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-choice-grid label { cursor: pointer; }
.preview-choice-grid input { position: absolute; opacity: 0; }
.preview-choice-grid span { display: flex; min-height: 42px; padding: 9px 11px; align-items: center; border: 1px solid #d5d1cc; border-radius: 8px; background: white; font-size: 10px; }
.preview-choice-grid input:checked + span { border-color: var(--brand-red); color: var(--brand-red-dark); background: var(--brand-red-faint); box-shadow: inset 3px 0 0 var(--brand-red); }
.preview-declaration { display: flex; margin-top: 9px; align-items: center; gap: 9px; cursor: pointer; }
.preview-declaration input { position: absolute; opacity: 0; }
.preview-declaration > span { display: grid; width: 20px; height: 20px; place-items: center; border: 1.5px solid #aaa6a0; border-radius: 5px; background: white; }
.preview-declaration input:checked + span { border-color: var(--brand-red); background: var(--brand-red); }
.preview-declaration input:checked + span::after { color: white; content: "✓"; font-size: 11px; }
.preview-declaration strong { font-size: 10px; }
.preview-submit-boundary { display: flex; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 20px; border: 1px dashed #bcb8b2; border-radius: 13px; background: rgba(255,255,255,.8); }
.preview-submit-boundary strong { font-size: 11px; }
.preview-submit-boundary p { margin: 2px 0 0; font-size: 9px; }
.preview-empty { border: 1px dashed #cbc6bf; border-radius: 14px; background: white; }

@media (max-width: 860px) {
  .profile-requirement-group { grid-template-columns: 1fr; gap: 10px; }
  .read-only-requirements { grid-template-columns: 1fr; }
  .builder-option-row { grid-template-columns: 31px 1fr 1fr; }
  .builder-option-row .criterion-remove { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
  .profile-requirement-row { grid-template-columns: 1fr; gap: 8px; }
  .builder-inline-actions, .preview-mode-banner, .preview-submit-boundary { align-items: stretch; flex-direction: column; }
  .preview-mode-banner > a { margin-left: 0; }
  .builder-section-card > header { grid-template-columns: 34px 1fr; }
  .builder-section-card > header .builder-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .builder-question-row { grid-template-columns: 28px 1fr; }
  .builder-question-row .builder-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .builder-option-row { grid-template-columns: 31px 1fr; align-items: start; }
  .builder-option-row .field-group, .builder-option-row .criterion-remove { grid-column: 2; }
  .builder-editor-card { padding: 19px 16px; }
  .candidate-form-preview-heading, .preview-profile-card, .preview-question-section { padding: 21px 18px; }
  .preview-profile-grid, .preview-choice-grid { grid-template-columns: 1fr; }
  .preview-reusable-section { align-items: flex-start; flex-direction: column; }
  .preview-reusable-section small { margin-left: 0; }
  .preview-submit-boundary .btn { width: 100%; }
}

/* Staff workflow simplification */
.vacancy-workspace-nav { display: flex; min-height: 62px; margin-bottom: 20px; padding: 9px 12px; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.vacancy-workspace-title { display: flex; min-width: 210px; padding: 2px 10px; flex-direction: column; border-right: 1px solid var(--line-soft); }
.vacancy-workspace-title span { color: var(--ink-500); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vacancy-workspace-title strong { max-width: 235px; margin-top: 2px; overflow: hidden; color: var(--navy-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vacancy-workspace-tabs { display: flex; min-width: 0; align-self: stretch; align-items: center; gap: 4px; }
.vacancy-workspace-tabs a, .vacancy-workspace-tabs > span { display: inline-flex; min-height: 38px; padding: 0 12px; align-items: center; gap: 7px; border-radius: 8px; color: var(--ink-600); font-size: 10px; font-weight: 800; white-space: nowrap; }
.vacancy-workspace-tabs a:hover { color: var(--navy-900); background: var(--canvas); }
.vacancy-workspace-tabs a.active { color: var(--brand-red-dark); background: var(--brand-red-soft); box-shadow: inset 0 -2px 0 var(--brand-red); }
.vacancy-workspace-tabs > span { cursor: not-allowed; opacity: .58; }
.vacancy-workspace-tabs small { padding: 2px 5px; border-radius: 4px; background: var(--canvas); font-size: 7px; }
.publish-status-bar { display: flex; min-height: 56px; margin-bottom: 16px; padding: 9px 12px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.publish-status-bar > div { display: flex; min-height: 35px; padding: 0 12px; align-items: center; gap: 9px; border-right: 1px solid var(--line-soft); color: var(--ink-600); font-size: 9px; }
.publish-status-bar > form { margin-left: auto; }
.reading-time-control { max-width: 340px; }
.criterion-order-actions { display: flex; margin-left: auto; gap: 3px; }
.criterion-order-actions .icon-btn { width: 29px; height: 29px; border: 1px solid var(--line); background: white; }
.inline-more-options { margin: 12px 0 0 47px; border-top: 1px solid var(--line-soft); }
.inline-more-options summary { padding: 11px 0 2px; color: var(--brand-red-dark); cursor: pointer; font-size: 9px; font-weight: 900; }
.more-options-grid { padding-top: 12px; }
.secondary-history { margin-top: 18px; }
.secondary-history summary, .builder-more-options > summary { display: flex; min-height: 66px; padding: 14px 18px; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.secondary-history summary::-webkit-details-marker, .builder-more-options > summary::-webkit-details-marker { display: none; }
.secondary-history summary span, .builder-more-options > summary span { display: flex; flex-direction: column; }
.secondary-history summary strong, .builder-more-options > summary strong { font-size: 13px; }
.secondary-history summary small, .builder-more-options > summary small { margin-top: 3px; color: var(--ink-500); font-size: 9px; }
.secondary-history summary b, .builder-more-options > summary b { color: var(--brand-red-dark); font-size: 9px; }
.compact-empty { min-height: 220px; }
.requirement-choice ul, .requirement-choice > div { display: grid; margin: 0; padding: 3px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: white; list-style: none; }
.requirement-choice li, .requirement-choice > div > div { min-width: 0; }
.requirement-choice label { display: flex; min-height: 31px; padding: 5px 7px; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-600); cursor: pointer; font-size: 8px; font-weight: 800; text-align: center; }
.requirement-choice input { position: absolute; opacity: 0; }
.requirement-choice label:has(input:checked) { color: white; background: var(--navy-700); }
.profile-requirement-group { padding: 13px 0; }
.profile-requirement-row { min-height: 50px; padding: 7px 9px; grid-template-columns: minmax(0, 1fr) 330px; }
.builder-section-card header small { font-family: inherit; }
.builder-more-options { overflow: visible; }
.builder-more-options-body { padding: 0 22px 22px; border-top: 1px solid var(--line-soft); }
.more-options-block { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.more-options-block:last-child { padding-bottom: 0; border-bottom: 0; }
.builder-editor-heading.compact { margin-bottom: 13px; padding-bottom: 0; border-bottom: 0; }
.builder-editor-heading.compact h3 { margin: 0 0 3px; font-size: 13px; }
.validation-empty { margin: 0; color: var(--ink-500); font-size: 9px; }
.builder-option-row { grid-template-columns: 31px minmax(180px, 1fr) minmax(150px, .7fr) auto; align-items: center; }
.option-translation summary { color: var(--brand-red-dark); cursor: pointer; font-size: 9px; font-weight: 800; }
.option-translation .field-group { margin-top: 8px; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .vacancy-workspace-nav { align-items: stretch; flex-direction: column; gap: 7px; }
  .vacancy-workspace-title { min-width: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .vacancy-workspace-tabs { overflow-x: auto; }
  .publish-status-bar { align-items: stretch; flex-wrap: wrap; }
  .publish-status-bar > div { flex: 1 1 280px; border-right: 0; }
  .profile-requirement-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .vacancy-workspace-tabs a, .vacancy-workspace-tabs > span { padding: 0 9px; }
  .publish-status-bar { flex-direction: column; }
  .publish-status-bar > div { min-height: 32px; padding: 0; }
  .publish-status-bar > form, .publish-status-bar .btn { width: 100%; }
  .inline-more-options { margin-left: 0; }
  .requirement-choice ul, .requirement-choice > div { grid-template-columns: 1fr; }
  .builder-option-row { grid-template-columns: 31px 1fr; align-items: start; }
  .builder-option-row .field-group, .builder-option-row .option-translation, .builder-option-row .criterion-remove { grid-column: 2; }
}

/* Candidate Application drafts */
.application-list-section { min-height: 70vh; }
.application-card-list { display: grid; gap: 13px; }
.application-list-card { display: grid; min-height: 128px; padding: 20px; grid-template-columns: 135px minmax(0, 1fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.application-list-status { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.application-list-copy .eyebrow { margin-bottom: 5px; }
.application-list-copy h2 { margin: 0 0 5px; font-size: 21px; }
.application-list-copy p { margin: 0; font-size: 11px; }
.application-empty { min-height: 330px; }
.application-draft-section { min-height: 80vh; padding: 44px 0 80px; background: linear-gradient(180deg, #f8f6f3, #fff 420px); }
.application-draft-wrap { width: min(980px, calc(100% - 32px)); }
.application-draft-hero { display: grid; margin-bottom: 15px; padding: 31px; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: 32px; border-radius: 19px; color: white; background: radial-gradient(circle at 88% 0, rgba(230,0,0,.36), transparent 38%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-md); }
.application-draft-hero .public-back-link { display: inline-block; margin-bottom: 24px; color: rgba(255,255,255,.68); }
.application-draft-hero .eyebrow { color: #ffb9b9; }
.application-draft-hero h1 { margin: 0 0 8px; color: white; font-size: clamp(31px, 4vw, 45px); }
.application-draft-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.65); font-size: 12px; }
.draft-status-panel { display: flex; min-height: 132px; padding: 18px; align-items: flex-start; justify-content: flex-end; flex-direction: column; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.07); }
.draft-status-panel strong { margin: 11px 0 3px; font-size: 13px; }
.draft-status-panel small { color: rgba(255,255,255,.55); font-size: 9px; }
.application-state-alert { margin-bottom: 14px; }
.application-update-gate { display: flex; margin-bottom: 14px; padding: 22px; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #e2be76; border-radius: 14px; background: linear-gradient(135deg, #fffaf0, #fff4dc); }
.application-update-gate .eyebrow { margin-bottom: 5px; color: #9a6716; }
.application-update-gate h2 { margin: 0 0 5px; font-size: 20px; }
.application-update-gate p { max-width: 640px; margin: 0; font-size: 11px; }
.application-progress-strip { display: grid; margin-bottom: 14px; padding: 11px; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.application-progress-strip > div { display: grid; min-height: 64px; padding: 10px; grid-template-columns: 33px 1fr; align-items: center; gap: 2px 10px; border-radius: 9px; background: var(--canvas); }
.application-progress-strip span { display: grid; width: 33px; height: 33px; grid-row: 1 / 3; place-items: center; border-radius: 9px; color: var(--ink-500); background: white; font-size: 9px; font-weight: 900; }
.application-progress-strip strong { font-size: 10px; }
.application-progress-strip small { color: var(--ink-500); font-size: 8px; }
.application-progress-strip .done { background: var(--success-50); }
.application-progress-strip .done span { color: white; background: var(--success-600); }
.application-progress-strip .future { opacity: .65; }
.application-profile-card, .application-question-card { margin-bottom: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.application-section-heading { display: flex; margin-bottom: 22px; align-items: flex-start; justify-content: space-between; gap: 20px; }
.application-section-heading > div { display: flex; align-items: flex-start; gap: 13px; }
.application-section-heading .section-step { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: white; background: var(--brand-red); font-size: 9px; font-weight: 900; }
.application-section-heading .eyebrow { margin-bottom: 3px; }
.application-section-heading h2 { margin: 0 0 4px; font-size: 22px; }
.application-section-heading p { margin: 0; font-size: 10px; }
.application-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.application-profile-row { display: grid; min-height: 78px; padding: 12px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fdfbf9; }
.application-profile-row > div { display: flex; flex-direction: column; }
.application-profile-row strong { font-size: 10px; }
.application-profile-row small { margin-top: 2px; color: var(--ink-500); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.application-profile-row > span { grid-column: 1; overflow: hidden; color: var(--ink-700); font-size: 10px; text-overflow: ellipsis; }
.application-profile-row > a { grid-column: 2; grid-row: 1 / 3; color: var(--brand-red-dark); font-size: 9px; font-weight: 900; }
.application-profile-row.missing { border-color: #e3bd70; background: #fffaf0; box-shadow: inset 3px 0 0 #d59b2a; }
.application-no-profile-request, .application-no-questions { color: var(--ink-500); font-size: 11px; }
.application-answer-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.application-answer-form fieldset:disabled { opacity: .72; }
.application-question-stack { display: grid; gap: 12px; }
.application-question-field { padding: 16px; border: 1px solid var(--line-soft); border-radius: 11px; background: #fdfbf9; }
.application-question-field > label:first-child { display: block; color: var(--ink-900); font-size: 12px; font-weight: 800; }
.application-question-field > label:first-child span { margin-left: 7px; padding: 2px 5px; border-radius: 4px; color: var(--error); background: var(--error-bg); font-size: 7px; text-transform: uppercase; }
.application-question-field > label:first-child small { margin-left: 7px; color: var(--ink-500); font-size: 8px; }
.application-question-urdu { margin: 5px 0 0; color: var(--ink-700); font-size: 14px; }
.application-question-help { display: block; margin: 5px 0 9px; color: var(--ink-500); font-size: 9px; }
.application-question-field > .form-control { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #d3cfca; border-radius: 9px; background: white; }
.application-question-field textarea.form-control { resize: vertical; }
.application-question-field.has-error { border-color: #e3aab7; background: var(--error-bg); }
.application-choice-grid { display: grid; margin-top: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.application-choice-grid.compact { max-width: 340px; }
.application-choice-grid label { cursor: pointer; }
.application-choice-grid input { position: absolute; opacity: 0; }
.application-choice-grid span { display: flex; min-height: 43px; padding: 9px 11px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #d5d1cc; border-radius: 8px; background: white; font-size: 10px; }
.application-choice-grid span small { color: var(--ink-500); font-size: 11px; }
.application-choice-grid input:checked + span { border-color: var(--brand-red); color: var(--brand-red-dark); background: var(--brand-red-faint); box-shadow: inset 3px 0 0 var(--brand-red); }
.application-declaration { display: flex; margin-top: 10px; align-items: center; gap: 9px; cursor: pointer; }
.application-declaration input { position: absolute; opacity: 0; }
.application-declaration > span { display: grid; width: 21px; height: 21px; place-items: center; border: 1.5px solid #aaa6a0; border-radius: 5px; background: white; }
.application-declaration input:checked + span { border-color: var(--brand-red); background: var(--brand-red); }
.application-declaration input:checked + span::after { color: white; content: "✓"; font-size: 11px; }
.application-declaration strong { font-size: 10px; }
.application-save-bar { position: sticky; z-index: 12; bottom: 12px; display: flex; padding: 17px 19px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(3,3,68,.14); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 14px 42px rgba(3,3,68,.16); backdrop-filter: blur(14px); }
.application-save-bar strong { font-size: 12px; }
.application-save-bar p { margin: 3px 0 0; font-size: 9px; }
.application-save-bar > div:last-child { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .application-list-card { grid-template-columns: 1fr; gap: 12px; }
  .application-list-status { flex-direction: row; }
  .application-list-card .btn { width: 100%; }
  .application-draft-section { padding-top: 24px; }
  .application-draft-hero { padding: 23px 19px; grid-template-columns: 1fr; }
  .draft-status-panel { min-height: 100px; }
  .application-progress-strip { grid-template-columns: 1fr; }
  .application-profile-card, .application-question-card { padding: 21px 17px; }
  .application-profile-grid, .application-choice-grid { grid-template-columns: 1fr; }
  .application-section-heading, .application-update-gate, .application-save-bar { align-items: stretch; flex-direction: column; }
  .application-section-heading > .btn, .application-update-gate .btn { width: 100%; }
  .application-save-bar { position: static; }
  .application-save-bar > div:last-child { align-items: stretch; flex-direction: column; }
  .application-save-bar .btn { width: 100%; }
}

/* PH-07B: task-first Candidate progress and unified Vacancy setup. */
.application-progress-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.application-progress-card h2 { margin: 0 0 13px; font-size: 16px; }
.application-progress-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; }
.application-progress-list li { display: flex; min-width: 0; padding: 11px; align-items: center; gap: 9px; border-radius: 10px; background: var(--canvas); }
.application-progress-list li > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--ink-500); background: white; font-weight: 900; }
.application-progress-list li div { display: flex; min-width: 0; flex-direction: column; }
.application-progress-list li strong { font-size: 10px; }
.application-progress-list li small { overflow: hidden; color: var(--ink-500); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.application-progress-list li.done { background: var(--success-50); }
.application-progress-list li.done > span { color: white; background: var(--success-600); }
.application-progress-list li.current { background: #fff6e4; box-shadow: inset 3px 0 0 #d59b2a; }
.application-progress-list li.blocked { color: var(--error); background: var(--error-bg); box-shadow: inset 3px 0 0 var(--error); }
.application-progress-list li.blocked > span { color: white; background: var(--error); }
.application-attention-card { display: grid; margin-bottom: 14px; padding: 22px; grid-template-columns: minmax(210px, .75fr) minmax(0, 1.8fr); gap: 24px; border: 1px solid #e2be76; border-radius: 14px; background: #fffaf0; }
.application-attention-card h2 { margin: 4px 0 0; font-size: 19px; }
.application-blocker-list { display: grid; gap: 8px; }
.application-blocker-list article { display: grid; padding: 10px; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(154,103,22,.18); border-radius: 9px; background: white; }
.application-blocker-list article > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: #8a5c14; background: #fff0ce; font-weight: 900; }
.application-blocker-list article div { display: flex; min-width: 0; flex-direction: column; }
.application-blocker-list article strong { font-size: 10px; }
.application-blocker-list article small { color: var(--ink-500); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.review-attention { grid-template-columns: 1fr; }
.application-document-list { display: grid; gap: 12px; }
.application-document-item { padding: 17px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fdfbf9; }
.application-document-item.missing { border-color: #e2be76; box-shadow: inset 3px 0 0 #d59b2a; }
.application-document-item > header > div { display: flex; align-items: center; gap: 8px; }
.application-document-item h3 { margin: 0; font-size: 14px; }
.application-document-item header p { margin: 5px 0 0; font-size: 9px; }
.selected-document { display: grid; margin-top: 12px; padding: 11px; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-radius: 9px; color: #175c39; background: var(--success-50); }
.selected-document > span { font-weight: 900; }
.selected-document div { display: flex; flex-direction: column; }
.selected-document strong { font-size: 10px; }
.selected-document small { font-size: 8px; }
.selected-document a { color: #175c39; font-size: 9px; font-weight: 900; }
.application-document-actions { display: grid; margin-top: 12px; grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); align-items: end; gap: 10px; }
.inline-document-upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr) auto; align-items: end; gap: 8px; }
.inline-document-upload .field-group { margin: 0; }
.saved-document-picker { padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: white; }
.saved-document-picker summary { cursor: pointer; font-size: 9px; }
.saved-document-picker form { display: grid; margin-top: 10px; grid-template-columns: 1fr auto; gap: 7px; }
.saved-document-picker label { grid-column: 1 / -1; font-size: 8px; font-weight: 800; }
[data-autosave-status].save-error { color: var(--error); }
.profile-missing-list { margin: 7px 0 0; padding-left: 18px; }
.profile-missing-list li { margin: 3px 0; }
.profile-section-links { display: grid; margin-bottom: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.profile-section-links a { display: flex; padding: 12px; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-900); background: white; text-decoration: none; }
.profile-section-links span { font-size: 9px; font-weight: 900; }
.profile-section-links strong { color: var(--brand-red-dark); font-size: 8px; }
.setup-section-nav { position: sticky; z-index: 10; top: 0; display: flex; margin-bottom: 12px; padding: 9px; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }
.setup-section-nav a { padding: 8px 10px; border-radius: 7px; color: var(--ink-700); font-size: 8px; font-weight: 900; text-decoration: none; }
.setup-section-nav a:hover { color: var(--brand-red-dark); background: var(--brand-red-faint); }
.setup-workspace-section { margin-bottom: 12px; scroll-margin-top: 76px; }
.setup-section-heading { display: flex; margin-bottom: 18px; align-items: flex-start; gap: 12px; }
.setup-section-heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: white; background: var(--navy); font-size: 9px; font-weight: 900; }
.setup-section-heading > div:nth-child(2) { flex: 1; }
.setup-section-heading h2 { margin: 0 0 3px; font-size: 19px; }
.setup-section-heading p { margin: 0; font-size: 9px; }

@media (max-width: 900px) {
  .application-progress-list { grid-template-columns: 1fr; }
  .application-attention-card { grid-template-columns: 1fr; }
  .application-document-actions, .inline-document-upload { grid-template-columns: 1fr; }
  .profile-section-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-section-nav { overflow-x: auto; }
  .setup-section-nav a { flex: 0 0 auto; }
}

@media (max-width: 520px) {
  .application-blocker-list article { grid-template-columns: 28px minmax(0, 1fr); }
  .application-blocker-list article .btn { grid-column: 1 / -1; width: 100%; }
  .profile-section-links { grid-template-columns: 1fr; }
}

/* PH-08 UAT productization: public branding, final review, and ATS operations. */
.campaign-art { padding: 18px 24px; }
.campaign-logo { width: 100%; height: 100%; padding: 14px 18px; border-radius: 12px; object-fit: contain; background: rgba(255,255,255,.96); box-shadow: 0 9px 26px rgba(0,0,0,.16); }
.campaign-art .campaign-initials { display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.09); font-size: 26px; letter-spacing: .04em; }
.campaign-hero-summary { display: grid; gap: 10px; }
.campaign-hero-logo { display: grid; min-height: 92px; padding: 13px 18px; place-items: center; border-radius: 16px; background: white; box-shadow: 0 15px 34px rgba(0,0,0,.18); }
.campaign-hero-logo img { width: 100%; height: 66px; object-fit: contain; }

.master-client-row { grid-template-columns: 42px minmax(0, 1fr) auto auto !important; }
.master-client-mark { display: grid; width: 38px; height: 38px; padding: 5px; place-items: center; overflow: hidden; border-radius: 9px; color: var(--navy-700); background: var(--navy-50); font-size: 9px; font-weight: 900; }
.master-client-mark img { width: 100%; height: 100%; object-fit: contain; }
.client-logo-preview { display: flex; min-height: 92px; margin-bottom: 16px; padding: 12px; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--canvas); }
.client-logo-preview img { width: 130px; height: 66px; padding: 7px; object-fit: contain; border-radius: 8px; background: white; }
.client-logo-preview div { display: flex; flex-direction: column; }
.client-logo-preview strong { font-size: 12px; }
.client-logo-preview span { color: var(--ink-500); font-size: 10px; }

.review-page { padding-top: 28px; }
.review-hero { display: grid; margin-bottom: 10px; padding: 22px 24px; grid-template-columns: minmax(0, 1fr) 280px; align-items: end; gap: 24px; border-radius: 16px; color: white; background: radial-gradient(circle at 88% 0, rgba(230,0,0,.34), transparent 38%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-md); }
.review-hero .public-back-link { margin-bottom: 15px; color: rgba(255,255,255,.68); }
.review-hero .eyebrow { margin-bottom: 5px; color: #ffb9b9; }
.review-hero h1 { margin: 0 0 5px; font-size: clamp(29px, 3.5vw, 40px); }
.review-hero p { margin: 0; color: rgba(255,255,255,.65); font-size: 11px; }
.review-readiness { display: flex; min-height: 102px; padding: 15px; align-items: flex-start; justify-content: flex-end; flex-direction: column; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(255,255,255,.07); }
.review-readiness strong { margin: 8px 0 2px; font-size: 12px; }
.review-readiness small { color: rgba(255,255,255,.58); font-size: 8px; }
.review-summary-bar { display: grid; margin-bottom: 10px; padding: 8px; grid-template-columns: repeat(4, 1fr); gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.review-summary-bar > div { display: flex; min-height: 48px; padding: 8px 10px; justify-content: center; flex-direction: column; border-radius: 8px; background: var(--canvas); }
.review-summary-bar span { color: var(--ink-500); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.review-summary-bar strong { margin-top: 2px; font-size: 10px; }
.review-page .review-attention { margin-bottom: 10px; padding: 16px; }
.review-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.review-card > header { display: flex; min-height: 59px; padding: 12px 15px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line-soft); }
.review-card .eyebrow { margin-bottom: 2px; font-size: 8px; }
.review-card h2 { margin: 0; font-size: 16px; }
.review-card > header > a { color: var(--brand-red-dark); font-size: 9px; font-weight: 900; }
.review-pairs { margin: 0; padding: 5px 15px 8px; }
.review-pairs > div { display: grid; min-height: 44px; padding: 8px 0; grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 14px; border-bottom: 1px solid var(--line-soft); }
.review-pairs > div:last-child { border: 0; }
.review-pairs dt { color: var(--ink-600); font-size: 9px; font-weight: 700; }
.review-pairs dt small { display: block; margin-top: 1px; color: var(--ink-500); font-size: 7px; text-transform: uppercase; }
.review-pairs dd { margin: 0; overflow-wrap: anywhere; color: var(--ink-900); font-size: 10px; font-weight: 700; text-align: right; }
.review-empty { margin: 0; padding: 13px 15px; color: var(--ink-500); font-size: 9px; }
.review-missing { color: var(--amber); }
.review-declaration-card { margin-top: 10px; padding: 20px; border: 2px solid rgba(230,0,0,.18); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.review-declaration-card > header h2 { margin: 0 0 4px; font-size: 20px; }
.review-declaration-card > header p { margin: 0; font-size: 10px; }
.review-declaration-card .declaration-text { max-height: 250px; margin: 13px 0; overflow-y: auto; font-size: 11px; line-height: 1.65; }
.review-declaration-control { min-height: 48px; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.review-declaration-control strong { font-size: 11px; }
.review-final-actions { display: flex; margin-top: 12px; padding-top: 12px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line-soft); }
.review-final-actions > div:first-child { display: flex; flex-direction: column; }
.review-final-actions > div:last-child { display: flex; align-items: center; gap: 8px; }
.review-final-actions strong { font-size: 11px; }
.review-final-actions p { margin: 2px 0 0; font-size: 9px; }
.review-declaration-card.configuration-error { border-color: #e2be76; background: #fffdf8; }
.configuration-blocker { display: flex; margin-top: 13px; padding: 12px; align-items: center; gap: 11px; border-radius: 9px; color: #704a10; background: var(--amber-bg); }
.configuration-blocker > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: white; background: var(--amber); font-weight: 900; }
.configuration-blocker strong { font-size: 11px; }
.configuration-blocker p { margin: 2px 0 0; color: #704a10; font-size: 9px; }

.operations-overview { margin-bottom: 16px; padding: 18px; border: 1px solid #d9d7e4; border-radius: 13px; background: linear-gradient(135deg, #fff, var(--navy-50)); box-shadow: var(--shadow-sm); }
.operations-heading { display: flex; margin-bottom: 13px; align-items: end; justify-content: space-between; gap: 20px; }
.operations-heading .eyebrow { margin-bottom: 2px; }
.operations-heading h2 { margin: 0 0 3px; font-size: 21px; }
.operations-heading p { margin: 0; font-size: 10px; }
.operations-metric-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.operation-metric { display: flex; min-height: 96px; padding: 12px; justify-content: center; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: white; }
.operation-metric:hover { border-color: #b9b5c8; box-shadow: var(--shadow-sm); }
.operation-metric span { color: var(--ink-600); font-size: 9px; font-weight: 800; }
.operation-metric strong { margin: 2px 0; color: var(--navy-800); font-family: var(--font-display); font-size: 25px; line-height: 1; }
.operation-metric small { color: var(--ink-500); font-size: 8px; }
.operation-metric.primary { color: white; border-color: var(--navy-800); background: var(--navy-800); }
.operation-metric.primary span, .operation-metric.primary small, .operation-metric.primary strong { color: white; }
.operation-metric.success strong { color: var(--success-700); }
.operation-metric.selected { border-color: #bcdacb; background: var(--success-50); }
.operation-metric.selected strong { color: var(--success-700); }
.operation-metric.warning strong { color: var(--amber); }
.vacancy-overview-strip { display: flex; min-height: 66px; margin-bottom: 16px; padding: 8px 10px; align-items: stretch; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.vacancy-overview-strip > div:not(.vacancy-overview-actions) { display: flex; min-width: 80px; padding: 7px 10px; justify-content: center; flex-direction: column; border-right: 1px solid var(--line-soft); }
.vacancy-overview-strip span { color: var(--ink-500); font-size: 8px; text-transform: uppercase; }
.vacancy-overview-strip strong { font-size: 17px; }
.vacancy-overview-actions { display: flex; margin-left: auto; align-items: center; gap: 12px; }
.vacancy-overview-actions > a:first-child { color: var(--brand-red-dark); font-size: 9px; font-weight: 900; }

.applicant-filters summary b { margin-left: 5px; padding: 2px 5px; border-radius: 4px; color: var(--brand-red-dark); background: var(--brand-red-soft); font-size: 8px; }
.active-filter-bar { display: flex; padding: 9px 12px; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); background: #fdfbf9; }
.active-filter-bar > span { flex: 0 0 auto; color: var(--ink-500); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.active-filter-bar > div { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; gap: 5px; }
.filter-chip { padding: 4px 7px; border: 1px solid #d9d5cf; border-radius: 20px; color: var(--ink-600); background: white; font-size: 8px; }
.filter-chip b { color: var(--ink-900); }
.active-filter-bar > a { color: var(--brand-red-dark); font-size: 8px; font-weight: 900; white-space: nowrap; }
.bulk-toolbar { transition: background .18s, opacity .18s; }
.bulk-toolbar.is-idle { background: #f8f7f5; }
.bulk-toolbar.is-idle > :not(strong) { opacity: .6; }
.applicant-table tr.is-selected td { background: #fffaf0; }
.applicant-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand-red); }
.detail-jump-nav { display: flex; margin: -4px 0 13px; padding: 7px; gap: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.detail-jump-nav a { flex: 0 0 auto; padding: 6px 8px; border-radius: 6px; color: var(--ink-600); font-size: 8px; font-weight: 800; }
.detail-jump-nav a:hover { color: var(--brand-red-dark); background: var(--brand-red-faint); }
.decision-strip .decision-warning { background: var(--amber-bg); }
.compact-action-panel .panel-header { padding-bottom: 9px; }
.compact-empty { min-height: 145px; padding: 20px; }

@media (max-width: 1080px) {
  .operations-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .review-hero { grid-template-columns: 1fr; }
  .review-summary-bar, .review-section-grid { grid-template-columns: 1fr 1fr; }
  .review-final-actions { align-items: stretch; flex-direction: column; }
  .review-final-actions > div:last-child { align-items: stretch; flex-direction: column-reverse; }
  .review-final-actions .btn { width: 100%; }
  .operations-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacancy-overview-strip { flex-wrap: wrap; }
  .vacancy-overview-actions { width: 100%; margin: 0; padding: 5px 6px; justify-content: space-between; border-top: 1px solid var(--line-soft); }
  .active-filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .master-client-row { grid-template-columns: 38px minmax(0, 1fr) auto !important; }
  .master-client-row .row-link { grid-column: 2 / -1 !important; }
}

@media (max-width: 520px) {
  .review-summary-bar, .review-section-grid, .operations-metric-grid { grid-template-columns: 1fr; }
  .review-pairs > div { grid-template-columns: 1fr; gap: 3px; }
  .review-pairs dd { text-align: left; }
  .review-declaration-card { padding: 17px 14px; }
}
