* {
    box-sizing: border-box;
}

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

.test-rules > div,
.test-timer {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #f8fbff;
}

.test-rules span,
.test-timer span {
    color: #5f758c;
    line-height: 1.6;
}

.test-header,
.test-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.test-timer {
    min-width: 180px;
    text-align: center;
}

.test-timer strong {
    font-size: 2rem;
    line-height: 1;
    color: #0d4fa8;
}

.test-timer.is-urgent {
    border-color: #f5b5b5;
    background: #fff5f5;
}

.test-timer.is-urgent strong {
    color: #b42318;
}

.test-lockdown {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 28, 48, 0.62);
    backdrop-filter: blur(8px);
}

.test-lockdown[hidden] {
    display: none;
}

.test-lockdown__card {
    width: min(520px, 100%);
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(12, 28, 48, 0.22);
}

.test-lockdown__card h2 {
    margin: 0;
    color: #17324d;
    font-size: 1.35rem;
    line-height: 1.3;
}

.test-lockdown__card p {
    margin: 0;
    color: #5f758c;
    line-height: 1.8;
}

.test-question {
    border: 1px solid #d7e4f2;
}

.test-copy-guard,
.test-copy-guard .test-question,
.test-copy-guard .test-option__text {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.test-question__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.test-question__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #0d4fa8;
    font-size: 0.86rem;
    font-weight: 600;
}

.test-question__title {
    margin: 0 0 18px;
    color: #17324d;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.test-options {
    display: grid;
    gap: 12px;
}

.test-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d7e4f2;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    line-height: 1.65;
}

.test-option:hover {
    border-color: #aac7eb;
    background: #f8fbff;
}

.test-option input {
    margin-top: 6px;
}

.test-pager {
    position: sticky;
    bottom: 18px;
    z-index: 5;
}

.test-pager__status {
    display: grid;
    gap: 4px;
    text-align: center;
}

.test-unanswered-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 0 100%;
    padding: 12px 14px;
    border: 1px solid #f5b5b5;
    border-radius: 14px;
    background: #fff5f5;
    color: #b42318;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
}

.test-unanswered-summary.is-complete {
    border-color: #a6e3b8;
    background: #f0fff4;
    color: #207a3c;
}

.test-unanswered-summary[hidden] {
    display: none;
}

.test-unanswered-summary__jump {
    appearance: none;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #f5b5b5;
    border-radius: 999px;
    background: #fff;
    color: #b42318;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.test-unanswered-summary__jump:hover,
.test-unanswered-summary__jump:focus-visible {
    border-color: #b42318;
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.test-pager button[hidden] {
    display: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.admin-stat {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #f8fbff;
}

.admin-stat span {
    color: #5f758c;
    font-size: 0.9rem;
}

.admin-stat strong {
    font-size: 1.55rem;
}

.answer-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    background: #eef6ee;
    color: #247a35;
}

.answer-result--wrong {
    background: #fff1f1;
    color: #b42318;
}

.integrity-risk {
    border-color: #d7e4f2;
}

.integrity-risk--medium {
    border-color: #f2c94c;
}

.integrity-risk--high {
    border-color: #f5b5b5;
}

.integrity-risk__level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ee;
    color: #247a35;
    font-weight: 800;
}

.integrity-risk--medium .integrity-risk__level {
    background: #fff8dc;
    color: #8a5a00;
}

.integrity-risk--high .integrity-risk__level {
    background: #fff1f1;
    color: #b42318;
}

.integrity-risk__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.integrity-risk__details ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.lockdown-events-panel__summary {
    cursor: pointer;
    list-style: none;
}

.lockdown-events-panel__summary::-webkit-details-marker {
    display: none;
}

.lockdown-events-panel__summary::after {
    content: "เปิดดู";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 8px 12px;
    border: 1px solid #c8d8eb;
    border-radius: 999px;
    color: #17324d;
    background: #fff;
    font-weight: 700;
}

.lockdown-events-panel[open] .lockdown-events-panel__summary {
    margin-bottom: 14px;
}

.lockdown-events-panel[open] .lockdown-events-panel__summary::after {
    content: "หุบ";
}

.question-bank-list {
    display: grid;
    gap: 12px;
}

.question-editor {
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.question-editor summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    list-style: none;
}

.question-editor summary::-webkit-details-marker {
    display: none;
}

.question-editor summary > span:nth-child(2) {
    overflow-wrap: anywhere;
    font-weight: 600;
}

.question-editor__status {
    color: #5f758c;
    font-size: 0.9rem;
}

.question-editor__form {
    display: grid;
    gap: 18px;
    padding: 16px;
    border-top: 1px solid #d7e4f2;
}

@media (max-width: 760px) {
    .test-rules,
    .admin-stats,
    .integrity-risk__details {
        grid-template-columns: 1fr;
    }

    .question-editor summary {
        grid-template-columns: 1fr;
    }

}

body {
    margin: 0;
    font-family: "Prompt", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    --wizard-flow-gap: 22px;
    --wizard-grid-gap-y: 18px;
    --wizard-grid-gap-x: 24px;
    --wizard-field-gap: 10px;
    --wizard-button-gap: 30px;
    background:
        radial-gradient(circle at top right, rgba(9, 132, 227, 0.14), transparent 34%),
        linear-gradient(180deg, #f5f8fc 0%, #eef2f8 100%);
    color: #17324d;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: #0056b3;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #d7e4f2;
}

.site-header__inner,
.page-shell,
.page-footer__inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    min-width: 0;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand__logo {
    width: auto !important;
    height: 76px !important;
    max-height: 76px !important;
    max-width: 76px !important;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand__eyebrow {
    font-size: 0.8rem;
    color: #5c7288;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand__title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #36546f;
    font-weight: 500;
}

.nav-links .button-link {
    background: #0d6efd;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
}

.button-link--button {
    border: none;
    cursor: pointer;
    font: inherit;
}

.admin-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.admin-nav__group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(23, 50, 77, 0.05);
    min-width: 0;
}

.admin-nav__label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b90a8;
}

.admin-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #36546f;
    font-weight: 600;
    line-height: 1;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-nav__link:hover {
    background: #edf4ff;
    color: #17324d;
}

.admin-nav__link.is-active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(0, 166, 251, 0.16));
    color: #0d4fa8;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.12);
}

