:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #f9fafb;

    --text: #151923;
    --text-secondary: #667085;
    --text-light: #98a2b3;

    --primary: #4455ee;
    --primary-hover: #3544d8;
    --primary-soft: #eef0ff;

    --border: #e4e7ec;

    --success: #157f3b;
    --success-bg: #eaf8ef;

    --warning: #a45a00;
    --warning-bg: #fff4df;

    --shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.04);

    --shadow:
        0 8px 24px rgba(16, 24, 40, 0.06);

    --radius: 14px;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}


body {
    min-height: 100vh;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


/* ------------------------
   Navbar
------------------------- */

.navbar {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: var(--surface);

    border-bottom:
        1px solid var(--border);
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-mark,
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: white;

    font-weight: 700;
}


.brand-mark {
    width: 38px;
    height: 38px;

    border-radius: 10px;
}


.brand-name {
    font-weight: 700;
    font-size: 16px;
}


.brand-subtitle {
    margin-top: 1px;

    font-size: 12px;
    color: var(--text-secondary);
}


.navbar-actions {
    display: flex;
    align-items: center;

    gap: 18px;
}


.user-email {
    font-size: 14px;
    color: var(--text-secondary);
}


/* ------------------------
   Generic layout
------------------------- */

.page-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        48px 0
        70px;
}


.eyebrow {
    margin:
        0 0 8px;

    color: var(--primary);

    text-transform: uppercase;

    letter-spacing: 0.08em;

    font-size: 12px;
    font-weight: 700;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h1 {
    margin-bottom: 10px;

    font-size: 34px;
    line-height: 1.2;
}


h2 {
    font-size: 21px;
}


h3 {
    font-size: 16px;
}


.page-description,
.card-description {
    color: var(--text-secondary);

    line-height: 1.65;
}


.dashboard-header {
    margin-bottom: 34px;
}


/* ------------------------
   Cards
------------------------- */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


.card {
    padding: 26px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.card-highlight {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f9ff
        );
}


.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 22px;
}


.card-header > div {
    display: flex;
    align-items: center;

    gap: 12px;
}


.card-header h2 {
    margin: 0;
}


.card-icon {
    min-width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-radius: 10px;

    background:
        var(--primary-soft);

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}


.status-badge {
    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
}


.status-success {
    background:
        var(--success-bg);

    color: var(--success);
}


.status-warning {
    background:
        var(--warning-bg);

    color: var(--warning);
}


/* ------------------------
   Buttons
------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        0 18px;

    border: 0;

    border-radius: 9px;

    font-weight: 650;
    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.btn:hover {
    transform:
        translateY(-1px);
}


.btn-primary {
    background:
        var(--primary);

    color: white;
}


.btn-primary:hover {
    background:
        var(--primary-hover);
}


.btn-secondary {
    background:
        white;

    color: var(--text);

    border:
        1px solid var(--border);
}


.btn-secondary:hover {
    background:
        var(--surface-soft);
}


.btn-small {
    min-height: 36px;

    padding: 0 14px;
}


.btn-full {
    width: 100%;
}


.btn-disabled {
    background:
        #e9ecf2;

    color:
        #98a2b3;

    cursor:
        not-allowed;
}


.btn-disabled:hover {
    transform: none;
}


/* ------------------------
   Authentication
------------------------- */

.auth-page {
    min-height:
        calc(100vh - 96px);

    display: grid;

    grid-template-columns:
        minmax(320px, 500px)
        minmax(320px, 420px);

    justify-content: center;
    align-items: center;

    gap: 90px;
}


.auth-brand {
    max-width: 490px;
}


.auth-logo {
    width: 58px;
    height: 58px;

    margin-bottom: 26px;

    border-radius: 15px;

    font-size: 24px;

    box-shadow:
        0 10px 25px
        rgba(68, 85, 238, 0.22);
}


.auth-brand h1 {
    margin-bottom: 16px;

    font-size: 42px;
}


.auth-brand p {
    max-width: 440px;

    color:
        var(--text-secondary);

    font-size: 17px;
    line-height: 1.7;
}


.auth-card {
    padding: 34px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    box-shadow:
        var(--shadow);
}


.auth-card-header {
    margin-bottom: 28px;
}


.auth-card-header h2 {
    margin-bottom: 7px;

    font-size: 24px;
}


.auth-card-header p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size: 14px;
}


.form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.form-group label {
    font-size: 13px;
    font-weight: 650;
}


.form-group input {
    width: 100%;

    height: 46px;

    padding:
        0 14px;

    border:
        1px solid
        #d0d5dd;

    border-radius: 9px;

    background: white;

    outline: none;

    color:
        var(--text);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.form-group input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(68, 85, 238, 0.12);
}


.auth-footer {
    display: flex;
    justify-content: center;

    gap: 6px;

    margin-top: 24px;

    color:
        var(--text-secondary);

    font-size: 13px;
}


