/* =============================================================================
   JobIntaker Core — Frontend Styles
   Version: 1.0.1
   Covers: AI Assist, Custom Skills, Dashboard, Job List, Match Analysis,
           Resume Output, Pricing Page, ACF Form Tweaks
   ============================================================================= */

/* Global keyboard focus state — visible outline for keyboard nav, no ring on
   mouse clicks. Applies broadly rather than needing to be set per-component. */
[class^="ji-"]:focus-visible,
[class*=" ji-"]:focus-visible {
    outline: 2px solid #0D9B8A;
    outline-offset: 2px;
}


/* ─── ACF Form Tweaks ─────────────────────────────────────────────────────── */

.acf-form .elementor-field-group .elementor-field-textual:focus {
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0%) !important;
}
.acf-table {
    border-radius: 5px !important;
    overflow: hidden !important;
}
ul.acf-checkbox-list:focus-within {
    border: none !important;
}
.acf-form input[type=text]:focus {
    border: 1px solid gray !important;
}
.select2-container.-acf .select2-selection {
    border-color: #ccc !important;
    background-color: #fbfbfb !important;
}
.select2-results__options {
    font-size: 12px;
}
.select2-search__field {
    padding: 2px 5px !important;
    border-radius: 4px !important;
    color: #000 !important;
    min-width: 50px;
    vertical-align: top;
}
.acf-field textarea {
    font-size: 12px !important;
}
.acf-fields.-left > .acf-field:before {
    border: none !important;
    background: transparent !important;
}
.acf-tooltip {
    font-size: 12px !important;
}
.-plus {
    display: none !important;
}
.acf-fields.-left > .acf-field > .acf-label {
    padding: 5px !important;
    padding-left: 10px !important;
}
.acf-repeater-add-row {
    font-size: 12px;
    border: 1px solid;
    padding: 2px 5px !important;
    border-radius: 3px;
}
.acfe-repeater-stylised-button {
    padding: 1px !important;
    border-radius: 5px !important;
    border: 2px dotted #ccc !important;
}
.acfe-repeater-stylised-button:hover {
    background-color: #f4f4f4 !important;
}
.acf-button.acf-repeater-add-row.button {
    background: none !important;
    color: inherit;
    border: none;
    box-shadow: none !important;
}
.acf-button.acf-repeater-add-row.button:hover {
    color: #FC5E1F;
    background: none;
    box-shadow: none;
}
.acf-row-number {
    font-size: 12px;
}
.acf-box .title {
    border-bottom: none !important;
    padding: 0 !important;
}
.acf-icon.grey {
    border: none !important;
    background: none !important;
    color: gray !important;
    font-size: 14px !important;
}
.acf-icon.grey:hover {
    background: none !important;
}
#acf-popup .acf-popup-box .title {
    display: none !important;
}
#acf-popup .acf-popup-box {
    border-radius: 4px !important;
}
.acf-table > thead > tr > th {
    border: none !important;
}
.acf-field select {
    padding: 4px !important;
    font-size: 12px !important;
    line-height: inherit !important;
    border-radius: 5px;
}
.acf-repeater .acf-row-handle {
    width: auto !important;
    background-color: #f4f4f4 !important;
}
.acf-table > tbody > tr > td {
    border: none !important;
    vertical-align: middle !important;
}
.acf-field .acf-label label {
    font-weight: 400 !important;
}
.acfe-field-tooltip {
    float: left !important;
    line-height: 1.2 !important;
    margin-right: 5px;
}
.select2-selection__choice {
    font-size: 12px;
}
.acf-repeater .acf-row-handle.order {
    border-radius: 5px 0 0 5px;
}
.acf-repeater.-row > table > tbody > tr > td {
    padding: 5px !important;
}
.acf-repeater .acf-row-handle.remove {
    padding: 10px !important;
    border-radius: 0 4px 4px 0;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #FC5E1F !important;
}
.first-col label,
.sec-col label {
    white-space: nowrap;
    font-size: 12px;
}
.first-col .acf-input,
.sec-col .acf-input {
    float: right !important;
    width: 70% !important;
    margin-left: 10px !important;
}

/* jQuery UI Datepicker — keep month + year on one line */
.ui-datepicker .ui-datepicker-title {
    white-space: nowrap;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    display: inline-block !important;
    width: auto !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}

/* ─── Skills Display (Master Resume + Dashboard) ──────────────────────────── */

.aa-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.aa-skill-tag {
    background: #50447E;
    color: #fff;
    padding: 5px 14px;
    border-radius: 0;
    font-size: 11px;
}
.aa-no-data {
    font-size: 13px;
    color: #aaa;
}


/* ─── Custom Skills Inline UI ─────────────────────────────────────────────── */

.aa-custom-skills-ui {
    padding-top: 12px;
}
.aa-custom-skills-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.aa-custom-skill-input-row {
    display: flex;
    gap: 8px;
}
.aa-custom-skill-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    background: #fff;
}
.aa-custom-skill-input:focus {
    border-color: #534AB7;
    outline: none;
}
.aa-custom-skill-btn {
    padding: 5px 25px !important;
    background: #534AB7;
    color: #fff;
    border: none;
    border-radius: 4px !important;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.aa-custom-skill-btn:hover {
    background: #FC5E1F !important;
}
.aa-custom-skills-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
.aa-skill-tag-custom {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f4f4f4;
    color: #000;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    margin-right: 5px;
}
.aa-custom-skill-remove {
    background: none !important;
    border: none;
    color: #000 !important;
    font-size: 15px !important;
    cursor: pointer;
    padding: 3px 0 3px 5px !important;
    line-height: 1;
}
.aa-custom-skill-remove:hover {
    color: #FC5E1F !important;
}


/* ─── AI Assist Buttons ───────────────────────────────────────────────────── */

.cvrai-wrapper {
    position: relative;
    display: block;
    width: 100%;
}
.cvrai-assist-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 12px;
    background: #534AB7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cvrai-assist-btn:hover {
    background: #3C3489;
}
.cvrai-assist-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.cvrai-preview {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f0edff;
    border-left: 4px solid #534AB7;
    border-radius: 4px;
}
.cvrai-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #534AB7;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cvrai-preview-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 10px;
}
.cvrai-preview-actions {
    display: flex;
    gap: 8px;
}
.cvrai-accept-btn,
.cvrai-discard-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cvrai-accept-btn {
    background: #22c55e;
    color: #fff;
}
.cvrai-accept-btn:hover {
    background: #16a34a;
}
.cvrai-discard-btn {
    background: #e5e7eb;
    color: #555;
}
.cvrai-discard-btn:hover {
    background: #d1d5db;
}


/* ─── Dashboard — Job Intakes List ───────────────────────────────────────── */

.aa-job-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aa-job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 0.5px solid #e5e5e5;
    border-radius: 10px;
    gap: 12px;
}
.aa-job-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.aa-job-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aa-job-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.aa-job-company {
    font-size: 12px;
    color: #888;
}
.aa-job-sep {
    font-size: 12px;
    color: #ccc;
}
.aa-job-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.aa-job-date {
    font-size: 12px;
    color: #aaa;
}
.aa-btn-view {
    padding: 5px 14px;
    background: #534AB7;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
.aa-btn-view:hover {
    background: #3C3489;
    color: #fff;
}
.aa-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}
.aa-badge-ready {
    background: #EAF3DE;
    color: #3B6D11;
}
.aa-badge-progress {
    background: #f5f5f5;
    color: #aaa;
}
.aa-no-jobs {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}
.aa-no-jobs a {
    color: #534AB7;
    text-decoration: none;
}
.aa-no-jobs a:hover {
    text-decoration: underline;
}


/* ─── Resume Match Analysis ───────────────────────────────────────────────── */

.aa-analysis-box {
    background: #fff;
    border: 0.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}