.admin-nav__logout {
    min-height: 44px;
    padding-inline: 18px;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.14);
}

.page-shell {
    padding: 32px 0 56px;
}

.hero-card,
.panel,
.wizard-step,
.info-strip,
.status-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d7e4f2;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(25, 57, 94, 0.08);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel__header > h3 {
    margin: 0;
}

.hero-card {
    padding: 32px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: start;
}

.hero-card h1,
.page-title {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 2vw, 2.8rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.hero-card p,
.section-copy {
    margin: 0;
    color: #5f758c;
    line-height: 1.75;
}

.hero-points {
    margin: 20px 0 0;
    padding-left: 18px;
    color: #36546f;
    line-height: 1.8;
}

.brand-showcase {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand-showcase--hero {
    margin-bottom: 4px;
}

.brand-showcase--center {
    justify-content: center;
}

.brand-showcase__primary {
    width: min(280px, 100%);
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-showcase__secondary {
    width: 82px;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 32px rgba(23, 50, 77, 0.12));
}

.panel {
    padding: 24px;
    min-width: 0;
}

.stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.stack--compact {
    gap: 18px;
}

.stack > * {
    min-width: 0;
}

.grid {
    display: grid;
    gap: var(--wizard-grid-gap-y) var(--wizard-grid-gap-x);
    min-width: 0;
}

.grid > * {
    min-width: 0;
}

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

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

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

.stat-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #d7e4f2;
    border-radius: 12px;
    background: #f8fbff;
}

.stat-card span {
    color: #60738c;
    font-size: 0.92rem;
}

.stat-card strong {
    color: #20324d;
    font-size: 1.55rem;
    line-height: 1.1;
}

.grid--personal-identity {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(160px, 0.7fr);
}

.grid--skills-primary {
    align-items: start;
}

.grid--skills-primary > .field {
    align-self: start;
}

.field {
    display: grid;
    gap: var(--wizard-field-gap);
}

.field-combo {
    display: grid;
    gap: 12px;
}

.field-combo--name {
    grid-template-columns: minmax(108px, 132px) minmax(0, 1fr);
    align-items: stretch;
}

.field label,
.field .field-label {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
    color: #24405c;
}

.field-subhead-placeholder {
    min-height: 1.25rem;
    line-height: 1.25;
    visibility: hidden;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #c8d8eb;
    border-radius: 14px;
    min-height: 52px;
    padding: 13px 16px;
    font: inherit;
    line-height: 1.35;
    background: #fbfdff;
    color: #17324d;
}

.field input.locked-input:disabled {
    border-color: #b6c5d6;
    background: #dfe7f0;
    color: #53677d;
    cursor: not-allowed;
    opacity: 1;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.13);
}

.field-error {
    color: #b42318;
    font-size: 0.9rem;
}

.field-hint {
    color: #60738c;
    font-size: 0.86rem;
    line-height: 1.45;
}

.field-label--required::after,
.checkbox-row label.field-label--required::after {
    content: " *";
    color: #b42318;
    font-weight: 700;
}

.help-text {
    color: #5f758c;
    font-size: 0.88rem;
}

.checkbox-row,
.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
}

.checkbox-row label,
.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    cursor: pointer;
}

.radio-row input[type="radio"],
.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #0d6efd;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button-row--center {
    justify-content: center;
}

.button-row--between {
    justify-content: space-between;
}

