:root {
    --ink-950: #10211d;
    --ink-900: #172b26;
    --ink-800: #243a34;
    --ink-700: #40544e;
    --ink-600: #65756f;
    --ink-500: #80908a;
    --ink-300: #c9d2ce;
    --ink-200: #dfe5e2;
    --ink-100: #edf1ef;
    --ink-50: #f6f8f7;
    --surface: #ffffff;
    --canvas: #f4f6f5;
    --teal-700: #0d6b5c;
    --teal-600: #0f806d;
    --teal-500: #19a087;
    --teal-100: #d9f1eb;
    --teal-50: #edf9f6;
    --green-600: #268657;
    --green-100: #dff3e8;
    --amber-700: #9e6813;
    --amber-500: #d89b31;
    --amber-100: #fff0d2;
    --coral-700: #b34d45;
    --coral-100: #fbe5e2;
    --blue-700: #316e9f;
    --blue-100: #e0eff9;
    --shadow-sm: 0 1px 3px rgba(19, 39, 34, 0.05);
    --shadow-md: 0 12px 35px rgba(19, 39, 34, 0.08);
    --shadow-lg: 0 24px 70px rgba(19, 39, 34, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --sidebar-width: 258px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink-900);
    background: var(--canvas);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

button,
label,
select {
    -webkit-tap-highlight-color: transparent;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.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;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 18% 10%, rgba(36, 151, 126, 0.18), transparent 29%),
        linear-gradient(180deg, #122621 0%, #10201c 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 88px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-mark {
    position: relative;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(7, 20, 16, 0.28);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.brand-mark::after {
    position: absolute;
    width: 1px;
    height: 34px;
    content: "";
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(36deg);
}

.brand-mark span:first-child {
    position: absolute;
    top: 5px;
    left: 8px;
}

.brand-mark span:last-child {
    position: absolute;
    right: 8px;
    bottom: 5px;
}

.brand > div:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand strong,
.brand span {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
}

.brand > div:last-child span {
    margin-top: 3px;
    color: #83cbbb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 28px 15px;
}

.nav-label {
    margin: 0 10px 9px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    color: rgba(255, 255, 255, 0.67);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: 160ms ease;
}

.nav-item + .nav-item {
    margin-top: 5px;
}

.nav-item svg {
    width: 21px;
    height: 21px;
}

.nav-item span {
    font-size: 13px;
    font-weight: 600;
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(34, 167, 138, 0.25), rgba(34, 167, 138, 0.08));
    box-shadow: inset 3px 0 var(--teal-500);
}

.nav-item.disabled {
    cursor: default;
    opacity: 0.48;
}

.sidebar-footer {
    padding: 0 15px 20px;
}

.sidebar-help {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.help-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    color: #a8dfd2;
    border: 1px solid rgba(168, 223, 210, 0.28);
    border-radius: 50%;
    font-weight: 700;
}

.sidebar-help > div {
    display: flex;
    flex-direction: column;
}

.sidebar-help strong {
    font-size: 12px;
}

.sidebar-help span:last-child {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.47);
    font-size: 11px;
}

.sidebar-footer > p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.29);
    font-size: 10px;
    text-align: center;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--ink-200);
    backdrop-filter: blur(12px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-500);
    font-size: 12px;
}

.breadcrumb svg {
    width: 15px;
    height: 15px;
}

.breadcrumb strong {
    color: var(--ink-800);
    font-weight: 600;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: 160ms ease;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
    background: var(--ink-50);
}

.user-chip > span {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.user-chip > div {
    display: flex;
    flex-direction: column;
}

.user-chip strong {
    font-size: 12px;
}

.user-chip small {
    color: var(--ink-500);
    font-size: 10px;
}

.user-menu {
    position: relative;
}

.user-menu-chevron {
    width: 15px;
    height: 15px;
    margin-left: 3px;
    color: var(--ink-500);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 245px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 13px;
    box-shadow: var(--shadow-md);
}

.user-dropdown-identity {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-bottom: 1px solid var(--ink-100);
}

.user-dropdown-identity strong {
    font-size: 12px;
}

.user-dropdown-identity span {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.user-dropdown button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    color: var(--ink-700);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    text-align: left;
}

.user-dropdown button:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.user-dropdown button + button {
    border-top: 1px solid var(--ink-100);
}

.user-dropdown button svg {
    width: 17px;
    height: 17px;
}

.mobile-menu {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: 10px;
}

.mobile-menu svg {
    width: 21px;
}

.page-view {
    display: none;
    padding: 36px 34px 52px;
}

.page-view.active {
    display: block;
    animation: view-in 240ms ease;
}

@keyframes view-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 27px;
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--teal-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "Manrope", sans-serif;
}

.page-heading h1,
.editor-heading h1 {
    margin-bottom: 5px;
    color: var(--ink-950);
    font-size: clamp(25px, 3vw, 33px);
    line-height: 1.18;
}

.page-heading p {
    max-width: 690px;
    margin: 0;
    color: var(--ink-600);
    font-size: 13px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: 150ms ease;
}

.button svg {
    width: 17px;
    height: 17px;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    box-shadow: 0 6px 16px rgba(13, 107, 92, 0.18);
}

.button-primary:hover {
    box-shadow: 0 9px 22px rgba(13, 107, 92, 0.25);
}

.button-secondary {
    color: var(--ink-800);
    background: #fff;
    border-color: var(--ink-200);
}