.auth-footer a {
    color:
        var(--primary);

    font-weight: 650;
}


/* ------------------------
   Dashboard content
------------------------- */

.master-cv-info {
    display: flex;
    flex-direction: column;

    gap: 22px;
}


.file-display {
    display: flex;
    align-items: center;

    gap: 13px;
}


.file-icon {
    width: 46px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius:
        8px;

    background:
        #f1f3f8;

    color:
        #667085;

    font-size: 11px;
    font-weight: 800;
}


.file-display p {
    margin:
        4px 0 0;

    color:
        var(--text-secondary);

    font-size: 13px;
}


.empty-state {
    padding:
        10px 0 4px;
}


.empty-state h3 {
    margin-bottom:
        8px;
}


.empty-state p {
    max-width:
        460px;

    margin-bottom:
        22px;

    color:
        var(--text-secondary);

    line-height:
        1.6;
}


.section-heading {
    margin:
        52px 0 20px;
}


.section-heading h2 {
    margin: 0;

    font-size: 24px;
}


.steps-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.step-card {
    padding: 22px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        12px;
}


.step-number {
    width: 30px;
    height: 30px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        18px;

    border-radius:
        50%;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size:
        13px;

    font-weight:
        800;
}


.step-card h3 {
    margin-bottom:
        8px;
}


.step-card p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size:
        14px;

    line-height:
        1.6;
}


/* ------------------------
   Responsive
------------------------- */

@media (
    max-width: 900px
) {

    .auth-page {
        grid-template-columns: 1fr;

        gap: 36px;

        max-width: 520px;

        margin: 0 auto;
    }


    .auth-brand {
        text-align: center;
    }


    .auth-logo {
        margin:
            0 auto 20px;
    }


    .dashboard-grid,
    .steps-grid {
        grid-template-columns:
            1fr;
    }


    .navbar {
        padding:
            0 20px;
    }


    .user-email {
        display: none;
    }

}


@media (
    max-width: 560px
) {

    .page-container {
        width:
            calc(100% - 28px);

        padding-top:
            30px;
    }


    .auth-card {
        padding:
            24px;
    }


    .auth-brand h1 {
        font-size:
            32px;
    }


    h1 {
        font-size:
            28px;
    }


    .brand-subtitle {
        display: none;
    }

}

/* ------------------------
   Page Header
------------------------- */

.page-header {
    margin-bottom: 30px;
}


.upload-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(260px, 1fr);

    gap: 24px;

    align-items: start;
}


/* ------------------------
   Upload
------------------------- */

.upload-card {
    padding: 30px;
}


.upload-dropzone {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px;

    border:
        2px dashed
        #d0d5dd;

    border-radius: 14px;

    background:
        #fafbff;

    cursor: pointer;

    text-align: center;

    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}


.upload-dropzone:hover,
.upload-dropzone.dragging {
    border-color:
        var(--primary);

    background:
        var(--primary-soft);
}


.upload-dropzone.has-file {
    border-color:
        #aab1f8;
}


.upload-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 23px;

    font-weight: 700;
}


.upload-dropzone h3 {
    margin-bottom: 7px;

    font-size: 18px;
}


.upload-dropzone p {
    margin-bottom: 17px;

    color:
        var(--text-secondary);
}


.upload-types {
    padding: 6px 10px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 20px;

    color:
        var(--text-secondary);

    font-size: 11px;

    font-weight: 700;
}


.selected-file {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 18px;

    padding: 14px 16px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;
}


.selected-file p {
    margin:
        4px 0 0;

    color:
        var(--text-secondary);

    font-size: 12px;
}


.file-remove {
    border: 0;

    background: none;

    color:
        #d92d20;

    cursor: pointer;

    font-size: 13px;

    font-weight: 650;
}


.upload-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
}


.upload-actions button:disabled {
    background:
        #d9dded;

    cursor:
        not-allowed;
}


.upload-actions button:disabled:hover {
    transform: none;
}


.current-file {
    margin-bottom: 24px;

    padding:
        16px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--surface-soft);
}


.current-file-label {
    margin-bottom:
        13px;

    color:
        var(--text-secondary);

    font-size:
        11px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


/* ------------------------
   Upload Information
------------------------- */

.upload-info-card {
    padding: 25px;

    background:
        #161b2c;

    color:
        white;

    border-radius:
        14px;

    box-shadow:
        var(--shadow);
}


.upload-info-card h3 {
    margin-bottom:
        25px;

    font-size:
        18px;
}


.info-item {
    display: flex;

    align-items:
        flex-start;

    gap: 13px;

    margin-bottom:
        22px;
}


.info-item:last-child {
    margin-bottom: 0;
}


.info-number {
    min-width: 28px;
    height: 28px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    font-size:
        12px;

    font-weight:
        800;
}


.info-item strong {
    font-size: 14px;
}


.info-item p {
    margin:
        5px 0 0;

    color:
        #aeb5c7;

    font-size:
        13px;

    line-height:
        1.55;
}


@media (
    max-width: 850px
) {

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

}


/* ------------------------
   Master CV Version History
------------------------- */

.version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 0;

    border-bottom:
        1px solid
        var(--border);
}

