/*
Theme Name: JobPortal Classic
Theme URI: https://example.com
Author: OpenAI
Description: A custom classic WordPress recruitment portal theme with a phased recruiter-first system.
Version: 1.0
*/

:root {
    --page: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --surface-tint: #eef7f6;
    --ink: #162033;
    --muted: #627084;
    --line: #d8e0ea;
    --line-strong: #b8c4d4;
    --primary: #243b6b;
    --primary-dark: #18294b;
    --primary-soft: #e9eef8;
    --accent: #12a594;
    --accent-dark: #0b756c;
    --accent-soft: #e7f7f5;
    --success: #1f8a5b;
    --danger: #b42318;
    --warning: #b7791f;
    --info: #3158a8;
    --focus: rgba(18, 165, 148, 0.24);
    --shadow: 0 18px 45px rgba(22, 32, 51, 0.09);
    --shadow-soft: 0 10px 24px rgba(22, 32, 51, 0.07);
    --shadow-subtle: 0 4px 14px rgba(22, 32, 51, 0.05);
    --radius: 8px;
    --radius-sm: 6px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 34px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
}

body:not(.logged-in) {
    background:
        linear-gradient(180deg, #eef7f6 0, rgba(246, 248, 251, 0) 360px),
        var(--page);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 16px;
}

p {
    margin: 0 0 14px;
}

img,
iframe {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
td,
th,
.jp-card,
.job-card,
.cv-result-card,
.candidate-profile-section,
.candidate-chip-list span {
    overflow-wrap: anywhere;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(22, 32, 51, 0.02);
    position: sticky;
    top: 0;
    z-index: 50;
}

body:not(.logged-in) .site-header {
    backdrop-filter: blur(18px);
    border-bottom-color: rgba(184, 196, 212, 0.7);
}

.site-header-inner,
.site-footer-inner {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    padding: 14px 24px;
    width: 100%;
}

.site-brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: 10px;
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--ink);
}

.site-brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 7px;
    color: #fff;
    display: inline-flex;
    font-size: 0.82rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

body:not(.logged-in) .site-brand-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    box-shadow: 0 9px 20px rgba(18, 165, 148, 0.22);
}

.site-nav,
.dashboard-nav {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}

.site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.site-role-nav {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 249, 0.8));
    border: 1px solid rgba(184, 196, 212, 0.66);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 34px rgba(22, 32, 51, 0.07);
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 3px;
    justify-content: flex-end;
    max-width: min(760px, 100%);
    min-width: 0;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.site-role-nav::-webkit-scrollbar {
    display: none;
}

.site-nav-link {
    align-items: center;
    border-radius: 999px;
    color: #35476a;
    display: inline-flex;
    font-size: 0.91rem;
    font-weight: 800;
    gap: 7px;
    line-height: 1;
    min-height: 34px;
    padding: 9px 14px;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.site-nav-link:hover {
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    box-shadow: 0 9px 20px rgba(22, 32, 51, 0.07);
}

.site-nav-link.is-active {
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(22, 32, 51, 0.08);
}

.site-nav-link.is-active::after {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 999px;
    bottom: 5px;
    content: "";
    height: 2px;
    left: 14px;
    position: absolute;
    right: 14px;
}

.site-nav-badge {
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(18, 165, 148, 0.2);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 900;
    height: 19px;
    justify-content: center;
    min-width: 19px;
    padding: 0 6px;
}

.site-account-menu {
    position: relative;
}

.site-account-menu summary {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(184, 196, 212, 0.78);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    list-style: none;
    min-height: 38px;
    padding: 7px 13px 7px 8px;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.site-account-menu summary::-webkit-details-marker {
    display: none;
}

.site-account-menu summary::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--muted);
    content: "";
    margin-left: 3px;
}

.site-account-menu[open] summary,
.site-account-menu summary:hover {
    background: #fff;
    border-color: rgba(36, 59, 107, 0.2);
    box-shadow: 0 12px 26px rgba(22, 32, 51, 0.08);
    transform: translateY(-1px);
}

.site-account-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.site-account-menu summary span:last-child {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-account-menu > div {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(184, 196, 212, 0.72);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(22, 32, 51, 0.16);
    min-width: 236px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 80;
}

.site-account-menu > div::before {
    background: #fff;
    border-left: 1px solid rgba(184, 196, 212, 0.72);
    border-top: 1px solid rgba(184, 196, 212, 0.72);
    content: "";
    height: 12px;
    position: absolute;
    right: 22px;
    top: -7px;
    transform: rotate(45deg);
    width: 12px;
}

.site-account-menu a {
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ink);
    display: block;
    font-weight: 750;
    line-height: 1.25;
    padding: 11px 12px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-account-menu a[href*="logout"] {
    color: #9f1239;
}

.site-account-menu a[href*="logout"]:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.site-account-menu a span {
    display: block;
}

.site-account-menu a small {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2px;
}

.site-account-menu a:hover {
    background: #fff;
    border-color: rgba(184, 196, 212, 0.66);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.btn.site-nav-primary-action {
    flex: 0 0 auto;
    background:
        linear-gradient(135deg, var(--primary-dark), var(--primary) 54%, var(--accent-dark));
    border-color: transparent;
    border-radius: 999px;
    box-shadow: 0 15px 32px rgba(24, 41, 75, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    gap: 8px;
    min-height: 40px;
    overflow: hidden;
    padding-inline: 17px;
    position: relative;
}

.btn.site-nav-primary-action::after {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
    height: 7px;
    margin-left: 2px;
    transform: rotate(45deg);
    width: 7px;
}

.btn.site-nav-primary-action::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    content: "";
    inset: 0 auto 0 -70%;
    position: absolute;
    transform: skewX(-18deg);
    transition: left 0.32s ease;
    width: 55%;
}

.btn.site-nav-primary-action:hover {
    background:
        linear-gradient(135deg, var(--primary), var(--primary-dark) 52%, var(--accent-dark));
    box-shadow: 0 18px 38px rgba(24, 41, 75, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #fff;
    transform: translateY(-1px);
}

.btn.site-nav-primary-action:hover::before {
    left: 118%;
}

.guest-account-menu summary {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(184, 196, 212, 0.72);
    box-shadow: none;
    color: var(--primary-dark);
    font-size: 0.92rem;
    min-height: 36px;
    padding: 8px 13px;
}

.guest-account-menu[open] summary,
.guest-account-menu summary:hover {
    background: #fff;
    box-shadow: 0 12px 26px rgba(22, 32, 51, 0.08);
}

.guest-account-menu > div {
    min-width: 306px;
    padding: 8px;
}

.guest-account-menu a {
    padding: 12px;
}

.site-account-divider {
    background: var(--line);
    display: block;
    height: 1px;
    margin: 6px 3px;
}

.container {
    margin: 0 auto;
    max-width: 1240px;
    width: min(94%, 1240px);
}

.site-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 28px;
    min-height: 620px;
    padding: 30px;
}

body:not(.logged-in) .site-main {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.candidate-page,
.recruiter-page,
.dashboard {
    width: 100%;
}

.dashboard > .dashboard-nav {
    display: none;
}

.jp-card,
.jp-auth-card,
.jp-search-panel,
.jp-dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.jp-card {
    padding: var(--space-lg);
}

.jp-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.jp-card-header,
.jp-card-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: space-between;
}

.jp-card-header {
    border-bottom: 1px solid var(--line);
    margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-md);
    padding: var(--space-md) var(--space-lg);
}

.jp-card-footer {
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
    margin: var(--space-md) calc(var(--space-lg) * -1) calc(var(--space-lg) * -1);
    padding: var(--space-md) var(--space-lg);
}

.jp-btn,
.jp-btn-primary,
.jp-btn-secondary,
.jp-btn-outline {
    align-items: center;
    border-radius: var(--radius-sm);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    text-decoration: none;
}

.jp-btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.jp-btn-secondary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
}

.jp-btn-outline {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--primary);
}

.jp-badge,
.jp-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
}

.jp-badge {
    background: var(--primary-soft);
    border: 1px solid #cdd8ee;
    color: var(--primary);
}

.jp-status {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    color: var(--accent-dark);
}

.jp-alert {
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    padding: 13px 15px;
}

.jp-alert-success {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    color: var(--accent-dark);
}

.jp-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.jp-form-control {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.jp-form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus);
    outline: none;
}

.site-footer {
    color: var(--muted);
    margin: 26px 0 34px;
}

.site-footer-inner {
    justify-content: center;
    padding-bottom: 0;
    padding-top: 0;
}

.btn,
button.btn,
input[type="submit"] {
    align-items: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-subtle);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.btn:focus-visible,
button.btn:focus-visible,
input[type="submit"]:focus-visible,
.jp-btn:focus-visible,
.jp-btn-primary:focus-visible,
.jp-btn-secondary:focus-visible,
.jp-btn-outline:focus-visible,
a:focus-visible,
summary:focus-visible {
    box-shadow: 0 0 0 4px var(--focus);
    outline: 2px solid transparent;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.jp-form-control:focus-visible,
.site-nav-link:focus-visible,
.dashboard-nav a:focus-visible,
.dashboard-nav .btn:focus-visible,
.resume-search-tab:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus);
    outline: 2px solid transparent;
}

.btn:disabled,
button.btn:disabled,
input[type="submit"]:disabled,
.btn[disabled],
.btn[aria-disabled="true"],
.jp-btn[disabled],
.jp-btn-primary[disabled],
.jp-btn-secondary[disabled],
.jp-btn-outline[disabled] {
    background: #e5ebf3;
    border-color: #d2dbe7;
    color: #7b8798;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
    transform: none;
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-soft);
    color: #fff;
    transform: translateY(-1px);
}

