@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/fonts/OpenSans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/fonts/OpenSans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --brand-navy: #11124F;
    --brand-blue: #2B309B;
    --brand-turquoise: #00C3B4;
    --brand-teal: #4BA194;
    --brand-teal-hover: #2E6F66;
    --brand-soft: #E4F3F1;
    --on-brand: #fff;
    --ink: #28323B;
    --muted: #52616B;
    --line: #D9E1E4;
    --control-border: #6F7D83;
    --surface: #fff;
    --surface-alt: #F4F7F8;
    --canvas: #F5F7F8;
    --focus: #2B309B;
    --header-height: 4.5rem;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: var(--brand-blue) var(--surface-alt);
}

[hidden] {
    display: none !important;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.55;
}

::selection {
    background: var(--brand-turquoise);
    color: var(--brand-navy);
}

:where(input, textarea, select) {
    caret-color: var(--brand-blue);
}

a {
    color: var(--brand-blue);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--brand-navy);
}

.app-header {
    background: var(--brand-navy);
    color: var(--on-brand);
}

.app-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100rem;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--on-brand);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--brand-turquoise);
    color: var(--brand-navy);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.header-context {
    padding-left: 1rem;
    border-left: 1px solid rgb(255 255 255 / 24%);
    color: rgb(255 255 255 / 82%);
    font-size: 0.9rem;
}

.app-header a:focus-visible {
    outline: 3px solid var(--on-brand);
    outline-offset: 3px;
}

.reviewer-workspace {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    min-height: calc(100vh - var(--header-height));
}

.reviewer-rail {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - var(--header-height));
    padding: 1.25rem 0.8rem;
    background: var(--brand-navy);
}

.reviewer-rail__list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reviewer-rail__link {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.55rem;
    color: rgb(255 255 255 / 84%);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}

.reviewer-rail__link:hover,
.reviewer-rail__link.is-current {
    background: rgb(255 255 255 / 11%);
    color: var(--on-brand);
}

.reviewer-rail__icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.reviewer-rail__link.is-current .reviewer-rail__icon {
    color: var(--brand-turquoise);
}

.reviewer-rail a:focus-visible {
    outline: 3px solid var(--on-brand);
    outline-offset: 2px;
}

.reviewer-main {
    min-width: 0;
}

.page-shell {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

body[data-page="candidates"] .page-shell,
body[data-page="run-progress"] .page-shell {
    max-width: none;
}

.workflow-path {
    display: flex;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.workflow-path__step {
    position: relative;
    display: grid;
    flex: 1 1 0;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.15rem 0.65rem;
    min-width: 0;
}

.workflow-path__step:not(:last-child)::after {
    position: absolute;
    top: 0.72rem;
    right: 0;
    left: 1.5rem;
    height: 1px;
    background: var(--line);
    content: "";
}

.workflow-path__marker {
    position: relative;
    z-index: 1;
    grid-row: 1 / span 2;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}

.workflow-path__label {
    grid-column: 2;
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: 100%;
    margin-inline-start: -0.25rem;
    padding-inline: 0.25rem;
    background: var(--canvas);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
}

.workflow-path__state {
    grid-column: 2;
    color: var(--brand-blue);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.3;
}

.workflow-path__step.is-current .workflow-path__marker {
    border-color: var(--brand-turquoise);
    background: var(--brand-turquoise);
    box-shadow: 0 0 0 0.25rem var(--brand-soft);
}

.workflow-path__step.is-current .workflow-path__label {
    color: var(--brand-navy);
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.candidate-job-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.4rem 0.75rem;
    width: min(100%, 22rem);
}

.candidate-job-navigation label {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 650;
}

.candidate-job-navigation select {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--control-border);
    border-radius: 0.55rem;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.candidate-job-navigation select:disabled {
    background: var(--surface-alt);
    color: var(--muted);
}

.candidate-job-navigation .back-link {
    align-self: center;
    padding: 0 0.25rem;
}

.candidate-job-navigation__status {
    grid-column: 1 / -1;
    min-height: 1.3em;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

h1 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.page-description {
    max-width: 65ch;
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.button-link,
button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1px solid var(--brand-blue);
    border-radius: 0.65rem;
    background: var(--brand-blue);
    color: var(--on-brand);
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.button-link:hover,
button:hover:not(:disabled) {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: var(--on-brand);
}

button:disabled {
    cursor: not-allowed;
    border-color: var(--line);
    background: var(--surface-alt);
    color: var(--muted);
}

.back-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: var(--brand-blue);
    font-weight: 650;
    white-space: nowrap;
}

.content-card {
    min-height: 5rem;
    padding: 0;
}

#auth-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 0;
    margin-left: auto;
}

#auth-panel #auth-status {
    margin: 0;
    color: rgb(255 255 255 / 84%);
    font-size: 0.92rem;
}



#candidates,
#run-progress {
    overflow-x: auto;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    color: var(--muted);
}

