:root {
    --portal-topbar-height: 82px;
}

body.portal-landing,
.portal-app-body {
    min-height: 100vh;
    background: var(--kf-bg);
    color: var(--kf-text);
    transition: background 0.3s ease, color 0.3s ease;
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 1.25rem;
    min-height: var(--portal-topbar-height);
    position: sticky;
    top: 0;
    z-index: 1060;
    border-bottom: 1px solid var(--kf-border);
    border-radius: 0;
}

.portal-topbar__segment {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--kf-text);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(91, 91, 224, 0.12);
    color: var(--kf-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-title {
    font-weight: 600;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--kf-muted);
}

.portal-top-links {
    display: flex;
    gap: 1rem;
}

.portal-top-link {
    text-decoration: none;
    color: var(--kf-muted);
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--kf-radius-pill);
    transition: color 0.2s ease, background 0.2s ease;
}

.portal-top-link.is-active {
    color: var(--kf-primary);
    background: rgba(91, 91, 224, 0.12);
}

.portal-search-wrapper {
    max-width: 420px;
}

.portal-search {
    flex: 1;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-pill);
    padding: 0.35rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
}

.portal-search input {
    border: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
    color: var(--kf-text);
}

.portal-search input:focus {
    outline: none;
}

.portal-profile-trigger {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-pill);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.75rem;
    color: var(--kf-text);
}

.portal-profile-trigger:hover {
    border-color: var(--kf-primary);
}

.portal-search button {
    border: none;
    background: transparent;
    color: var(--kf-muted);
    font-weight: 600;
}

.portal-search button:hover {
    color: var(--kf-primary);
}

.portal-profile-menu {
    min-width: 240px;
}

.avatar-pill.avatar-pill-lg {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
}

.portal-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    align-items: flex-start;
}

.portal-quick-nav {
    width: 280px;
    background: var(--kf-surface);
    border-right: 1px solid var(--kf-border);
    box-shadow: var(--kf-shadow);
    border-radius: 14px;
}

.portal-quick-nav .offcanvas-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portal-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-performance {
    border-top: 1px solid var(--kf-border);
    padding-top: 1rem;
}

.portal-user-card,
.portal-profile-card {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    padding: 1.25rem;
}

.portal-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--kf-radius);
    text-decoration: none;
    color: var(--kf-text);
    font-weight: 500;
}

.quick-link.is-active,
.quick-link:hover {
    background: rgba(91, 91, 224, 0.1);
    color: var(--kf-primary);
}

.portal-theme-switcher {
    padding: 10px 1rem;
    border-top: 1px solid var(--kf-border);
    margin-top: auto;
}

.theme-switcher-head {
    margin-bottom: 0.5rem;
}

.theme-collapse-toggle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(91, 91, 224, 0.25);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kf-muted);
    font-size: 0.85rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-collapse-toggle i {
    transition: transform 0.2s ease;
}

.theme-collapse-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.theme-collapse-toggle:hover {
    border-color: var(--kf-primary);
    color: var(--kf-primary);
}

.theme-badge {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--kf-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kf-primary);
    font-size: 0.85rem;
}

.theme-headline {
    font-size: 0.95rem;
    font-weight: 600;
}

.theme-switcher-modern {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(91, 91, 224, 0.15), rgba(244, 244, 255, 0.9));
    border: 1px solid rgba(91, 91, 224, 0.2);
    overflow: hidden;
}

.theme-toggle-modern {
    border: none;
    background: transparent;
    color: var(--kf-muted);
    font-weight: 600;
    padding: 0.3rem 0.4rem;
    border-radius: 14px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-toggle-modern i {
    font-size: 0.8rem;
}

.theme-toggle-modern.active {
    background: #fff;
    color: var(--kf-primary);
    box-shadow: 0 8px 20px rgba(91, 91, 224, 0.25);
    transform: translateY(-1px);
}

.theme-switcher-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 50%, rgba(91, 91, 224, 0.35) 0%, rgba(91, 91, 224, 0) 60%);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.portal-theme-switcher .collapse {
    margin-top: 0.5rem;
}