.aa-analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.aa-analysis-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}
.aa-match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.aa-score-number {
    font-size: 28px;
    font-weight: 500;
}
.aa-score-label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.aa-analysis-bar-wrap {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}
.aa-analysis-bar {
    height: 6px;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.aa-analysis-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid #f0f0f0;
}
.aa-analysis-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.aa-section-heading {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.aa-section-strong .aa-section-heading  { color: #3B6D11; }
.aa-section-missing .aa-section-heading { color: #854F0B; }
.aa-section-gaps .aa-section-heading    { color: #534AB7; }
.aa-section-content {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.aa-missing-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #FAEEDA;
    color: #854F0B;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px 4px 3px 0;
}


/* ─── Re-analyze & Upgrade Prompts ───────────────────────────────────────── */

.aa-reanalyze-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 0.5px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.aa-reanalyze-btn {
    padding: 8px 16px;
    background: #534AB7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.aa-reanalyze-btn:hover {
    background: #3C3489;
}
.aa-reanalyze-count {
    font-size: 12px;
    color: #999;
}
.aa-reanalyze-limit {
    font-size: 13px;
    color: #999;
    margin: 0;
}
.aa-upgrade-prompt-analysis {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f7ff;
    border-radius: 8px;
    border: 0.5px solid #e0deff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.aa-upgrade-prompt-analysis p {
    font-size: 13px;
    color: #555;
    margin: 0;
}
.cvr-upgrade-btn {
    padding: 7px 16px;
    background: #534AB7;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.cvr-upgrade-btn:hover {
    background: #3C3489;
    color: #fff;
}
.cvr-upgrade-prompt {
    padding: 12px 16px;
    background: #f8f7ff;
    border-radius: 8px;
    border: 0.5px solid #e0deff;
    font-size: 13px;
    color: #555;
}
.cvr-upgrade-prompt p {
    margin: 0 0 8px;
}


/* ─── Tailor Resume Button ────────────────────────────────────────────────── */

.tailor-resume-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #534AB7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.tailor-resume-btn:hover {
    background: #3C3489;
    color: #fff;
}
.tailor-resume-btn-secondary {
    background: #f5f5f5;
    color: #534AB7;
    border: 1px solid #534AB7;
}
.tailor-resume-btn-secondary:hover {
    background: #EEEDFE;
    color: #3C3489;
}


/* ─── Tailored Resume Output ──────────────────────────────────────────────── */

.tailored-resume-output pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
    border: 0.5px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 24px;
}
.aa-resume-heading {
    font-size: 13px;
    font-weight: 600;
    color: #534AB7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 18px 0 6px;
    padding-bottom: 4px;
    border-bottom: 0.5px solid #e5e5e5;
}
.aa-resume-bullet {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-left: 16px;
    list-style: disc;
}
.aa-resume-line {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin: 2px 0;
}


/* ─── Application Studio ──────────────────────────────────────────────────── */

.aa-studio-empty,
.aa-studio-error {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}
.aa-studio-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.aa-studio-job-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.aa-studio-company {
    font-size: 13px;
    color: #888;
}
.aa-studio-result-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.aa-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.aa-btn-primary {
    background: #534AB7;
    color: #fff;
}
.aa-btn-primary:hover {
    background: #3C3489;
    color: #fff;
}
.aa-btn-secondary {
    background: #f5f5f5;
    color: #555;
}
.aa-btn-secondary:hover {
    background: #ebebeb;
    color: #333;
}


/* ─── Pricing Page ────────────────────────────────────────────────────────── */

.cvr-pricing-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
}
.cvr-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}
.cvr-pricing-title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.cvr-pricing-sub {
    font-size: 15px;
    color: #888;
    margin: 0;
}
.cvr-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cvr-plan-card {
    background: #fff;
    border: 0.5px solid #e5e5e5;
    border-radius: 14px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.cvr-plan-featured {
    border: 2px solid #534AB7;
}
.cvr-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #534AB7;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.cvr-plan-header {
    margin-bottom: 20px;
}
.cvr-plan-name {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.cvr-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}
.cvr-plan-amount {
    font-size: 36px;
    font-weight: 500;
    color: #1a1a1a;
}
.cvr-plan-period {
    font-size: 14px;
    color: #999;
}
.cvr-plan-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.cvr-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.cvr-plan-features li {
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 0.5px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cvr-plan-features li:last-child {
    border-bottom: none;
}
.cvr-feature-yes::before {
    content: '✓';
    color: #3B6D11;
    font-weight: 500;
    flex-shrink: 0;
}
.cvr-feature-no {
    color: #bbb;
}
.cvr-feature-no::before {
    content: '✕';
    color: #ddd;
    font-weight: 500;
    flex-shrink: 0;
}
.cvr-coming-soon {
    font-size: 10px;
    background: #EEEDFE;
    color: #534AB7;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 500;
}
.cvr-plan-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.cvr-plan-btn-free {
    background: #f5f5f5;
    color: #555;
}
.cvr-plan-btn-free:hover {
    background: #ebebeb;
    color: #333;
}
.cvr-plan-btn-premium {
    background: #534AB7;
    color: #fff;
}
.cvr-plan-btn-premium:hover {
    background: #3C3489;
    color: #fff;
}
.cvr-plan-btn-active {
    background: #EAF3DE;
    color: #3B6D11;
    border-radius: 8px;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}
.cvr-plan-btn-disabled {
    background: #F0F4F8;
    color: #999999;
    border-radius: 8px;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
}
.cvr-plan-trial-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .cvr-pricing-grid {
        grid-template-columns: 1fr;
    }
    .aa-job-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .aa-job-item-right {
        width: 100%;
        justify-content: space-between;
    }
    .aa-studio-result-header {
        flex-direction: column;
    }
    .aa-upgrade-prompt-analysis {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================================
   JobIntaker Auth — [ji_auth] & [ji_reset_password]
   ============================================================================= */

/* ── Wrap ───────────────────────────────────────────────────────────────────── */

.ji-auth-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.ji-auth-already-in {
    text-align: center;
    color: #444444;
    font-size: 15px;
}

.ji-auth-already-in a {
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
}

/* ── Tabs ───────────────────────────────────────────────────────────────────── */

.ji-auth-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0;
}

.ji-auth-tab {
    background: none;
    border: none;
    padding: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: #999999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    transition: color 0.2s, border-color 0.2s;
}

.ji-auth-tab.ji-tab-active {
    color: #000027;
    font-weight: 700;
    border-bottom-color: #000027;
}

.ji-auth-tab:hover:not(.ji-tab-active) {
    color: #444444;
}

/* ── Panels ─────────────────────────────────────────────────────────────────── */

.ji-auth-panel {
    display: none;
}

.ji-auth-panel.ji-panel-active {
    display: block;
}

/* ── Headings ───────────────────────────────────────────────────────────────── */

.ji-auth-heading {
    font-size: 28px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.ji-auth-subtext {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: -12px 0 24px;
}

/* ── Fields ─────────────────────────────────────────────────────────────────── */

.ji-auth-field {
    margin-bottom: 14px;
    position: relative;
}

.ji-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.ji-auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: #000027;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.ji-auth-input:focus {
    border-color: #0D9B8A;
    box-shadow: 0 0 0 3px rgba(13, 155, 138, 0.1);
}

.ji-auth-input::placeholder {
    color: #aaaaaa;
}

.ji-field-password .ji-auth-input {
    padding-right: 44px;
}

.ji-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaaaaa;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.ji-toggle-password:hover {
    color: #000027;
}

/* ── Remember me ────────────────────────────────────────────────────────────── */

.ji-auth-remember {
    margin-bottom: 20px;
}

.ji-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444444;
    cursor: pointer;
}

.ji-remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0D9B8A;
    cursor: pointer;
    margin: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.ji-auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 20px;
}

.ji-btn-login,
.ji-btn-forgot {
    background-color: #000027;
    color: #ffffff;
}

.ji-btn-login:hover,
.ji-btn-forgot:hover {
    background-color: #0D9B8A;
}

.ji-btn-register {
    background-color: #E8441A;
    color: #ffffff;
}

.ji-btn-register:hover {
    background-color: #c93a15;
}

.ji-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Spinner ────────────────────────────────────────────────────────────────── */

.ji-spinner {
    animation: ji-spin 0.8s linear infinite;
}

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

/* ── Links ──────────────────────────────────────────────────────────────────── */

.ji-auth-links {
    font-size: 13px;
    color: #444444;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ji-auth-links a,
.ji-forgot-link {
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.ji-auth-links a:hover,
.ji-forgot-link:hover {
    text-decoration: underline;
}

/* ── Terms ──────────────────────────────────────────────────────────────────── */

.ji-auth-terms {
    font-size: 12px;
    color: #999999;
    margin: 4px 0 16px;
    line-height: 1.6;
}

.ji-auth-terms a {
    color: #0D9B8A;
    text-decoration: none;
}

/* ── Messages ───────────────────────────────────────────────────────────────── */

.ji-auth-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ji-msg-error {
    background-color: #fff0ee;
    color: #c93a15;
    border-left: 3px solid #E8441A;
}

.ji-msg-success {
    background-color: #edfaf8;
    color: #0a7a6c;
    border-left: 3px solid #0D9B8A;
}

.ji-msg-warning {
    background-color: #FFF7E6;
    color: #92620A;
    border-left: 3px solid #F59E0B;
}

/* ── Site-wide notice bar (unified style — used for profile-completion nudge
      and anywhere else a full-width, page-level notice is needed) ──────────── */

.ji-site-notice {
    background: #F0F4F8;
    border-left: 3px solid #E8441A;
    border-radius: 5px;
    color: #000027;
    padding: 14px 16px;
    margin: 16px 32px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ji-site-notice-btn {
    flex-shrink: 0;
    background: #000027;
    color: #ffffff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.2s;
}

.ji-site-notice-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
}

/* ── Success / Error icons ──────────────────────────────────────────────────── */

.ji-auth-success-icon,
.ji-auth-error-icon {
    text-align: center;
    margin-bottom: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .ji-auth-field-row {
        grid-template-columns: 1fr;
    }

    .ji-auth-heading {
        font-size: 22px;
    }

    .ji-auth-tabs {
        gap: 20px;
    }
}

/* ── Google OAuth Button ─────────────────────────────────────────────────────── */

.ji-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    color: #cccccc;
    font-size: 12px;
}

.ji-auth-divider::before,
.ji-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.ji-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #444444;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.ji-google-btn:hover {
    background: #f8f8f8;
    border-color: #cccccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    color: #000027;
}

.ji-linkedin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #444444;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    text-decoration: none;
    box-sizing: border-box;
}

.ji-linkedin-btn:hover {
    background: #f8f8f8;
    border-color: #0A66C2;
    box-shadow: 0 2px 6px rgba(10,102,194,0.15);
    color: #0A66C2;
}

/* =============================================================================
   JobIntaker — Email Verification Page [ji_verify_email]
   ============================================================================= */

.ji-verify-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.ji-verify-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,40,0.08);
}

.ji-verify-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #000027;
    margin: 16px 0 12px;
    letter-spacing: -0.3px;
}

.ji-verify-card p {
    color: #444444;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.ji-verify-note {
    color: #999999 !important;
    font-size: 13px !important;
}

.ji-verify-icon {
    margin-bottom: 8px;
}

.ji-verify-btn {
    display: inline-block;
    background: #0D9B8A;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 6px;
    margin-top: 8px;
    transition: background 0.2s;
}

.ji-verify-btn:hover {
    background: #0a7a6c;
    color: #ffffff;
}

.ji-verify-login-link {
    margin-top: 20px;
}

.ji-verify-login-link a {
    color: #0D9B8A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

/* ── Resend form ──────────────────────────────────────────────────────────── */

.ji-resend-wrap {
    margin-top: 24px;
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}

.ji-resend-btn {
    background: none;
    border: 1px solid #0D9B8A;
    color: #0D9B8A;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
}

.ji-resend-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
}

.ji-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ji-resend-message {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    text-align: left;
}

/* =============================================================================
   JobIntaker — Dashboard [ji_dashboard]
   ============================================================================= */