.button-ghost {
    color: var(--ink-600);
    background: transparent;
    border-color: var(--ink-200);
}

.button-small {
    min-height: 35px;
    padding: 6px 12px;
    font-size: 11px;
}

.submit-button.loading .button-label,
.submit-button.loading > svg {
    display: none;
}

.button-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.submit-button.loading .button-loader {
    display: block;
}

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

.setup-alert {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding: 14px 16px;
    color: #69491b;
    background: #fff9e9;
    border: 1px solid #efd8a2;
    border-radius: 12px;
}

.setup-alert > div:nth-child(2) {
    flex: 1;
}

.setup-alert strong {
    display: block;
    font-size: 13px;
}

.setup-alert p {
    margin: 2px 0 0;
    font-size: 11px;
}

.setup-alert code {
    padding: 1px 4px;
    background: rgba(137, 94, 23, 0.08);
    border-radius: 3px;
}

.setup-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: #8e5e0f;
    background: #ffe7ad;
    border-radius: 9px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    display: flex;
    min-height: 100px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon.teal {
    color: var(--teal-700);
    background: var(--teal-100);
}

.stat-icon.amber {
    color: var(--amber-700);
    background: var(--amber-100);
}

.stat-icon.green {
    color: var(--green-600);
    background: var(--green-100);
}

.stat-icon.coral {
    color: var(--coral-700);
    background: var(--coral-100);
}

.stat-card > div:last-child {
    display: flex;
    flex-direction: column;
}

.stat-card span {
    color: var(--ink-600);
    font-size: 11px;
}

.stat-card strong {
    margin-top: 1px;
    color: var(--ink-950);
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    line-height: 1.2;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.panel-toolbar {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 19px;
    border-bottom: 1px solid var(--ink-100);
}

.panel-toolbar h2 {
    margin-bottom: 1px;
    font-size: 15px;
}

.panel-toolbar p {
    margin: 0;
    color: var(--ink-500);
    font-size: 10px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search-control {
    display: flex;
    width: min(290px, 34vw);
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 8px;
}

.search-control:focus-within {
    background: #fff;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(25, 160, 135, 0.1);
}

.search-control svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--ink-500);
}

.search-control input {
    width: 100%;
    height: 38px;
    padding: 0;
    color: var(--ink-800);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.select-control select {
    height: 40px;
    padding: 0 32px 0 11px;
    color: var(--ink-700);
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    outline: 0;
    font-size: 11px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th {
    padding: 11px 17px;
    color: var(--ink-500);
    background: #fafbfa;
    border-bottom: 1px solid var(--ink-100);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 14px 17px;
    color: var(--ink-700);
    border-bottom: 1px solid var(--ink-100);
    font-size: 11px;
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    transition: 130ms ease;
}

tbody tr:hover {
    background: #fbfcfc;
}

.align-right {
    text-align: right;
}

.candidate-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.table-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
}

.table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-avatar.has-photo {
    background: var(--ink-100);
}

.candidate-cell > div:last-child {
    display: flex;
    flex-direction: column;
}

.candidate-cell strong {
    color: var(--ink-900);
    font-size: 11px;
}

.candidate-cell span {
    color: var(--ink-500);
    font-size: 9px;
}

.folio-text {
    color: var(--ink-800);
    font-weight: 700;
}

.tag {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.tag.type {
    color: var(--blue-700);
    background: var(--blue-100);
}

.tag.status-positive {
    color: var(--green-600);
    background: var(--green-100);
}

.tag.status-caution {
    color: var(--amber-700);
    background: var(--amber-100);
}

.tag.status-neutral {
    color: var(--blue-700);
    background: var(--blue-100);
}

.tag.status-negative {
    color: var(--coral-700);
    background: var(--coral-100);
}

.labor-results {
    display: grid;
    min-width: 112px;
    gap: 3px;
}

.labor-result {
    display: inline-flex;
    width: fit-content;
    min-height: 19px;
    align-items: center;
    gap: 5px;
    padding: 2px 7px 2px 3px;
    color: var(--ink-500);
    background: var(--ink-100);
    border-radius: 12px;
    font-size: 8px;
    font-weight: 700;
}

.labor-result b {
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    font-size: 7px;
}

.labor-result.favorable {
    color: var(--green-600);
    background: var(--green-100);
}

.labor-result.observations {
    color: var(--amber-700);
    background: var(--amber-100);
}

.labor-result.not-favorable {
    color: var(--coral-700);
    background: var(--coral-100);
}

.personal-results {
    display: flex;
    min-width: 130px;
    align-items: center;
    gap: 7px;
}

.personal-results > span {
    display: grid;
    min-width: 34px;
    height: 27px;
    place-items: center;
    color: var(--ink-500);
    background: var(--ink-100);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}

.personal-results.partial > span {
    color: var(--amber-700);
    background: var(--amber-100);
}

.personal-results.complete > span {
    color: var(--green-600);
    background: var(--green-100);
}

.personal-results div {
    display: flex;
    flex-direction: column;
}

.personal-results strong {
    color: var(--ink-800);
    font-size: 9px;
}

.personal-results small {
    color: var(--ink-500);
    font-size: 8px;
}

.table-progress {
    width: 104px;
}

.table-progress > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--ink-500);
    font-size: 8px;
}

.table-progress strong {
    color: var(--ink-700);
}