.loading-indicator span {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    border: 2px solid var(--line);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loading-indicator span { animation: none; }
}

.stage-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(7rem, 1fr));
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    counter-reset: stage;
}

.stage-progress li {
    position: relative;
    padding-top: 2.25rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    counter-increment: stage;
}

.stage-progress li::before {
    content: counter(stage);
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
}

.stage-progress li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.8rem;
    left: 1.75rem;
    width: calc(100% - 1.75rem);
    height: 0.25rem;
    background: var(--line);
}

.stage-progress .is-complete,
.stage-progress .is-active {
    color: var(--brand-teal-hover);
}

.stage-progress .is-complete::before,
.stage-progress .is-active::before {
    border-color: var(--brand-turquoise);
    background: var(--brand-turquoise);
    color: var(--brand-navy);
}

.stage-progress .is-complete::after {
    background: var(--brand-turquoise);
}

.stage-progress .is-active::before {
    box-shadow: 0 0 0 0.3rem var(--brand-soft);
}

.run-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#candidates .run-actions {
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

#candidates .run-actions > .button-link,
#candidates .run-actions > button {
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
}

.candidate-table-results {
    min-width: 0;
}

.candidate-results__heading {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.content-card .candidate-results__job-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.45rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.candidate-results__job-id {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.analysis-completion-time {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.candidate-results__scope {
    margin: 0.2rem 0 0;
    color: var(--brand-teal-hover);
    font-size: 0.92rem;
    font-weight: 650;
}

.candidate-results__eligibility {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

#candidates .candidate-results__actions > a {
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    color: var(--brand-navy);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

#candidates .candidate-results__actions > a:hover {
    border-color: var(--brand-teal);
    background: var(--surface-alt);
    color: var(--brand-teal-hover);
}

.candidate-results-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--brand-blue) var(--surface-alt);
    scrollbar-width: thin;
}

.candidate-table {
    width: max-content;
    min-width: 100%;
    font-size: 0.9rem;
}

.candidate-table .tabulator-cell {
    height: auto;
    padding: 0.7rem 0.65rem;
    overflow-wrap: anywhere;
    white-space: normal;
    font-variant-numeric: tabular-nums;
}

.candidate-table__bullets {
    margin: 0;
    padding-left: 1rem;
}

.candidate-table__bullets li + li {
    margin-top: 0.2rem;
}

.candidate-table .tabulator-col-title {
    white-space: normal;
    overflow-wrap: anywhere;
}

.candidate-table .tabulator {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--surface);
    color: var(--ink);
}

.candidate-table .tabulator-header,
.candidate-table .tabulator-header .tabulator-col {
    background: var(--surface-alt);
}

.candidate-table .tabulator-header {
    border-bottom: 1px solid var(--line);
    color: var(--brand-navy);
}

.candidate-table .tabulator-col {
    border-right: 1px solid var(--line);
}

.candidate-table .tabulator-row {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    transition: background-color 120ms ease;
}

.candidate-table .tabulator-row.tabulator-row-even {
    background: var(--surface-alt);
}

.candidate-table .tabulator-row:hover {
    background: var(--brand-soft);
}

.candidate-table .tabulator-cell {
    border-right: 1px solid var(--line);
}

.candidate-table-results--completed {
    display: grid;
    gap: 0.7rem;
}