/* ── Wrap ─────────────────────────────────────────────────────────────────── */

.ji-dash-wrap {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: #444444;
    width: 100%;
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */

.ji-dash-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ji-dash-topbar-left {
    flex: 0 0 auto;
}

.ji-dash-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.ji-dash-logo-text {
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.ji-logo-job {
    color: #E8441A;
}

.ji-logo-intaker {
    color: #000027;
}

.ji-dash-topbar-center {
    flex: 1;
    text-align: center;
}

.ji-dash-greeting {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #000027;
}

.ji-dash-subtext {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-top: 2px;
}

.ji-dash-topbar-right {
    flex: 0 0 auto;
}

.ji-dash-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8441A;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.ji-dash-new-btn:hover {
    background: #c93a15;
    color: #ffffff;
}

/* ── Body layout ──────────────────────────────────────────────────────────── */

.ji-dash-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

.ji-dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Profile card ─────────────────────────────────────────────────────────── */

.ji-dash-profile-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,40,0.06);
}

.ji-dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000027;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    letter-spacing: 1px;
}

.ji-dash-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #000027;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ji-dash-edit-link {
    color: #aaaaaa;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.ji-dash-edit-link:hover {
    color: #0D9B8A;
}

.ji-dash-profile-role {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 20px;
}

/* ── 4-stat grid ──────────────────────────────────────────────────────────── */

.ji-dash-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.ji-dash-stat-cell {
    background: #ffffff;
    padding: 14px 12px;
    text-align: center;
}

.ji-dash-stat-label {
    display: block;
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ji-dash-stat-val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #000027;
    line-height: 1;
}

.ji-dash-stat-sub {
    display: block;
    font-size: 11px;
    color: #aaaaaa;
    margin-top: 2px;
    text-transform: capitalize;
}

/* ── Activity stats ───────────────────────────────────────────────────────── */

.ji-dash-activity {
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    border-radius: 5px;
    padding: 16px 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ji-dash-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ji-dash-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ji-dash-activity-item:first-child {
    padding-top: 0;
}

.ji-dash-activity-icon {
    color: #0D9B8A;
    flex-shrink: 0;
}

.ji-dash-activity-label {
    flex: 1;
    font-size: 13px;
    color: #444444;
}

.ji-dash-activity-val {
    font-size: 14px;
    font-weight: 700;
    color: #000027;
}

.ji-strength-val {
    color: #0D9B8A;
}

/* ── Quick actions ────────────────────────────────────────────────────────── */

.ji-dash-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    border-radius: 5px;
    padding: 16px;
}

.ji-dash-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.ji-action-primary {
    background: #E8441A;
    color: #ffffff;
}

.ji-action-primary:hover {
    background: #c93a15;
    color: #ffffff;
}

.ji-action-secondary {
    background: #ffffff;
    color: #000027;
    border: 1px solid #e0e0e0;
}

.ji-action-secondary:hover {
    background: #F0F4F8;
    color: #000027;
}

/* ── Main content ─────────────────────────────────────────────────────────── */

.ji-dash-main {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.06);
    overflow: hidden;
}

.ji-dash-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ji-dash-main-title {
    font-size: 16px;
    font-weight: 700;
    color: #000027;
    margin: 0;
}

.ji-dash-matches-based-on {
    font-size: 12px;
    font-weight: 500;
    color: #999999;
    margin-left: 6px;
}

.ji-dash-main-count {
    font-size: 12px;
    color: #999999;
    background: #F0F4F8;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Job list ─────────────────────────────────────────────────────────────── */

.ji-dash-job-list {
    padding: 0 24px;
}

.ji-dash-job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ji-dash-job-item:last-child {
    border-bottom: none;
}

.ji-dash-job-left {
    flex: 1;
    min-width: 0;
}

.ji-dash-job-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ji-dash-job-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ji-dash-job-company {
    font-size: 12px;
    color: #666666;
}

.ji-dash-job-sep {
    color: #cccccc;
    font-size: 12px;
}

.ji-dash-job-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ji-dash-job-date {
    font-size: 12px;
    color: #aaaaaa;
    white-space: nowrap;
}

.ji-dash-view-btn {
    background: #000027;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.ji-dash-view-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */

.ji-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.ji-badge-tailored {
    background: #edfaf8;
    color: #0a7a6c;
}

.ji-badge-pending {
    background: #fff3f0;
    color: #c93a15;
}

/* ── Application status ───────────────────────────────────────────────────── */

.ji-status-applied {
    background: #eef0f3;
    color: #555555;
}

.ji-status-interview {
    background: #fff8e1;
    color: #92400e;
}

.ji-status-interviewed {
    background: #e8f0fe;
    color: #1a56b0;
}

.ji-status-offer {
    background: #edfaf8;
    color: #0a7a6c;
}

.ji-status-not-selected {
    background: #f4f4f4;
    color: #888888;
}

.ji-status-withdrawn {
    background: #f4f4f4;
    color: #888888;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.ji-dash-empty {
    text-align: center;
    padding: 60px 24px;
    color: #aaaaaa;
}

.ji-dash-empty-icon {
    margin-bottom: 16px;
}

.ji-dash-empty p {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 20px;
}

.ji-dash-empty .ji-dash-new-btn {
    background: #E8441A;
    color: #ffffff;
}

.ji-dash-empty .ji-dash-new-btn:hover {
    background: #c93a15;
    color: #ffffff;
}

/* ── Responsive: Tablet ───────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .ji-dash-body {
        grid-template-columns: 1fr;
        padding: 20px 24px;
    }

    .ji-dash-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ji-dash-profile-card {
        grid-column: 1 / -1;
    }

    .ji-dash-quick-actions {
        flex-direction: row;
    }

    .ji-dash-action-btn {
        flex: 1;
    }
}

/* ── Responsive: Mobile ───────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .ji-dash-topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .ji-dash-topbar-center {
        order: 3;
        flex: 0 0 100%;
        text-align: left;
    }

    .ji-dash-greeting {
        font-size: 15px;
    }

    .ji-dash-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .ji-dash-sidebar {
        grid-template-columns: 1fr;
    }

    .ji-dash-quick-actions {
        flex-direction: column;
    }

    .ji-dash-job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ji-dash-job-right {
        width: 100%;
        justify-content: space-between;
    }

    .ji-dash-new-btn {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* =============================================================================
   JobIntaker — Account Management [ji_change_password] [ji_delete_account]
   ============================================================================= */

.ji-account-card {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 5px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,40,0.08);
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.ji-account-heading {
    font-size: 22px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 24px;
    letter-spacing: -0.3px;
}

.ji-heading-danger {
    color: #c93a15;
}

.ji-account-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ji-account-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ji-notice-info {
    background: #edfaf8;
    color: #0a7a6c;
    border-left: 3px solid #0D9B8A;
}

.ji-notice-danger {
    background: #fff3f0;
    color: #c93a15;
    border-left: 3px solid #E8441A;
    margin-bottom: 20px;
}

.ji-notice-danger strong {
    display: block;
    margin-bottom: 4px;
}

.ji-input-danger:focus {
    border-color: #E8441A;
    box-shadow: 0 0 0 3px rgba(232, 68, 26, 0.1);
}

.ji-btn-danger {
    background: #c93a15;
    color: #ffffff;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.ji-btn-danger:hover {
    background: #a82e0f;
}

.ji-btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ji-account-error {
    color: #c93a15;
    font-size: 14px;
}

.ji-account-error a {
    color: #0D9B8A;
    text-decoration: none;
}

.ji-delete-card {
    border-top: 3px solid #E8441A;
}

@media (max-width: 560px) {
    .ji-account-card {
        padding: 24px 20px;
    }
}

/* =============================================================================
   JobIntaker — Onboarding [ji_onboarding]
   ============================================================================= */

.ji-ob-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 60px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.ji-ob-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.ji-ob-title {
    font-size: 28px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.ji-ob-subtitle {
    color: #666666;
    font-size: 15px;
    margin: 0 0 12px;
}

.ji-ob-skip-top {
    font-size: 13px;
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s;
}

.ji-ob-skip-top:hover {
    color: #0D9B8A;
}

/* ── Progress ─────────────────────────────────────────────────────────────── */

.ji-ob-progress-wrap {
    margin-bottom: 40px;
}

.ji-ob-progress-bar {
    height: 4px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ji-ob-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D9B8A, #0a7a6c);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.ji-ob-steps-labels {
    display: flex;
    justify-content: space-between;
}

.ji-ob-step-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    cursor: default;
}

.ji-ob-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #aaaaaa;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.ji-ob-step-name {
    font-size: 11px;
    color: #aaaaaa;
    text-align: center;
    transition: color 0.3s;
}

.ji-ob-step-label.ji-ob-step-active .ji-ob-step-num {
    background: #000027;
    color: #ffffff;
}

.ji-ob-step-label.ji-ob-step-active .ji-ob-step-name {
    color: #000027;
    font-weight: 700;
}

.ji-ob-step-label.ji-ob-step-done .ji-ob-step-num {
    background: #0D9B8A;
    color: #ffffff;
}

.ji-ob-step-label.ji-ob-step-done .ji-ob-step-name {
    color: #0D9B8A;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */

.ji-ob-step {
    display: none;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0,0,40,0.08);
    overflow: hidden;
}

.ji-ob-step.ji-ob-step-active {
    display: block;
}

.ji-ob-step-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.ji-ob-step-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 4px;
}

.ji-ob-step-header p {
    color: #666666;
    font-size: 13px;
    margin: 0;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */

.ji-ob-form {
    padding: 24px 32px;
}

.ji-ob-field {
    margin-bottom: 20px;
    flex: 1;
}

.ji-ob-field-sm {
    flex: 0 0 120px !important;
}

.ji-ob-field:last-child {
    margin-bottom: 0;
}

.ji-ob-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #000027;
    margin-bottom: 6px;
}

.ji-ob-required {
    color: #E8441A;
}