.mini-progress {
    display: block;
    height: 4px;
    overflow: hidden;
    background: var(--ink-100);
    border-radius: 5px;
}

.mini-progress i {
    display: block;
    height: 100%;
    background: var(--teal-500);
    border-radius: inherit;
}

.row-action {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    color: var(--teal-700);
    background: var(--teal-50);
    border: 1px solid #d2ece6;
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.row-action svg {
    width: 14px;
    height: 14px;
}

.candidate-pdf-button {
    display: inline-flex;
    min-width: 145px;
    min-height: 39px;
    align-items: center;
    gap: 8px;
    padding: 5px 9px 5px 6px;
    color: var(--ink-800);
    background: linear-gradient(135deg, #ffffff, #f2faf7);
    border: 1px solid #cfe6df;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(13, 107, 92, 0.06);
    cursor: pointer;
    text-align: left;
    transition: 150ms ease;
}

.candidate-pdf-button:hover {
    border-color: #8fcabd;
    box-shadow: 0 5px 14px rgba(13, 107, 92, 0.12);
    transform: translateY(-1px);
}

.candidate-pdf-logo,
.report-pdf-logo {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #d85f55, #a93f38);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(179, 77, 69, 0.2);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.candidate-pdf-logo {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    font-size: 7px;
}

.candidate-pdf-button > span:last-child {
    display: flex;
    flex-direction: column;
}

.candidate-pdf-button strong {
    color: var(--teal-700);
    font-size: 9px;
    line-height: 1.2;
}

.candidate-pdf-button small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 7px;
}

.empty-state,
.loading-state {
    display: flex;
    min-height: 335px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 45px 20px;
    text-align: center;
}

.empty-illustration {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    color: var(--teal-600);
    background: var(--teal-50);
    border-radius: 24px;
}

.empty-illustration svg {
    width: 52px;
    height: 52px;
    stroke-width: 1.4;
}

.empty-state h3 {
    margin: 17px 0 5px;
    font-size: 16px;
}

.empty-state p,
.loading-state p {
    max-width: 340px;
    margin: 0 0 18px;
    color: var(--ink-500);
    font-size: 11px;
}

.loading-state .spinner {
    width: 27px;
    height: 27px;
    margin-bottom: 12px;
    border: 3px solid var(--teal-100);
    border-top-color: var(--teal-600);
    border-radius: 50%;
    animation: spin 750ms linear infinite;
}

.editor-heading {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 17px;
    padding: 0;
    color: var(--ink-600);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.back-button svg {
    width: 16px;
}

.editor-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.editor-title-row h1 {
    margin: 0;
}

.process-badge {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.process-badge.active {
    color: var(--amber-700);
    background: var(--amber-100);
}

.process-badge.completed {
    color: var(--green-600);
    background: var(--green-100);
}

.process-badge.closed {
    color: var(--coral-700);
    background: var(--coral-100);
}

.wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 18px;
}

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

.stepper {
    display: flex;
    min-height: 86px;
    align-items: center;
    padding: 14px 19px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 9px;
    padding: 6px;
    color: var(--ink-500);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.step:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.step-number {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--ink-100);
    border-radius: 9px;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.step > span:last-child {
    display: flex;
    flex-direction: column;
}

.step strong {
    color: var(--ink-700);
    font-size: 10px;
}

.step small {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 8px;
}

.step.active .step-number {
    color: #fff;
    background: var(--teal-700);
    box-shadow: 0 5px 12px rgba(13, 107, 92, 0.18);
}

.step.active strong {
    color: var(--teal-700);
}

.step.complete .step-number {
    color: var(--green-600);
    background: var(--green-100);
}

.step-line {
    height: 1px;
    min-width: 18px;
    flex: 1;
    margin: 0 6px;
    background: var(--ink-200);
}

.step-line.complete {
    background: var(--teal-500);
}

.form-panel {
    display: none;
    margin-top: 14px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-panel.active {
    display: block;
    animation: form-in 220ms ease;
}

@keyframes form-in {
    from {
        opacity: 0;
        transform: translateX(5px);
    }
}

.form-panel-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--ink-100);
}

.section-number {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 11px;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.form-panel-header h2 {
    margin-bottom: 2px;
    font-size: 16px;
}

.form-panel-header p {
    margin: 0;
    color: var(--ink-500);
    font-size: 10px;
}

.form-section {
    margin: 0 22px;
    padding: 23px 0;
}

.form-section + .form-section {
    border-top: 1px solid var(--ink-100);
}

.form-section h3,
.section-title-with-note h3 {
    margin-bottom: 14px;
    font-size: 12px;
}

.section-title-with-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-title-with-note span {
    color: var(--ink-500);
    font-size: 9px;
}

.form-grid {
    display: grid;
    gap: 15px;
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-span {
    grid-column: span 2;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.field > span,
.choice-group > span {
    margin-bottom: 6px;
    color: var(--ink-700);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.field > span b,
.choice-group > span b {
    color: var(--coral-700);
}

.field > span small {
    margin-left: 4px;
    color: var(--ink-500);
    font-size: 8px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    color: var(--ink-800);
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    outline: 0;
    font-size: 11px;
    transition: 130ms ease;
}

.field input,
.field select {
    height: 41px;
    padding: 0 11px;
}

.field textarea {
    min-height: 82px;
    padding: 10px 11px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a5b0ac;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(25, 160, 135, 0.1);
}

.field input[readonly] {
    color: var(--ink-600);
    background: var(--ink-50);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: #d97269;
    box-shadow: 0 0 0 3px rgba(217, 114, 105, 0.09);
}

.field-error {
    min-height: 13px;
    margin-top: 3px;
    color: var(--coral-700);
    font-size: 8px;
    font-style: normal;
}

.uppercase {
    text-transform: uppercase;
}

.status-section > p {
    margin: -9px 0 13px;
    color: var(--ink-500);
    font-size: 9px;
}

.status-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.status-options.final-status-options {
    grid-template-columns: minmax(190px, 280px);
}

.labor-final-status {
    margin-top: 20px;
}

.status-option {
    position: relative;
    display: flex;
    min-height: 70px;
    align-items: flex-start;
    gap: 7px;
    padding: 12px 10px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 9px;
    cursor: pointer;
    transition: 140ms ease;
}

.status-option:hover {
    border-color: var(--ink-300);
    transform: translateY(-1px);
}

.status-option input {
    position: absolute;
    opacity: 0;
}

.status-radio {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin-top: 1px;
    background: #fff;
    border: 1.5px solid var(--ink-300);
    border-radius: 50%;
}

.status-option input:checked + .status-radio::after {
    position: absolute;
    inset: 3px;
    content: "";
    background: currentColor;
    border-radius: 50%;
}

.status-option > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.status-option strong {
    color: var(--ink-800);
    font-size: 9px;
    line-height: 1.3;
}

.status-option small {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 7px;
}

.status-option:has(input:checked) {
    background: #fff;
    box-shadow: 0 4px 14px rgba(26, 47, 41, 0.06);
}

.status-option.positive:has(input:checked) {
    color: var(--green-600);
    border-color: #8dc9a9;
}

.status-option.caution:has(input:checked) {
    color: var(--amber-700);
    border-color: #ddba77;
}

.status-option.neutral:has(input:checked) {
    color: var(--blue-700);
    border-color: #8ab5d5;
}

.status-option.negative:has(input:checked) {
    color: var(--coral-700);
    border-color: #df9a94;
}

.final-status-options .status-option {
    color: var(--green-600);
    background: var(--green-100);
    border-color: #8dc9a9;
}

.final-status-options .status-option strong {
    color: var(--green-600);
}

.flow-notice,
.stage-guidance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    padding: 10px 11px;
    color: #8a514b;
    background: #fff7f5;
    border: 1px solid #f3d4d0;
    border-radius: 8px;
    font-size: 9px;
}

.flow-notice svg,
.stage-guidance svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 22px;
    background: #fafbfa;
    border-top: 1px solid var(--ink-100);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.stage-guidance {
    margin: 18px 22px 2px;
    color: var(--blue-700);
    background: #f3f8fc;
    border-color: #d8e8f3;
}

.reference-list {
    padding: 18px 22px 24px;
}

.reference-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
}

.reference-card + .reference-card {
    margin-top: 12px;
}

.reference-card-header {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fbfcfb;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.reference-index {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.reference-card-header > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.reference-card-header strong {
    color: var(--ink-800);
    font-family: "Manrope", sans-serif;
    font-size: 11px;
}

.reference-card-header small {
    overflow: hidden;
    color: var(--ink-500);
    font-size: 8px;
    text-overflow: ellipsis;
}

.reference-card-header > svg {
    width: 17px;
    height: 17px;
    color: var(--ink-500);
    transition: 160ms ease;
}

.reference-card.open .reference-card-header > svg {
    transform: rotate(180deg);
}

.reference-card-body {
    display: none;
    padding: 19px 14px 5px;
    border-top: 1px solid var(--ink-100);
}

.reference-card.open .reference-card-body {
    display: block;
}

.reference-subsection {
    margin: 6px 0 13px;
    color: var(--ink-500);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.reference-subsection:not(:first-child) {
    margin-top: 18px;
}

.full-span {
    grid-column: 1 / -1;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.choice-group {
    min-width: 0;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.segmented label {
    position: relative;
}

.segmented input {
    position: absolute;
    opacity: 0;
}

.segmented span {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--ink-600);
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 7px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
}

.segmented input:checked + span {
    color: var(--teal-700);
    background: var(--teal-50);
    border-color: #9cd2c5;
}

.operator-checks {
    display: none;
}

body.operator-selected .operator-checks {
    display: contents;
}

.file-field {
    position: relative;
}

.file-field input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: var(--ink-600);
    background: var(--ink-50);
    border: 1px dashed var(--ink-300);
    border-radius: 8px;
    cursor: pointer;
}

.file-drop:hover {
    border-color: var(--teal-500);
}

.file-drop > svg {
    width: 23px;
    height: 23px;
    color: var(--teal-600);
}

.file-drop > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.file-drop strong {
    overflow: hidden;
    color: var(--ink-700);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-drop small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 7px;
}

.existing-proof {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: var(--teal-700);
    font-size: 8px;
    font-weight: 700;
    text-decoration: none;
}

.existing-proof svg {
    width: 13px;
    height: 13px;
}

.result-field {
    padding: 12px;
    background: #f8faf9;
    border: 1px solid var(--ink-100);
    border-radius: 9px;
}

.personal-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 21px 22px;
}

.personal-card {
    padding: 16px;
    background: #fbfcfb;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
}

.personal-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.personal-card-header span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}

.personal-card-header strong {
    font-size: 10px;
}

.personal-card .field + .field {
    margin-top: 9px;
}

.completion-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 22px 21px;
    padding: 12px;
    color: var(--green-600);
    background: #f1faf5;
    border: 1px solid #d4edde;
    border-radius: 10px;
}

.completion-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--green-100);
    border-radius: 9px;
}

.completion-icon svg {
    width: 19px;
    height: 19px;
}

.completion-note > div:last-child {
    display: flex;
    flex-direction: column;
}

.completion-note strong {
    font-size: 10px;
}

.completion-note span {
    color: var(--ink-600);
    font-size: 8px;
}

.candidate-summary {
    position: sticky;
    top: 89px;
    padding: 21px 18px 18px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.summary-profile {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.candidate-avatar {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin-bottom: 10px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent),
        var(--teal-700);
    border: 4px solid var(--teal-100);
    border-radius: 17px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
}

.candidate-avatar img {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-avatar.has-photo img {
    display: block;
}

.candidate-avatar.has-photo > span {
    display: none;
}

.summary-profile > span {
    color: var(--teal-700);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-profile h3 {
    margin: 4px 0 2px;
    font-size: 13px;
}

.summary-profile p {
    margin: 0;
    color: var(--ink-500);
    font-size: 9px;
}

.summary-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--ink-100);
}

.summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.summary-title span {
    color: var(--ink-600);
    font-size: 8px;
    font-weight: 700;
}

.summary-title strong {
    color: var(--teal-700);
    font-size: 9px;
}

.progress-track {
    height: 6px;
    overflow: hidden;
    background: var(--ink-100);
    border-radius: 5px;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
    border-radius: inherit;
    transition: width 300ms ease;
}

.summary-steps {
    margin: 18px 0;
}

.summary-step {
    position: relative;
    display: flex;
    gap: 9px;
    min-height: 48px;
}

.summary-step:not(:last-child)::after {
    position: absolute;
    top: 25px;
    bottom: 3px;
    left: 12px;
    width: 1px;
    content: "";
    background: var(--ink-200);
}

.summary-step > span {
    z-index: 1;
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--ink-500);
    background: var(--ink-100);
    border-radius: 7px;
    font-size: 8px;
    font-weight: 800;
}

.summary-step > span svg {
    display: none;
    width: 14px;
    height: 14px;
}

.summary-step > div {
    display: flex;
    flex-direction: column;
}

.summary-step strong {
    color: var(--ink-600);
    font-size: 9px;
}

.summary-step small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 7px;
}

.summary-step.active > span {
    color: #fff;
    background: var(--teal-700);
}

.summary-step.active strong {
    color: var(--teal-700);
}

.summary-step.complete > span {
    color: var(--green-600);
    background: var(--green-100);
}

.summary-step.complete > span svg {
    display: block;
}

.summary-step.complete > span {
    font-size: 0;
}

.summary-status {
    display: flex;
    flex-direction: column;
    padding: 10px 11px;
    background: var(--ink-50);
    border-radius: 8px;
}

.summary-status span {
    color: var(--ink-500);
    font-size: 7px;
}

.summary-status strong {
    margin-top: 2px;
    color: var(--ink-800);
    font-size: 9px;
}

.summary-tip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 14px;
    padding: 10px;
    color: var(--amber-700);
    background: #fffaf0;
    border-radius: 8px;
}

