
/* =========================================
   CareerNest — STYLESHEET
   ========================================= */


/* =========================================
   1. DESIGN VARIABLES
   ========================================= */

:root {
    --blue: #0065bd;
    --dark-blue: #024988;
    --cream: #f8f4eb;
    --ink: #242d3b;
    --muted: #687586;
    --line: #e4e7eb;
    --mint: #7fa89c;
    --white: #ffffff;

    --shadow: 0 10px 28px rgba(27, 50, 72, 0.06);
}


/* =========================================
   2. GLOBAL STYLES
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--cream);
    color: var(--ink);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

p {
    color: var(--muted);
    margin: 0;
}

h1 {
    font-size: clamp(28px, 3vw, 43px);
    letter-spacing: -1.8px;
    line-height: 1.15;
    margin: 0 0 10px;
}

h2 {
    font-size: 19px;
    letter-spacing: -0.5px;
    margin: 0;
}


/* =========================================
   3. ACCESSIBILITY
   ========================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #74a9ec;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -70px;
    background: var(--white);
    padding: 12px;
    z-index: 20;
}

.skip-link:focus {
    top: 10px;
}


/* =========================================
   4. MAIN APPLICATION LAYOUT
   ========================================= */

.shell {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    min-height: 100vh;
}

.main {
    min-width: 0;
    max-width: 1500px;
    width: 100%;
    margin: auto;
    padding: 26px clamp(20px, 4vw, 64px);
}


/* =========================================
   5. SIDEBAR
   ========================================= */

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 28px 18px;

    display: flex;
    flex-direction: column;
    gap: 34px;
}


/* Branding */

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

    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-mark {
    background: var(--blue);
    color: var(--white);

    width: 38px;
    height: 38px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    font-size: 22px;
}

.brand-light {
    color: var(--blue);
}


/* Sidebar navigation */

.sidebar-label,
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.3px;
    font-weight: 800;
    color: #83909e;
}

.sidebar-label {
    margin-bottom: -24px;
    padding-left: 12px;
}

.sidebar nav {
    display: grid;
    gap: 7px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 12px 13px;

    border: 0;
    border-radius: 11px;
    background: transparent;

    text-align: left;
    font-weight: 650;
    color: #647286;
}

.nav-link.active,
.nav-link:hover {
    background: #eaf3fc;
    color: var(--blue);
}

.nav-count {
    margin-left: auto;
    padding: 1px 8px;

    font-size: 12px;
    background: #e7edf3;
    border-radius: 99px;
}


/* Sidebar account area */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;

    display: flex;
    align-items: center;
    gap: 10px;

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

.avatar {
    background: #e7f1fa;
    color: var(--dark-blue);

    width: 38px;
    height: 38px;
    border-radius: 50%;

    display: grid;
    place-items: center;

    font-weight: 800;
}

.sidebar-bottom strong,
.sidebar-bottom small {
    display: block;
}

.sidebar-bottom strong {
    font-size: 12px;
}

.sidebar-bottom small {
    font-size: 11px;
    color: var(--muted);
}


/* =========================================
   6. TOP BAR
   ========================================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.demo-tag {
    font-size: 12px;
    font-weight: 650;

    color: #326e61;
    background: #e6f3ef;

    padding: 6px 11px;
    border-radius: 99px;
}


/* =========================================
   7. PAGE INTRODUCTION
   ========================================= */

.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;

    margin: 36px 0 27px;
}

.intro p {
    max-width: 600px;
}

.period {
    color: var(--blue);
}


/* Job count statistic */

.stat {
    border-left: 3px solid var(--blue);
    padding-left: 16px;
    white-space: nowrap;
}

.stat strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================
   8. JOB SEARCH FORM
   ========================================= */

.search-panel {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;

    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 17px;

    padding: 17px;
    box-shadow: var(--shadow);
}


/* Individual form fields */

.field {
    display: grid;
    gap: 7px;
    min-width: 145px;
}

.field.grow {
    flex: 2;
    min-width: 220px;
}

.field label {
    font-size: 12px;
    font-weight: 750;
    color: #536174;
}

.field input,
.field select {
    width: 100%;
    height: 44px;

    border: 1px solid #dce2e8;
    border-radius: 9px;

    background: var(--white);
    color: var(--ink);

    padding: 0 12px;
}


/* Search button */

.search-button {
    height: 44px;
    padding: 0 20px;

    background: var(--blue);
    color: var(--white);

    border: 0;
    border-radius: 9px;

    font-weight: 750;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: var(--dark-blue);
}

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


/* =========================================
   9. SEARCH RESULTS HEADER
   ========================================= */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    margin: 33px 0 17px;
}

.results-header p {
    font-size: 13px;
    margin-top: 3px;
}

.text-button {
    border: 0;
    background: transparent;

    color: var(--blue);
    font-weight: 700;
}


/* =========================================
   10. JOB RESULTS WORKSPACE
   ========================================= */

.workspace {
    display: grid;
    grid-template-columns:
        minmax(290px, 1fr)
        minmax(300px, 0.9fr);

    gap: 17px;
    align-items: start;
}

.results {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.results-column { min-width: 0; }
.load-more-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 13px 18px;
    background: var(--white);
    color: var(--blue);
    border: 1px solid #a9cce9;
    border-radius: 11px;
    font-weight: 750;
    box-shadow: var(--shadow);
}
.load-more-button:hover { background: #eaf3fc; }
.load-more-button:disabled { opacity: .65; cursor: wait; }
.load-more-button[hidden] { display: none; }
.description-content { margin-top: 22px; }
.description-content h3 { margin: 20px 0 10px; font-size: 15px; color: var(--ink); }
.description-summary,
.description-paragraph {
    color: #536174;
    line-height: 1.75;
    font-size: 14px;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}
.description-subheading {
    margin: 18px 0 8px;
    font-size: 13px;
    color: var(--ink);
}
.description-list { margin: 9px 0 18px; padding-left: 22px; color: #536174; }
.description-list li { padding-left: 3px; margin-bottom: 9px; line-height: 1.65; font-size: 14px; }
.description-list li::marker { color: var(--blue); }
.description-expand {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.description-expand summary {
    color: var(--blue);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.description-expand summary:hover { text-decoration: underline; }
.description-full { padding-top: 17px; }


/* Shared card styling */

.job-card,
.details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow);
}


/* =========================================
   11. JOB CARDS
   ========================================= */

.job-card {
    width: 100%;
    padding: 19px;

    cursor: pointer;
    text-align: left;

    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: #9ec5e8;
}

.job-card.selected {
    border: 2px solid var(--blue);
    padding: 18px;
}


/* Card header */

.job-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.company-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #eaf2fc;
    color: var(--blue);

    border-radius: 11px;
    font-weight: 850;
    overflow: hidden;
}

/* Show a real company image when JSearch supplies one. The initial stays
   visible until the image finishes loading (or if it fails). */
.company-logo-image {
    display: none;
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
    background: var(--white);
    border-radius: inherit;
}

.company-logo.has-image .company-logo-initial {
    display: none;
}

.company-logo.has-image .company-logo-image {
    display: block;
}

.job-heading {
    flex: 1;
    min-width: 0;
}

.job-heading h3 {
    margin: 0;

    font-size: 16px;
    line-height: 1.3;
}

.company {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}


/* Save job button */

.save-button {
    background: var(--white);
    color: var(--blue);

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

    padding: 6px 10px;

    font-size: 19px;
    line-height: 1;
}

.save-button[aria-pressed="true"] {
    background: #eaf3fc;
}


/* Job metadata */

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;

    color: var(--muted);
    font-size: 12px;

    margin: 18px 0 14px;
}


/* Skill and job tags */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    background: #f0f4f7;
    color: #526174;

    border-radius: 7px;
    padding: 5px 9px;

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

.chip.highlight {
    background: #e8f4f0;
    color: #357467;
}


/* Card footer */

.job-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    margin-top: 16px;
    padding-top: 13px;

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

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

.job-bottom strong {
    color: var(--ink);
}


/* =========================================
   12. JOB DETAILS PANEL
   ========================================= */

.details {
    padding: 25px;

    position: sticky;
    top: 20px;

    min-width: 0;
    overflow-wrap: anywhere;
}

.details h2 {
    font-size: 24px;
    line-height: 1.2;

    margin: 14px 0 8px;
}

.details .company {
    font-size: 14px;
}

.details h3 {
    font-size: 14px;
    margin: 24px 0 8px;
}

.details p {
    font-size: 14px;
}


/* Details metadata */

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 20px 0;
}

.detail-meta span {
    background: #f2f5f8;
    padding: 7px 10px;

    border-radius: 7px;
    font-size: 12px;
}


/* Details action buttons */

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 26px;
}

.detail-actions a,
.detail-actions button {
    border-radius: 9px;
    padding: 11px 16px;

    font-weight: 750;
    border: 1px solid var(--blue);
}

.detail-actions a {
    background: var(--blue);
    color: var(--white);
}

.detail-actions button {
    background: var(--white);
    color: var(--blue);
}


/* =========================================
   13. EMPTY STATES
   ========================================= */

.empty,
.empty-details {
    padding: 36px 24px;

    text-align: center;
    color: var(--muted);

    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 15px;
}


/* =========================================
   14. FOOTER
   ========================================= */

.footer {
    margin-top: 40px;

    color: #8b97a4;
    font-size: 12px;
}


/* =========================================
   15. RESPONSIVE — TABLETS
   ========================================= */

@media (max-width: 1100px) {

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

    .details { 
        max-height: calc(100vh - 40px); 
        overflow-y: auto; 
    }

    .search-panel .field {
        flex: 1;
    }

}


/* =========================================
   16. RESPONSIVE — MOBILE
   ========================================= */

