.candidate {
  --bg-paper: #f7f6f4; --bg-card: #fff; --ink-primary: #262329; --ink-secondary: #58545d;
  --border-light: #d4d0d6; --ink-muted: #6e6772; --accent: #5e385e; --accent-hover: #492848;
  --radius-sm: 7px; --tint: #f4eff5; --field-border: #938c97;
}
.candidate :is(button, input, select) { accent-color: var(--accent); }
.candidate :is(input[type="text"], input[type="tel"], input[type="url"], input[type="search"], textarea, select) {
  background-color: white; border-color: var(--field-border);
}
.candidate :where(input, textarea, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.candidate .field.has-error :is(input:not([type="radio"], [type="checkbox"]), textarea, select) { border-color: #a03947; }
.candidate .choice-card:not(:has(:checked)) { border-color: var(--field-border); }
.hiring-header, .candidate .shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.hiring-header { min-height: 72px; display: flex; align-items: center; border-bottom: 1px solid var(--border-light); }
.hiring-home { display: inline-flex; gap: 12px; align-items: center; font-size: 1.02rem; font-weight: 750; text-decoration: none; }
.hiring-mark { width: 25px; height: 24px; position: relative; display: inline-block; }
.hiring-mark::before, .hiring-mark::after { content: ''; position: absolute; width: 12px; height: 17px; border-radius: 3px; background: var(--accent); }
.hiring-mark::before { top: 0; right: 0; }
.hiring-mark::after { bottom: 0; left: 0; background: #a895aa; }
.intake-layout { display: grid; grid-template-columns: minmax(220px, .47fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; padding-top: clamp(24px, 4vw, 56px); }
.role-brief { position: sticky; top: 24px; }
.role-brief { padding-block: 10px 20px; }
.role-brief h1 { font-size: clamp(1.8rem, 2.8vw, 2.65rem); line-height: 1.5; letter-spacing: -.04em; }
.role-brief p { margin: 14px 0 20px; line-height: 1.95; color: var(--ink-secondary); }
.role-brief h2 { font-size: 1rem; padding-top: 12px; border-top: 1px solid var(--border-light); }
.project-examples { padding-inline-start: 20px; margin: 7px 0 0; font-size: .89rem; color: var(--ink-secondary); }
.project-examples li + li { margin-top: 6px; }
.project-examples li::marker { color: var(--accent); }
.intake-card { min-width: 0; border: 1px solid var(--border-light); border-radius: 14px; background: white; box-shadow: 0 4px 22px #32283307; }
.intake-steps { margin: 0; padding: 0 clamp(18px, 3vw, 36px); list-style: none; display: flex; border-bottom: 1px solid var(--border-light); }
.intake-steps li { flex: 1; }
.intake-steps button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0 14px; color: var(--ink-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: .87rem; cursor: pointer; }
.intake-steps [aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 750; }
.intake-steps span { display: grid; place-items: center; width: 24px; height: 24px; line-height: 1; border-radius: 50%; background: #f1eff1; }
.intake-steps [aria-current] span { color: white; background: var(--accent); }
.profile-page, .catalog-page { padding: clamp(17px, 2.8vw, 34px) clamp(18px, 3vw, 36px) 0; }
.intake-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -.035em; margin-bottom: 18px; }
.intake-card h2:focus { outline: none; }
.intake-card .field { margin-bottom: 17px; }
.intake-card .field-label { font-size: .9rem; }
.intake-card .field-hint { line-height: 1.8; font-size: .85rem; }
.sample-fields { border-top: 1px solid #e3dfe4; padding-top: 19px; margin-top: 2px; }
.intake-actions { margin: 0; padding: 14px clamp(18px, 3vw, 36px); min-height: 70px; border-radius: 0 0 14px 14px; background: white; }
.intake-actions .btn-primary { margin-inline-start: auto; }
.intake-actions .draft-badge { color: var(--ink-muted); }
.intake-layout.survey-open { display: block; max-width: 750px; margin-inline: auto; }
.survey-open .intake-actions { position: sticky; z-index: 2; bottom: 0; }
.intake-card .domain-card, .survey-review { padding: clamp(20px, 4vw, 38px); border-bottom: 0; }
.card-position { font-size: .88rem; }
.card-position bdi { color: var(--accent); font-weight: 700; }
.domain-progress { display: block; width: 100%; height: 5px; margin: 10px 0 30px; accent-color: var(--accent); }
.domain-card h2 { margin-bottom: 22px; line-height: 1.6; }
.numbered-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .55em; }
.prompt-number { align-self: baseline; padding: .15em .55em; border-radius: 6px; background: var(--tint); color: var(--accent); font-size: .86rem; font-weight: 650; line-height: 1.6; white-space: nowrap; }
.domain-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.domain-choices [data-answer="yes"] { --wash: 102 187 141; --edge: #749781; --label: #204e35; }
.domain-choices [data-answer="no"] { --wash: 244 198 75; --edge: #ac914e; --label: #614910; }
.domain-choices button {
  --opacity: .16;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1 1 145px; min-height: 52px; padding: 8px; font-weight: 650; color: var(--label);
  background: linear-gradient(160deg, rgb(255 255 255 / .44), transparent 65%), rgb(var(--wash) / var(--opacity));
  border: 1px solid var(--edge); border-radius: 9px; box-shadow: inset 0 1px rgb(255 255 255 / .8);
  backdrop-filter: blur(6px); cursor: pointer;
}
.domain-choices button:hover { --opacity: .24; }
.domain-choices button[aria-pressed="true"] { --opacity: .32; border-color: var(--label); box-shadow: inset 0 0 0 1px var(--label); }
.domain-choices button:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }
.answer-check { display: none; }
.domain-choices [aria-pressed="true"] .answer-check { display: inline; }
.domain-details { margin: 24px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--border-light); min-width: 0; }
.domain-details > legend { font-weight: 650; font-size: 1rem; padding-inline-end: 8px; }
.domain-result { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: baseline; gap: 2px 14px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.domain-result bdi { font-weight: 600; }
.domain-result span, .domain-result small { color: var(--ink-secondary); }
.domain-result small { grid-column: 1 / -1; }
.domain-result button { border: 0; background: transparent; color: var(--accent); min-height: 40px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.survey-review .other-tools { margin: 24px 0 0; }
.catalog-domain { flex: 1 1 180px; font-size: .87rem; font-weight: 650; }
.catalog-domain select { display: block; margin-top: 5px; }
.catalog-jump { display: block; margin-bottom: 16px; padding: 7px 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (min-width: 761px) { .intake-card :is(.catalog-domain, .catalog-jump) { display: none; } }
.catalog-help { font-size: .91rem; margin: -5px 0 18px; color: var(--ink-secondary); }
.catalog-search { display: block; font-size: .87rem; font-weight: 650; }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.catalog-controls .catalog-search { flex: 1 1 190px; }
.catalog-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 4px 10px; border: 1px solid var(--border-light); border-radius: 7px; background: white; color: var(--ink-secondary); cursor: pointer; font-size: .83rem; }
.catalog-filter span { min-width: 21px; border-radius: 4px; background: #f1eff1; font-weight: 650; }
.catalog-filter[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--accent); }
.catalog-search input { margin-top: 5px; }
.catalog-search input:placeholder-shown { direction: rtl; text-align: start; }
.catalog-status { font-size: .84rem; color: var(--ink-secondary); }
.catalog-status:not(:empty) { margin-top: 8px; }
.skill-category { padding-block: 20px 22px; border-bottom: 1px solid #e3dfe4; scroll-margin-top: 16px; }
.skill-category h3 { font-size: 1.2rem; line-height: 1.5; color: var(--accent); }
.activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.activity-list legend, .tool-levels caption { font-size: .86rem; font-weight: 650; color: var(--ink-secondary); text-align: start; margin-bottom: 6px; padding: 0; }
.activity-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; min-height: 40px; }
.skill-category input[type="checkbox"] {
  appearance: none; display: inline-grid; place-items: center; flex: none; margin: 0;
  width: 17px; height: 17px; border: 1.5px solid #726c76; border-radius: 3px; background: white; cursor: pointer;
}
.skill-category input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.skill-category input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
@media (forced-colors: active) {
  .skill-category input[type="checkbox"] { appearance: auto; }
  .skill-category input[type="checkbox"]:checked::after { content: none; }
}
.tool-levels { width: 100%; border-spacing: 0; table-layout: fixed; margin-top: 18px; }
.tool-levels thead th { position: sticky; top: 0; z-index: 1; padding: 8px 4px; background: #f4f1f4; font-size: .81rem; color: var(--ink-secondary); }
.tool-levels th:first-child { width: 46%; text-align: start; padding-inline: 9px; }
.tool-levels tbody th { font-size: .88rem; font-weight: 550; overflow-wrap: anywhere; }
.tool-levels tbody :is(td, th) { border-bottom: 1px solid #e8e5e9; }
.tool-levels td { padding: 0; }
.tool-levels td label { display: grid; place-items: center; min-height: 44px; cursor: pointer; }
.tool-levels label:hover { background: #f6f3f6; }
.tool-levels tr:has(input:checked) { background: #faf6fa; }
.tool-levels .pending-hint { display: block; color: var(--red); }
.pending-hint button { border: 0; background: none; text-decoration: underline; cursor: pointer; }
.other-tools { margin-block: 12px 20px; }
.candidate :is(input, select, button, a) { scroll-margin-block: 16px 105px; }
@media (max-width: 760px) {
  .hiring-header, .candidate .shell { width: min(calc(100% - 28px), 650px); }
  .hiring-header { min-height: 54px; }
  .intake-layout { display: block; padding-top: 16px; }
  .role-brief { position: static; padding: 0 2px 16px; }
  .role-brief h1 { font-size: 1.72rem; }
  .role-brief p { margin: 6px 0 10px; font-size: .9rem; }
  .project-examples { font-size: .8rem; }
  .project-examples li + li { margin-top: 2px; }
  .catalog-controls .catalog-domain { flex-basis: 100%; }
  .tool-levels th:first-child { width: 40%; }
  .intake-steps button { gap: 5px; font-size: .79rem; }
  .intake-card .actions { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .intake-actions .draft-badge:not(:empty) { flex: 1; font-size: .71rem; }
  .survey-open .intake-actions .draft-badge { display: none; }
  .survey-open .intake-actions { flex-wrap: nowrap; }
  .survey-open .intake-actions .btn { font-size: .86rem; }
  .domain-result { gap: 2px 7px; font-size: .84rem; }
  .domain-choices button { flex-basis: 105px; }
  .activity-list { grid-template-columns: 1fr; }
  .activity-list label { min-height: 44px; }
}