.portal-main>*:first-child {
    margin-top: 0;
}

.portal-dashboard-grid .glass-card {
    border-radius: 12px;
}

.portal-sidebar {
    min-width: 250px;
    background: var(--kf-surface);
    box-shadow: var(--kf-shadow);
    display: flex;
    flex-direction: column;
}

.portal-sidebar .sidebar-heading {
    color: var(--kf-text);
}

.portal-navbar {
    background: var(--kf-surface);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1050;
}

.portal-navbar .navbar-brand,
.portal-navbar .nav-link {
    color: var(--kf-text) !important;
    font-weight: 500;
}

.portal-user-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid var(--kf-border);
    padding-bottom: 1rem;
}

.portal-navbar .dropdown-menu {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
    padding: 0.4rem;
    min-width: 220px;
}

.portal-navbar .dropdown-menu .dropdown-item {
    color: var(--kf-text);
    border-radius: var(--kf-radius);
    padding: 0.45rem 0.85rem;
}

.portal-navbar .dropdown-menu .dropdown-item:hover {
    background: var(--kf-hover);
}

.portal-stat-card,
.portal-metric-card,
.job-card,
.portal-surface {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    padding: 1.25rem;
    box-shadow: var(--kf-shadow);
}

.portal-stat-card .label,
.portal-metric-card .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kf-muted);
}

.portal-stat-card .value,
.portal-metric-card .value {
    font-size: 2.15rem;
    font-weight: 600;
    color: var(--kf-text);
    margin-bottom: 0.25rem;
}

.job-list-item,
.application-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--kf-border);
}

.job-list-item:last-child,
.application-pill:last-child {
    border-bottom: none;
}

