* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #fff;
    color: #1f2937;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.indeed-page {
    min-height: 100vh;
    padding: 16px 14px;
    overflow: visible;
}

.indeed-shell {
    max-width: 1160px;
    margin: 0 auto;
}

.site-header {
    background: #fff;
}

.home-hero {
    background: #fff;
    border-radius: 0;
    padding: 14px 0 12px;
    margin: 0 0 10px;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 16px;
}

.hero-nav-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: #0f4cbf;
}

.hero-nav nav {
    display: flex;
    gap: 16px;
}

.hero-nav-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.top-link {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 2px 10px;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.top-link:hover {
    color: #111827;
    border-bottom-color: #0f4cbf;
}

.top-sep {
    color: #9ca3af;
    user-select: none;
}

.candidate-nav-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.candidate-icon-btn,
.candidate-profile-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d2f36;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.candidate-icon-btn:hover,
.candidate-profile-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.candidate-icon-btn i {
    font-size: 21px;
    line-height: 1;
}

.candidate-count-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #c81e1e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.candidate-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #0f4cbf;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.candidate-account-wrap {
    position: relative;
}

.candidate-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
    padding: 8px;
    display: none;
    z-index: 20;
}

.candidate-account-menu.open {
    display: block;
}

.candidate-account-name {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    padding: 6px 8px 8px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 4px;
}

.candidate-account-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #1f2937;
    text-decoration: none;
    text-align: left;
    font-size: 14px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.candidate-account-item:hover {
    background: #f3f4f6;
}

.profile-page {
    background: #f7f7f7;
}

.profile-wrap {
    padding: 20px 18px 36px;
}

.profile-card {
    max-width: 860px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 28px 22px;
}

.profile-section-head {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #2b2d33;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-icon-btn {
    border: 0;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    color: #2d2f36;
    font-size: 20px;
}

.profile-block {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 18px 22px;
}

.summary-block p,
.rich-content p,
.rich-content li {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.profile-editor {
    display: none;
    margin-top: 12px;
}

.profile-editor.open {
    display: block;
}

.editor-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.editor-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

.editor-btn.primary {
    background: #0f4cbf;
    color: #fff;
    border-color: #0f4cbf;
}

.editor-btn.danger {
    color: #b91c1c;
}

.list-item {
    position: relative;
}

.list-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #2b2d33;
    font-weight: 700;
}

.item-meta {
    margin: 0 0 6px;
    color: #4b5563;
    font-size: 14px;
}

.item-date {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

.item-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.mini-icon-btn {
    border: 0;
    background: transparent;
    color: #2d2f36;
    font-size: 20px;
}

.empty-copy {
    margin: 0;
    color: #6b7280;
}

.time-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tiny-label {
    margin-bottom: 6px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.profile-head h1 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: #2b2d33;
}

.profile-head p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #535862;
}

.profile-visible-chip {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dff3e4;
    color: #176f37;
    border: 1px solid #b9dfc3;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.profile-sync {
    margin-top: 18px;
    border: 1px solid #d92f8a;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.sync-tag {
    display: inline-flex;
    background: #ac2f76;
    color: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 14px;
}

.profile-sync p {
    margin: 16px 0 14px;
    font-size: 14px;
    color: #535862;
}

.sync-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #0f4cbf;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
}

.profile-tabs {
    margin-top: 22px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-tab {
    text-decoration: none;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-tab.active {
    color: #0f4cbf;
    font-weight: 700;
    border-bottom: 3px solid #2f3337;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.resume-item {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.resume-icon i {
    font-size: 42px;
    color: #9ca3af;
}

.resume-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.resume-item h3 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #2b2d33;
}

.resume-item p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.resume-current-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    border-radius: 999px;
    background: #dff3e4;
    color: #176f37;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
}

.resume-current-check {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
}

.resume-more {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 24px;
}

.resume-action-wrap {
    margin-left: auto;
    position: relative;
}

.resume-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
    padding: 8px;
    display: none;
    z-index: 25;
}

.resume-action-wrap.open .resume-menu {
    display: block;
}

.resume-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #2b2d33;
    padding: 10px 10px;
    border-radius: 8px;
    text-align: left;
    font-size: 15px;
}

.resume-menu-item:hover {
    background: #f3f4f6;
}

.resume-menu-item.danger {
    color: #b91c1c;
}

.header-divider {
    border: 0;
    border-top: 1px solid #eceff3;
    margin: 0;
}

.search-divider-wrap {
    justify-content: center;
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    display: flex;
}

.search-divider {
    display: block;
    height: 0;
    border: 0;
    border-top: 0.0625rem solid #b8c0cc;
    width: 100%;
    margin: 0;
}

.apply-page {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 24px 14px;
}

.apply-main-divider {
    border: 0;
    border-top: 1px solid #dfe5ee;
    margin: 0 0 16px;
}

.apply-shell {
    max-width: 640px;
    margin: 0 auto;
}

.apply-job-card,
.apply-review-card,
.apply-success-card,
.apply-loading-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
}

.apply-loading-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.apply-job-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1f2937;
}

.apply-job-card p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.apply-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.apply-progress-track {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.apply-progress-bar {
    width: 0;
    height: 10px;
    background: #1658d0;
    border-radius: 999px;
    transition: width .08s linear;
}

.apply-review-card h2,
.apply-success-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.apply-review-card > p,
.apply-success-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 13px;
}

