* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden,
[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px 20px;
}

.p11-page-shell {
    width: 100%;
    align-self: stretch;
    display: block;
}

h1 {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f4f4f4;
    padding: 0;
    z-index: 3000;
    box-shadow: 0 1px 0 rgba(18, 34, 64, 0.08);
}

.navbar-spacer {
    height: 4.85rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.35rem;
}

.nav-links-wrap {
    display: flex;
}

.nav-menu-toggle {
    display: none;
}

.nav-inner.container {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 68px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.nav-links a {
    color: #1d2a3a;
    text-decoration: none;
    padding: 0.15rem 0.25rem;
    border-radius: 0;
    font-weight: 600;
    transition: color 0.2s ease;
    min-width: 0;
    text-align: center;
    display: inline-flex;
    justify-content: center;
}

.nav-links a.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.global-profile-cta {
    margin-bottom: 1rem;
}

.global-profile-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    border: 1px solid #c7d6ff;
    color: #145AAA;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    text-align: center;
}

.global-profile-cta-link:hover {
    background: #e7efff;
}

.nav-menu-backdrop {
    display: none;
}

.nav-links a:hover {
    color: #2d6cdf;
}

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cfd7e3;
    background: #e8eef5;
    color: #1d2a3a;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1001;
}

.profile-dropdown:focus-within .profile-menu,
.profile-dropdown.open .profile-menu {
    display: block;
}

.profile-item {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #1d2a3a;
    text-decoration: none;
}

.profile-item:hover {
    background: #f4f7fb;
}

.nav-auth-links {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-auth-link {
    color: #1d2a3a;
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d6dfec;
    background: #f6f8fc;
    font-weight: 700;
}

.nav-auth-link-primary {
    background: #145AAA;
    border-color: #145AAA;
    color: #fff;
}

.nav-upgrade-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    background: #d84f81;
    border: 1px solid #cf3e73;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(216, 79, 129, 0.24);
}

.nav-upgrade-cta:hover {
    background: #c83f70;
    color: #ffffff;
}

.intro-modal {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1100;
    overflow: hidden;
}

.intro-modal.hidden {
    display: none;
}

.intro-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 720px;
    width: min(720px, calc(100vw - 2rem));
    min-width: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: min(80vh, 760px);
    overflow: hidden;
    overflow-wrap: anywhere;
}

.intro-modal-header {
    padding: 2rem 2rem 0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.intro-modal-body {
    padding: 0 2rem 1rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.intro-modal-footer {
    padding: 0 2rem 2rem;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.intro-modal-footer .btn {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
}

.onboarding-page {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
}

.onboarding-shell {
    background: #ffffff;
    border: 1px solid #dfe6f0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    max-width: 960px;
    max-height: calc(100vh - 6.4rem);
    margin: 0 auto;
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.onboarding-shell-hero {
    display: grid;
    gap: 0.45rem;
}

.onboarding-shell-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.onboarding-overline {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #145AAA;
}

.onboarding-shell-exit {
    font-size: 0.92rem;
    font-weight: 700;
    color: #5c6d84;
    text-decoration: none;
}

.onboarding-shell-exit:hover {
    color: #145AAA;
    text-decoration: underline;
}

.onboarding-shell-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    line-height: 1.1;
    color: #17263f;
}

.onboarding-shell-copy {
    margin: 0;
    max-width: 680px;
    color: #55657a;
    font-size: 0.98rem;
}

.onboarding-progress {
    display: grid;
    gap: 0.55rem;
}

.onboarding-status {
    font-size: 0.92rem;
    font-weight: 700;
    color: #4d5d74;
}

.onboarding-progress-track {
    height: 10px;
    width: 100%;
    background: #ebf0f6;
    border-radius: 999px;
    overflow: hidden;
}

.onboarding-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #145AAA 0%, #2d6cdf 100%);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.onboarding-steps {
    display: grid;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.onboarding-step {
    display: none;
}

.onboarding-step-card {
    border: 1px solid #dfe6f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.2rem 1.25rem;
    min-height: clamp(360px, 50vh, 500px);
}

.onboarding-step.active {
    display: flex;
    flex-direction: column;
}

.onboarding-step-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.15;
    color: #17263f;
}

.onboarding-step-kicker {
    margin: 0.4rem 0 0;
    color: #5c6d84;
    font-size: 0.95rem;
}

.onboarding-step-copy {
    margin-top: 0.85rem;
    flex: 1 1 auto;
}

.onboarding-copy-stack {
    display: grid;
    gap: 0.9rem;
}

.onboarding-copy-stack p {
    margin: 0;
    color: #3d4f66;
    font-size: 1rem;
}

.onboarding-hero-visual {
    margin-top: 1rem;
    min-height: 126px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 20% 30%, rgba(45, 108, 223, 0.16), transparent 34%),
        radial-gradient(circle at 80% 25%, rgba(20, 90, 170, 0.14), transparent 28%),
        linear-gradient(135deg, #f3f8ff 0%, #ebf3ff 55%, #f7fbff 100%);
    border: 1px solid #d9e5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem;
}

.onboarding-workflow {
    display: grid;
    grid-template-columns:
        minmax(7.4rem, 1fr) 1.85rem
        minmax(7.4rem, 1fr) 1.85rem
        minmax(7.4rem, 1fr) 1.85rem
        minmax(7.4rem, 1fr);
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 45rem;
    margin: 0 auto;
}

.onboarding-workflow-step {
    min-width: 0;
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cfe0f7;
    box-shadow: 0 10px 24px rgba(20, 90, 170, 0.1);
    color: #173b69;
    text-align: center;
    display: grid;
    gap: 0.18rem;
}

.onboarding-workflow-label {
    color: #173b69;
    font-weight: 800;
}

.onboarding-workflow-detail {
    color: #607086;
    font-size: 0.82rem;
    font-weight: 700;
}

.onboarding-workflow-arrow {
    position: relative;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid #b9cdec;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(20, 90, 170, 0.1);
}

.onboarding-workflow-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.46rem;
    height: 0.46rem;
    border-top: 0.16rem solid #145AAA;
    border-right: 0.16rem solid #145AAA;
    transform: translate(-60%, -50%) rotate(45deg);
}

.onboarding-page-link:not(.btn) {
    padding: 0 0.12rem;
    border-radius: 0.2rem;
    background: rgba(232, 241, 255, 0.75);
    color: #145AAA;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.11em;
    text-underline-offset: 0.16em;
}

.onboarding-page-link:not(.btn):hover,
.onboarding-page-link:not(.btn):focus-visible {
    background: #ffffff;
    color: #0f4d91;
    text-decoration-thickness: 0.14em;
}

.onboarding-page-link:focus-visible {
    outline: 3px solid rgba(45, 108, 223, 0.26);
    outline-offset: 2px;
}

.onboarding-upload-panel {
    display: grid;
    gap: 0.9rem;
}

.onboarding-upload-status {
    display: flex;
    justify-content: flex-start;
}

.onboarding-upload-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #e8f7ef;
    color: #116b40;
    font-weight: 700;
}

.onboarding-upload-pill-muted {
    background: #eef2f7;
    color: #566679;
}

.onboarding-upload-button {
    justify-self: flex-start;
}

.onboarding-upload-copy {
    margin: 0;
    color: #56687d;
}

.onboarding-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.onboarding-metric-card {
    background: #ffffff;
    border: 1px solid #dfe6f0;
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.3rem;
}

.onboarding-metric-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #17263f;
}

.onboarding-metric-label {
    color: #5c6d84;
    font-size: 0.92rem;
}

.onboarding-inline-action {
    margin-top: 0.8rem;
    align-self: flex-start;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.onboarding-actions-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Forms */
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form div,
.profile-form div,
.password-form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.inline-label {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: normal;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #a7b6c2;
    cursor: not-allowed;
}

/* P11 Form */
.p11-content fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.p11-content legend {
    font-weight: bold;
    font-size: 120%;
    padding: 0 0.5rem;
}

/* Education and Work sections */
.education-section,
.work-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.education-record,
.work-experience,
.language-skill,
.publication,
.child,
.school-training-record {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafafa;
}

/* Vacancies */
.vacancies-list {
    display: grid;
    gap: 1rem;
}

.vacancy-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vacancy-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.vacancy-actions {
    margin-top: 1rem;
}

.plan-banner {
    background: #fff7e6;
    border: 1px solid #f5d7a3;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.paused-matching-notice {
    display: grid;
    gap: 0.65rem;
    align-items: start;
    background: #fff7e6;
    border: 1px solid #f1d09a;
    border-radius: 8px;
    color: #233246;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
}

.paused-matching-notice p {
    margin: 0;
}

.paused-matching-notice .btn {
    justify-self: start;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.checkbox-row input {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

.checkbox-row .inline-label {
    line-height: 1.35;
    position: static;
    margin: 0;
}

.preferences-grade-grid {
    align-items: end;
    margin-bottom: 1.15rem;
}

.grade-preference-add-field {
    align-self: end;
    display: flex;
    align-items: flex-end;
}

.preferences-consultancy-field {
    margin-top: 1.15rem;
}

.preferences-expiring-field {
    margin-top: 1.15rem;
}

.preferences-notification-mode-field {
    margin-bottom: 0;
}

.section-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.section-card legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.section-disclaimer {
    color: #5a6b7a;
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    width: 100%;
}

.org-tab-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.org-tab-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 0.5rem;
}

.org-tab-entry {
    border: 1px solid #d7d7d7;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    cursor: pointer;
    color: #1f2a35;
    justify-content: space-between;
    position: relative;
}

.org-tab-entry.active {
    background: #ffffff;
    border-color: #2d6cdf;
    color: #2d6cdf;
}

.org-tab-name {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: inherit;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
    white-space: nowrap;
}

.org-tab-name:hover,
.org-tab-name:focus,
.org-tab-name:active {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.org-tab-name:focus-visible {
    outline: 2px solid #2d6cdf;
    outline-offset: 2px;
    border-radius: 4px;
}

.org-tab-entry:hover {
    background: #f0f2f5;
}

.tab-toggle {
    margin: 0;
    justify-self: end;
}

.org-tab-entry label {
    margin: 0;
}

.org-tab-tooltip {
    position: absolute;
    left: 0.75rem;
    top: 100%;
    margin-top: 0.35rem;
    background: #1f2a35;
    color: #ffffff;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.org-tab-name:hover + .org-tab-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.org-tab-panel {
    display: none;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    min-height: 390px;
    overflow-y: visible;
}

.org-tab-panel.active {
    display: block;
}

.tab-body {
    columns: 2;
    column-gap: 1.5rem;
}

.tab-body .checkbox-row {
    break-inside: avoid;
}

.org-choice-value {
    display: none;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.preferences-location-followup {
    margin-top: 0.55rem;
}

.form-label {
    font-weight: 600;
    margin: 1.1rem 0 0.5rem 0;
}

.p11-callout {
    background: #eef3ff;
    border: 1px solid #c7d6ff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.p11-callout-strong {
    background: #eef3ff;
}

.p11-callout-soft {
    background: #f6f8fb;
    border-color: #dce3ee;
}

.p11-callout a {
    color: #2d6cdf;
    font-weight: 700;
    text-decoration: none;
}

.p11-callout-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f6f82;
    margin-bottom: 0.35rem;
}

.p11-callout-copy {
    color: #5f6f82;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.p11-status-banner {
    margin: 0 0 1rem;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid #f2c6cf;
    background: #fff2f6;
    box-shadow: 0 1px 2px rgba(102, 16, 44, 0.04);
}

.p11-status-banner-warning {
    border-color: #f2d58c;
    background: #fff8e6;
    box-shadow: 0 1px 2px rgba(112, 73, 0, 0.05);
}

.p11-status-title {
    margin: 0 0 0.45rem;
    color: #7b1f3f;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.p11-status-copy {
    margin: 0 0 0.5rem;
    color: #5f2136;
    font-size: 1rem;
    line-height: 1.42;
}

.p11-status-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style-position: inside;
    color: #5f2136;
    line-height: 1.35;
}

.p11-status-list li {
    margin: 0.22rem 0;
}

.p11-status-banner-warning .p11-status-title {
    color: #7a5200;
}

.p11-status-banner-warning .p11-status-copy,
.p11-status-banner-warning .p11-status-list {
    color: #5f4100;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4200;
    padding: 1.5rem;
    overflow: hidden;
}

.modal-overlay.active {
    display: flex;
}

.sensitive-data-warning {
    margin: 0.28rem 0 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4a5260;
}

.sensitive-data-warning-copy {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 500;
}

.sensitive-data-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #145aaa;
    text-decoration: underline;
    font: inherit;
    width: auto;
}

.sensitive-data-link:hover {
    background: transparent;
    color: #0e437e;
}

.sensitive-data-modal-content {
    position: relative;
    max-width: 600px;
}

.gist-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(4.85rem + 1.2rem);
    z-index: 4300;
    overflow-y: auto;
}

