:root {
  --ink: #18201d;
  --muted: #68716d;
  --paper: #f6f5f0;
  --white: #ffffff;
  --green: #b9ff3b;
  --green-dark: #7ab800;
  --line: #dfe2dc;
  --danger: #a93636;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
.topbar { height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(246,245,240,.94); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.topbar.dark { background: var(--ink); color: white; border: 0; }
.brand { font-weight: 900; letter-spacing: -.04em; font-size: 22px; text-decoration: none; }
.brand span { color: var(--green-dark); }
.dark .brand span { color: var(--green); }
.small-link, .admin-label { font-size: 13px; color: var(--muted); }
.dark .admin-label { color: #b7c0bc; }
.page-shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.hero { max-width: 900px; margin-bottom: 64px; }
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 11px; color: var(--green-dark); }
.hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .92; letter-spacing: -.07em; margin: 16px 0 24px; max-width: 980px; }
.hero > p:last-child { max-width: 680px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 34px; align-items: start; }
.role-panel { position: sticky; top: 102px; }
.role-cards { display: grid; gap: 10px; margin: 14px 0 22px; }
.role-card { text-align: left; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; border: 1px solid var(--line); background: var(--white); padding: 18px; border-radius: 16px; cursor: pointer; color: var(--ink); }
.role-card:hover, .role-card.active { border-color: var(--green-dark); box-shadow: 0 10px 30px rgba(24,32,29,.08); }
.role-card > span { grid-row: 1 / 3; color: var(--green-dark); font-weight: 900; }
.role-card strong { font-size: 15px; }
.role-card small { color: var(--muted); line-height: 1.45; margin-top: 5px; }
.role-card small em { display: block; margin-top: 7px; color: #4b5751; font-style: normal; font-weight: 650; }
.trust-card { background: var(--ink); color: white; padding: 22px; border-radius: 16px; }
.trust-card strong { color: var(--green); }
.trust-card p { color: #c7ceca; line-height: 1.55; margin-bottom: 0; font-size: 14px; }
.application-card, .login-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 54px); box-shadow: 0 20px 70px rgba(24,32,29,.06); }
.form-heading, .dashboard-head, .analysis-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.form-heading { margin-bottom: 34px; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; margin: 8px 0 0; }
.step-chip, .role-tag { border-radius: 999px; padding: 8px 12px; background: #efffcf; color: #4b7200; font-size: 12px; font-weight: 800; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; margin-bottom: 20px; }
input, select, textarea { width: 100%; border: 1px solid #cfd4cd; border-radius: 11px; padding: 13px 14px; background: #fbfcf9; font: inherit; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(122,184,0,.13); }
textarea { resize: vertical; line-height: 1.45; }
.grid { display: grid; gap: 0 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.file-field { border: 1px dashed #aeb7ad; padding: 18px; border-radius: 12px; background: #fafbf8; }
.file-field input { border: 0; padding: 6px 0; background: transparent; }
.consents { background: #f1f3ed; padding: 18px; border-radius: 12px; margin: 22px 0; }
.role-context { border: 1px solid #cfe79f; background: #f4ffe1; border-radius: 14px; padding: 18px; margin: 4px 0 24px; display: grid; gap: 14px; }
.role-context[hidden], .role-questions[hidden] { display: none; }
.role-context > div { display: grid; gap: 6px; }
.role-context span, .schedule-card span { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: #587b16; font-weight: 850; }
.role-context strong { line-height: 1.45; }
.role-context ul { margin: 0; padding-left: 18px; color: #4f5b54; font-size: 13px; line-height: 1.55; }
.role-questions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0 10px; margin: 8px 0 26px; }
.question-heading { margin-bottom: 22px; }
.question-heading h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.03em; }
.multi-field, .review-checklist { border: 1px solid #cfd4cd; border-radius: 12px; padding: 16px; margin: 0 0 20px; }
.multi-field.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(169,54,54,.08); }
.multi-field legend, .review-checklist legend { padding: 0 7px; font-size: 13px; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 14px; }
.choice-grid .check, .review-checklist .check { margin: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; align-items: start; font-weight: 500; line-height: 1.5; margin: 0 0 12px; }
.check:last-child { margin-bottom: 0; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; }
button, .secondary-button { border: 0; font: inherit; cursor: pointer; }
.primary { background: var(--ink); color: white; border-radius: 11px; padding: 15px 22px; font-weight: 850; width: 100%; }
.primary:hover { background: #29332f; }
.primary:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; }
.primary.compact { width: auto; padding: 12px 18px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 9px; background: #eef0eb; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 750; }
.form-message { min-height: 22px; margin: 16px 0 0; font-size: 14px; }
.form-message.success { color: #477000; }
.form-message.error { color: var(--danger); }
.legal-page, .admin-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.legal-page { max-width: 820px; line-height: 1.7; }
.legal-page h1 { font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.legal-page h2 { font-size: 22px; margin-top: 34px; }
.login-card { max-width: 480px; margin: 40px auto; }
.login-card h1 { letter-spacing: -.04em; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions select { min-width: 220px; }
.dashboard-head h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.06em; margin: 8px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.stats > div { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; align-items: baseline; gap: 10px; }
.stats strong { font-size: 34px; }
.stats span { color: var(--muted); font-size: 13px; }
.role-guide-panel { margin: 0 0 34px; }
.panel-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 16px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.04em; }
.panel-heading > p { max-width: 480px; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.role-guides { display: grid; gap: 10px; }
.role-guide-card { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.role-guide-card > summary { border: 0; display: flex; gap: 14px; align-items: center; background: white; padding: 18px 20px; }
.role-guide-card > summary > span { font-weight: 900; color: var(--green); font-size: 12px; }
.role-guide-card > summary div { display: grid; gap: 4px; }
.role-guide-card > summary strong { font-size: 17px; }
.role-guide-card > summary small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.role-guide-content { border-top: 1px solid var(--line); padding: 4px 18px 20px; }
.role-mission { border-left: 3px solid var(--green); padding-left: 12px; font-size: 13px; line-height: 1.5; margin: 18px 0 6px; }
.role-mission strong { display: block; margin-bottom: 3px; }
.employment-terms { background: #f4ffe1; border-radius: 11px; padding: 15px 17px; margin: 14px 0 4px; }
.employment-terms h4 { margin: 0 0 7px; font-size: 13px; }
.employment-terms ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.55; }
.practical-guide { background: var(--ink); color: white; border-radius: 11px; padding: 16px 18px; }
.practical-guide h4 { margin: 0 0 8px; }
.practical-guide ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; }
.candidate-list { display: grid; gap: 14px; }
.candidate-card { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.candidate-summary { padding: 20px; display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: center; }
.score-ring { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: white; display: flex; align-items: baseline; justify-content: center; padding-top: 19px; }
.score-ring strong { font-size: 22px; }
.score-ring span { font-size: 10px; color: #bec8c3; }
.score-ring.muted { background: #edf0eb; color: var(--muted); }
.candidate-identity h3 { margin: 9px 0 3px; font-size: 23px; letter-spacing: -.03em; }
.candidate-identity p, .candidate-meta small { color: var(--muted); margin: 0; font-size: 13px; }
.candidate-meta { text-align: right; display: grid; gap: 7px; }
.candidate-meta span { font-size: 12px; font-weight: 800; }
details { border-top: 1px solid var(--line); }
summary { padding: 14px 20px; cursor: pointer; font-weight: 750; font-size: 13px; background: #fafbf8; }
.candidate-content { padding: 26px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; margin-bottom: 24px; }
.answers-grid, .assessment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.schedule-card { display: grid; gap: 6px; background: #f4ffe1; border-radius: 11px; padding: 15px; margin-bottom: 12px; }
.schedule-card strong { line-height: 1.45; }
.selection-guide { margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.selection-guide > summary { border: 0; background: #f6f7f3; }
.guide-note { margin: 16px 18px 0; color: var(--muted); font-size: 12px; }
.selection-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 18px 18px; }
.selection-guide-grid section { padding: 16px; border-radius: 10px; background: #fafbf8; }
.selection-guide-grid h4 { margin: 0 0 8px; font-size: 14px; }
.selection-guide-grid ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.role-answer-block { margin-top: 24px; }
.role-answer-block h4 { margin-bottom: 12px; }
.answers-grid > div { background: #f4f6f1; padding: 14px; border-radius: 10px; display: grid; gap: 4px; }
.answers-grid span { font-size: 11px; color: var(--muted); }
.long-answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.long-answers p { margin: 0; border-left: 3px solid var(--green); padding: 4px 0 4px 13px; font-size: 14px; line-height: 1.55; }
.long-answers strong { display: block; margin-bottom: 5px; }
.analysis-block, .review-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.analysis-heading h4 { margin: 0; font-size: 20px; }
.assessment-grid { margin: 20px 0; }
.assessment-grid section { background: #f6f7f3; padding: 16px; border-radius: 12px; }
.assessment-grid h4 { margin: 0 0 8px; }
.assessment-grid ul { padding-left: 18px; margin: 0; font-size: 13px; line-height: 1.55; }
.human-summary { background: #efffcf; padding: 16px; border-radius: 12px; line-height: 1.55; }
.score-breakdown { display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: minmax(160px, 1fr) 42px 2fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.score-row span { text-transform: capitalize; font-size: 13px; }
.score-row small { color: var(--muted); line-height: 1.45; }
.review-block { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: end; }
.review-block label { margin: 0; }
.review-checklist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-bottom: 0; }
.review-block .primary { justify-self: end; grid-column: 2; }
.empty-state, .empty-analysis { padding: 36px; text-align: center; color: var(--muted); background: white; border-radius: 16px; }

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .role-panel { position: static; }
  .grid.three, .answers-grid, .assessment-grid, .review-block, .selection-guide-grid { grid-template-columns: 1fr; }
  .review-checklist { grid-template-columns: 1fr 1fr; }
  .review-block .primary { grid-column: 1; justify-self: stretch; }
  .long-answers { grid-template-columns: 1fr; }
  .candidate-summary { grid-template-columns: 58px 1fr; }
  .candidate-meta { grid-column: 2; text-align: left; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .head-actions { width: 100%; }
  .head-actions select { min-width: 0; }
}
@media (max-width: 560px) {
  .page-shell, .admin-shell { width: min(100% - 24px, 1280px); padding-top: 40px; }
  .hero { margin-bottom: 38px; }
  .grid.two, .stats, .choice-grid, .review-checklist { grid-template-columns: 1fr; }
  .application-card { padding: 22px; }
  .form-heading, .analysis-heading { align-items: flex-start; flex-direction: column; }
  .score-row { grid-template-columns: 1fr 42px; }
  .score-row small { grid-column: 1 / -1; }
}