.button {
    border: none;
    border-radius: 999px;
    min-height: 52px;
    padding: 13px 24px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button[disabled] {
    opacity: 0.56;
    cursor: not-allowed;
    filter: saturate(0.72);
}

.button.button--pending {
    opacity: 0.92;
}

.button--primary {
    background: linear-gradient(135deg, #0d6efd 0%, #00a6fb 100%);
    color: #fff;
}

.button--secondary {
    background: #ecf3fb;
    color: #1f4568;
}

.button--small {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 0.92rem;
}

.button--ghost {
    background: transparent;
    color: #36546f;
    border: 1px solid #c8d8eb;
}

.button--danger {
    background: #b42318;
    color: #fff;
}

.notice-box {
    background: #f8fbff;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    padding: 18px;
    color: #415b76;
    line-height: 1.7;
}

.notice-box__danger {
    margin: 12px 0 0;
    padding: 14px 16px;
    border: 1px solid #f2b8b5;
    border-radius: 14px;
    background: #fff2f1;
    color: #b42318;
    font-weight: 600;
}

.notice-box__danger strong {
    color: #8f1d14;
}

.notice-box__actions {
    margin-top: 14px;
}

.applicant-start-panel {
    justify-content: center;
}

.applicant-start-logo-wrap {
    display: flex;
    justify-content: flex-start;
}

.applicant-start-logo {
    width: min(320px, 100%);
    height: auto;
    display: block;
}

.consent-check {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    background: #f8fbff;
}

.consent-check label {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
}

.consent-check input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
    justify-self: center;
    accent-color: #0d6efd;
}

.consent-check span {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.55;
    color: #17324d;
}

.consent-check__link {
    padding: 0;
    border: none;
    background: transparent;
    color: #0d6efd;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.turnstile-wrap .cf-turnstile {
    margin: 0 auto;
}

.applicant-start-actions {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.applicant-start-actions .button--primary {
    width: min(520px, 100%);
    min-width: 0;
    padding-inline: 28px;
}

.applicant-start-actions__status {
    width: min(520px, 100%);
    margin: 4px auto 0;
    text-align: center;
}

.applicant-start-actions .help-text {
    width: 100%;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13, 27, 42, 0.5);
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-dialog {
    width: min(720px, 100%);
    max-height: min(88vh, 920px);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #d7e4f2;
    box-shadow: 0 32px 80px rgba(13, 27, 42, 0.24);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-dialog--large {
    width: min(860px, 100%);
}

.modal-dialog--success {
    width: min(560px, 100%);
}

.modal-header,
.modal-footer {
    padding: 22px 24px;
    border-bottom: 1px solid #d7e4f2;
}

.modal-footer {
    border-bottom: none;
    border-top: 1px solid #d7e4f2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.modal-title {
    margin: 10px 0 0;
    font-size: 1.6rem;
    line-height: 1.2;
}

.modal-subtitle {
    margin: 8px 0 0;
    color: #60758b;
}

.modal-close {
    border: none;
    background: transparent;
    color: #36546f;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.modal-body {
    padding: 20px 24px 24px;
    overflow: auto;
    display: grid;
    gap: 18px;
}

.success-modal__summary {
    display: grid;
    gap: 14px;
}

.success-modal__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #f8fbff;
}

.success-modal__label {
    color: #60758b;
    font-size: 0.9rem;
}

.success-modal__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.success-modal__status--sent {
    color: #107c41;
}

.success-modal__status--processing {
    color: #3156a3;
}

.success-modal__status--failed,
.success-modal__status--not_configured {
    color: #b54708;
}

.copy-input {
    width: 100%;
    border: 1px solid #cbd8ea;
    border-radius: 12px;
    background: #f8fbff;
    color: #17324d;
    font: inherit;
    padding: 12px 14px;
}

.validation-summary {
    display: grid;
    gap: 12px;
}

.validation-summary__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #36546f;
    line-height: 1.6;
}

.policy-section {
    display: grid;
    gap: 12px;
}

.policy-section h3 {
    margin: 0;
    font-size: 1.05rem;
}

.policy-section p {
    margin: 0;
    color: #36546f;
    line-height: 1.7;
}

.policy-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: #36546f;
    line-height: 1.7;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.flash--success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.flash--error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.flash--info {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(var(--stepper-columns, 6), minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stepper__item {
    display: grid;
    place-items: center;
    min-width: 0;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    min-height: 82px;
    padding: 16px 20px;
    background: #f8fbff;
    color: #5f758c;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 10px 24px rgba(23, 50, 77, 0.05);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.stepper__item.is-active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(0, 166, 251, 0.14));
    border-color: #8bbcff;
    color: #0d4fa8;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(13, 110, 253, 0.12);
}

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

    .stepper__item {
        min-height: 76px;
        font-size: 0.98rem;
    }
}

.wizard-step {
    padding: 30px 28px 28px;
    display: none;
}

.wizard-step.is-active {
    display: block;
}

.wizard-step > * {
    margin-block: 0;
}

.wizard-step > * + * {
    margin-top: var(--wizard-flow-gap);
}

.wizard-step h2 {
    font-size: 1.48rem;
    line-height: 1.2;
}

.wizard-step__intro {
    color: #60758b;
    line-height: 1.65;
}

.wizard-step > .wizard-step__intro + * {
    margin-top: 24px;
}

.wizard-step > .button-row {
    margin-top: var(--wizard-button-gap);
    padding-top: 2px;
}

.table-card {
    overflow: auto;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: #fff;
}

.table-card > table {
    min-width: 720px;
}

.table-card--wizard {
    max-width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.wizard-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}

.wizard-table--work-history {
    min-width: 1120px;
}

.wizard-table--training-history {
    min-width: 860px;
}

.wizard-table th,
.wizard-table td {
    min-width: 0;
}

.wizard-table input,
.wizard-table select,
.wizard-table textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #c8d8eb;
    border-radius: 14px;
    min-height: 52px;
    padding: 13px 16px;
    font: inherit;
    line-height: 1.35;
    background: #fbfdff;
    color: #17324d;
}

.month-year-picker {
    position: relative;
    min-width: 0;
}

.month-year-picker.is-open {
    z-index: 20;
}

.month-year-picker__trigger {
    width: 100%;
    min-height: 52px;
    border: 1px solid #c8d8eb;
    border-radius: 14px;
    background: #fbfdff;
    color: #17324d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    font: inherit;
    cursor: pointer;
    text-align: left;
    line-height: 1.35;
}

.month-year-picker__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.month-year-picker__caret {
    color: #60758b;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.month-year-picker__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: min(280px, 100%);
    padding: 12px;
    border: 1px solid #d7e4f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(23, 50, 77, 0.08);
    z-index: 30;
}

.month-year-picker__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.month-year-picker__part {
    min-width: 0;
    min-height: 52px;
    padding: 13px 16px !important;
    border-radius: 14px !important;
    background: #fbfdff !important;
    font-size: 0.95rem;
    line-height: 1.35;
}

.month-year-picker__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.language-table__cell {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.wizard-table__cell {
    display: grid;
    gap: 10px;
    align-content: start;
}

.wizard-table__cell--stacked {
    gap: 8px;
}

.wizard-table__cell--stacked textarea {
    min-height: 86px;
    resize: vertical;
}

.language-table__label-input {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.language-table__remove-button {
    flex: 0 0 auto;
    min-width: auto;
    padding-inline: 14px;
}

.table-card__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.table-card--mobile-cards {
    max-width: 100%;
}

.table-card__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-bottom: 1px solid #d7e4f2;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.table-card__toolbar > h3 {
    margin: 0;
}

.table-card--language-panel {
    overflow: hidden;
}

.subsection-title {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.25;
    color: #17324d;
}

.subsection-copy {
    margin: 8px 0 0;
    color: #60758b;
    line-height: 1.65;
}

.address-builder {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    background: #fbfdff;
}

.grid--address-primary {
    grid-template-columns:
        minmax(76px, 0.16fr)
        minmax(88px, 0.24fr)
        minmax(0, 0.30fr)
        minmax(0, 0.30fr);
    align-items: end;
}

.grid--address-location {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(108px, 0.62fr);
    align-items: end;
}

.address-builder__full {
    margin-top: 4px;
}

.address-builder__full textarea[readonly] {
    background: #f7faff;
    color: #36546f;
}

.wizard-table--work-history .col-company { width: 15%; }
.wizard-table--work-history .col-from { width: 21%; }
.wizard-table--work-history .col-to { width: 21%; }
.wizard-table--work-history .col-position { width: 24%; }
.wizard-table--work-history .col-salary { width: 19%; }

.wizard-table--work-history thead th,
.wizard-table--work-history .wizard-table__repeat-head th {
    text-align: center;
}

.wizard-table__detail-row td {
    padding-top: 0;
}

.wizard-table__repeat-head th {
    padding: 14px 12px 10px;
    background: #f8fbff;
    color: #36546f;
    font-size: 0.92rem;
    font-weight: 700;
    border-top: 1px solid #d7e4f2;
    border-bottom: 1px solid #e2ebf5;
}

.wizard-table__repeat-head:first-child th {
    border-top: 1px solid #d7e4f2;
}

.wizard-table__detail-box {
    display: grid;
    gap: 10px;
    width: 100%;
    padding-top: 2px;
}

.wizard-table__detail-box .field-label {
    margin: 0;
    color: #60758b;
    font-size: 0.9rem;
    font-weight: 700;
}

.wizard-table__detail-box textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
}

.wizard-table--training-history .col-course { width: 25%; }
.wizard-table--training-history .col-provider { width: 26%; }
.wizard-table--training-history .col-from { width: 24.5%; }
.wizard-table--training-history .col-to { width: 24.5%; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid #e2ebf5;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fbff;
    color: #36546f;
    font-size: 0.95rem;
}

.signature-box {
    border: 1px dashed #9bb9d5;
    border-radius: 18px;
    background: #fbfdff;
    padding: 18px;
    min-width: 0;
    overflow: hidden;
}

.signature-pad {
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d7e4f2;
    display: block;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.document-list {
    display: grid;
    gap: 16px;
}

.document-item {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #fbfdff;
    min-width: 0;
    overflow: hidden;
}

.document-item > * {
    min-width: 0;
}

.document-item__input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.95rem;
    overflow: hidden;
}

.document-item__input::file-selector-button,
.document-item__input::-webkit-file-upload-button {
    margin-right: 10px;
    padding: 10px 16px;
    border: 1px solid #bfd3f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #eef4ff 0%, #dce9ff 100%);
    color: #173d7a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.document-item__input:hover::file-selector-button,
.document-item__input:hover::-webkit-file-upload-button {
    background: linear-gradient(180deg, #dfeaff 0%, #cfe0ff 100%);
    border-color: #9bb9f6;
    color: #0d4fa8;
}

.document-item__input--hidden {
    display: none !important;
}

.photo-crop-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #ffffff;
}

.photo-crop-card__preview {
    width: 72px;
    aspect-ratio: 5 / 7;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d7e4f2;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    flex: 0 0 auto;
}

.photo-crop-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-crop-card__copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.photo-crop-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-crop-card__hint,
.photo-crop-card__status {
    color: #60758b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.photo-crop-card__status {
    color: #0d4fa8;
    font-weight: 600;
}

.photo-crop-card__action {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 18px;
    white-space: nowrap;
}

.modal-dialog--photo-cropper {
    width: min(860px, 100%);
}

.photo-cropper {
    display: grid;
    gap: 20px;
}

.photo-cropper__stage {
    position: relative;
    width: min(100%, 420px);
    margin: 0 auto;
    aspect-ratio: 5 / 7;
    border-radius: 22px;
    border: 1px solid #d7e4f2;
    overflow: hidden;
    background:
        linear-gradient(45deg, rgba(13, 110, 253, 0.06) 25%, transparent 25%, transparent 50%, rgba(13, 110, 253, 0.06) 50%, rgba(13, 110, 253, 0.06) 75%, transparent 75%, transparent),
        #f5f9ff;
    background-size: 18px 18px;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.photo-cropper__stage:active {
    cursor: grabbing;
}

.photo-cropper__stage img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    max-height: none;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
}

.photo-cropper__frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    box-shadow: inset 0 0 0 999px rgba(23, 50, 77, 0.08);
    pointer-events: none;
}

.photo-cropper__controls {
    display: grid;
    gap: 12px;
    width: min(100%, 420px);
    margin: 0 auto;
}

.photo-cropper__zoom-shell {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 12px;
}

.photo-cropper__zoom-control {
    display: grid;
    gap: 10px;
}

.photo-cropper__zoom-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd 0%, #4f86ff 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.photo-cropper__zoom-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef4ff;
    border: 1px solid #bfd3f8;
    color: #0d4fa8;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.photo-cropper__controls input[type="range"] {
    width: 100%;
    margin: 0;
    padding-inline: 0;
    accent-color: #0d6efd;
}