.application-pill .badge {
    border-radius: var(--kf-radius);
    background: rgba(15, 15, 35, 0.06);
    color: var(--kf-text);
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glass-alert {
    border-radius: var(--kf-radius);
    border: 1px solid var(--kf-border);
    background: var(--kf-surface);
    color: var(--kf-text);
}

.portal-toast {
    position: relative;
    padding-right: 2.5rem;
}

.portal-toast .btn-close {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    opacity: 0.6;
}

.portal-topbar-toggle {
    display: none;
}

.portal-sidebar .list-group-item {
    border: none;
}

.portal-sidebar .collapse .theme-switcher {
    background: var(--kf-surface);
}

.theme-dark .portal-sidebar {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}

.theme-dark .portal-topbar {
    background: #1f1f24;
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .portal-search,
.theme-dark .portal-profile-trigger,
.theme-dark .portal-quick-nav,
.theme-dark .recommended-item,
.theme-dark .journey-pill,
.theme-dark .tab-pill,
.theme-dark .quick-pill {
    background: #1f1f25;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f5ff;
}

.theme-dark .portal-search button {
    color: #c9ccff;
}

.theme-dark .portal-quick-nav {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65);
}

.theme-dark .dashboard-hero {
    background: linear-gradient(135deg, #1d1d24, #1f1f2c);
    color: #f5f5ff;
}

.theme-dark .dashboard-hero .hero-title,
.theme-dark .dashboard-hero p,
.theme-dark .hero-search label span,
.theme-dark .hero-search small {
    color: #f5f5ff;
}

.theme-dark .tab-pill.active {
    background: rgba(127, 127, 255, 0.18);
}

.theme-dark .journey-pill:hover,
.theme-dark .quick-pill:hover,
.theme-dark .portal-profile-trigger:hover {
    border-color: var(--kf-primary);
}

.theme-dark .portal-profile-card,
.theme-dark .recommended-item {
    border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .theme-switcher-modern {
    background: linear-gradient(135deg, rgba(127, 127, 255, 0.25), rgba(20, 20, 30, 0.95));
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .theme-toggle-modern {
    color: #d0d2ff;
}

.theme-dark .theme-toggle-modern.active {
    background: rgba(9, 9, 16, 0.9);
    color: #ffffff;
}

.theme-dark .theme-collapse-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    color: #cfd2ff;
}

.theme-dark .theme-collapse-toggle:hover {
    border-color: var(--kf-primary);
    color: #fff;
}

.theme-dark .theme-badge {
    background: rgba(127, 127, 255, 0.25);
    color: #fff;
}

.theme-dark .theme-switcher-glow {
    background: radial-gradient(circle at 75% 50%, rgba(127, 127, 255, 0.4) 0%, rgba(127, 127, 255, 0) 60%);
}

.theme-dark .profile-performance {
    border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .portal-navbar .dropdown-menu {
    background: #1d1d24;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65);
}

.theme-dark .portal-navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(127, 127, 255, 0.18);
    color: #f5f5ff;
}

.theme-dark .portal-stat-card,
.theme-dark .portal-metric-card,
.theme-dark .job-card {
    background: #1b1b1f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
}

.theme-dark .application-pill .badge {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5ff;
}

.theme-dark .stat-icon {
    background: rgba(127, 127, 255, 0.2);
}

.theme-dark .skill-chip {
    background: rgba(127, 127, 255, 0.15);
    color: #f5f5ff;
}

.theme-dark .promo-banner {
    color: #fff;
}

.theme-dark .chip-button {
    background: #1f1f25;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5ff;
}

.theme-dark .chip-button:hover {
    border-color: var(--kf-primary);
}

.theme-dark .pill-card,
.theme-dark .employer-card {
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f5ff;
    background: rgba(255, 255, 255, 0.02);
}

.theme-dark .employer-icon {
    background: rgba(127, 127, 255, 0.15);
}

.theme-dark .pill-card:hover {
    border-color: var(--kf-primary);
}

.theme-dark .check-icon {
    border-color: rgba(255, 255, 255, 0.2);
    color: #f5f5ff;
}

.theme-dark .trade-chip {
    background: #1f1f25;
    border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .trade-chip .trade-icon {
    background: rgba(127, 127, 255, 0.2);
    color: #fff;
}

.theme-dark .job-filter-card {
    background: #1f1f25;
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .trade-chip {
    background: #1f1f25;
}

.theme-dark .input-shell {
    background: #1c1c22;
    border-color: rgba(255, 255, 255, 0.15);
}

.theme-dark .input-shell i {
    color: rgba(255, 255, 255, 0.65);
}

.theme-dark .search-field input,
.theme-dark .search-field select {
    color: #f5f5ff;
    background: transparent;
}

.theme-dark .input-shell:focus-within {
    border-color: var(--kf-primary);
    box-shadow: 0 0 0 2px rgba(127, 127, 255, 0.25);
}

.theme-dark .deadline-row,
.theme-dark .application-row,
.theme-dark .status-summary-item {
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .status-progress {
    background: rgba(255, 255, 255, 0.12);
}

.portal-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--kf-text);
}

.portal-divider {
    height: 1px;
    width: 100%;
    background: var(--kf-border);
    margin: 1.5rem 0;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 16px;
    padding: 2rem;
    background: linear-gradient(135deg, #fff, #f3f2ff);
}

.hero-copy {
    flex: 1 1 55%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions .btn {
    border-radius: var(--kf-radius-pill);
    font-weight: 600;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kf-text);
}

.profile-progress {
    min-width: 240px;
}

.hero-side {
    min-width: 240px;
}

.hero-metrics li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--kf-border);
    font-size: 0.9rem;
}

.hero-metrics li:last-child {
    border-bottom: none;
}

.hero-search {
    width: 100%;
}

.hero-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.job-search-form {
    width: 100%;
}

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

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--kf-muted);
}

.input-shell {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-pill);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #fff;
    position: relative;
}

.input-shell i {
    color: var(--kf-muted);
}

.search-field input {
    border: none;
    padding: 0.45rem 0;
    font-size: 1rem;
    color: var(--kf-text);
    background: transparent;
}

.search-field input:focus {
    outline: none;
}