.summary-tip svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.summary-tip p {
    margin: 0;
    color: var(--ink-600);
    font-size: 7px;
}

.toast-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: flex;
    width: min(370px, calc(100vw - 44px));
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    color: var(--ink-800);
    background: #fff;
    border: 1px solid var(--ink-200);
    border-left: 4px solid var(--teal-600);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    animation: toast-in 230ms ease;
}

.toast.error {
    border-left-color: var(--coral-700);
}

.toast.warning {
    border-left-color: var(--amber-500);
}

.toast-icon {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.toast.error .toast-icon {
    color: var(--coral-700);
    background: var(--coral-100);
}

.toast.warning .toast-icon {
    color: var(--amber-700);
    background: var(--amber-100);
}

.toast strong {
    display: block;
    margin-bottom: 1px;
    font-size: 10px;
}

.toast p {
    margin: 0;
    color: var(--ink-600);
    font-size: 9px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.completion-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 21, 0.64);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    width: min(410px, 100%);
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modal-in 250ms ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
}

.modal-success {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin: 0 auto 17px;
    color: var(--green-600);
    background: var(--green-100);
    border-radius: 20px;
}

.modal-success svg {
    width: 38px;
    height: 38px;
}

.modal-card h2 {
    margin-bottom: 7px;
    font-size: 20px;
}