.candidate-table__heading {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.05rem;
    font-weight: 700;
}

.candidate-table__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.25rem 0 0.75rem;
    border-bottom: 1px solid var(--line);
}

.candidate-table__hint,
.candidate-table__scroll-hint,
.candidate-table__storage-warning {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.candidate-table__storage-warning {
    flex-basis: 100%;
}

.candidate-table__scroll-hint {
    display: none;
}

.candidate-table__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.candidate-table__actions button {
    min-height: 2.25rem;
}

.content-card label.candidate-table__limit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    margin: 0;
    color: var(--ink);
    font-size: 0.82rem;
}

.content-card label.candidate-table__limit > input[type="number"] {
    width: 5.25rem;
    min-height: 2.25rem;
    height: 2.25rem;
    padding: 0.35rem 0.5rem;
}

.candidate-table__actions .candidate-table__export,
.candidate-table__actions .candidate-table__clear-filters {
    border-color: var(--line);
    background: var(--surface);
    color: var(--brand-navy);
}

.candidate-table__actions .candidate-table__export:hover,
.candidate-table__actions .candidate-table__clear-filters:hover {
    border-color: var(--brand-teal);
    background: var(--brand-soft);
    color: var(--brand-teal-hover);
}

.candidate-table .tabulator-header-filter {
    min-width: 0;
    padding: 0.25rem 0.35rem 0.4rem;
}

.candidate-table__filter-range {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 0.25rem;
}

.candidate-table__filter-range input.candidate-table__filter {
    flex: 1 1 0;
    min-width: 0;
}

.content-card h2 {
    margin: 0 0 1.1rem;
    color: var(--brand-navy);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.content-card label {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 650;
}

.content-card input:not([type="checkbox"]),
.content-card select,
.content-card textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--control-border);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 400;
}

.content-card textarea {
    min-height: 7rem;
    resize: vertical;
}

.content-card input.candidate-table__filter,
.content-card select.candidate-table__filter {
    display: block;
    width: 100%;
    height: 2rem;
    min-width: 0;
    min-height: 2rem;
    margin-top: 0;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--control-border);
    border-radius: 0.35rem;
    background: #fff;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 400;
}

.candidate-table__clear-filters {
    width: auto;
    height: 2rem;
    min-height: 2rem;
    margin: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.candidate-table-results > .candidate-table__clear-filters {
    margin-bottom: 0.65rem;
}

.content-card input:focus-visible,
.content-card select:focus-visible,
.content-card textarea:focus-visible,
.candidate-job-navigation select:focus-visible,
.candidate-results-scroll:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

#run-setup > label {
    max-width: 40rem;
}

#run-setup > select {
    display: block;
    max-width: 40rem;
    margin: 0 0 1rem;
}

#run-setup form {
    display: grid;
    gap: 0.8rem;
}

#run-setup form > button {
    justify-self: start;
}

#run-setup form label {
    margin: 0;
}

#run-setup .fact-options {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

#run-setup .fact-options legend {
    padding: 0 0.4rem;
    color: var(--brand-navy);
    font-weight: 650;
}

#run-setup .fact-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0.5rem;
}

#run-setup .fact-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    width: auto;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--surface-alt);
    font-weight: 500;
    line-height: 1.4;
}

#run-setup .fact-option input[type="checkbox"] {
    flex: none;
    margin-top: 0.1rem;
}

#run-setup .custom-fact-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    align-items: end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

#run-setup .custom-fact-controls button {
    width: fit-content;
    min-height: 2.75rem;
}

#run-setup form > div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#run-setup .field-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

#run-setup label:has(> input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--surface-alt);
    font-weight: 550;
}

#run-setup input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--brand-blue);
}

#run-setup label:has(> input[type="number"]) {
    max-width: 12rem;
}

#results > ol,
#run-progress > ol:not(.stage-progress),
.run-details > ol {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#results > ol > li,
#run-progress > ol:not(.stage-progress) > li,
.run-details > ol > li {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface-alt);
}

#results li strong,
#run-progress li strong,
.run-details li strong {
    color: var(--brand-teal-hover);
}