@media (max-width: 700px) {

    /* Main layout */

    .shell {
        display: block;
    }

    .main {
        padding: 22px 16px;
    }

    /* Sidebar */

    .sidebar {
        padding: 14px 18px;
        gap: 14px;

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

    .sidebar-label,
    .sidebar-bottom {
        display: none;
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-link {
        width: auto;
    }

    /* Top bar */

    .topbar {
        flex-wrap: wrap;
    }

    /* Introduction */

    .intro {
        align-items: flex-start;
        margin: 28px 0 22px;
    }

    .stat {
        display: none;
    }

    /* Search form */

    .search-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .field,
    .field.grow,
    .search-panel .field {
        min-width: 0;
        width: 100%;
    }

    .search-button {
        width: 100%;
    }

    /* Results header */

    .results-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    /* Job results */

    .workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .job-card {
        padding: 16px;
    }

    .job-card.selected {
        padding: 15px;
    }

    .details {
        padding: 20px;
    }

    .job-bottom {
        flex-wrap: wrap;
    }

    .load-more-button { 
        margin-top: 12px; 
    }
    .description-content { 
        margin-top: 16px; 
    }

}
/* =========================================
   17. PHASE 2 — LOCAL APPLICATION TRACKER
   ========================================= */
[hidden] { display: none !important; }

.migration-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px;
    margin: 0 0 22px;
    border: 1px solid #acc8e1;
    border-radius: 14px;
    background: #f0f7fd;
}
.migration-notice p { font-size: 13px; margin-top: 3px; }
.migration-notice button { flex-shrink: 0; }
.tracker-intro { align-items: flex-end; }
.tracker-toolbar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.tracker-toolbar label { font-size: 13px; font-weight: 700; }
.tracker-toolbar select {
    min-height: 42px;
    border: 1px solid #dce2e8;
    padding: 7px 12px;
    border-radius: 9px;
    background: white;
}
.toolbar-link { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.tracker-message { margin: 14px 0 20px; font-size: 13px; min-height: 22px; }
.tracker-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(192px, 1fr));
    gap: 12px;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 12px;
}
.kanban-column {
    min-height: 240px;
    min-width: 192px;
    padding: 12px;
    background: #edf1f5;
    border-radius: 14px;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kanban-column.drop-target { background: #e8f4f0; border-color: var(--mint); }
.kanban-heading { font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; padding: 2px 3px 8px; }
.kanban-count { font-size: 12px; font-weight: 700; background: #fff; border-radius: 99px; padding: 1px 8px; }
.kanban-empty { font-size: 12px; padding: 8px 4px; }
.kanban-card {
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}
.kanban-open { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; color: var(--ink); font-weight: 800; line-height: 1.4; }
.kanban-open:hover { color: var(--blue); }
.kanban-company { font-size: 12px; margin-top: 5px; }
.kanban-location { font-size: 12px; margin: 7px 0; }
.kanban-date { display: block; font-size: 11px; color: var(--dark-blue); margin: 4px 0; }
.kanban-controls { display: grid; gap: 8px; margin-top: 12px; }
.kanban-stage-select { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 4px; font-size: 12px; }
.kanban-controls .text-button { text-align: left; padding: 2px 0; font-size: 12px; }
.application-editor {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: clamp(16px, 3vw, 30px);
    margin-top: 22px;
}
.application-editor .results-header { margin: 0 0 20px; }
.application-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.application-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    border: 1px solid #dce2e8;
    border-radius: 9px;
    padding: 12px;
    color: var(--ink);
}
.application-form textarea:focus-visible { outline: 3px solid #74a9ec; outline-offset: 3px; }
.application-form .notes-field, .editor-actions { grid-column: 1 / -1; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.remove-button { background: white; border: 1px solid #c96565; color: #a53232; border-radius: 9px; padding: 10px 14px; font-weight: 750; }
.remove-button:hover { background: #fff1f1; }
@media (max-width: 900px) {
    .tracker-board { grid-template-columns: repeat(5, 210px); }
    .application-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .migration-notice { flex-direction: column; align-items: stretch; }
    .tracker-toolbar { align-items: stretch; }
    .toolbar-link { margin-left: 0; }
    .tracker-board { grid-template-columns: 1fr; overflow-x: visible; }
    .kanban-column { min-height: 90px; }
    .application-form { grid-template-columns: 1fr; }
}


/* =========================================
   PHASE 3 — ACCOUNT AND AUTHENTICATION
   ========================================= */
.account-identification { min-width: 0; flex: 1; }
.account-identification small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { margin-top: 7px; }
.logout-button { border: 0; background: transparent; padding: 2px 0; color: var(--blue); font-size: 12px; font-weight: 700; }
.logout-button:hover { text-decoration: underline; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(100%, 440px); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 5vw, 38px); box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { font-size: 29px; margin-bottom: 8px; }
.auth-lede { margin-bottom: 24px; }
.auth-form { display: grid; gap: 16px; }
.auth-form .field { min-width: 0; }
.auth-form input { width: 100%; height: 44px; border: 1px solid #dce2e8; border-radius: 9px; padding: 0 12px; color: var(--ink); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-switch { margin-top: 20px; font-size: 14px; text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 750; }
.auth-error { padding: 12px; margin: 0 0 16px; background: #fff0ee; border: 1px solid #e9bdb8; border-radius: 9px; color: #923a31; font-size: 13px; }
.auth-note { margin-top: 16px; font-size: 12px; }
@media (max-width: 700px) {
    .sidebar .account-panel { display: flex; border-top: 1px solid var(--line); padding-top: 12px; }
}


/* =========================================
   PHASE 4 — ADVANCED INTERNATIONAL FILTERS
   ========================================= */
.advanced-filters {
    flex: 1 0 100%;
    min-width: 0;
    margin-top: 2px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.advanced-filters > summary {
    width: max-content;
    max-width: 100%;
    cursor: pointer;
    color: var(--blue);
    font-size: 13px;
    font-weight: 750;
    padding: 4px 2px;
}
.advanced-filters > summary:focus-visible { outline: 3px solid #74a9ec; outline-offset: 4px; }
.advanced-hint { color: var(--muted); font-weight: 450; margin-left: 9px; }
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 17px 0 10px;
}
.advanced-grid .field { min-width: 0; align-content: start; }
.advanced-grid .field input,
.advanced-grid .field select { min-width: 0; }
.advanced-grid .field small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.advanced-grid :disabled { background: #f2f4f6; color: #6e7782; cursor: not-allowed; }
.advanced-disclaimer { font-size: 12px; line-height: 1.55; margin-top: 14px; padding: 12px 14px; background: #f2f6f8; border-radius: 9px; }
@media (max-width: 1100px) {
    .advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .advanced-grid { grid-template-columns: 1fr; }
    .advanced-hint { display: block; margin-left: 0; font-size: 11px; }
    .advanced-filters > summary { width: 100%; }
}

/* =========================================
   PHASE 5 — SKILLS & EXPLAINABLE JOB MATCHING
   ========================================= */
.skill-panel {
    margin-top: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 28px);
}
.skill-panel h2 { margin-bottom: 8px; }
.skill-intro { font-size: 13px; margin-bottom: 18px; }
.skill-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr) auto; gap: 14px; align-items: end; }
.skill-form .field { min-width: 0; }
.skill-form textarea { width: 100%; min-height: 86px; resize: vertical; padding: 10px 12px; border: 1px solid #dce2e8; border-radius: 9px; }
.skill-form .search-button { margin-bottom: 1px; }
.skill-message { min-height: 18px; margin-top: 15px; font-size: 13px; }
.skill-section-header { margin: 0 0 16px; }
.skill-row { padding: 14px 0; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.skill-row:last-child { border-bottom: 0; }
.skill-row-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.skill-row-copy strong { font-size: 14px; }
.skill-row-copy p { margin-top: 5px; font-size: 13px; white-space: pre-line; }
.skill-row-actions, .analysis-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.skill-row-actions .remove-button { padding: 7px 10px; font-size: 12px; }
.analysis-summary-card { border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin-bottom: 12px; overflow-wrap: anywhere; }
.analysis-summary-card p { margin: 9px 0; font-size: 13px; }
.analysis-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.analysis-summary-heading h3 { font-size: 16px; margin: 0; }
.analysis-overlap { border-radius: 9px; padding: 6px 10px; white-space: nowrap; font-size: 12px; background: #e8f4f0; color: #285f54; font-weight: 800; }
.analysis-summary-card .analysis-timestamp { font-size: 12px; }
.analysis-actions { margin-top: 13px; }
.analysis-actions .text-button, .analysis-actions .search-button { font-size: 12px; padding: 9px 12px; }
.inline-link, .match-manage-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 750; }
.match-panel { margin-top: 23px; border: 1px solid #bed6eb; background: #f7fafd; border-radius: 14px; padding: 17px; overflow-wrap: anywhere; }
.match-panel h3 { margin: 0 0 10px; }
.match-panel h4 { font-size: 13px; margin: 19px 0 7px; }
.match-panel p { font-size: 13px; }
.match-panel .match-stat { font-size: 16px; font-weight: 800; color: var(--dark-blue); }
.match-panel .match-context { margin-top: 6px; }
.match-skills { list-style: none; margin: 15px 0; padding: 0; display: grid; gap: 6px; }
.match-skill { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid #e2eaf2; padding: 7px 0; font-size: 12px; }
.match-status { border-radius: 7px; padding: 4px 6px; font-size: 11px; text-align: right; font-weight: 700; }
.match-status.evidence_added { background: #d9efe5; color: #226d52; }
.match-status.listed { background: #e4f0fc; color: #155f9f; }
.match-status.not_listed { background: #f2ede7; color: #735c49; }
.match-suggestions { padding-left: 18px; color: #475366; font-size: 12px; }
.match-suggestions li { margin: 7px 0; }
.match-panel .match-footnote { font-size: 11px; margin-top: 11px; }
.match-manage-link { display: inline-block; font-size: 12px; margin-top: 11px; }
@media (max-width: 900px) {
    .skill-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .skill-form .search-button { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .skill-form { grid-template-columns: 1fr; }
    .skill-row, .analysis-summary-heading { flex-direction: column; }
    .analysis-overlap { white-space: normal; }
    .match-skill { align-items: flex-start; }
}

/* =========================================
   PHASE 6 — PORTFOLIO & PUBLIC GITHUB IMPORT
   ========================================= */
.portfolio-panel {
    margin-top: 22px; padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--white); box-shadow: var(--shadow);
}
.portfolio-panel h2 { margin-bottom: 7px; }
.portfolio-panel-heading, .portfolio-card-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.portfolio-panel-heading p { font-size: 13px; max-width: 750px; }
.portfolio-pill {
    background: #e8f4f0; color: #286b5f; border-radius: 999px;
    padding: 5px 11px; font-size: 11px; font-weight: 750; white-space: nowrap;
}
.portfolio-github-search {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px;
}
.portfolio-github-search .field { flex: 1; }
.portfolio-message { margin: 15px 0; font-size: 13px; min-height: 19px; }
.github-results { display: grid; gap: 9px; margin: 14px 0; }
.github-repo-row {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    border: 1px solid var(--line); border-radius: 12px; padding: 15px;
}
.github-repo-copy { min-width: 0; overflow-wrap: anywhere; }
.github-repo-copy strong { font-size: 14px; }
.github-repo-copy p { margin: 5px 0; font-size: 13px; }
.github-repo-copy small { color: var(--muted); }
.github-repo-row .search-button { flex-shrink: 0; }
.portfolio-form {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px; align-items: start; margin-top: 18px;
}
.portfolio-form .field { min-width: 0; }
.portfolio-form textarea { width: 100%; padding: 11px 12px; resize: vertical; border: 1px solid #dce2e8; border-radius: 9px; }
.portfolio-form input:read-only { background: #f1f4f8; }
.portfolio-wide { grid-column: 1 / -1; }
.project-skills-fieldset {
    border: 1px solid var(--line); border-radius: 11px; padding: 15px;
}
.project-skills-fieldset legend { font-weight: 750; font-size: 13px; padding: 0 7px; }
.project-skills-fieldset p { font-size: 12px; margin-bottom: 12px; }
.portfolio-skill-picks { display: flex; flex-wrap: wrap; gap: 9px; }
.project-skill-option {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f2f5f8; color: var(--ink); border-radius: 8px;
    padding: 8px 10px; font-size: 12px; cursor: pointer;
}
.project-skill-option input { accent-color: var(--blue); }
.portfolio-form-actions, .portfolio-links, .portfolio-card-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.portfolio-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portfolio-project-card { border: 1px solid var(--line); border-radius: 14px; padding: 19px; min-width: 0; }
.portfolio-card-heading h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.portfolio-card-heading p { margin: 6px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.portfolio-summary { white-space: pre-line; margin: 14px 0; font-size: 13px; overflow-wrap: anywhere; }
.portfolio-metadata, .portfolio-links { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 12px 0; font-size: 12px; }
.portfolio-card-actions { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 16px; }
.portfolio-card-actions .remove-button { font-size: 12px; padding: 8px 10px; }
@media (max-width: 1100px) {
    .portfolio-projects { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .portfolio-form { grid-template-columns: 1fr; }
    .github-repo-row, .portfolio-panel-heading { align-items: flex-start; flex-direction: column; }
}

/* =========================================
   PHASE 7 — PRIVATE ANALYTICS DASHBOARD
   ========================================= */
.analytics-intro { align-items: center; }
.analytics-refresh { border: 1px solid #d1dfe9; background: #fff; border-radius: 10px; padding: 10px 15px; color: var(--dark-blue); font-weight: 750; white-space: nowrap; }
.analytics-refresh:hover { border-color: var(--blue); background: #f2f8fd; }
.analytics-refresh:disabled { opacity: .55; cursor: wait; }
.analytics-status { min-height: 21px; font-size: 12px; margin: 0 0 16px; }
.analytics-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 14px 0 22px; }
.analytics-kpi, .analytics-panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; }
.analytics-kpi { min-width: 0; padding: 21px; display: flex; flex-direction: column; gap: 7px; border-top: 3px solid #c8e0f5; }
.analytics-kpi:nth-child(2) { border-top-color: var(--blue); }
.analytics-kpi:nth-child(3) { border-top-color: var(--mint); }
.analytics-kpi:nth-child(4) { border-top-color: var(--dark-blue); }
.analytics-kpi-label { font-weight: 750; font-size: 12px; color: #536174; }
.analytics-kpi strong { font-size: clamp(30px, 3.5vw, 40px); line-height: 1.15; letter-spacing: -1px; }
.analytics-kpi-caption { font-size: 11px; color: var(--muted); }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.analytics-panel { min-width: 0; padding: clamp(18px, 2.5vw, 27px); }
.analytics-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.analytics-panel-header h2 { font-size: 18px; margin-bottom: 6px; }
.analytics-panel-header p { font-size: 12px; }
.analytics-panel-tag { background: #eef4f8; color: #607587; border-radius: 99px; padding: 6px 10px; white-space: nowrap; font-size: 10px; font-weight: 750; }
.analytics-bars { display: grid; gap: 18px; }
.analytics-bar-label { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 6px; font-size: 12px; }
.analytics-bar-label strong { font-variant-numeric: tabular-nums; color: var(--dark-blue); }
.analytics-bar-track { height: 10px; border-radius: 99px; background: #edf2f7; overflow: hidden; }
.analytics-bar-fill { min-width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #79b6e6); border-radius: inherit; transition: width 180ms ease; }
.analytics-empty { border: 1px dashed #d2dde7; padding: 25px; border-radius: 10px; font-size: 13px; text-align: center; }
.analytics-evidence-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.analytics-evidence-total strong { font-size: 36px; letter-spacing: -1.5px; }
.analytics-evidence-total span { font-size: 13px; color: var(--muted); }
.analytics-progress { height: 11px; border-radius: 99px; background: #edf2f7; overflow: hidden; }
.analytics-progress > div { height: 100%; width: 0; background: var(--mint); border-radius: inherit; transition: width 180ms ease; }
.analytics-evidence-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 20px 0; }
.analytics-evidence-details > div { border: 1px solid #ecf0f4; border-radius: 10px; padding: 13px; display: flex; flex-direction: column; gap: 5px; }
.analytics-evidence-details span { color: var(--muted); font-size: 11px; }
.analytics-evidence-details strong { font-size: 23px; }
.analytics-help { font-size: 11px; line-height: 1.6; }
.analytics-next { margin-top: 20px; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-actions a { border: 1px solid #d4e1ec; border-radius: 9px; padding: 10px 14px; font-size: 12px; color: var(--dark-blue); font-weight: 750; }
.analytics-actions a:hover { background: #eef6fe; }
@media (max-width: 1160px) { .analytics-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 850px) { .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 580px) {
    .analytics-kpis { gap: 9px; }
    .analytics-kpi { padding: 15px; }
    .analytics-panel-header { flex-wrap: wrap; }
    .analytics-intro { align-items: flex-start; flex-direction: column; }
    .analytics-refresh { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .analytics-bar-fill, .analytics-progress > div { transition: none; }
}

/* =========================================
   PHASE 8 — SAVED SEARCHES & IN-APP JOB ALERTS
   ========================================= */
.alerts-intro { align-items: center; }
.alerts-notice, .alerts-panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.alerts-notice { padding: 17px 20px; margin-bottom: 22px; background: #edf6fc; border-color: #cde0f0; }
.alerts-notice strong { font-size: 13px; color: var(--dark-blue); }
.alerts-notice p { margin-top: 5px; font-size: 13px; color: #41576b; }
.alerts-panel { padding: clamp(18px, 2.7vw, 27px); margin-bottom: 22px; }
.alerts-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.alerts-heading h2 { margin-bottom: 5px; }
.alerts-heading p { font-size: 13px; }
.alerts-pill { background: #edf4fa; color: var(--dark-blue); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.alerts-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 15px; }
.alerts-form .field { min-width: 0; }
.alerts-form .field input, .alerts-form .field select { min-width: 0; }
.alerts-advanced, .alerts-form-actions { grid-column: 1 / -1; }
.alerts-advanced { padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; }
.alerts-advanced summary { font-weight: 700; font-size: 13px; cursor: pointer; color: var(--blue); }
.alerts-form-nested { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.alerts-form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.alerts-muted { font-size: 12px; color: var(--muted); }
.alerts-message { font-size: 13px; min-height: 22px; margin: 8px 0 14px; }
.alerts-error { color: #aa343c !important; }
.alerts-empty { padding: 24px; color: var(--muted); font-size: 13px; background: #f5f8fa; border-radius: 10px; }
.alerts-search-list, .alerts-inbox { display: grid; gap: 12px; }
.alerts-search-card, .alerts-inbox-card { border: 1px solid var(--line); border-radius: 12px; padding: 17px; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; min-width: 0; }
.alerts-search-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.alerts-search-copy p { font-size: 13px; margin-top: 6px; }
.alerts-search-copy small { display: block; margin-top: 10px; color: var(--muted); }
.alerts-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alerts-card-title h3, .alerts-inbox-card h3 { font-size: 15px; margin: 0; }
.alerts-status { font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: 99px; }
.alerts-active { color: #246b52; background: #e0f1e9; }
.alerts-paused { color: #735c49; background: #f1ece5; }
.alerts-new-count { color: var(--blue) !important; font-weight: 750; }
.alerts-card-actions, .alerts-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alerts-card-actions { flex-shrink: 0; }
.alerts-card-actions button { font-size: 12px; padding: 8px 11px; height: auto; }
.alerts-secondary-button, .alerts-danger-button { border-radius: 9px; border: 1px solid #cedce8; background: #fff; color: var(--dark-blue); font-weight: 750; }
.alerts-danger-button { color: #a43743; border-color: #e9c2c6; }
.alerts-card-actions button:hover, .alerts-open-link:hover { filter: brightness(.96); }
.alerts-card-actions button:disabled { opacity: .55; cursor: not-allowed; }
.alerts-toolbar { justify-content: flex-end; }
.alerts-toolbar button { font-size: 12px; }
.alerts-checkbox { font-size: 12px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.alerts-checkbox input { accent-color: var(--blue); }
.alerts-inbox-card { display: block; overflow-wrap: anywhere; }
.alerts-inbox-card:not(.alerts-read) { border-left: 4px solid var(--blue); background: #f7fbff; }
.alerts-inbox-card p { margin: 5px 0; font-size: 13px; }
.alerts-inbox-card small { color: var(--muted); font-size: 12px; }
.alerts-inbox-card .alerts-card-actions { margin-top: 13px; }
.alerts-open-link { display: inline-block; padding: 8px 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 750; border-radius: 9px; }
@media (max-width: 1100px) {
    .alerts-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alerts-form-nested { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .alerts-form, .alerts-form-nested { grid-template-columns: 1fr; }
    .alerts-heading, .alerts-search-card { flex-direction: column; }
    .alerts-card-actions { width: 100%; }
    .alerts-toolbar { justify-content: flex-start; }
    .alerts-advanced, .alerts-form-actions { grid-column: auto; }
}


/* =========================================
   PHASE 9 — USER PROFILE AND ACCOUNT RECOVERY
   ========================================= */
.auth-success { padding: 12px; margin: 0 0 16px; background: #e7f4ec; border: 1px solid #bcd9cb; border-radius: 9px; color: #236448; font-size: 13px; }
.account-profile-link { display: inline-block; font-size: 11px; color: var(--blue); font-weight: 750; margin-top: 4px; }
.auth-form .field small { font-size: 11px; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(285px,.8fr); gap: 18px; align-items: start; }
.profile-account { display: grid; gap: 18px; }
.profile-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(18px,2.5vw,26px); min-width: 0; }
.profile-panel h2 { margin: 0 0 7px; }
.profile-intro { margin: 0 0 19px; font-size: 13px; }
.profile-form { display: grid; gap: 17px; margin-top: 18px; }
.profile-form .field { min-width: 0; }
.profile-form input, .profile-form select, .profile-form textarea { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid #dce2e8; background: #fff; color: var(--ink); }
.profile-form textarea { resize: vertical; min-height: 110px; }
.profile-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
@media(max-width: 1100px) { .profile-grid { grid-template-columns: 1fr; } }
@media(max-width: 620px) { .profile-pair { grid-template-columns: 1fr; } }

/* =========================================
   ACCOUNT PROFILE — PHOTO UPLOAD
   ========================================= */
.profile-photo-panel { margin-bottom: 18px; }
.profile-photo-preview { display: flex; align-items: center; gap: 18px; margin-bottom: 17px; }
.profile-photo-preview .profile-intro { margin: 5px 0 0; }
.profile-photo { height: 84px; width: 84px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #e7f1fa; }
.profile-photo-fallback { display: grid; place-items: center; background: #e7f1fa; color: var(--dark-blue); font-size: 30px; font-weight: 800; }
.profile-photo-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.profile-photo-form .field { flex: 1; min-width: 180px; }
.profile-photo-form input { width: 100%; min-width: 0; }
.profile-photo-form .search-button { flex-shrink: 0; }
.profile-remove-form { margin-top: 11px; }
.account-avatar { object-fit: cover; }
@media (max-width: 620px) { .profile-photo-form { display: grid; } .profile-photo-form .search-button { width: 100%; } }

/* CV management and clearer searchable category/skill fields */
.cv-panel { margin: 18px 0; }
.cv-panel-heading { display:flex;justify-content:space-between;gap:12px;align-items:start; }
.cv-upload-form { display:flex; align-items:end; gap:12px;flex-wrap:wrap;margin:16px 0; }
.cv-upload-form .field { flex:1;min-width:min(100%,260px); }
.cv-upload-form input[type=file] { height:auto;padding:12px;background:#fff; }
.cv-summary { margin:10px 0; padding:14px;background:#f0f4f7;border-radius:10px; }
.cv-summary p { margin:4px 0; }
.cv-actions { display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px; }
.cv-download-link { color:var(--blue);font-weight:700;text-decoration:underline; }
.cv-privacy-note { margin-top:15px;font-size:12px;color:var(--muted); }
.cv-match-panel { margin-top:16px; }
.field input[list] { background:#fff; }
@media(max-width:700px) { .cv-upload-form { display:grid; } }

/* Version 2.0 — combined CV, Skills and Portfolio evidence explorer */
.detail-actions .evidence-launch { background: var(--blue); color: #fff; }
.detail-actions .evidence-launch:hover { background: var(--dark-blue); }
.comparison-extras { width: 100%; color: var(--blue); }
.comparison-extras summary { cursor: pointer; font-size: 12px; font-weight: 750; width: max-content; max-width: 100%; padding: 6px 0; }
.comparison-extras > button { margin: 8px 8px 4px 0; }
.evidence-panel { background: #fff; border: 1px solid #c5daeb; padding: clamp(16px, 2.2vw, 22px); }
.evidence-panel .evidence-lede { color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.evidence-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 15px 0; }
.evidence-stat { border: 1px solid var(--line); background: #f8fbfe; border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.evidence-stat strong { font-size: 25px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--dark-blue); }
.evidence-stat span { font-size: 11px; line-height: 1.4; color: #516175; }
.evidence-overlap-note { font-weight: 650; }
.evidence-meter { height: 9px; border-radius: 30px; background: #e5edf3; overflow: hidden; margin: 12px 0 18px; }
.evidence-meter-fill { height: 100%; border-radius: inherit; background: var(--mint); }
.evidence-no-cv { background: #f3f6f9; padding: 12px; border-radius: 9px; }
.evidence-no-cv .match-manage-link { margin-top: 0; }
.evidence-group { margin-top: 23px; }
.evidence-group h4 { margin: 0 0 5px; font-size: 14px; }
.evidence-group-help { color: #58697b; margin-bottom: 11px; }
.evidence-requirement { border: 1px solid #dbe5ec; border-radius: 11px; padding: 12px; margin: 10px 0; background: #fff; }
.evidence-requirement-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; }
.evidence-requirement-head strong { font-size: 13px; }
.evidence-status { border-radius: 7px; padding: 5px 7px; font-size: 10px; font-weight: 750; }
.evidence-status.documented { background: #e0f3e9; color: #205c43; }
.evidence-status.self_listed { background: #e8f1fa; color: #1e5b85; }
.evidence-status.needs_evidence { background: #f6f0e8; color: #765339; }
.evidence-job-quote { font-size: 12px !important; color: #536274; border-left: 3px solid #c1d3e3; padding: 6px 9px; margin: 10px 0; line-height: 1.55; }
.evidence-sources { display: grid; gap: 6px; margin-top: 9px; }
.evidence-source { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; font-size: 12px; line-height: 1.5; }
.evidence-source-tag { background: #eff4f8; color: #255070; border-radius: 5px; padding: 2px 6px; font-size: 10px; white-space: nowrap; font-weight: 750; }
.evidence-source-tag.source-portfolio { background: #e6f2ed; color: #27664d; }
.evidence-source a { text-decoration: underline; font-size: 11px; color: var(--blue); }
.evidence-no-signal { color: #705b4c; margin-top: 8px; }
.evidence-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.evidence-actions .evidence-tip { width: 100%; color: #576679; }
.evidence-actions .match-manage-link { margin-top: 0; }
.evidence-review { border: 1px solid #c9d8e5; background: #f7fafc; color: var(--dark-blue); padding: 6px 9px; border-radius: 7px; font-size: 11px; cursor: pointer; }
.evidence-review:disabled { opacity: .6; }
.evidence-review-error { color: #9b2c2c; }
.evidence-other-list { padding-left: 18px; line-height: 1.65; font-size: 12px; }
.evidence-other-list li { margin-bottom: 6px; }
.evidence-next { margin-top: 20px; padding: 12px; background: #f7fafc; border-radius: 10px; }
.evidence-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.evidence-panel .match-footnote { color: #5b6674; line-height: 1.5; }
@media(max-width:700px) { .evidence-stats { grid-template-columns: 1fr; } .evidence-stat { flex-direction: row; align-items: center; } .evidence-stat strong { font-size: 22px; min-width: 40px; } }

/* =========================================
   CareerNest 2.0 — PERSONAL DASHBOARD
   ========================================= */
.dashboard-main { max-width: 1560px; }
.dashboard-version { font-size: 10px; letter-spacing: 1px; font-weight: 800; color: var(--blue); background: #e9f2fb; border: 1px solid #d1e6f7; padding: 6px 10px; border-radius: 99px; }
.dashboard-hero { margin: 12px 0 22px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .72fr); align-items: center; gap: 20px; background: linear-gradient(115deg,#ffffff 0%,#f5fbff 100%); padding: clamp(22px, 3vw, 34px); border: 1px solid #dce9f3; border-radius: 20px; box-shadow: var(--shadow); }
.dashboard-kicker,.dashboard-label { display: block; font-size: 10px; font-weight: 850; color: var(--blue); letter-spacing: 1.2px; margin-bottom: 9px; }
.dashboard-hero h1 { font-size: clamp(30px, 3.1vw, 42px); }
.dashboard-hero p { max-width: 590px; font-size: 14px; line-height: 1.65; }
.dashboard-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 21px; }
.dashboard-button { display: inline-flex; align-items: center; gap: 15px; justify-content: center; width: auto; padding: 11px 17px; border-radius: 9px; font-size: 12px; }
.dashboard-secondary-button { border: 1px solid #cbd9e5; color: var(--dark-blue); background: white; font-size: 12px; font-weight: 800; padding: 11px 16px; border-radius: 9px; }
.dashboard-secondary-button:hover { background: #eaf4fb; }
.dashboard-progress-card { padding: 20px; border-radius: 15px; background: white; border: 1px solid #dbe9f3; }
.dashboard-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-progress-top span { color: #53647a; font-size: 12px; font-weight: 700; }
.dashboard-progress-top strong { color: var(--dark-blue); font-size: 20px; font-variant-numeric: tabular-nums; }
.dashboard-progress-card small { display: block; margin-top: 11px; color: #586d7f; font-size: 11px; line-height: 1.5; }
.dashboard-progress-track { height: 9px; border-radius: 99px; background: #e6edf3; overflow: hidden; }
.dashboard-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dashboard-kpi { background: white; border-radius: 15px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 20px; transition: transform .15s ease, border-color .15s ease; min-width: 0; }
.dashboard-kpi:hover { transform: translateY(-2px); border-color: #acd1eb; }
.dashboard-kpi-label { display: flex; justify-content: space-between; align-items: center; color: #5e6c7e; font-size: 12px; font-weight: 750; }
.dashboard-kpi-label span { color: var(--blue); font-size: 18px; }
.dashboard-kpi > strong { display: block; font-size: 34px; line-height: 1.5; color: var(--dark-blue); font-variant-numeric: tabular-nums; }
.dashboard-kpi > small { font-size: 11px; color: #6d7885; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, 1fr); gap: 18px; align-items: start; }
.dashboard-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 17px; padding: clamp(18px, 2.1vw, 24px); box-shadow: var(--shadow); }
.dashboard-panel-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 15px; margin-bottom: 17px; }
.dashboard-panel-head h2 { font-size: 19px; }
.dashboard-panel-head .dashboard-label { margin-bottom: 4px; }
.dashboard-link { font-size: 11px; font-weight: 800; color: var(--blue); line-height: 1.6; }
.dashboard-link:hover { text-decoration: underline; }
.dashboard-panel-description { font-size: 12px; color: #607080; line-height: 1.7; margin-bottom: 15px; }
.dashboard-action-list,.dashboard-suggestion-list,.dashboard-activity-list,.dashboard-alert-list,.dashboard-checklist { display: grid; gap: 9px; }
.dashboard-action { display: flex; gap: 12px; align-items: center; border: 1px solid #e5edf4; border-radius: 11px; padding: 10px; }
.dashboard-action:hover,.dashboard-suggestion:hover,.dashboard-alert:hover,.dashboard-activity:hover,.dashboard-check-item:hover { background: #f7fbff; }
.dashboard-date { flex-shrink: 0; display: grid; text-align: center; width: 48px; height: 52px; align-content: center; background: #eff4f9; border-radius: 8px; color: var(--dark-blue); }
.dashboard-date strong { font-size: 19px; line-height: 1.1; }
.dashboard-date small { font-size: 10px; font-weight: 700; }
.dashboard-date.dashboard-overdue { background: #fde9e8; color: #8f2822; }
.dashboard-date.dashboard-soon { background: #fff0dc; color: #835315; }
.dashboard-action-info { flex: 1; display: grid; gap: 3px; min-width: 0; }
.dashboard-action-info strong,.dashboard-suggestion-body strong { font-size: 12px; overflow-wrap: anywhere; }
.dashboard-action-info small,.dashboard-suggestion-body small { font-size: 11px; color: #687687; overflow-wrap: anywhere; }
.dashboard-due { background: #f1f4f7; color: #516176; border-radius: 7px; padding: 5px 8px; font-size: 10px; white-space: nowrap; font-weight: 750; }
.dashboard-due-late { background: #fde9e8; color: #8f2822; }
.dashboard-empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 20px 15px; background: #f7fafc; border-radius: 12px; }
.dashboard-empty > span { color: var(--blue); font-size: 25px; }
.dashboard-empty strong { font-size: 13px; }
.dashboard-empty p { font-size: 12px; line-height: 1.6; max-width: 360px; }
.dashboard-insight-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.dashboard-insight-stats > div { display: grid; gap: 1px; background: #f7fafc; padding: 12px; border-radius: 10px; text-align: center; }
.dashboard-insight-stats strong { font-size: 23px; color: var(--dark-blue); }
.dashboard-insight-stats small { color: #697a87; font-size: 10px; }
.dashboard-evidence-summary { display: flex; justify-content: space-between; gap: 7px; margin-top: 17px; font-size: 11px; color: #5a6b7e; }
.dashboard-evidence-summary strong { color: #314a5e; }
.dashboard-evidence-track { margin-top: 8px; }
.dashboard-fine-print { font-size: 10px; line-height: 1.6; margin-top: 11px; }
.dashboard-cv-status { display: flex; align-items: center; gap: 10px; padding: 13px 0 0; margin-top: 17px; border-top: 1px solid var(--line); }
.dashboard-cv-icon { background: #e9f1fa; display: grid; place-items: center; color: var(--blue); border-radius: 9px; height: 37px; width: 37px; font-size: 17px; flex-shrink: 0; }
.dashboard-cv-status > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dashboard-cv-status strong { font-size: 11px; }
.dashboard-cv-status small { font-size: 10px; color: #647182; overflow-wrap: anywhere; }
.dashboard-suggestion { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #e4ebf1; border-radius: 11px; padding: 13px; }
.dashboard-company-mark { display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; width: 38px; height: 38px; background: #e8f1fa; color: var(--blue); font-weight: 800; }
.dashboard-suggestion-body { display: grid; flex: 1; gap: 4px; min-width: 0; }
.dashboard-chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.dashboard-chip { font-size: 10px; padding: 3px 7px; background: #e7f3ed; color: #205b43; border-radius: 5px; }
.dashboard-match { display: grid; text-align: right; min-width: 80px; }
.dashboard-match strong { color: var(--dark-blue); font-size: 17px; }
.dashboard-match small { max-width: 85px; font-size: 10px; color: #607080; }
.dashboard-alert,.dashboard-activity,.dashboard-check-item { display: flex; align-items: flex-start; gap: 11px; border-bottom: 1px solid #edf0f3; padding: 10px 4px; }
.dashboard-alert:last-child,.dashboard-activity:last-child,.dashboard-check-item:last-child { border-bottom: 0; }
.dashboard-alert-dot { height: 8px; width: 8px; margin-top: 6px; flex-shrink: 0; border-radius: 50%; background: #dbe3ec; }
.dashboard-alert-dot.unread { background: var(--blue); }
.dashboard-alert > span:last-child,.dashboard-activity-info,.dashboard-check-item > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; flex: 1; }
.dashboard-alert strong,.dashboard-activity strong,.dashboard-check-item strong { font-size: 12px; overflow-wrap: anywhere; }
.dashboard-alert small,.dashboard-activity small,.dashboard-check-item small { font-size: 11px; color: #657589; overflow-wrap: anywhere; }
.dashboard-activity-mark { color: var(--blue); background: #eaf2fb; border-radius: 8px; display: grid; place-items: center; height: 28px; width: 28px; flex-shrink: 0; }
.dashboard-activity time { font-size: 10px; color: #8895a1; }
.dashboard-check-icon { border-radius: 50%; font-size: 19px; color: #96a2ae; flex-shrink: 0; }
.dashboard-check-icon.done { color: #23704f; }
.dashboard-check-arrow { color: var(--blue); margin-left: auto; }
@media(max-width: 1120px) { .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(260px,1fr); } .dashboard-hero { grid-template-columns: minmax(0,1.3fr) minmax(200px,.8fr); } }
@media(max-width: 930px) { .dashboard-grid,.dashboard-hero { grid-template-columns: 1fr; } .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 520px) { .dashboard-kpi { padding: 13px; } .dashboard-kpi > strong { font-size: 28px; } .dashboard-kpi-label { font-size: 11px; } .dashboard-hero { padding: 20px; } .dashboard-panel { padding: 17px; } .dashboard-suggestion { flex-wrap: wrap; } .dashboard-match { text-align: left; margin-left: 50px; } .dashboard-match small { max-width: none; } .dashboard-action { flex-wrap: wrap; } .dashboard-due { margin-left: 60px; } }
@media(prefers-reduced-motion: reduce) { .dashboard-kpi { transition: none; } .dashboard-kpi:hover { transform: none; } }

/* Dashboard company logos keep initials as a visible fallback. */
.dashboard-company-mark { position: relative; overflow: hidden; }
.dashboard-company-logo { position: absolute; inset: 0; height: 100%; width: 100%; background: #fff; object-fit: contain; padding: 3px; }

/* CareerNest 2.0 Phase 3: transparent international-search evidence */
.eligibility-field { min-width: 210px; }
.eligibility-field small { display: block; max-width: 260px; font-size: .72rem; line-height: 1.4; margin-top: 6px; color: var(--muted, #6f7885); }
.job-eligibility { margin: 8px 0 2px; }
.eligibility-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; line-height: 1.35; border: 1px solid #d7e0ea; background: #f3f6fa; color: #3c5268; }
.eligibility-badge.status-uk_explicit { background: #e5f4ed; border-color: #badfcf; color: #1f694e; }
.eligibility-badge.status-restricted { background: #fff0e9; border-color: #f3ccb8; color: #92512e; }
.eligibility-badge.status-unverified { background: #eff4fa; border-color: #d2e0ec; color: #3d5d77; }
.detail-eligibility { padding: 12px 14px; margin: 12px 0; border-radius: 11px; border: 1px solid #dce5ed; background: #f9fbfd; }
.detail-eligibility p { margin: 8px 0 0; font-size: .84rem; color: #45556a; line-height: 1.5; }
.detail-eligibility .eligibility-excerpt { font-style: italic; font-size: .77rem; color: #596579; }


/* CareerNest 2.0 — Phase 4: dates, interviews and application timeline */
.tracker-fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 15px; min-width: 0; }
.tracker-fieldset legend { padding: 0 8px; font-size: 13px; font-weight: 800; color: var(--dark-blue); }
.tracker-fieldset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: end; }
.tracker-fieldset-grid .tracker-wide-field { grid-column: 1 / -1; }
.tracker-fieldset-grid input, .tracker-fieldset-grid select, .tracker-fieldset-grid textarea { width: 100%; min-width: 0; }
.tracker-check { display: flex; align-items: center; gap: 9px; font-size: 12px; cursor: pointer; padding: 10px 0; }
.tracker-check input { width: 17px; height: 17px; accent-color: var(--blue); }
.tracker-field-help { display: block; font-size: 11px; color: #677789; line-height: 1.5; margin: 5px 0 0; }
.tracker-timeline { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.tracker-timeline-heading h3 { margin: 0; font-size: 16px; }
.tracker-timeline-heading p { margin: 5px 0 12px; color: #677789; font-size: 12px; }
.tracker-timeline-list { list-style: none; margin: 10px 0 0; padding: 0 0 0 15px; border-left: 2px solid #d9e7f5; display: grid; gap: 12px; }
.tracker-timeline-entry { position: relative; display: grid; gap: 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
.tracker-timeline-entry::before { content: ''; position: absolute; left: -22px; top: 14px; height: 10px; width: 10px; border-radius: 50%; background: var(--blue); border: 2px solid white; }
.tracker-timeline-entry strong { font-size: 12px; }
.tracker-timeline-entry time, .tracker-timeline-entry small { font-size: 11px; color: #63768b; }
@media(max-width: 650px) { .tracker-fieldset-grid { grid-template-columns: 1fr; } }

/* CareerNest 2.0 — Phase 5: portfolio case studies and private covers */
.portfolio-case-fields { border: 1px solid #e0e9f2; border-radius: 14px; padding: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; background: #fafcff; }
.portfolio-case-fields .portfolio-panel-heading { grid-column: 1 / -1; margin-bottom: 0; }
.portfolio-case-fields .portfolio-panel-heading h3 { font-size: 15px; color: var(--dark-blue); }
.portfolio-case-fields .field { min-width: 0; }
.portfolio-case-fields .field:nth-child(2), .portfolio-case-fields .field:nth-child(4), .portfolio-case-fields .field:nth-child(6) { grid-column: 1 / -1; }
.portfolio-case-fields input, .portfolio-case-fields textarea { width: 100%; max-width: 100%; }
.portfolio-cover-field small { font-size: 11px; line-height: 1.55; display: block; margin-top: 7px; color: #617386; }
.portfolio-cover-field input { max-width: 100%; }
.portfolio-skill-picks { align-items: stretch; }
.project-skill-row { display: grid; gap: 6px; border: 1px solid #dce6ef; border-radius: 10px; padding: 9px 11px; background: #fff; min-width: 0; }
.project-skill-row .project-skill-option { margin: 0; }
.project-skill-evidence { display: block; width: 100%; min-width: 0; resize: vertical; font-size: 12px; line-height: 1.5; border: 1px solid #dce6ef; border-radius: 8px; padding: 9px; }
.project-skill-evidence[hidden] { display: none; }
.portfolio-project-card { scroll-margin-top: 24px; overflow: hidden; }
.portfolio-project-card:target { outline: 2px solid var(--blue); outline-offset: 3px; }
.portfolio-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; background: #edf3f8; border-radius: 10px; border: 1px solid #dde7f0; margin-bottom: 14px; }
.portfolio-case-details { border-top: 1px solid #e3eaf1; padding: 10px 0; font-size: 12px; }
.portfolio-case-details summary { cursor: pointer; color: var(--blue); font-weight: 800; font-size: 12px; }
.portfolio-case-details summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.portfolio-case-item { margin-top: 11px; display: grid; gap: 4px; }
.portfolio-case-item strong { font-size: 11px; color: var(--dark-blue); }
.portfolio-case-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #536275; line-height: 1.55; }
.portfolio-suggestions { display: grid; gap: 12px; }
.portfolio-suggestion { display: grid; align-items: start; gap: 7px; border: 1px solid #dbe7f0; background: #fff; border-radius: 10px; padding: 13px; }
.portfolio-suggestion > strong { color: var(--dark-blue); font-size: 13px; }
.portfolio-suggestion-count { font-size: 11px; color: #5b7085; }
.portfolio-suggestion p { margin: 0; font-size: 12px; line-height: 1.5; }
@media(max-width: 650px) { .portfolio-case-fields { grid-template-columns: 1fr; padding: 14px; } .portfolio-case-fields .field { grid-column: 1 / -1; } }


/* ===========================================================
   CareerNest 2.0 — PHASE 6: UI/UX POLISH
   Shared navigation, responsive surfaces and accessible states.
   The existing blue/cream identity remains the default.
   =========================================================== */

/* Consistent keyboard navigation on both themes. */
:where(button, a, input, select, textarea, summary, [tabindex="0"]):focus-visible {
    outline: 3px solid #70a9ee;
    outline-offset: 3px;
}
:where(button, input, select, textarea):disabled { cursor: not-allowed; }
:where(input, select, textarea) { max-width: 100%; }
:where(textarea) { font: inherit; }
:where(summary) { cursor: pointer; }
:where(.main, .sidebar, .search-panel, .dashboard-panel, .dashboard-hero, .details, .job-card) { min-width: 0; }
:where(.main) { overflow-wrap: break-word; }
:where(.field) :where(input, textarea, select) { transition: border-color 150ms ease, box-shadow 150ms ease; }
:where(.field) :where(input, textarea, select):focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,101,189,.11); }
:where(.field) :where(input, textarea, select):focus-visible { box-shadow: none; }
:where(input, textarea)::placeholder { opacity: .8; }
:where(button, a) { -webkit-tap-highlight-color: transparent; }

@media (min-width: 701px) {
    .sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; gap: 22px; }
    .sidebar .sidebar-label { margin-bottom: -12px; }
    .main { align-self: start; }
}
.ui-nav-controls { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ui-theme-toggle, .ui-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
    padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--white); color: var(--ink); font-size: 12px; font-weight: 750;
}
.ui-theme-toggle:hover, .ui-menu-toggle:hover { border-color: #8bbbdc; background: #eef5fc; color: var(--dark-blue); }
.ui-menu-toggle { display: none; }
.ui-auth-controls { display: flex; justify-content: flex-end; margin-bottom: 12px; }

@media (max-width: 700px) {
    .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .sidebar > .brand { min-width: 0; }
    .sidebar > .ui-nav-controls { justify-self: end; }
    .ui-menu-toggle { display: inline-flex; }
    .ui-theme-toggle { min-height: 40px; }
    .pow-enhanced .sidebar nav, .pow-enhanced .sidebar .sidebar-bottom {
        display: none;
        grid-column: 1 / -1;
    }
    .pow-enhanced .sidebar.ui-menu-open nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; width: 100%; }
    .pow-enhanced .sidebar.ui-menu-open .sidebar-bottom { display: flex; }
    .sidebar nav .nav-link { width: 100%; min-width: 0; font-size: 13px; min-height: 43px; }
    .sidebar nav .nav-link span:not(.nav-count) { min-width: 0; }
    .main { padding: 22px max(16px,env(safe-area-inset-right)) 30px max(16px,env(safe-area-inset-left)); }
    .intro { gap: 14px; }
    .intro h1 { letter-spacing: -1.2px; }
    .results-header { gap: 10px; }
    .results-header .text-button { padding: 8px 0; }
    .job-card, .details, .dashboard-panel { max-width: 100%; }
    .details { max-height: none; overflow: visible; }
}
@media (max-width: 440px) {
    .brand { font-size: 16px; gap: 7px; }
    .brand-mark { width: 34px; height: 34px; font-size: 19px; }
    .ui-nav-controls { gap: 5px; }
    .ui-theme-toggle, .ui-menu-toggle { font-size: 11px; padding: 7px; }
    .pow-enhanced .sidebar.ui-menu-open nav { grid-template-columns: 1fr; }
    .dashboard-hero, .dashboard-panel { padding: 16px; }
}

/* Announced progress, structured empty states, and noninteractive skeletons. */
.job-empty-state {
    display: grid; justify-items: center; gap: 10px;
    background: var(--white); border: 1px dashed #c5d7e6;
    border-radius: 15px; padding: 40px 22px; text-align: center;
}
.job-empty-state h3 { font-size: 17px; color: var(--ink); margin: 0; }
.job-empty-state p { max-width: 350px; font-size: 13px; line-height: 1.65; }
.job-empty-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: #edf5fc; color: var(--blue); font-size: 25px; font-weight: 800; }
.job-empty-action { margin-top: 5px; border: 1px solid var(--blue); background: transparent; color: var(--blue); border-radius: 9px; font-weight: 750; padding: 9px 16px; }
.job-empty-action:hover { background: #eaf3fc; }
.job-skeleton { display: flex; align-items: start; gap: 15px; padding: 22px; border: 1px solid var(--line); background: var(--white); border-radius: 15px; }
.skeleton-mark, .skeleton-line { background: linear-gradient(100deg,#edf2f7 25%,#f8fbfd 45%,#edf2f7 65%); background-size: 220% 100%; animation: pow-skeleton 1.3s linear infinite; }
.skeleton-mark { width: 45px; height: 45px; border-radius: 12px; flex-shrink: 0; }
.skeleton-lines { flex: 1; display: grid; gap: 10px; padding-top: 4px; }
.skeleton-line { width: 90%; height: 11px; border-radius: 10px; }
.skeleton-line.short { width: 47%; }
.skeleton-line.medium { width: 68%; }
@keyframes pow-skeleton { to { background-position-x: -220%; } }

/* Optional dark theme: semantic palette first, legacy surfaces second. */
html[data-theme="dark"] {
    color-scheme: dark;
    --cream: #111a27; --white: #1a2737; --ink: #eff4fa;
    --muted: #b3c2d2; --line: #354658;
    --blue: #82bfff; --dark-blue: #b3dbff; --mint: #8ebbad;
    --shadow: 0 12px 32px rgba(0,0,0,.2);
    background: var(--cream);
}
html[data-theme="dark"] :where(body, .auth-page) { background: var(--cream); color: var(--ink); }
html[data-theme="dark"] :where(.sidebar, .search-panel, .job-card, .details, .dashboard-panel, .dashboard-kpi, .dashboard-progress-card, .portfolio-project-card, .auth-card, .alerts-panel, .analytics-panel, .tracker-column, .application-editor, .skills-panel, .portfolio-panel, .ui-theme-toggle, .ui-menu-toggle, .job-empty-state, .job-skeleton) {
    background: var(--white); border-color: var(--line); color: var(--ink);
}
html[data-theme="dark"] :where(.dashboard-hero) { background: linear-gradient(115deg,#1b293a,#243a4f); border-color: var(--line); }
html[data-theme="dark"] :where(.nav-link, .sidebar-label, .eyebrow, .dashboard-kpi-label, .dashboard-progress-top span, .dashboard-panel-description, .dashboard-suggestion-body small, .dashboard-action-info small, .tracker-field-help, .portfolio-case-item p) { color: var(--muted); }
html[data-theme="dark"] :where(.nav-link:hover, .nav-link.active, .ui-theme-toggle:hover, .ui-menu-toggle:hover, .dashboard-action:hover, .dashboard-suggestion:hover, .dashboard-alert:hover, .dashboard-activity:hover, .dashboard-check-item:hover) { background: #27435d; color: #c2e4ff; }
html[data-theme="dark"] :where(.field input, .field select, .field textarea, input[type="date"],input[type="datetime-local"],.project-skill-evidence, .advanced-filters, .portfolio-case-fields, .project-skill-row) { background: #142231; color: var(--ink); border-color: #43566a; }
html[data-theme="dark"] :where(.dashboard-progress-card, .dashboard-insight-stats > div, .dashboard-empty, .dashboard-date, .dashboard-cv-icon, .dashboard-suggestion, .dashboard-action, .dashboard-alert, .dashboard-activity, .dashboard-check-item, .tracker-timeline-entry, .portfolio-suggestion, .detail-eligibility, .job-empty-icon, .dashboard-company-mark) {
    background: #223347; color: var(--ink); border-color: var(--line);
}
html[data-theme="dark"] :where(.dashboard-kpi > strong, .dashboard-insight-stats strong, .dashboard-progress-top strong, .dashboard-action-info strong, .dashboard-date strong, .dashboard-match strong, .portfolio-suggestion > strong, .portfolio-case-item strong, .dashboard-evidence-summary strong, .tracker-fieldset legend) { color: var(--ink); }
html[data-theme="dark"] :where(.dashboard-hero p,.dashboard-panel p,.portfolio-suggestion p,.description-paragraph,.description-summary,.description-list,.detail-eligibility p,.footer) { color: var(--muted); }
html[data-theme="dark"] :where(.dashboard-version,.dashboard-chip,.demo-tag,.eligibility-badge.status-unverified,.job-empty-action) { background: #293f54; color: #c6e5ff; border-color: #455b70; }
html[data-theme="dark"] :where(.dashboard-due-late,.dashboard-date.dashboard-overdue,.eligibility-badge.status-restricted) { background: #533231; color: #ffd6cf; border-color: #704846; }
html[data-theme="dark"] :where(.dashboard-date.dashboard-soon) { background: #57452e; color: #ffe1a1; }
html[data-theme="dark"] :where(.eligibility-badge.status-uk_explicit) { background: #244c42; color: #baf2d7; border-color: #386b5b; }
html[data-theme="dark"] :where(.search-button, .brand-mark) { background: #2678c8; color: #fff; }
html[data-theme="dark"] :where(.search-button:hover) { background: #1469b6; }
html[data-theme="dark"] :where(.dashboard-secondary-button, .load-more-button) { background: #223347; border-color: var(--line); color: #c6e4ff; }
html[data-theme="dark"] :where(.dashboard-company-logo,.company-logo-image) { background: #fff; }
html[data-theme="dark"] :where(.skeleton-mark,.skeleton-line) { background-image: linear-gradient(100deg,#2a3b4f 25%,#3c5066 45%,#2a3b4f 65%); }
html[data-theme="dark"] :where(.dashboard-progress-track) { background: #344b61; }
html[data-theme="dark"] :where(.nav-count) { background: #32485e; color: var(--ink); }
html[data-theme="dark"] :where(.job-card.selected) { border-color: #7eb7ec; box-shadow: 0 0 0 1px #629ed5; }
html[data-theme="dark"] :where(.portfolio-case-details,.tracker-fieldset,.tracker-timeline) { border-color: var(--line); }

@media (prefers-reduced-motion: reduce) {
    .skeleton-mark,.skeleton-line { animation: none; }
    :where(html) { scroll-behavior: auto; }
    :where(.field) :where(input, textarea, select) { transition: none; }
}

/* Phase 6 finishing pass: remaining legacy surfaces and readable dark controls. */
html[data-theme="dark"] :where(.field label, .analytics-kpi-label, .dashboard-fine-print, .dashboard-insight-stats small, .dashboard-kpi > small, .dashboard-cv-status small, .dashboard-alert small, .dashboard-activity small, .dashboard-check-item small, .dashboard-action-info small, .portfolio-cover-field small, .portfolio-suggestion-count, .tracker-timeline-entry time, .tracker-timeline-entry small, .dashboard-match small, .dashboard-evidence-summary, .dashboard-activity time, .dashboard-progress-card small, .analytics-panel-header p) { color: var(--muted); }
html[data-theme="dark"] :where(.skill-panel, .analytics-kpi, .alerts-notice, .advanced-disclaimer, .analytics-evidence-details > div, .portfolio-case-fields, .project-skill-row, .portfolio-suggestion, .evidence-next, .auth-card, .profile-grid > section, .profile-panel, .profile-card, .tracker-toolbar, .tracker-board, .tracker-column, .application-editor, .portfolio-project-card, .skill-panel, .detail-eligibility, .dashboard-due, .portfolio-pill) { background: var(--white); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] :where(.analytics-refresh, .analytics-actions a, .text-button, .logout-button, .remove-button, .auth-switch a, .portfolio-case-details summary, .alerts-advanced summary) { color: var(--blue); }
html[data-theme="dark"] :where(.analytics-refresh, .analytics-actions a, .tracker-toolbar select, .auth-form input, .profile-form input, .profile-form select, .profile-form textarea, .portfolio-form input, .portfolio-form textarea, .application-form textarea, .skill-form textarea, .cv-upload-form input[type="file"], .portfolio-skill-row textarea) { background: #142231; color: var(--ink); border-color: #43566a; }
html[data-theme="dark"] :where(.alerts-notice p, .dashboard-evidence-summary, .portfolio-case-item p, .details p, .description-list, .advanced-disclaimer, .alerts-message, .skill-row p, .tracker-message) { color: var(--muted); }
html[data-theme="dark"] :where(.analytics-panel-tag, .alerts-pill, .portfolio-pill, .evidence-next, .advanced-disclaimer, .analytics-bar-track, .analytics-progress, .dashboard-due) { background: #293f54; color: #c6e5ff; border-color: #455b70; }
html[data-theme="dark"] :where(.dashboard-cv-icon, .dashboard-activity-mark) { background: #304960; color: #b4dbff; }
html[data-theme="dark"] :where(.auth-error) { background: #533231; color: #ffd6cf; border-color: #704846; }
html[data-theme="dark"] :where(.field input:disabled, .field select:disabled, .field textarea:disabled) { background: #263344; color: #a5b4c6; }
html[data-theme="dark"] :where(.portfolio-cover) { background: #26394a; border-color: var(--line); }
html[data-theme="dark"] :where(.job-empty-state) { border-color: #45617b; }
html[data-theme="dark"] :where(.ui-theme-toggle:hover, .ui-menu-toggle:hover) { color: #d5eaff; }
html[data-theme="dark"] :where(.field input, .field select, .field textarea):focus { border-color: #8cbff0; box-shadow: 0 0 0 3px rgba(130,191,255,.16); }
html[data-theme="dark"] :where(.field input, .field select, .field textarea):focus-visible { box-shadow: none; }
@media (max-width: 700px) {
    :where(.portfolio-panel, .skill-panel, .alerts-panel, .analytics-panel, .application-editor) { max-width: 100%; }
    :where(.portfolio-form-actions, .portfolio-card-actions, .tracker-toolbar, .editor-actions, .alerts-form-actions) { flex-wrap: wrap; }
    :where(.portfolio-form-actions, .editor-actions) > :where(button, a) { min-height: 42px; }
    .search-panel { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    :where(.dashboard-kpi, .search-button, .nav-link, .analytics-bar-fill, .analytics-progress > div) { transition: none !important; }
}

/* Specificity fixes for older component rules that hard-code light backgrounds. */
html[data-theme="dark"] .sidebar .nav-link.active,
html[data-theme="dark"] .sidebar .nav-link:hover {
    background: #2a445d;
    color: #d7ebff;
}
html[data-theme="dark"] .ui-theme-toggle:hover,
html[data-theme="dark"] .ui-menu-toggle:hover {
    background: #2a445d;
    color: #d7ebff;
    border-color: #577693;
}
html[data-theme="dark"] .field input[list],
html[data-theme="dark"] .cv-upload-form input[type="file"] {
    background: #142231;
    color: #eff4fa;
    border-color: #43566a;
}
html[data-theme="dark"] .evidence-panel,
html[data-theme="dark"] .evidence-requirement,
html[data-theme="dark"] .evidence-stat,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .cv-summary {
    background: #223347;
    border-color: #43566a;
    color: #eff4fa;
}
html[data-theme="dark"] .evidence-stat span,
html[data-theme="dark"] .evidence-job-quote { color: #b3c2d2; }

/* ============================================================
   PUBLIC EXPERIENCE — PHASE 6.1
   Public homepage, authentication entry points and responsive UI.
   Scoped to .public-site / .auth-split to preserve the app UI.
   ============================================================ */
.public-site {
    --public-accent: #0065bd;
    --public-soft: #eaf3fc;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    overflow: clip;
}
.public-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.public-header { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.public-nav { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.public-nav .brand { flex-shrink: 0; font-size: 19px; }
.public-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.public-links > a:not(.public-button) { color: var(--ink); font-size: 13px; font-weight: 650; }
.public-links > a:not(.public-button):hover, .public-footer .brand:hover { color: var(--blue); }
.public-theme-button { border: 1px solid var(--line); color: var(--ink); background: var(--white); padding: 10px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.public-theme-button:hover { border-color: var(--blue); }
.public-button, .public-button-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 16px;
    border-radius: 11px; font-size: 13px; font-weight: 800; text-align: center;
    transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.public-button { color: #fff; background: #0065bd; padding: 12px 19px; border: 1px solid #0065bd; box-shadow: 0 5px 13px rgba(0,101,189,.12); }
.public-button:hover { background: #024988; border-color: #024988; transform: translateY(-1px); }
.public-button-outline { background: transparent; border: 1px solid #a9b9c7; color: var(--ink); }
.public-button-outline:hover { background: var(--public-soft); color: #024988; border-color: #0065bd; transform: translateY(-1px); }
.public-button-large { min-height: 51px; padding: 14px 21px; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: clamp(30px, 5vw, 80px); padding-block: clamp(70px, 8vw, 124px) clamp(70px, 8vw, 116px); }
.public-hero-copy { max-width: 560px; }
.public-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 850; color: var(--blue); letter-spacing: 1.4px; }
.public-kicker-dot { width: 9px; height: 9px; border-radius: 99px; background: #7fa89c; box-shadow: 0 0 0 4px rgba(127,168,156,.16); }
.public-hero h1 { font-size: clamp(41px, 4.3vw, 65px); line-height: 1.1; letter-spacing: -.055em; margin: 25px 0 23px; font-weight: 850; }
.public-hero h1 span, .public-section-intro h2 span { color: var(--blue); }
.public-hero-description { max-width: 495px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.public-reassurance { margin-top: 21px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.public-reassurance span:first-child { color: #287e69; font-weight: 900; }
.public-product { position: relative; padding: 10px 0 23px; }
.public-product:before { content: ""; position: absolute; width: 105%; height: 110%; top: -4%; right: -10%; z-index: 0; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,101,189,.10), rgba(127,168,156,.07) 46%, transparent 70%); }
.public-preview-window { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 26px 70px rgba(13,48,81,.13); transform: rotate(-1.1deg); }
.public-preview-header { min-height: 43px; padding: 10px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; color: var(--muted); }
.public-preview-dots { display: flex; gap: 5px; }
.public-preview-dots i { width: 8px; height: 8px; background: #c9d4df; border-radius: 50%; }
.public-preview-dots i:first-child { background: #e4aba6; }
.public-preview-dots i:nth-child(2) { background: #eccd90; }
.public-preview-live { color: var(--blue); font-weight: 800; }
.public-preview-body { padding: clamp(18px, 2vw, 29px); }
.public-preview-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.public-preview-heading > div:first-child { display: grid; gap: 5px; }
.public-preview-overline { color: var(--blue); font-weight: 850; font-size: 9px; letter-spacing: 1px; }
.public-preview-heading strong { color: var(--ink); font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -.5px; }
.public-preview-heading small, .public-preview-jobs small { color: var(--muted); font-size: 11px; }
.public-preview-avatar { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; font-weight: 900; background: #0065bd; border-radius: 12px; }
.public-preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.public-preview-metrics > div { border: 1px solid var(--line); border-radius: 12px; padding: 15px 12px; display: grid; gap: 3px; background: var(--cream); }
.public-preview-icon { font-size: 18px; color: var(--blue); font-weight: 800; line-height: 1; }
.public-preview-metrics strong { color: var(--ink); font-size: 23px; line-height: 1.2; letter-spacing: -.7px; }
.public-preview-metrics small { color: var(--muted); font-size: 10px; }
.public-preview-panel { border: 1px solid var(--line); border-radius: 13px; padding: 17px; margin-top: 11px; background: var(--white); }
.public-preview-panel-title, .public-preview-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.public-preview-panel-title strong { font-size: 12px; }
.public-preview-panel-title > span { font-size: 10px; color: var(--muted); }
.public-preview-row { margin-top: 15px; font-size: 11px; color: var(--muted); }
.public-preview-row strong { color: var(--blue); }
.public-preview-track { height: 8px; border-radius: 99px; background: #e1eaf2; overflow: hidden; margin-top: 9px; }
.public-preview-track > span { display: block; height: 100%; width: 66.67%; border-radius: inherit; background: #7fa89c; }
.public-preview-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.public-preview-chips span { display: inline-flex; padding: 5px 8px; background: #eaf4f0; color: #276651; font-size: 10px; font-weight: 650; border-radius: 6px; }
.public-preview-jobs { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: var(--cream); padding: 12px; border-radius: 12px; margin-top: 11px; }
.public-preview-job-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--white); color: var(--blue); font-weight: 850; }
.public-preview-jobs > div { display: grid; gap: 3px; flex: 1; }
.public-preview-jobs strong { font-size: 11px; }
.public-preview-arrow { color: var(--blue); }
.public-preview-label { position: absolute; z-index: 1; right: -20px; bottom: 0; background: #024988; color: #fff; box-shadow: 0 12px 32px rgba(0,41,88,.2); padding: 12px 15px; border-radius: 10px; font-weight: 800; font-size: 12px; transform: rotate(2deg); }
.public-preview-label-icon { color: #a2d9c0; margin-right: 4px; }
.public-features { padding: 88px 0 98px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.public-section-intro { max-width: 650px; margin-bottom: 37px; }
.public-section-label { font-weight: 850; font-size: 11px; letter-spacing: 1.3px; color: var(--blue); }
.public-section-intro h2 { font-size: clamp(30px, 3vw, 43px); line-height: 1.17; letter-spacing: -.047em; margin: 13px 0; }
.public-section-intro p { font-size: 15px; line-height: 1.75; }
.public-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.public-feature-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); padding: 25px 22px; border-radius: 15px; background: var(--cream); transition: transform 160ms, border-color 160ms; }
.public-feature-card:hover { border-color: #98bad1; transform: translateY(-3px); }
.public-feature-symbol { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; margin-bottom: 21px; font-size: 25px; font-weight: 800; }
.public-feature-symbol.symbol-blue { background: #e2efff; color: #0065bd; }
.public-feature-symbol.symbol-mint { background: #e0f2e9; color: #247d65; }
.public-feature-symbol.symbol-lilac { background: #eae6fc; color: #6854a1; }
.public-feature-symbol.symbol-peach { background: #fbeadd; color: #ac6d34; }
.public-feature-card h3 { font-size: 16px; margin: 0 0 11px; letter-spacing: -.25px; line-height: 1.35; }
.public-feature-card p { font-size: 13px; line-height: 1.7; margin-bottom: 28px; }
.public-feature-card > span:last-child { color: var(--blue); font-weight: 800; font-size: 12px; margin-top: auto; }
.public-how { padding-block: 96px 90px; }
.public-how .public-section-intro { margin-bottom: 36px; }
.public-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.public-step { padding: 26px 26px 23px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); }
.public-step-number { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cream); color: var(--blue); font-weight: 850; }
.public-step h3 { font-size: 17px; margin: 23px 0 8px; }
.public-step p { font-size: 13px; line-height: 1.7; }
.public-cta-wrap { padding-bottom: 92px; }
.public-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #06385d; padding: clamp(28px, 4vw, 50px); border-radius: 20px; }
.public-cta h2 { color: #fff; margin: 11px 0 10px; font-size: clamp(25px, 2.8vw, 37px); line-height: 1.2; letter-spacing: -.04em; }
.public-cta .public-section-label { color: #a6d0ef; }
.public-cta p { color: #d2e2ef; line-height: 1.7; }
.public-cta-button { flex: 0 0 auto; background: #fff; border-color: #fff; color: #024988; }
.public-cta-button:hover { background: #eaf3fc; border-color: #eaf3fc; }
.public-footer { border-top: 1px solid var(--line); }
.public-footer .public-container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-block: 28px; }
.public-footer .brand { font-size: 16px; }
.public-footer .brand-mark { width: 29px; height: 29px; font-size: 16px; border-radius: 8px; }
.public-footer p { font-size: 12px; }
.public-footer .public-container > span { margin-left: auto; font-size: 11px; color: var(--muted); }

/* A more welcoming entry screen; recovery pages retain their original layout. */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .93fr) minmax(0, 1.07fr); background: var(--cream); }
.auth-promo { background: #06385d; color: #fff; min-height: 100vh; padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 60px; overflow: hidden; position: relative; }
.auth-promo:before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -250px; bottom: -200px; box-shadow: 0 0 0 85px rgba(255,255,255,.02), 0 0 0 170px rgba(255,255,255,.015); pointer-events: none; }
.auth-promo > * { position: relative; z-index: 1; }
.auth-promo-brand { color: #fff; width: fit-content; }
.auth-promo .brand-light { color: #8ac6fc; }
.auth-promo .brand-mark { background: #2b85d1; }
.auth-promo .public-kicker { color: #a5d7f1; }
.auth-promo-content { max-width: 510px; }
.auth-promo-content h2 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.14; letter-spacing: -.055em; margin: 24px 0; }
.auth-promo-content h2 em { color: #aad5f5; font-style: normal; }
.auth-promo-content > p { color: #d2e2ef; font-size: 16px; line-height: 1.75; max-width: 400px; }
.auth-promo-points { display: grid; gap: 16px; margin-top: 34px; font-size: 13px; color: #e1edf6; }
.auth-promo-points div { display: flex; gap: 12px; align-items: baseline; }
.auth-promo-points span { color: #b7e7ce; font-weight: 900; }
.auth-promo-bottom { font-size: 12px; color: #a6c5dc; }
.auth-form-side { display: grid; place-items: center; min-width: 0; padding: 40px 22px; }
.auth-split .auth-card { width: min(100%, 475px); border: 0; box-shadow: none; background: transparent; padding: 12px; }
.auth-split .auth-back { display: inline-flex; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; margin-bottom: 23px; }
.auth-split .auth-back:hover { color: var(--blue); }
.auth-form-brand { display: none; align-items: center; gap: 9px; font-weight: 850; font-size: 17px; margin-bottom: 30px; }
.auth-form-brand .brand-mark { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
.auth-split .auth-card h1 { font-size: clamp(28px, 3vw, 37px); letter-spacing: -1.1px; margin-bottom: 10px; }
.auth-split .auth-lede { font-size: 14px; line-height: 1.7; margin-bottom: 27px; }
.auth-split .auth-form { gap: 17px; }
.auth-split .auth-form input { height: 49px; border-radius: 10px; background: var(--white); border-color: var(--line); }
.auth-split .auth-form input::placeholder { color: #8793a2; }
.auth-split .auth-form .field label { font-weight: 750; }
.auth-split .auth-form small { color: var(--muted); font-size: 11px; }
.auth-split .auth-submit { height: 49px; margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 14px; }
.auth-field-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.auth-field-head a { font-size: 12px; font-weight: 750; color: var(--blue); }
.auth-password-field { position: relative; }
.auth-password-field input { padding-right: 75px !important; }
.auth-password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 12px; font-weight: 750; padding: 8px; color: var(--blue); }
.auth-bottom-callout { text-align: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.auth-bottom-callout a { font-weight: 800; color: var(--blue); }
.auth-split .auth-switch { text-align: center; font-size: 12px; margin-top: 20px; }
.auth-split .ui-auth-controls { margin: 0 0 13px; }

/* Dark theme has readable dedicated surfaces, not a hardcoded light mock. */
html[data-theme="dark"] .public-site { --public-soft: #27445b; }
html[data-theme="dark"] .public-preview-label, html[data-theme="dark"] .auth-promo, html[data-theme="dark"] .public-cta { color: #fff; }
html[data-theme="dark"] .public-preview-chips span { color: #c1f0d7; background: #214c46; }
html[data-theme="dark"] .public-feature-symbol.symbol-blue { background: #254a70; color: #b5d9ff; }
html[data-theme="dark"] .public-feature-symbol.symbol-mint { background: #1f4b41; color: #b7ead1; }
html[data-theme="dark"] .public-feature-symbol.symbol-lilac { background: #40345c; color: #d3c0fc; }
html[data-theme="dark"] .public-feature-symbol.symbol-peach { background: #55402e; color: #f4d3ae; }
html[data-theme="dark"] :where(.public-preview-metrics > div, .public-preview-jobs, .public-step-number) { background: #24374b; border-color: var(--line); }
html[data-theme="dark"] .public-preview-track { background: #3b5263; }
html[data-theme="dark"] .public-cta { background: #123b5b; border: 1px solid var(--line); }
html[data-theme="dark"] .auth-form-brand .brand-light { color: #82bfff; }
html[data-theme="dark"] .auth-split .auth-form input { background: #1a2737; border-color: #415467; color: var(--ink); }
html[data-theme="dark"] .auth-split .auth-form input::placeholder { color: #aab8c7; }
html[data-theme="dark"] .public-hero h1 span { color: #91c9ff; }
@media (max-width: 1050px) {
    .public-links { gap: 14px; }
    .public-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-hero { gap: 26px; }
    .auth-promo { padding: 36px; }
}
@media (max-width: 760px) {
    .public-container { width: min(100% - 34px, 1180px); }
    .public-nav { min-height: 73px; }
    .public-nav-feature { display: none; }
    .public-links { gap: 10px; }
    .public-nav .brand { font-size: 16px; }
    .public-nav-cta { padding: 10px 12px; }
    .public-hero { grid-template-columns: 1fr; gap: 34px; padding-block: 72px 74px; }
    .public-hero-copy { max-width: 620px; }
    .public-hero h1 { font-size: clamp(39px, 7.5vw, 55px); }
    .public-product { width: min(100%, 540px); margin-inline: auto; }
    .public-preview-label { right: 0; }
    .public-features { padding-block: 65px; }
    .public-steps { grid-template-columns: 1fr; gap: 13px; }
    .public-step h3 { margin-top: 14px; }
    .public-how { padding-block: 65px; }
    .public-cta-wrap { padding-bottom: 65px; }
    .public-cta { flex-direction: column; align-items: flex-start; }
    .public-footer .public-container > span { margin-left: 0; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-promo { min-height: 0; padding: 24px; gap: 0; }
    .auth-promo-brand { font-size: 16px; }
    .auth-promo-content, .auth-promo-bottom { display: none; }
    .auth-form-brand { display: none; }
    .auth-form-side { min-height: calc(100vh - 85px); padding: 40px 20px; align-items: start; }
    .auth-split .auth-card { width: min(100%, 460px); padding: 0; }
}
@media (max-width: 480px) {
    .public-links { gap: 7px; }
    .public-theme-button { padding: 9px 7px; font-size: 11px; }
    .public-nav-signin { font-size: 12px !important; }
    .public-nav-cta { font-size: 11px; padding: 9px; gap: 5px; }
    .public-nav .brand { font-size: 14px; gap: 5px; }
    .public-nav .brand-mark { height: 29px; width: 29px; font-size: 16px; border-radius: 9px; }
    .public-hero h1 { font-size: clamp(35px, 10vw, 45px); }
    .public-hero-description { font-size: 15px; }
    .public-hero-actions { display: grid; grid-template-columns: 1fr; }
    .public-feature-grid { grid-template-columns: 1fr; }
    .public-preview-body { padding: 15px; }
    .public-preview-metrics > div { padding: 11px 7px; }
    .public-preview-metrics strong { font-size: 20px; }
    .public-preview-jobs small { font-size: 10px; }
    .public-footer .public-container { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .public-button, .public-button-outline, .public-feature-card { transition: none; }
}
/* Give the public header room to breathe on narrow phones. */
@media (max-width: 480px) {
    .public-nav { flex-wrap: wrap; align-content: center; gap: 8px; padding-block: 12px; }
    .public-nav > .brand { flex: 1 0 100%; font-size: 16px; }
    .public-links { flex: 1 0 100%; justify-content: flex-end; gap: 14px; }
    .public-nav-signin { margin-left: auto; }
    .public-theme-button { padding: 9px 11px; }
    .public-nav-cta { padding: 10px 14px; font-size: 12px; }
}

/* ============================================================
   PHASE 6.2 — DARK THEME CONTRAST REFINEMENT
   Applications, Job Alerts, Portfolio and shared file controls.
   Keep this scoped to the dark theme: light mode remains unchanged.
   ============================================================ */

/* The Kanban board previously used #edf1f5 even in dark mode. */
html[data-theme="dark"] .kanban-column {
    background: #223347;
    color: #eff4fa;
    border: 1px solid #42586d;
}
html[data-theme="dark"] .kanban-heading {
    color: #eff4fa;
}
html[data-theme="dark"] .kanban-count {
    background: #344c63;
    color: #f0f6ff;
    border: 1px solid #526b82;
}
html[data-theme="dark"] .kanban-empty {
    color: #c1d0df;
}
html[data-theme="dark"] .kanban-column.drop-target {
    background: #22473f;
    border-color: #83bdab;
}
html[data-theme="dark"] .kanban-card {
    background: #182838;
    color: #eff4fa;
    border-color: #43586c;
}
html[data-theme="dark"] .kanban-open {
    color: #f0f6ff;
}
html[data-theme="dark"] .kanban-open:hover {
    color: #9acfff;
}
html[data-theme="dark"] .kanban-company,
html[data-theme="dark"] .kanban-location {
    color: #bbccdc;
}
html[data-theme="dark"] .kanban-date {
    color: #a9d7ff;
}
html[data-theme="dark"] .kanban-stage-select,
html[data-theme="dark"] .tracker-toolbar select,
html[data-theme="dark"] .application-form textarea {
    background: #142231;
    color: #eff4fa;
    border-color: #536a80;
}

/* Empty messages and saved-alert cards must not become pale slabs. */
html[data-theme="dark"] .alerts-empty,
html[data-theme="dark"] .analytics-empty {
    background: #223347;
    color: #c8d8e8;
    border: 1px dashed #4d657c;
}
html[data-theme="dark"] .alerts-search-card,
html[data-theme="dark"] .alerts-inbox-card {
    background: #1b2b3c;
    color: #eff4fa;
    border-color: #42586d;
}
html[data-theme="dark"] .alerts-inbox-card:not(.alerts-read) {
    background: #243a51;
    border-left-color: #83c3ff;
}
html[data-theme="dark"] .alerts-search-copy p,
html[data-theme="dark"] .alerts-inbox-card p,
html[data-theme="dark"] .alerts-search-copy small,
html[data-theme="dark"] .alerts-inbox-card small {
    color: #c0cfdf;
}
html[data-theme="dark"] .alerts-active {
    background: #244c42;
    color: #bbf2d8;
}
html[data-theme="dark"] .alerts-paused {
    background: #504235;
    color: #f3dab4;
}
html[data-theme="dark"] .alerts-secondary-button {
    background: #263d52;
    border-color: #58728a;
    color: #d5ecff;
}
html[data-theme="dark"] .alerts-danger-button,
html[data-theme="dark"] .remove-button {
    background: #462f38;
    border-color: #81515d;
    color: #ffd9df;
}
html[data-theme="dark"] .alerts-error {
    color: #ffb8bf !important;
}

/* Native file pickers use the browser's default bright input otherwise. */
html[data-theme="dark"] input[type="file"] {
    color-scheme: dark;
    color: #eff4fa;
    background: #142231;
    border: 1px solid #536a80;
    border-radius: 9px;
    padding: 8px;
    max-width: 100%;
}
html[data-theme="dark"] input[type="file"]::file-selector-button {
    background: #304d68;
    color: #eff4fa;
    border: 1px solid #5f7d97;
    border-radius: 7px;
    padding: 7px 12px;
    margin-right: 12px;
    font: inherit;
    cursor: pointer;
}
html[data-theme="dark"] input[type="file"]::file-selector-button:hover {
    background: #3b6181;
}
html[data-theme="dark"] .portfolio-form input:read-only {
    background: #26394c;
    color: #c3d3e2;
    border-color: #536a80;
}
html[data-theme="dark"] .project-skill-option {
    background: #293f54;
    color: #eaf2fa;
}

/* Visible labels and guidance on all three pages. */
html[data-theme="dark"] .portfolio-cover-field small,
html[data-theme="dark"] .project-skills-fieldset p,
html[data-theme="dark"] .alerts-heading p,
html[data-theme="dark"] .alerts-muted {
    color: #b9c9da;
}
html[data-theme="dark"] :where(.kanban-stage-select, .tracker-toolbar select, .application-form textarea, input[type="file"]):focus-visible {
    outline: 3px solid #94caff;
    outline-offset: 2px;
}


/* --------------------------------------------------------
   UX refinement — no deceptive dropdowns and clearer focus
   -------------------------------------------------------- */
/* Keep eligibility alongside genuinely advanced location/experience controls. */
.advanced-grid .eligibility-field { min-width: 0; }
.advanced-grid .eligibility-field small { max-width: none; }
.search-panel > .search-button { flex-shrink: 0; }

/* Real, keyboard-focusable inputs with a custom presentation. */
.file-picker {
  --picker-bg: #f5f8fc;
  --picker-border: #c8d7e7;
  --picker-button: #e5f0fb;
  --picker-button-hover: #cfe5fa;
  --picker-text: #244763;
  --picker-muted: #556b80;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--picker-border);
  border-radius: 11px;
  background: var(--picker-bg);
  min-width: 0;
  width: 100%;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.file-picker-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap;
}
.file-picker-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 13px;
  flex-shrink: 0;
  background: var(--picker-button);
  color: var(--picker-text);
  border: 1px solid var(--picker-border);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.file-picker-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--picker-muted);
}
.file-picker.has-file .file-picker-name { color: var(--picker-text); font-weight: 650; }
.file-picker:focus-within { border-color: #0065bd; box-shadow: 0 0 0 3px rgba(0,101,189,.17); }
.file-picker-input:focus-visible + .file-picker-action { outline: 3px solid #0065bd; outline-offset: 2px; }

/* Hover must be recognisable in both appearance modes. */
@media (hover: hover) {
  .file-picker:hover { background: #edf5fd; border-color: #6e9ecb; }
  .file-picker-action:hover, .file-picker:hover .file-picker-action { background: var(--picker-button-hover); border-color: #7aa8cf; }
  .field :is(input:not([type="file"]), select, textarea):not(:disabled):hover { border-color: #5e9dd5; }
  .advanced-filters > summary:hover { color: #024988; text-decoration: underline; text-underline-offset: 3px; }
  .sidebar .nav-link:not(.active):hover { background: #e5f1fc; color: #024988; }
  :where(.text-button,.cv-download-link,.portfolio-links a,.auth-switch a):hover { text-decoration: underline; text-underline-offset: 3px; }
  .search-button:not(:disabled):hover { background: #024988; box-shadow: 0 3px 10px rgba(2,73,136,.19); }
}

html[data-theme="dark"] .file-picker {
  --picker-bg: #172a3d;
  --picker-border: #58728b;
  --picker-button: #2a4965;
  --picker-button-hover: #3f698c;
  --picker-text: #f0f7ff;
  --picker-muted: #c2d3e4;
}
html[data-theme="dark"] .file-picker:focus-within { border-color: #9bd1ff; box-shadow: 0 0 0 3px rgba(130,191,255,.23); }
html[data-theme="dark"] .file-picker-input:focus-visible + .file-picker-action { outline-color: #9bd1ff; }
@media (hover: hover) {
  html[data-theme="dark"] .file-picker:hover { background: #243e55; border-color: #9bc6e9; }
  html[data-theme="dark"] .file-picker-action:hover,
  html[data-theme="dark"] .file-picker:hover .file-picker-action { background: var(--picker-button-hover); border-color: #a6d5f8; }
  html[data-theme="dark"] .field :is(input:not([type="file"]), select, textarea):not(:disabled):hover { border-color: #95c9f6; }
  html[data-theme="dark"] .advanced-filters > summary:hover { color: #bfe1ff; }
  html[data-theme="dark"] .sidebar .nav-link:not(.active):hover { background: #315270; color: #f3f9ff; }
  html[data-theme="dark"] .search-button:not(:disabled):hover { background: #176bb8; box-shadow: 0 3px 12px rgba(0,0,0,.22); }
}
@media (max-width: 500px) {
  .file-picker { gap: 8px; }
  .file-picker-action { padding-inline: 10px; }
  .profile-photo-form .search-button, .cv-upload-form .search-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .file-picker, .file-picker-action { transition: none; }
}

/* ---------------------------------------------------------------
   Dashboard interactive rows — accessible light/dark hover states.
   Explicit selectors override earlier shared :where() and :hover
   declarations, whose specificity otherwise leaves pale text on a
   near-white background.  Keyboard focus mirrors pointer hover.
   --------------------------------------------------------------- */
.dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
) {
  border-radius: 9px;
  transition: background-color .15s ease, box-shadow .15s ease;
}

html:not([data-theme="dark"]) .dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
):is(:hover, :focus-visible) {
  background: #e6f2fc;
  color: #193650;
  box-shadow: inset 0 0 0 1px #a9cde9;
}
html:not([data-theme="dark"]) .dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
):is(:hover, :focus-visible) :is(strong, .dashboard-check-arrow, .dashboard-check-icon) {
  color: #163b5b;
}
html:not([data-theme="dark"]) .dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
):is(:hover, :focus-visible) :is(small, time) {
  color: #3c556f;
}

html[data-theme="dark"] .dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
):is(:hover, :focus-visible) {
  background: #2e4c67;
  color: #f1f7ff;
  box-shadow: inset 0 0 0 1px #6389a9;
}
html[data-theme="dark"] .dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
):is(:hover, :focus-visible) :is(strong, .dashboard-check-arrow, .dashboard-check-icon) {
  color: #f1f7ff;
}
html[data-theme="dark"] .dashboard-panel :is(
  .dashboard-action,
  .dashboard-suggestion,
  .dashboard-alert,
  .dashboard-activity,
  .dashboard-check-item
):is(:hover, :focus-visible) :is(small, time) {
  color: #d4e5f5;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-panel :is(.dashboard-action,.dashboard-suggestion,.dashboard-alert,.dashboard-activity,.dashboard-check-item) {
    transition: none;
  }
}


/* =========================================
   CAREERNEST BRANDING & SHARED UI FINISHING PASS
   Kept at end to preserve the tested light/dark hover fixes above.
   ========================================= */
.brand { gap: 10px; line-height: 1.18; min-width: 0; }
.brand-mark {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px; background: #eaf5ff; border: 1px solid #cfdfef;
  border-radius: 13px; overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-light { color: #0065bd; }
.auth-form-brand { display: inline-flex; gap: 9px; align-items: center; }
.auth-form-brand .brand-mark { flex-shrink: 0; }
:where(.sidebar,.public-header,.auth-promo) .brand { white-space: nowrap; }
/* Improve tap and focus discoverability without changing card or data layouts. */
:where(.public-button,.public-button-outline,.search-button,.dashboard-secondary-button,.dashboard-link,.file-picker-action,.nav-link,.auth-back) {
  transition: background-color .17s ease, border-color .17s ease, box-shadow .17s ease, color .17s ease, transform .17s ease;
}
:where(.public-button,.search-button):not(:disabled):active { transform: translateY(1px); }
:where(input,select,textarea):focus-visible { outline-offset: 2px; }
:where(.profile-panel,.dashboard-panel,.alerts-panel,.portfolio-panel,.analytics-panel,.job-card,.search-panel) { min-width: 0; }
:where(.profile-panel,.dashboard-panel,.alerts-panel,.portfolio-panel) :where(h2,h3) { text-wrap: pretty; }
html[data-theme="dark"] .brand-mark, html[data-theme="dark"] .public-site .brand-mark {
  background: #e9f4ff; color: #024988; border-color: #547b9c;
}
html[data-theme="dark"] .brand-light { color: #abd9ff; }
html[data-theme="dark"] .public-site .brand-light { color: #abd9ff; }
html[data-theme="dark"] .sidebar .brand:focus-visible .brand-mark,
html:not([data-theme="dark"]) .sidebar .brand:focus-visible .brand-mark { box-shadow: 0 0 0 3px #91c7ef; }
@media (max-width: 440px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { flex-basis: 34px; width: 34px; height: 34px; padding: 2px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
 :where(.public-button,.public-button-outline,.search-button,.dashboard-secondary-button,.dashboard-link,.file-picker-action,.nav-link,.auth-back) { transition: none; }
}


/* CareerNest auth branding refinement — keep back navigation and logo on separate rows. */
.auth-split .auth-form-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  min-width: 0;
}
.auth-split .auth-form-header .auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.45;
  text-decoration: none;
}
.auth-split .auth-form-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  min-width: 0;
  width: fit-content;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.65px;
  line-height: 1.25;
  white-space: nowrap;
}
.auth-split .auth-form-brand .brand-mark {
  flex: 0 0 47px;
  width: 47px;
  height: 47px;
  padding: 4px;
  border-radius: 14px;
}
.auth-split .auth-brand-wordmark { display: inline-block; }
.auth-split .auth-promo-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.55px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.auth-split .auth-promo-brand .brand-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 14px;
  background: #eaf5ff;
  border-color: #cfe6f8;
}
.auth-split .auth-promo-brand:hover,
.auth-split .auth-promo-brand:focus-visible { color: #fff; }
@media (max-width: 760px) {
  .auth-split .auth-promo-brand { font-size: 20px; gap: 11px; }
  .auth-split .auth-promo-brand .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  /* On narrow screens, the prominent brand stays in the compact promo header. */
  .auth-split .auth-form-brand { display: none; }
  .auth-split .auth-form-header { gap: 0; margin-bottom: 25px; }
}
@media (max-width: 380px) {
  .auth-split .auth-promo-brand { font-size: 18px; }
}


/* ============================================================
   CareerNest — pre-usability UI refinement: four workspace pages
   Components use existing theme variables; forms and endpoint IDs unchanged.
   ============================================================ */
:root { --cn-soft: #f2f7fb; --cn-contrast: #24354b; }
html[data-theme="dark"] { --cn-soft: #203449; --cn-contrast: #e1edf9; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Portfolio: reveal optional project detail only when requested. */
.form-step-note { margin: 15px 0 4px; max-width: 680px; font-size: 13px; }
.portfolio-form-subhead { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 2px 0 0; }
.section-step { display: inline-grid; place-items: center; height: 28px; width: 28px; flex-shrink: 0; border-radius: 9px; color: var(--blue); background: var(--cn-soft); font-size: 12px; font-weight: 850; }
.portfolio-form-disclosure { border: 1px solid var(--line); border-radius: 13px; min-width: 0; background: var(--white); overflow: hidden; }
.portfolio-form-disclosure > summary { display: flex; align-items: center; gap: 11px; padding: 15px 17px; cursor: pointer; color: var(--ink); list-style: none; }
.portfolio-form-disclosure > summary::-webkit-details-marker { display: none; }
.portfolio-form-disclosure > summary::after { content: '+'; font-size: 24px; font-weight: 500; line-height: 1; margin-left: auto; color: var(--blue); }
.portfolio-form-disclosure[open] > summary::after { content: '−'; }
.portfolio-form-disclosure > summary span:nth-child(2) { display: grid; gap: 3px; }
.portfolio-form-disclosure > summary strong { font-size: 13px; }
.portfolio-form-disclosure > summary small { font-size: 11px; color: var(--muted); }
.portfolio-form-disclosure > summary:hover, .portfolio-form-disclosure > summary:focus-visible { background: var(--cn-soft); }
.portfolio-form-disclosure > summary:focus-visible { outline: 3px solid #74a9ec; outline-offset: -3px; }
.portfolio-form-disclosure .portfolio-case-fields { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 18px; margin: 0; }
.portfolio-evidence-fields { display: grid; gap: 18px; padding: 18px; border-top: 1px solid var(--line); }
.portfolio-evidence-fields .project-skills-fieldset { margin: 0; }
.portfolio-form-actions { padding-top: 4px; }
html[data-theme="dark"] .portfolio-form-disclosure { background: #1b293a; border-color: var(--line); }
html[data-theme="dark"] .portfolio-form-disclosure > summary:hover { background: #2a435a; }
html[data-theme="dark"] .portfolio-form-disclosure > summary small { color: #afc5d7; }

/* Applications: optional compact list instead of horizontally scrolling Kanban. */
.tracker-view-toggle { display: inline-flex; gap: 3px; padding: 3px; background: var(--cn-soft); border: 1px solid var(--line); border-radius: 10px; }
.tracker-view-toggle button { background: transparent; border: 0; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 800; padding: 8px 13px; }
.tracker-view-toggle button[aria-pressed="true"] { background: var(--white); color: var(--blue); box-shadow: 0 1px 6px rgba(10,40,70,.10); }
.tracker-view-toggle button:focus-visible { outline: 2px solid #74a9ec; outline-offset: 1px; }
.tracker-board[hidden], .tracker-list[hidden] { display: none !important; }
.tracker-list { display: grid; gap: 11px; margin-bottom: 20px; }
.tracker-list-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); min-width: 0; }
.tracker-list-body { min-width: 0; display: grid; gap: 5px; }
.tracker-list-title { border: 0; background: none; text-align: left; font-size: 15px; font-weight: 800; color: var(--ink); padding: 1px 0; overflow-wrap: anywhere; }
.tracker-list-title:hover { color: var(--blue); text-decoration: underline; }
.tracker-list-company { font-size: 12px; }
.tracker-list-dates { display: flex; flex-wrap: wrap; gap: 5px 13px; color: var(--muted); font-size: 11px; }
.tracker-list-actions { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.tracker-list-actions select { min-width: 122px; }
.tracker-list-empty { border: 1px dashed var(--line); background: var(--cn-soft); padding: 28px; border-radius: 13px; text-align: center; font-size: 13px; }
.tracker-stage-pill { width: fit-content; border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 850; color: #225e6c; background: #e4f3f2; }
.tracker-stage-pill.stage-interview { background: #e5edff; color: #3157a5; }
.tracker-stage-pill.stage-offer { background: #dcf2e5; color: #226d42; }
.tracker-stage-pill.stage-rejected { background: #fbe9e9; color: #954545; }
html[data-theme="dark"] :where(.tracker-list-card,.tracker-view-toggle button[aria-pressed="true"]) { background: #203347; color: var(--ink); }
html[data-theme="dark"] .tracker-stage-pill { background: #264b58; color: #c5edf6; }
html[data-theme="dark"] .tracker-stage-pill.stage-interview { background: #304568; color: #d4e5ff; }
html[data-theme="dark"] .tracker-stage-pill.stage-offer { background: #254d42; color: #c7f5de; }
html[data-theme="dark"] .tracker-stage-pill.stage-rejected { background: #53393e; color: #ffd5da; }
@media(max-width: 700px) {
  .tracker-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
  .tracker-toolbar label { grid-column: 1 / -1; }
  .tracker-toolbar select { min-width: 0; }
  .tracker-toolbar .toolbar-link { grid-column: 1 / -1; }
  .tracker-list-card { align-items: stretch; flex-direction: column; gap: 12px; }
  .tracker-list-actions { justify-content: space-between; }
}
@media(max-width: 380px) { .tracker-toolbar { grid-template-columns: 1fr; } .tracker-view-toggle { width: 100%; justify-content: center; } }

/* Profile: quick-jump navigation, concise upload cards and expandable security settings. */
.profile-quicknav { display: flex; flex-wrap: wrap; gap: 9px; margin: 5px 0 26px; }
.profile-quicknav a { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 9px 14px; color: var(--blue); font-size: 12px; font-weight: 800; }
.profile-quicknav a:hover, .profile-quicknav a:focus-visible { background: var(--cn-soft); border-color: var(--blue); }
.profile-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 22px 0 12px; scroll-margin-top: 18px; }
.profile-section-heading h2 { margin: 5px 0; font-size: 20px; }
.profile-section-heading p { font-size: 12px; }
.profile-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; align-items: start; }
.profile-media-grid .profile-panel { margin: 0; height: 100%; }
.profile-media-grid .profile-photo-preview { align-items: flex-start; }
.profile-media-grid :where(.profile-photo-form,.cv-upload-form) { align-items: stretch; }
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.profile-grid > .profile-panel { max-width: none; }
.profile-account { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
.profile-security-heading { grid-column: 1 / -1; margin-bottom: 0; }
.profile-security-disclosure { padding: 0; overflow: hidden; }
.profile-security-disclosure > summary { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; cursor: pointer; position: relative; }
.profile-security-disclosure > summary::-webkit-details-marker { display: none; }
.profile-security-disclosure > summary::after { content: '+'; position: absolute; right: 22px; top: 18px; font-size: 23px; color: var(--blue); }
.profile-security-disclosure[open] > summary::after { content: '−'; }
.profile-security-disclosure > summary strong { font-size: 15px; padding-right: 30px; }
.profile-security-disclosure > summary small { max-width: 85%; color: var(--muted); font-size: 12px; }
.profile-security-disclosure > summary:hover, .profile-security-disclosure > summary:focus-visible { background: var(--cn-soft); }
.profile-security-disclosure > summary:focus-visible { outline: 3px solid #74a9ec; outline-offset: -3px; }
.profile-security-content { border-top: 1px solid var(--line); padding: 0 22px 22px; }
.profile-security-content p { overflow-wrap: anywhere; }
@media(max-width: 1050px) { .profile-media-grid, .profile-account { grid-template-columns: 1fr; } }
@media(max-width: 620px) { .profile-quicknav a { flex: 1; text-align: center; } }

/* Discovery: clearer search hierarchy & a useful empty-details state. */
.discover-search-lead { display: flex; justify-content: space-between; margin: 19px 0 10px; }
.discover-search-lead h2 { font-size: 17px; margin: 4px 0 2px; }
.discover-search-lead p { font-size: 12px; }
#searchForm.search-panel { display: grid; grid-template-columns: minmax(190px, 2fr) minmax(150px, 1.1fr) minmax(165px, 1.25fr) minmax(140px,1fr); gap: 14px; align-items: end; }
#searchForm.search-panel .field { min-width: 0; }
#searchForm.search-panel .field.grow { flex: initial; }
#searchForm.search-panel > #searchButton { grid-column: 1 / -1; justify-self: start; min-width: 160px; }
#searchForm.search-panel > .advanced-filters { grid-column: 1 / -1; width: 100%; }
#searchForm.search-panel > .advanced-filters .advanced-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.discover-details-empty { display: grid; place-items: center; align-content: center; min-height: 180px; gap: 9px; text-align: center; }
.discover-details-empty p { max-width: 290px; font-size: 12px; line-height: 1.6; }
.discover-details-empty strong { font-size: 14px; }
.discover-empty-symbol { display: grid; place-items: center; width: 44px; height: 44px; color: var(--blue); background: var(--cn-soft); border-radius: 13px; font-size: 28px; }
@media(max-width: 1150px) {
  #searchForm.search-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #searchForm.search-panel > .advanced-filters .advanced-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 650px) {
  #searchForm.search-panel { grid-template-columns: 1fr; }
  #searchForm.search-panel > #searchButton { justify-self: stretch; width: 100%; }
  #searchForm.search-panel > .advanced-filters .advanced-grid { grid-template-columns: 1fr; }
  .discover-search-lead { margin-top: 10px; }
}


/* CareerNest: accessible interaction states and account deletion controls. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #6badeb;
  outline-offset: 3px;
}
html[data-theme="dark"] :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: #a5d5ff;
}
main[tabindex="-1"]:focus { outline: none; }
.profile-danger-disclosure { grid-column: 1 / -1; border-color: #b97072; }
.profile-danger-disclosure > summary strong { color: #a12b36; }
.account-delete-warning { border-left: 4px solid #b43b45; background: #fff2f2; color: #642630; border-radius: 5px; padding: 12px 14px; font-size: 13px; line-height: 1.65; }
.account-delete-button { cursor: pointer; border: 1px solid #a33440; border-radius: 9px; background: #a33440; color: #fff; font-size: 13px; font-weight: 800; padding: 12px 18px; min-height: 44px; }
.account-delete-button:hover { background: #81212b; border-color: #81212b; }
html[data-theme="dark"] .profile-danger-disclosure { border-color: #9e6268; }
html[data-theme="dark"] .profile-danger-disclosure > summary strong { color: #ffc3c9; }
html[data-theme="dark"] .account-delete-warning { background: #38242d; color: #ffe1e3; border-color: #fb97a2; }
html[data-theme="dark"] .account-delete-button { background: #a33440; color: #fff; }
html[data-theme="dark"] .account-delete-button:hover { background: #bf4855; }
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* ============================================================
   CareerNest dark-mode patch — Discover Jobs detail controls
   Scoped to dark mode so existing light-mode styles are unchanged.
   ============================================================ */
html[data-theme="dark"] .detail-meta span,
html[data-theme="dark"] .details .chip,
html[data-theme="dark"] .job-card .chip {
    background: #2a4055;
    color: #e0edfa;
    border: 1px solid #455e75;
}
html[data-theme="dark"] .details .chip.highlight,
html[data-theme="dark"] .job-card .chip.highlight {
    background: #254c43;
    color: #c8f2dc;
    border-color: #3b725f;
}
html[data-theme="dark"] .details .detail-actions button,
html[data-theme="dark"] .details .detail-actions a:not(.evidence-launch) {
    background: #253b51;
    border-color: #82bfff;
    color: #c9e5ff;
}
html[data-theme="dark"] .details .detail-actions a:not(.evidence-launch):hover,
html[data-theme="dark"] .details .detail-actions button:hover {
    background: #345572;
    color: #fff;
}
html[data-theme="dark"] .details .detail-actions .evidence-launch {
    background: #2678c8;
    border-color: #2678c8;
    color: #fff;
}
html[data-theme="dark"] .details .detail-actions .evidence-launch:hover {
    background: #1567b3;
}
html[data-theme="dark"] .details .match-panel,
html[data-theme="dark"] .details .evidence-panel,
html[data-theme="dark"] .details .evidence-next,
html[data-theme="dark"] .details .evidence-requirement,
html[data-theme="dark"] .details .evidence-stat,
html[data-theme="dark"] .details .detail-eligibility {
    background: #223347;
    color: #eff4fa;
    border-color: #455d74;
}
html[data-theme="dark"] .details .match-panel :is(p,li,.match-suggestions),
html[data-theme="dark"] .details .detail-eligibility :is(p,.eligibility-excerpt) {
    color: #c1d1e1;
}
html[data-theme="dark"] .details .match-skill {
    border-color: #435a70;
}
html[data-theme="dark"] .details .match-status.evidence_added {
    background: #245244; color: #c5f2dd;
}
html[data-theme="dark"] .details .match-status.listed {
    background: #284b6c; color: #d1e9ff;
}
html[data-theme="dark"] .details .match-status.not_listed {
    background: #514235; color: #f4ddbd;
}
html[data-theme="dark"] .details :is(.detail-meta span,.chip,.detail-actions button,.detail-actions a) {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