.modal-card p {
    margin: 0 0 21px;
    color: var(--ink-600);
    font-size: 11px;
}

.candidate-profile-capture {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 22px 22px 0;
    padding: 18px;
    background:
        radial-gradient(circle at 88% 0%, rgba(25, 160, 135, 0.1), transparent 34%),
        linear-gradient(135deg, #f8fcfb, #f3f8f6);
    border: 1px solid #dbe9e5;
    border-radius: 14px;
}

.profile-photo-preview {
    position: relative;
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: var(--teal-700);
    background: var(--teal-100);
    border: 4px solid #fff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(22, 79, 66, 0.13);
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.profile-photo-preview img {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-preview.has-photo img {
    display: block;
}

.profile-photo-preview.has-photo span {
    display: none;
}

.profile-capture-copy {
    min-width: 0;
}

.profile-capture-copy .eyebrow {
    margin-bottom: 3px;
}

.profile-capture-copy h3 {
    margin-bottom: 3px;
    color: var(--ink-950);
    font-size: 17px;
}

.profile-capture-copy > p {
    margin: 0 0 11px;
    color: var(--ink-500);
    font-size: 9px;
}

.profile-photo-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-photo-actions > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.profile-photo-actions small {
    color: var(--ink-500);
    font-size: 8px;
}

.candidate-documents-section .section-title-with-note {
    align-items: flex-start;
    margin-bottom: 15px;
}

.candidate-documents-section .section-title-with-note h3 {
    margin-bottom: 3px;
}

.candidate-documents-section .section-title-with-note p {
    margin: 0;
    color: var(--ink-500);
    font-size: 9px;
}

.candidate-documents-section .section-title-with-note > span {
    padding: 5px 9px;
    color: var(--teal-700);
    background: var(--teal-50);
    border-radius: 20px;
    white-space: nowrap;
}

.candidate-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.candidate-document-slot {
    min-width: 0;
    padding: 13px;
    background: #fbfcfb;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
    transition: 140ms ease;
}

.candidate-document-slot.saved {
    background: #f7fcfa;
    border-color: #cfe8e1;
}

.candidate-document-slot:hover {
    border-color: #a8cfc5;
    box-shadow: 0 6px 18px rgba(19, 62, 52, 0.06);
}

.document-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.document-slot-number {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-700);
    font-size: 9px;
    font-weight: 800;
}

.document-slot-number i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 7px;
    font-style: normal;
}

.document-saved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    color: var(--green-600);
    background: var(--green-100);
    border-radius: 20px;
    font-size: 7px;
    font-weight: 800;
}

