:root {
    --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --color-brand-50: #f0fdfa;
    --color-brand-100: #ccfbf1;
    --color-brand-500: #14b8a6;
    --color-brand-700: #0f766e;
    --color-brand-800: #0b5f59;
    --color-brand-900: #115e59;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334e68;
    --color-slate-800: #243b53;
    --color-slate-900: #102a43;
    --grade-a: #10b981;
    --grade-a-bg: #d1fae5;
    --grade-a-text: #047857;
    --grade-b: #3b82f6;
    --grade-b-bg: #dbeafe;
    --grade-b-text: #1d4ed8;
    --grade-c: #eab308;
    --grade-c-bg: #fef3c7;
    --grade-c-text: #b45309;
    --grade-d: #f97316;
    --grade-d-bg: #ffedd5;
    --grade-d-text: #c2410c;
    --grade-f: #ef4444;
    --grade-f-bg: #fee2e2;
    --grade-f-text: #b91c1c;
    --max-width: 1440px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.05);
    --shadow-md: 0 8px 20px rgba(23, 50, 77, 0.06);
    --shadow-lg: 0 18px 50px rgba(16, 42, 67, 0.08);
    --transition-fast: 0.15s ease;
}

*, ::after, ::before {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--color-slate-800);
    background: radial-gradient(circle at 50% 0, #e6f6ff, transparent 34rem), #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
}

    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
        outline: 2px solid var(--color-brand-700);
        outline-offset: 2px;
    }

/* Site & Navigation Header */
.crawler-header, .site-header {
    min-height: 68px;
    padding: 0 5vw;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-700);
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-slate-900);
    font-weight: 800;
}

    .brand span {
        display: inline-grid;
        place-items: center;
        width: 34px;
        height: 34px;
        margin-right: .5rem;
        color: #fff;
        background: var(--color-brand-700);
        border-radius: 10px;
        font-weight: 800;
    }

nav, .nav-links {
    display: flex;
    gap: 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    color: #52667a;
}

    nav a:hover, .nav-links a:hover, .nav-links a.active, .eyebrow, .tool-tabs button.active {
        color: var(--color-brand-700);
    }