.un-salary-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(4.85rem + 1.4rem);
    z-index: 4300;
    overflow-y: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 640px;
    width: min(640px, 100%);
    min-width: 0;
    max-height: calc(100dvh - 3rem);
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content > * {
    max-width: 100%;
    min-width: 0;
}

.un-salary-modal-overlay .modal-content {
    max-width: 760px;
    width: min(760px, 100%);
    max-height: calc(100vh - 4.85rem - 1.8rem);
    overflow-y: auto;
}

.modal-content .modal-body {
    margin-top: 0.6rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.negative-match-confirmation-content {
    max-width: 600px;
}

.negative-match-confirmation-details {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid #d99a22;
    background: #fff8e8;
    color: #25354a;
    overflow-wrap: anywhere;
}

.negative-match-confirmation-details p {
    margin: 0.35rem 0;
}

.application-start-confirmation {
    width: min(680px, 100%);
    margin: 1.5rem auto;
    padding: 1.5rem;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.application-start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cv-pre-text {
    margin-top: 0.75rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 100%;
    min-width: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), #ffffff 45%);
}

.modal-actions .btn,
.modal-actions button,
.modal-actions a {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.modal-content input:not([type="checkbox"]):not([type="radio"]),
.modal-content select,
.modal-content textarea {
    max-width: 100%;
    min-width: 0;
}

.modal-content pre,
.modal-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.modal-content img,
.modal-content svg,
.modal-content canvas {
    max-width: 100%;
}

.modal-content > h2:first-of-type,
.modal-content > h3:first-of-type {
    padding-right: 2.4rem;
    overflow-wrap: anywhere;
}

#autosave-notifications {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.autosave-notification {
    color: #ffffff;
    padding: 0.72rem 0.9rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.18);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.btn-secondary {
    background: #f0f2f5;
    border: 1px solid #d7d7d7;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #2c3e50;
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0;
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropzone {
    border: 2px dashed #c7d6ff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    color: #2d6cdf;
    background: #f7f9ff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dropzone.is-dragging {
    background: #e9efff;
    border-color: #2d6cdf;
}

.vacancies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 0.95rem;
}

.listing-surface {
    background: #ffffff;
    border: 1px solid #dfe6f0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
    margin-top: 0.95rem;
    overflow: hidden;
}

.vacancy-card-surface,
.application-card-surface {
    max-width: 100%;
    overflow: visible;
    padding: 0;
}

.vacancy-notebook {
    gap: 1rem;
}

.vacancy-notebook-header {
    padding: 0.1rem 0.15rem 0;
}

.vacancy-tabs {
    border-bottom: 1px solid #d9e5f2;
    padding-bottom: 0.75rem;
}

.vacancy-tab {
    gap: 0.5rem;
}

.vacancy-tab-count {
    align-items: center;
    background: rgba(29, 43, 79, 0.1);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.15rem 0.45rem;
}

.vacancy-tab.active .vacancy-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.vacancy-card-grid,
.application-card-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    max-width: 100%;
    overflow-x: clip;
}

.vacancy-match-card,
.application-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe6f2;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(29, 43, 79, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    min-height: 0;
    min-width: 0;
    padding: 0.95rem;
    position: relative;
    width: 100%;
}

@media (min-width: 981px) {
    .vacancy-card-grid,
    .application-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    }
}

@media (min-width: 1500px) {
    .vacancy-card-grid,
    .application-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    }
}

@media (max-width: 640px) {
    .vacancy-card-grid,
    .application-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Hiring Pulse location map. Bubble radii are calculated in screen pixels by
   the renderer so visual area stays comparable while the map is zoomed. */
.hiring-pulse-map {
    margin: 1.25rem 0 1.5rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.hiring-pulse-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5.25rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e1e8f0;
}

.hiring-pulse-map-heading {
    min-width: 0;
}

.hiring-pulse-map-title {
    margin: 0;
    color: #1d2d4a;
    font-size: 1.15rem;
    line-height: 1.25;
}

.hiring-pulse-map-copy {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.35;
}

.hiring-pulse-mode-control {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.2rem;
    border: 1px solid #c7d3e1;
    border-radius: 6px;
    background: #eef3f8;
}

.hiring-pulse-mode-button {
    min-height: 2rem;
    border: 0;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    background: transparent;
    color: #526276;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.hiring-pulse-mode-button[aria-pressed="true"] {
    background: #ffffff;
    color: #123e78;
    box-shadow: 0 1px 3px rgba(20, 53, 90, 0.18);
}

.hiring-pulse-mode-button:focus-visible,
.hiring-pulse-map-control:focus-visible,
.hiring-pulse-country:focus-visible,
.hiring-pulse-station-group:focus-visible {
    outline: 3px solid rgba(20, 90, 170, 0.4);
    outline-offset: 2px;
}

.hiring-pulse-map-stage {
    position: relative;
    min-height: 30rem;
    padding: 0.85rem 1rem 1rem;
    overflow: hidden;
}

.hiring-pulse-map-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 27rem;
    cursor: grab;
    touch-action: none;
}

.hiring-pulse-map-svg:active {
    cursor: grabbing;
}

.hiring-pulse-map-controls {
    position: absolute;
    z-index: 2;
    top: 1.7rem;
    right: 1.8rem;
    display: grid;
    gap: 0.3rem;
}

.hiring-pulse-map-control {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #b9c9da;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: #123e78;
    box-shadow: 0 2px 7px rgba(26, 51, 83, 0.16);
    cursor: pointer;
}

.hiring-pulse-map-control svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.3;
}

.hiring-pulse-map-control:disabled {
    color: #8a9aab;
    cursor: default;
    opacity: 0.58;
}

.hiring-pulse-map-sphere {
    fill: #f7fbff;
    stroke: #c9d7e5;
    stroke-width: 1;
}

.hiring-pulse-map-graticule {
    fill: none;
    stroke: #dce8f4;
    stroke-width: 0.8;
    stroke-dasharray: 3 5;
}

.hiring-pulse-country {
    fill: #dce5ea;
    stroke: #ffffff;
    stroke-width: 0.65;
    cursor: help;
    transition: opacity 120ms ease;
}

.hiring-pulse-country:hover,
.hiring-pulse-country:focus {
    opacity: 0.72;
    outline: none;
}