.version-row:first-child {
    padding-top: 0;
}

.version-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}


/* ------------------------
   Button Groups
------------------------- */

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ------------------------
   Master CV Version Actions
------------------------- */

.version-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.version-actions form {
    margin: 0;
}


.status-archived {
    background: #f2f4f7;
    color: #667085;
}


.version-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    margin-top: 22px;
}


@media (max-width: 600px) {

    .version-row {
        align-items: flex-start;
        gap: 18px;
    }


    .version-actions {
        flex-direction: column;
        align-items: flex-end;
    }


    .version-page-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .version-page-actions .btn {
        width: 100%;
    }

}

/* ==========================================
   Master CV Extraction Review
========================================== */

.review-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 22px;
    margin-bottom: 24px;

    background: #fffaf0;

    border: 1px solid #f7ddb0;
    border-radius: 12px;
}


.review-banner > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.review-banner span {
    color: var(--text-secondary);
    font-size: 13px;
}


.editor-section {
    margin-bottom: 22px;
    padding: 26px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.editor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.editor-section-header h2 {
    margin: 0;
}


.field-label-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}


.field-label-row label {
    margin-bottom: 0;
}


.example-help {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}


.example-help-button {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    padding: 0;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    cursor: help;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}


.example-help-button:hover,
.example-help-button:focus-visible {
    background: var(--primary);
    color: white;
    outline: none;
}


.example-help-tooltip {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 9px);
    width: max-content;
    max-width: min(300px, 75vw);
    padding: 9px 11px;
    border-radius: 8px;
    background: #172033;
    color: white;
    box-shadow: var(--shadow-md);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}


.example-help:hover .example-help-tooltip,
.example-help:focus-within .example-help-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}


.editor-section-header h2 .example-help {
    margin-left: 5px;
}


.editor-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.editor-grid-wide {
    grid-column:
        1 / -1;
}


.editor-textarea {
    display: block;

    width: 100%;
    min-height: 95px;

    padding: 13px 14px;

    border:
        1px solid
        #d0d5dd;

    border-radius: 9px;

    resize: vertical;

    background: white;

    color: var(--text);

    font: inherit;

    line-height: 1.55;

    outline: none;
}


.editor-summary {
    min-height: 150px;
}


.editor-textarea:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(
            68,
            85,
            238,
            0.12
        );
}


.component-card {
    padding: 20px;

    margin-bottom: 16px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        #fafbfc;
}


.component-card:last-child {
    margin-bottom: 0;
}


.component-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.danger-link {
    padding: 0;

    border: 0;
    background: none;

    color: #d92d20;

    cursor: pointer;

    font-size: 13px;
    font-weight: 650;
}


.danger-link:hover {
    text-decoration: underline;
}


.bullet-list {
    margin-top: 20px;
}


.bullet-editor {
    margin-bottom: 14px;
    padding: 16px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 10px;
}


.bullet-editor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;

    color:
        var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
}


.metadata-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 12px;
}


.certification-editor {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 10px;
}


.certification-editor input {
    flex: 1;

    height: 43px;

    padding: 0 13px;

    border:
        1px solid
        #d0d5dd;

    border-radius: 9px;

    font: inherit;
}


.repeatable-text-field {
    flex: 1;
    margin-bottom: 0;
}


.repeatable-text-field input {
    width: 100%;
}


.review-actions {
    position: sticky;

    bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 14px;

    margin-top: 24px;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    backdrop-filter:
        blur(12px);

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    box-shadow: var(--shadow);
}


@media (
    max-width: 700px
) {

    .editor-grid,
    .metadata-grid {
        grid-template-columns:
            1fr;
    }


    .review-banner {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .editor-section-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .review-actions {
        align-items:
            stretch;

        flex-direction:
            column-reverse;
    }


    .review-actions .btn {
        width: 100%;
    }

}

/* ==========================================
   Master CV Delete / Error States
========================================== */

.btn-danger {
    background: #fff;
    color: #d92d20;

    border:
        1px solid
        #f4b8b2;
}


.btn-danger:hover {
    background:
        #fff3f2;

    border-color:
        #e98b82;
}


.version-error {
    display: inline-block;

    margin-top: 5px;

    color: #d92d20;

    font-size: 12px;
    font-weight: 700;
}


.version-review {
    display: inline-block;

    margin-top: 5px;

    color: #a45a00;

    font-size: 12px;
    font-weight: 700;
}

/* ==========================================
   Master CV Content Viewer
========================================== */

.viewer-section {
    margin-bottom: 22px;

    padding: 26px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-sm);
}


.viewer-section-header {
    margin-bottom: 22px;
}