.eyebrow {
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Page Shell & Workspace */
.page-shell {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 32px;
}

    .page-shell ins.adsbygoogle {
        display: block;
        min-height: 90px;
        background-color: transparent;
    }

.hero {
    padding: 72px 12px 42px;
    text-align: center;
}

    .hero p {
        font-size: 1.15rem;
        color: #52667a;
    }

h1 {
    max-width: 780px;
    margin: .65rem auto;
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    letter-spacing: -.045em;
    line-height: 1.02;
    color: var(--color-slate-900);
}

    h1:focus {
        outline: 0;
    }

.workspace {
    display: grid;
    grid-template-columns: minmax(340px, 0.8fr) minmax(620px, 1.2fr);
    gap: 28px;
}

.panel {
    padding: 30px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #d9e2ec;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Tool Tabs & Form Controls */
.tool-tabs {
    display: flex;
    max-width: 480px;
    margin: 0 auto 24px;
    padding: 5px;
    background: #e6edf3;
    border-radius: var(--radius-md);
}

    .tool-tabs button {
        flex: 1;
        padding: 11px;
        border: 0;
        border-radius: var(--radius-sm);
        background: 0 0;
        color: #52667a;
        font-weight: 800;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

        .tool-tabs button.active {
            background: #fff;
            box-shadow: 0 3px 12px rgba(16, 42, 67, .12);
        }

.feature-copy {
    margin: 30px 0 10px;
    padding: 20px;
    background: var(--color-brand-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-brand-100);
}

    .feature-copy h2 {
        font-size: 1.15rem;
        color: var(--color-brand-900);
        margin-top: 0;
    }

    .feature-copy p {
        margin-bottom: 0;
        color: #52667a;
    }

.url-row {
    display: flex;
    gap: 8px;
}

    .url-row input {
        min-width: 0;
        flex: 1;
        padding: 11px;
        border: 1px solid #bcccdc;
        border-radius: 9px;
        font-size: .9rem;
    }

    .url-row button {
        border: 0;
        border-radius: 9px;
        padding: 0 18px;
        background: var(--color-slate-700);
        color: #fff;
        font-weight: 700;
        transition: background var(--transition-fast);
        cursor: pointer;
    }

        .url-row button:hover {
            background: var(--color-slate-900);
        }

.or-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #829ab1;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

    .or-divider::after, .or-divider::before {
        content: "";
        height: 1px;
        flex: 1;
        background: #d9e2ec;
    }

.field-label {
    display: block;
    margin: 0 0 10px;
    color: var(--color-slate-900);
    font-weight: 800;
}

.file-status {
    min-height: 34px;
    padding: 7px 3px 0;
    color: #627d98;
    font-size: .85rem;
}

textarea {
    width: 100%;
    padding: 14px;
    resize: vertical;
    border: 1px solid #bcccdc;
    border-radius: 10px;
    font-size: .9rem;
    outline: 0;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

    textarea:focus {
        border-color: var(--color-brand-700);
        box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
    }

.score-button {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 0;
    border-radius: 10px;
    background: var(--color-brand-700);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    transition: background var(--transition-fast);
    cursor: pointer;
}

    .provider-upload-button:hover, .score-button:hover:not(:disabled) {
        background: var(--color-brand-800);
    }

    .score-button:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.action-hint {
    text-align: center;
    margin: 8px 0 0;
    color: #627d98;
    font-size: .82rem;
}

/* ATS Checks & Metrics */
.ats-checks {
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
    text-align: left;
    max-height: 520px;
    overflow-y: auto;
}

    .ats-checks li {
        padding: 16px 5px;
        border-top: 1px solid #e6edf3;
    }

.metric-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-slate-900);
    font-weight: 700;
}

    .metric-bar, .metric-bar i, .metric-heading span, .quality-track {
        border-radius: var(--radius-full);
    }

    .metric-heading span {
        padding: 3px 8px;
        font-size: .78rem;
        font-weight: 850;
    }

.metric-bar {
    height: 6px;
    margin: 8px 0;
    background: #e6edf3;
    overflow: hidden;
}

    .metric-bar i {
        display: block;
        height: 100%;
        transition: width .5s;
    }

.grade-a .metric-heading span, .status-completed {
    background: var(--grade-a-bg);
    color: var(--grade-a-text);
}

.grade-b .metric-heading span, .status-applied {
    background: var(--grade-b-bg);
    color: var(--grade-b-text);
}

.grade-c .metric-heading span {
    background: var(--grade-c-bg);
    color: var(--grade-c-text);
}

.grade-d .metric-heading span {
    background: var(--grade-d-bg);
    color: var(--grade-d-text);
}

.grade-f .metric-heading span {
    background: var(--grade-f-bg);
    color: var(--grade-f-text);
}

.grade-a .metric-bar i {
    background: var(--grade-a);
}

.grade-b .metric-bar i {
    background: var(--grade-b);
}

.grade-c .metric-bar i {
    background: var(--grade-c);
}

.grade-d .metric-bar i {
    background: var(--grade-d);
}

.grade-f .metric-bar i {
    background: var(--grade-f);
}

.ats-checks p {
    margin: 5px 0 0;
    color: #52667a;
    font-size: .82rem;
    line-height: 1.4;
}

.ats-checks .metric-evidence {
    color: var(--color-slate-800);
    font-weight: 650;
}

.ats-checks .metric-improvement {
    padding: 7px 9px;
    background: #fff7ed;
    border-radius: 7px;
    color: #9a3412;
    margin-top: 6px;
}

.ats-checks .metric-complete {
    color: var(--grade-a-text);
}

.metric-group {
    margin-bottom: 4px;
    color: #829ab1;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Quality Meters & Dynamic Scoring Ring */
.quality-meter {
    position: relative;
    margin: 24px 10px 8px;
    padding-top: 14px;
}

.quality-track {
    height: 9px;
    background: linear-gradient(90deg, #ef4444 0 25%, #f59e0b 25% 50%, #a3e635 50% 75%, #16a34a 75%);
}

.quality-meter > i {
    position: absolute;
    top: 0;
    width: 16px;
    height: 22px;
    background: var(--color-brand-700);
    border: 3px solid #fff;
    border-radius: 8px 8px 50% 50%;
    box-shadow: 0 1px 5px rgba(16, 42, 67, .35);
    transform: translateX(-50%);
    transition: left .4s;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: #829ab1;
    font-size: .7rem;
}

    .quality-labels span:nth-child(3) {
        color: #365314;
        font-weight: 800;
    }

.overall-result, .result-panel {
    text-align: center;
}

.overall-result {
    position: relative;
    width: 170px;
    margin: auto;
}

    .overall-result .score-ring {
        border-color: var(--grade-color, #d9e2ec);
    }

.grade-badge {
    position: absolute;
    right: -18px;
    bottom: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: var(--grade-color, var(--color-slate-500));
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
}

.grade-a {
    --grade-color: var(--grade-a);
}

.grade-b {
    --grade-color: var(--grade-b);
}

.grade-c {
    --grade-color: var(--grade-c);
}

.grade-d {
    --grade-color: var(--grade-d);
}

.grade-f {
    --grade-color: var(--grade-f);
}

.group-charts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 24px 0;
}

.group-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    border: 1px solid #e6edf3;
    border-radius: var(--radius-md);
    background: var(--color-slate-50);
}

    .group-chart strong {
        margin-top: 7px;
        font-size: .76rem;
        color: var(--color-slate-800);
    }

    .group-chart small {
        color: #829ab1;
        font-size: .65rem;
    }

.mini-donut, .score-ring {
    place-items: center;
}

.mini-donut {
    display: grid;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: conic-gradient(var(--grade-color, var(--color-brand-700)) var(--score, 0), #d9e2ec 0);
    position: relative;
}

    .mini-donut::after {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 50%;
        background: #fff;
    }

    .mini-donut span {
        position: relative;
        z-index: 1;
        font-size: .72rem;
        font-weight: 850;
    }

.skill-donut {
    background: conic-gradient(#4f46e5 var(--hard, 0), #60a5fa 0);
}

.generate-button {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-brand-700);
    border-radius: 99px;
    background: #fff;
    color: var(--color-brand-700);
    font-weight: 850;
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .generate-button:hover, .job-results .job-result-main:hover {
        background: var(--color-brand-50);
    }

.generator-note {
    color: #627d98;
    font-size: .72rem;
}

.score-ring {
    display: grid;
    width: 150px;
    height: 150px;
    margin: 5px auto 20px;
    border: 13px solid #d9e2ec;
    border-radius: 50%;
    color: var(--color-slate-900);
    font-size: 2.8rem;
    font-weight: 850;
}

    .score-ring small {
        margin-top: -40px;
        margin-left: 66px;
        font-size: .9rem;
    }

    .score-ring.good {
        border-color: var(--grade-a);
    }

    .score-ring.fair {
        border-color: var(--grade-c);
    }

    .score-ring.low {
        border-color: var(--grade-f);
    }

/* Report & Fix Options */
.resume-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
    text-align: left;
}

.fix-option-grid, .fix-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1.25rem;
    display: grid;
}

    .fix-option-grid, .fix-options summary, .fix-report-item p, .job-search-grid .endpoint-field, .shared-fix-options > p {
        grid-column: 1/-1;
    }

.output-option {
    padding: 20px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: var(--color-slate-50);
}

    .output-option.fix-output {
        grid-column: 1/-1;
        background: linear-gradient(135deg, var(--color-brand-50) 0, var(--color-slate-50) 62%);
    }

    .output-option h3 {
        margin: 0;
        color: var(--color-slate-900);
        font-size: 1rem;
    }

    .output-option p {
        min-height: auto;
        margin: 7px 0 13px;
        color: #627d98;
        font-size: .82rem;
        line-height: 1.45;
    }

    .output-option select {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #bcccdc;
        border-radius: 8px;
        background: #fff;
        font-size: .82rem;
    }

    .output-option small {
        display: block;
        min-height: 30px;
        margin-top: 8px;
        color: #b45309;
        font-size: .72rem;
        line-height: 1.35;
    }

    .output-option .generate-button {
        min-height: 46px;
        font-size: .82rem;
    }

.template-file {
    width: 100%;
    font-size: .75rem;
}

.fix-options {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #d8e3ec;
    border-radius: .65rem;
    background: #fff;
}

    .fix-options summary {
        cursor: pointer;
        color: #17324d;
        font-weight: 800;
    }

    .fix-options label {
        display: flex;
        align-items: flex-start;
        gap: .45rem;
        min-height: 42px;
        margin: 0;
        padding: .65rem .7rem;
        border: 1px solid var(--color-slate-200);
        border-radius: .55rem;
        background: #fff;
        color: #52667a;
        font-size: .86rem;
        line-height: 1.3;
        cursor: pointer;
        transition: border-color var(--transition-fast);
    }

        .fix-options label:hover, .job-result-card:hover {
            border-color: var(--color-brand-700);
        }

    .fix-options input {
        flex: 0 0 auto;
        margin-top: .12rem;
        accent-color: var(--color-brand-700);
        width: 18px;
        height: 18px;
    }

.shared-fix-options {
    margin-top: 22px;
    text-align: left;
    background: linear-gradient(135deg, var(--color-brand-50), #fff);
}

    .shared-fix-options > p {
        margin: 0;
        color: #627d98;
        font-size: .82rem;
    }

.fix-output > .fix-options {
    display: none;
}

.format-warning {
    margin: .65rem 0;
    padding: .65rem;
    border-left: 4px solid #d97706;
    border-radius: .35rem;
    background: #fff7ed;
    color: #9a3412 !important;
    font-size: .8rem;
    line-height: 1.35;
}

.fix-report {
    margin-top: 1rem;
    text-align: left;
}

    .fix-report h3 {
        margin-bottom: .55rem;
    }

.fix-report-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .2rem .6rem;
    margin-top: .45rem;
    padding: .6rem;
    border-left: 4px solid var(--color-slate-400);
    border-radius: .35rem;
    background: var(--color-slate-50);
}

    .fix-report-item span {
        font-size: .76rem;
        font-weight: 800;
    }

    .fix-report-item p {
        margin: 0;
        font-size: .8rem;
        line-height: 1.35;
    }

    .fix-report-item.applied {
        border-color: var(--grade-a);
        background: #ecfdf5;
    }

    .fix-report-item.satisfied {
        border-color: var(--grade-b);
        background: #eff6ff;
    }

    .fix-report-item.review {
        border-color: var(--grade-c);
        background: #fffbeb;
    }

    .fix-report-item.manual {
        border-color: var(--grade-f);
        background: #fef2f2;
    }

/* Correction & Verification Panel */
.correction-verification {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--color-slate-300);
    border-radius: 14px;
    background: var(--color-slate-50);
    text-align: left;
}

.verification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

    .verification-heading span {
        display: block;
        color: var(--color-slate-500);
        font-size: .68rem;
        font-weight: 850;
        letter-spacing: .08em;
    }

    .verification-heading h3 {
        margin: .15rem 0 0;
    }

    .verification-heading > strong {
        padding: .35rem .65rem;
        border-radius: var(--radius-full);
        font-size: .72rem;
    }

        .verification-heading > strong.verified {
            color: var(--grade-a-text);
            background: var(--grade-a-bg);
        }

        .verification-heading > strong.review {
            color: var(--grade-c-text);
            background: var(--grade-c-bg);
        }

.api-search-button:disabled, .custom-option-row button:disabled {
    background: var(--color-slate-400);
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

    .verification-grid > div {
        display: flex;
        flex-direction: column;
        min-height: 76px;
        padding: .65rem;
        border: 1px solid #dbe5ef;
        border-radius: 10px;
        background: #fff;
    }

    .verification-grid span {
        color: #52667a;
        font-size: .72rem;
    }

    .verification-grid strong {
        margin: .2rem 0;
        color: #17324d;
        font-size: 1rem;
    }

    .verification-grid small {
        color: #718096;
        font-size: .68rem;
    }

.verification-ok, .verification-warning {
    margin: .75rem 0 0;
    padding: .65rem;
    border-radius: var(--radius-sm);
    font-size: .78rem;
}

.verification-warning {
    color: #9a3412;
    background: #fff7ed;
}

.verification-ok {
    color: var(--grade-a-text);
    background: #ecfdf5;
}

/* Job API Search & Provider Overrides */
.job-api-search {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--color-slate-300);
    border-radius: var(--radius-md);
    background: var(--color-slate-50);
    text-align: left;
}

    .job-api-search summary {
        cursor: pointer;
        color: #17324d;
        font-weight: 850;
    }

    .job-api-search > p {
        margin: 8px 0 14px;
        color: #627d98;
        font-size: .8rem;
        line-height: 1.4;
    }

.job-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

    .job-search-grid label {
        display: grid;
        gap: 5px;
        color: var(--color-slate-700);
        font-size: .72rem;
        font-weight: 750;
    }

    .job-search-grid input, .job-search-grid select {
        min-width: 0;
        padding: 9px 10px;
        border: 1px solid #bcccdc;
        border-radius: var(--radius-sm);
        background: #fff;
        color: var(--color-slate-900);
        font: inherit;
    }

.multi-filter {
    display: grid;
    gap: 6px;
    align-self: start;
    align-content: start;
    grid-auto-rows: max-content;
    min-width: 0;
}

.filter-label {
    color: var(--color-slate-700);
    font-size: .72rem;
    font-weight: 750;
}

.custom-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    height: 40px;
    align-items: stretch;
}

    .custom-option-row input {
        height: 40px;
    }

    .custom-option-row button {
        height: 40px;
        border: 0;
        border-radius: var(--radius-sm);
        background: #0f8578;
        color: #fff;
        padding: 0 13px;
        font-weight: 750;
        cursor: pointer;
    }

.filter-checklist {
    border: 1px solid #d9e2ec;
    border-radius: var(--radius-sm);
    background: #fff;
}

    .filter-checklist summary {
        padding: 9px 10px;
        cursor: pointer;
        color: var(--color-slate-700);
        font-size: .7rem;
        font-weight: 750;
    }

    .filter-checklist > div {
        display: grid;
        max-height: 190px;
        overflow-y: auto;
        border-top: 1px solid #e6edf3;
        padding: 5px;
    }

    .filter-checklist label {
        display: flex !important;
        grid-template-columns: none !important;
        align-items: center;
        gap: 8px !important;
        padding: 6px;
        border-radius: 6px;
        font-size: .69rem !important;
        font-weight: 600 !important;
        cursor: pointer;
    }

        .filter-checklist label:hover {
            background: #f0f7fa;
        }

    .filter-checklist input {
        width: auto !important;
        margin: 0;
        accent-color: #0f8578;
    }

.api-search-button {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-brand-700);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.api-key-hint, .source-option.unavailable small {
    color: #9a3412;
}

.api-search-button:disabled {
    cursor: not-allowed;
}

.api-key-hint {
    display: block;
    margin-top: 8px;
    font-size: .72rem;
    line-height: 1.4;
}

.catalog-status {
    display: block;
    margin-top: 10px;
    color: #486581;
    font-size: .72rem;
}

.source-override {
    margin-top: 12px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

    .source-override summary {
        cursor: pointer;
        color: var(--color-slate-900);
        font-size: .78rem;
        font-weight: 800;
    }

    .source-override > p {
        margin: 8px 0;
        color: #627d98;
        font-size: .69rem;
    }

.local-provider-config {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #b8d8d4;
    border-radius: 10px;
    background: #f2fbfa;
    color: var(--color-slate-900);
}

    .local-provider-config > p {
        margin: 6px 0 10px;
        color: #486581;
        font-size: .72rem;
        line-height: 1.4;
    }

.provider-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-template-button, .provider-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--color-brand-700);
    border-radius: var(--radius-sm);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.provider-template-button {
    background: #fff;
    color: var(--color-brand-700);
}

    .provider-template-button:hover {
        background: #e6fffa;
        color: var(--color-brand-800);
    }

.provider-upload-button {
    position: relative;
    background: var(--color-brand-700);
    color: #fff;
}

    .provider-upload-button input[type=file] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

.local-provider-config small {
    display: block;
    margin-top: 7px;
    color: #486581;
    line-height: 1.4;
}

.role-groups {
    display: block !important;
    padding: 0 !important;
}

.role-option-group {
    display: grid;
    gap: 0;
    border-bottom: 1px solid #e6edf3;
}

    .role-option-group:last-child {
        border-bottom: 0;
    }

    .role-option-group > strong {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 8px 10px;
        background: #eef6f8;
        color: var(--color-brand-700);
        font-size: .72rem;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .role-option-group label {
        padding-left: 12px !important;
    }

.source-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.source-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

    .source-option input {
        margin-top: 3px;
        accent-color: #0f8578;
    }

    .source-option span {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .source-option strong {
        font-size: .73rem;
        color: var(--color-slate-800);
    }

    .source-option small {
        font-size: .64rem;
        line-height: 1.3;
        color: #627d98;
    }

    .source-option.unavailable {
        border-color: #fed7aa;
        background: #fff7ed;
    }

/* Results Toolbar & Ledger */
.result-filter-bar {
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

    .result-filter-bar strong {
        font-size: .72rem;
        color: var(--color-slate-800);
    }

    .result-filter-bar input {
        min-width: 0;
        padding: 8px;
        border: 1px solid #bcccdc;
        border-radius: var(--radius-sm);
    }

    .result-filter-bar button {
        padding: 8px 10px;
        border: 1px solid #0f8578;
        border-radius: var(--radius-sm);
        background: #fff;
        color: var(--color-brand-700);
        font-weight: 750;
        cursor: pointer;
    }

.job-ledger {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) repeat(3, auto);
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #cbdbea;
    border-radius: 10px;
    background: #f8fbfe;
}

    .job-ledger div {
        display: grid;
        gap: 2px;
    }

    .job-ledger small {
        color: #627d98;
        font-size: .68rem;
    }

    .job-ledger button {
        padding: 8px 10px;
        border: 1px solid #0f8578;
        border-radius: var(--radius-sm);
        background: #fff;
        color: var(--color-brand-700);
        font-size: .7rem;
        font-weight: 800;
        cursor: pointer;
    }

        .job-ledger button:disabled {
            border-color: #d9e2ec;
            color: #9fb3c8;
            background: #f5f7fa;
            cursor: not-allowed;
        }

/* Faceted Filters & Job Cards */
.faceted-results {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.5fr);
    gap: 10px;
    margin-top: 10px;
    align-items: start;
}

.facet-panel {
    max-height: 540px;
    overflow-y: auto;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fff;
    padding: 9px;
}

    .facet-panel h3 {
        margin: 0 0 7px;
        font-size: .76rem;
        color: var(--color-slate-900);
    }

        .facet-panel h3 small {
            display: block;
            margin-top: 2px;
            color: #0f8578;
            font-size: .6rem;
        }

.facet-group {
    border-top: 1px solid #e6edf3;
    padding: 6px 0;
}

    .facet-group summary {
        cursor: pointer;
        color: var(--color-slate-800);
        font-size: .7rem;
        font-weight: 800;
    }

    .facet-group > div {
        display: grid;
        gap: 4px;
        margin-top: 5px;
    }

    .facet-group label {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        gap: 5px;
        font-size: .64rem;
        color: #486581;
        cursor: pointer;
    }

    .facet-group input {
        margin: 1px 0 0;
        accent-color: #0f8578;
    }

    .facet-group small {
        color: #829ab1;
    }

.empty-filter-result {
    padding: 15px;
    color: #627d98;
    font-size: .72rem;
}

.match-generator {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cbdde8;
    border-radius: 14px;
    background: #f7fbfc;
    text-align: left;
}

    .match-generator > h3 {
        margin: 0 0 6px;
        color: var(--color-slate-900);
    }

    .match-generator > p, .match-generator > small {
        color: #627d98;
        font-size: .72rem;
        line-height: 1.45;
    }

.match-term-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

    .match-term-options label {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border: 1px solid #fecaca;
        border-radius: var(--radius-full);
        background: #fff7f7;
        color: #991b1b;
        font-size: .72rem;
        font-weight: 700;
        cursor: pointer;
    }

        .match-term-options label:has(input:checked) {
            background: #fee2e2;
            border-color: #f87171;
            color: #7f1d1d;
        }

    .match-term-options input {
        accent-color: var(--grade-f);
    }

.match-generator .generate-button {
    width: 100%;
    margin: 4px 0 8px;
}

.term-evidence-inputs {
    display: grid;
    gap: 9px;
    margin: 14px 0;
    padding: 13px;
    border: 1px solid #b8d8d4;
    border-radius: 10px;
    background: #f2fbfa;
}

    .term-evidence-inputs h4 {
        margin: 0;
        color: var(--color-slate-900);
        font-size: .85rem;
    }

    .term-evidence-inputs > p {
        margin: 0;
        color: #486581;
        font-size: .72rem;
        line-height: 1.4;
    }

    .term-evidence-inputs label {
        display: grid;
        gap: 5px;
        color: #17324d;
        font-size: .74rem;
    }

    .term-evidence-inputs textarea {
        min-height: 54px;
        padding: 8px;
        font-size: .78rem;
        background: #fff;
    }

    .term-evidence-inputs .evidence-confirmation {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: -4px 0 4px;
        color: #486581;
        font-size: .7rem;
    }

        .term-evidence-inputs .evidence-confirmation input {
            width: auto;
            margin: 0;
            accent-color: var(--color-brand-700);
        }

.job-results {
    display: grid;
    gap: 8px;
    max-height: 330px;
    margin-top: 13px;
    overflow-y: auto;
}

.job-result-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    border: 1px solid #d9e2ec;
    border-radius: 99px;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.application-card dl div, .job-select {
    padding: 8px;
    background: var(--color-slate-50);
}

.job-select {
    display: grid;
    place-content: center;
    gap: 3px;
    border-right: 1px solid #e6edf3;
    color: #627d98;
    font-size: .62rem;
    font-weight: 750;
}

    .job-select input {
        margin: auto;
        accent-color: #0f8578;
    }

.job-results .job-result-main {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 12px;
    text-align: left;
    border: 0;
    background: #fff;
    color: var(--color-slate-900);
    cursor: pointer;
}

.job-results span {
    color: #486581;
    font-size: .78rem;
}

.job-results small {
    color: #829ab1;
    font-size: .68rem;
}

.term-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
    text-align: left;
}

    .term-columns h3 {
        font-size: 1rem;
    }

.term-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.application-skills, .term-list {
    flex-wrap: wrap;
    list-style: none;
}

.term-heading::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    content: "";
}