#results li ul,
.run-details li ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.demo-notice {
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-teal);
    border-radius: 0.6rem;
    background: var(--brand-soft);
    color: var(--brand-teal-hover);
}

#results {
    display: grid;
    gap: 1.25rem;
}

#results > .button-link {
    justify-self: start;
}

.job-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.job-list__item:first-child {
    border-top: 1px solid var(--line);
}

.job-list__item > p,
.job-list__item > .run-history {
    grid-column: 1 / -1;
}

.job-list__status {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.job-list__status--active {
    color: var(--brand-teal-hover);
}

.job-list__status--stale,
.job-list__status--unavailable {
    color: var(--brand-blue);
}

.job-list__primary {
    width: fit-content;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration-thickness: 0.08em;
}

.job-list__primary:hover {
    color: var(--brand-blue);
}

.job-list__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.9rem;
}

.job-list__actions:empty {
    display: none;
}

.archived-history {
    padding: 0.75rem 0;
    border-block: 1px solid var(--line);
    background: transparent;
}

.archived-history > summary {
    cursor: pointer;
    color: var(--brand-blue);
    font-weight: 650;
}

.archived-history__content {
    padding-top: 1rem;
}

.overview-refresh-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--brand-soft);
}

.overview-refresh-error p {
    margin: 0;
    color: var(--ink);
}

.run-history {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding-left: 1.5rem;
}

.job-card {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.job-card:last-child {
    border-bottom: 0;
}

.job-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.job-card__header h2 {
    margin: 0;
    margin-right: auto;
}

.badge {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-teal-hover);
    font-size: 0.8rem;
    font-weight: 650;
}

@media (max-width: 58rem) {
    body[data-page="candidates"] .page-heading {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 42rem) {
    .app-header__inner {
        flex-wrap: wrap;
        gap: 0.65rem 1rem;
        padding: 0.75rem 1rem;
    }

    .header-context {
        padding-left: 0;
        border-left: 0;
        font-size: 0.82rem;
    }

    .reviewer-workspace {
        display: block;
    }

    .reviewer-rail {
        position: static;
        min-height: 0;
        padding: 0.25rem 1rem;
    }

    .reviewer-rail__list {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
    }

    .reviewer-rail__link {
        flex: none;
        min-height: 2.5rem;
        padding: 0.5rem 0.75rem;
    }

    .page-shell {
        padding: 1.75rem 1.25rem 3rem;
    }

    .workflow-path {
        margin-bottom: 1.5rem;
    }

    .workflow-path__step {
        grid-template-columns: 1.25rem minmax(0, 1fr);
        column-gap: 0.45rem;
    }

    .workflow-path__step:not(:last-child)::after {
        top: 0.6rem;
        left: 1.25rem;
    }

    .workflow-path__marker {
        width: 1.25rem;
        height: 1.25rem;
    }

    .workflow-path__label {
        font-size: 0.82rem;
    }

    .workflow-path__state {
        font-size: 0.7rem;
    }

    .stage-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;
    }

    .stage-progress li:nth-child(even)::after {
        display: none;
    }

    .page-heading {
        flex-direction: column;
        gap: 1rem;
    }

    #auth-panel {
        flex-basis: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .candidate-job-navigation {
        width: 100%;
    }

    .job-list__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

    .job-list__actions {
        justify-content: flex-start;
    }

    .candidate-table__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .candidate-table__scroll-hint {
        display: block;
    }

    .candidate-table__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .candidate-table__actions button,
    .candidate-table__actions .candidate-table__clear-filters {
        min-height: 2.75rem;
        height: 2.75rem;
    }

    .content-card label.candidate-table__limit > input[type="number"] {
        min-height: 2.75rem;
        height: 2.75rem;
    }

    #candidates .candidate-results__actions > .button-link,
    #candidates .candidate-results__actions > button,
    #candidates .candidate-results__actions > a {
        min-height: 2.75rem;
        padding: 0.65rem 0.85rem;
    }

    .candidate-table .tabulator-header-filter input.candidate-table__filter,
    .candidate-table .tabulator-header-filter select.candidate-table__filter {
        min-height: 2.75rem;
    }
}

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