.ji-ob-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: #000027;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.ji-ob-input:focus {
    border-color: #0D9B8A;
    box-shadow: 0 0 0 3px rgba(13,155,138,0.1);
}

.ji-ob-input::placeholder {
    color: #bbbbbb;
}

.ji-ob-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.ji-ob-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ji-ob-hint {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    margin-top: 5px;
}

.ji-ob-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    align-items: end;
}

.ji-ob-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Skills ───────────────────────────────────────────────────────────────── */

.ji-ob-skill-search-wrap {
    position: relative;
}

.ji-ob-skill-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 12px rgba(0,0,40,0.1);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
}

.ji-ob-skill-option {
    padding: 10px 14px;
    font-size: 13px;
    color: #444444;
    cursor: pointer;
    transition: background 0.15s;
}

.ji-ob-skill-option:hover {
    background: #F0F4F8;
    color: #000027;
}

.ji-ob-skill-custom-add {
    color: #0D9B8A;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
}

.ji-ob-skill-option.ji-ob-skill-added {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #aaaaaa;
    cursor: default;
}

.ji-ob-skill-option.ji-ob-skill-added:hover {
    background: none;
    color: #aaaaaa;
}

.ji-ob-skill-added-label {
    font-size: 11px;
    font-weight: 600;
    color: #0D9B8A;
    white-space: nowrap;
}

.ji-ob-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 36px;
}

.ji-ob-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #edfaf8;
    color: #0a7a6c;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #b8ede7;
}

.ji-ob-skill-custom {
    background: #f0f0ff;
    color: #4444aa;
    border-color: #ccccee;
}

.ji-ob-skill-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

/* ── Suggest Skills for Me ────────────────────────────────────────────────── */

.ji-ob-suggest-skills-wrap {
    margin-top: 4px;
    margin-bottom: 20px;
}

.ji-ob-suggest-skills-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #000027, #0D9B8A);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.1s;
}

.ji-ob-suggest-skills-btn:hover {
    background: linear-gradient(135deg, #000027, #0D9B8A) !important;
    color: #ffffff !important;
    opacity: 0.88;
    transform: translateY(-1px);
}

.ji-ob-suggest-skills-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ji-ob-suggest-skills-msg {
    margin-top: 10px;
}

.ji-ob-suggested-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ji-ob-suggested-skill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #000027;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px dashed #0D9B8A;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ji-ob-suggested-skill:hover {
    background: #edfaf8;
}

.ji-ob-suggested-skill-added {
    border-style: solid;
    border-color: #b8ede7;
    background: #edfaf8;
    color: #0a7a6c;
    cursor: default;
    opacity: 0.7;
}

.ji-ob-skill-remove:hover {
    opacity: 1;
}

/* ── Repeater rows ────────────────────────────────────────────────────────── */

.ji-ob-repeater {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.ji-ob-repeater-row {
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    border-radius: 5px;
    padding: 20px;
}

.ji-ob-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ji-ob-row-title {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
}

.ji-ob-row-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #cccccc;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.ji-ob-row-remove:hover {
    color: #E8441A;
}

.ji-ob-lang-row .ji-ob-field-row {
    align-items: flex-end;
    margin-bottom: 0;
}

.ji-ob-lang-remove {
    align-self: flex-end;
    margin-bottom: 2px;
}

.ji-ob-add-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px dashed #0D9B8A;
    color: #0D9B8A;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ji-ob-add-row:hover {
    background: #edfaf8;
}

.ji-resume-editor-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ji-resume-import-projects-btn {
    border-style: solid;
    border-color: #000027;
    color: #000027;
}

.ji-resume-import-projects-btn:hover {
    background: #000027;
    color: #ffffff;
}

.ji-import-projects-msg {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 8px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.ji-ob-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 32px;
    background: #F8FAFB;
    border-top: 1px solid #f0f0f0;
}

.ji-ob-btn-skip {
    font-size: 13px;
    color: #aaaaaa;
    text-decoration: none;
    margin-right: auto;
    transition: color 0.2s;
}

.ji-ob-btn-skip:hover {
    color: #666666;
}

.ji-ob-btn-back {
    background: none;
    border: 1px solid #e0e0e0;
    color: #444444;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.ji-ob-btn-back:hover {
    background: #f5f5f5;
}

.ji-ob-btn-next,
.ji-ob-btn-complete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000027;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 11px 24px;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    min-width: 160px;
}

.ji-ob-btn-next:hover {
    background: #0D9B8A;
}

.ji-ob-btn-complete {
    background: #E8441A;
}

.ji-ob-btn-complete:hover {
    background: #c93a15;
}

.ji-ob-btn-next:disabled,
.ji-ob-btn-complete:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Message ──────────────────────────────────────────────────────────────── */

.ji-ob-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .ji-ob-form {
        padding: 20px 16px;
    }

    .ji-ob-step-header {
        padding: 20px 16px 16px;
    }

    .ji-ob-footer {
        padding: 16px;
        flex-wrap: wrap;
    }

    .ji-ob-btn-skip {
        margin-right: 0;
        order: 3;
        width: 100%;
        text-align: center;
    }

    .ji-ob-field-row {
        grid-template-columns: 1fr;
    }

    .ji-ob-field-sm {
        flex: 1 !important;
    }

    .ji-ob-steps-labels {
        display: none;
    }

    .ji-ob-title {
        font-size: 22px;
    }
}

/* =============================================================================
   JobIntaker — Onboarding v1.0.11 improvements
   ============================================================================= */

/* ── Input text color fix ─────────────────────────────────────────────────── */

.ji-ob-input,
.ji-ob-input:not(:placeholder-shown),
.ji-ob-select {
    color: #000027 !important;
}

.ji-ob-input::placeholder {
    color: #bbbbbb !important;
}

/* ── Date selects row ─────────────────────────────────────────────────────── */

.ji-ob-date-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.ji-ob-dates-disabled select,
.ji-ob-dates-disabled .ji-ob-input {
    opacity: 0.4;
    pointer-events: none;
    background: #f5f5f5 !important;
}

.ji-ob-current-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #666666;
    cursor: pointer;
    margin-top: 4px;
}

.ji-ob-current-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #0D9B8A;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ── Language row ─────────────────────────────────────────────────────────── */

.ji-ob-lang-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

.ji-ob-lang-inner .ji-ob-field {
    margin-bottom: 0;
}

.ji-ob-lang-remove {
    margin-bottom: 2px;
    flex-shrink: 0;
}

/* ── Certification row ────────────────────────────────────────────────────── */

.ji-ob-cert-inner {
    display: grid;
    grid-template-columns: 2fr 1.5fr 100px auto;
    gap: 12px;
    align-items: flex-end;
}

.ji-ob-cert-inner .ji-ob-field {
    margin-bottom: 0;
}

.ji-ob-cert-remove {
    margin-bottom: 2px;
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .ji-ob-lang-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ji-ob-lang-remove {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .ji-ob-cert-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ji-ob-cert-year {
        grid-column: 1;
    }

    .ji-ob-cert-remove {
        grid-column: 2;
        justify-self: end;
    }

    .ji-ob-date-selects {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================================================
   JobIntaker — Onboarding v1.0.12 alignment fixes
   ============================================================================= */

/* ── Uniform input/select height ──────────────────────────────────────────── */

.ji-ob-input,
.ji-ob-select {
    height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    line-height: 44px !important;
}

.ji-ob-textarea {
    height: auto !important;
    line-height: 1.6 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* ── Date selects equal height ────────────────────────────────────────────── */

.ji-ob-date-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.ji-ob-date-selects .ji-ob-select {
    width: 100% !important;
}

/* ── Cert row alignment ───────────────────────────────────────────────────── */

.ji-ob-cert-inner {
    display: grid;
    grid-template-columns: 2fr 1.5fr 110px auto;
    gap: 12px;
    align-items: flex-end;
}

.ji-ob-cert-inner .ji-ob-field {
    margin-bottom: 0 !important;
}

.ji-ob-cert-remove {
    height: 44px;
    display: flex;
    align-items: center;
    padding-bottom: 0 !important;
}

/* ── Lang row alignment ───────────────────────────────────────────────────── */

.ji-ob-lang-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

.ji-ob-lang-inner .ji-ob-field {
    margin-bottom: 0 !important;
}

.ji-ob-lang-remove {
    height: 44px;
    display: flex;
    align-items: center;
}

/* ── Field row alignment ──────────────────────────────────────────────────── */

.ji-ob-field-row {
    align-items: flex-end !important;
}

.ji-ob-field-row .ji-ob-field {
    margin-bottom: 0 !important;
}

/* ── Remove button consistent size ───────────────────────────────────────── */

.ji-ob-row-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.ji-ob-row-remove:hover {
    background: #fff0ee;
    color: #E8441A;
}

/* =============================================================================
   JobIntaker — Dashboard topbar v1.0.13 fixes
   ============================================================================= */

/* Greeting left-aligned in topbar */
.ji-dash-topbar-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ji-dash-plan-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    margin-bottom: 6px;
}

.ji-dash-plan-pro {
    background: #E8441A;
    color: #ffffff;
}

.ji-dash-plan-free {
    background: #eef0f3;
    color: #666666;
}

.ji-dash-plan-badge-centered {
    align-self: center;
    margin: 10px 0 2px;
}

.ji-dash-greeting {
    font-size: 17px;
    font-weight: 700;
    color: #000027;
    display: block;
}

.ji-dash-subtext {
    font-size: 12px;
    color: #999999;
    margin-top: 2px;
    display: block;
}

@media (max-width: 767px) {
    .ji-dash-topbar {
        padding: 12px 16px;
    }

    .ji-dash-greeting {
        font-size: 15px;
    }
}

/* =============================================================================
   JobIntaker — Master Resume Profile [ji_resume_profile]
   ============================================================================= */

.ji-profile-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.ji-profile-section {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.07);
    overflow: hidden;
}

/* Skills section needs its skill-search dropdown to escape the card boundary;
   overflow:hidden above (for rounded corners) would otherwise clip it. */
#ji-section-skills {
    overflow: visible;
}

#ji-section-skills .ji-profile-section-edit {
    border-radius: 0 0 5px 5px;
}