.btn-nav {
    min-height: 36px;
    padding: 8px 13px;
}

.btn-muted,
.btn-secondary {
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: none;
    color: var(--primary);
}

.btn-muted:hover,
.btn-secondary:hover {
    background: var(--primary-soft);
    border-color: #bcc9df;
    color: var(--primary-dark);
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-warning:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #8f1d15;
}

.hero {
    background: var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #fff;
    margin: -8px 0 28px;
    padding: 46px 34px;
}

.visitor-hero {
    align-items: flex-end;
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.96), rgba(36, 59, 107, 0.92)),
        radial-gradient(circle at 82% 16%, rgba(18, 165, 148, 0.32), transparent 34%);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 360px;
    min-height: 390px;
    overflow: hidden;
    position: relative;
}

.visitor-hero::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.16;
    position: absolute;
}

.visitor-hero-copy,
.visitor-hero .hero-actions {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #dff8f5;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 16px;
    padding: 6px 10px;
    text-transform: uppercase;
}

.visitor-hero h1 {
    max-width: 780px;
}

.visitor-hero .hero-actions {
    align-content: end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    display: grid;
    padding: 18px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0;
}

.hero p {
    color: #dfe7f6;
    font-size: 1.1rem;
    max-width: 660px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.visitor-paths {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -10px 0 28px;
}

.visitor-path-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    position: relative;
}

.visitor-path-card::before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 24px;
    position: absolute;
    right: 24px;
    top: 0;
}

.visitor-path-card span {
    color: var(--accent-dark);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.visitor-path-card h2 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.visitor-path-card p {
    color: var(--muted);
}

.visitor-path-card a {
    color: var(--primary);
    font-weight: 850;
}

.visitor-path-card a::after {
    content: " ->";
}

.portal-choice-page {
    margin: 0 auto;
    max-width: 1120px;
}

.portal-choice-hero {
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.97), rgba(36, 59, 107, 0.9)),
        radial-gradient(circle at 84% 20%, rgba(18, 165, 148, 0.28), transparent 34%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #fff;
    margin-bottom: 18px;
    overflow: hidden;
    padding: 42px 34px;
    position: relative;
}

.portal-choice-hero::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.14;
    position: absolute;
}

.portal-choice-hero > * {
    position: relative;
    z-index: 1;
}

.portal-choice-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0;
    max-width: 760px;
}

.portal-choice-hero p {
    color: #dfe7f6;
    font-size: 1.08rem;
    max-width: 650px;
}

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

.portal-choice-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 360px;
    padding: 26px;
    position: relative;
}

.portal-choice-card::before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 26px;
    position: absolute;
    right: 26px;
    top: 0;
}

.portal-choice-card-recruiter::before {
    background: var(--primary);
}

.portal-choice-icon {
    align-items: center;
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 8px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.portal-choice-card-recruiter .portal-choice-icon {
    background: var(--primary-soft);
    border-color: #c8d3e7;
    color: var(--primary);
}

.portal-choice-kicker {
    color: var(--accent-dark);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.portal-choice-card-recruiter .portal-choice-kicker {
    color: var(--primary);
}

.portal-choice-card h2 {
    color: var(--primary-dark);
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.portal-choice-card p {
    color: var(--muted);
    font-size: 1.02rem;
}

.portal-choice-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 0 0 28px;
}

.public-jobs-hero {
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 18px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.public-jobs-hero::before {
    background: var(--accent);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 6px;
}

.public-jobs-hero .hero-kicker {
    background: var(--accent-soft);
    border-color: #b8e9e2;
    color: var(--accent-dark);
}

.public-jobs-hero h1 {
    color: var(--primary-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.public-jobs-hero p {
    color: var(--muted);
    max-width: 680px;
}

.public-jobs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.page-heading-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.page-heading-row h2 {
    color: var(--primary);
    margin: 0;
}

.dashboard-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px;
}

.dashboard-summary span {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    display: inline-flex;
    flex-direction: column;
    min-width: 140px;
    padding: 9px 11px;
}

.dashboard-summary strong {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.dashboard-summary.compact {
    max-width: 680px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    position: relative;
}

.stat::before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 20px;
    position: absolute;
    right: 20px;
    top: 0;
}

.stat h3 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0 0 4px;
}

.stat p {
    color: var(--muted);
    font-weight: 650;
    margin: 0;
}

.job-card,
.resume-result-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
    padding: 22px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:not(.logged-in) .job-card {
    border-color: rgba(216, 224, 234, 0.92);
}

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

.single-job-card {
    max-width: 980px;
}

.job-content {
    color: var(--ink);
    margin: 20px 0;
}

.job-content ul,
.job-content ol {
    padding-left: 22px;
}

.job-card:hover,
.resume-result-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.job-details {
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
    padding: 16px;
}

.single-job-page {
    display: grid;
    gap: 18px;
}

.single-job-hero {
    align-items: end;
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.98), rgba(36, 59, 107, 0.94)),
        radial-gradient(circle at 90% 14%, rgba(18, 165, 148, 0.3), transparent 34%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #fff;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px;
}

.single-job-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 10px;
}

.single-job-hero p {
    color: #dfe7f6;
    font-size: 1.05rem;
    margin: 0;
}

.single-job-hero a {
    color: #fff;
    font-weight: 850;
}

.single-job-hero-actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.single-job-hero-actions span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: block;
    padding: 12px;
}

.single-job-hero-actions strong,
.single-job-hero-actions small {
    display: block;
}

.single-job-hero-actions strong {
    color: #fff;
    font-size: 1rem;
}

.single-job-hero-actions small {
    color: #dfe7f6;
    font-weight: 750;
}

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

.single-job-main,
.single-job-sidebar {
    display: grid;
    gap: 18px;
}

.single-job-sidebar {
    position: sticky;
    top: 92px;
}

.single-job-section,
.single-job-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.single-job-section h2,
.single-job-panel h2 {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.single-job-apply-panel {
    border-top: 4px solid var(--accent);
}

.single-job-apply-panel .candidate-job-actions,
.single-job-apply-panel .visitor-job-cta {
    margin-top: 0;
}

.single-job-apply-panel .visitor-job-cta {
    align-items: stretch;
    background: linear-gradient(180deg, #f8fbff, #eef7f6);
    flex-direction: column;
}

.single-job-apply-panel .visitor-job-cta > div:first-child {
    width: 100%;
}

.single-job-apply-panel .visitor-job-cta strong {
    font-size: 1.05rem;
}

.single-job-apply-panel .visitor-job-cta span {
    line-height: 1.55;
}

.single-job-apply-panel .visitor-job-cta-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
}

.single-job-apply-panel .btn {
    width: 100%;
}

.single-job-apply-panel p {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 750;
    margin: 12px 0 0;
    padding: 10px;
}

.single-job-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.single-job-facts div {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.single-job-facts dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.single-job-facts dd {
    color: var(--ink);
    font-weight: 800;
    margin: 0;
}

.single-job-apply-form .application-form {
    max-width: none;
}

.job-content {
    color: var(--ink);
    font-size: 1.02rem;
}

.job-content p:last-child,
.job-content ul:last-child,
.job-content ol:last-child {
    margin-bottom: 0;
}

form input,
form textarea,
form select {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    margin-bottom: 15px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus);
    outline: none;
}

.jobportal-form .wp-editor-wrap {
    color: var(--ink);
    margin-bottom: 16px;
}

.jobportal-form .wp-editor-container {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.jobportal-form .mce-toolbar .mce-btn button,
.jobportal-form .quicktags-toolbar input {
    width: auto;
}

.jobportal-form {
    max-width: 920px;
}

.auth-page {
    margin: 0 auto;
    max-width: 680px;
}

.auth-split-page {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(300px, 0.82fr) minmax(380px, 1.18fr);
    max-width: 1120px;
    overflow: hidden;
    padding: 0;
}

.auth-intro-panel {
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.98), rgba(36, 59, 107, 0.94)),
        radial-gradient(circle at 86% 16%, rgba(18, 165, 148, 0.3), transparent 34%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    padding: 34px;
}

.recruiter-auth-intro {
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.98), rgba(36, 59, 107, 0.94)),
        radial-gradient(circle at 86% 16%, rgba(140, 95, 191, 0.26), transparent 34%);
}

.auth-intro-panel h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
}

.auth-intro-panel p {
    color: #dfe7f6;
    font-size: 1.04rem;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.auth-benefits span {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 850;
    padding: 7px 10px;
}

.auth-form-panel {
    background: #fff;
    padding: 34px;
}

.auth-form-panel h2 {
    color: var(--primary-dark);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 8px;
    text-align: left;
}

.auth-form-panel h2::after {
    display: none;
}

.auth-compact-form {
    box-shadow: none;
    margin: 20px 0 16px;
    max-width: none;
    padding: 0;
}

.auth-compact-form::before {
    display: none;
}

.auth-compact-form .jobportal-grid {
    gap: 14px;
}

.auth-compact-form input {
    margin-bottom: 12px;
}

.auth-compact-form .jobportal-grid input {
    margin-bottom: 0;
}

.auth-compact-form .inline-field {
    margin: 4px 0 16px;
}

.auth-compact-form .btn {
    min-height: 48px;
    width: 100%;
}

.auth-switch-link {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 750;
    margin: 16px 0 0;
    padding: 12px;
    text-align: center;
}

.auth-switch-link a {
    font-weight: 900;
}

.auth-page > h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    margin-bottom: 8px;
    text-align: center;
}