.document-slot-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.document-name-input {
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 0 10px;
    color: var(--ink-800);
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    outline: 0;
    font-size: 9px;
}

.document-name-input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(25, 160, 135, 0.09);
}

.document-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.document-file-button,
.document-view-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    color: var(--teal-700);
    background: var(--teal-50);
    border: 1px solid #d0e9e3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.document-file-button svg,
.document-view-button svg {
    width: 14px;
    height: 14px;
}

.document-slot-file-name {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    color: var(--ink-500);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-stage-label {
    display: flex;
    flex-direction: column;
}

.process-stage-label strong {
    color: var(--ink-800);
    font-size: 10px;
}

.process-stage-label span {
    color: var(--ink-500);
    font-size: 8px;
}

.button-danger {
    color: var(--coral-700);
    background: #fff7f6;
    border-color: #f0cbc7;
}

.save-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 20px;
}

.save-progress-card {
    position: relative;
    width: min(410px, 100%);
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modal-in 220ms ease;
}

.save-disk {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    margin: 0 auto 17px;
    background: linear-gradient(145deg, var(--teal-50), var(--teal-100));
    border: 1px solid #cce8e1;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(13, 107, 92, 0.13);
    font-size: 39px;
    animation: disk-saving 1.05s ease-in-out infinite;
}

.save-progress-card.success .save-disk {
    animation: disk-success 420ms ease;
}

.save-progress-card.error .save-disk {
    background: var(--coral-100);
    border-color: #f0cbc7;
    animation: none;
}

.save-progress-card h2 {
    margin-bottom: 6px;
    color: var(--ink-950);
    font-size: 20px;
}

.save-progress-card p {
    margin: 0 0 19px;
    color: var(--ink-600);
    font-size: 10px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.save-progress-track {
    height: 9px;
    overflow: hidden;
    background: var(--ink-100);
    border-radius: 10px;
}

.save-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
    border-radius: inherit;
    transition: width 240ms ease;
}

.save-progress-percent {
    display: block;
    margin-top: 8px;
    color: var(--teal-700);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
}

.save-progress-card .button {
    width: 100%;
    margin-top: 18px;
}

@keyframes disk-saving {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

@keyframes disk-success {
    0% {
        transform: scale(0.78);
    }
    70% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.document-manager-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 20px;
}

.candidate-report-modal {
    position: fixed;
    inset: 0;
    z-index: 98;
    display: grid;
    place-items: center;
    padding: 18px;
}

.candidate-report-card {
    position: relative;
    display: flex;
    width: min(1120px, 97vw);
    height: min(810px, 94vh);
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    animation: modal-in 220ms ease;
}

.candidate-report-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ink-100);
}

.candidate-report-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.report-pdf-logo {
    width: 46px;
    height: 52px;
    flex: 0 0 auto;
    font-size: 9px;
}

.candidate-report-heading > div {
    min-width: 0;
}

.candidate-report-heading .eyebrow {
    margin-bottom: 1px;
}

.candidate-report-heading h2 {
    overflow: hidden;
    margin: 0;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-report-heading p {
    margin: 2px 0 0;
    color: var(--ink-500);
    font-size: 9px;
}

.candidate-report-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.candidate-report-actions .button {
    min-height: 38px;
}

.candidate-report-actions .button svg {
    width: 16px;
    height: 16px;
}

.candidate-report-viewer {
    min-width: 0;
    min-height: 0;
    flex: 1;
    padding: 14px;
    background:
        radial-gradient(circle at 15% 5%, rgba(25, 160, 135, 0.08), transparent 22%),
        #e7ecea;
}

.candidate-report-viewer iframe {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 9px;
    box-shadow: 0 5px 20px rgba(17, 34, 29, 0.13);
}

.document-modal-card {
    position: relative;
    display: flex;
    width: min(1080px, 96vw);
    height: min(760px, 92vh);
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    animation: modal-in 220ms ease;
}

.document-modal-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ink-100);
}

