/* Follia Beach recruiting — shared candidate and staff interface */
:root {
  color-scheme: light;
  --ink: #36393e;
  --brand: #494c51;
  --slate: #565e63;
  --muted: #686d71;
  --silver: #c0c1c5;
  --line: #dededb;
  --paper: #fffefa;
  --canvas: #f4f3ee;
  --soft: #eeefed;
  --success: #2e6554;
  --danger: #983e39;
  --review: #855e29;
  --radius: 12px;
  --shadow: 0 18px 60px rgb(25 31 35 / 12%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #1e252a; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2, .hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.14; letter-spacing: -.035em; margin-bottom: .6rem; }
h2 { font-size: 1.75rem; line-height: 1.2; margin-bottom: .8rem; letter-spacing: -.02em; }
h3 { font-size: 1.07rem; line-height: 1.4; font-weight: 650; margin-bottom: .55rem; }
p { margin-bottom: 1rem; }
small, .help { color: var(--muted); font-size: .84rem; line-height: 1.5; }
small { display: inline-block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
:focus-visible { outline: 3px solid #8a9da6; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2.7rem; padding: 34px 22px 24px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 12px; color: var(--ink); text-decoration: none; }
.brand strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1.1; }
.brand span, .brand small { font-size: .71rem; text-transform: uppercase; letter-spacing: .18em; color: var(--slate); }
.brand-mark { width: 38px; height: 11px; border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); border-radius: 50%; transform: skewX(-16deg); margin-bottom: 14px; }
.nav { display: grid; gap: 5px; }
.nav a, .nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 12px 14px; text-decoration: none; text-align: left; color: var(--slate); border-radius: 8px; font-size: .93rem; }
.nav a:hover, .nav button:hover { background: #f2f2ef; color: var(--ink); }
.nav .active, .nav [aria-current='page'] { background: var(--brand); color: #fff; font-weight: 600; }
.nav .active:hover, .nav [aria-current='page']:hover { background: var(--ink); color: #fff; }
.sidebar > :last-child:not(.nav):not(.brand) { margin-top: auto; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 18px 12px 0; font-size: .8rem; color: var(--muted); }
.workspace { min-width: 0; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 38px; border-bottom: 1px solid var(--line); background: rgb(255 254 250 / 80%); }
.topbar h1 { font-family: inherit; font-size: .94rem; font-weight: 600; letter-spacing: 0; margin: 0; }
.topbar p { margin: 0; }
.content { width: min(100%, 1600px); margin: 0 auto; padding: 38px; }
.content > h1 + p { color: var(--muted); max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.stat { padding: 21px 23px; border-left: 2px solid var(--silver); background: rgb(255 254 250 / 65%); }
.stat strong, .stat .value { display: block; margin: 3px 0; font-size: 2rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.25; }
.stat span, .stat label { font-size: .85rem; color: var(--slate); }
.stat small { margin-top: 4px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel > :last-child, .card > :last-child { margin-bottom: 0; }
.panel-header, .section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-header h2, .section-header h2 { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0; }
.toolbar input[type='search'], .toolbar .search { flex: 1 1 240px; max-width: 460px; }
.toolbar select { width: auto; min-width: 150px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.panel .table-wrap { margin-top: 18px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
thead { background: #eeefec; }
th { font-size: .74rem; font-weight: 650; color: var(--slate); text-transform: uppercase; letter-spacing: .055em; padding: 13px 17px; white-space: nowrap; }
td { padding: 16px 17px; vertical-align: middle; border-top: 1px solid #e9e8e3; }
tbody tr:hover { background: #f8f8f3; }
td strong { font-size: .94rem; font-weight: 600; }
td small { display: block; margin-top: 3px; }
td .btn { white-space: nowrap; }
.table-wrap table { min-width: 680px; }
.table-wrap .compact { min-width: 480px; }

.pill, .tag { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; line-height: 1.35; font-size: .75rem; white-space: nowrap; }
.pill { padding: 5px 10px; font-weight: 600; color: var(--slate); background: #eeefef; border: 1px solid transparent; }
.pill.review, .pill.pending, .pill.needs_review { background: #f5ebdb; color: #78531f; }
.pill.to_contact, .pill.interview { background: #e5edef; color: #3f606c; }
.pill.in_progress, .pill.q1, .pill.q2, .pill.q3 { background: #eeeeeb; color: #586066; }
.pill.hired, .pill.approved { background: #e4eee7; color: #2d654e; }
.pill.not_selected, .pill.rejected { background: #f5e7e4; color: #8c423d; }
.tag { padding: 5px 9px; color: #555f65; background: #eef0ef; border: 1px solid #e0e3e1; margin: 3px 4px 3px 0; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border-radius: 7px; border: 1px solid #bfc2c2; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; line-height: 1.35; transition: background .16s, border-color .16s, box-shadow .16s; }
.btn:hover { border-color: var(--slate); background: #f0f1ee; color: var(--ink); }
.btn.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn.secondary { background: transparent; border-color: #adb2b3; }
.btn.danger { color: var(--danger); background: #fffaf8; border-color: #dab9b5; }
.btn.danger:hover { background: #f6e5e1; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--slate); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: .79rem; }
.btn.full { width: 100%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.grid { display: grid; gap: 18px; }
.grid.two, .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three, .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 18px; }
.grid .field { margin-bottom: 0; }
.field > label, .field > legend { font-size: .87rem; color: var(--ink); font-weight: 600; }
.field .help { margin: 0; }
.field.full, .span-two { grid-column: 1 / -1; }
input:not([type='checkbox']):not([type='radio']), select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #c9cdca; border-radius: 7px; background: #fff; color: var(--ink); outline-offset: 2px; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #84898b; }
input:focus, select:focus, textarea:focus { border-color: #737f86; }
input:disabled, select:disabled, textarea:disabled { background: #efefed; color: #777e82; }
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; margin: 2px 0; flex: 0 0 18px; accent-color: var(--brand); }
input[type='file'] { font-size: .85rem; padding: 8px !important; }
input[type='file']::file-selector-button { padding: 6px 10px; margin-right: 10px; border: 0; border-radius: 4px; color: var(--ink); background: var(--soft); font: inherit; cursor: pointer; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0 0 20px; }
legend { padding: 0; margin-bottom: 10px; }
.checkbox, .check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.notice, .error, .success { border-radius: 8px; padding: 14px 16px; margin: 16px 0; font-size: .88rem; line-height: 1.55; }
.notice { color: #57616a; background: #e9edef; border: 1px solid #d8e0e3; }
.error { color: #883d35; background: #faece8; border: 1px solid #edcdc5; }
.success { color: #315e49; background: #e9f0e9; border: 1px solid #cbded0; }
.notice p:last-child, .error p:last-child, .success p:last-child { margin-bottom: 0; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.card + .card { margin-top: 14px; }
.empty { text-align: center; padding: 58px 25px; color: var(--muted); max-width: 570px; margin: 0 auto; }
.empty h2, .empty h3 { color: var(--ink); }
.empty .btn { margin-top: 10px; }
.progress { height: 5px; background: #e5e6e2; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--slate); border-radius: inherit; transition: width .24s ease; }
.score { font-variant-numeric: tabular-nums; font-weight: 650; }
.score-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-card:last-child { border-bottom: 0; }
.score-card .progress { margin-top: 9px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgb(28 34 38 / 38%); z-index: 100; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 101; width: min(720px, 96vw); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 30px; box-shadow: -16px 0 64px rgb(20 24 28 / 15%); }
.drawer-header, .drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.drawer h2 { font-size: 2rem; margin-bottom: 5px; }
.drawer .panel { padding: 18px; margin-bottom: 18px; }
.drawer .grid { gap: 14px; }
.tabs { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 20px 0 24px; padding-bottom: 0; }
.tab { padding: 12px 13px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; font-size: .87rem; font-weight: 500; }
.tab:hover { color: var(--ink); background: #f4f4ef; }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 650; }
.modal-backdrop { display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 110; }
.modal { position: relative; width: min(600px, 100%); max-height: calc(100dvh - 48px); overflow: auto; border-radius: 14px; padding: 30px; background: var(--paper); box-shadow: var(--shadow); }
.modal .actions { justify-content: flex-end; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 150; width: max-content; max-width: calc(100vw - 32px); padding: 13px 22px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: 0 8px 30px rgb(30 36 40 / 20%); font-size: .9rem; }
.toast.error { background: #873e37; border-color: transparent; }

.candidate-page { min-height: 100dvh; background: var(--canvas); }
.candidate-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--paper); }
.candidate-header .brand { padding: 0; }
.candidate-header .brand strong { font-size: 1.9rem; }
.candidate-header > span, .candidate-header > p { color: var(--muted); font-size: .82rem; margin: 0; }
.candidate-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 65px; }
.hero { padding: 8px 0 28px; max-width: 720px; }
.hero .eyebrow, .eyebrow { text-transform: uppercase; color: var(--slate); font-size: .72rem; letter-spacing: .17em; font-weight: 600; margin-bottom: 17px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); max-width: 690px; margin-bottom: 18px; }
.hero p { max-width: 660px; color: var(--slate); font-size: 1.02rem; line-height: 1.75; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 32px; gap: 15px; }
.step { position: relative; padding: 12px 0 0; border-top: 2px solid #d3d5d1; color: #747c80; font-size: .83rem; }
.step strong { display: block; font-weight: 600; margin-top: 3px; }
.step.active { color: var(--ink); border-color: var(--ink); }
.step.complete { color: var(--success); border-color: #688a78; }
.step span { font-variant-numeric: tabular-nums; font-size: .72rem; }
.form-section { background: var(--paper); border: 1px solid #e0e0d9; border-radius: var(--radius); padding: 30px; margin-bottom: 22px; }
.form-section > h2 { font-size: 1.65rem; margin-bottom: 8px; }
.form-section > p { color: var(--muted); margin-bottom: 25px; }
.form-section > :last-child { margin-bottom: 0; }
.choices { display: grid; gap: 10px; margin-top: 15px; }
.choice { display: flex; align-items: flex-start; gap: 12px; position: relative; padding: 15px 16px; border: 1px solid #d7dbd7; border-radius: 8px; background: #fff; line-height: 1.55; font-size: .93rem; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { background: #f7f8f5; border-color: #919b9c; }
.choice:has(input:checked), .choice.selected { background: #edf0ed; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:has(input:focus-visible) { outline: 3px solid #8a9da6; outline-offset: 2px; }
.choice input { margin-top: 3px; }
.choice strong { font-weight: 600; }
.question { border: 0; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.question:first-child { padding-top: 0; }
.question:last-child { border-bottom: 0; padding-bottom: 0; }
.question h3, .question legend { font-size: 1rem; font-weight: 600; line-height: 1.6; margin: 0; }
.question-number { display: block; margin-bottom: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.candidate-wrap .actions { justify-content: space-between; }
.candidate-footer { text-align: center; padding: 28px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.mobile-nav { display: none; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.break-word { overflow-wrap: anywhere; }
.stack { display: grid; gap: 14px; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-right { text-align: right; }

/* Details shared by the implemented archive and application flow. */
.sidebar-label { padding: 0 12px; color: #737b80; font-size: .65rem; letter-spacing: .15em; font-weight: 650; margin: 4px 0 -25px; }
.sidebar-bottom { padding: 20px 12px 0; border-top: 1px solid var(--line); color: var(--slate); font-size: .79rem; }
.sidebar-bottom p { margin-bottom: 10px; }
.sidebar-bottom small { line-height: 1.7; }
.nav button > span { margin-left: auto; padding: 1px 7px; font-size: .72rem; border-radius: 20px; background: rgb(115 125 130 / 12%); }
.nav button.active > span { background: rgb(255 255 255 / 16%); color: #fff; }
.brand:has(.brand-mark + div) { flex-direction: row; align-items: center; gap: 12px; padding: 0 8px; }
.brand:has(.brand-mark + div) .brand-mark { flex: 0 0 30px; width: 30px; height: 38px; border: 0; border-right: 1px solid var(--silver); border-radius: 0; transform: none; margin: 0; padding: 0 10px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 2.1rem; line-height: 1.15; }
.brand:has(.brand-mark + div) strong { font-size: 1.08rem; letter-spacing: .02em; display: block; }
.brand:has(.brand-mark + div) small { display: block; margin-top: 5px; font-size: .57rem; letter-spacing: .08em; white-space: nowrap; }
.candidate-header .brand:has(.brand-mark + div) strong { font-size: 1.4rem; }
.candidate-header .brand:has(.brand-mark + div) small { font-size: .63rem; letter-spacing: .1em; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.page-title .eyebrow { margin-bottom: 10px; }
.page-title p:last-child { margin: 0; }
.page-title > .btn { flex-shrink: 0; margin-top: 20px; }
.lead { font-size: 1.04rem; line-height: 1.8; color: var(--slate); max-width: 740px; }
.archive-panel { padding: 0; overflow: hidden; }
.archive-panel > .toolbar { padding: 20px 22px 10px; margin: 0; }
.archive-panel > .toolbar.compact { padding-top: 4px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.archive-panel .table-wrap { border: 0; border-radius: 0; margin-top: 0; }
.toolbar.compact { font-size: .8rem; justify-content: space-between; }
.toolbar.compact > label { display: flex; align-items: center; gap: 8px; color: var(--slate); }
.toolbar.compact input[type='checkbox'] { width: 16px; height: 16px; flex-basis: 16px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 210px; max-width: 330px; padding: 3px 0; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; font: inherit; }
.person:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.person > span:last-child { min-width: 0; }
.person strong { display: block; }
.person small { color: var(--muted); overflow-wrap: anywhere; line-height: 1.5; }
.avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 50%; background: #e9ece8; color: #566267; font-size: .76rem; letter-spacing: .025em; font-weight: 600; }
.empty-mark { width: 48px; height: 48px; margin: 0 auto 22px; border: 1px solid #bcc3bf; border-radius: 50%; color: var(--muted); font-size: 1.65rem; line-height: 46px; }
.empty-mark:empty::after { content: '+'; }
.drawer-header .eyebrow { margin-bottom: 7px; }
.drawer-header .pill { margin-top: 6px; }
.drawer-header > .btn { min-width: 38px; min-height: 38px; padding: 8px; }
.drawer-content { padding: 0 0 30px; overflow-wrap: anywhere; }
.drawer-content > h3 { margin-top: 27px; }
.drawer-content > h3:first-child { margin-top: 0; }
.drawer-content > .tags { margin: 18px 0 24px; }
.drawer-content > .grid { margin: 22px 0; }
.drawer-content .grid > .card { margin: 0; padding: 17px; }
.drawer-content .grid > .card > span { display: block; font-size: .8rem; color: var(--slate); }
.drawer-content .grid > .card > strong { display: block; margin: 8px 0 12px; font-size: 1.35rem; font-weight: 550; }
.drawer-content form { margin-bottom: 28px; }
.drawer-content .card summary { cursor: pointer; font-weight: 600; }
.drawer-content .card[open] summary { margin-bottom: 20px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.contact-line a { overflow-wrap: anywhere; }
.facts { margin: 16px 0 0; }
.facts > div { display: grid; grid-template-columns: minmax(115px, .75fr) minmax(0, 1.6fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #e7e8e2; }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border: 0; }
.facts dt { color: var(--slate); font-size: .8rem; font-weight: 550; }
.facts dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row > div { min-width: 0; }
.file-row strong { display: block; font-size: .91rem; font-weight: 600; overflow-wrap: anywhere; }
.file-row small { display: block; margin-top: 4px; }
.file-row .btn { flex-shrink: 0; min-height: 36px; padding: 8px 12px; font-size: .8rem; }
.timeline-item { position: relative; margin-left: 7px; padding: 0 0 25px 22px; border-left: 1px solid var(--silver); }
.timeline-item::before { content: ''; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #7b878a; }
.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline-item strong { display: block; margin: 6px 0; font-size: .89rem; font-weight: 600; text-transform: capitalize; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.75; }
.resume-footer { padding: 18px 0 22px; text-align: center; }
.resume-footer .help { max-width: 520px; margin: 8px auto 0; font-size: .79rem; }
.candidate-wrap > .candidate-footer { padding: 24px 12px 0; line-height: 1.9; }
.candidate-wrap > .candidate-footer a { display: inline-block; margin-top: 8px; }
.question-title { font-size: clamp(1.95rem, 4vw, 2.55rem); margin: 23px 0 12px; }
.panel.question { padding: 28px; border: 1px solid var(--line); }
.panel.question h2 { font-family: inherit; font-weight: 550; font-size: 1.13rem; line-height: 1.65; letter-spacing: 0; }
.success-mark { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 1px solid #b7cabb; border-radius: 50%; background: #e7eee6; color: #4c6d59; font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; margin: 22px 0 27px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.danger-zone { margin-top: 34px; padding: 18px 0 0; border-top: 1px solid #d9d2cd; }
.danger-zone summary { color: #85615a; font-size: .86rem; cursor: pointer; }
.danger-zone p { color: var(--muted); font-size: .83rem; margin-top: 16px; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--slate); transition: width .24s ease; }
td .progress { min-width: 70px; margin-top: 7px; height: 4px; }
.field > span { font-size: .87rem; color: var(--ink); font-weight: 600; }
.grid + .field, .grid + label.field, .grid + .form-section { margin-top: 19px; }
form > .btn[type='submit'] { margin-top: 16px; }
form > .choice + .choice { margin-top: 11px; }
.pill.shortlist { color: #496558; background: #e9efe9; }
.pill.future { color: #615c79; background: #eeebf2; }
.pill.withdrawn { color: #646668; background: #eeeeec; }
.candidate-wrap .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 1600px) {
  .content { padding: 46px 52px; }
}

@media (max-width: 1100px) {
  .content { padding: 28px; }
  .topbar { padding: 18px 28px; }
  .stats { gap: 12px; }
  .stat { padding: 18px; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: relative; top: auto; width: 100%; height: auto; padding: 18px 22px 12px; gap: 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0 2px; }
  .sidebar .brand strong { font-size: 1.5rem; }
  .sidebar .brand-mark { display: none; }
  .sidebar .nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 3px; }
  .nav a, .nav button { width: auto; flex: 0 0 auto; padding: 9px 12px; font-size: .84rem; white-space: nowrap; }
  .sidebar-footer { display: none; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .sidebar .brand:has(.brand-mark + div) { padding: 0 2px; }
  .sidebar .brand:has(.brand-mark + div) strong { font-size: 1.18rem; }
  .sidebar > :last-child:not(.nav):not(.brand) { margin-top: 0; }
  .mobile-nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; }
  .topbar { min-height: 60px; padding: 15px 24px; }
  .content { padding: 28px 24px; }
  .drawer { width: 100%; padding: 26px; }
  .candidate-header { padding: 22px 24px; }
}

@media (max-width: 640px) {
  :root { font-size: 15px; }
  .topbar { align-items: flex-start; padding: 14px 18px; gap: 12px; }
  .topbar .btn { min-height: 35px; padding: 7px 10px; font-size: .78rem; }
  .content { padding: 25px 17px; }
  .sidebar { padding: 18px 16px 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
  .stat { padding: 14px 16px; }
  .stat strong, .stat .value { font-size: 1.7rem; }
  .grid, .grid.two, .grid.three, .two, .three { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 20px 17px; border-radius: 9px; }
  .panel-header, .section-header { flex-direction: column; gap: 12px; }
  .page-title { flex-direction: column; gap: 16px; }
  .page-title > .btn { margin-top: 0; }
  .archive-panel { padding: 0; }
  .archive-panel > .toolbar { padding: 15px 15px 9px; }
  .archive-panel > .toolbar.compact { padding: 4px 15px 14px; }
  .toolbar { gap: 8px; }
  .toolbar input[type='search'], .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1 1 135px; width: 100%; min-width: 0; }
  .toolbar > .btn { flex: 1 1 auto; }
  th, td { padding: 12px; }
  .drawer { padding: 24px 18px; }
  .drawer h2 { font-size: 1.8rem; }
  .contact-line { flex-direction: column; gap: 8px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .file-row { gap: 12px; }
  .file-row .btn { padding: 7px 10px; }
  .tabs { margin-top: 14px; }
  .tab { padding: 11px 12px; }
  .modal-backdrop { padding: 14px; }
  .modal { padding: 24px 20px; max-height: calc(100dvh - 28px); }
  .candidate-header { padding: 20px; align-items: flex-start; }
  .candidate-header .brand strong { font-size: 1.6rem; }
  .candidate-header .brand:has(.brand-mark + div) { gap: 9px; padding: 0; }
  .candidate-header .brand:has(.brand-mark + div) strong { font-size: 1.1rem; }
  .candidate-header .brand:has(.brand-mark + div) small { font-size: .55rem; letter-spacing: .05em; }
  .candidate-header > a { font-size: .77rem; max-width: 95px; text-align: right; }
  .candidate-header > span, .candidate-header > p { max-width: 105px; text-align: right; font-size: .74rem; }
  .candidate-wrap { width: calc(100% - 30px); padding: 30px 0 45px; }
  .hero { padding: 2px 3px 20px; }
  .hero h1 { font-size: 2.35rem; }
  .hero p { font-size: .96rem; }
  .steps { gap: 10px; margin-bottom: 24px; }
  .step { font-size: .72rem; }
  .form-section { padding: 23px 18px; }
  .panel.question { padding: 23px 18px; }
  .form-section > h2 { font-size: 1.5rem; }
  .choice { padding: 13px; font-size: .9rem; gap: 10px; }
  .candidate-wrap .actions { align-items: stretch; }
  .candidate-wrap .actions > .btn { width: 100%; }
  .question { padding: 24px 0; }
  .toast { bottom: 15px; font-size: .84rem; padding: 12px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; color: #111; }
  .sidebar, .topbar, .toolbar, .mobile-nav, .toast, .drawer-backdrop, .btn { display: none !important; }
  .shell { display: block; }
  .content, .candidate-wrap { padding: 0; width: 100%; }
  .panel, .card, .form-section { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .drawer { position: static; width: 100%; padding: 0; box-shadow: none; overflow: visible; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  .candidate-header { padding: 0 0 20px; }
}

/* Visual questionnaire editor */
.re-rolebar { display: flex; gap: 26px; align-items: flex-end; margin-bottom: 24px; }
.re-rolebar .field { width: min(430px, 100%); flex-shrink: 0; margin-bottom: 0; }
.re-rolebar > .help { max-width: 550px; margin: 0 0 4px; }
.re-savebar { position: sticky; top: 12px; z-index: 15; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px 22px; border: 1px solid #d6dbd5; border-radius: 10px; background: #fffefa; box-shadow: 0 5px 20px rgb(37 44 48 / 5%); }
.re-name { flex: 1; max-width: 580px; }
.re-name > .field { margin-bottom: 10px; }
.re-save-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.re-save-actions .inline { flex-wrap: nowrap; }
.re-check { display: flex; align-items: center; gap: 9px; margin: 7px 0; color: var(--slate); font-size: .84rem; }
.re-check input { margin: 0; }
.re-block-tabs { margin-top: 26px; gap: 8px; }
.re-block-tabs .tab { padding: 13px 16px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.re-block-tabs .tab > span { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; margin-right: 6px; border-radius: 50%; border: 1px solid #c2c8c4; font-size: .73rem; }
.re-block-tabs .tab.active > span { background: var(--brand); border-color: var(--brand); color: #fff; }
.re-thresholds { margin-top: 22px; padding: 20px; border-radius: 8px; background: #f1f3ef; }
.re-thresholds .help { margin: 13px 0 0; }
.re-messages { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.re-messages > summary { font-size: .92rem; font-weight: 600; cursor: pointer; }
.re-messages[open] > summary { margin-bottom: 16px; }
.re-messages > .help { margin-bottom: 20px; }
.re-questions { margin: 32px 0; }
.re-question { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px; }
.re-question > summary { position: relative; display: flex; gap: 14px; align-items: center; padding: 17px 42px 17px 18px; cursor: pointer; list-style: none; font-size: .95rem; font-weight: 600; }
.re-question > summary::-webkit-details-marker { display: none; }
.re-question > summary::after { content: '+'; position: absolute; right: 18px; top: 20px; font-size: 1.1rem; font-weight: 400; color: var(--slate); }
.re-question[open] > summary::after { content: '−'; }
.re-question[open] > summary { border-bottom: 1px solid var(--line); }
.re-question > summary small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; margin-top: 5px; }
.re-question-num { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex: 0 0 29px; background: #ecefe9; color: var(--slate); border-radius: 50%; font-size: .76rem; font-weight: 500; }
.re-question-body { padding: 22px; }
.re-question-body > .toolbar { margin-top: 0; margin-bottom: 18px; }
.re-question-body > .re-check { margin: 18px 0; }
.re-question-body > .grid { margin-bottom: 18px; }
.re-question-body .btn.ghost { min-height: 33px; padding: 6px 10px; }
.re-question-body .btn.danger { min-height: 33px; padding: 6px 12px; font-size: .8rem; }
.re-option-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; margin-bottom: 12px; }
.re-option-heading h3 { margin: 0; }
.re-options { display: grid; gap: 13px; }
.re-option { display: grid; grid-template-columns: minmax(150px, 1.6fr) 72px minmax(100px, .8fr) minmax(200px, 1fr) 34px; gap: 12px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid #e7e9e3; }
.re-option:last-child { border-bottom: 0; }
.re-option .field { margin: 0; gap: 5px; }
.re-option .field > span { font-size: .74rem; }
.re-option .re-check { min-height: 42px; margin: 0; font-size: .78rem; }
.re-option > .btn { margin-bottom: 4px; }
.re-option + .help { margin-top: 15px; }
.re-rules { margin-top: 30px; }
.re-rule { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.re-rule-head { display: flex; align-items: center; gap: 20px; }
.re-rule-head .field { flex: 1; }
.re-rule-head > .btn { flex-shrink: 0; }
.re-rule > .grid { margin-bottom: 19px; }
.re-conditions { padding: 16px; margin-bottom: 10px; border-radius: 8px; background: #f1f3ef; }
.re-condition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 35px; gap: 12px; align-items: end; margin-bottom: 14px; }
.re-condition:last-child { margin: 0; }
.re-condition .field { margin: 0; }
.re-condition .field > span { font-size: .76rem; }
.re-condition select { font-size: .83rem; text-overflow: ellipsis; }
.re-condition .btn { min-width: 35px; padding: 9px 6px; }
.re-simulator { border-color: #a6b6ac; background: #fafcf7; margin: 25px 0 32px; }
.re-simulator .eyebrow { color: #567462; margin-bottom: 8px; }
.re-sim-questions { display: grid; gap: 5px; }
.re-sim-multi { margin: 10px 0 24px; }
.re-sim-multi legend { font-size: .88rem; font-weight: 600; margin-bottom: 0; }
.re-sim-multi .choices { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.re-sim-multi .choice { background: #fff; padding: 11px 12px; font-size: .83rem; }
.re-sim-multi > small { margin-top: 9px; }
.re-sim-result { margin-top: 25px; padding: 22px; border-radius: 9px; border: 1px solid #c8d7cc; background: #eef4ec; }
.re-result-top { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.re-result-top h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; font-weight: 400; margin: 4px 0 0; }
.re-result-top > strong { font-size: 1.6rem; font-weight: 550; white-space: nowrap; }
.re-result-top > strong small { font-size: .82rem; font-weight: 400; }
.re-sim-result > ul { margin-top: 20px; padding-left: 20px; font-size: .87rem; }
.re-sim-result > details { margin-top: 18px; font-size: .86rem; }
.re-sim-result > details > summary { cursor: pointer; font-weight: 600; }
.re-evidence { margin-top: 12px; }
.re-evidence > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 16px; padding: 12px 0; border-top: 1px solid #d5dfd3; }
.re-evidence small { grid-column: 1/-1; }
.re-evidence strong { white-space: nowrap; }
.re-new { border-color: #b4c0b5; }

@media (max-width: 1120px) {
  .re-option { grid-template-columns: minmax(120px,1fr) 72px minmax(200px,1.1fr) 34px; }
  .re-option-label { grid-column: 1/4; grid-row: 1; }
  .re-option > .field:nth-child(2) { grid-column: 2; grid-row: 2; }
  .re-option > .field:nth-child(3) { grid-column: 1; grid-row: 2; }
  .re-option > .field:nth-child(4) { grid-column: 3; grid-row: 2; }
  .re-option > .btn { grid-column: 4; grid-row: 2; }
}
@media (max-width: 900px) {
  .re-savebar { top: 8px; }
  .re-rolebar { gap: 18px; }
  .re-rolebar .field { width: min(360px, 50%); }
}
@media (max-width: 640px) {
  .re-rolebar { display: block; }
  .re-rolebar .field { width: 100%; margin-bottom: 12px; }
  .re-savebar { position: static; display: block; padding: 17px; }
  .re-save-actions { align-items: stretch; margin-top: 18px; gap: 10px; }
  .re-save-actions .inline { justify-content: space-between; flex-wrap: wrap; }
  .re-save-actions .btn { font-size: .8rem; }
  .re-block-tabs { gap: 0; }
  .re-block-tabs .tab { padding: 11px 10px; max-width: 230px; font-size: .8rem; }
  .re-thresholds { padding: 16px; }
  .re-question > summary { padding-left: 14px; gap: 10px; font-size: .88rem; }
  .re-question-body { padding: 18px 15px; }
  .re-question-body > .toolbar.compact { gap: 12px; }
  .re-option-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .re-option { grid-template-columns: 70px minmax(0,1fr) 34px; gap: 11px; }
  .re-option-label { grid-column: 1/-1; grid-row: 1; }
  .re-option > .field:nth-child(2) { grid-column: 1; grid-row: 2; }
  .re-option > .field:nth-child(3) { grid-column: 2; grid-row: 2; }
  .re-option > .field:nth-child(4) { grid-column: 1/3; grid-row: 3; }
  .re-option > .btn { grid-column: 3; grid-row: 3; }
  .re-rule-head { align-items: flex-start; flex-direction: column; gap: 0; margin-bottom: 14px; }
  .re-rule-head .field { width: 100%; margin-bottom: 5px; }
  .re-conditions { padding: 13px; }
  .re-condition { grid-template-columns: minmax(0,1fr) 33px; gap: 10px; border-bottom: 1px solid #dfe4da; padding-bottom: 15px; }
  .re-condition:last-child { border-bottom: 0; padding-bottom: 0; }
  .re-condition .field { grid-column: 1; }
  .re-condition > .btn { grid-column: 2; grid-row: 2; }
  .re-sim-multi .choices { grid-template-columns: minmax(0,1fr); }
  .re-sim-result { padding: 17px; }
  .re-result-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .re-evidence > div { grid-template-columns: minmax(0,1fr); gap: 5px; }
}

.staff-member{padding:20px 0;border-bottom:1px solid var(--line,#deded9)}.staff-member:last-child{border-bottom:0}.staff-member small{display:block;margin-top:5px;overflow-wrap:anywhere}.staff-member form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:14px}.staff-member form .field{flex:1;min-width:180px;margin:0}.staff-member>button{margin-top:10px}#set-password>input[readonly]{width:100%;box-sizing:border-box;margin-bottom:18px}