.auth-page > h2::after {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    display: block;
    height: 4px;
    margin: 14px auto 0;
    width: 62px;
}

.auth-page > p {
    color: var(--muted);
    text-align: center;
}

.register-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    max-width: 560px;
    margin: 24px auto 16px;
    padding: 28px;
    position: relative;
}

.register-form::before {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
    content: "";
    height: 5px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.jobportal-form label {
    color: var(--ink);
    display: block;
    font-size: 0.94rem;
    font-weight: 750;
    margin-bottom: 6px;
}

.jobportal-form input::placeholder,
.jobportal-form textarea::placeholder {
    color: #94a3b8;
}

.jobportal-form .inline-field {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 9px 10px;
}

.jobportal-form .inline-field input {
    margin: 0;
    min-height: auto;
    width: auto;
}

.jobportal-grid.two,
.jobportal-grid.three {
    display: grid;
    gap: 16px;
}

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

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

.search-form {
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 24px;
    padding: 18px;
}

.public-search-form {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
    align-items: stretch;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.search-form input,
.search-form select {
    margin-bottom: 0;
}

.search-form p,
.public-search-actions {
    margin: 0;
}

.public-search-form label {
    color: var(--primary-dark);
    display: block;
    font-size: 0.82rem;
    font-weight: 850;
    margin-bottom: 6px;
}

.public-search-form .advanced-filter-panel {
    grid-column: 1 / -1;
}

.public-search-actions {
    align-items: end;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.dashboard {
    margin-top: 0;
}

.dashboard-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.dashboard-nav a,
.dashboard-nav .btn {
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    color: var(--primary);
    flex: 0 0 auto;
    min-height: 38px;
    margin-right: 0;
    padding: 9px 12px;
    position: relative;
    transform: none;
    white-space: nowrap;
}

.dashboard-nav a:hover,
.dashboard-nav .btn:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    transform: none;
}

.dashboard-nav .is-active,
.dashboard-nav .btn.is-active {
    background: transparent;
    color: var(--primary);
}

.dashboard-nav .is-active::after,
.dashboard-nav .btn.is-active::after {
    background: var(--accent);
    border-radius: 999px;
    bottom: 4px;
    content: "";
    height: 3px;
    left: 12px;
    position: absolute;
    right: 12px;
}

.dashboard-nav a[href*="logout"],
.dashboard-nav .btn[href*="logout"] {
    color: var(--muted);
    margin-left: auto;
}

.dashboard-nav a[href*="logout"]:hover,
.dashboard-nav .btn[href*="logout"]:hover {
    background: #fff1f2;
    color: var(--danger);
}

.errors,
.jobportal-notice {
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 20px;
    padding: 13px 15px;
}

.errors {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.jobportal-notice {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    color: var(--accent-dark);
}

.jobportal-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    overflow-x: auto;
}

.jobportal-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 860px;
    width: 100%;
}

.jobportal-table th,
.jobportal-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px;
    text-align: left;
    vertical-align: top;
    word-break: normal;
}

.jobportal-table th {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.86rem;
    letter-spacing: 0;
    text-transform: none;
}

.jobportal-table a {
    font-weight: 800;
}

.jobportal-table small,
.jobportal-table span {
    color: var(--muted);
}

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

.jobportal-actions {
    white-space: nowrap;
}

.jobportal-actions,
.jobportal-actions form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jobportal-actions a {
    font-weight: 750;
    margin-right: 0;
}

.jobportal-actions .jobportal-action-menu a {
    margin-right: 0;
}

.jobportal-row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 220px;
}

.jobportal-row-actions a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--primary);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 850;
    min-height: 34px;
    padding: 6px 9px;
}

.jobportal-row-actions a:hover {
    background: var(--primary-soft);
    border-color: #bcc9df;
    color: var(--primary-dark);
}

.jobportal-row-actions a.is-danger {
    color: var(--danger);
}

.jobportal-row-actions a.is-danger:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--danger);
}

.jobportal-status-pill {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 6px;
    padding: 5px 9px;
}