.ji-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.ji-profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #000027;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ji-profile-section-view {
    padding: 20px 24px;
}

.ji-profile-section-edit {
    padding: 20px 24px;
    background: #F8FAFB;
    border-top: 1px solid #f0f0f0;
}

/* ── Edit button ──────────────────────────────────────────────────────────── */

.ji-profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #e0e0e0;
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.ji-profile-edit-btn:hover {
    background: #000027;
    color: #ffffff;
    border-color: #000027;
}

.ji-btn-inline {
    border: none;
    padding: 0;
    color: #0D9B8A;
    font-size: 13px;
    background: none;
}

.ji-btn-inline:hover {
    background: none;
    color: #0a7a6c;
    border: none;
    text-decoration: underline;
}

/* ── Header section ───────────────────────────────────────────────────────── */

.ji-profile-header-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 24px;
    position: relative;
}

.ji-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #000027;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ji-profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #000027;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.ji-profile-headline {
    font-size: 14px;
    color: #666666;
    margin: 0 0 10px;
}

.ji-profile-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ji-profile-contacts-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-top: 10px;
}

.ji-profile-contact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666666;
    text-decoration: none;
}

.ji-profile-contact-empty {
    color: #bbbbbb;
    font-style: italic;
}

.ji-profile-link {
    color: #0D9B8A;
    font-weight: 600;
}

.ji-profile-link:hover {
    text-decoration: underline;
}

.ji-profile-download-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 9px 16px;
    border: 1px solid #0D9B8A;
    border-radius: 6px;
    background: #ffffff;
    color: #0D9B8A;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    cursor: pointer;
}

.ji-profile-download-resume-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
}

.ji-profile-download-resume-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.ji-profile-download-msg {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.ji-profile-howto {
    position: relative;
    margin: 0 24px 24px;
    padding: 16px 44px 16px 18px;
    background: rgba(13,155,138,0.06);
    border: 1px solid rgba(13,155,138,0.18);
    border-radius: 8px;
}

.ji-profile-howto-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ji-profile-howto-dismiss:hover {
    background: rgba(0,0,39,0.06);
}

.ji-profile-howto-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.ji-profile-howto-header span {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
}

.ji-profile-howto-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ji-profile-howto-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 200px;
    min-width: 200px;
}

.ji-profile-howto-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ji-profile-howto-item strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #000027;
    line-height: 1.3;
}

.ji-profile-howto-item span {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

.ji-profile-howto-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(13,155,138,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.ji-profile-download-msg.ji-msg-error {
    color: #E8441A;
}

/* Header section edit btn position */
#ji-section-header .ji-profile-section-view {
    padding: 0;
    position: relative;
}

#ji-section-header .ji-profile-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ── Strength ring ────────────────────────────────────────────────────────── */

.ji-profile-strength-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    justify-self: end;
}

.ji-profile-strength-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ji-profile-strength-ring svg {
    width: 80px;
    height: 80px;
}

.ji-strength-label {
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ji-strength-tips {
    margin-top: 12px;
    padding: 12px 14px;
    background: #F0F4F8;
    border-radius: 6px;
    max-width: 220px;
    text-align: left;
}

.ji-strength-tips-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 6px;
}

.ji-strength-tips ul {
    margin: 0;
    padding-left: 16px;
}

.ji-strength-tips li {
    font-size: 12px;
    line-height: 1.5;
    color: #555555;
    margin-bottom: 6px;
}

.ji-strength-tips li:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .ji-strength-tips {
        max-width: none;
        text-align: left;
    }

    .ji-profile-howto {
        margin: 0 16px 16px;
    }

    .ji-profile-howto-strip {
        flex-direction: column;
        gap: 14px;
    }
}

.ji-strength-circle {
    transition: stroke-dashoffset 0.6s ease;
}

/* ── Summary ──────────────────────────────────────────────────────────────── */

.ji-profile-summary-text {
    font-size: 14px;
    color: #444444;
    line-height: 1.8;
    margin: 0;
}

/* ── Skills ───────────────────────────────────────────────────────────────── */

.ji-profile-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ji-profile-skill-tag {
    display: inline-block;
    background: #edfaf8;
    color: #0a7a6c;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #b8ede7;
}

.ji-skill-custom {
    background: #f0f0ff;
    color: #4444aa;
    border-color: #ccccee;
}

/* ── Experience ───────────────────────────────────────────────────────────── */

.ji-profile-exp-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 16px;
    border-left: 2px solid #e8e8e8;
}

.ji-profile-exp-item {
    position: relative;
    padding: 0 0 24px 20px;
}

.ji-profile-exp-item:last-child {
    padding-bottom: 0;
}

.ji-profile-exp-dot {
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0D9B8A;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #0D9B8A;
}

.ji-profile-exp-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ji-profile-exp-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.ji-profile-exp-title {
    font-size: 15px;
    font-weight: 700;
    color: #000027;
}

.ji-profile-exp-date {
    font-size: 12px;
    color: #aaaaaa;
    white-space: nowrap;
}

.ji-profile-exp-company {
    font-size: 13px;
    color: #0D9B8A;
    font-weight: 600;
}

.ji-profile-exp-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.7;
    margin: 6px 0 0;
}

/* ── Projects ─────────────────────────────────────────────────────────────── */

.ji-profile-proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ji-profile-proj-card {
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    border-radius: 5px;
    padding: 16px;
}

.ji-profile-proj-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ji-profile-proj-title {
    font-size: 14px;
    font-weight: 700;
    color: #000027;
}

.ji-profile-proj-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
}

.ji-profile-proj-link:hover {
    text-decoration: underline;
}

.ji-profile-proj-desc {
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* ── Experience: structured display + editor ─────────────────────────────── */

.ji-profile-exp-card {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ji-profile-exp-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ji-profile-exp-card:first-child {
    padding-top: 0;
}

.ji-profile-exp-header {
    font-size: 13.5px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 6px;
}

.ji-profile-exp-bullets {
    margin: 0;
    padding-left: 18px;
}

.ji-profile-exp-bullets li {
    font-size: 12.5px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 2px;
}

.ji-exp-entry {
    padding: 14px;
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    border-radius: 5px;
    margin-bottom: 12px;
}

.ji-exp-entry:last-of-type {
    margin-bottom: 0;
}

.ji-exp-entry-header {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e8eb;
}

.ji-exp-bullets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.ji-exp-bullet-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ji-exp-bullet-row .ji-ob-input {
    flex: 1;
}

.ji-exp-bullet-row .ji-ob-row-remove {
    flex-shrink: 0;
}

/* ── Languages ────────────────────────────────────────────────────────────── */

.ji-profile-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ji-profile-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    padding: 8px 14px;
    border-radius: 5px;
}

.ji-profile-lang-name {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
}

.ji-profile-lang-level {
    font-size: 11px;
    color: #999999;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Certifications ───────────────────────────────────────────────────────── */

.ji-profile-cert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ji-profile-cert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F8FAFB;
    border: 1px solid #eef0f2;
    border-radius: 5px;
}

.ji-profile-cert-name {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
}

.ji-profile-cert-meta {
    font-size: 12px;
    color: #999999;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.ji-profile-empty {
    font-size: 13px;
    color: #aaaaaa;
    margin: 0;
}

/* ── Edit footer ──────────────────────────────────────────────────────────── */

.ji-profile-edit-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.ji-profile-edit-title {
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin: 0 0 16px;
}

.ji-profile-save-msg {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
}

.ji-profile-cancel-btn {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 9px 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.ji-profile-cancel-btn:hover {
    background: #f5f5f5;
}

.ji-profile-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0D9B8A;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 9px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.ji-profile-save-btn:hover {
    background: #0a7a6c;
}

.ji-profile-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .ji-profile-header-layout {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .ji-profile-strength-wrap {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .ji-profile-proj-grid {
        grid-template-columns: 1fr;
    }

    .ji-profile-cert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* =============================================================================
   JobIntaker — Dashboard v1.0.16 profile card updates
   ============================================================================= */

.ji-dash-profile-headline {
    font-size: 11px !important;
    color: #0D9B8A !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: block !important;
}

.ji-dash-master-resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F0F4F8;
    color: #000027;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 12px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ji-dash-master-resume-btn:hover {
    background: #000027;
    color: #ffffff;
    border-color: #000027;
}

/* =============================================================================
   JobIntaker — Account Page [ji_account]
   ============================================================================= */

.ji-account-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ji-account-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ji-account-page-title {
    font-size: 24px;
    font-weight: 800;
    color: #000027;
    margin: 0;
    letter-spacing: -0.3px;
}

.ji-account-back-link {
    font-size: 13px;
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
}

.ji-account-back-link:hover {
    text-decoration: underline;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.ji-account-section {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.07);
    overflow: hidden;
}

.ji-account-section-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.ji-account-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin: 0;
}

.ji-account-section-body {
    padding: 20px 24px;
}

.ji-account-section-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

/* ── Read-only input ──────────────────────────────────────────────────────── */

.ji-input-readonly {
    background: #F8FAFB !important;
    color: #aaaaaa !important;
    cursor: not-allowed !important;
}

/* ── Description text ─────────────────────────────────────────────────────── */

.ji-account-desc {
    font-size: 13px;
    color: #666666;
    margin: 0 0 12px;
    line-height: 1.6;
}

/* ── Link button ──────────────────────────────────────────────────────────── */

.ji-account-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0D9B8A;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.ji-account-link-btn:hover {
    color: #0a7a6c;
    text-decoration: underline;
}

.ji-account-billing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

/* ── Notice ───────────────────────────────────────────────────────────────── */

.ji-account-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.6;
}

.ji-notice-info {
    background: #edfaf8;
    color: #0a7a6c;
    border-left: 3px solid #0D9B8A;
}

/* ── Subscription status ──────────────────────────────────────────────────── */

.ji-account-commerce-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

.ji-account-commerce-grid .ji-account-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.ji-account-commerce-grid .ji-account-section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Orders endpoint (woocommerce/myaccount/orders.php override) ─────────── */

.ji-account-orders-endpoint {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.07);
    padding: 8px 24px;
}