.search-field select {
    border: none;
    border-radius: 0;
    padding: 0.45rem 0;
    font-size: 1rem;
    background: transparent;
    color: var(--kf-text);
    appearance: none;
    width: 100%;
    background-image: none;
}

.input-shell:focus-within {
    border-color: var(--kf-primary);
    box-shadow: 0 0 0 2px rgba(91, 91, 224, 0.15);
}

.has-caret::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--kf-muted);
    border-bottom: 2px solid var(--kf-muted);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.search-field select {
    padding-right: 1.5rem;
}

select::-ms-expand {
    display: none;
}

.search-field select option {
    border-radius: var(--kf-radius);
    padding: 0.5rem;
}

.search-btn {
    border-radius: var(--kf-radius-pill);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(91, 91, 224, 0.25);
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    min-width: 280px;
    padding: 0.75rem 2.75rem;
    text-align: center;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--kf-radius-pill);
    padding: 0.35rem 1rem;
    border: 1px solid rgba(91, 91, 224, 0.2);
    color: var(--kf-text);
    text-decoration: none;
    font-weight: 600;
}

.chip-link:hover {
    background: rgba(91, 91, 224, 0.1);
}

.chip-link-sm {
    padding: 0.25rem 0.85rem;
    font-size: 0.85rem;
}

.trade-chip-row {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
}

.trade-chip {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    padding: 0.45rem 0.6rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
    color: var(--kf-text);
    background: var(--kf-surface);
    transition: border 0.2s ease, transform 0.15s ease;
    min-height: 64px;
}

.trade-chip strong {
    font-size: 0.95rem;
}

.trade-chip small {
    font-size: 0.74rem;
}

.trade-chip:hover {
    border-color: var(--kf-primary);
    transform: translateY(-2px);
}

.trade-chip.active {
    border-color: var(--kf-primary);
    box-shadow: 0 8px 20px rgba(91, 91, 224, 0.15);
}

.trade-chip .trade-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--kf-radius-pill);
    background: rgba(91, 91, 224, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--kf-primary);
}

.trade-chip-scroll {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
}

.trade-chip-scroll::-webkit-scrollbar {
    height: 6px;
}

.trade-chip-scroll::-webkit-scrollbar-thumb {
    background: rgba(91, 91, 224, 0.3);
    border-radius: 999px;
}

.trade-chip-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.job-filter-card {
    position: sticky;
    top: calc(var(--portal-topbar-height) + 1rem);
    box-shadow: var(--kf-shadow);
}

@media (max-width: 991.98px) {
    .job-filter-card {
        position: static;
    }
}