.photo-cropper__controls input[type="range"]::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.18), rgba(79, 134, 255, 0.4));
    border: 1px solid rgba(13, 79, 168, 0.12);
}

.photo-cropper__controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: linear-gradient(135deg, #0d6efd 0%, #4f86ff 100%);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
}

.photo-cropper__controls input[type="range"]::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.18), rgba(79, 134, 255, 0.4));
    border: 1px solid rgba(13, 79, 168, 0.12);
}

.photo-cropper__controls input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #4f86ff 100%);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #175cd3;
    font-size: 0.86rem;
    font-weight: 500;
}

.badge--danger {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.page-title--offset {
    margin-top: 12px;
}

.u-mt-0 {
    margin-top: 0 !important;
}

.u-mt-8 {
    margin-top: 8px !important;
}

.u-mt-10 {
    margin-top: 10px !important;
}

.u-mt-12 {
    margin-top: 12px !important;
}

.u-mt-18 {
    margin-top: 18px !important;
}

.u-mb-16 {
    margin-bottom: 16px !important;
}

.u-m-0 {
    margin: 0 !important;
}

.stepper--five {
    --stepper-columns: 5;
}

.positions-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 0;
}

.positions-hero__copy {
    max-width: 760px;
}

.positions-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.positions-stat-card {
    display: grid;
    gap: 10px;
    min-height: 148px;
    align-content: start;
}

.positions-stat-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b90a8;
}

.positions-stat-card__value {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1;
    color: #17324d;
}

.positions-stat-card__meta {
    color: #60758b;
    line-height: 1.55;
}

.positions-filter-panel {
    display: grid;
    gap: 20px;
}

.positions-filter-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.positions-filter-panel__page-info {
    align-content: end;
}

.positions-inline-meta {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: #60758b;
    font-weight: 600;
}

.positions-section-title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.positions-list-panel {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.applicants-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.applicants-toolbar .inline-form {
    flex: 0 0 auto;
}

.applicants-table__open {
    min-width: 96px;
}

.positions-table-card {
    overflow-x: auto;
    max-width: 100%;
}

.positions-table th,
.positions-table td {
    vertical-align: top;
}

.positions-table {
    min-width: 980px;
}

.positions-table__empty {
    color: #60758b;
}

.positions-table__title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    color: #17324d;
}