.viewer-section-header h2 {
    margin: 0;
}


.viewer-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.viewer-field {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 14px;

    background:
        var(--surface-soft);

    border-radius: 9px;
}


.viewer-field span {
    color:
        var(--text-secondary);

    font-size: 12px;
}


.viewer-field strong {
    font-size: 14px;

    word-break:
        break-word;
}


.viewer-summary {
    margin: 0;

    color:
        #344054;

    line-height:
        1.75;
}


.viewer-skill-group {
    margin-bottom: 20px;
}


.viewer-skill-group:last-child {
    margin-bottom: 0;
}


.viewer-skill-group > strong {
    display: block;

    margin-bottom: 10px;
}


.viewer-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.viewer-tag {
    padding:
        5px 9px;

    border:
        1px solid
        #dfe3ff;

    border-radius:
        20px;

    background:
        var(--primary-soft);

    color:
        #3f4ac7;

    font-size:
        12px;

    font-weight:
        650;
}


.viewer-experience {
    margin-bottom: 28px;

    padding-bottom: 28px;

    border-bottom:
        1px solid
        var(--border);
}


.viewer-experience:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: 0;
}


.viewer-experience-header {
    display: flex;

    justify-content:
        space-between;

    gap: 20px;

    margin-bottom: 16px;
}


.viewer-experience-header h3 {
    margin-bottom: 4px;
}


.viewer-experience-header p {
    margin: 0;

    color:
        var(--text-secondary);
}


.viewer-experience-header > span {
    color:
        var(--text-secondary);

    font-size: 13px;

    white-space: nowrap;
}


.viewer-bullet {
    margin-bottom: 14px;

    padding: 14px 16px;

    background:
        #fafbfc;

    border:
        1px solid
        var(--border);

    border-radius: 9px;
}


.viewer-bullet p {
    margin:
        0 0 11px;

    line-height: 1.65;
}


.viewer-bullet p:last-child {
    margin-bottom: 0;
}


.viewer-metrics {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 9px;
}


.viewer-metrics span {
    padding:
        4px 8px;

    border-radius:
        6px;

    background:
        var(--success-bg);

    color:
        var(--success);

    font-size:
        11px;

    font-weight:
        700;
}


.viewer-project {
    margin-bottom: 22px;
}


.viewer-project:last-child {
    margin-bottom: 0;
}


.viewer-project h3 {
    margin-bottom: 5px;
}


.viewer-project-link {
    color:
        var(--primary);

    font-size: 13px;
}


.viewer-education {
    display: flex;

    justify-content:
        space-between;

    gap: 20px;

    padding:
        16px 0;

    border-bottom:
        1px solid
        var(--border);
}


.viewer-education:first-of-type {
    padding-top: 0;
}


.viewer-education:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.viewer-education p {
    margin:
        5px 0 0;

    color:
        var(--text-secondary);
}


.viewer-education-meta {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;

    color:
        var(--text-secondary);

    font-size: 13px;
}


.viewer-certifications {
    margin: 0;

    padding-left: 20px;
}


.viewer-certifications li {
    margin-bottom: 8px;

    line-height: 1.5;
}


.viewer-muted {
    color:
        var(--text-secondary);
}


.viewer-actions {
    position: sticky;

    bottom: 18px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 12px;

    padding: 14px;

    margin-top: 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    backdrop-filter:
        blur(12px);

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    box-shadow:
        var(--shadow);
}


.viewer-actions form {
    margin: 0;
}


@media (
    max-width: 700px
) {

    .viewer-grid {
        grid-template-columns:
            1fr;
    }


    .viewer-experience-header,
    .viewer-education {
        flex-direction:
            column;
    }


    .viewer-education-meta {
        align-items:
            flex-start;
    }


    .viewer-actions {
        flex-direction:
            column-reverse;

        align-items:
            stretch;
    }


    .viewer-actions .btn {
        width: 100%;
    }

}

/* ==========================================
   Job Analysis
========================================== */

.job-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(260px, 1fr);

    gap: 24px;

    align-items: start;
}


.job-description-input {
    width: 100%;

    min-height: 520px;

    padding: 16px;

    border:
        1px solid
        #d0d5dd;

    border-radius: 10px;

    resize: vertical;

    font: inherit;

    line-height: 1.6;

    outline: none;
}


.job-description-input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(68, 85, 238, 0.12);
}


.job-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}


.dark-divider {
    margin: 24px 0;

    border: 0;

    border-top:
        1px solid
        rgba(255,255,255,0.12);
}


.analysis-feature {
    margin-bottom: 12px;

    color: #c9cede;

    font-size: 13px;
}


/* ==========================================
   Analysis Result
========================================== */