.document-modal-header .eyebrow {
    margin-bottom: 2px;
}

.document-modal-header h2 {
    margin: 0;
    font-size: 17px;
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--ink-600);
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 9px;
    cursor: pointer;
}

.icon-button svg {
    width: 17px;
    height: 17px;
}

.document-modal-body {
    display: grid;
    min-height: 0;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 285px;
}

.document-viewer {
    min-width: 0;
    min-height: 0;
    padding: 14px;
    background: #e9eeec;
}

.document-viewer iframe {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 9px;
    box-shadow: 0 4px 18px rgba(17, 34, 29, 0.1);
}

.document-editor {
    padding: 19px;
    overflow-y: auto;
    border-left: 1px solid var(--ink-100);
}

.document-file-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink-100);
}

.pdf-icon {
    display: grid;
    width: 42px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--coral-700);
    border-radius: 8px;
    font-size: 8px;
    font-weight: 800;
}

.document-file-summary > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.document-file-summary strong {
    overflow: hidden;
    color: var(--ink-800);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-file-summary small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 8px;
}

.document-replace-control {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 11px;
    color: var(--teal-700);
    background: var(--teal-50);
    border: 1px dashed #9bcfc3;
    border-radius: 9px;
    cursor: pointer;
}

.document-replace-control > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.document-replace-control > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.document-replace-control strong {
    font-size: 9px;
}

.document-replace-control small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.document-editor-note {
    margin-top: 11px;
    padding: 9px;
    color: var(--ink-600);
    background: var(--ink-50);
    border-radius: 8px;
    font-size: 8px;
}

.document-modal-actions {
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    background: #fafbfa;
    border-top: 1px solid var(--ink-100);
}

.document-modal-actions > div {
    display: flex;
    gap: 8px;
}

.auth-page {
    overflow-x: hidden;
    background: #10211d;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
}

.auth-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px clamp(32px, 6vw, 82px);
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(25, 160, 135, 0.35), transparent 28%),
        radial-gradient(circle at 90% 86%, rgba(216, 155, 49, 0.16), transparent 24%),
        linear-gradient(145deg, #102b24 0%, #0e201b 72%);
}

.auth-hero::after {
    position: absolute;
    right: -140px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.018);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-brand > div:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-brand strong {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

.auth-brand > div:last-child span {
    margin-top: 3px;
    color: #83cbbb;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #82d1bf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-hero-copy h1 {
    max-width: 500px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.04;
}

.auth-hero-copy p {
    max-width: 475px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
}

.auth-security-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
}

.auth-security-note svg {
    width: 19px;
    height: 19px;
    color: #6fc8b4;
}

.auth-form-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px;
    background:
        radial-gradient(circle at 100% 0%, rgba(25, 160, 135, 0.08), transparent 28%),
        #f5f8f6;
}

.auth-card {
    width: min(420px, 100%);
    padding: 38px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(16, 33, 29, 0.11);
}

.auth-card h2 {
    margin: 7px 0 8px;
    font-size: 28px;
}

.auth-card > p {
    margin: 0 0 28px;
    color: var(--ink-600);
    font-size: 12px;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-form .field {
    gap: 7px;
}

.password-control {
    position: relative;
}

.password-control input {
    width: 100%;
    padding-right: 48px;
}

.password-control button {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    color: var(--ink-500);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-control button:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.password-control svg {
    width: 18px;
    height: 18px;
}

.password-help,
.create-user-panel .field small {
    color: var(--ink-500);
    font-size: 9px;
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 3px;
}

.auth-error,
.users-list-error {
    padding: 11px 12px;
    color: var(--coral-700);
    background: var(--coral-100);
    border: 1px solid #f3c9c4;
    border-radius: 9px;
    font-size: 10px;
}

.auth-loading {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--ink-500);
}

.auth-loading p {
    margin: 0;
    font-size: 11px;
}

.users-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.users-modal-card {
    position: relative;
    display: flex;
    width: min(980px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: modal-in 250ms ease;
}

.users-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--ink-100);
}

.users-modal-header h2 {
    margin: 4px 0 2px;
    font-size: 22px;
}

.users-modal-header p {
    margin: 0;
    color: var(--ink-600);
    font-size: 11px;
}

.users-modal-body {
    display: grid;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 330px 1fr;
}

.create-user-panel,
.users-list-panel {
    min-height: 0;
    padding: 23px 25px;
}

.create-user-panel {
    overflow-y: auto;
    background: var(--ink-50);
    border-right: 1px solid var(--ink-100);
}

.create-user-panel h3,
.users-list-panel h3 {
    margin: 0;
    font-size: 15px;
}

.create-user-panel > p,
.users-list-heading p {
    margin: 3px 0 18px;
    color: var(--ink-500);
    font-size: 10px;
}

.create-user-panel form {
    display: grid;
    gap: 13px;
}

.create-user-panel .button {
    width: 100%;
    margin-top: 4px;
}

.users-list-panel {
    display: flex;
    overflow: hidden;
    flex-direction: column;
}

.users-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.users-list {
    display: grid;
    overflow-y: auto;
    gap: 9px;
    padding-right: 4px;
}