.ji-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.ji-orders-th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666666;
    padding: 14px 12px;
    border-bottom: 1px solid #eef0f3;
}

.ji-orders-td {
    font-size: 14px;
    color: #000027;
    padding: 14px 12px;
    border-bottom: 1px solid #f4f5f7;
}

.ji-orders-row:last-child .ji-orders-td {
    border-bottom: none;
}

.ji-orders-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #F0F4F8;
    color: #000027;
}

.ji-orders-status-completed,
.ji-orders-status-processing,
.ji-orders-status-active {
    background: rgba(13,155,138,0.12);
    color: #0D9B8A;
}

.ji-orders-status-failed,
.ji-orders-status-cancelled,
.ji-orders-status-on-hold {
    background: rgba(232,68,26,0.10);
    color: #E8441A;
}

.ji-orders-pagination {
    display: flex;
    justify-content: space-between;
    padding: 16px 12px 20px;
}

.ji-orders-empty {
    margin: 16px 0;
}

@media (max-width: 700px) {
    .ji-orders-table thead {
        display: none;
    }
    .ji-orders-table, .ji-orders-table tbody, .ji-orders-row, .ji-orders-td {
        display: block;
        width: 100%;
    }
    .ji-orders-row {
        padding: 12px 0;
        border-bottom: 1px solid #f4f5f7;
    }
    .ji-orders-td {
        border-bottom: none;
        padding: 4px 0;
    }
    .ji-orders-td::before {
        content: attr(data-label);
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: #999999;
        width: 90px;
    }
}

@media (max-width: 900px) {
    .ji-account-commerce-grid {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce billing email field — locked to match the account email */
body.woocommerce-account input#billing_email[readonly] {
    background: #F0F4F8 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
}

.ji-account-sub-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ji-account-sub-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid;
}

.ji-account-trial-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #E8441A;
    background: #FEEEEA;
    border: 1px solid #f9c9b8;
    padding: 4px 10px;
    border-radius: 20px;
}

.ji-account-sub-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.ji-account-sub-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ji-account-sub-detail-row span {
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.ji-account-sub-detail-row strong {
    font-size: 13px;
    color: #000027;
}

/* ── Payment methods list ─────────────────────────────────────────────────── */

.ji-account-payment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.ji-account-payment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F8FAFB;
    border-radius: 6px;
}

.ji-account-payment-brand {
    font-size: 13px;
    color: #333333;
    font-weight: 600;
}

.ji-account-payment-default {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0D9B8A;
    background: #E6F7F5;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Order history list ───────────────────────────────────────────────────── */

.ji-account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.ji-account-order-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #F8FAFB;
    border-radius: 6px;
    flex-wrap: wrap;
}

.ji-account-order-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-right: auto;
}

.ji-account-order-info strong {
    font-size: 13px;
    color: #000027;
}

.ji-account-order-info span {
    font-size: 11px;
    color: #999999;
}

.ji-account-order-status {
    font-size: 11px;
    font-weight: 700;
    color: #0D9B8A;
    background: #E6F7F5;
    padding: 3px 10px;
    border-radius: 20px;
}

.ji-account-order-total {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
}

/* ── WooCommerce endpoint delegation wrapper (view order, add payment, etc.) ── */

.ji-account-endpoint-wrap {
    max-width: 700px;
    margin: 24px auto 60px;
    padding: 0 20px;
}

.ji-account-endpoint-content {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.06);
}

/* ── Danger zone ──────────────────────────────────────────────────────────── */

.ji-account-danger-section {
    border-top: 3px solid #E8441A;
}

.ji-danger-title {
    color: #c93a15 !important;
}

.ji-account-danger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ji-account-danger-label {
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin: 0 0 4px;
}

.ji-danger-link {
    color: #E8441A !important;
    white-space: nowrap;
}

.ji-danger-link:hover {
    color: #c93a15 !important;
}

@media (max-width: 560px) {
    .ji-account-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ji-account-sub-status,
    .ji-account-danger-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================================
   JobIntaker — Application Studio [ji_job_intake_form]
   ============================================================================= */

.ji-studio-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.ji-studio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.ji-studio-title {
    font-size: 26px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 4px;
    letter-spacing: -0.4px;
}

.ji-studio-subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.ji-studio-back {
    font-size: 13px;
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 6px;
}

.ji-studio-back:hover {
    text-decoration: underline;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.ji-studio-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0,0,40,0.08);
    overflow: hidden;
    margin-bottom: 32px;
}

/* ── URL Section ──────────────────────────────────────────────────────────── */

.ji-studio-url-section {
    padding: 24px 28px 20px;
    background: #F8FAFB;
    border-bottom: 1px solid #eef0f2;
}

.ji-studio-url-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.ji-studio-url-row .ji-studio-input {
    flex: 1;
}

.ji-studio-fetch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000027;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 0 20px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    height: 44px;
    transition: background 0.2s;
}

.ji-studio-fetch-btn:hover {
    background: #0D9B8A;
}

.ji-studio-fetch-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ji-studio-fetch-notice {
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 5px;
}

.ji-fetch-success {
    background: #edfaf8;
    color: #0a7a6c;
}

.ji-fetch-error {
    background: #fff3f0;
    color: #c93a15;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.ji-studio-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    margin: 20px 0 0;
    color: #aaaaaa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ji-studio-divider::before,
.ji-studio-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */

.ji-studio-form {
    padding: 20px 28px;
}

.ji-studio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000027;
    margin-bottom: 6px;
}

.ji-studio-required {
    color: #E8441A;
}

.ji-studio-optional {
    font-size: 11px;
    color: #aaaaaa;
    font-weight: 400;
}

.ji-studio-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: #000027;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    height: 44px;
}

.ji-studio-input:focus {
    border-color: #0D9B8A;
    box-shadow: 0 0 0 3px rgba(13,155,138,0.1);
}

.ji-studio-input::placeholder {
    color: #bbbbbb;
}

.ji-studio-textarea {
    height: auto !important;
    min-height: 220px;
    resize: vertical;
    line-height: 1.6;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.ji-studio-hint {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    margin-top: 5px;
}

/* ── JD quality indicator ─────────────────────────────────────────────────── */

.ji-studio-jd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.ji-studio-char-count {
    font-size: 12px;
    color: #aaaaaa;
}

.ji-studio-jd-hint {
    font-size: 12px;
    color: #aaaaaa;
}

.ji-studio-jd-quality {
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

.ji-jd-red    { color: #E8441A; }
.ji-jd-yellow { color: #F59E0B; }
.ji-jd-green  { color: #0D9B8A; }

/* ── Action buttons ───────────────────────────────────────────────────────── */

.ji-studio-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    background: #F8FAFB;
    border-top: 1px solid #eef0f2;
}

.ji-studio-btn-save,
.ji-studio-btn-tailor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 12px 22px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
}

.ji-studio-btn-save {
    background: #ffffff;
    color: #000027;
    border: 1px solid #e0e0e0;
}

.ji-studio-btn-save:hover {
    background: #F0F4F8;
}

.ji-studio-btn-tailor {
    background: #E8441A;
    color: #ffffff;
    min-width: 200px;
    justify-content: center;
}

.ji-studio-btn-tailor:hover {
    background: #c93a15;
}

.ji-studio-btn-save:disabled,
.ji-studio-btn-tailor:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ji-studio-saving-text {
    font-size: 13px;
    font-weight: 600;
}

/* ── Recent applications ──────────────────────────────────────────────────── */

.ji-studio-recent {
    margin-top: 8px;
}

.ji-studio-recent-title {
    font-size: 15px;
    font-weight: 700;
    color: #000027;
    margin: 0 0 12px;
}

.ji-studio-recent-list {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.07);
    overflow: hidden;
}

.ji-studio-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    gap: 16px;
}

.ji-studio-recent-item:last-child {
    border-bottom: none;
}

.ji-studio-recent-left {
    flex: 1;
    min-width: 0;
}

.ji-studio-recent-title-text {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ji-studio-recent-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ji-studio-recent-company {
    font-size: 12px;
    color: #666666;
}

.ji-studio-meta-sep {
    color: #cccccc;
    font-size: 12px;
}

.ji-studio-recent-date {
    font-size: 12px;
    color: #aaaaaa;
}

.ji-studio-recent-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.ji-studio-recent-view {
    font-size: 13px;
    font-weight: 600;
    color: #0D9B8A;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.ji-studio-recent-view:hover {
    text-decoration: underline;
}

.ji-studio-all-link {
    display: block;
    font-size: 13px;
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    text-align: right;
}

.ji-studio-all-link:hover {
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .ji-studio-header {
        flex-direction: column;
        gap: 8px;
    }

    .ji-studio-url-row {
        flex-direction: column;
    }

    .ji-studio-fetch-btn {
        width: 100%;
        justify-content: center;
        height: 44px;
    }

    .ji-studio-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .ji-studio-btn-save,
    .ji-studio-btn-tailor {
        width: 100%;
        justify-content: center;
    }

    .ji-studio-recent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =============================================================================
   JobIntaker — AI Assist Buttons (Onboarding + Master Resume fields)
   ============================================================================= */

.ji-ai-wrap {
    position: relative;
    width: 100%;
}

.ji-ai-assist-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #000027, #0D9B8A);
    color: #ffffff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.1s;
}

.ji-ai-assist-btn:hover {
    background: linear-gradient(135deg, #000027, #0D9B8A) !important;
    color: #ffffff !important;
    opacity: 0.88;
    transform: translateY(-1px);
}

.ji-ai-assist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ji-ai-usage-counter {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    margin-left: 8px;
    padding: 5px 10px;
    background: #F0F4F8;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #444444;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    vertical-align: middle;
}

/* ── Preview box ──────────────────────────────────────────────────────────── */

.ji-ai-preview {
    background: #edfaf8;
    border: 1px solid #b8ede7;
    border-left: 3px solid #0D9B8A;
    border-radius: 5px;
    padding: 14px 16px;
    margin-top: 8px;
}

.ji-ai-preview-label {
    font-size: 11px;
    font-weight: 700;
    color: #0D9B8A;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.ji-ai-preview-text {
    font-size: 13px;
    color: #000027;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ji-ai-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ji-ai-accept-btn,
.ji-ai-discard-btn {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.ji-ai-accept-btn {
    background: #0D9B8A;
    color: #ffffff;
}

.ji-ai-accept-btn:hover {
    background: #0a7a6c;
}

.ji-ai-discard-btn {
    background: #f0f0f0;
    color: #666666;
}

.ji-ai-discard-btn:hover {
    background: #e0e0e0;
}

/* =============================================================================
   JobIntaker — Dashboard v1.0.21 profile button updates
   ============================================================================= */

.ji-dash-profile-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 10px;
}

.ji-dash-update-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F0F4F8;
    color: #444444;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.ji-dash-update-profile-btn:hover {
    background: #e0e4e8;
    color: #000027;
}

/* =============================================================================
   JobIntaker — Job Single Page [ji_job_single]
   ============================================================================= */

.ji-single-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ji-job-wrap {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 24px 0 60px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.ji-job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.ji-job-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #0D9B8A;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
}

.ji-job-back:hover { text-decoration: underline; }

.ji-job-title {
    font-size: 24px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
}

.ji-job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ji-status-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.ji-status-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 5px 26px 5px 12px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.ji-status-saved-msg {
    font-size: 12px;
    color: #0D9B8A;
    font-weight: 600;
}

.ji-job-company,
.ji-job-date,
.ji-job-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666666;
    text-decoration: none;
}

.ji-job-source {
    color: #0D9B8A;
    font-weight: 600;
}

.ji-job-source:hover { text-decoration: underline; }

.ji-job-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000027;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.2s;
}

.ji-job-pdf-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
}