.term-heading--strong::before {
    background: #059669;
}

.term-heading--missing::before {
    background: #dc2626;
}

.term-list {
    display: flex;
    gap: 7px;
    padding: 0;
}

    .term-list li {
        padding: 5px 9px;
        border: 1px solid transparent;
        border-radius: var(--radius-full);
        font-size: .8rem;
        font-weight: 650;
    }

.term-list--strong li {
    background: var(--grade-a-bg);
    border-color: #a7f3d0;
    color: #065f46;
}

.term-list--missing li {
    background: var(--grade-f-bg);
    border-color: #fecaca;
    color: #991b1b;
}

.term-list--neutral li {
    background: #e8eef5;
    border-color: #d9e2ec;
    color: var(--color-slate-700);
}

.apply-job-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 10px auto 2px;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--color-brand-700);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(15, 118, 110, .18);
    transition: background var(--transition-fast);
}

    .apply-job-link:hover {
        background: var(--color-brand-800);
        color: #fff;
    }

.application-card, .applications-toolbar {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.applications-page {
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 34px auto 70px;
    color: var(--color-slate-900);
}

.applications-hero {
    text-align: center;
    margin-bottom: 24px;
}

    .applications-hero .eyebrow {
        margin: 0;
        color: var(--color-brand-700);
        font-size: .72rem;
        font-weight: 850;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .applications-hero h1 {
        margin: 6px 0 8px;
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .applications-hero p {
        color: #52667a;
    }

.applications-toolbar {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
}

    .applications-toolbar div {
        display: grid;
    }

    .applications-toolbar small {
        color: #627d98;
    }

    .applications-toolbar button, .applications-toolbar input, .applications-toolbar select {
        min-height: 40px;
        padding: 8px 11px;
        border: 1px solid #bcccdc;
        border-radius: var(--radius-sm);
        background: #fff;
    }

    .applications-toolbar button {
        border-color: #0f8578;
        color: var(--color-brand-700);
        font-weight: 800;
        cursor: pointer;
    }

.applications-empty {
    padding: 50px;
    text-align: center;
    color: #627d98;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.application-card {
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
}

.application-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.application-card h2 {
    margin: 8px 0 3px;
    font-size: 1.15rem;
}

.application-card p, .application-card time {
    color: #627d98;
    font-size: .78rem;
}

.application-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.application-card dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 15px 0;
}

    .application-card dl div {
        min-width: 0;
        border-radius: var(--radius-sm);
    }

.application-card dt {
    color: #829ab1;
    font-size: .63rem;
    font-weight: 800;
    text-transform: uppercase;
}

.application-card dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: .75rem;
}

.application-skills {
    display: flex;
    gap: 5px;
    padding: 0;
}

    .application-skills li {
        padding: 4px 7px;
        border-radius: var(--radius-full);
        background: #e6fffa;
        color: var(--color-brand-700);
        font-size: .68rem;
    }

.application-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

    .application-actions a, .application-actions button {
        flex: 1;
        padding: 9px 11px;
        text-align: center;
        border: 1px solid #0f8578;
        border-radius: var(--radius-sm);
        background: #fff;
        color: var(--color-brand-700);
        font-size: .74rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
    }

    .application-actions a {
        background: var(--color-brand-700);
        color: #fff;
    }

    .application-actions button:disabled {
        border-color: #d9e2ec;
        color: #9fb3c8;
        cursor: not-allowed;
    }

.applications-page > .alert {
    margin-top: 16px;
}

/* Processing Modal Mask */
.processing-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(9, 30, 50, .66);
    backdrop-filter: blur(5px);
    cursor: wait;
}