.promo-banner {
    background: linear-gradient(135deg, #f8b243, #f05d23);
    border-radius: var(--kf-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #fff;
    box-shadow: 0 10px 24px rgba(240, 93, 35, 0.25);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.chip-button {
    border-radius: var(--kf-radius-pill);
    border: 1px solid var(--kf-border);
    padding: 0.4rem 1rem;
    background: #fff;
    color: var(--kf-text);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.chip-button:hover {
    border-color: var(--kf-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.profile-progress .progress {
    height: 8px;
    background: var(--kf-border);
    border-radius: var(--kf-radius-pill);
    overflow: hidden;
}

.profile-progress .progress-bar {
    height: 100%;
    background: var(--kf-primary);
    border-radius: inherit;
}

.stat-pill {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.2rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--kf-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(91, 91, 224, 0.12);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--kf-muted);
    margin-bottom: 0.15rem;
}

.stat-value {
    margin-bottom: 0;
    line-height: 1;
}

.skill-chip {
    border-radius: var(--kf-radius-pill);
    background: var(--kf-hover);
    color: var(--kf-text);
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.deadline-row,
.application-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--kf-border);
}

.deadline-row:last-child,
.application-row:last-child {
    border-bottom: none;
}

.deadline-pill {
    border-radius: var(--kf-radius-pill);
    background: rgba(91, 91, 224, 0.15);
    color: var(--kf-primary);
    font-weight: 600;
    padding: 0.3rem 0.9rem;
}

.status-chip {
    border-radius: var(--kf-radius-pill);
    padding: 0.2rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-chip.status-pending,
.status-chip.status-reviewing {
    background: rgba(253, 193, 85, 0.2);
    color: #a76d00;
}

.status-chip.status-accepted {
    background: rgba(62, 179, 116, 0.2);
    color: #1e7c4a;
}

.status-chip.status-rejected {
    background: rgba(220, 82, 90, 0.2);
    color: #a1222f;
}

.status-chip.status-withdrawn {
    background: rgba(108, 117, 125, 0.2);
    color: #47515a;
}

.status-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--kf-border);
}

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

.status-copy {
    min-width: 130px;
}

.status-progress {
    flex: 1;
    height: 6px;
    border-radius: var(--kf-radius-pill);
    background: var(--kf-border);
    overflow: hidden;
}

.status-progress-bar {
    height: 100%;
    background: var(--kf-primary);
}

.status-percent {
    width: 48px;
    text-align: right;
    font-weight: 600;
}

.quick-actions .btn {
    border-radius: var(--kf-radius);
}

.simple-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.pill-card {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--kf-text);
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.pill-card:hover {
    border-color: var(--kf-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.check-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--kf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--kf-primary);
}

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

.employer-card {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    padding: 0.85rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
}

.employer-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--kf-radius-pill);
    background: rgba(91, 91, 224, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--kf-primary);
}

.quick-link-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-pill {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-pill);
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--kf-text);
}

.quick-pill.is-active,
.quick-pill:hover {
    border-color: var(--kf-primary);
    background: rgba(91, 91, 224, 0.08);
    color: var(--kf-primary);
}

.recommended-card {
    border-radius: 14px;
}

.recommended-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-pill {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-pill);
    padding: 0.35rem 0.95rem;
    background: transparent;
    font-size: 0.85rem;
    color: var(--kf-muted);
}

.tab-pill.active {
    border-color: var(--kf-primary);
    color: var(--kf-primary);
    background: rgba(91, 91, 224, 0.1);
    font-weight: 600;
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px dashed var(--kf-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--kf-primary);
}

.journey-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.journey-pill {
    width: 100%;
    border: 1px solid var(--kf-border);
    background: #fff;
    border-radius: var(--kf-radius-pill);
    padding: 0.4rem 0.85rem;
    text-align: left;
    font-size: 0.9rem;
    color: var(--kf-text);
    cursor: pointer;
}

.journey-pill:hover {
    border-color: var(--kf-primary);
}

.portal-dashboard-grid {
    margin-top: 1.75rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--kf-border);
    display: inline-block;
}

@media (max-width: 576px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-progress {
        width: 100%;
    }

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

    .recommended-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 992px) {
    .portal-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .portal-search-wrapper {
        display: none !important;
    }

    .portal-topbar {
        flex-wrap: wrap;
    }

    .portal-topbar__segment {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .portal-quick-nav {
        min-height: auto;
    }

    .portal-main {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .portal-shell {
        display: block;
        padding: 5px 1.5rem 1.5rem;
        padding-left: calc(280px + 2rem);
    }

    .portal-quick-nav.offcanvas-lg {
        position: fixed;
        left: 1.5rem;
        top: calc(var(--portal-topbar-height) + 0.75rem);
        width: 280px;
        height: calc(100vh - var(--portal-topbar-height) - 1.75rem);
        transform: none !important;
        visibility: visible !important;
        overflow: hidden;
    }

    .portal-quick-nav .offcanvas-body {
        padding: 1rem;
        overflow: hidden;
        height: 100%;
    }

    .portal-main {
        /* max-width: none;
        margin-left: 0; */

        max-width: 1300px;
        margin-left: 0 auto;
    }
}

.accepted-contact {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    padding: 1rem;
    background: var(--kf-surface);
    box-shadow: var(--kf-shadow);
}

.accepted-contact__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--kf-radius-pill);
    background: rgba(91, 91, 224, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--kf-primary);
}