.analysis-page-header {
    display: flex;

    align-items: flex-start;

    justify-content:
        space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.ats-score-card {
    display: flex;

    align-items: center;

    gap: 50px;

    padding: 30px;

    margin-bottom: 24px;

    background:
        linear-gradient(
            135deg,
            #151a2b,
            #242d55
        );

    color: white;

    border-radius: 16px;
}


.ats-score-circle {
    width: 150px;
    height: 150px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border:
        8px solid
        rgba(255,255,255,0.15);

    border-radius: 50%;
}


.ats-score-circle strong {
    font-size: 40px;
}


.ats-score-circle span {
    margin-top: 3px;

    color: #c4cad8;

    font-size: 12px;
}


.score-breakdown {
    flex: 1;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.score-breakdown > div {
    padding: 16px;

    background:
        rgba(255,255,255,0.08);

    border-radius: 10px;
}


.score-breakdown span {
    display: block;

    margin-bottom: 7px;

    color: #bec5d6;

    font-size: 12px;
}


.score-breakdown strong {
    font-size: 21px;
}


.analysis-columns {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 20px;

    margin-bottom: 20px;
}


.analysis-card {
    padding: 25px;

    margin-bottom: 20px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-sm);
}


.analysis-columns .analysis-card {
    margin-bottom: 0;
}


.analysis-card-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;
}


.analysis-card-title h2 {
    margin: 0;
}


.analysis-card-title.good > span {
    color: var(--success);
}


.analysis-card-title.bad > span {
    color: #d92d20;
}


.analysis-card-title.warning > span {
    color: var(--warning);
}


.analysis-card h3 {
    margin-bottom: 10px;
}


.analysis-subheading {
    margin-top: 22px;
}


.analysis-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.match-tag,
.missing-tag,
.warning-tag {
    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 650;
}


.match-tag {
    background:
        var(--success-bg);

    color:
        var(--success);
}


.missing-tag {
    background:
        #fff1f0;

    color:
        #c43228;
}


.warning-tag {
    background:
        var(--warning-bg);

    color:
        var(--warning);
}


.success-inline {
    color:
        var(--success);

    font-size: 13px;
}


.empty-inline {
    color:
        var(--text-secondary);

    font-size: 13px;
}


.analysis-list {
    margin: 0;

    padding-left: 20px;
}


.analysis-list li {
    margin-bottom: 10px;

    line-height: 1.55;
}


.requirements-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 16px;
}


.requirements-grid > div {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 14px;

    background:
        var(--surface-soft);

    border-radius: 9px;
}


.field-label {
    color:
        var(--text-secondary);

    font-size: 12px;
}


/* Existing reusable content */

.existing-content-card {
    display: grid;

    grid-template-columns:
        90px 1fr;

    gap: 18px;

    padding: 18px;

    margin-bottom: 13px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;
}


.existing-content-score {
    font-size: 21px;

    font-weight: 800;

    color:
        var(--primary);
}


.existing-content-score span {
    display: block;

    color:
        var(--text-secondary);

    font-size: 10px;

    font-weight: 600;
}


.existing-content-body p {
    margin-bottom: 10px;

    line-height: 1.65;
}


.content-source {
    color:
        var(--text-secondary);

    font-size: 11px;
}


.existing-bullet {
    padding: 17px;

    margin-bottom: 13px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background:
        #fafbfc;
}


.existing-bullet-header {
    display: flex;

    align-items: flex-start;

    justify-content:
        space-between;

    gap: 12px;

    margin-bottom: 10px;
}


.existing-bullet-header > div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.existing-bullet-header span {
    color:
        var(--text-secondary);

    font-size: 12px;
}


.content-match-score {
    padding: 5px 8px;

    background:
        var(--primary-soft);

    color:
        var(--primary)
        !important;

    border-radius: 6px;

    font-weight: 800;
}


.existing-bullet p {
    line-height: 1.6;
}


.analysis-next-step {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 30px;

    padding: 28px;

    background:
        #161b2c;

    color: white;

    border-radius: 14px;
}


.analysis-next-step h2 {
    margin-bottom: 8px;
}


.analysis-next-step p {
    max-width: 620px;

    margin: 0;

    color: #adb5c7;

    line-height: 1.6;
}


@media (max-width: 850px) {

    .job-layout,
    .analysis-columns {
        grid-template-columns:
            1fr;
    }


    .ats-score-card {
        flex-direction: column;

        align-items: stretch;
    }


    .ats-score-circle {
        margin: auto;
    }


    .score-breakdown {
        grid-template-columns:
            1fr;
    }


    .analysis-page-header,
    .analysis-next-step {
        flex-direction: column;

        align-items: stretch;
    }

}


@media (max-width: 600px) {

    .requirements-grid {
        grid-template-columns:
            1fr;
    }


    .existing-content-card {
        grid-template-columns:
            1fr;
    }

}

/* ==========================================
   Recent Jobs / Job History
========================================== */

.recent-jobs-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;
}


.recent-jobs-list {
    display: flex;
    flex-direction: column;
}


.recent-job-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 17px 0;

    border-bottom:
        1px solid
        var(--border);
}