.apply-detail-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.apply-detail-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.apply-detail-card .row {
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #eef2f7;
}

.apply-detail-card .row:first-of-type {
    border-top: 0;
}

.apply-detail-card label {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.apply-detail-card strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

.submit-application-btn,
.back-home-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    border: 0;
    text-decoration: none;
    background: #1658d0;
    color: #fff;
    border-radius: 12px;
    min-height: 46px;
    font-size: 16px;
    font-weight: 700;
}

.submit-application-btn:disabled {
    cursor: not-allowed;
    background: #9ca3af;
}

.apply-blocked-msg {
    margin: 0 0 10px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
}

.apply-resume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.apply-resume-link {
    font-size: 13px;
    font-weight: 600;
    color: #1658d0;
    text-decoration: none;
}

.apply-resume-file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-resume-file img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.apply-resume-file p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.apply-resume-preview {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.apply-resume-preview iframe {
    display: block;
    width: 100%;
    height: 950px;
    border: 0;
    overflow: hidden;
}

.hero-nav nav a {
    color: #2d2f36;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 2px 10px;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.hero-nav nav a:hover {
    color: #111827;
    border-bottom-color: #0f4cbf;
}

.hero-nav nav a.active {
    color: #111827;
    border-bottom-color: #0f4cbf;
}

.hero-nav nav a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
    border-radius: 4px;
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
}

.hero-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0f4cbf;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin: 6px auto 2px;
    max-width: 980px;
}

.search-field {
    display: flex;
    align-items: center;
    border: 1px solid #cfd4dc;
    border-radius: 24px;
    background: #fff;
    padding: 0 14px;
}

.search-field i {
    color: #6b7280;
}

.search-field input {
    border: 0;
    outline: none;
    width: 100%;
    padding: 13px 8px;
    font-size: 14px;
}

.search-btn {
    border: 0;
    border-radius: 18px;
    background: #0f4cbf;
    color: #fff;
    font-weight: 700;
    padding: 0 24px;
    font-size: 15px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(360px, 560px);
    gap: 26px;
    align-items: start;
    justify-content: center;
}

.job-list {
    max-height: calc(100vh - 98px);
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.job-list::-webkit-scrollbar {
    display: none;
}

.job-list h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.results-summary {
    margin: -2px 0 12px;
    color: #4b5563;
    font-size: 14px;
}

.job-card {
    display: block;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.job-card.selected {
    border-left: 4px solid #0f4cbf;
    padding-left: 11px;
}

.job-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.3;
}

.job-card p {
    margin: 0 0 6px;
    font-size: 14px;
}

.job-card .company {
    color: #374151;
    font-size: 14px;
}

.job-card .location {
    color: #4b5563;
}

.pay-snippet {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: #edf5ff;
    color: #0f4cbf;
    font-size: 13px !important;
    font-weight: 700;
    padding: 4px 8px;
    margin-top: 2px !important;
}

.meta-snippets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.worktype-snippet {
    display: inline-flex;
    align-items: center;
    background: #dff3e4;
    color: #176f37;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}

.summary {
    margin-top: 10px !important;
    color: #4b5563;
    font-size: 13px;
}

.job-detail {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    max-height: calc(100vh - 98px);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.job-detail::-webkit-scrollbar {
    display: none;
}

.detail-head {
    border-bottom: 1px solid #e4e4e4;
    padding: 16px;
}

.detail-head h1 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.15;
}

.company-line {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
}

.pay-panel {
    margin-top: 12px;
    background: #f5f7fa;
    border-radius: 10px;
    padding: 10px 12px;
}

.pay-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pay-value {
    margin: 0;
    font-size: 17px;
    color: #111827;
    font-weight: 700;
}

.detail-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 12px;
    background: #0f4cbf;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 18px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #f2f2f2;
    font-size: 20px;
    color: #374151;
}

.detail-body {
    padding: 16px;
}

.job-details-panel {
    margin-bottom: 16px;
}

.job-details-panel h2 {
    font-size: 24px;
    margin: 0 0 12px;
}

.job-type-row {
    padding-top: 2px;
}

.job-type-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.job-type-title i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

.job-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-type-chip {
    display: inline-flex;
    align-items: center;
    background: #dff3e4;
    color: #176f37;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 700;
}

.detail-body h2 {
    font-size: 24px;
    margin: 0 0 12px;
}

.job-description {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.empty-state,
.empty-detail {
    text-align: center;
    padding: 26px;
    color: #6b7280;
}

@media (max-width: 1200px) {
    .home-hero {
        margin: 0;
    }

    .brand {
        font-size: 22px;
    }

    .hero-nav nav a {
        font-size: 15px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-list,
    .job-detail {
        max-height: none;
    }

    body {
        overflow: auto;
        height: auto;
    }

    .indeed-page {
        height: auto;
        overflow: visible;
    }

    .detail-head h1 {
        font-size: 22px;
    }

    .company-line {
        font-size: 15px;
    }

    .apply-btn {
        font-size: 15px;
        padding: 10px 14px;
    }

    .icon-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .detail-body h2 {
        font-size: 22px;
    }

    .job-description {
        font-size: 14px;
    }
}

@media (max-width: 820px) {
    .hero-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-nav-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-nav nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-nav-right {
        padding-left: 4px;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }
}