.ji-cover-letter-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0D9B8A;
    border: 1px solid #0D9B8A;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.ji-cover-letter-pdf-btn:hover {
    background: #000027;
    border-color: #000027;
    color: #ffffff;
}

/* ── Tailor section (no resume) ───────────────────────────────────────────── */

.ji-job-tailor-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.ji-job-tailor-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 16px rgba(0,0,40,0.08);
    padding: 48px 40px;
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.ji-job-tailor-icon {
    margin-bottom: 20px;
}

.ji-job-tailor-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #000027;
    margin: 0 0 12px;
}

.ji-job-tailor-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 28px;
}

.ji-tailor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E8441A;
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 14px 32px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 24px;
    min-width: 280px;
}

.ji-tailor-btn:hover { background: #c93a15; }
.ji-tailor-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.ji-tailor-btn-sm {
    font-size: 13px;
    padding: 8px 16px;
    margin-bottom: 0;
    min-width: auto;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */

.ji-tailor-progress {
    margin-bottom: 20px;
}

.ji-tailor-progress-bar {
    height: 4px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ji-tailor-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D9B8A, #E8441A);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.ji-tailor-progress-msg {
    font-size: 13px;
    color: #666666;
    margin: 0;
    font-style: italic;
}

.ji-retailor-progress {
    margin-bottom: 16px;
}

.ji-tailor-error {
    color: #E8441A;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff3f0;
    border-radius: 5px;
    border-left: 3px solid #E8441A;
}

/* ── Features list ────────────────────────────────────────────────────────── */

.ji-tailor-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.ji-tailor-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #444444;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ── Content layout (has resume) ──────────────────────────────────────────── */

.ji-job-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* ── Resume column ────────────────────────────────────────────────────────── */

.ji-job-resume-col {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.07);
    overflow: visible;
}

.ji-resume-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #F8FAFB;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.ji-resume-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ji-retailor-remaining {
    font-size: 11.5px;
    color: #999999;
    font-weight: 500;
}

.ji-retailor-limit-msg {
    font-size: 12px;
    color: #E8441A;
    font-weight: 600;
    background: #FDF0EC;
    padding: 6px 12px;
    border-radius: 5px;
}

.ji-upgrade-sm-btn {
    font-size: 12px;
    font-weight: 600;
    color: #E8441A;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #E8441A;
    border-radius: 5px;
    transition: all 0.2s;
}

.ji-upgrade-sm-btn:hover {
    background: #E8441A;
    color: #ffffff;
}

/* ── Tailored Versions panel (sidebar) ────────────────────────────────────── */

.ji-versions-msg {
    font-size: 11.5px;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ji-versions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ji-version-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #ffffff;
}

.ji-version-current {
    border-color: #0D9B8A;
    background: #F0FAF9;
}

.ji-version-item-row {
    display: flex;
    align-items: center;
}

.ji-version-item-top-row {
    justify-content: space-between;
    gap: 8px;
}

.ji-version-badge {
    display: inline-block;
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0D9B8A;
    background: #E6F7F5;
    padding: 2px 7px;
    border-radius: 20px;
}

.ji-version-score {
    font-size: 13.5px;
    font-weight: 700;
    color: #0D9B8A;
}

.ji-version-score-empty {
    color: #999999;
    font-weight: 600;
    font-size: 12.5px;
}

.ji-version-time {
    font-size: 12px;
    color: #999999;
}

.ji-version-stats {
    font-size: 11.5px;
    color: #666666;
    font-weight: 500;
}

.ji-version-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0D9B8A;
    text-decoration: none;
}

.ji-version-pdf-link:hover {
    text-decoration: underline;
}

.ji-version-use-btn {
    margin-top: 4px;
    width: 100%;
    background: none;
    border: 1px solid #000027;
    color: #000027;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ji-version-use-btn:hover {
    background: #000027;
    color: #ffffff;
}

.ji-version-use-btn-sm {
    margin-top: 0;
    width: auto;
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 10px;
    border-color: #E8441A;
    color: #E8441A;
}

.ji-version-use-btn-sm:hover {
    background: #E8441A;
    color: #ffffff;
}

.ji-version-use-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.ji-resume-panel { display: block; }

/* ── Resume editor: reuses Master Resume's .ji-profile-section card pattern ── */

.ji-resume-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* .ji-profile-section clips overflow for its rounded corners (shared with the
   Master Resume page), which also clips the absolutely-positioned skill
   autocomplete dropdown. Scoped to this page only so Master Resume is untouched. */
#ji-resume-editor .ji-profile-section {
    overflow: visible;
}

#ji-resume-editor .ji-profile-section-edit {
    border-radius: 0 0 5px 5px;
}

.ji-resume-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ji-resume-section-edit-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ji-resume-section-edit-actions .ji-profile-cancel-btn,
.ji-resume-section-edit-actions .ji-profile-save-btn {
    padding: 6px 14px;
    font-size: 12px;
}

.ji-section-editor-textarea {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.ji-section-editor-textarea[data-heading="EXPERIENCE"] {
    min-height: 180px;
}

/* ── Section suggestions — actionable hints, no scoring/judgment ────────────── */

.ji-section-suggestions {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f4faf9;
    border: 1px solid #d5efe9;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #0a7a6c;
}

.ji-section-suggestions-label {
    font-weight: 700;
    margin-right: 6px;
}

.ji-section-suggestions-advisory {
    display: block;
}

.ji-suggest-advisory-list {
    font-weight: 600;
}

.ji-suggest-add-btn {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #0a7a6c;
    border: 1px solid #b8ede7;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 3px 4px 3px 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ji-suggest-add-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
    border-color: #0D9B8A;
}

/* ── Cover Letter card ────────────────────────────────────────────────────── */

.ji-cover-letter-empty {
    padding: 24px;
    text-align: center;
}

.ji-cover-letter-empty p {
    font-size: 13px;
    color: #666666;
    max-width: 420px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.ji-cover-letter-rewrite {
    padding: 14px 24px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}

#ji-cover-letter-textarea {
    min-height: 260px;
}

/* ── Analysis column ──────────────────────────────────────────────────────── */

.ji-job-analysis-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 6px;
}

.ji-analysis-flash {
    animation: ji-analysis-flash-anim 1.3s ease;
}

@keyframes ji-analysis-flash-anim {
    0%   { box-shadow: 0 0 0 3px rgba(13,155,138,0.35); }
    100% { box-shadow: 0 0 0 0 rgba(13,155,138,0); }
}

.ji-analysis-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.07);
    padding: 20px;
}

.ji-analysis-score-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ji-apply-ready-notice {
    margin-top: 14px;
    padding: 10px 12px;
    background: #F0FAF9;
    border: 1px solid #B8E8E1;
    border-radius: 6px;
    color: #0a7a6c;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.ji-stale-analysis-notice {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ji-stale-analysis-text {
    font-size: 12px;
    color: #92620A;
    background: #FFF7E6;
    border: 1px solid #FDE8B8;
    padding: 8px 10px;
    border-radius: 6px;
    line-height: 1.5;
}

.ji-reanalyze-msg {
    font-size: 11.5px;
    padding: 6px 8px;
    border-radius: 6px;
}

.ji-reanalyze-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #000027;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.ji-reanalyze-btn:hover {
    background: #0D9B8A;
}

.ji-reanalyze-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.ji-reanalyze-remaining {
    font-size: 11.5px;
    color: #999999;
    font-weight: 500;
}

.ji-reanalyze-limit-msg {
    font-size: 12px;
    color: #E8441A;
    font-weight: 600;
    background: #FDF0EC;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
}