.positions-table__summary {
    margin-top: 10px;
    color: #60758b;
    line-height: 1.65;
}

.positions-table__meta {
    display: grid;
    gap: 6px;
    line-height: 1.5;
}

.positions-table__meta strong {
    color: #17324d;
}

.positions-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
}

.positions-status--active {
    background: #edf4ff;
    color: #245edb;
}

.positions-status--inactive {
    background: #f2f4f7;
    color: #667085;
}

.positions-actions {
    display: grid;
    gap: 12px;
    min-width: 136px;
}

.positions-actions .button {
    width: 100%;
}

.positions-actions__stack {
    display: grid;
    gap: 10px;
}

.positions-modal .modal-body {
    gap: 20px;
}

.positions-form__top-grid {
    align-items: start;
}

.positions-form__top-field {
    align-content: start;
}

.positions-form__secondary-grid {
    align-items: start;
}

.positions-form__secondary-field {
    align-content: start;
}

.positions-form__help-text {
    min-height: calc(1.45em * 2);
}

.positions-employment-types {
    gap: 12px 18px;
}

.positions-employment-types__option {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c8d8eb;
    border-radius: 14px;
    background: #fbfdff;
}

.positions-employment-types__option--all {
    background: #edf4ff;
    border-color: #bcd0ff;
}

.positions-salary-options {
    gap: 10px 12px;
}

.positions-salary-options__option {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c8d8eb;
    border-radius: 14px;
    background: #fbfdff;
}

.admin-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
    min-width: 0;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr;
    gap: 12px;
    align-items: start;
}

.detail-row strong {
    color: #36546f;
}

.auth-card {
    width: min(520px, calc(100% - 32px));
    margin: 72px auto;
}

.env-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #7a2e0e;
    font-size: 0.92rem;
}

.page-footer {
    border-top: 1px solid #d7e4f2;
    color: #60758b;
}

.page-footer__inner {
    padding: 20px 0 40px;
    font-size: 0.9rem;
}

.inline-form {
    display: inline-flex;
    margin: 0;
    min-width: 0;
}

.list-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    color: #5f758c;
    font-size: 0.92rem;
    min-width: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #fbfdff;
}

.timeline-item__time {
    color: #36546f;
    font-weight: 600;
}

.timeline-item__body {
    display: grid;
    gap: 6px;
}

.timeline-item__action {
    margin-top: 8px;
}

.signature-preview {
    display: block;
    max-width: 100%;
    border: 1px solid #d7e4f2;
    border-radius: 14px;
    background: #fff;
}

.print-shell {
    font-family: "Prompt", sans-serif;
    color: #111827;
    padding: 24px;
}

.print-shell h1,
.print-shell h2,
.print-shell h3 {
    margin: 0 0 10px;
}