.recent-job-row:first-child {
    padding-top: 0;
}


.recent-job-row:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.recent-job-main {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.recent-job-main span {
    color:
        var(--text-secondary);

    font-size: 13px;
}


.recent-job-meta {
    display: flex;

    align-items: center;

    gap: 12px;
}


.job-score {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 54px;

    padding: 7px 9px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    border-radius: 8px;

    font-weight: 800;
}


/* Job history */

.job-history-table {
    width: 100%;
}


.job-history-header,
.job-history-row {
    display: grid;

    grid-template-columns:
        minmax(220px, 2fr)
        110px
        130px
        90px
        160px;

    gap: 15px;

    align-items: center;
}


.job-history-header {
    padding:
        0 12px 13px;

    color:
        var(--text-secondary);

    border-bottom:
        1px solid
        var(--border);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.job-history-row {
    padding: 17px 12px;

    border-bottom:
        1px solid
        var(--border);
}


.job-history-row:last-child {
    border-bottom: 0;
}


.job-history-title {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.job-history-title span {
    color:
        var(--text-secondary);

    font-size: 12px;
}


.job-history-actions {
    display: flex;

    justify-content: flex-end;
}


.pagination {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 20px;

    padding-top: 22px;

    margin-top: 12px;

    border-top:
        1px solid
        var(--border);
}


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


@media (max-width: 850px) {

    .job-history-header {
        display: none;
    }


    .job-history-row {
        grid-template-columns:
            1fr;

        gap: 12px;

        padding: 20px 0;
    }


    .job-history-actions {
        justify-content: flex-start;
    }


    .recent-job-row {
        align-items: flex-start;

        flex-direction: column;
    }


    .recent-job-meta {
        width: 100%;

        justify-content: space-between;
    }


    .recent-jobs-heading {
        align-items: flex-start;

        flex-direction: column;
    }

}

.job-history-actions form,
.recent-job-meta form {
    margin: 0;
}


.job-history-actions {
    gap: 7px;
}


@media (max-width: 600px) {

    .recent-job-meta {
        flex-wrap: wrap;
    }

}

/* ==========================================
   PDF / LaTeX CV Preview
========================================== */

.pdf-preview-shell {
    overflow: hidden;

    background:
        #e8ebf1;

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    box-shadow:
        var(--shadow);
}


.pdf-preview-toolbar {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 20px;

    padding:
        16px 20px;

    background:
        white;

    border-bottom:
        1px solid
        var(--border);
}


.pdf-preview-toolbar > div {
    display: flex;

    flex-direction:
        column;

    gap: 3px;
}


.pdf-preview-toolbar span {
    color:
        var(--text-secondary);

    font-size:
        12px;
}


.pdf-preview-frame {
    display: block;

    width: 100%;

    height:
        calc(100vh - 220px);

    min-height: 720px;

    border: 0;

    background:
        #d9dde5;
}


@media (max-width: 700px) {

    .pdf-preview-toolbar {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .pdf-preview-frame {
        min-height:
            600px;
    }

}

/* ==========================================
   Detailed Job History
========================================== */

.job-history-cards {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


.job-analysis-history-card {
    padding: 26px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-sm);
}


.job-history-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}


.job-history-card-header h2 {
    margin-bottom: 5px;
}


.job-history-card-header p {
    margin: 0;

    color:
        var(--text-secondary);
}


.job-history-card-score {
    min-width: 90px;

    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 12px;

    background:
        var(--primary-soft);

    border-radius: 10px;
}


.job-history-card-score strong {
    color:
        var(--primary);

    font-size: 25px;
}


.job-history-card-score span {
    margin-top: 2px;

    color:
        var(--text-secondary);

    font-size: 10px;
}


.job-history-meta {
    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        18px 0 22px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        var(--border);

    color:
        var(--text-secondary);

    font-size: 12px;
}


.job-analysis-mini-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 18px;
}


.job-analysis-mini-section {
    padding: 16px;

    background:
        #fafbfc;

    border:
        1px solid
        var(--border);

    border-radius: 10px;
}


.job-analysis-mini-section h3 {
    margin-bottom: 12px;

    font-size: 14px;
}


.job-analysis-mini-section
.analysis-list {
    font-size: 13px;
}


.job-analysis-unavailable {
    padding: 18px;

    background:
        var(--warning-bg);

    color:
        var(--warning);

    border-radius: 9px;

    font-size: 13px;
}


.job-history-card-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 20px;

    padding-top: 18px;

    border-top:
        1px solid
        var(--border);
}


.job-history-card-actions form {
    margin: 0;
}


@media (max-width: 700px) {

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


    .job-history-card-header {
        flex-direction: column;
    }


    .job-history-card-score {
        align-items: flex-start;
    }


    .job-history-card-actions {
        align-items: stretch;

        flex-direction: column;
    }


    .job-history-card-actions .btn {
        width: 100%;
    }

}

/* ==========================================
   Generated CVs
========================================== */

.generated-cv-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.generated-cv-card {
    padding: 23px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-sm);
}