.processing-card {
    width: min(430px, 100%);
    padding: 34px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.processing-animation i, .processing-track, .processing-track span {
    border-radius: var(--radius-full);
}

.processing-card h2 {
    margin: 17px 0 6px;
    color: var(--color-slate-900);
}

.processing-card p {
    margin: 0;
    color: #52667a;
}

.processing-card small {
    display: block;
    margin-top: 13px;
    color: #829ab1;
}

.processing-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 7px;
    height: 46px;
}

    .processing-animation i {
        width: 10px;
        height: 20px;
        background: var(--color-brand-700);
        animation: 1s ease-in-out infinite processing-pulse;
    }

        .processing-animation i:nth-child(2) {
            animation-delay: .15s;
        }

        .processing-animation i:nth-child(3) {
            animation-delay: .3s;
        }

.processing-track {
    height: 6px;
    margin-top: 22px;
    overflow: hidden;
    background: #e6edf3;
}

    .processing-track span {
        display: block;
        width: 38%;
        height: 100%;
        background: linear-gradient(90deg, #14b8a6, #3b82f6);
        animation: 1.25s ease-in-out infinite processing-slide;
    }

@keyframes processing-pulse {
    0%, 100% {
        height: 16px;
        opacity: .45;
    }

    50% {
        height: 42px;
        opacity: 1;
    }
}

@keyframes processing-slide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(290%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .processing-animation i, .processing-track span {
        animation-duration: 2.5s;
    }
}

.trust-copy {
    max-width: 760px;
    margin: 58px auto;
    text-align: center;
}

/* Static Content & Guide Page Layout Fixes */
.crawler-content,
main.crawler-content.legal-content {
    max-width: 900px !important;
    margin: 2rem auto !important;
    padding: 2.5rem 2rem !important;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-align: left !important;
}

    /* Scoped Static Content Headings & Elements */
    .crawler-content h1,
    main.crawler-content.legal-content h1 {
        font-size: 2.1rem;
        color: var(--color-slate-900);
        line-height: 1.25;
        margin-top: 0;
        margin-bottom: 1.25rem;
        text-align: left;
    }

    .crawler-content h2,
    main.crawler-content.legal-content h2 {
        font-size: 1.4rem;
        color: #1e293b;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
        border-bottom: 2px solid var(--color-slate-100);
        padding-bottom: 0.4rem;
    }

    .crawler-content h3,
    main.crawler-content.legal-content h3 {
        font-size: 1.15rem;
        color: #334155;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .crawler-content p,
    main.crawler-content.legal-content p {
        color: #334155;
        line-height: 1.6;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* List Padding & Bullet Alignments */
    .crawler-content ul,
    .crawler-content ol,
    main.crawler-content.legal-content ul,
    main.crawler-content.legal-content ol {
        margin: 1rem 0 1.5rem 0 !important;
        padding-left: 2rem !important;
        list-style-position: outside !important;
    }

    .crawler-content li,
    main.crawler-content.legal-content li {
        margin-bottom: 0.6rem !important;
        color: #334155;
        line-height: 1.6;
    }

        .crawler-content li strong,
        main.crawler-content.legal-content li strong {
            color: var(--color-slate-900);
        }

.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    margin-bottom: 1.5rem;
}

    .breadcrumb a {
        color: var(--color-brand-700);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.related-resources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-slate-200);
}

    .related-resources a {
        color: var(--color-brand-700);
        text-decoration: none;
        font-weight: 500;
    }

        .related-resources a:hover {
            text-decoration: underline;
        }

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    padding: 28px 5vw;
    color: #627d98;
    background: #fff;
    border-top: 1px solid #d9e2ec;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: #fff3cd;
    z-index: 10000;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .workspace {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 800px) {
    .applications-toolbar {
        grid-template-columns: 1fr 1fr;
    }

        .applications-toolbar div, .applications-toolbar input {
            grid-column: 1/-1;
        }

    .application-card dl, .application-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    main.crawler-content.legal-content,
    .crawler-content {
        margin: 1rem !important;
        padding: 1.5rem 1.25rem !important;
    }

        .crawler-content h1,
        main.crawler-content.legal-content h1 {
            font-size: 1.65rem;
        }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 760px) {
    nav {
        display: none;
    }

    .hero {
        padding-top: 48px;
    }

    .group-charts {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: column;
        gap: 8px;
    }

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

    .verification-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .faceted-results, .fix-option-grid, .fix-options, .job-search-grid, .result-filter-bar, .resume-actions, .source-options {
        grid-template-columns: 1fr;
    }

        .fix-options summary, .job-search-grid .endpoint-field, .output-option.fix-output {
            grid-column: auto;
        }

    .facet-panel {
        max-height: none;
    }

    .result-filter-bar button {
        justify-self: start;
    }

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

        .job-ledger div {
            grid-column: 1/-1;
        }
}
/* Automatically collapse empty or unfilled AdSense slots */
ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.secondary-button {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

    .secondary-button:hover {
        background-color: #e9ecef;
    }
/* Main Step 2 Heading prominence */
.primary-action-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

/* Larger, distinct look for the instruction subtext */
.section-prominent-subtext {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

/* Enhanced "OR PASTE THE DESCRIPTION" separator */
.prominent-divider {
    margin: 1.25rem 0 0.75rem 0;
    text-align: center;
    border-bottom: 1px solid #d1d5db;
    position: relative;
}

.prominent-or-text {
    background-color: #ffffff; /* Matches your card background */
    padding: 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.05em;
    position: relative;
    top: -0.6rem;
}
/* Fix percentage wrapping across all score rings */
.score-ring {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

    .score-ring small {
        display: inline !important;
        font-size: 0.45em !important;
        vertical-align: super;
        margin-left: 2px;
    }