.print-section {
    margin-bottom: 24px;
    page-break-inside: avoid;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.print-card {
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 16px;
}

.application-paper {
    width: min(210mm, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.application-paper__actions {
    margin-bottom: 20px;
}

.application-form {
    background: #fff;
    color: #111;
    font-family: Tahoma, "Helvetica Neue", Arial, sans-serif;
    font-size: 10.5px;
    line-height: 1.25;
    padding: 9mm 10mm 11mm;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
}

.application-page {
    page-break-after: always;
    break-after: page;
}

.application-page:last-child {
    page-break-after: auto;
    break-after: auto;
}

.application-page--closing {
    display: flex;
    flex-direction: column;
}

.application-page__closing {
    margin-top: auto;
    padding-top: 28px;
}

.application-page__meta {
    margin-top: 12px;
    padding-top: 6px;
    border-top: 1px solid #111;
}

.application-page__meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
    color: #444;
}

.application-page__meta-table td {
    padding: 0;
    border: none;
    vertical-align: top;
}

.application-page__meta-page {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.application-form__header-table,
.application-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
}

.application-form__header-table td,
.application-table td,
.application-table th {
    padding: 4px 6px;
    border: 1px solid #111;
    vertical-align: top;
    color: #111;
}

.application-form__header-table {
    margin-bottom: 8px;
}

.application-form__header-main {
    text-align: center;
}

.application-form__company {
    margin-bottom: 8px;
    text-align: center;
}

.application-form__company-logo {
    display: block;
    max-width: 88mm;
    max-height: 18mm;
    margin: 0 auto 4px;
    object-fit: contain;
}

.application-form__company-name {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.application-form__title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.application-form__title-th {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
}

.application-form__subtitle,
.application-form__subtitle-en {
    margin-top: 4px;
    font-size: 11px;
}

.application-form__photo-cell {
    width: 34mm;
    padding: 4px;
}

.application-form__photo-frame {
    width: 26mm;
    height: 34mm;
    margin: 0 auto;
    border: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.application-form__photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.application-form__photo-placeholder {
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
}

.application-section-title {
    margin: 10px 0 0;
    padding: 4px 8px;
    border: 1px solid #111;
    border-bottom: none;
    background: #efefef;
    font-weight: 700;
    font-size: 11px;
}

.application-table--compact td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.application-table--nested td {
    border: none;
    padding: 0 4px 0 0;
}

.application-table--nested td:last-child {
    padding-right: 0;
}

.application-table--grid th,
.application-table--grid td {
    text-align: left;
    padding: 5px 6px;
}

.application-table--grid th {
    background: #f5f5f5;
    font-weight: 700;
}

.application-table--grid tbody tr {
    page-break-inside: avoid;
}

.paper-line {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.paper-line--inline {
    display: inline-table;
    width: auto;
    min-width: 220px;
    vertical-align: middle;
}

.paper-line--secondary {
    margin-top: 4px;
}

.paper-line__label,
.paper-line__value {
    display: table-cell;
    vertical-align: bottom;
}

.paper-line__label {
    width: 1%;
    white-space: nowrap;
    padding-right: 6px;
}

.paper-line__value {
    border-bottom: 1px solid #111;
    min-height: 16px;
    padding: 0 4px 1px;
}

.paper-line__value--multiline {
    min-height: 28px;
    white-space: pre-wrap;
    line-height: 1.35;
}

.paper-caption {
    margin-top: 2px;
    font-size: 8.5px;
    color: #444;
}

.paper-caption--spaced {
    margin-bottom: 10px;
}

.paper-choices {
    line-height: 1.8;
}

.paper-label-inline {
    display: inline-block;
    margin-right: 10px;
    font-weight: 700;
}

.paper-choice {
    display: inline-block;
    margin-right: 12px;
    white-space: nowrap;
}

.paper-choice__box {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    border: 1px solid #111;
    text-align: center;
    line-height: 12px;
    font-size: 10px;
    vertical-align: middle;
}

.paper-box {
    min-height: 72px;
    padding: 8px;
    border: 1px solid #111;
    white-space: pre-wrap;
    line-height: 1.45;
}

.paper-declaration {
    margin-top: 10px;
    text-align: justify;
    line-height: 1.5;
}

.paper-declaration--english {
    margin-top: 6px;
    font-size: 9px;
}

.language-table th,
.language-table td {
    text-align: center;
}

.language-table td:first-child,
.language-table th:first-child {
    text-align: left;
}

.language-table__mark {
    font-weight: 700;
    font-size: 11px;
}

.signature-table,
.approval-table {
    margin-top: 18px;
}

.signature-table--applicant {
    margin-top: 60px;
}

.signature-table td,
.approval-table td {
    border: none;
    padding: 18px 4px 0;
}

.signature-table__box {
    text-align: center;
}

.signature-table__line,
.approval-table__line {
    border-bottom: 1px solid #111;
    height: 18px;
}

.signature-table__name,
.signature-table__label,
.signature-table__date,
.approval-table__label,
.approval-table__date {
    margin-top: 3px;
    text-align: center;
}

.approval-table__line {
    height: 22px;
}

.approval-table__date {
    margin-top: 12px;
}

.w-8 { width: 8%; }
.w-10 { width: 10%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-18 { width: 18%; }
.w-20 { width: 20%; }
.w-22 { width: 22%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-28 { width: 28%; }
.w-30 { width: 30%; }
.w-32 { width: 32%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-38 { width: 38%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }

@page {
    size: A4;
    margin: 10mm;
}

@media (max-width: 900px) {
    body {
        --wizard-flow-gap: 18px;
        --wizard-grid-gap-y: 14px;
        --wizard-grid-gap-x: 14px;
        --wizard-field-gap: 8px;
        --wizard-button-gap: 22px;
    }

    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav-wrap {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-nav__group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav__links {
        width: 100%;
    }

    .admin-nav__link {
        flex: 1 1 auto;
    }

    .hero-card,
    .admin-grid,
    .positions-stats,
    .grid--2,
    .grid--3,
    .grid--4,
    .grid--personal-identity,
    .grid--address-primary,
    .grid--address-location {
        grid-template-columns: 1fr;
    }

    .field-combo--name {
        grid-template-columns: 1fr;
    }

    .positions-hero,
    .positions-filter-panel__header {
        align-items: stretch;
    }

    .positions-actions {
        min-width: 0;
    }

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

    .stepper__item {
        min-height: 72px;
        padding: 14px 16px;
        font-size: 0.96rem;
    }

    .wizard-step {
        padding: 22px 18px 20px;
    }

    .field label,
    .field .field-label {
        font-size: 0.96rem;
    }

    .field input:not([type="radio"]):not([type="checkbox"]),
    .field select,
    .field textarea {
        min-height: 48px;
        padding: 12px 14px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .brand__logo {
        width: auto !important;
        height: 62px !important;
        max-height: 62px !important;
        max-width: 62px !important;
    }

    .brand-showcase {
        justify-content: flex-start;
    }

    .brand-showcase__primary {
        width: min(220px, 100%);
    }

    .brand-showcase__secondary {
        width: 68px;
    }

    .timeline-item,
    .list-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .table-card > table {
        min-width: 680px;
    }

    .positions-table {
        min-width: 920px;
    }

    .consent-check span {
        font-size: 1.02rem;
    }

    .modal-backdrop {
        align-items: flex-start;
        overflow: auto;
        padding: 12px;
    }

    .modal-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin-block: 8px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-inline: 16px;
    }

    .applicant-start-logo-wrap {
        justify-content: center;
    }

    .applicant-start-logo {
        width: min(260px, 100%);
    }

    .applicant-start-actions .button--primary {
        min-width: 100%;
    }

    .application-paper {
        width: calc(100% - 16px);
        padding: 8px 0 32px;
    }

    .application-form {
        padding: 14px;
        font-size: 10px;
    }

    .application-form__header-table td,
    .application-table td,
    .application-table th {
        padding: 4px;
    }
}

@media (max-width: 640px) {
    .site-header {
        position: static;
    }

    .site-header__inner,
    .page-shell,
    .page-footer__inner {
        width: min(100%, calc(100% - 20px));
    }

    .site-header__inner {
        padding: 12px 0;
        gap: 12px;
    }

    .page-shell {
        padding: 20px 0 40px;
    }

    .brand {
        width: 100%;
        gap: 12px;
        align-items: center;
    }

    .brand__eyebrow {
        font-size: 0.72rem;
    }

    .brand__title {
        font-size: 1rem;
    }

    .brand__logo {
        height: 54px !important;
        max-height: 54px !important;
        max-width: 54px !important;
    }

    .hero-card,
    .panel,
    .wizard-step,
    .status-card,
    .auth-card {
        border-radius: 18px;
    }

    .hero-card,
    .wizard-step {
        padding: 22px 16px 18px;
    }

    .panel {
        padding: 18px;
    }

    .stack {
        gap: 18px;
    }

    .page-title,
    .hero-card h1 {
        margin-bottom: 10px;
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.14;
    }

    .section-copy,
    .hero-card p,
    .wizard-step__intro,
    .notice-box,
    .positions-table__summary,
    .positions-stat-card__meta,
    .policy-section p,
    .policy-list {
        line-height: 1.6;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row > .button,
    .button-row > a.button,
    .button-row > .inline-form,
    .button-row > .inline-form > .button,
    .button-row > form .button {
        width: 100%;
    }

    .button-row--center {
        align-items: stretch;
    }

    .button {
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
    }

    .button--small {
        min-height: 42px;
    }

    .admin-nav__group {
        width: 100%;
        padding: 12px;
        align-items: stretch;
    }

    .admin-nav__links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-nav__link {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-nav__logout {
        width: 100%;
        text-align: center;
    }

    .positions-hero__actions,
    .positions-hero__actions .button,
    .positions-actions,
    .positions-actions__stack {
        width: 100%;
    }

    .positions-employment-types {
        gap: 10px;
    }

    .positions-employment-types__option {
        width: 100%;
        justify-content: flex-start;
    }

    .applicants-toolbar {
        align-items: stretch;
    }

    .applicants-toolbar .inline-form,
    .applicants-toolbar .inline-form .button {
        width: 100%;
    }

    .positions-stat-card {
        min-height: 0;
    }

    .positions-stat-card__value {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .stepper {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .stepper__item {
        min-height: 64px;
        padding: 12px 14px;
        font-size: 0.94rem;
        justify-items: start;
        text-align: left;
    }

    .address-builder {
        padding: 16px;
    }

    .photo-crop-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-crop-card__preview {
        width: 84px;
    }

    .photo-crop-card__meta {
        align-items: stretch;
    }

    .photo-crop-card__action {
        width: 100%;
        justify-content: center;
    }

    .photo-cropper__stage {
        width: min(100%, 320px);
    }

    .photo-cropper__zoom-shell {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 10px;
    }

    .photo-cropper__zoom-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.2rem;
    }

    .wizard-step h2 {
        font-size: 1.32rem;
    }

    .field label,
    .field .field-label {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .field input:not([type="radio"]):not([type="checkbox"]),
    .field select,
    .field textarea {
        min-height: 46px;
        padding: 11px 13px;
        border-radius: 12px;
    }

    .field textarea {
        min-height: 120px;
    }

    .checkbox-row,
    .radio-row {
        gap: 10px 16px;
        align-items: flex-start;
    }

    .checkbox-row label,
    .radio-row label {
        width: 100%;
    }

    .consent-check {
        padding: 16px;
    }

    .consent-check label {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .consent-check input[type="checkbox"] {
        justify-self: start;
    }

    .consent-check span {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .table-card {
        border-radius: 16px;
    }

    .table-card > table {
        min-width: 640px;
    }

    th,
    td {
        padding: 11px 12px;
    }

    .wizard-table--work-history {
        min-width: 1040px;
    }

    .wizard-table--training-history {
        min-width: 700px;
    }

    .positions-table {
        min-width: 860px;
    }

    .list-summary {
        gap: 8px;
        margin-bottom: 12px;
    }

    .timeline-item {
        padding: 12px;
        gap: 10px;
    }

    .document-item,
    .signature-box,
    .notice-box {
        padding: 16px;
    }

    .auth-card {
        width: min(100%, calc(100% - 20px));
        margin: 20px auto 28px;
    }

    .modal-backdrop {
        padding: 8px;
    }

    .modal-dialog {
        border-radius: 18px;
        max-height: none;
    }

    .modal-dialog--large {
        width: 100%;
    }

    .modal-dialog--photo-cropper {
        width: min(100%, 560px);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-header {
        gap: 12px;
    }

    .modal-title {
        font-size: 1.34rem;
    }

    .modal-subtitle {
        line-height: 1.55;
    }

    .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .modal-footer .button {
        width: 100%;
    }

    .table-card--applicants {
        overflow: visible;
        border: none;
        background: transparent;
    }

    .table-card--applicants > table {
        min-width: 0;
    }

    .admin-list-table--applicants,
    .admin-list-table--applicants thead,
    .admin-list-table--applicants tbody,
    .admin-list-table--applicants tr,
    .admin-list-table--applicants td {
        display: block;
        width: 100%;
    }

    .admin-list-table--applicants thead {
        display: none;
    }

    .admin-list-table--applicants tbody {
        display: grid;
        gap: 14px;
    }

    .admin-list-table--applicants tr {
        border: 1px solid #d7e4f2;
        border-radius: 18px;
        background: #fbfdff;
        padding: 14px;
        box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
    }

    .admin-list-table--applicants td {
        border: none;
        padding: 0;
    }

    .admin-list-table--applicants td + td {
        margin-top: 10px;
    }

    .admin-list-table--applicants td[data-label] {
        display: grid;
        grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .admin-list-table--applicants td[data-label]::before {
        content: attr(data-label);
        color: #60758b;
        font-size: 0.84rem;
        font-weight: 600;
        line-height: 1.5;
    }

    .admin-list-table--applicants td[data-label]:last-child {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #e2ebf5;
    }

    .admin-list-table--applicants td[data-label]:last-child::before {
        content: none;
    }

    .admin-list-table--applicants .badge,
    .admin-list-table--applicants .button {
        width: auto;
    }

    .admin-list-table--applicants .applicants-table__open {
        width: 100%;
        min-width: 0;
    }

    .admin-list-table--applicants .applicants-table__empty {
        padding: 18px;
        border: 1px solid #d7e4f2;
        border-radius: 18px;
        background: #fbfdff;
        color: #60758b;
    }

    .table-card--positions {
        overflow: visible;
        border: none;
        background: transparent;
    }

    .table-card--positions > table {
        min-width: 0;
    }

    .positions-table--responsive,
    .positions-table--responsive thead,
    .positions-table--responsive tbody,
    .positions-table--responsive tr,
    .positions-table--responsive td {
        display: block;
        width: 100%;
    }

    .positions-table--responsive thead {
        display: none;
    }

    .positions-table--responsive tbody {
        display: grid;
        gap: 14px;
    }

    .positions-table--responsive tr {
        border: 1px solid #d7e4f2;
        border-radius: 18px;
        background: #fbfdff;
        padding: 14px;
        box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
    }

    .positions-table--responsive td {
        border: none;
        padding: 0;
    }

    .positions-table--responsive td + td {
        margin-top: 10px;
    }

    .positions-table--responsive td[data-label] {
        display: grid;
        grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .positions-table--responsive td[data-label]::before {
        content: attr(data-label);
        color: #60758b;
        font-size: 0.84rem;
        font-weight: 600;
        line-height: 1.5;
    }

    .positions-table--responsive td[data-label]:last-child {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #e2ebf5;
    }

    .positions-table--responsive td[data-label]:last-child::before {
        content: none;
    }

    .positions-table--responsive .positions-actions {
        width: 100%;
        min-width: 0;
    }

    .positions-table--responsive .positions-actions .button,
    .positions-table--responsive .positions-actions__stack,
    .positions-table--responsive .positions-actions__stack .inline-form,
    .positions-table--responsive .positions-actions__stack .button {
        width: 100%;
    }

    .positions-table--responsive .positions-status {
        justify-self: start;
    }

    .positions-table--responsive .positions-table__empty {
        padding: 18px;
        border: 1px solid #d7e4f2;
        border-radius: 18px;
        background: #fbfdff;
    }

    .table-card--mobile-cards {
        overflow: visible;
        border: none;
        background: transparent;
    }

    .table-card--mobile-cards > table {
        min-width: 0;
    }

    .wizard-table--mobile-cards,
    .wizard-table--mobile-cards thead,
    .wizard-table--mobile-cards tbody,
    .wizard-table--mobile-cards tr,
    .wizard-table--mobile-cards td {
        display: block;
        width: 100%;
    }

    .wizard-table--mobile-cards thead {
        display: none;
    }

    .wizard-table--mobile-cards tbody {
        display: grid;
        gap: 14px;
    }

    .wizard-table--mobile-cards .wizard-table__repeat-head {
        display: none;
    }

    .wizard-table--mobile-cards tr {
        border: 1px solid #d7e4f2;
        border-radius: 18px;
        background: #fbfdff;
        padding: 14px;
        box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
    }

    .wizard-table--mobile-cards td {
        border: none;
        padding: 0;
    }

    .wizard-table--mobile-cards td + td {
        margin-top: 10px;
    }

    .wizard-table--mobile-cards td[data-label] {
        display: grid;
        grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .wizard-table--mobile-cards td[data-label]::before {
        content: attr(data-label);
        color: #60758b;
        font-size: 0.84rem;
        font-weight: 600;
        line-height: 1.5;
    }

    .wizard-table--mobile-cards input,
    .wizard-table--mobile-cards select,
    .wizard-table--mobile-cards textarea,
    .wizard-table--mobile-cards .button {
        width: 100%;
    }

    .wizard-table--mobile-cards .month-year-picker {
        display: block;
    }

    .wizard-table--mobile-cards .month-year-picker__grid,
    .wizard-table--mobile-cards .month-year-picker__actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .wizard-table--mobile-cards .language-table__cell,
    .wizard-table--mobile-cards .wizard-table__cell {
        width: 100%;
    }

    .wizard-table--mobile-cards .button--small {
        min-width: 0;
    }

    .wizard-table--mobile-cards.wizard-table--work-history,
    .wizard-table--mobile-cards.wizard-table--training-history {
        min-width: 0 !important;
    }

    .signature-pad {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .site-header__inner,
    .page-shell,
    .page-footer__inner {
        width: min(100%, calc(100% - 16px));
    }

    .hero-card,
    .wizard-step,
    .panel {
        padding-inline: 14px;
    }

    .brand__logo {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 48px !important;
    }

    .brand__title {
        font-size: 0.94rem;
    }

    .brand__eyebrow {
        font-size: 0.68rem;
    }

    .badge {
        font-size: 0.8rem;
    }

    .page-title,
    .hero-card h1 {
        font-size: clamp(1.45rem, 8.2vw, 1.8rem);
    }

    .table-card > table {
        min-width: 600px;
    }

    .table-card--applicants > table,
    .table-card--positions > table,
    .table-card--mobile-cards > table {
        min-width: 0;
    }

    .wizard-table--work-history {
        min-width: 980px;
    }

    .wizard-table--training-history {
        min-width: 620px;
    }

    .positions-table {
        min-width: 820px;
    }

    .admin-list-table--applicants td[data-label] {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .positions-table--responsive td[data-label] {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .wizard-table--mobile-cards td[data-label] {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .wizard-table--mobile-cards,
    .wizard-table--mobile-cards.wizard-table--education,
    .wizard-table--mobile-cards.wizard-table--language,
    .wizard-table--mobile-cards.wizard-table--work-history,
    .wizard-table--mobile-cards.wizard-table--training-history {
        min-width: 0 !important;
    }

    .document-item__input {
        width: 100%;
        max-width: 100%;
    }

    .document-item__input::-webkit-file-upload-button {
        max-width: 100%;
        margin-right: 10px;
    }

    .signature-pad {
        min-height: 160px;
    }
}

body.print-preview {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4fb 0%, #e6eef8 100%);
}

body.print-preview .application-paper {
    width: min(calc(210mm + 48px), calc(100vw - 32px));
    margin: 0 auto;
    padding: 32px 24px 56px;
}

body.print-preview .application-paper__actions {
    width: 210mm;
    max-width: 100%;
    margin: 0 auto 18px;
}

body.print-preview .application-form {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    margin: 0 auto;
    border: 1px solid #d7e4f2;
    border-radius: 0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

body.print-preview .application-page + .application-page {
    margin-top: 24px;
}

body.print-preview .application-page--closing {
    min-height: 297mm;
}

@media (max-width: 900px) {
    body.print-preview .application-paper {
        width: calc(100% - 16px);
        padding: 12px 0 32px;
    }

    body.print-preview .application-paper__actions {
        margin-bottom: 12px;
    }

    body.print-preview .application-form {
        min-height: auto;
        border-radius: 18px;
    }
}

@media print {
    .site-header,
    .page-footer,
    .button-row,
    .flash-stack {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    .application-paper {
        width: 100%;
        padding: 0;
    }

    .application-form {
        width: 100%;
        min-height: auto;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .application-page {
        page-break-after: always;
        break-after: page;
    }

    .application-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .application-page--closing {
        min-height: 275mm;
    }

    .panel,
    .hero-card,
    .wizard-step,
    .status-card {
        box-shadow: none;
        border-color: #d1d5db;
    }
}