.generated-cv-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.generated-cv-card-header h2 {
    margin: 0;
}


.generated-cv-score {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    padding: 14px;

    margin-bottom: 16px;

    background:
        var(--primary-soft);

    border-radius: 9px;
}


.generated-cv-score strong {
    color:
        var(--primary);

    font-size: 25px;
}


.generated-cv-score span {
    color:
        var(--text-secondary);

    font-size: 11px;
}


.generated-cv-info {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-bottom: 18px;

    color:
        var(--text-secondary);

    font-size: 12px;
}


.generated-cv-card form {
    margin: 0;
}


@media (max-width: 800px) {

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

}

/* ==========================================
   Semantic ATS Comparison
========================================== */

.requirement-comparison-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.requirement-comparison-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #fafbfc;
}


.requirement-matched {
    border-left: 4px solid #039855;
}


.requirement-partial {
    border-left: 4px solid #f79009;
}


.requirement-missing {
    border-left: 4px solid #d92d20;
}


.requirement-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 9px;
}


.requirement-status,
.requirement-importance,
.requirement-type {
    padding: 4px 7px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;
}


.requirement-status-matched {
    background: #ecfdf3;
    color: #027a48;
}


.requirement-status-partial {
    background: #fffaeb;
    color: #b54708;
}


.requirement-status-missing {
    background: #fef3f2;
    color: #b42318;
}


.requirement-importance,
.requirement-type {
    background: #f2f4f7;
    color: #475467;
}


.requirement-comparison-card h3 {
    margin: 0;

    line-height: 1.45;
}


.comparison-block {
    margin-top: 17px;
}


.comparison-label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 750;

    text-transform: uppercase;
}


.cv-evidence {
    margin: 0 0 8px;

    padding: 12px 14px;

    background: white;

    border-left: 3px solid var(--primary);

    border-radius: 6px;

    color: #344054;

    font-size: 13px;

    line-height: 1.6;
}


.terminology-mapping {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    padding: 10px 12px;
    margin-bottom: 7px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 8px;
}


.terminology-mapping small {
    width: 100%;

    color: var(--text-secondary);
}


.mapping-safe {
    padding: 3px 6px;

    background: #ecfdf3;
    color: #027a48;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;
}


.mapping-unsafe {
    padding: 3px 6px;

    background: #fef3f2;
    color: #b42318;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;
}


.requirement-explanation,
.analysis-explanation {
    margin-top: 16px;

    color: #475467;

    line-height: 1.7;
}


.evidence-source {
    margin-top: 12px;

    color: var(--text-secondary);

    font-size: 11px;
}


.keyword-comparison-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.keyword-comparison {
    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 9px;
}


.keyword-comparison > div {
    display: flex;

    justify-content: space-between;

    gap: 10px;
}


.keyword-comparison p,
.keyword-comparison small {
    color: var(--text-secondary);

    font-size: 11px;
}


.keyword-matched {
    background: #f6fef9;
}


.keyword-partial {
    background: #fffcf5;
}


.keyword-missing {
    background: #fffafa;
}


.mapping-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.safe-mapping-card {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    padding: 14px;

    background: #f6fef9;

    border: 1px solid #abefc6;
    border-radius: 9px;
}


.safe-mapping-card small {
    width: 100%;

    color: var(--text-secondary);
}


.discovered-skill-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.discovered-skill {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 11px 12px;

    background: #fafbfc;

    border: 1px solid var(--border);
    border-radius: 8px;
}


.discovered-skill span,
.discovered-skill small {
    color: var(--text-secondary);

    font-size: 11px;
}


@media (max-width: 800px) {

    .keyword-comparison-grid,
    .mapping-grid {
        grid-template-columns: 1fr;
    }

}

/* ==========================================
   Analysis Summary First
========================================== */