.users-loading {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ink-500);
    font-size: 10px;
}

.user-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
}

.user-row.inactive {
    opacity: 0.65;
    background: var(--ink-50);
}

.user-row-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
}

.user-row-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.user-row-details > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.user-row-details strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-row-details > span {
    overflow: hidden;
    color: var(--ink-600);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-row-details small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 8px;
}

.current-user-label,
.role-badge {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
}

.current-user-label {
    color: var(--teal-700);
    background: var(--teal-100);
}

.user-row-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.role-badge {
    color: var(--ink-600);
    background: var(--ink-100);
}

.role-badge.admin {
    color: var(--amber-700);
    background: var(--amber-100);
}

.status-toggle {
    min-width: 66px;
    padding: 5px 8px;
    color: var(--ink-600);
    background: var(--ink-100);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
}

.status-toggle.active {
    color: var(--green-600);
    background: var(--green-100);
}

.status-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 800px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 260px;
        padding: 28px;
    }

    .auth-hero-copy h1 {
        max-width: 520px;
        font-size: 34px;
    }

    .auth-hero-copy p,
    .auth-security-note {
        display: none;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 28px 18px 46px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .users-modal {
        padding: 10px;
    }

    .users-modal-card {
        max-height: calc(100vh - 20px);
    }

    .users-modal-body {
        overflow-y: auto;
        grid-template-columns: 1fr;
    }

    .create-user-panel {
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--ink-100);
    }

    .users-list-panel {
        overflow: visible;
    }

    .users-list {
        overflow: visible;
    }
}

@media (max-width: 1180px) {
    .status-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wizard-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
    }

    .step strong {
        font-size: 9px;
    }
}

@media (max-width: 990px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        width: 258px;
        transform: translateX(-100%);
        transition: transform 200ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu {
        display: grid;
    }

    .topbar {
        padding: 0 22px;
    }

    .breadcrumb {
        display: none;
    }

    .page-view {
        padding: 28px 22px 45px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-layout {
        grid-template-columns: 1fr;
    }

    .candidate-summary {
        position: static;
        grid-row: 1;
        display: none;
    }

    .personal-reference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .topbar {
        min-height: 62px;
        padding: 0 15px;
    }

    .user-chip > div {
        display: none;
    }

    .page-view {
        padding: 23px 14px 40px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .page-heading .button {
        align-self: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .stat-card {
        min-height: 86px;
        gap: 10px;
        padding: 13px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-card span {
        font-size: 9px;
    }

    .stat-card strong {
        font-size: 19px;
    }

    .panel-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .toolbar-actions,
    .search-control {
        width: 100%;
    }

    .select-control,
    .select-control select {
        width: 100%;
    }

    .toolbar-actions {
        flex-direction: column;
    }

    .stepper {
        align-items: flex-start;
        padding: 11px;
    }

    .step {
        flex: 1;
        justify-content: center;
        padding: 4px;
    }

    .step > span:last-child,
    .step-line {
        display: none;
    }

    .step-number {
        width: 34px;
        height: 34px;
    }

    .form-panel-header,
    .form-section,
    .reference-list,
    .personal-reference-grid {
        margin-right: 0;
        margin-left: 0;
    }

    .form-panel-header {
        padding: 17px 15px;
    }

    .form-section {
        padding: 19px 15px;
    }

    .three-columns,
    .two-columns,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .two-span,
    .full-span {
        grid-column: auto;
    }

    .status-options {
        grid-template-columns: 1fr 1fr;
    }

    .stage-guidance {
        margin-right: 15px;
        margin-left: 15px;
    }

    .reference-list {
        padding: 15px;
    }

    .personal-reference-grid {
        padding: 17px 15px;
    }

    .completion-note {
        margin-right: 15px;
        margin-left: 15px;
    }

    .form-actions {
        padding: 14px 15px;
    }

    .form-actions .button {
        flex: 1;
    }

    .setup-alert {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .candidate-profile-capture {
        align-items: flex-start;
        margin: 15px 15px 0;
        padding: 14px;
    }

    .profile-photo-preview {
        width: 72px;
        height: 72px;
        border-radius: 19px;
        font-size: 17px;
    }

    .candidate-document-grid {
        grid-template-columns: 1fr;
    }

    .document-modal-card {
        width: 100%;
        height: 95vh;
    }

    .document-modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .document-viewer {
        min-height: 50vh;
    }

    .document-editor {
        border-top: 1px solid var(--ink-100);
        border-left: 0;
    }

    .document-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .document-modal-actions > div,
    .document-modal-actions .button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .status-options {
        grid-template-columns: 1fr;
    }

    .editor-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .candidate-profile-capture {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .profile-photo-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .document-slot-fields {
        grid-template-columns: 1fr;
    }

    .candidate-report-modal {
        padding: 0;
    }

    .candidate-report-card {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .candidate-report-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .candidate-report-heading {
        width: 100%;
    }

    .report-pdf-logo {
        width: 38px;
        height: 43px;
    }

    .candidate-report-heading h2 {
        max-width: calc(100vw - 80px);
        font-size: 14px;
    }

    .candidate-report-heading p {
        display: none;
    }

    .candidate-report-actions {
        width: 100%;
    }

    .candidate-report-actions .button {
        flex: 1;
    }

    .candidate-report-viewer {
        padding: 7px;
    }
}

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