.hiring-pulse-country-muted { fill: #dce5ea; }
.hiring-pulse-country-low { fill: #c6ddf7; }
.hiring-pulse-country-medium { fill: #76afe9; }
.hiring-pulse-country-high { fill: #145aaa; }

.hiring-pulse-station-circle {
    fill: rgba(31, 157, 139, 0.46);
    stroke: #0d3f7d;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 120ms ease, stroke-width 120ms ease;
}

.hiring-pulse-station-circle:hover,
.hiring-pulse-station-group:focus .hiring-pulse-station-circle {
    fill: rgba(217, 144, 0, 0.62);
    stroke-width: 2.4;
}

.hiring-pulse-station-label {
    fill: #39506a;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
}

.hiring-pulse-station-label-visible { opacity: 1; }

.hiring-pulse-tooltip {
    position: absolute;
    z-index: 3;
    max-width: 15.5rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #b4c5d8;
    border-radius: 6px;
    background: #162f50;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(10, 31, 55, 0.22);
    font-size: 0.8rem;
    line-height: 1.35;
    pointer-events: none;
}

.hiring-pulse-tooltip[hidden] { display: none; }
.hiring-pulse-tooltip strong { display: block; margin-bottom: 0.2rem; }
.hiring-pulse-tooltip-detail { color: #cfe1f5; }

.hiring-pulse-map-status {
    margin: 0.05rem 1rem 0;
    color: #526276;
    font-size: 0.86rem;
    line-height: 1.35;
}

.hiring-pulse-buckets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.hiring-pulse-bucket {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d9e2ec;
    border-top: 3px solid #c94b4b;
    border-radius: 6px;
    background: #ffffff;
}

.hiring-pulse-bucket-multiple { border-top-color: #1f9d8b; }
.hiring-pulse-bucket-unspecified { border-top-color: #d99000; }

.hiring-pulse-bucket-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

.hiring-pulse-bucket h3,
.hiring-pulse-bucket p { margin: 0; }

.hiring-pulse-bucket h3 {
    color: #22324a;
    font-size: 0.95rem;
}

.hiring-pulse-bucket span {
    color: #123e78;
    font-size: 1.25rem;
    font-weight: 800;
}

.hiring-pulse-bucket p {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.hiring-pulse-map-compact {
    margin: 0.8rem 0 0;
}

.hiring-pulse-map-compact .hiring-pulse-map-header {
    min-height: 0;
    padding: 0.7rem 0.8rem;
}

.hiring-pulse-map-compact .hiring-pulse-map-title { font-size: 1rem; }
.hiring-pulse-map-compact .hiring-pulse-map-copy { font-size: 0.82rem; }

.hiring-pulse-map-compact .hiring-pulse-map-stage {
    min-height: 13rem;
    padding: 0.45rem;
}

.hiring-pulse-map-compact .hiring-pulse-map-svg { min-height: 12rem; }

.hiring-pulse-samples-target { cursor: pointer; }
html:has([data-hiring-pulse-map]) { scrollbar-gutter: stable; }
.vacancy-samples-open { overflow: hidden; }
.vacancy-samples-dialog { position: fixed; inset: 0; z-index: 4200; display: grid; place-items: center; padding: 1rem; background: rgba(14, 23, 43, 0.62); }
.vacancy-samples-dialog[hidden] { display: none; }
.vacancy-samples-panel { width: min(960px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; overscroll-behavior: contain; padding: 1rem; border: 1px solid #cbd8e5; border-radius: 8px; background: #fff; box-shadow: 0 16px 46px rgba(14, 35, 60, 0.28); }
.vacancy-samples-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e1e8f0; padding-bottom: 0.8rem; }
.vacancy-samples-header h2 { margin: 0; color: #1d2d4a; font-size: 1.2rem; line-height: 1.3; }
.vacancy-samples-criterion, .vacancy-samples-intro { margin: 0.35rem 0 0; color: #526276; font-size: 0.9rem; }
.vacancy-samples-close { min-width: 2.75rem; min-height: 2.25rem; border: 1px solid #aebfd1; border-radius: 6px; background: #fff; color: #1d4f7a; font-weight: 700; cursor: pointer; }
.vacancy-samples-close:focus-visible, .vacancy-sample:focus-visible { outline: 3px solid rgba(20, 90, 170, 0.4); outline-offset: 2px; }
.vacancy-samples-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; margin-top: 12px; }
.vacancy-sample-employer { min-width: 0; padding: 8px 10px; border: 1px solid #d9e2ec; border-radius: 6px; background: #fbfdff; }
.vacancy-sample { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 5px 0; }
.vacancy-sample + .vacancy-sample { border-top: 1px solid #d9e2ec; }
.vacancy-sample-organization, .vacancy-sample-deadline { margin: 0; color: #526276; font-size: 0.8rem; line-height: 1.35; }
.vacancy-sample-organization { overflow-wrap: anywhere; }
.vacancy-sample-deadline { white-space: nowrap; }
.vacancy-sample h3 { flex: 1 1 200px; margin: 0; color: #1d2d4a; font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 700px) { .vacancy-samples-list { grid-template-columns: minmax(0, 1fr); } }
.vacancy-samples-empty { margin: 0; padding: 1rem; color: #526276; background: #f4f7fa; }

@media (max-width: 760px) {
    .hiring-pulse-map-header {
        min-height: 0;
        flex-direction: column;
        gap: 0.65rem;
    }

    .hiring-pulse-mode-control { width: 100%; }
    .hiring-pulse-mode-button { flex: 1 1 50%; }

    .hiring-pulse-map-stage {
        min-height: 16rem;
        padding: 0.6rem;
    }

    .hiring-pulse-map-svg { min-height: 15rem; }

    .hiring-pulse-map-controls {
        top: 1.1rem;
        right: 1.1rem;
    }

    .hiring-pulse-buckets { grid-template-columns: 1fr; }
}

/* Ambassador tools are hidden by default and enabled through the server-side feature mode. */
.ambassador-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
    color: #17223b;
}

.ambassador-page-heading {
    margin-bottom: 1.25rem;
}

.ambassador-page-heading h1,
.ambassador-section-heading h2,
.ambassador-panel h2 {
    margin-bottom: 0.35rem;
}

.ambassador-competition-page .ambassador-page-heading h1 {
    display: block;
}

.ambassador-page-heading .ambassador-confidentiality-notice {
    margin-top: 0.55rem;
    color: #8b2635;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ambassador-page-heading p,
.ambassador-section-heading p {
    margin: 0;
    color: #586981;
}

.ambassador-review-banner {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid #d99a2b;
    border-radius: 6px;
    background: #fff7df;
    color: #6c4310;
}

.ambassador-review-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #cad5e5;
}

.ambassador-review-nav a {
    color: #145aaa;
    font-weight: 650;
    text-decoration: none;
}

.ambassador-review-nav a.is-active,
.ambassador-review-nav a:hover {
    color: #0f3f79;
    text-decoration: underline;
}

.ambassador-review-section {
    margin: 0 0 2.25rem;
    scroll-margin-top: 6rem;
}

.ambassador-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.ambassador-metric {
    min-width: 0;
    padding: 0.85rem;
    border-left: 4px solid #145aaa;
    background: #f4f7fb;
}

.ambassador-metric-label,
.ambassador-metric-detail,
.ambassador-muted,
.ambassador-footnote {
    display: block;
    color: #617087;
    font-size: 0.9rem;
}

.ambassador-metric-label {
    min-height: 2.7rem;
}

.ambassador-metric-value {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.ambassador-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.6rem;
    margin: 1rem 0 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid #d8e0eb;
    border-bottom: 1px solid #d8e0eb;
}

.ambassador-summary-line > div {
    display: flex;
    gap: 0.45rem;
}

.ambassador-token {
    color: #0f6a5b;
    font-weight: 700;
}

.ambassador-panel,
.ambassador-match-card,
.ambassador-support-row {
    min-width: 0;
    margin-bottom: 0.8rem;
    padding: 1rem;
    border: 1px solid #cad5e5;
    border-radius: 8px;
    background: #fff;
    overflow-wrap: anywhere;
}

.ambassador-review-list,
.ambassador-support-list,
.ambassador-match-list {
    display: grid;
    gap: 0.75rem;
}

.ambassador-review-list > div,
.ambassador-list-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e7ef;
}

.ambassador-review-list > div:last-child,
.ambassador-list-row:last-child {
    border-bottom: 0;
}

.ambassador-support-row > div:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.3rem 1rem;
}

.ambassador-status {
    display: inline-block;
    margin: 0.35rem 0.35rem 0.35rem 0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e7edf5;
    color: #283a52;
    font-size: 0.85rem;
    font-weight: 700;
}

.ambassador-status-success {
    background: #dcefe8;
    color: #125849;
}

.ambassador-status-warning {
    background: #fff0cf;
    color: #704811;
}

.ambassador-network-list {
    border-top: 1px solid #e2e7ef;
}

.ambassador-network-row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, auto) minmax(8rem, auto);
    align-items: center;
    gap: 0.5rem 1.25rem;
    min-height: 3.35rem;
    border-bottom: 1px solid #e2e7ef;
}

.ambassador-network-identity {
    position: relative;
    min-width: 0;
    padding-inline-start: min(
        calc(var(--ambassador-network-depth, 0) * 1.5rem),
        7.5rem
    );
}

.ambassador-network-row:not([data-level="1"]) .ambassador-network-identity::before {
    position: absolute;
    top: 0.65rem;
    left: max(
        calc(var(--ambassador-network-depth, 0) * 1.5rem - 1rem),
        0
    );
    width: 0.65rem;
    border-top: 1px solid #aebbd0;
    content: "";
}

.ambassador-network-row:last-child {
    border-bottom: 0;
}

.ambassador-network-email {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ambassador-network-children {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
}

.ambassador-network-date {
    white-space: nowrap;
}

.ambassador-network-row .ambassador-status {
    justify-self: end;
    margin-right: 0;
    white-space: nowrap;
}

.ambassador-counts,
.ambassador-match-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.65rem 0;
    font-weight: 650;
}

.ambassador-blocker {
    margin: 0.35rem 0;
    color: #a33b31;
}

.ambassador-preferences {
    margin: 0.75rem 0;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #e2e7ef;
    border-bottom: 1px solid #e2e7ef;
}

.ambassador-preferences summary {
    color: #145aaa;
    cursor: pointer;
    font-weight: 700;
}

.ambassador-preferences p {
    margin: 0.45rem 0 0;
    color: #44546a;
    font-size: 0.92rem;
}

.ambassador-match-card h3 {
    margin: 0.55rem 0 0.25rem;
    font-size: 1.2rem;
}

.ambassador-score {
    color: #234c7b;
}

.ambassador-deadline {
    color: #5e4a25;
}

.ambassador-scope-box {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid #2d8775;
    background: #f0f7f5;
}

.ambassador-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1rem 0;
    line-height: 1.45;
}

.ambassador-consent-check input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.ambassador-agreement-preview {
    max-width: 54rem;
    margin: 1rem auto;
    padding: 1.5rem;
    border: 1px solid #cad5e5;
    border-radius: 8px;
    background: #fff;
}

.ambassador-agreement-actions {
    max-width: 54rem;
    margin: 1rem auto;
}

.ambassador-back-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.ambassador-pager {
    display: grid;
    grid-template-columns: minmax(6rem, auto) 1fr minmax(6rem, auto);
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.ambassador-pager > :first-child {
    justify-self: start;
}

.ambassador-pager > :last-child {
    justify-self: end;
}

.ambassador-competition-section {
    min-width: 0;
}

.ambassador-competition-panel {
    margin-bottom: 0;
}

.ambassador-competition-chart {
    min-width: 0;
}

.ambassador-competition-chart-frame {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 26rem;
}

.ambassador-competition-chart-host,
.ambassador-competition-chart-host canvas {
    width: 100% !important;
    height: 100% !important;
}

.ambassador-competition-zero-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ambassador-competition-zero-legend:empty {
    display: none;
}

.ambassador-competition-zero-legend-item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.4rem;
    color: #4f6076;
    font-size: 0.9rem;
    font-weight: 600;
}

.ambassador-competition-zero-legend-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
}

.ambassador-chart-empty {
    color: #617087;
}

@media (max-width: 640px) {
    .ambassador-page {
        padding-top: 1rem;
    }

    .ambassador-metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ambassador-panel,
    .ambassador-match-card,
    .ambassador-support-row,
    .ambassador-agreement-preview {
        padding: 0.85rem;
    }

    .ambassador-metric-label {
        min-height: 2.7rem;
    }

    .ambassador-competition-chart-frame {
        height: 20rem;
    }

    .ambassador-competition-legend {
        gap: 0.35rem 0.5rem;
    }

    .ambassador-network-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.2rem 0.75rem;
        padding: 0.65rem 0;
    }

    .ambassador-network-identity {
        padding-inline-start: min(
            calc(var(--ambassador-network-depth, 0) * 1rem),
            4rem
        );
    }

    .ambassador-network-row:not([data-level="1"]) .ambassador-network-identity::before {
        left: max(
            calc(var(--ambassador-network-depth, 0) * 1rem - 0.7rem),
            0
        );
        width: 0.45rem;
    }

    .ambassador-network-date {
        grid-column: 1;
        grid-row: 2;
        white-space: normal;
    }

    .ambassador-network-row .ambassador-status {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 420px) {
    .ambassador-metric-grid {
        grid-template-columns: 1fr;
    }
}

.vacancy-card-heading,
.application-title-cell {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.vacancy-card-heading .vacancy-title-actions {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
}

.vacancy-match-card .vacancy-title-button {
    padding-right: 2.1rem;
    text-align: left;
}

.vacancy-match-card .vacancy-title-button,
.application-title-cell .vacancy-title {
    font-size: 1.02rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.vacancy-card-org,
.application-card-org {
    color: #5f6f82;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.vacancy-card-location,
.application-card-location {
    color: #415369;
    font-size: 0.92rem;
    line-height: 1.4;
    min-width: 0;
}

.duty-station {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-width: 0;
}

.duty-station-pin,
.duty-station-flag {
    flex: 0 0 auto;
    line-height: 1;
}

.duty-station-link {
    color: #1d2b4f;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
    text-decoration-color: rgba(20, 90, 170, 0.32);
    text-underline-offset: 0.16em;
}

.duty-station-link:hover,
.duty-station-link:focus {
    color: #145aaa;
    text-decoration-color: currentColor;
}

.duty-station-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vacancy-card-rec,
.application-card-rec {
    display: grid;
    gap: 0.45rem;
}

.application-card-rec .vacancy-recommendation {
    width: 100%;
}

.vacancy-card-salary {
    color: #415369;
    font-size: 0.9rem;
    min-width: 0;
}

.vacancy-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    min-width: 0;
}

.vacancy-card-actions > *,
.vacancy-card-actions .btn,
.vacancy-card-actions .why-button {
    min-width: 0;
}

.vacancy-card-actions .btn,
.vacancy-card-actions .inline-action-button {
    flex: 1 1 100%;
    justify-content: center;
    margin-left: 0;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    white-space: normal;
}

.vacancy-card-grid-empty {
    background: #f8fbff;
    border: 1px dashed #c7d8ea;
    border-radius: 16px;
    padding: 1rem;
}

.vacancy-tab-empty {
    color: #5a6b7a;
    margin: 0;
}

.vacancy-tab-panel.cover-letter-active-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.application-card {
    cursor: pointer;
    min-height: 0;
}

.application-card:hover,
.application-card:focus-within {
    border-color: #b8cee5;
    box-shadow: 0 16px 34px rgba(20, 90, 170, 0.13);
}

.vacancies-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin: 0 0 1rem;
}

.vacancies-header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vacancies-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vacancies-hidden-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.vacancies-hidden-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-weight: 600;
    color: #415369;
    font-size: 0.92rem;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.vacancies-hidden-toggle input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.vacancies-hidden-label {
    display: inline-block;
    line-height: 1.1;
}

.vacancies-hidden-summary {
    font-size: 0.88rem;
    font-weight: 700;
    color: #5a6b7a;
}

.vacancies-header .btn {
    white-space: nowrap;
}

.career-priority-controls {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1rem;
}

.career-priority-status {
    color: #475569;
    margin-bottom: 1rem;
}

.career-priority-loading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #475569;
    font-weight: 700;
}

.career-priority-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid #dbe6f3;
    border-top-color: #145aaa;
    border-radius: 999px;
    animation: career-priority-spin 0.9s linear infinite;
}

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

.career-priority-result h4,
.career-priority-result h5 {
    margin: 1rem 0 0.4rem;
}

.career-priority-item {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
}

.career-priority-meta,
.career-priority-guidance,
.career-priority-disclaimer {
    color: #64748b;
}

.career-priority-needs {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.vacancies-page-copy {
    max-width: 46rem;
}

.empty-state {
    margin-top: 1.5rem;
}

.empty-state-panel {
    background: linear-gradient(135deg, #f7fbff 0%, #eef4ff 55%, #ffffff 100%);
    border: 1px solid #d9e5fb;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 48px rgba(20, 90, 170, 0.08);
    max-width: 920px;
    margin-inline: auto;
}

.empty-state-panel-warning {
    background: linear-gradient(135deg, #fff7fa 0%, #fff0f6 55%, #ffffff 100%);
    border-color: #f4c5d8;
    box-shadow: 0 18px 48px rgba(176, 39, 97, 0.11);
}

.empty-state-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(20, 90, 170, 0.10);
    color: #145aaa;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.8rem;
    text-transform: uppercase;
}

.empty-state-panel h2 {
    margin: 1rem 0 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.1;
    color: #1d2b4f;
    max-width: 24ch;
    text-wrap: balance;
}

.empty-state-lead {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #40526a;
    max-width: 52rem;
}

.empty-state-copy {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.85rem;
    color: #5a6b7a;
    max-width: 54rem;
}

.empty-state-copy p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

@media (max-width: 720px) {
    .vacancies-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .vacancies-header-controls {
        width: 100%;
        align-items: flex-start;
    }

    .vacancies-header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .empty-state-panel {
        padding: 1.4rem;
        border-radius: 18px;
    }

    .empty-state-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.vacancies-table th,
.vacancies-table td {
    border: 1px solid #e1e5ea;
    padding: 0.75rem 0.8rem;
    vertical-align: top;
}

.vacancies-table th {
    background: #f8f9fb;
    font-weight: 600;
    text-align: left;
}

.vacancies-table tbody tr {
    transition: background-color 0.16s ease;
}

.vacancies-table tbody tr:hover {
    background: #f7fbff;
}

.vacancy-title {
    font-weight: 600;
    color: #1d2b4f;
    text-decoration: underline;
    text-decoration-color: rgba(20, 90, 170, 0.28);
    text-underline-offset: 0.14em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.vacancy-title:hover,
.vacancy-title:focus {
    color: #145AAA;
    text-decoration-color: currentColor;
}

.application-title-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

.application-row {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.application-row:hover,
.application-row:focus-within {
    background: #f7fbff;
}

.application-row[data-row-href] {
    cursor: pointer;
}

.applications-page-head {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.applications-page-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.1;
    color: #1d2b4f;
}

.applications-page-copy {
    margin: 0;
    color: #5f6f82;
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 50rem;
}

.application-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.application-filter-link {
    min-height: 2.5rem;
    text-decoration: none;
}

.application-filter-link:hover,
.application-filter-link:focus {
    text-decoration: none;
}

.application-filter-link-active,
.application-filter-link.cover-letter-tab.active {
    background: #1f7a8c;
    border-color: #1f7a8c;
    color: #fff;
}

.application-filter-link-active:hover,
.application-filter-link-active:focus {
    background: #1f7a8c;
    border-color: #1f7a8c;
    color: #fff;
}

.vacancy-recommendation {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    border: 1px solid #1d2b4f;
    color: #1d2b4f;
    background: #fff;
    min-width: 0;
    text-align: center;
    white-space: normal;
    flex: 1;
    justify-content: center;
}

.vacancy-recommendation.rec-apply,
.vacancy-recommendation.rec-maybe,
.vacancy-recommendation.rec-other {
    background: #fff;
    border-color: #1d2b4f;
    color: #1d2b4f;
}

.help-apply-button {
    margin-top: 0.65rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.open-application-button {
    background-color: #2f9d63;
    color: #fff;
}

.open-application-button:hover {
    background-color: #248052;
}

.application-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.application-title {
    margin: 0;
}

.application-announcement-row {
    margin: 0 0 0.85rem;
}

.application-announcement-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.application-gist-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    color: #145aaa;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(20, 90, 170, 0.32);
    text-underline-offset: 0.16em;
    cursor: pointer;
}

.application-gist-link:hover,
.application-gist-link:focus {
    background: none;
    color: #145aaa;
    text-decoration-color: currentColor;
}

.application-employer-disclaimer {
    color: #3e4c5c;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.42;
    margin: 0.45rem 0 0;
    max-width: 72rem;
    text-transform: uppercase;
}

.application-announcement-row .why-button {
    min-height: 2.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
}

.application-announcement-row .original-announcement-link {
    font-weight: 700;
}

.application-title-button,
.vacancy-title-button {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #1d2b4f;
    text-align: left;
    cursor: pointer;
}

.application-title-button:hover,
.vacancy-title-button:hover,
.application-title-button:focus,
.vacancy-title-button:focus {
    text-decoration: none;
    background: none;
}

.vacancy-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem;
}

.vacancy-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-self: end;
}

.vacancy-hide-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.vacancy-hide-button {
    width: 1.8rem;
    height: 1.8rem;
    min-width: 1.8rem;
    min-height: 1.8rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #d2d9e4;
    background: #ffffff;
    color: #6a7787;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.vacancy-hide-button:hover,
.vacancy-hide-button:focus {
    border-color: #c0392b;
    color: #c0392b;
    background: #fff4f4;
}

.vacancy-hidden-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eef3ff;
    border: 1px solid #cfdcff;
    color: #145aaa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vacancy-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vacancy-title-button {
    display: block;
    width: 100%;
    min-width: 0;
}

.vacancy-link-row {
    margin-top: 0.5rem;
}

.external-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d6cdf;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

.application-status {
    margin: 0 0 1rem;
    color: #5a6b7a;
}

.application-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.9rem 0 1rem;
}

.application-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid #e6ebf2;
}

.status-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f7f9fc;
    border: 1px solid #e1e8f1;
}

.status-label {
    color: #5a6b7a;
    font-weight: 600;
}

.application-hero-card,
.application-section,
.vacancy-summary-card {
    background: #ffffff;
    border: 1px solid #dfe6f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.application-hero-card {
    margin-bottom: 1rem;
}

.application-summary-card {
    display: grid;
    gap: 0.9rem;
}

.application-section {
    margin-bottom: 1rem;
}

.cover-letter-input {
    min-height: 18rem;
}

.cover-letter-notebook {
    display: grid;
    gap: 0.95rem;
}

.cover-letter-notebook-header {
    display: grid;
    gap: 0.2rem;
}

.cover-letter-notebook-eyebrow {
    margin: 0;
    color: #5a6b7a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cover-letter-notebook-header h3 {
    margin: 0;
    color: #1d2b4f;
    font-size: 1.45rem;
}

.cover-letter-notebook-meta {
    margin: 0;
    color: #5a6b7a;
}

.cover-letter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-bottom: 0.15rem;
}

.cover-letter-tab {
    border: 1px solid #c7d8ea;
    border-radius: 999px;
    background: #f7fbff;
    color: #32506c;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cover-letter-tab:hover,
.cover-letter-tab:focus-visible {
    background: #eef5fc;
    border-color: #8fb3d9;
    color: #1d2b4f;
    outline: none;
}

.cover-letter-tab.active {
    background: #1f7a8c;
    border-color: #1f7a8c;
    color: #fff;
}

.application-filter-link-active {
    background: #1f7a8c;
    border-color: #1f7a8c;
    color: #fff;
}

.cover-letter-active-panel {
    background: #f8fbff;
    border: 1px solid #d9e5f2;
    border-radius: 14px;
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.cover-letter-active-label {
    margin: 0;
    color: #32506c;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cover-letter-active-state {
    margin: -0.3rem 0 0;
    color: #5a6b7a;
    font-size: 0.88rem;
    font-weight: 600;
}

.cover-letter-active-state.edited {
    color: #145aaa;
}

.cover-letter-version-text {
    white-space: pre-wrap;
    color: #1d2b4f;
    font-size: 1rem;
    line-height: 1.7;
}

.cover-letter-version-text.hidden,
.cover-letter-version-editor.hidden {
    display: none;
}

.cover-letter-version-editor {
    min-height: 18rem;
    width: 100%;
}

.cover-letter-version-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.cover-letter-version-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.cover-letter-version-feedback-block {
    background: #ffffff;
    border: 1px solid #e2eaf4;
    border-radius: 12px;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
}

.cover-letter-version-feedback-label {
    margin: 0;
    color: #32506c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cover-letter-version-feedback-text,
.cover-letter-version-feedback-meta {
    margin: 0;
}

.cover-letter-version-feedback-text {
    color: #1d2b4f;
    line-height: 1.55;
}

.cover-letter-version-feedback-meta {
    color: #6b7f94;
    font-size: 0.9rem;
}

.cover-letter-version-notes-block {
    background: #f4f8ee;
    border-left: 3px solid #6f8f55;
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 0.95rem;
}

.cover-letter-version-notes-block.hidden,
.cover-letter-version-notes-clarification.hidden {
    display: none;
}

.cover-letter-version-notes-label,
.cover-letter-version-notes-clarification {
    margin: 0;
}

.cover-letter-version-notes-label {
    color: #36522b;
    font-size: 0.82rem;
    font-weight: 700;
}

.cover-letter-version-notes-list {
    color: #274020;
    line-height: 1.5;
    margin: 0;
    padding-left: 1.2rem;
}

.cover-letter-version-notes-clarification {
    color: #536d48;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cover-letter-feedback-help {
    margin: 0.45rem 0 0.85rem;
    color: #5a6b7a;
    line-height: 1.55;
}

.cover-letter-feedback-notice {
    display: none;
    margin-top: 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0.8rem 0.95rem;
}

.cover-letter-feedback-notice.visible {
    display: block;
}

.cover-letter-feedback-notice[data-kind="error"] {
    background: #fff3f1;
    border: 1px solid #efc3bb;
    color: #8b3a2a;
}

.cover-letter-feedback-notice[data-kind="info"] {
    background: #eef7ff;
    border: 1px solid #cfe2f6;
    color: #32506c;
}

.application-save-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.vacancy-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.vacancy-meta-label {
    font-size: 0.85rem;
    color: #5a6b7a;
    margin-bottom: 0.2rem;
}

.vacancy-meta-value {
    margin: 0;
    font-weight: 600;
    color: #1d2b4f;
}

.cv-recommendations {
    color: #1d2b4f;
    font-size: 0.98rem;
    line-height: 1.6;
}

.cv-recommendations h1,
.cv-recommendations h2,
.cv-recommendations h3,
.cv-recommendations h4,
.cv-recommendations h5,
.cv-recommendations h6 {
    margin: 1.15rem 0 0.45rem;
    color: #20345e;
    line-height: 1.3;
}

.cv-recommendations h1:first-child,
.cv-recommendations h2:first-child,
.cv-recommendations h3:first-child,
.cv-recommendations h4:first-child,
.cv-recommendations h5:first-child,
.cv-recommendations h6:first-child {
    margin-top: 0;
}

.cv-recommendations ul,
.cv-recommendations ol {
    margin: 0.55rem 0 0.95rem 1.35rem;
    padding: 0;
}

.cv-recommendations li {
    margin-bottom: 0.45rem;
}

.cv-recommendations li > ul,
.cv-recommendations li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.55rem;
}

.cv-recommendations pre,
.cv-recommendations table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.cv-recommendations th,
.cv-recommendations td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gist-modal-content {
    max-width: 720px;
    max-height: calc(100vh - 4.85rem - 1.8rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gist-org-label {
    margin: 0.25rem 0 0.5rem;
    color: #5a6b7a;
    font-weight: 600;
}

.gist-announcement-button {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
}

.gist-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 4.85rem - 13rem);
    overflow-y: auto;
    margin-top: 0.75rem;
    padding-right: 0.35rem;
}

.gist-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef2f6;
}

.gist-item:last-child {
    border-bottom: none;
}

.gist-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6b7a;
    margin-bottom: 0.3rem;
}

.gist-value {
    color: #1d2b4f;
}

.vacancy-recommendation-block {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.application-status-stack {
    display: grid;
    gap: 0.35rem;
    width: min(100%, 11.5rem);
}

.application-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid #cfd8e4;
    color: #415369;
    background: #f7f9fc;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.application-status-note {
    color: #5a6b7a;
    font-size: 0.85rem;
    line-height: 1.3;
}

.application-status-stack .deadline-text {
    margin-top: 0;
}

.application-status-initial {
    border-color: #cfd8e4;
    background: #f7f9fc;
    color: #415369;
}

.application-status-progress {
    border-color: #c7dcff;
    background: #edf5ff;
    color: #145aaa;
}

.application-status-skipped {
    border-color: #d8dde5;
    background: #f3f5f7;
    color: #5a6b7a;
}

.application-status-applied {
    border-color: #bfe3cd;
    background: #e8f7ef;
    color: #1f8a4c;
}

.vacancy-justification {
    color: #4a5b6a;
}

.cv-recommendations p {
    margin: 0 0 0.8rem;
}

.generation-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 24, 40, 0.45);
    z-index: 4200;
    padding: 1rem;
    overflow: hidden;
}

.generation-modal.hidden {
    display: none;
}

.generation-card {
    background: #ffffff;
    border-radius: 16px;
    width: min(100%, 28rem);
    min-width: 0;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    overflow-wrap: anywhere;
}

.generation-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.generation-subtitle {
    margin: 0;
    color: #5a6b7a;
}

.modal-help-apply {
    margin-top: 0;
}

.why-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 999px;
    margin-left: 0.5rem;
    border: 1px solid #3498db;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.inline-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid #3498db;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.inline-action-button:hover,
.inline-action-button:focus {
    background: #2980b9;
    color: #fff;
    text-decoration: none;
}

.original-announcement-link {
    color: #145aaa;
    font-weight: 700;
    margin-left: 0;
    text-decoration: underline;
    text-decoration-color: rgba(20, 90, 170, 0.32);
    text-underline-offset: 0.16em;
}

.original-announcement-link:hover,
.original-announcement-link:focus,
.original-announcement-link:visited {
    color: #145aaa;
    text-decoration-color: currentColor;
}

@media (max-width: 980px) {
    body.nav-menu-open .nav-open-hide-on-mobile,
    body.nav-menu-open .intercom-lightweight-app,
    body.nav-menu-open .crisp-client,
    body.nav-menu-open #launcher,
    body.nav-menu-open iframe[src*="intercom" i],
    body.nav-menu-open iframe[src*="crisp" i],
    body.nav-menu-open iframe[title*="chat" i] {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .vacancies-table {
        border-collapse: separate;
        border-spacing: 0;
        margin-top: 0.75rem;
    }

    .vacancies-table thead {
        display: none;
    }

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

    .vacancies-table tr {
        background: #fff;
        border: 1px solid #e1e5ea;
        border-radius: 16px;
        margin-bottom: 0.95rem;
        padding: 0.75rem 0.85rem 0.9rem;
        box-shadow: 0 10px 24px rgba(18, 34, 64, 0.08);
    }

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

    .vacancies-table td + td {
        border-top: none;
    }

    .vacancies-table td[data-label="Recommendation"] .vacancy-recommendation {
        display: inline-flex;
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    .vacancy-cell-organisation,
    .vacancy-cell-location,
    .vacancy-cell-recommendation {
        margin-top: 0.55rem;
    }

    .vacancy-cell-organisation {
        font-size: 0.92rem;
        font-weight: 700;
        color: #415369;
    }

    .vacancy-cell-location {
        font-size: 0.9rem;
        color: #5f6f82;
    }

    .vacancies-table td.vacancy-cell-salary {
        display: none !important;
    }

    .vacancy-cell-recommendation > div {
        display: grid;
        gap: 0.55rem;
    }

    .vacancy-title-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .vacancy-title-button {
        font-size: 1rem;
        line-height: 1.35;
    }

    .vacancy-link-row {
        margin-top: 0.45rem;
    }

    .recommendation-row {
        align-items: center;
    }

    .deadline-text {
        width: 100%;
        justify-self: start;
        min-width: 0;
    }

    .help-apply-button {
        margin-top: 0;
    }
}

.applications-table .vacancy-title {
    display: inline-block;
    line-height: 1.35;
}

@media (max-width: 980px) {
    .applications-table {
        border-collapse: separate;
        border-spacing: 0;
        margin-top: 0.75rem;
    }

    .applications-table thead {
        display: none;
    }

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

    .applications-table tr {
        background: #fff;
        border: 1px solid #e1e5ea;
        border-radius: 12px;
        margin-bottom: 0.85rem;
        padding: 0.25rem 0;
        box-shadow: 0 1px 3px rgba(18, 34, 64, 0.06);
    }

    .applications-table td {
        border: none;
        padding: 0.5rem 0.75rem 0.6rem;
    }

    .applications-table td + td {
        border-top: 1px solid #eef1f6;
    }

    .applications-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: #5f6f82;
        margin-bottom: 0.2rem;
    }

    .applications-table td[data-label="Recommendation"] .vacancy-recommendation {
        display: inline-flex;
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    .applications-table td[data-label="Status"] {
        font-weight: 600;
        color: #2f3c52;
    }

    .applications-table td[data-label="Status"] .application-status-stack {
        margin-top: 0.1rem;
    }
}

.un-salary-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.un-salary-summary {
    line-height: 1.35;
}

.un-salary-inferred {
    color: #145aaa;
    font-weight: 700;
}

.un-salary-inferred-note {
    color: #5a6b7a;
}

.un-salary-button-row {
    margin-top: 0.65rem;
}

.un-salary-open {
    text-decoration: none;
}

.un-input-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    column-gap: 1.1rem;
    row-gap: 0.85rem;
    align-items: start;
}

.un-input-label {
    padding-top: 0.2rem;
    font-weight: 700;
    color: #1d2b4f;
}

.un-spouse-check-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.15rem 0;
}

.un-spouse-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.un-spouse-checkbox-label {
    margin: 0;
    font-weight: 600;
    color: #2b3a4f;
}

.un-input-control .invalid-feedback {
    display: none;
    color: #c0392b;
    margin-top: 0.2rem;
}

.un-children-input {
    width: 8rem;
    max-width: 100%;
}

.un-children-input.is-invalid + .invalid-feedback {
    display: block;
}

.un-salary-money {
    display: grid;
    grid-template-columns: 6.5rem minmax(7rem, 1fr) 1.2rem minmax(7rem, 1fr);
    column-gap: 0.4rem;
    align-items: baseline;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

.un-salary-money .un-cur {
    text-align: right;
    white-space: nowrap;
}

.un-salary-money .un-min {
    text-align: right;
}

.un-salary-money .un-dash {
    text-align: center;
}

.un-salary-money .un-max {
    text-align: left;
}

.un-row-add .un-salary-money {
    color: #157347;
    font-weight: 700;
}

.un-row-deduct .un-salary-money {
    color: #dc3545;
    font-weight: 700;
}

.un-row-total th,
.un-row-total .un-salary-money {
    color: #212529;
    font-weight: 700;
}

.un-row-display th,
.un-row-display .un-salary-money {
    color: #212529;
    font-weight: 400;
}

@media (max-width: 768px) {
    .un-input-grid {
        grid-template-columns: 1fr;
        row-gap: 0.5rem;
    }

    .un-input-label {
        padding-top: 0;
    }
}

.recommendation-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
}

.recommendation-row .vacancy-recommendation {
    flex: 1 1 auto;
}

.recommendation-row .why-button {
    flex: 0 0 auto;
    margin-left: 0;
}

.deadline-text {
    margin-top: 0;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    color: #111;
}

.deadline-normal {
    color: #111;
    font-weight: 400;
}

.deadline-urgent {
    color: #c0392b;
    font-weight: 700;
}

.dropzone input[type="file"] {
    display: none;
}

.dropzone-content h2 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.dropzone-content p {
    margin: 0;
    color: #4a5b6a;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #c7d6ff;
    border-top-color: #2d6cdf;
    border-radius: 50%;
    margin: 0 auto 0.5rem auto;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    margin: 0;
    color: #4a5b6a;
}

.cv-upload-waiting-text {
    display: none;
    margin-top: 0.75rem;
    color: #5a6b7a;
    border: 1px solid #d8e2f2;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.75rem 0.9rem;
}

.cv-upload-waiting-text.active {
    display: block;
}

.cv-upload-progress-message {
    margin: 0;
    font-weight: 600;
    color: #1f3d7a;
}

.cv-upload-dropzone-progress {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: #1f3d7a;
    font-weight: 600;
}

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

.modal-content .checkbox-row {
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.modal-content .checkbox-row input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    margin-right: 0;
}

.modal-content .checkbox-row .inline-label {
    position: static;
    top: auto;
    margin: 0;
    line-height: 1.35;
}

.file-meta-wrap {
    margin-top: 0.75rem;
    border: 1px dashed #c7d6ff;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.65rem 0.75rem;
}

.file-meta-wrap.ready {
    border-style: solid;
    border-color: #2d6cdf;
    background: #eef4ff;
    box-shadow: 0 0 0 1px rgba(45, 108, 223, 0.12) inset;
}

.file-meta {
    color: #20385f;
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0;
}

.file-status {
    margin: 0.32rem 0 0 0;
    font-size: 0.88rem;
    color: #4a5b6a;
}

.file-meta-wrap.ready .file-status {
    color: #224f9f;
    font-weight: 600;
}

.dropzone.is-ready {
    border-color: #2d6cdf;
    background: #f4f8ff;
}

.cv-import-source-divider {
    margin: 1rem 0;
    color: #5a6b7a;
    font-weight: 700;
    text-align: center;
}

.europass-url-field input {
    width: 100%;
    box-sizing: border-box;
}

.tag-picker {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
    background: #fff;
}

.tag-picker-plain {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eef3ff;
    border: 1px solid #c7d6ff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.tag-label {
    margin: 0;
    font-size: 0.9rem;
}

.tag-remove {
    border: 1px solid #c7d3e6;
    background: #f7faff;
    color: #50627c;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tag-remove:hover,
.tag-remove:focus {
    background: #e9f1ff;
    color: #145AAA;
    border-color: #9eb7e6;
}

.tag-select {
    width: 100%;
    border: none;
    outline: none;
}

@media (max-width: 900px) {
    .tab-body {
        columns: 1;
    }
}

.disclaimer-block {
    background: #fff4f4;
    border: 1px solid #f5c2c7;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.status-banner {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.status-banner.error {
    background: #fdecea;
    border: 1px solid #f5c2c7;
    color: #7a1c1c;
}

.status-banner.info {
    background: #eef7ff;
    border: 1px solid #b6daff;
    color: #1d3a57;
}

.status-banner.success {
    background: #f0f8f3;
    border: 1px solid #b7dfc7;
    color: #245943;
}

/* News */
.news-card,
.news-admin-row,
.help-apply-card {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.news-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 37.5rem) {
    .news-grid {
        column-count: 2;
    }
}

@media (min-width: 56.25rem) {
    .news-grid {
        column-count: 3;
    }
}

@media (min-width: 112.5rem) {
    .news-grid {
        column-count: 4;
    }
}

.news-grid .news-card {
    margin: 0 0 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    break-inside: avoid;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.news-card:focus {
    outline: 3px solid rgba(20, 90, 170, 0.35);
    outline-offset: 2px;
}

.news-card-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f9ff;
    border: 1px solid #d9e3f0;
    cursor: zoom-in;
}

.news-card-image-contain {
    object-fit: contain;
}

.news-card-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card-date {
    color: #6c757d;
    margin: 0;
}

.news-card-summary {
    margin: 0.25rem 0 0;
    color: #1f2933;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card-summary.hidden {
    display: none;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-modal {
    --news-modal-top-gap: clamp(5.5rem, 12vh, 7rem);
    --news-modal-bottom-gap: 1.5rem;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--news-modal-top-gap) 2rem var(--news-modal-bottom-gap);
    z-index: 4200;
    overflow: hidden;
}

.news-modal.hidden {
    display: none;
}

.news-modal-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 880px;
    width: min(880px, calc(100vw - 1.8rem));
    min-width: 0;
    max-height: calc(100dvh - var(--news-modal-top-gap) - var(--news-modal-bottom-gap));
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.news-modal-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem 2rem;
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
    min-width: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
}

.news-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #ffffff;
    padding: 2rem 0 0.75rem;
    box-shadow: 0 10px 18px rgba(255, 255, 255, 0.96);
    min-width: 0;
}

.news-modal-close {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d9e3f0;
    background: rgba(255, 255, 255, 0.96);
    color: #183153;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 500;
    flex: 0 0 auto;
    align-self: start;
    justify-self: end;
    box-shadow: 0 6px 18px rgba(24, 49, 83, 0.08);
}

.news-modal-title {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-modal-heading {
    min-width: 0;
}

.news-modal-date {
    margin: 0.35rem 0 0;
    color: #6c757d;
    font-size: 0.92rem;
    font-weight: 700;
}

.news-editorial-disclosure {
    margin: 0.45rem 0 0;
    max-width: 720px;
    color: #49647c;
    font-size: 0.86rem;
    line-height: 1.45;
}

.news-editorial-disclosure.hidden {
    display: none;
}

.news-modal-summary p,
.news-modal-body p {
    margin: 0 0 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-modal-summary,
.news-modal-body,
.cv-recommendations,
.cv-guidelines-heading,
.cv-guidelines-body {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-modal-body a,
.news-modal-body code,
.cv-recommendations a,
.cv-recommendations code,
.cv-guidelines-body a,
.cv-guidelines-body code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-modal-body h1,
.news-modal-body h2,
.news-modal-body h3,
.news-modal-body h4,
.news-modal-body h5,
.news-modal-body h6 {
    margin: 1.2rem 0 0.55rem;
    color: #183153;
    line-height: 1.2;
}

.news-modal-body ul,
.news-modal-body ol {
    margin: 0 0 0.9rem 1.35rem;
    padding: 0;
}

.news-modal-body li {
    margin: 0.25rem 0;
}

.news-modal-body blockquote {
    margin: 1rem 0;
    padding: 0.2rem 0 0.2rem 1rem;
    border-left: 4px solid #d6e3f2;
    color: #47617d;
}

.news-modal-body code {
    padding: 0.08rem 0.25rem;
    border-radius: 0.35rem;
    background: #eef5fb;
    font-size: 0.92em;
}

.news-modal-body pre {
    overflow-x: auto;
    max-width: 100%;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    background: #eef5fb;
}

.news-modal-body pre code {
    padding: 0;
    background: transparent;
    word-break: normal;
    overflow-wrap: normal;
}

.news-modal-body img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.25rem auto;
    border-radius: 8px;
}

.news-modal-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
    font-size: 0.95rem;
}

.news-modal-body thead {
    background: #eef5fb;
}

.news-modal-body th,
.news-modal-body td {
    border: 1px solid #d6e3f2;
    padding: 0.55rem 0.7rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-modal-body th {
    color: #183153;
    font-weight: 700;
}

.news-modal-body tbody tr:nth-child(even) {
    background: #f8fbff;
}

.news-share-strip {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #d8e3f0;
}

.news-share-heading {
    margin: 0 0 0.7rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #47617d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.news-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #c7d6ea;
    background: #f6faff;
    color: #145AAA;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-share-link:hover {
    background: #eaf3ff;
    border-color: #98bbe7;
    transform: translateY(-1px);
}

.news-share-link:focus-visible {
    outline: 2px solid #145AAA;
    outline-offset: 2px;
}

.news-modal-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
}

.news-modal-image-contain {
    object-fit: contain;
}

.news-modal-image.hidden {
    display: none;
}

.news-modal-media {
    width: 100%;
    aspect-ratio: 1200 / 630;
    max-height: 320px;
    min-height: min(220px, 52vw);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #f5f9ff;
    border: 1px solid #d9e3f0;
    box-sizing: border-box;
}

.news-modal-media.hidden {
    display: none;
}

.news-modal-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            110deg,
            rgba(232, 240, 251, 0.72) 8%,
            rgba(248, 251, 255, 0.96) 18%,
            rgba(232, 240, 251, 0.72) 33%
        );
    background-size: 200% 100%;
    animation: news-image-placeholder-shimmer 1.15s linear infinite;
}

.news-modal-image-placeholder.hidden {
    display: none;
}

@keyframes news-image-placeholder-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.news-image-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(10, 16, 28, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.news-image-overlay.hidden {
    display: none;
}

.news-image-overlay-card {
    position: relative;
    width: min(96vw, 1500px);
    height: min(92vh, 1100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 1rem;
    box-sizing: border-box;
}

.news-image-overlay-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: transparent;
}

.news-image-overlay-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.96);
    color: #183153;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cv-guidelines-intro {
    margin: 0;
    color: #44586f;
    font-size: 0.98rem;
    line-height: 1.55;
}

.cv-guidelines-heading {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.cv-guidelines-intro strong {
    display: block;
    font-weight: 700;
}

.cv-guidelines-body {
    color: #1d2b4f;
}

.cv-guidelines-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cv-guidelines-frame {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.cv-guidelines-header {
    position: static;
    top: auto;
    box-shadow: none;
    padding: 2rem 2rem 0.9rem;
    flex: 0 0 auto;
}

.cv-guidelines-scroll {
    padding-top: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cover-letter-feedback-form.hidden,
.cover-letter-feedback-saved-note.hidden {
    display: none;
}

.cover-letter-feedback-form .btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.cover-letter-feedback-saved-note {
    margin: 0;
    color: #4d617d;
    font-size: 0.96rem;
    line-height: 1.5;
}

@media (max-width: 40rem) {
    .intro-modal,
    .modal-overlay,
    .generation-modal,
    .invite-modal {
        padding: 0.85rem;
    }

    .intro-modal-card,
    .modal-content,
    .generation-card,
    .invite-modal-card {
        width: min(100%, calc(100vw - 1.7rem));
    }

    .modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        max-height: calc(100dvh - 1.7rem);
        padding: 1.15rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .modal-actions .btn,
    .modal-actions button,
    .modal-actions a {
        display: inline-flex;
        justify-content: center;
        text-align: center;
        width: 100%;
        flex: 0 0 100%;
    }

    .application-start-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .intro-modal-header {
        padding: 1.35rem 1rem 0;
    }

    .intro-modal-body {
        padding: 0 1rem 0.85rem;
    }

    .intro-modal-footer {
        padding: 0 1rem 1rem;
    }

    .news-modal {
        --news-modal-top-gap: 4.75rem;
        --news-modal-bottom-gap: 1rem;
        padding: var(--news-modal-top-gap) 0.9rem var(--news-modal-bottom-gap);
    }

    .news-modal-scroll {
        padding: 0 1rem 1rem;
    }

    .news-modal-header {
        gap: 0.75rem;
        padding: 1.25rem 0 0.75rem;
        padding-right: 0;
    }

    .news-modal-close {
        width: 2.5rem;
        height: 2.5rem;
        min-height: 2.5rem;
        font-size: 1.45rem;
    }

    .news-share-links {
        gap: 0.55rem;
    }

    .news-share-link {
        flex: 1 1 calc(50% - 0.55rem);
        min-width: 7.5rem;
        padding: 0.65rem 0.8rem;
    }

    .news-image-overlay {
        padding: 0.75rem;
    }

    .news-image-overlay-card {
        width: 100%;
        height: min(90vh, 960px);
        padding: 4rem 0.35rem 0.35rem;
    }

    .news-image-overlay-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.6rem;
        height: 2.6rem;
        min-height: 2.6rem;
        font-size: 1.55rem;
    }

    .cv-guidelines-header {
        padding: 1.35rem 1rem 0.8rem;
    }
}

body.modal-open {
    overflow: hidden;
}

.helper-text {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-form-image-preview {
    margin-top: 0.75rem;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.news-inline-upload-results {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.news-inline-upload-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid #d7e1ed;
    border-radius: 6px;
    background: #f8fafc;
}

.news-inline-upload-preview {
    display: block;
    width: 140px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.news-inline-upload-details {
    display: grid;
    min-width: 0;
    gap: 0.55rem;
}

.news-inline-upload-details label {
    display: grid;
    gap: 0.25rem;
}

.news-inline-markdown {
    display: block;
    max-width: 100%;
    padding: 0.55rem;
    overflow-wrap: anywhere;
    border-radius: 4px;
    background: #eaf0f7;
}

.news-inline-copy {
    justify-self: start;
}

@media (max-width: 640px) {
    .news-inline-upload-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-inline-upload-preview {
        width: 100%;
        max-height: 220px;
    }
}

.news-admin-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.news-admin-top-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.news-digest-selection-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.news-digest-item-row {
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    background: #ffffff;
}

.news-digest-item-option {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    padding: 0.9rem 1rem;
    margin: 0;
}

.news-digest-item-checkbox {
    margin: 0;
    flex: 0 0 auto;
    width: auto !important;
    display: inline-block;
    align-self: center;
}

.news-digest-item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.news-digest-item-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
}

.news-digest-item-main {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.news-digest-item-title {
    font-weight: 700;
    color: #183153;
}

.news-digest-item-image {
    width: 180px;
    height: 126px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d9e3f0;
    background: #f5f9ff;
    flex: 0 0 180px;
    align-self: center;
}

.news-digest-item-image-placeholder {
    display: block;
}

.news-digest-item-summary {
    color: #31465f;
    line-height: 1.55;
}

.news-digest-item-history {
    color: #5b728e;
}

.news-digest-preview {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.inline-form {
    display: inline-block;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.admin-user-row-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.admin-user-row-form select {
    width: auto;
    min-width: 9rem;
}

.admin-user-row-form input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

/* Billing */
.billing-status,
.billing-plans,
.billing-portal {
    background: white;
    padding: 1.5rem 1.6rem;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(21, 33, 61, 0.08);
    margin-bottom: 1.2rem;
    border: 1px solid #dfe7f4;
}

#billing-plans {
    scroll-margin-top: 110px;
}

.billing-page-intro {
    margin: -0.2rem 0 1.1rem;
    max-width: 42rem;
    color: #556a86;
}

.billing-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 0.85rem;
}

.billing-plan-pill,
.billing-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid #c8d8f2;
    color: #1e3a66;
    background: #eef4ff;
}

.billing-status-pill.ok {
    border-color: #9ad8b5;
    color: #136b3a;
    background: #e9f8ef;
}

.billing-status-pill.warning {
    border-color: #f3c67f;
    color: #925400;
    background: #fff5e8;
}

.billing-risk-copy {
    color: #8a3d00;
    font-weight: 600;
    margin: 0.85rem 0 0;
}

.billing-summary-card {
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.billing-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #eef4ff;
    color: #174d93;
    border: 1px solid #d6e4fb;
}

.billing-summary-title,
.billing-section-title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.1;
}

.billing-summary-copy {
    margin: 0.55rem 0 0;
    color: #4d617d;
    max-width: 36rem;
}

.billing-summary-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.billing-meta-item {
    background: #f6f9fd;
    border: 1px solid #e0e8f5;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.billing-meta-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #60738d;
    margin-bottom: 0.25rem;
}

.billing-meta-value {
    color: #19365f;
}

.billing-summary-actions-block {
    background: #f7faff;
    border: 1px solid #dfe7f4;
    border-radius: 16px;
    padding: 1rem;
}

.billing-summary-actions {
    display: grid;
    gap: 0.7rem;
}

.billing-summary-actions form {
    margin: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.billing-summary-actions .btn,
.billing-summary-actions button {
    width: 100%;
}

.billing-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 0.9rem;
}

.billing-section-copy {
    max-width: 36rem;
}

.billing-section-note {
    margin: 0 0 1rem;
    color: #546a84;
    font-size: 0.94rem;
}

.billing-withdrawal-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.billing-withdrawal-modal-content {
    max-width: 640px;
    color: #334b6d;
}

.billing-withdrawal-modal-content p {
    margin: 0.35rem 0;
    font-size: 0.93rem;
}

.billing-withdrawal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #4d5f78;
    font-size: 0.87rem;
    margin-bottom: 0.55rem;
}

.billing-withdrawal-check input {
    width: auto;
    margin-top: 0.18rem;
}

.billing-withdrawal-link {
    color: #145aaa;
    text-decoration: underline;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.billing-plan-card {
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    border: 1px solid #e0e8f5;
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100%;
}

.billing-plan-card[data-recommended="1"] {
    border-color: #bfd9ff;
    box-shadow: 0 14px 28px rgba(20, 90, 170, 0.10);
}

.billing-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.billing-current-tag {
    border-radius: 999px;
    background: #edf5ff;
    border: 1px solid #c7dcff;
    color: #145aaa;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
}

.billing-plan-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.billing-plan-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e3763;
    margin: 0;
}

.billing-plan-transition {
    color: #4d5f78;
    font-size: 0.92rem;
    font-weight: 700;
    margin: -0.25rem 0 0;
}

.billing-plan-audience {
    margin: 0;
    color: #14497c;
    font-size: 0.95rem;
    font-weight: 700;
}

.billing-plan-copy {
    color: #4d5f78;
    margin: 0;
}

.billing-plan-review {
    background: #ffffff;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    gap: 0.45rem;
    margin: 0.2rem 0;
    padding: 0.75rem;
}

.billing-plan-review-title {
    color: #174d93;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.billing-plan-review-row {
    display: grid;
    gap: 0.1rem;
    line-height: 1.35;
}

.billing-plan-review-row strong {
    color: #263c5c;
    font-size: 0.78rem;
}

.billing-plan-review-row span {
    color: #4d5f78;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.billing-feature-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #2f425f;
}

.billing-feature-item {
    margin: 0.2rem 0;
    font-size: 0.94rem;
}

.billing-plan-form {
    margin-top: auto;
    padding-top: 0.5rem;
}

.billing-plan-form .btn,
.billing-plan-form button {
    width: 100%;
}

.billing-cycle-switch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.billing-cycle-link {
    border: 1px solid #c6d4eb;
    color: #1f3b62;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.27rem 0.75rem;
    font-weight: 700;
}

.billing-cycle-link.active {
    border-color: #145AAA;
    background: #145AAA;
    color: #fff;
}

.billing-hint {
    color: #4f627d;
    margin: 0;
}

.billing-portal-actions {
    margin-top: 1rem;
    max-width: 18rem;
}

.billing-portal-form {
    margin: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.billing-portal-form .btn,
.billing-portal-form button {
    width: 100%;
}

.billing-portal {
    background: #fff;
}

.billing-portal .billing-hint {
    max-width: 36rem;
}

.billing-action-panel h3 {
    margin: 1.2rem 0 0.4rem;
    font-size: 1rem;
}

.billing-action-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.85rem 0 1rem;
}

.billing-action-form label {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    font-size: 0.92rem;
    color: #313942;
}

.billing-action-form input {
    min-height: 2.6rem;
}

.billing-action-success {
    padding: 0.65rem 0.75rem;
    border-left: 3px solid #297350;
    background: #f0f8f3;
    color: #245943;
}

.billing-portal-actions form {
    margin-top: 0.75rem;
    margin: 0;
}

.billing-result-page {
    padding-top: 0.8rem;
}

.billing-result-card {
    background: #fff;
    border: 1px solid #dfe6f3;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.10);
    padding: 1.6rem;
    max-width: 760px;
}

.billing-result-card h1 {
    display: block;
    margin: 0 0 0.55rem;
}

.billing-result-card p {
    margin: 0;
    color: #4b5f79;
}

.billing-result-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.billing-result-actions .btn {
    min-width: 12rem;
}

@media (max-width: 768px) {
    .billing-status,
    .billing-plans,
    .billing-portal,
    .billing-result-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .billing-summary-grid,
    .billing-section-header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .billing-summary-actions-block,
    .billing-summary-copy-block {
        width: 100%;
    }

    .billing-cycle-switch {
        gap: 0.45rem;
    }

    .billing-result-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* P11 layout with side tabs */
.p11-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.p11-content {
    flex: 1;
    min-width: 0;
}

.p11-content form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.p11-content fieldset {
    border: 1px solid #dde5ef;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    background: #ffffff;
}

.p11-content legend {
    font-size: 1.05rem;
    color: #1d2b4f;
}

.p11-content label {
    margin-bottom: 0;
    color: #22324a;
    font-size: 0.96rem;
}

/* Tab navigation */
.tab-navigation {
    margin: 0;
    width: 270px;
    border-right: 2px solid #e9ecef;
    flex-shrink: 0;
}

.p11-general-cv-review-trigger-wrap {
    margin-top: 1rem;
}

.p11-general-cv-review-button {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.p11-general-cv-review-button-mobile {
    display: none !important;
    margin: 0 0 0.75rem;
}

.p11-general-cv-review-button-desktop {
    display: inline-flex !important;
}

.tab-mobile-label,
.tab-mobile-select {
    display: none;
}

.tab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 0;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.1rem;
    text-decoration: none;
    color: #6c757d;
    border-right: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.tab-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.tab-link.active {
    color: #3498db;
    border-right-color: #3498db;
    background-color: #fff;
}

.tab-link-label {
    line-height: 1.25;
}

.general-cv-review-meta {
    margin: 0;
    font-size: 0.92rem;
    color: #5c6d84;
}

.general-cv-review-confirm-card {
    max-width: 540px;
}

.general-cv-review-confirm-title {
    margin: 0 0 0.8rem;
}

.general-cv-review-confirm-message {
    margin: 0;
    color: #31465f;
    line-height: 1.55;
    white-space: pre-line;
}

/* Record display styles */
.record-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.record-info,
.record-dates,
.record-description {
    margin-bottom: 0.5rem;
}

.record-field {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.record-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.2;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-link {
    background-color: transparent;
    color: #3498db;
    text-decoration: underline;
}

.btn-link:hover {
    color: #2980b9;
}

/* Button group for multi-item sections */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.admin-users-page {
    max-width: 1420px;
}

.admin-section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
}

.admin-section-button {
    min-width: 10rem;
    text-align: center;
}

.admin-users-table {
    table-layout: fixed;
}

.admin-users-table td {
    vertical-align: middle;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
    width: 5.5rem;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
    width: 29%;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
    width: 10rem;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
    width: 31%;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
    width: 13rem;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
    width: 8rem;
}

.admin-user-identity {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.admin-user-name {
    font-weight: 700;
    color: #1d2b4f;
}

.admin-user-email {
    color: #5f6f82;
    font-size: 0.92rem;
    word-break: break-word;
}

.admin-created-cell {
    white-space: nowrap;
}

.admin-controls-col,
.admin-actions-col {
    vertical-align: middle;
}

.admin-user-row-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
    border: 0;
    min-width: 0;
}

.admin-plan-select {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #22324a;
    font-weight: 600;
    line-height: 1.3;
}

.admin-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.admin-referral-action-label {
    color: #5f6f82;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-ban-form {
    display: inline-flex;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
    border: 0;
}

.admin-user-row-form .btn,
.admin-ban-form .btn,
.admin-section-button {
    padding: 0.65rem 1rem;
    border-radius: 8px;
}

.admin-user-row-form .btn {
    width: 100%;
}

.admin-ban-form .btn {
    min-width: 5.5rem;
}

.stats-page {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.35rem;
}

.stats-intro-copy,
.stats-section-copy {
    color: #5f6f82;
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stats-kpi-card,
.stats-chart-card,
.stats-hero-card,
.stats-section-block {
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.stats-chart-card {
    display: flex;
    flex-direction: column;
}

.stats-chart-card-full {
    grid-column: 1 / -1;
}

.stats-kpi-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #5f6f82;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.stats-kpi-value {
    font-size: 1.32rem;
    font-weight: 800;
    color: #1d2b4f;
    margin-bottom: 0.35rem;
}

.stats-kpi-detail {
    color: #5f6f82;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.stats-section-heading,
.stats-section-title {
    display: block;
    color: #1d2b4f;
    margin-bottom: 0.4rem;
}

.stats-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.stats-card-title-wrap {
    min-width: 0;
}

.stats-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.stats-timeframe-control {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.2rem;
    border: 1px solid #c7d3e1;
    border-radius: 6px;
    background: #eef3f8;
}

.stats-timeframe-button {
    min-height: 2rem;
    border: 0;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    background: transparent;
    color: #526276;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.stats-timeframe-button[aria-pressed="true"] {
    background: #ffffff;
    color: #123e78;
    box-shadow: 0 1px 3px rgba(20, 53, 90, 0.18);
}

.stats-timeframe-button:focus-visible {
    outline: 3px solid rgba(20, 90, 170, 0.4);
    outline-offset: 2px;
}

.stats-help-trigger,
.stats-expand-trigger {
    border: 1px solid #d6dfec;
    background: #f6f8fc;
    color: #1d2b4f;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.stats-help-trigger {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.stats-expand-trigger {
    padding: 0.35rem 0.8rem;
}

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

.stats-chart-host {
    min-height: 360px;
    margin-top: 0.75rem;
    flex: 1 1 auto;
}

.stats-chart-host canvas {
    width: 100% !important;
    height: 100% !important;
}

.stats-chart-host-lg {
    min-height: 440px;
}

.stats-chart-host-short {
    min-height: 280px;
}

.stats-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border: 1px dashed #d6dfec;
    border-radius: 12px;
    color: #5f6f82;
    font-weight: 600;
    background: #f9fbff;
}

.stats-treemap-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.stats-pie-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.stats-treemap-text,
.stats-treemap-value,
.stats-treemap-meta {
    fill: #ffffff;
    pointer-events: none;
}

.stats-treemap-text {
    font-size: 15px;
    font-weight: 700;
}

.stats-treemap-value {
    font-size: 30px;
    font-weight: 800;
}

.stats-treemap-meta {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
}

.stats-pie-inner-label {
    fill: #ffffff;
    font-size: 13px;
    font-weight: 800;
    pointer-events: none;
}

.stats-pie-inner-meta {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.92;
}

.stats-help-popover {
    position: fixed;
    z-index: 4300;
    max-width: 320px;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: #0f1d36;
    color: #f7fbff;
    font-size: 0.93rem;
    line-height: 1.45;
    box-shadow: 0 18px 40px rgba(15, 29, 54, 0.24);
    display: none;
}

.stats-help-popover.is-open {
    display: block;
}

.stats-chart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 23, 43, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5.25rem 0.8rem 0.8rem;
    z-index: 4100;
    overflow: hidden;
}

.stats-chart-overlay.is-open {
    display: flex;
}

.stats-chart-overlay-body {
    width: min(1240px, calc(100vw - 1.6rem));
    height: min(760px, calc(100vh - 8.6rem));
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.2);
    display: flex;
    flex-direction: column;
}

.stats-overlay-title {
    margin-bottom: 1rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.stats-overlay-image {
    width: 100%;
    max-height: calc(100vh - 14rem);
    height: auto;
    display: block;
    object-fit: contain;
}

.stats-overlay-treemap {
    width: 100%;
    height: calc(100vh - 14rem);
    min-height: 0;
    flex: 1 1 auto;
}

.stats-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
}

.stats-overlay-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.stats-overlay-close {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d6dfec;
    border-radius: 50%;
    background: #f6f8fc;
    color: #1d2b4f;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.stats-overlay-close:hover,
.stats-overlay-close:focus-visible {
    border-color: #176ca4;
    color: #176ca4;
}

.stats-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.stats-badge-ok {
    background: #e7f6ef;
    color: #146b4d;
}

.stats-badge-warn {
    background: #fff3d7;
    color: #8a5a00;
}

.legal-page {
    padding-top: 0.35rem;
}

.legal-page h1 {
    display: block;
    color: #1d2b4f;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3.4vw, 2.45rem);
    line-height: 1.12;
}

.legal-card {
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 16px;
    padding: 1.55rem 1.75rem;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.legal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.legal-meta-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #d7e4ff;
    background: #eef4ff;
}

.legal-meta-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #58709a;
    font-weight: 700;
}

.legal-meta-value {
    margin: 0;
    color: #1d2b4f;
    font-weight: 700;
    font-size: 0.92rem;
}

.legal-markdown {
    color: #2f3f56;
    line-height: 1.68;
    font-size: 1.03rem;
    max-width: 94ch;
}

.legal-markdown h1,
.legal-markdown h2,
.legal-markdown h3 {
    color: #1d2b4f;
    line-height: 1.25;
    margin-top: 1.25rem;
    margin-bottom: 0.45rem;
}

.legal-markdown h1 {
    font-size: 1.7rem;
}

.legal-markdown h2 {
    font-size: 1.28rem;
    margin-top: 1.7rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e7edf6;
}

.legal-markdown h3 {
    font-size: 1.1rem;
}

.legal-markdown p,
.legal-markdown ul,
.legal-markdown ol {
    margin: 0.64rem 0;
}

.legal-markdown ul,
.legal-markdown ol {
    padding-left: 1.35rem;
}

.legal-markdown li + li {
    margin-top: 0.25rem;
}

.legal-markdown a {
    color: #145AAA;
}

.legal-version-banner {
    margin-top: 1.05rem;
    border-radius: 10px;
    border: 1px solid #d7e4ff;
    background: #eef4ff;
    color: #2f5da0;
    font-weight: 700;
    padding: 0.65rem 0.8rem;
}

.legal-section + .legal-section {
    margin-top: 1.25rem;
}

.legal-section-title {
    color: #1d2b4f;
    margin-bottom: 0.35rem;
}

.legal-paragraph + .legal-paragraph {
    margin-top: 0.55rem;
}

.unsubscribe-card {
    margin-top: 0.35rem;
}

.unsubscribe-copy {
    margin-bottom: 0.9rem;
}

.unsubscribe-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.unsubscribe-actions-row .btn {
    min-width: 12.5rem;
}

.unsubscribe-login-row {
    margin-top: 1.2rem;
}

.unsubscribe-login-row .btn {
    min-width: 12.5rem;
}

.terms-accept-page {
    max-width: 980px;
}

.legal-accept-lead {
    margin-bottom: 0.95rem;
    color: #4e5f74;
}

.legal-meta-row-accept {
    margin-bottom: 0.8rem;
}

.terms-scroll-box {
    margin-bottom: 1rem;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    max-height: min(54vh, 580px);
    overflow-y: auto;
    background: #fbfdff;
}

.terms-change-summary {
    margin: 0 0 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #c9dced;
    border-left: 4px solid #f27f2e;
    border-radius: 8px;
    background: #eef6fb;
    color: #263e56;
}

.terms-change-summary h2 {
    margin: 0 0 0.55rem;
    color: #12304a;
    font-size: 1.12rem;
    line-height: 1.25;
}

.terms-change-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

.terms-change-summary-body + .terms-change-summary-date {
    margin-top: 0.75rem;
}

.terms-change-summary li + li {
    margin-top: 0.28rem;
}

.terms-change-summary-date {
    margin: 0 0 0.35rem;
    color: #2f5d74;
    font-size: 0.86rem;
    font-weight: 800;
}

.terms-change-summary-disclaimer {
    margin: 0.75rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid #c9dced;
    color: #51677b;
    font-size: 0.88rem;
}

.terms-accept-card {
    margin-top: 0.8rem;
}

.terms-agree-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.terms-agree-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
}

.terms-agree-label {
    margin: 0;
    color: #2f3f56;
}

.terms-optional-row {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e4ebf5;
}

.terms-accept-actions {
    margin-top: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.terms-accept-actions p {
    margin: 0;
    color: #56667b;
    font-size: 0.94rem;
}

.site-footer {
    margin-top: auto;
    padding: 0.8rem 0 1.1rem;
}

.site-footer-inner {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: #5f6f82;
    font-size: 0.94rem;
}

.site-footer-inner a {
    color: #5f6f82;
    text-decoration: none;
}

.site-footer-inner a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .admin-users-table {
        table-layout: auto;
    }

    .admin-user-row-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-section-button {
        min-width: 0;
        flex: 1 1 10rem;
    }

    .stats-chart-grid,
    .stats-kpi-grid {
        grid-template-columns: 1fr;
    }

    .stats-page {
        gap: 1rem;
    }

    .stats-chart-card,
    .stats-hero-card,
    .stats-section-block {
        padding: 1rem;
    }

    .stats-card-head {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .stats-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .stats-section-title {
        font-size: 1.02rem;
        line-height: 1.28;
    }

    .stats-timeframe-control {
        margin-right: auto;
    }

    .stats-chart-host {
        min-height: 240px;
        margin-top: 0.65rem;
    }

    .stats-chart-host-lg {
        min-height: 300px;
    }

    .stats-chart-host-short {
        min-height: 220px;
    }

    .unsubscribe-actions-row .btn,
    .unsubscribe-login-row .btn {
        width: 100%;
        min-width: 0;
    }

    .terms-accept-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-card {
        padding: 1.2rem 1.05rem;
    }

    .legal-page h1 {
        margin-bottom: 0.8rem;
    }

    .stats-chart-overlay {
        padding: 4.9rem 0.5rem 0.5rem;
    }

    .navbar-spacer {
        height: 4.55rem;
    }

    .logo-image {
        height: 68px;
    }

    .stats-chart-overlay-body {
        width: calc(100vw - 1rem);
        height: calc(100vh - 7.4rem);
        padding: 0.8rem;
    }

    .stats-overlay-treemap {
        height: calc(100vh - 12rem);
    }

    .application-title-row {
        align-items: flex-start;
        margin-bottom: 0.35rem;
    }

    .application-title {
        width: 100%;
    }

    .application-title-button {
        display: inline-block;
        width: 100%;
        white-space: normal;
        line-height: 1.2;
        word-break: break-word;
        font-size: 1.35rem;
    }

    .gist-modal-overlay {
        padding: 4.9rem 0.75rem 0.75rem;
    }

    .gist-modal-content {
        max-height: calc(100vh - 5.65rem);
        padding: 1.1rem;
    }

    .gist-modal-body {
        max-height: calc(100vh - 11.5rem);
    }

    .application-announcement-row {
        margin: 0 0 0.95rem;
    }

    .application-announcement-row .why-button {
        min-height: 2.35rem;
        padding: 0.45rem 0.95rem;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .vacancy-summary-card,
    .application-section,
    .application-hero-card {
        padding: 0.9rem 0.95rem;
        border-radius: 12px;
    }

    .vacancy-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .application-actions {
        gap: 0.6rem;
        margin: 0.85rem 0;
    }

    .application-actions .btn {
        width: 100%;
    }

    .application-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-top: 0.8rem;
    }

    .application-footer .btn {
        width: 100%;
    }

    .status-control {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .application-status-stack {
        width: 100%;
        gap: 0.25rem;
    }

    .status-select {
        width: 100%;
    }

    .nav-inner {
        position: relative;
        gap: 0.7rem;
        flex-wrap: wrap;
        row-gap: 0.45rem;
        justify-content: flex-start;
    }

    .nav-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d6dfec;
        background: #ffffff;
        color: #1d2a3a;
        border-radius: 10px;
        width: 40px;
        height: 36px;
        padding: 0;
        font-size: 1.2rem;
        line-height: 1;
        font-weight: 700;
        cursor: pointer;
        order: 3;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .profile-dropdown,
    .nav-auth-links {
        order: 2;
        margin-left: auto;
    }

    .nav-upgrade-cta {
        order: 4;
        flex: 1 0 100%;
        width: 100%;
        margin: 0;
        padding: 0.72rem 1rem;
        font-size: 1rem;
    }

    .nav-links-wrap {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.2rem);
        background: #f4f4f4;
        border-top: 1px solid #dfe6f0;
        box-shadow: 0 12px 22px rgba(17, 24, 39, 0.14);
        padding: 0.4rem 0.6rem 0.6rem;
        border-radius: 0 0 12px 12px;
        z-index: 3200;
        order: 5;
    }

    .nav-menu-backdrop {
        position: fixed;
        inset: 4.85rem 0 0;
        background: rgba(17, 24, 39, 0.18);
        /* Mobile browsers render the opened nav panel softly when a filtered
           backdrop sits behind it. Keep the dim overlay, drop the blur. */
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        z-index: 2900;
    }

    .navbar-spacer-has-upgrade {
        height: 7.5rem;
    }

    .nav-menu-backdrop.open {
        display: block;
    }

    .nav-links-wrap.open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-links li {
        justify-content: flex-start;
    }

    .nav-links a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        padding: 0.42rem 0.25rem;
    }

    .onboarding-page {
        padding-top: 0.45rem;
    }

    .onboarding-shell {
        padding: 1rem;
        border-radius: 16px;
        max-height: calc(100vh - 5.5rem);
    }

    .onboarding-step-card {
        min-height: 0;
    }

    .onboarding-hero-visual {
        min-height: 0;
        padding: 0.9rem;
    }

    .onboarding-workflow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .onboarding-workflow-step {
        min-width: 0;
        width: 100%;
    }

    .onboarding-workflow-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .onboarding-metrics {
        grid-template-columns: 1fr;
    }

    .onboarding-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .onboarding-actions-right {
        width: auto;
        justify-content: flex-end;
        flex-direction: row;
        gap: 0.65rem;
        flex-wrap: nowrap;
    }

    .onboarding-actions .btn {
        width: auto;
        min-width: 0;
        padding: 0.55rem 0.9rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    #onboarding-skip.btn-link {
        padding-inline: 0.2rem;
    }

    .p11-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .tab-navigation {
        width: 100%;
        border-right: none;
    }

    .tab-mobile-label {
        display: block;
        margin: 0 0 0.4rem;
        font-size: 0.9rem;
        font-weight: 700;
        color: #22324a;
    }

    .tab-mobile-select {
        display: block;
        width: 100%;
        margin: 0 0 0.75rem;
    }

    .p11-general-cv-review-button-mobile {
        display: inline-flex !important;
    }

    .p11-general-cv-review-button-desktop {
        display: none !important;
    }

    .tab-list {
        display: none;
    }

    .p11-content {
        width: 100%;
    }

    .p11-status-banner {
        padding: 0.85rem 0.9rem;
        border-radius: 10px;
    }

    .p11-status-title {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .p11-status-copy {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .p11-status-list {
        padding-left: 1rem;
        margin-left: 0;
        font-size: 0.94rem;
    }

    .p11-content fieldset,
    .section-card {
        padding: 1rem;
    }

    .tab-body {
        columns: 1;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Radio button groups for language skills */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.skill-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.language-skills-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.language-skills-row .form-field {
    flex: 1;
    min-width: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .auth-container {
        margin: 50px auto;
        padding: 1rem;
    }

    .p11-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .tab-navigation {
        width: 100%;
        border-right: none;
    }

    .tab-mobile-label {
        display: block;
        margin: 0 0 0.4rem;
        font-size: 0.9rem;
        font-weight: 700;
        color: #22324a;
    }

    .tab-mobile-select {
        display: block;
        width: 100%;
        margin: 0 0 0.75rem;
    }

    .p11-general-cv-review-button-mobile {
        display: inline-flex !important;
    }

    .p11-general-cv-review-button-desktop {
        display: none !important;
    }

    .tab-list {
        display: none;
    }

    .p11-content {
        width: 100%;
    }

    .record-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .record-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .language-skills-row {
        flex-direction: column;
        gap: 1rem;
    }

    .application-title-button {
        font-size: 1.2rem;
    }

    .application-announcement-row .why-button {
        width: 100%;
        justify-content: center;
    }

    .radio-group {
        gap: 0.5rem;
    }
}

/* Summary page styles */
.summary-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.progress-summary {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: bold;
    text-align: center;
}

.validation-results {
    margin-top: 2rem;
}

.section-summary {
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.section-header {
    padding: 0.55rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.section-link {
    color: #3498db;
    text-decoration: none;
    margin-left: 0.5rem;
}

.section-link:hover {
    text-decoration: underline;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list.hidden {
    display: none;
}

.error-item {
    padding: 0.4rem 1rem;
    background-color: #fff2f2;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    font-size: 0.9rem;
}

.error-item:not(:last-child) {
    border-bottom: 1px solid #fee;
}

/* Field-level error styling */
.field-errors {
    margin-top: 0.35rem;
    min-height: 1.2rem;
}

.field-errors .error-text {
    color: #c0392b;
    font-size: 0.875rem;
    line-height: 1.2;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: #e74c3c;
    background-color: #fff1f1;
}

.tab-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    min-width: 1.1rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.status-green {
    color: #1b8f5a;
}

.status-amber {
    color: #d99000;
}

.status-red {
    color: #c94b4b;
}

.p11-content .form-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.p11-group-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.p11-content form > fieldset > div,
.p11-content form > div:not(.button-group):not(.record-actions) {
    margin-bottom: 1rem;
}

.p11-content .form-field label,
.p11-content fieldset > div > label {
    margin-bottom: 0;
}

.p11-content textarea {
    min-height: 7rem;
}

.p11-content input,
.p11-content select,
.p11-content textarea {
    margin-bottom: 0;
}

.p11-content .record-info,
.p11-content .record-dates,
.p11-content .record-description,
.p11-content .record-actions {
    margin-top: 0.8rem;
}

.p11-content .button-group {
    margin-top: 1.25rem;
}

.p11-content .checkbox-row {
    margin-bottom: 0.9rem;
}

.p11-content .employment-end-date-row {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
}

.p11-content .employment-end-date-input-wrap {
    min-width: 0;
}

.p11-content .employment-end-date-input-wrap > input {
    width: 100%;
}

.p11-content .employment-current-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    white-space: nowrap;
    align-self: center;
    justify-self: start;
    line-height: 1.2;
}

.p11-content .employment-current-inline-text {
    display: inline-block;
}

.p11-content .employment-current-inline input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
}

@media (max-width: 40rem) {
    .p11-content .employment-end-date-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.7rem;
    }

    .p11-content .employment-current-inline {
        justify-self: start;
    }
}

.p11-content .no-records {
    color: #5f6f82;
}

/* Info messages */
.info-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1976d2;
}

.info-message.warning {
    background-color: #fff3e0;
    border-color: #ffcc02;
    color: #c0392b;
}

/* Form management section */
.form-management-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-selector-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.form-selector-group label {
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.form-selector {
    width: auto;
    min-width: 400px;
    max-width: 600px;
}

.form-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.form-action-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.form-action-buttons .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.form-action-buttons .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.form-action-buttons .btn-danger {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive adjustments for form management */
@media (max-width: 768px) {
    .form-management-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .form-selector-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .form-selector {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    
    .form-action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.invite-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.invite-page {
    max-width: 1240px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.35rem;
}

.invite-hero,
.invite-card,
.invite-section-card,
.invite-modal-card {
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.invite-hero {
    padding: 1.2rem 1.25rem;
}

.invite-page-title,
.invite-hero h1 {
    display: block;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1d2b4f;
    font-size: clamp(2rem, 4vw, 2.65rem);
}

.invite-page-copy,
.invite-hero-copy > p {
    margin: 0.35rem 0 0.5rem;
    max-width: 70ch;
    color: #5f6f82;
}

.invite-card {
    padding: 1.05rem 1.15rem;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.7rem;
}

.invite-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-self: start;
}

.invite-card-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #5f6f82;
}

.invite-card-title {
    margin: 0;
    color: #1d2b4f;
}

.invite-token-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d8e0eb;
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
    min-height: 4rem;
}

.invite-token-box-wide {
    min-height: 4.75rem;
}

.invite-share-card {
    gap: 1rem;
}

.invite-token-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.invite-token-label {
    color: #5f6f82;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.invite-token-text {
    min-width: 0;
    color: #1d2b4f;
    word-break: break-word;
}

.invite-code-display {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.invite-link-display {
    font-size: 0.98rem;
    line-height: 1.45;
}

.invite-inline-copy-btn {
    white-space: nowrap;
    align-self: center;
}

.invite-explainer-link {
    color: #2d6cdf;
    font-weight: 700;
    text-decoration: underline;
}

.invite-explainer-link:hover {
    color: #1c56b7;
}

.invite-card-copy {
    margin: 0;
    color: #5f6f82;
    font-size: 0.92rem;
}

.invite-copy-feedback {
    margin: 0;
    min-height: 1.15rem;
    color: #1b8f5a;
    font-size: 0.87rem;
    font-weight: 700;
}

.invite-points-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-self: start;
    height: 100%;
}

.invite-points-metric {
    border: 1px solid #e2e6ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.9rem 1rem;
    min-height: 9.25rem;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(4.1rem, auto) 1fr auto auto;
    align-items: start;
    gap: 0.35rem;
}

.invite-points-label {
    color: #5f6f82;
    font-weight: 600;
    line-height: 1.35;
}

.invite-points-value {
    color: #1d2b4f;
    font-size: clamp(2rem, 3vw, 2.45rem);
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    align-self: end;
}

.invite-points-note {
    color: #8090a4;
    font-size: 0.9rem;
    line-height: 1.35;
}

.invite-points-subnote {
    color: #8090a4;
    font-size: 0.82rem;
    line-height: 1.35;
}

.invite-points-subnote-empty {
    visibility: hidden;
}

.invite-redemption-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e6ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 31, 55, 0.08);
}

.invite-redemption-toast {
    margin-bottom: 0;
    font-weight: 700;
}

.invite-redemption-form {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.invite-redemption-auto-form {
    display: grid;
    gap: 0.35rem;
}

.invite-redemption-status {
    min-height: 1.15rem;
    margin: 0;
    color: #5f6f82;
    font-size: 0.84rem;
    font-weight: 700;
}

.invite-section-card {
    padding: 1.1rem 1.2rem;
}

.invite-section-card + .invite-section-card {
    margin-top: 1.4rem;
}

.invite-section-card h2 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    color: #1d2b4f;
}

.invite-section-card > p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #5f6f82;
}

.invite-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-right: 1rem;
}

.invite-joined-date {
    font-variant-numeric: tabular-nums;
    cursor: help;
}

.invite-cell-number {
    text-align: right;
}


.invite-qualify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: help;
}

.invite-qualify-badge-ok {
    background: #e8f7ef;
    border: 1px solid #b9e3c9;
    color: #1b7a48;
}

.invite-qualify-badge-pending {
    background: #fff5ea;
    border: 1px solid #f0d1a6;
    color: #9a5a12;
}

.invite-modal {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 29, 54, 0.62);
    overflow: hidden;
}

.invite-modal.is-open {
    display: flex;
}

.invite-modal-card {
    width: min(760px, calc(100vw - 2rem));
    min-width: 0;
    max-height: min(80vh, 860px);
    padding: 1.05rem 1.15rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.invite-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.invite-modal-head h2 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.invite-modal-card p {
    margin: 0.55rem 0;
    color: #2f3f56;
    line-height: 1.55;
}

.invite-modal-section-title {
    margin: 1rem 0 0.15rem;
    color: #1d2b4f;
    font-size: 1.05rem;
}

.invite-modal-card .intro-modal-body {
    overflow-y: auto;
    padding-right: 0.4rem;
    overflow-wrap: anywhere;
}

.invite-modal-actions {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.invite-modal-actions .btn {
    min-width: 11.5rem;
}

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

    .invite-token-box,
    .invite-token-box-wide {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
    }

    .invite-inline-copy-btn {
        justify-self: end;
    }

    .invite-points-body {
        grid-template-columns: 1fr;
    }

    .invite-points-value {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
    }

    .invite-modal-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .invite-cell-number,
    .invite-num {
        text-align: left;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .invite-hero,
    .invite-card,
    .invite-section-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .stats-chart-card,
    .stats-hero-card,
    .stats-section-block {
        padding: 0.9rem;
    }

    .stats-help-trigger {
        width: 2.1rem;
        height: 2.1rem;
    }

    .stats-card-actions {
        width: auto;
    }

    .stats-timeframe-button {
        padding-inline: 0.55rem;
    }

    .stats-expand-trigger {
        display: none;
    }

    .stats-chart-host {
        min-height: 220px;
    }

    .stats-chart-host-lg {
        min-height: 270px;
    }

    .stats-chart-host-short {
        min-height: 200px;
    }

    .stats-empty-state {
        min-height: 200px;
    }
}