.partial-requirements {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.partial-requirement-card {
    padding: 18px;

    background: #fffcf5;

    border:
        1px solid
        #fedf89;

    border-radius: 10px;
}


.partial-requirement-card h3 {
    margin:
        0 0 14px;
}


.partial-evidence {
    margin-bottom: 16px;
}


.partial-missing {
    padding-top: 13px;

    border-top:
        1px solid
        #fedf89;
}


/* Keep the first four summary cards
   visually stronger than evidence cards. */

.analysis-columns
.analysis-card {
    min-width: 0;
}


.analysis-columns:first-of-type
.analysis-card {
    border-top:
        3px solid
        var(--primary);
}


/* Detailed evidence intentionally quieter. */

.requirement-comparison-card {
    box-shadow: none;
}


.requirement-comparison-header h3 {
    margin-top: 7px;
}


/* Skill tag readability */

.analysis-tags {
    row-gap: 9px;
}


.match-tag,
.missing-tag,
.warning-tag {
    line-height: 1.3;
}


/* Summary lists */

.analysis-card
.analysis-list li {
    margin-bottom: 9px;
}


/* Responsive */

@media (max-width: 700px) {

    .partial-requirement-card {
        padding: 15px;
    }

}

/* ==========================================
   Analysis Progress
========================================== */

.analysis-progress-page {
    display: flex;

    justify-content: center;

    padding:
        35px 0 70px;
}


.analysis-progress-card {
    width: 100%;

    max-width: 720px;

    padding: 40px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    box-shadow:
        var(--shadow);

    text-align: center;
}


.analysis-loader {
    display: flex;

    justify-content: center;

    margin-bottom: 22px;
}


.analysis-spinner {
    width: 52px;
    height: 52px;

    border:
        5px solid
        #eaecf0;

    border-top-color:
        var(--primary);

    border-radius: 50%;

    animation:
        analysis-spin
        0.8s
        linear
        infinite;
}


@keyframes analysis-spin {

    to {
        transform:
            rotate(360deg);
    }

}


.analysis-spinner-complete {
    border-color:
        #12b76a;

    animation: none;

    position: relative;
}


.analysis-current-step {
    min-height: 24px;

    margin:
        10px 0 26px;

    color:
        var(--text-secondary);

    font-size: 14px;
}


.analysis-progress-track {
    width: 100%;
    height: 9px;

    overflow: hidden;

    background:
        #eaecf0;

    border-radius: 999px;
}


.analysis-progress-bar {
    height: 100%;

    background:
        var(--primary);

    border-radius: 999px;

    transition:
        width
        0.4s
        ease;
}


.analysis-progress-value {
    display: flex;

    justify-content: flex-end;

    margin-top: 7px;

    color:
        var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
}


.analysis-step-list {
    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-top: 28px;

    text-align: left;
}


.analysis-step {
    display: flex;

    align-items: center;

    gap: 14px;

    padding:
        13px 10px;

    opacity: 0.45;

    transition:
        opacity
        0.2s
        ease;
}


.analysis-step.completed {
    opacity: 1;
}


.analysis-step-icon {
    display: flex;

    flex: 0 0 30px;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background:
        #f2f4f7;

    border-radius: 50%;

    color:
        #667085;

    font-size: 12px;
    font-weight: 800;
}


.analysis-step.completed
.analysis-step-icon {
    background:
        #ecfdf3;

    color:
        #027a48;
}


.analysis-step > div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.analysis-step strong {
    font-size: 13px;
}


.analysis-step span {
    color:
        var(--text-secondary);

    font-size: 11px;
}


.analysis-progress-error {
    padding: 18px;

    margin-top: 25px;

    background:
        #fef3f2;

    border:
        1px solid
        #fecdca;

    border-radius: 10px;

    color:
        #b42318;
}


.analysis-progress-error p {
    margin:
        7px 0 15px;
}


.analysis-progress-note {
    margin-top: 25px;

    color:
        var(--text-secondary);

    font-size: 11px;
}


@media (max-width: 700px) {

    .analysis-progress-card {
        padding: 25px 18px;
    }

}

/* ==========================================
   Multiple Active Analysis Tasks
========================================== */

.job-active-analysis-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 18px;
}


.completed-analysis-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin:
        22px 0 14px;

    padding-top: 18px;

    border-top:
        1px solid
        var(--border);
}


.completed-analysis-heading span {
    color:
        var(--text-secondary);

    font-size: 11px;

    font-weight: 750;

    text-transform: uppercase;
}


.completed-analysis-heading strong {
    color:
        var(--primary);

    font-size: 18px;
}


.dashboard-active-task-list {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 10px;
}


.dashboard-active-task {
    padding:
        10px 12px;

    background:
        #f8faff;

    border:
        1px solid
        #dbe5ff;

    border-radius:
        9px;
}


.dashboard-active-task
.btn {
    margin-top: 8px;
}


.task-finished {
    opacity: 0.75;
}

/* ==========================================
   Generated CV Builder
========================================== */

.generated-component {
    padding: 18px;

    background: #f8fafc;

    border:
        1px solid
        var(--border);

    border-radius: 10px;
}


.generated-component p {
    margin:
        0 0 12px;
}


.generated-skill-group {
    margin-bottom: 18px;
}


.generated-skill-group > strong {
    display: block;

    margin-bottom: 9px;
}


.generated-experience {
    padding:
        18px 0;

    border-bottom:
        1px solid
        var(--border);
}


.generated-experience:last-child {
    border-bottom: none;
}


.generated-experience-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}


.generated-experience-header h3 {
    margin:
        0 0 3px;
}


.generated-experience-header span {
    color:
        var(--text-secondary);

    font-size: 12px;

    text-align: right;
}


@media (max-width: 700px) {

    .generated-experience-header {
        flex-direction: column;
    }


    .generated-experience-header span {
        text-align: left;
    }

}