.ji-analysis-score-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ji-analysis-score-label {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ji-analysis-score-desc {
    font-size: 15px;
    font-weight: 700;
    color: #000027;
}

.ji-analysis-card-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ji-analysis-card-note {
    font-size: 11px;
    color: #999999;
    line-height: 1.5;
    margin: 0 0 12px;
}

.ji-title-green { color: #0D9B8A; }
.ji-title-amber { color: #F59E0B; }
.ji-title-red   { color: #E8441A; }

.ji-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ji-analysis-item {
    font-size: 12px;
    line-height: 1.6;
    padding: 8px 10px;
    border-radius: 4px;
}

.ji-item-green {
    background: #edfaf8;
    color: #0a7a6c;
}

.ji-item-red {
    background: #fff3f0;
    color: #c93a15;
}

.ji-missing-keyword {
    display: inline-block;
    background: #fff8e1;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin: 2px;
    border: 1px solid #fde68a;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: default;
}

.ji-missing-keyword.ji-keyword-actionable {
    cursor: pointer;
}

.ji-missing-keyword.ji-keyword-actionable::before {
    content: "+ ";
    font-weight: 700;
}

.ji-missing-keyword.ji-keyword-actionable:hover {
    background: #fef0c7;
    border-color: #f5c451;
}

.ji-missing-keyword.ji-keyword-resolved {
    background: #edfaf8;
    color: #0a7a6c;
    border-color: #b8ede7;
    text-decoration: line-through;
    opacity: 0.75;
    cursor: default;
}

.ji-missing-keyword.ji-keyword-resolved::before {
    content: "✓ ";
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ji-job-content {
        grid-template-columns: 1fr;
    }

    .ji-job-analysis-col {
        order: -1;
    }

    .ji-analysis-score-wrap {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .ji-job-header {
        flex-direction: column;
    }

    .ji-job-tailor-card {
        padding: 28px 20px;
    }

    .ji-tailor-btn {
        min-width: auto;
        width: 100%;
    }
}

/* =============================================================================
   JobIntaker — Header Account Menu [ji_account_menu]
   ============================================================================= */

.ji-acct-menu {
    position: relative;
    display: inline-block;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.ji-acct-menu-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
}

.ji-acct-menu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000027;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    transition: box-shadow 0.15s;
}

.ji-acct-menu-trigger:hover .ji-acct-menu-avatar {
    box-shadow: 0 0 0 3px rgba(13,155,138,0.25);
}

.ji-acct-menu-avatar-guest {
    background: #ffffff;
    color: #666666;
    border: 1.5px solid #e0e0e0;
}

.ji-acct-menu-trigger:hover .ji-acct-menu-avatar-guest {
    border-color: #0D9B8A;
    color: #0D9B8A;
}

.ji-acct-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,40,0.14);
    padding: 8px;
    z-index: 200;
}

.ji-acct-menu-dropdown.ji-acct-menu-open {
    display: block;
}

.ji-acct-menu-header {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ji-acct-menu-name {
    font-size: 13px;
    font-weight: 700;
    color: #000027;
}

.ji-acct-menu-email {
    font-size: 11px;
    color: #999999;
    word-break: break-all;
}

.ji-acct-menu-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0D9B8A;
    background: #E6F7F5;
    padding: 2px 8px;
    border-radius: 20px;
}

.ji-acct-menu-badge-free {
    color: #999999;
    background: #F0F4F8;
}

.ji-acct-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    transition: background 0.15s;
}

.ji-acct-menu-item:hover {
    background: #F8FAFB;
    color: #000027;
}

.ji-acct-menu-item-upgrade {
    color: #E8441A;
}

.ji-acct-menu-item-upgrade:hover {
    background: #FEEEEA;
    color: #E8441A;
}

.ji-acct-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 4px;
}

.ji-acct-menu-item-logout {
    color: #E8441A;
}

.ji-acct-menu-item-logout:hover {
    background: #FEEEEA;
    color: #E8441A;
}

/* =============================================================================
   JobIntaker — WooCommerce My Account page reskin
   Scoped to body.woocommerce-account only, so cart/checkout/shop pages
   elsewhere are completely unaffected.
   ============================================================================= */

body.woocommerce-account {
    background: #F0F4F8;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

body.woocommerce-account .woocommerce {
    max-width: 1080px;
    margin: 24px auto 60px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 0 20px;
}

/* ── Sidebar nav: hidden entirely ──────────────────────────────────────────
   [ji_account] provides its own "← Back to My Account" link and page layout
   for every WooCommerce endpoint sub-page, so this nav is fully redundant. */

body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none;
}

/* ── Content area ── */

body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0,0,40,0.06);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: #000027;
    font-weight: 800;
}

/* ── Buttons ── */

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
    background: #0D9B8A !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    transition: background 0.2s;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover,
body.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #0a7a6c !important;
    color: #ffffff !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .button.cancel,
body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel"] {
    background: #E8441A !important;
}

/* ── Tables (orders, subscriptions) ── */

body.woocommerce-account table.shop_table,
body.woocommerce-account table.subscription_details {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
    width: 100%;
}

body.woocommerce-account table.shop_table th {
    background: #F8FAFB;
    color: #999999;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 14px;
}

body.woocommerce-account table.shop_table td {
    padding: 12px 14px;
    font-size: 13px;
    color: #333333;
    border-top: 1px solid #f7f7f7;
}

/* ── Form fields ── */

body.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea {
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 10px 12px !important;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
}

body.woocommerce-account .woocommerce-MyAccount-content input.input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
    border-color: #0D9B8A !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,155,138,0.1);
}

/* ── Status badges (subscription/order status) ── */

body.woocommerce-account mark.order-status,
body.woocommerce-account .subscription-status {
    background: #E6F7F5;
    color: #0D9B8A;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

@media (max-width: 782px) {
    body.woocommerce-account .woocommerce {
        flex-direction: column;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
    }
}

/* ── Application notes ────────────────────────────────────────────────────── */

.ji-notes-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    white-space: pre-line;
}

.ji-notes-empty {
    font-size: 13px;
    line-height: 1.6;
    color: #999999;
    font-style: italic;
    margin: 0;
}

#ji-notes-textarea.ji-studio-textarea {
    min-height: 90px;
}

.ji-notes-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* ── Dashboard: Jobs You Might Like ───────────────────────────────────────── */

.ji-dash-matches-header {
    margin-top: 32px;
}

.ji-dash-matches-note {
    font-size: 13px;
    color: #999999;
    padding: 20px 0;
}

.ji-dash-matches-note a {
    color: #0D9B8A;
    font-weight: 600;
    margin-left: 4px;
}

.ji-dash-matches-list {
    display: flex;
    flex-direction: column;
}

.ji-dash-match-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ji-dash-match-item:last-child {
    border-bottom: none;
}

.ji-dash-match-left {
    flex: 1;
    min-width: 0;
}

.ji-dash-match-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000027;
    margin-bottom: 4px;
}

.ji-dash-match-reason {
    font-size: 12px;
    color: #0D9B8A;
    margin: 6px 0 0;
    line-height: 1.5;
}

.ji-dash-match-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.ji-dash-match-view-link {
    font-size: 12px;
    color: #666666;
    text-decoration: none;
}

.ji-dash-match-view-link:hover {
    text-decoration: underline;
}

.ji-dash-match-add-btn {
    white-space: nowrap;
    padding: 7px 14px;
    border: 1px solid #0D9B8A;
    border-radius: 6px;
    background: #ffffff;
    color: #0D9B8A;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    cursor: pointer;
}

.ji-dash-match-add-btn:hover {
    background: #0D9B8A;
    color: #ffffff;
}

.ji-dash-match-add-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 767px) {
    .ji-dash-match-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ji-dash-match-right {
        align-items: flex-start;
        width: 100%;
    }
}

/* ── Cover Letter — Past Versions disclosure ──────────────────────────────
   Reuses .ji-version-item / .ji-version-item-row / .ji-version-time /
   .ji-version-pdf-link / .ji-versions-msg / .ji-versions-list / .ji-version-
   score(-empty) from the Tailored Versions card (pure styling classes, no
   JS bound to them) — the card itself lives in the right sidebar next to
   Tailored Versions now, not embedded in the Cover Letter card. Only
   .ji-cl-version-use-btn is new — deliberately NOT named .ji-version-use-
   btn, since that class already has a resume-specific click handler bound
   to it; giving the cover letter button the same class would fire the
   wrong AJAX action. */

.ji-cl-version-use-btn {
    margin-top: 0;
    width: auto;
    flex-shrink: 0;
    background: none;
    border: 1px solid #E8441A;
    color: #E8441A;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ji-cl-version-use-btn:hover {
    background: #E8441A;
    color: #ffffff;
}

.ji-cl-version-use-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ── Career Headline: AI Suggest button + input row ───────────────────────
   Shared by the Master Resume header form and the Dashboard's own headline
   editor. Mirrors .ji-ai-assist-btn's look but sits inline next to a
   single-line input rather than below a textarea. */

.ji-headline-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ji-headline-input-row .ji-ob-input {
    flex: 1 1 auto;
}

.ji-headline-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: #E8441A;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 9px 16px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ji-headline-ai-btn:hover {
    background: #c93a15;
    color: #ffffff;
}

.ji-headline-ai-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Dashboard: Career Headline quick view/edit block ──────────────────────
   Sits between the greeting topbar and the two-column body. */

.ji-dash-headline-block {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.ji-dash-headline-header {
    margin-bottom: 12px;
}

.ji-dash-headline-view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ji-dash-headline-text {
    font-size: 14px;
    font-weight: 600;
    color: #000027;
}

.ji-dash-headline-empty {
    font-size: 13px;
    color: #999999;
    font-style: italic;
}

.ji-dash-headline-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: none;
    border: 1px solid #dcdfe3;
    color: #444444;
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.ji-dash-headline-edit-btn:hover {
    background: #F0F4F8;
}

.ji-dash-headline-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.ji-dash-headline-msg {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .ji-dash-headline-view {
        flex-direction: column;
        align-items: flex-start;
    }
    .ji-headline-input-row {
        flex-direction: column;
        align-items: stretch;
    }
}