.jobportal-status-pill.status-publish,
.jobportal-status-pill.status-reviewed,
.jobportal-status-pill.status-shortlisted,
.jobportal-status-pill.status-interview,
.jobportal-status-pill.status-offer,
.jobportal-status-pill.status-hired,
.jobportal-status-pill.status-scheduled,
.jobportal-status-pill.status-accepted {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.jobportal-status-pill.status-pending,
.jobportal-status-pill.status-submitted {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.jobportal-status-pill.status-draft {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.jobportal-status-pill.status-rejected,
.jobportal-status-pill.status-withdrawn,
.jobportal-status-pill.status-declined,
.jobportal-status-pill.status-cancelled {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.jobportal-status-pill.status-reschedule_requested {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.application-pipeline-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    margin-bottom: 18px;
}

.application-stage {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 82px;
    padding: 13px;
}

.application-stage:hover,
.application-stage.is-active {
    border-color: var(--accent);
    color: var(--ink);
}

.application-stage span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.application-stage strong {
    color: var(--primary);
    font-size: 1.55rem;
    line-height: 1;
}

.application-filter-form {
    grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto auto;
}

.application-pipeline-form {
    min-width: 260px;
    display: grid;
    gap: 8px;
}

.application-pipeline-form label {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 8px 0 4px;
}

.application-pipeline-form input,
.application-pipeline-form textarea {
    margin-bottom: 0;
}

.application-pipeline-form textarea {
    min-height: 78px;
}

.application-next-step {
    color: var(--muted);
    display: block;
    font-weight: 700;
    margin-top: 6px;
}

.application-timeline {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding: 16px 18px;
}

.application-timeline.is-compact {
    border: 1px solid rgba(184, 196, 212, 0.7);
    border-radius: var(--radius);
    margin-top: 12px;
    padding: 10px;
}

.application-timeline-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.application-timeline-steps {
    counter-reset: application-step;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.application-timeline.is-compact .application-timeline-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    grid-template-columns: none;
}

.application-timeline-steps li {
    color: var(--muted);
    display: grid;
    gap: 6px;
    min-width: 0;
    position: relative;
}

.application-timeline-steps li::before {
    background: #dbe4ef;
    content: "";
    height: 2px;
    left: 18px;
    position: absolute;
    right: calc(-50% - 4px);
    top: 11px;
    z-index: 0;
}

.application-timeline-steps li:last-child::before {
    display: none;
}

.application-timeline-steps li > span {
    align-items: center;
    background: #fff;
    border: 2px solid #dbe4ef;
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    position: relative;
    width: 24px;
    z-index: 1;
}

.application-timeline-steps li > span::after {
    background: transparent;
    border-radius: 999px;
    content: "";
    height: 8px;
    width: 8px;
}

.application-timeline-steps strong {
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.application-timeline-steps li.is-complete,
.application-timeline-steps li.is-current {
    color: var(--primary-dark);
}

.application-timeline-steps li.is-complete::before {
    background: var(--accent);
}

.application-timeline-steps li.is-complete > span,
.application-timeline-steps li.is-current > span {
    border-color: var(--accent);
}

.application-timeline-steps li.is-complete > span {
    background: var(--accent);
}

.application-timeline-steps li.is-complete > span::after {
    background: #fff;
}

.application-timeline-steps li.is-current > span {
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.application-timeline-steps li.is-current > span::after {
    background: var(--accent);
}

.application-timeline.is-compact .application-timeline-head {
    margin-bottom: 0;
}

.application-timeline.is-compact .application-timeline-steps li {
    align-items: center;
    background: #f8fbff;
    border: 1px solid rgba(184, 196, 212, 0.68);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    padding: 5px 8px;
}

.application-timeline.is-compact .application-timeline-steps li::before {
    display: none;
}

.application-timeline.is-compact .application-timeline-steps li > span {
    border-width: 1px;
    height: 14px;
    width: 14px;
}

.application-timeline.is-compact .application-timeline-steps li > span::after {
    height: 6px;
    width: 6px;
}

.application-timeline.is-compact .application-timeline-steps strong {
    font-size: 0.72rem;
    white-space: nowrap;
}

.application-timeline.is-compact .application-timeline-steps li.is-complete {
    background: #ecfdf3;
    border-color: #86efac;
}

.application-timeline.is-compact .application-timeline-steps li.is-current {
    background: var(--accent-soft);
    border-color: #7ddbd2;
}

.application-timeline.is-compact .application-timeline-steps li.is-current > span {
    box-shadow: none;
}

.application-timeline.is-compact .application-timeline-meta {
    gap: 6px;
}

.application-timeline.is-compact .application-timeline-meta span {
    font-size: 0.72rem;
    padding: 4px 8px;
}

.application-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.application-timeline-meta span {
    background: #f8fbff;
    border: 1px solid rgba(184, 196, 212, 0.68);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    padding: 5px 9px;
}

.jobportal-interview-panel {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid rgba(184, 196, 212, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    margin-top: 14px;
    padding: 14px;
}

.jobportal-interview-summary {
    background: #f8fbff;
    border: 1px solid rgba(184, 196, 212, 0.66);
    border-radius: calc(var(--radius) - 2px);
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.jobportal-interview-summary strong {
    color: var(--primary-dark);
    display: block;
    font-size: 1rem;
}

.jobportal-interview-summary p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.jobportal-interview-form {
    display: grid;
    gap: 9px;
    max-width: none;
}

.jobportal-interview-form label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    margin: 0;
    text-transform: uppercase;
}

.jobportal-interview-form input,
.jobportal-interview-form select,
.jobportal-interview-form textarea {
    margin-bottom: 0;
}

.jobportal-interview-form textarea {
    min-height: 84px;
}

.team-add-member,
.candidate-dashboard-section {
    margin-top: 30px;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.profile-completion-card {
    align-items: center;
    background: linear-gradient(180deg, #fff, #f8fbff);
    display: grid;
    gap: 18px;
    grid-template-columns: 132px minmax(0, 1fr);
    margin-top: 0;
}

.profile-completion-score {
    align-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(var(--accent) calc(var(--completion-score) * 1%), #e2e8f0 0);
    border: 1px solid rgba(184, 196, 212, 0.74);
    border-radius: 999px;
    box-shadow: inset 0 0 0 8px #fff, 0 14px 28px rgba(22, 32, 51, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    text-align: center;
}

.profile-completion-score strong {
    color: var(--primary-dark);
    font-size: 1.85rem;
    line-height: 1;
}

.profile-completion-score span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    margin-top: 6px;
    text-transform: uppercase;
}

.profile-completion-content {
    min-width: 0;
}

.profile-completion-content .page-heading-row {
    margin-bottom: 10px;
}

.profile-completion-missing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-completion-missing span {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 850;
    padding: 6px 10px;
}

.profile-completion-missing.is-complete span {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.jobportal-empty-state {
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    padding: 20px;
}

.jobportal-empty-state h4 {
    color: var(--ink);
    margin-bottom: 8px;
}

.jobportal-empty-state p {
    color: var(--muted);
    max-width: 620px;
}

.visitor-job-cta {
    align-items: center;
    background: linear-gradient(180deg, #f8fbff, #eef7f6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 14px;
}

.visitor-job-cta strong,
.visitor-job-cta span {
    display: block;
}

.visitor-job-cta strong {
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.visitor-job-cta span {
    color: var(--muted);
    font-size: 0.92rem;
}

.visitor-job-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.advanced-filter-panel {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 0 15px;
    padding: 0;
}

.advanced-filter-panel summary {
    align-items: center;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    font-weight: 850;
    justify-content: space-between;
    list-style: none;
    min-height: 44px;
    padding: 10px 12px;
}

.advanced-filter-panel summary::-webkit-details-marker {
    display: none;
}

.advanced-filter-panel summary::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    content: "";
    margin-left: 10px;
}

.advanced-filter-panel[open] summary {
    border-bottom: 1px solid var(--line);
}

.advanced-filter-panel[open] summary::after {
    transform: rotate(180deg);
}

.advanced-filter-panel > .jobportal-grid,
.advanced-filter-panel > .jobportal-help {
    margin: 0;
    padding: 12px;
}

.advanced-filter-panel > .jobportal-grid + .jobportal-help {
    padding-top: 0;
}

.location-coordinate-panel {
    margin-bottom: 18px;
}

.team-company-switcher {
    max-width: 420px;
}

.team-inline-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

.team-inline-form select {
    margin-bottom: 0;
    max-width: 160px;
}

.team-inline-form .btn {
    cursor: pointer;
}

.candidate-job-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.job-alert-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    padding: 18px;
}

.job-alert-form {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    max-width: none;
    padding-bottom: 18px;
}

.recommended-job-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.recommended-job-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 360px;
    position: relative;
}

.recommended-job-card > p {
    color: var(--ink);
    flex: 1 1 auto;
}

.recommended-job-card .candidate-chip-list {
    align-content: flex-start;
    padding: 0;
}

.recommended-job-card .btn {
    align-self: flex-start;
    margin-top: 20px;
}

.recommended-job-score {
    align-items: center;
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: var(--radius-sm);
    color: var(--accent-dark);
    display: inline-flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 6px 8px;
}

.recommended-job-score strong {
    font-size: 1.05rem;
    line-height: 1;
}

.recommended-job-score span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.candidate-application-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.candidate-application-main {
    align-items: flex-start;
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px;
}

.candidate-application-label {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.candidate-application-main h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.candidate-application-main p {
    color: var(--muted);
    margin: 0;
}

.candidate-application-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.candidate-application-meta > span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.candidate-application-card .portal-message-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 18px;
}

.candidate-application-card .portal-message-panel h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 12px;
}

.candidate-application-card .portal-message-form {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 14px;
    padding: 14px;
}

.candidate-application-card .portal-message-form textarea {
    min-height: 88px;
}

.candidate-application-preview-actions {
    align-items: center;
    border-top: 1px solid rgba(184, 196, 212, 0.68);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
}

.candidate-saved-jobs-list {
    display: grid;
    gap: 14px;
}

.candidate-saved-job-card {
    margin: 0;
}

.candidate-saved-job-main {
    display: grid;
    gap: 12px;
}

.candidate-saved-job-main h4 {
    margin-bottom: 6px;
}

.candidate-saved-job-main p {
    color: var(--muted);
    margin: 0;
}

.candidate-saved-job-card .candidate-application-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
}

.candidate-saved-job-card .candidate-job-actions {
    margin-top: 0;
}

.company-profile-editor {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    padding: 18px;
}

.company-logo-upload {
    align-items: center;
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    border: 1px solid rgba(184, 196, 212, 0.72);
    border-radius: var(--radius);
    display: grid;
    gap: 16px;
    grid-template-columns: 96px minmax(0, 1fr);
    margin-bottom: 16px;
    padding: 14px;
}

.company-logo-upload-preview {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: inline-flex;
    height: 96px;
    justify-content: center;
    overflow: hidden;
    width: 96px;
}

.company-logo-upload-preview img {
    display: block;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.company-logo-upload-preview span {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
}

.company-logo-upload input[type="file"] {
    background: #fff;
    border: 1px dashed rgba(36, 59, 107, 0.28);
    cursor: pointer;
    padding: 12px;
}

.company-logo-remove {
    margin-top: 8px;
}

.company-profile-form {
    max-width: none;
}

.company-profile-page {
    display: grid;
    gap: 22px;
}

.company-profile-hero {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    display: grid;
    gap: 20px;
    grid-template-columns: auto 1fr;
    padding: 24px;
}

.company-profile-logo {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 96px;
    object-fit: contain;
    padding: 10px;
    width: 96px;
}

.company-profile-logo-placeholder {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    font-size: 2rem;
    font-weight: 900;
    justify-content: center;
}

.company-profile-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.company-profile-main,
.company-profile-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    padding: 22px;
}

.company-profile-sidebar {
    position: sticky;
    top: 92px;
}

.company-profile-sidebar .btn {
    margin-bottom: 16px;
    width: 100%;
}

.company-job-list {
    margin-top: 16px;
}

.portal-message-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    margin-top: 16px;
    padding: 14px;
}

.portal-message-panel h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.portal-message-panel-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.portal-message-panel-header h3 {
    margin: 0;
}

.portal-message-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.portal-message-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.portal-message-item.is-own {
    background: var(--accent-soft);
    border-color: #b8e9e2;
}

.portal-message-item p {
    margin-bottom: 6px;
}

.portal-message-item span {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
}

.jobportal-chat-panel {
    border-color: rgba(184, 196, 212, 0.72);
    padding: 16px;
}

.jobportal-chat-list {
    gap: 12px;
}

.jobportal-chat-message {
    max-width: min(82%, 720px);
}

.jobportal-chat-message.is-own {
    justify-self: end;
}

.jobportal-chat-message.is-unread {
    border-color: rgba(18, 165, 148, 0.42);
    box-shadow: 0 12px 28px rgba(18, 165, 148, 0.1);
}

.jobportal-chat-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 6px;
}

.jobportal-chat-meta strong {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.jobportal-chat-meta time,
.jobportal-chat-meta span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.jobportal-chat-meta span {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 999px;
    color: var(--accent-dark);
    padding: 2px 7px;
}

.portal-message-form {
    max-width: none;
}

.portal-message-form textarea {
    min-height: 84px;
}

.portal-message-inbox-list {
    gap: 12px;
}

.portal-message-inbox-panel .page-heading-row {
    align-items: flex-start;
    border-bottom: 0;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.portal-message-inbox-panel .page-heading-row p {
    color: var(--muted);
    margin: 4px 0 0;
}

.portal-message-inbox-panel .portal-message-inbox-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.portal-message-inbox-item {
    align-items: flex-start;
    background:
        linear-gradient(180deg, #fff, #f8fbff);
    border-color: rgba(184, 196, 212, 0.74);
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
}

.portal-message-inbox-item.is-unread {
    border-color: rgba(18, 165, 148, 0.42);
    box-shadow: 0 14px 32px rgba(18, 165, 148, 0.1);
}

.portal-message-inbox-item:hover {
    border-color: rgba(36, 59, 107, 0.2);
    box-shadow: 0 14px 32px rgba(22, 32, 51, 0.08);
}

.portal-message-inbox-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.portal-message-inbox-content {
    min-width: 0;
}

.portal-message-inbox-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.portal-message-inbox-head strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.portal-message-inbox-head time {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.portal-message-inbox-head em {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
    margin-right: 6px;
    padding: 2px 7px;
}

.portal-message-context {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.portal-message-context span,
.portal-message-context em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.portal-message-context a {
    color: var(--primary-dark);
    font-weight: 900;
}

.portal-message-inbox-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.portal-message-inbox-actions .btn {
    min-height: 36px;
    padding: 7px 12px;
}

.portal-message-summary-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.portal-message-summary-meta span {
    background: #f8fbff;
    border: 1px solid rgba(184, 196, 212, 0.68);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    padding: 4px 9px;
}

.portal-message-inbox-item .portal-message-panel {
    background: #fff;
    box-shadow: none;
    margin-top: 12px;
    padding: 12px;
}

.portal-message-inbox-item .portal-message-panel h3 {
    font-size: 0.95rem;
}

.portal-conversation-inbox {
    overflow: hidden;
}

.portal-conversation-layout {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
}

.portal-conversation-list {
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
    max-height: 720px;
    overflow-y: auto;
    padding: 12px;
}

.portal-conversation-row {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(184, 196, 212, 0.66);
    border-radius: var(--radius);
    color: var(--ink);
    display: grid;
    gap: 11px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.portal-conversation-row:hover,
.portal-conversation-row.is-active {
    border-color: rgba(36, 59, 107, 0.26);
    box-shadow: 0 14px 28px rgba(22, 32, 51, 0.09);
    transform: translateY(-1px);
}

.portal-conversation-row.is-active {
    background: #fff;
}

.portal-conversation-row.is-unread {
    border-color: rgba(18, 165, 148, 0.42);
}

.portal-conversation-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.portal-conversation-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.portal-conversation-head,
.portal-conversation-meta {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.portal-conversation-head strong,
.portal-conversation-label,
.portal-conversation-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-conversation-head strong {
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.portal-conversation-head time,
.portal-conversation-label,
.portal-conversation-preview,
.portal-conversation-meta {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.portal-conversation-preview {
    color: var(--ink);
    font-weight: 650;
}

.portal-conversation-meta em {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 999px;
    color: var(--accent-dark);
    font-style: normal;
    font-weight: 900;
    padding: 2px 8px;
}

.portal-conversation-detail {
    min-width: 0;
}

.portal-conversation-detail .jobportal-chat-panel {
    height: 100%;
    margin: 0;
}

.candidate-message-button {
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.candidate-message-button svg {
    flex: 0 0 auto;
}

.jobportal-table .portal-message-panel {
    box-shadow: none;
    margin-top: 8px;
    min-width: 260px;
    padding: 10px;
}

.job-action-form {
    display: inline-block;
    margin: 0;
}

.job-action-form .btn {
    cursor: pointer;
}

.jobportal-badge {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 6px;
    color: var(--accent-dark);
    display: inline-block;
    font-weight: 750;
    padding: 8px 10px;
}

.resume-search-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    margin-bottom: 22px;
    overflow: hidden;
}

.resume-search-tabs {
    background: var(--primary-soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px 0;
    scrollbar-width: thin;
}

.resume-search-tab {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    color: var(--primary);
    display: inline-block;
    font-weight: 800;
    flex: 0 0 auto;
    padding: 11px 18px;
    text-decoration: none;
    white-space: nowrap;
}

.resume-search-tab.is-active {
    background: var(--surface);
    border-color: var(--line);
    color: var(--accent-dark);
    position: relative;
    top: 1px;
}

.resume-search-tab:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
}

.resume-search-panel .resume-search-form {
    margin: 0;
    max-width: none;
    padding: 0;
}

.resume-search-panel-header {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 22px 24px;
}

.resume-search-panel-header h2 {
    color: #fff;
    margin: 0;
}

.resume-search-mode-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #dff8f5;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 850;
    padding: 7px 10px;
}

.resume-search-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 24px;
}

.resume-search-column {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.resume-search-column > label {
    margin-top: 10px;
}

.resume-search-column > label:first-child {
    margin-top: 0;
}

.resume-search-panel label {
    color: var(--ink);
}

.resume-search-panel input,
.resume-search-panel select {
    background: #fff;
    border-color: var(--line-strong);
    margin-bottom: 10px;
}

.resume-search-panel select[multiple] {
    min-height: 112px;
}

.resume-checkbox-row,
.candidate-social-links,
.resume-search-actions,
.resume-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resume-checkbox-row {
    margin-bottom: 18px;
}

.resume-checkbox-row .inline-field {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.9em;
    margin: 0;
    padding: 8px 10px;
}

.resume-field-hint,
.jobportal-help {
    color: #6b7d90;
    font-size: 0.92em;
}

.resume-field-hint {
    color: var(--muted);
    margin: -4px 0 16px;
}

.resume-location-token {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-block;
    font-weight: 750;
    margin: -2px 0 12px;
    padding: 6px 10px;
}

.resume-search-actions {
    align-items: center;
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
    justify-content: space-between;
    margin-top: 0;
    padding: 16px 24px;
}

.btn-search-cvs {
    background: var(--accent);
    border-color: var(--accent);
    font-size: 1.05em;
    font-weight: 800;
}

.btn-search-cvs:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.resume-results-toolbar {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.resume-results-toolbar h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin: 0;
}

.candidate-contact-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 16px;
    overflow: hidden;
}

.candidate-contact-panel > div:first-child {
    background: var(--accent-soft);
    border-bottom: 1px solid #b8e9e2;
    padding: 14px 16px;
}

.candidate-contact-panel h3 {
    color: var(--accent-dark);
    margin-bottom: 4px;
}

.candidate-contact-panel p {
    color: var(--muted);
    margin: 0;
}

.candidate-contact-list {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
}

.candidate-contact-list span {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 12px;
}

.resume-sort-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

.resume-sort-form label {
    color: var(--muted);
    font-weight: 800;
}

.resume-sort-form select {
    border-color: var(--line-strong);
    margin: 0;
    width: auto;
}

.resume-results {
    display: grid;
    gap: 16px;
}

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

.resume-result-card {
    border-left-width: 4px;
    margin-bottom: 0;
}

.cv-result-card {
    border-left: 0;
    padding: 0;
    overflow: hidden;
}

.cv-result-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.cv-result-distance {
    color: var(--accent-dark);
    font-weight: 800;
    padding: 12px 14px 8px;
}

.cv-result-titlebar {
    align-items: center;
    background: var(--primary-soft);
    border-bottom: 1px solid var(--line);
    color: #fff;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.cv-result-titlebar h3 {
    color: var(--primary);
    margin: 0;
}

.cv-result-titlebar a {
    color: var(--primary);
}

.btn-view-cv {
    background: var(--accent);
    border-color: var(--accent);
    min-height: 34px;
    padding: 7px 12px;
}

.btn-view-cv:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.cv-result-score-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 12px;
}

.cv-match-bar {
    background: #e7edf4;
    display: inline-flex;
    height: 18px;
    max-width: 180px;
    min-width: 140px;
    width: 22%;
}

.cv-match-bar span {
    background: var(--accent);
    display: block;
}

.cv-select-field {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 6px;
    margin-left: auto;
}

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

.cv-result-details div {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 8px 12px;
}

.cv-result-details div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.cv-result-details span {
    color: var(--muted);
    font-weight: 500;
    text-align: right;
}

.cv-result-details strong {
    color: var(--ink);
}

.cv-result-text {
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 10px 12px;
}

.cv-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px 12px;
}

.cv-result-actions a {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 750;
    padding: 6px 9px;
}

.cv-result-actions a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.cv-inline-action-form,
.candidate-save-form,
.resume-bulk-actions-form {
    margin: 0;
}

.cv-inline-action-form button {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    padding: 6px 9px;
}

.cv-inline-action-form button:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.cv-inline-action-form button.is-saved,
.candidate-save-form.is-saved button {
    background: var(--accent-soft);
    border-color: #b8e9e2;
    color: var(--accent-dark);
}

.cv-inline-action-form button.is-saved::before,
.candidate-save-form.is-saved button::before {
    content: "Saved";
    font-weight: 900;
    margin-right: 6px;
}

.resume-results-sidebar {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 86px;
}

.resume-results-sidebar section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.resume-results-sidebar h3 {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1rem;
    margin: 0;
    padding: 10px 12px;
}

.resume-results-sidebar p {
    padding: 12px 12px 0;
}

.resume-results-sidebar .btn,
.resume-results-sidebar button {
    margin: 0 12px 12px;
    width: calc(100% - 24px);
}

.resume-results-sidebar button:not(.btn) {
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    cursor: not-allowed;
    display: block;
    font-weight: 750;
    min-height: 44px;
    padding: 10px 12px;
    text-align: left;
    margin: 0;
}

.resume-results-sidebar button:not(.btn):disabled {
    background: #f8fafc;
    color: var(--muted);
}

.saved-search-form {
    margin: 0;
    padding: 12px;
}

.saved-search-form input[type="text"] {
    margin-bottom: 10px;
    width: 100%;
}

.saved-search-list {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.saved-search-item {
    align-items: stretch;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 12px;
}

.saved-search-info strong,
.saved-search-info span {
    display: block;
}

.saved-search-info strong {
    color: var(--ink);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-search-info span {
    color: var(--muted);
    font-size: 0.86rem;
}

.saved-search-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.saved-search-item a,
.saved-search-item button {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    min-height: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    width: auto;
}

.saved-search-item a:hover,
.saved-search-item button:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.saved-search-item form {
    margin: 0;
}

.saved-search-item button.is-danger {
    color: var(--danger);
}

.jobportal-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 16px;
}

.jobportal-pagination a,
.jobportal-pagination span {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--primary);
    display: inline-flex;
    font-weight: 750;
    min-width: 34px;
    padding: 6px 10px;
}

.jobportal-pagination a.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.jobportal-pagination a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.resume-result-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.resume-result-header h3 {
    margin-bottom: 8px;
}

.resume-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-result-meta span {
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 8px;
}

.resume-result-skills {
    background: var(--surface-soft);
    border-radius: 6px;
    padding: 10px 12px;
}

.resume-result-contact {
    font-weight: 700;
}

.jobportal-action-menu {
    position: relative;
}

.jobportal-action-menu summary {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}

.jobportal-action-menu[open] summary {
    background: var(--primary-soft);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.jobportal-action-menu > div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 180px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
}

.jobportal-action-menu a {
    border-radius: 6px;
    color: var(--ink);
    display: block;
    font-weight: 700;
    padding: 9px 10px;
}

.jobportal-action-menu a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.jobportal-action-menu a.is-danger {
    color: var(--danger);
}

.jobportal-action-menu a.is-danger:hover {
    background: #fff1f2;
    color: var(--danger);
}

.candidate-social-links {
    margin-top: 10px;
}

.candidate-social-link {
    background: var(--accent-soft);
    border: 1px solid #b8e9e2;
    border-radius: 6px;
    color: var(--primary-dark);
    display: inline-block;
    font-size: 0.92em;
    font-weight: 750;
    padding: 6px 9px;
    text-decoration: none;
}

.candidate-social-link:hover {
    background: #d9f2ef;
}

.candidate-profile-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.candidate-profile-header h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 8px;
}

.candidate-profile-header p,
.candidate-ref {
    color: var(--muted);
    font-size: 0.92rem;
}

.candidate-ref {
    font-weight: 800;
    white-space: nowrap;
}

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

.candidate-profile-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 16px;
    overflow: hidden;
}

.candidate-profile-section h3,
.candidate-profile-sidebar h3 {
    background: var(--primary-soft);
    border-bottom: 1px solid var(--line);
    color: var(--primary);
    font-size: 0.98rem;
    margin: 0;
    padding: 10px 12px;
}

.candidate-profile-section > p,
.candidate-profile-section > div:not(.candidate-detail-grid):not(.candidate-chip-list) {
    padding: 14px;
}

.candidate-profile-section > p:last-child,
.candidate-profile-section > div:last-child {
    margin-bottom: 0;
}

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

.candidate-detail-grid table {
    border-collapse: collapse;
    width: 100%;
}

.candidate-detail-grid th,
.candidate-detail-grid td {
    border: 1px solid var(--line);
    font-size: 0.94rem;
    overflow-wrap: anywhere;
    padding: 9px;
    vertical-align: top;
}

.candidate-detail-grid th {
    background: var(--surface-soft);
    color: var(--primary);
    font-weight: 800;
    width: 42%;
}

.candidate-detail-grid tr:hover td,
.candidate-detail-grid tr:hover th {
    background: #f8fbff;
}

.candidate-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

.candidate-chip-list span {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 8px;
}

.candidate-profile-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    position: sticky;
    top: 92px;
}

.candidate-profile-sidebar > a,
.candidate-profile-sidebar .candidate-social-link,
.candidate-profile-sidebar .candidate-save-form button {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    display: flex;
    font-weight: 750;
    min-height: 48px;
    padding: 12px;
    width: 100%;
}

.candidate-profile-sidebar .candidate-save-form button {
    cursor: pointer;
    justify-content: flex-start;
}

.candidate-profile-sidebar .candidate-social-links {
    display: block;
    margin: 0;
}

.candidate-profile-sidebar > a:hover,
.candidate-profile-sidebar .candidate-social-link:hover,
.candidate-profile-sidebar .candidate-save-form button:hover {
    background: var(--surface-soft);
    color: var(--primary-dark);
}

/* Premium portal-wide polish */
body.logged-in {
    background:
        linear-gradient(180deg, #edf4fb 0, rgba(246, 248, 251, 0) 420px),
        var(--page);
}

body.logged-in .site-main {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    border-color: rgba(184, 196, 212, 0.78);
}

body.logged-in .site-header {
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(22, 32, 51, 0.06);
}

body.logged-in .site-role-nav {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 249, 0.78));
    border-color: rgba(184, 196, 212, 0.72);
    backdrop-filter: blur(14px);
}

body.logged-in .site-role-nav .site-nav-link {
    min-height: 34px;
}

body.logged-in .site-role-nav .site-nav-link:hover,
body.logged-in .site-role-nav .site-nav-link.is-active {
    background: #fff;
    box-shadow: var(--shadow-subtle);
}

.candidate-page,
.recruiter-page,
.company-profile-page {
    position: relative;
}

.candidate-page > h2,
.recruiter-page > h2,
.dashboard > h2,
.company-profile-page h1 {
    color: var(--primary-dark);
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    letter-spacing: 0;
    margin-bottom: 10px;
}

.candidate-page > h2 + p,
.recruiter-page > h2 + p,
.company-profile-page .company-profile-hero p {
    color: var(--muted);
    max-width: 760px;
}

.dashboard-summary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    border-color: rgba(184, 196, 212, 0.78);
    box-shadow: var(--shadow-soft);
}

.dashboard-summary span {
    background: #fff;
    border-color: #e1e8f1;
    box-shadow: var(--shadow-subtle);
}

.dashboard-actions {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.dashboard-actions .btn {
    min-width: 150px;
}

.stats .stat {
    overflow: hidden;
}

.stats .stat::after {
    background: radial-gradient(circle, rgba(18, 165, 148, 0.14), transparent 62%);
    content: "";
    height: 120px;
    position: absolute;
    right: -42px;
    top: -42px;
    width: 120px;
}

.stats .stat h3,
.stats .stat p {
    position: relative;
    z-index: 1;
}

.candidate-dashboard-section,
.team-add-member,
.company-profile-main,
.company-profile-sidebar,
.resume-search-panel,
.candidate-contact-panel,
.candidate-profile-section,
.candidate-profile-sidebar,
.job-alert-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.candidate-dashboard-section:hover,
.team-add-member:hover,
.company-profile-main:hover,
.company-profile-sidebar:hover,
.candidate-profile-section:hover {
    border-color: var(--line-strong);
}

.candidate-dashboard-section,
.team-add-member,
.candidate-contact-panel {
    padding: 22px;
}

.candidate-dashboard-section > h3,
.team-add-member > h3,
.company-profile-main h2,
.company-profile-sidebar h3 {
    color: var(--primary-dark);
}

.candidate-dashboard-section .page-heading-row {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    padding: 12px 14px;
}

.jobportal-form,
.register-form,
.application-filter-form,
.application-pipeline-form,
.job-alert-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.application-filter-form.search-form,
.public-search-form.search-form {
    padding: 18px;
}

.jobportal-form .jobportal-form,
.candidate-dashboard-section .jobportal-form,
.resume-search-panel .jobportal-form {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.jobportal-form label,
.register-form label {
    color: var(--primary-dark);
}

.jobportal-form > label,
.register-form > label {
    margin-top: 14px;
}

.jobportal-form > label:first-of-type,
.register-form > label:first-of-type {
    margin-top: 0;
}

.jobportal-form p {
    margin-bottom: 12px;
}

.jobportal-form p:last-child {
    margin-bottom: 0;
}

form input,
form textarea,
form select {
    box-shadow: inset 0 1px 0 rgba(22, 32, 51, 0.03);
}

form input[readonly] {
    background: #f8fafc;
    color: var(--muted);
    cursor: not-allowed;
}

.jobportal-table-wrap {
    background: #fff;
    border-color: rgba(184, 196, 212, 0.82);
    box-shadow: var(--shadow-soft);
}

.jobportal-table th {
    background: linear-gradient(180deg, #f8fbff, var(--primary-soft));
    color: var(--primary-dark);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.jobportal-table td {
    background: #fff;
    line-height: 1.45;
}

.jobportal-table tbody tr:hover td {
    background: #f8fbff;
}

.jobportal-status-pill,
.jp-status,
.jp-badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.application-pipeline-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 10px;
}

.application-stage {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-subtle);
}

.application-stage.is-active,
.application-stage:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.application-stage.is-active span,
.application-stage:hover span,
.application-stage.is-active strong,
.application-stage:hover strong {
    color: #fff;
}

.resume-search-panel {
    overflow: hidden;
}

.resume-search-tabs {
    background: #f8fbff;
    border-bottom: 1px solid var(--line);
}

.resume-search-panel-header {
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.98), rgba(36, 59, 107, 0.94)),
        radial-gradient(circle at 92% 10%, rgba(18, 165, 148, 0.28), transparent 32%);
}

.resume-search-column {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
}

.cv-result-card,
.job-card,
.resume-result-card,
.recommended-job-card,
.saved-search-item {
    background: #fff;
    border-color: rgba(184, 196, 212, 0.78);
    box-shadow: var(--shadow-soft);
}

.job-card h3,
.job-card h4,
.recommended-job-card h4,
.cv-result-titlebar h3 {
    color: var(--primary-dark);
}

.job-details,
.resume-result-skills,
.candidate-chip-list span,
.jobportal-empty-state {
    background: #f8fbff;
}

.jobportal-empty-state {
    border-style: solid;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.candidate-dashboard-section .jobportal-empty-state,
.recruiter-page .jobportal-empty-state {
    display: grid;
    gap: 8px;
}

.jobportal-empty-state .btn,
.jobportal-empty-state .btn-secondary {
    margin-top: 8px;
}

.auth-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.auth-page .register-form {
    box-shadow: var(--shadow);
}

.page-heading-row .btn,
.page-heading-row .btn-secondary,
.resume-results-toolbar .btn,
.candidate-pdf-actions .btn {
    flex: 0 0 auto;
}

.jobportal-notice,
.errors {
    border-left-width: 5px;
}

.company-profile-hero {
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.96), rgba(36, 59, 107, 0.92)),
        radial-gradient(circle at 86% 16%, rgba(18, 165, 148, 0.28), transparent 34%);
    color: #fff;
}

.company-profile-hero h1,
.company-profile-hero h2 {
    color: #fff;
}

.company-profile-hero p,
.company-profile-hero span {
    color: #dfe7f6;
}

.company-profile-logo,
.company-profile-logo-placeholder {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow-soft);
}

.candidate-pdf-section {
    border-color: var(--line-strong);
}

.candidate-pdf-preview,
.candidate-video-preview {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    padding: 14px;
}

.candidate-pdf-preview iframe {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    min-height: 520px;
    width: 100%;
}

.candidate-video-preview iframe,
.candidate-video-preview video {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    min-height: 320px;
    width: 100%;
}

.candidate-pdf-actions {
    align-items: center;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.candidate-pdf-actions .btn {
    cursor: pointer;
}

.candidate-pdf-empty {
    padding: 14px;
}

.candidate-video-empty {
    padding: 14px;
}

.recruiter-notes-panel {
    border-color: var(--line-strong);
}

.recruiter-note-form {
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 14px;
}

.recruiter-note-list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.recruiter-note {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.recruiter-note p {
    margin-bottom: 8px;
}

.recruiter-note span {
    color: var(--muted);
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Unified premium interface system */
.site-main,
.auth-page,
.auth-split-page,
.jp-card,
.jp-auth-card,
.jp-search-panel,
.jp-dashboard-panel,
.dashboard-summary,
.dashboard-actions,
.stat,
.job-card,
.resume-result-card,
.cv-result-card,
.single-job-section,
.single-job-panel,
.candidate-dashboard-section,
.team-add-member,
.company-profile-main,
.company-profile-sidebar,
.resume-search-panel,
.resume-search-column,
.resume-results-sidebar-card,
.candidate-contact-panel,
.candidate-profile-section,
.candidate-profile-sidebar,
.job-alert-panel,
.jobportal-form,
.register-form,
.application-filter-form,
.application-pipeline-form,
.job-alert-form,
.jobportal-table-wrap,
.jobportal-empty-state,
.saved-search-item,
.recommended-job-card,
.candidate-application-card,
.portal-message-panel,
.application-pipeline-summary,
.portal-choice-card,
.visitor-path-card,
.public-jobs-hero,
.auth-form-panel,
.single-job-card {
    border-color: rgba(184, 196, 212, 0.72);
    box-shadow: 0 18px 44px rgba(22, 32, 51, 0.08);
}

.site-main,
.auth-page,
.jp-card,
.job-card,
.resume-result-card,
.single-job-section,
.single-job-panel,
.candidate-dashboard-section,
.team-add-member,
.company-profile-main,
.company-profile-sidebar,
.resume-search-panel,
.resume-search-column,
.resume-results-sidebar-card,
.candidate-contact-panel,
.candidate-profile-section,
.candidate-profile-sidebar,
.job-alert-panel,
.jobportal-form,
.register-form,
.application-filter-form,
.application-pipeline-form,
.job-alert-form,
.jobportal-table-wrap,
.jobportal-empty-state,
.saved-search-item,
.recommended-job-card,
.candidate-application-card,
.portal-message-panel,
.portal-choice-card,
.visitor-path-card,
.public-jobs-hero,
.auth-form-panel,
.single-job-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.jp-card:hover,
.job-card:hover,
.resume-result-card:hover,
.cv-result-card:hover,
.recommended-job-card:hover,
.saved-search-item:hover,
.candidate-application-card:hover,
.candidate-profile-section:hover,
.portal-choice-card:hover,
.visitor-path-card:hover {
    border-color: rgba(36, 59, 107, 0.22);
    box-shadow: 0 24px 58px rgba(22, 32, 51, 0.12);
    transform: translateY(-2px);
}

.btn,
button.btn,
input[type="submit"],
.jp-btn,
.jp-btn-primary,
.jp-btn-secondary,
.jp-btn-outline,
.cv-inline-action-form button,
.cv-result-actions a,
.jobportal-row-actions a,
.application-stage,
.resume-search-tab {
    border-radius: 999px;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn,
button.btn,
input[type="submit"],
.jp-btn-primary {
    background:
        linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent-dark));
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(24, 41, 75, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
.jp-btn-primary:hover {
    background:
        linear-gradient(135deg, var(--primary), var(--primary-dark) 56%, var(--accent-dark));
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(24, 41, 75, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-secondary,
.btn-muted,
.jp-btn-outline,
.jobportal-row-actions a,
.cv-result-actions a,
.cv-inline-action-form button {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(184, 196, 212, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    color: var(--primary-dark);
}

.btn-secondary:hover,
.btn-muted:hover,
.jp-btn-outline:hover,
.jobportal-row-actions a:hover,
.cv-result-actions a:hover,
.cv-inline-action-form button:hover {
    background: #fff;
    border-color: rgba(36, 59, 107, 0.2);
    box-shadow: 0 12px 26px rgba(22, 32, 51, 0.08);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-danger,
.jobportal-row-actions a.is-danger {
    background: linear-gradient(135deg, #b42318, #8f1d15);
    border-color: transparent;
    color: #fff;
}

.btn-danger:hover,
.jobportal-row-actions a.is-danger:hover {
    background: linear-gradient(135deg, #9f1239, #7f1d1d);
    border-color: transparent;
    color: #fff;
}

.jobportal-form,
.register-form,
.application-filter-form,
.application-pipeline-form,
.job-alert-form,
.search-form {
    padding: 24px;
}

form input,
form textarea,
form select,
.jp-form-control,
.application-pipeline-form input,
.application-pipeline-form textarea,
.resume-search-panel input,
.resume-search-panel select,
.saved-search-form input[type="text"],
.resume-sort-form select {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(184, 196, 212, 0.84);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(22, 32, 51, 0.03);
    min-height: 44px;
}

form input:hover,
form textarea:hover,
form select:hover,
.jp-form-control:hover {
    border-color: rgba(36, 59, 107, 0.26);
}

form input:focus,
form textarea:focus,
form select:focus,
.jp-form-control:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus), inset 0 1px 0 rgba(22, 32, 51, 0.02);
}

.jobportal-form label,
.register-form label,
.resume-search-panel label,
.application-pipeline-form label {
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0;
}

.dashboard-summary,
.application-pipeline-summary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.78));
    border-radius: var(--radius);
    padding: 12px;
}

.dashboard-summary span,
.stats .stat,
.application-stage {
    background:
        linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid rgba(184, 196, 212, 0.68);
    box-shadow: 0 10px 24px rgba(22, 32, 51, 0.06);
}

.dashboard-summary span {
    border-radius: 8px;
}

.stat::before {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    height: 3px;
}

.stat h3,
.application-stage strong,
.dashboard-summary span {
    color: var(--primary-dark);
}

.application-stage:hover,
.application-stage.is-active {
    background:
        linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(24, 41, 75, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.application-stage {
    border-radius: var(--radius);
}

.application-stage:hover span,
.application-stage:hover strong,
.application-stage.is-active span,
.application-stage.is-active strong {
    color: #fff;
}

.jobportal-table-wrap {
    background: #fff;
    overflow: hidden;
}

.jobportal-table {
    background: #fff;
}

.jobportal-table th {
    background:
        linear-gradient(180deg, #f8fbff, #eef4fb);
    border-bottom-color: rgba(184, 196, 212, 0.82);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.jobportal-table td {
    background: #fff;
}

.jobportal-table tbody tr:hover td {
    background: #f8fbff;
}

.jobportal-status-pill,
.jp-status,
.jp-badge,
.auth-benefits span,
.candidate-chip-list span {
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.jobportal-notice,
.errors,
.jp-alert,
.auth-switch-link,
.jobportal-empty-state,
.visitor-job-cta {
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(22, 32, 51, 0.07);
}

.jobportal-notice,
.jp-alert-success {
    background:
        linear-gradient(180deg, #ecfdf8, var(--accent-soft));
    border-color: #b8e9e2;
}

.errors,
.jp-alert-error {
    background:
        linear-gradient(180deg, #fff7f7, #fff1f2);
    border-color: #fecdd3;
}

.jobportal-empty-state {
    border-style: solid;
    border-color: rgba(184, 196, 212, 0.7);
    position: relative;
}

.jobportal-empty-state::before {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 999px;
    content: "";
    inset: 18px auto 18px 0;
    position: absolute;
    width: 3px;
}

.resume-search-panel-header,
.single-job-hero,
.company-profile-hero,
.auth-intro-panel,
.visitor-hero {
    border-radius: var(--radius);
    box-shadow: 0 24px 58px rgba(22, 32, 51, 0.14);
}

.resume-search-panel-header {
    background:
        linear-gradient(135deg, rgba(24, 41, 75, 0.98), rgba(36, 59, 107, 0.94)),
        radial-gradient(circle at 92% 10%, rgba(18, 165, 148, 0.28), transparent 32%);
}

.cv-result-titlebar,
.candidate-dashboard-section .page-heading-row {
    background:
        linear-gradient(180deg, #f8fbff, #eef4fb);
    border-color: rgba(184, 196, 212, 0.72);
}

.cv-result-titlebar h3,
.cv-result-titlebar a,
.job-card h3,
.job-card h4,
.recommended-job-card h4,
.candidate-dashboard-section > h3,
.team-add-member > h3,
.company-profile-main h2,
.company-profile-sidebar h3 {
    color: var(--primary-dark);
}

.job-details,
.resume-result-skills,
.candidate-chip-list span,
.cv-match-bar,
.auth-switch-link,
.visitor-job-cta {
    background:
        linear-gradient(180deg, #f8fbff, #eef4fb);
    border-color: rgba(184, 196, 212, 0.68);
}

.cv-match-bar {
    border-radius: 999px;
    overflow: hidden;
}

.cv-match-bar span {
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.btn-view-cv,
.jp-btn-secondary,
.btn-warning {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(18, 165, 148, 0.18);
    color: #fff;
}

.btn-view-cv:hover,
.jp-btn-secondary:hover,
.btn-warning:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--primary));
    border-color: transparent;
    color: #fff;
}

.jobportal-action-menu summary {
    border-radius: 999px;
}

/* Company profile hero refinement */
.company-profile-page .company-profile-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(18, 31, 58, 0.98), rgba(36, 59, 107, 0.95) 56%, rgba(11, 117, 108, 0.88)),
        radial-gradient(circle at 82% 18%, rgba(18, 165, 148, 0.3), transparent 34%),
        radial-gradient(circle at 14% 86%, rgba(255, 255, 255, 0.12), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 64px rgba(18, 31, 58, 0.22);
    gap: 26px;
    min-height: 250px;
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.company-profile-page .company-profile-hero::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    position: absolute;
}

.company-profile-page .company-profile-hero > * {
    position: relative;
    z-index: 1;
}

.company-profile-page .company-profile-hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    letter-spacing: 0;
    margin-bottom: 10px;
}

.company-profile-page .company-profile-hero p {
    color: rgba(239, 246, 255, 0.88);
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.65;
    max-width: 860px;
}

.company-profile-page .company-profile-logo {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    height: 118px;
    padding: 14px;
    width: 118px;
}

.company-profile-page .company-profile-logo-placeholder {
    color: var(--primary-dark);
    font-size: 2.35rem;
}

.company-profile-page .company-profile-facts {
    gap: 10px;
    margin-top: 20px;
    padding: 0;
}

.company-profile-page .company-profile-hero .company-profile-facts span {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 10px 24px rgba(9, 20, 38, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 900;
    padding: 8px 13px;
}

.company-profile-layout {
    gap: 26px;
}

.company-profile-main,
.company-profile-sidebar {
    padding: 26px;
}

.company-profile-sidebar h2,
.company-profile-main h2 {
    color: var(--primary-dark);
}

.company-profile-sidebar p {
    background: #f8fbff;
    border: 1px solid rgba(184, 196, 212, 0.64);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 12px;
}

.company-profile-conversations {
    display: grid;
    gap: 14px;
    margin: 26px 0;
}

.company-profile-conversations > h2 {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-role-nav {
        justify-content: flex-start;
        max-width: none;
    }

    .resume-search-layout,
    .resume-results-layout,
    .public-search-form,
    .auth-split-page,
    .jobportal-grid.two,
    .jobportal-grid.three,
    .candidate-profile-layout,
    .candidate-detail-grid,
    .company-profile-layout,
    .company-profile-hero,
    .single-job-hero,
    .single-job-layout,
    .visitor-hero,
    .visitor-paths,
    .public-jobs-hero {
        grid-template-columns: 1fr;
    }

    .portal-choice-grid {
        grid-template-columns: 1fr;
    }

    .candidate-profile-sidebar {
        position: static;
    }

    .resume-results-sidebar {
        position: static;
    }

    .company-profile-sidebar {
        position: static;
    }

    .single-job-sidebar {
        position: static;
    }

    .visitor-hero {
        min-height: 0;
    }

    body.logged-in .site-role-nav {
        width: 100%;
    }

    .public-jobs-actions {
        justify-content: flex-start;
    }

    .public-search-actions {
        justify-content: flex-start;
    }

    .application-filter-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .site-main {
        padding: 20px;
        width: min(94%, 1240px);
    }

    .auth-page {
        max-width: 100%;
    }

    .auth-intro-panel {
        min-height: 0;
        padding: 26px;
    }

    .auth-form-panel {
        padding: 24px;
    }

    .portal-choice-hero,
    .portal-choice-card {
        padding: 24px;
    }

    .register-form {
        margin-top: 18px;
        padding: 22px;
    }

    .btn,
    .btn-nav {
        width: 100%;
    }

    .site-nav,
    .page-heading-row,
    .hero-actions,
    .resume-search-panel-header,
    .resume-search-actions,
    .resume-results-toolbar,
    .resume-result-header,
    .dashboard-actions,
    .team-inline-form,
    .visitor-job-cta,
    .visitor-job-cta-actions,
    .public-jobs-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-nav {
        gap: 10px;
    }

    .public-search-actions {
        align-items: stretch;
    }

    .site-role-nav {
        align-self: stretch;
        border-radius: 12px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav-link {
        flex: 0 0 auto;
    }

    .dashboard-nav {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .dashboard-nav .btn {
        width: auto;
    }

    .dashboard-actions .btn {
        min-width: 0;
    }

    .candidate-dashboard-section,
    .team-add-member,
    .auth-page,
    .auth-form-panel,
    .auth-intro-panel,
    .jobportal-form,
    .register-form,
    .application-pipeline-form {
        padding: 18px;
    }

    .dashboard-nav a[href*="logout"],
    .dashboard-nav .btn[href*="logout"] {
        margin-left: 0;
    }

    .site-account-menu,
    .site-account-menu summary {
        width: 100%;
    }

    .site-account-menu > div {
        margin-top: 6px;
        min-width: 100%;
        position: static;
    }

    .site-account-menu > div::before {
        display: none;
    }

    .jobportal-action-menu,
    .jobportal-action-menu summary {
        width: 100%;
    }

    .jobportal-action-menu > div {
        position: static;
        margin-top: 6px;
        width: 100%;
    }

    .resume-sort-form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .resume-sort-form select {
        width: 100%;
    }

    .resume-search-tabs {
        padding-left: 12px;
        padding-right: 12px;
    }

    .resume-search-tab {
        padding-left: 14px;
        padding-right: 14px;
    }

    .resume-search-panel-header,
    .resume-search-layout,
    .resume-search-column {
        padding: 16px;
    }

    .candidate-application-main {
        flex-direction: column;
    }

    .candidate-application-meta {
        align-items: flex-start;
        text-align: left;
    }

    .jobportal-chat-message {
        max-width: 100%;
    }

    .portal-message-inbox-item {
        grid-template-columns: 1fr;
    }

    .portal-message-inbox-avatar {
        display: none;
    }

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

    .portal-conversation-list {
        max-height: 360px;
    }

    .portal-conversation-row {
        grid-template-columns: 1fr;
    }

    .portal-conversation-avatar {
        display: none;
    }

    .company-logo-upload {
        grid-template-columns: 1fr;
    }

    .profile-completion-card {
        grid-template-columns: 1fr;
    }

    .profile-completion-score {
        max-width: 132px;
    }

    .application-timeline-steps,
    .application-timeline.is-compact .application-timeline-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .application-timeline-steps li::before {
        display: none;
    }

    .advanced-filter-panel > .jobportal-grid {
        padding: 12px;
    }

    .cv-result-titlebar,
    .cv-result-score-row,
    .cv-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cv-select-field {
        margin-left: 0;
    }

    .cv-match-bar {
        max-width: none;
        width: 100%;
    }

    .cv-result-details {
        grid-template-columns: 1fr;
    }

    .saved-search-item {
        grid-template-columns: 1fr;
    }

    .cv-result-details div {
        border-right: 0;
        grid-template-columns: 1fr;
    }

    .cv-result-details span {
        text-align: left;
    }

    .candidate-profile-header {
        flex-direction: column;
    }

    .candidate-pdf-preview iframe {
        min-height: 420px;
    }

    .candidate-video-preview iframe,
    .candidate-video-preview video {
        min-height: 260px;
    }

    .candidate-ref {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .site-header-inner {
        gap: 12px;
        padding: 12px 16px;
    }

    .site-main {
        margin-top: 16px;
        padding: 16px;
        width: min(96%, 1240px);
    }

    .site-brand {
        font-size: 1rem;
    }

    body.logged-in .site-main {
        padding: 14px;
    }

    .hero,
    .single-job-hero,
    .single-job-section,
    .single-job-panel,
    .jp-card,
    .jp-auth-card,
    .register-form,
    .job-card,
    .single-job-card,
    .cv-result-card,
    .resume-results-sidebar-card,
    .candidate-profile-section,
    .dashboard-panel,
    .jp-dashboard-panel {
        padding: 18px;
    }

    .resume-search-panel-header,
    .resume-search-layout,
    .resume-search-column {
        padding: 14px;
    }

    .cv-result-details div {
        padding: 10px 12px;
    }

    .candidate-pdf-preview {
        padding: 10px;
    }

    .candidate-pdf-preview iframe {
        min-height: 340px;
    }

    .candidate-video-preview {
        padding: 10px;
    }

    .candidate-video-preview iframe,
    .candidate-video-preview video {
        min-height: 210px;
    }

    .candidate-pdf-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }
}

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