/* JobMise — site styles (plain CSS, no frameworks) */

:root {
    --ink: #1c2430;
    --muted: #5a6572;
    --accent: #0f5e8c;
    --accent-dark: #0b4769;
    --line: #dde3e9;
    --panel: #f6f8fa;
    --badge: #e8edf1;
    /* Status palette (Bootstrap 5 hues) — one accent family for pills,
       pipeline stages, and dashboard cards. */
    --status-saved: #5c636a;
    --status-applied: #0b5ed7;
    --status-screening: #0e7490;
    --status-interview: #e0a800;
    --status-offer: #157347;
    --status-rejected: #bb2d3b;
    --status-ghosted: #212529;
    --status-withdrawn: #adb5bd;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-wide {
    max-width: 1280px;
}

/* Header / nav */

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .container {
    max-width: 1280px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.brand:hover {
    color: var(--accent);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-links,
.nav-account {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-account {
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
}

.site-nav a {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    color: var(--accent);
    background: var(--panel);
    text-decoration: none;
}

.site-nav a.nav-active {
    color: var(--accent-dark);
    background: var(--badge);
    font-weight: 700;
}

.site-nav a.button {
    color: #fff;
    background: var(--accent);
}

.site-nav a.button:hover {
    background: var(--accent-dark);
    color: #fff;
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--line);
    }

    .site-nav.nav-open {
        display: flex;
    }

    .nav-links,
    .nav-account {
        flex-direction: column;
        align-items: stretch;
        padding-left: 0;
        border-left: none;
    }

    .nav-account {
        padding-top: 0.5rem;
        border-top: 1px solid var(--line);
    }
}

/* Main / footer */

.site-main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Flash banners */

.flash-banner {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-weight: 500;
    border: 1px solid var(--line);
    border-left-width: 4px;
}

.flash-success {
    background: #eef8f2;
    border-color: #b7e1c7;
    border-left-color: var(--status-offer);
    color: #124d2c;
}

.flash-error {
    background: #fdf1f1;
    border-color: #f1b8b8;
    border-left-color: var(--status-rejected);
    color: #7a1f1f;
}

.flash-banner-warn {
    background: #fff9e6;
    border-color: #f0d58c;
    border-left-color: #d97706;
    color: #78350f;
}

.flash-banner-warn a {
    color: #92400e;
}

/* Policy reminder banner — intentionally NOT hidden by @media print */
.policy-banner {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

[data-theme="dark"] .flash-banner-warn {
    background: #332611;
    border-color: #78531b;
    border-left-color: #f59e0b;
    color: #fef3c7;
}

[data-theme="dark"] .flash-banner-warn a {
    color: #fde68a;
}

[data-theme="dark"] .policy-banner {
    background: #3b1519;
    border-color: #7f1d1d;
    border-left-color: #f87171;
    color: #fee2e2;
}

/* Landing page */

.hero {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.hero-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.features-section {
    margin-top: 2.5rem;
}

.features-section .features {
    margin-top: 1rem;
}

.hero h1 {
    margin: 0;
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

.pitch {
    margin: 0.75rem 0 0;
    font-size: 1.35rem;
    color: var(--accent-dark);
    font-weight: 600;
}

.hero-sub {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--muted);
}

.pipeline-section,
.status-section {
    margin-top: 2.5rem;
}

.pipeline-section h2,
.status-section h2 {
    margin-bottom: 0.5rem;
}

.pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.pipeline .stage {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
}

.pipeline .stage + .stage {
    position: relative;
    margin-left: 1.4rem;
}

.pipeline .stage + .stage::before {
    content: "\2192";
    position: absolute;
    left: -1.35rem;
    color: var(--muted);
}

.pipeline .stage-saved {
    border-top: 3px solid var(--status-saved);
}

.pipeline .stage-applied {
    border-top: 3px solid var(--status-applied);
}

.pipeline .stage-screening {
    border-top: 3px solid var(--status-screening);
}

.pipeline .stage-interview {
    border-top: 3px solid var(--status-interview);
}

.pipeline .stage-final {
    background: var(--status-offer);
    border-color: var(--status-offer);
    color: #fff;
}

.pipeline-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.feature h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Project status */

.status-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.status-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}

.status-list li:last-child {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    min-width: 5.5rem;
    text-align: center;
    margin-right: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--badge);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.status-badge.status-active {
    background: var(--accent);
    color: #fff;
}

.status-badge.status-done {
    background: #1e7d46;
    color: #fff;
}

/* Nav extras (login partial) */

.nav-user {
    margin-left: 1.25rem;
    color: var(--muted);
    font-weight: 500;
}

.logout-form {
    display: inline;
    margin-left: 1.25rem;
}

.nav-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
}

.nav-button:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Buttons */

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button-secondary {
    background: #fff;
    color: var(--accent);
}

.button-secondary:hover {
    background: var(--panel);
}

.button-danger {
    background: #b3261e;
    border-color: #b3261e;
}

.button-danger:hover {
    background: #8c1d18;
}

/* Page scaffolding */

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-heading h1 {
    margin: 0;
}

.heading-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.page-note,
.empty-note {
    color: var(--muted);
}

.detail-role {
    font-size: 1.15rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-top: 0.25rem;
}

.confirm-note {
    font-weight: 500;
}

/* Tables */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table thead th {
    border-bottom: 2px solid var(--line);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.data-table tbody tr:hover {
    background: var(--panel);
}

.row-actions {
    white-space: nowrap;
}

.round-card .row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    white-space: normal;
    max-width: 100%;
}

.round-card .row-actions a + a {
    margin-left: 0;
}

.round-card .ready-prompt-header {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.row-actions a + a {
    margin-left: 0.75rem;
}

.row-actions form {
    display: inline;
}

.file-meta {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.file-error {
    color: #b3261e;
    font-weight: 600;
}

.file-upload-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.file-upload-form input[type="file"] {
    font: inherit;
    font-size: 0.85rem;
    max-width: 13rem;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
}

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

.status-pill {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: var(--badge);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Bootstrap-hue mapping: Saved=secondary, Applied=primary, Screening=info,
   Interview=warning, Offer=success, Rejected=danger, Ghosted=dark,
   Withdrawn=light/muted. */
.status-pill-saved {
    background: var(--status-saved);
}

.status-pill-applied {
    background: var(--status-applied);
}

.status-pill-screening {
    background: var(--status-screening);
}

.status-pill-interview {
    background: #ffc107;
    color: #1c2430;
}

.status-pill-offer {
    background: var(--status-offer);
}

.status-pill-rejected {
    background: var(--status-rejected);
}

.status-pill-ghosted {
    background: var(--status-ghosted);
}

.status-pill-withdrawn {
    background: #f8f9fa;
    color: var(--muted);
    border: 1px solid var(--line);
}

.due-overdue {
    color: #b3261e;
    font-weight: 700;
}

.due-soon {
    color: #9a6a00;
    font-weight: 700;
}

.table-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-note .due-overdue,
.table-note .due-soon {
    font-weight: 700;
}

/* Filter bar */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.filter-bar label {
    font-weight: 600;
}

.filter-bar select {
    font: inherit;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

/* Forms */

.edit-form {
    max-width: 640px;
    margin-top: 1rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="file"],
.form-row select,
.form-row textarea,
.edit-form input:not([type="checkbox"]):not([type="submit"]),
.edit-form select,
.edit-form textarea {
    width: 100%;
    font: inherit;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 1rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.field-error {
    display: block;
    color: #b3261e;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.validation-summary {
    color: #b3261e;
}

.validation-summary ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

/* Details */

.detail-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.5rem 1.25rem;
    margin: 1.25rem 0;
}

.detail-list dt {
    font-weight: 600;
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
}

.notes-block {
    white-space: pre-wrap;
}

/* Dashboard */

.dashboard-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.count-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.9rem 0.5rem;
    color: var(--ink);
}

.count-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.count-card-saved { border-top: 3px solid var(--status-saved); }
.count-card-applied { border-top: 3px solid var(--status-applied); }
.count-card-screening { border-top: 3px solid var(--status-screening); }
.count-card-interview { border-top: 3px solid var(--status-interview); }
.count-card-offer { border-top: 3px solid var(--status-offer); }
.count-card-rejected { border-top: 3px solid var(--status-rejected); }
.count-card-ghosted { border-top: 3px solid var(--status-ghosted); }
.count-card-withdrawn { border-top: 3px solid var(--status-withdrawn); }

.count-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    margin-right: 0.4rem;
    background: var(--badge);
}

.count-card-saved .count-dot { background: var(--status-saved); }
.count-card-applied .count-dot { background: var(--status-applied); }
.count-card-screening .count-dot { background: var(--status-screening); }
.count-card-interview .count-dot { background: var(--status-interview); }
.count-card-offer .count-dot { background: var(--status-offer); }
.count-card-rejected .count-dot { background: var(--status-rejected); }
.count-card-ghosted .count-dot { background: var(--status-ghosted); }
.count-card-withdrawn .count-dot { background: var(--status-withdrawn); }

.count-number {
    font-size: 1.6rem;
    font-weight: 700;
}

.count-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-section {
    margin-top: 2.25rem;
}

/* Import */

.format-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.code-block {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
}

.import-summary {
    font-size: 1.1rem;
}

.warning-list {
    color: #9a6a00;
}

/* M4 — Fit check pills (same pill shape as statuses, its own palette) */

.fit-strong-fit {
    background: var(--status-offer);
}

.fit-possible {
    background: var(--status-screening);
}

.fit-poor-fit {
    background: #ffc107;
    color: var(--ink);
}

.fit-blocked {
    background: var(--status-rejected);
}

.fit-not-checked {
    background: #f8f9fa;
    color: var(--muted);
    border: 1px solid var(--line);
}

.fit-reasons {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.recheck-form {
    display: inline;
    margin-left: 0.75rem;
}

/* M4 — Posting text / packet blocks */

.posting-text {
    white-space: pre-wrap;
    max-height: 24rem;
    overflow-y: auto;
}

.packet-block {
    white-space: pre-wrap;
    max-height: 32rem;
    overflow-y: auto;
}

/* M4 — Must-have checklist */

.check-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.check-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-mark {
    display: inline-block;
    width: 1.4rem;
    font-weight: 700;
}

.check-present .check-mark {
    color: var(--status-offer);
}

.check-missing .check-mark {
    color: #b3261e;
}

.check-missing {
    color: var(--muted);
}

/* M4 — Prepare page resume list */

.resume-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.resume-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

.resume-list li:last-child {
    border-bottom: none;
}

.resume-list .status-badge {
    min-width: 0;
    margin-left: 0.6rem;
    margin-right: 0;
}

/* M4 — Form section grouping (posting fields on the application form) */

.form-section {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.1rem 0.25rem;
    margin: 1.25rem 0 0;
}

.form-section legend {
    font-weight: 700;
    padding: 0 0.4rem;
}

/* M4 — Pipeline board */

.board {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    align-items: flex-start;
}

.board-column {
    flex: 1 0 220px;
    max-width: 280px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem;
}

.board-column-saved { border-top: 3px solid var(--status-saved); }
.board-column-applied { border-top: 3px solid var(--status-applied); }
.board-column-screening { border-top: 3px solid var(--status-screening); }
.board-column-interview { border-top: 3px solid var(--status-interview); }
.board-column-offer { border-top: 3px solid var(--status-offer); }
.board-column-rejected { border-top: 3px solid var(--status-rejected); }
.board-column-ghosted { border-top: 3px solid var(--status-ghosted); }
.board-column-withdrawn { border-top: 3px solid var(--status-withdrawn); }

.board-column-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.board-count {
    color: var(--muted);
    font-weight: 700;
}

.board-empty {
    margin: 0;
}

.board-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.board-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.board-card-company {
    display: block;
    font-weight: 700;
}

.board-card-role {
    display: block;
    color: var(--accent-dark);
    font-size: 0.95rem;
}

.board-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Phase 2 — button rows (packet actions, fetch) and fetch notes */

.button-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fetch-note {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    max-width: 640px;
}

/* Phase 3 — board interactions (drag-and-drop, per-card status select, WIP nudges) */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.board-cards {
    min-height: 2.5rem;
}

.board-card[draggable="true"] {
    cursor: grab;
}

.board-card.dragging {
    opacity: 0.5;
}

.board-column.drop-target {
    outline: 2px dashed var(--accent);
    outline-offset: -6px;
    background: #eef3f6;
}

.board-card-link {
    color: var(--ink);
    text-decoration: none;
}

.board-card-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.board-card-move {
    margin-top: 0.55rem;
}

.board-move-select {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.board-wip-note {
    margin: 0 0 0.6rem;
    padding: 0.4rem 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--status-interview);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

.board-error {
    margin-top: 1rem;
    max-width: 640px;
    padding: 0.6rem 0.9rem;
    background: #fdf1f1;
    border: 1px solid var(--status-rejected);
    border-left: 3px solid var(--status-rejected);
    border-radius: 8px;
    color: #7a1f1f;
}

/* Error page */

.error-heading {
    color: #b3261e;
}

.error-subheading {
    font-weight: 500;
    color: var(--muted);
}

/* UX/UI Phase 1–4 Enhancements */

.button-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.hero-actions {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.35rem;
}

.trust-callout {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    color: var(--ink);
    font-size: 0.96rem;
}

.workflow-section {
    margin-top: 2.5rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.workflow-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.15rem;
}

.workflow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.workflow-step h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.workflow-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Dashboard onboarding & metrics */

.onboarding-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin-top: 1.25rem;
}

.onboarding-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.onboarding-header p {
    margin: 0;
}

.onboarding-steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.onboarding-steps li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
}

.onboarding-steps li.step-done {
    border-color: #b7e1c7;
    background: #f8fcf9;
}

.step-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: var(--badge);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-done .step-indicator {
    background: var(--status-offer);
    color: #fff;
}

.step-body {
    flex: 1;
    min-width: 200px;
}

.step-body p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.step-actions {
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.metrics-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding: 0.65rem 0.95rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--muted);
}

.metrics-strip strong {
    color: var(--ink);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-heading h2 {
    margin: 0;
}

.link-subtle {
    font-size: 0.9rem;
    font-weight: 600;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

/* Applications filter bar & inline done */

.filter-bar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.filter-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.filter-search {
    flex: 1 1 220px;
}

.filter-search input[type="search"] {
    width: 100%;
    font: inherit;
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.filter-clear {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.inline-done-form {
    display: inline;
    margin-left: 0.45rem;
}

.link-done {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--status-offer);
    padding: 0.1rem 0.4rem;
    border: 1px solid #b7e1c7;
    border-radius: 999px;
    background: #eef8f2;
}

.link-done:hover {
    background: #dcf2e4;
    text-decoration: none;
}

/* Prepare page two-way workspace */

.prepare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.prepare-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.prepare-card h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.prepare-workspace-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
}

.prepare-workspace-box h2 {
    margin-top: 0;
}

.workspace-form {
    margin-top: 0.85rem;
}

.ats-badge {
    display: inline-block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.ready-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
    margin: 0.75rem 0 1.25rem;
}

.ready-prompt-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.ready-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.ready-prompt-text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.packet-preview-details {
    margin-top: 0.85rem;
}

.packet-preview-details summary {
    cursor: pointer;
    color: var(--accent-dark);
    padding: 0.35rem 0;
}

/* Board toolbar & card actions */

.board-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

.board-toolbar select {
    font: inherit;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.board-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
}

.board-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.board-card-prepare {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

@keyframes cardMovedPulse {
    0% { background-color: #eef8f2; border-color: var(--status-offer); }
    100% { background-color: #fff; border-color: var(--line); }
}

.board-card.card-moved {
    animation: cardMovedPulse 1.4s ease-out;
}

/* Keyword chips on Search Profile */

.keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.keyword-chip {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: var(--badge);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.keyword-chip-good {
    background: #eef8f2;
    border: 1px solid #b7e1c7;
    color: #124d2c;
}

.keyword-chip-warn {
    background: #fdf1f1;
    border: 1px solid #f1b8b8;
    color: #7a1f1f;
}

/* ASP.NET Core Identity Razor Pages compatibility styling */

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.col-md-4,
.col-md-6 {
    flex: 1 1 340px;
    max-width: 520px;
}

.col-md-3 {
    flex: 0 0 220px;
}

.col-md-9,
.col-md-8 {
    flex: 1 1 480px;
}

.form-floating {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column-reverse;
}

.form-floating > .form-control,
.form-floating > .form-select,
.form-control,
.form-select {
    width: 100%;
    font: inherit;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.form-floating > label,
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--ink);
}

.checkbox,
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.4rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.55rem 1.15rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: #b3261e;
    border-color: #b3261e;
}

.btn-danger:hover {
    background: #8c1d18;
}

.w-100 {
    width: 100%;
}

.text-danger {
    color: #b3261e;
    font-size: 0.9rem;
}

.nav-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-pills .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    background: var(--panel);
    text-decoration: none;
}

.nav-pills .nav-link.active {
    background: var(--accent);
    color: #fff;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
}

.alert-success {
    background: #eef8f2;
    border-color: #b7e1c7;
    color: #124d2c;
}

.alert-danger,
.alert-warning {
    background: #fdf1f1;
    border-color: #f1b8b8;
    color: #7a1f1f;
}

/* M5 — Interview Command Center, Story Bank & Live Call Cheat Sheet */

.interview-spotlight {
    background: #fffdf5;
    border: 1px solid #f0d58c;
    border-left: 4px solid var(--status-interview);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.interview-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.story-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.story-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.story-card-matched {
    border-color: #b7e1c7;
    border-left: 4px solid var(--status-offer);
    background: #f9fdfb;
}

.story-dl {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 0.35rem 0.5rem;
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
}

.story-dl dt {
    font-weight: 700;
    color: var(--accent-dark);
}

.story-dl dd {
    margin: 0;
    white-space: pre-wrap;
}

.rounds-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.round-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.round-card-focused {
    border-color: var(--accent);
    border-left: 4px solid var(--accent);
    background: #f7fafc;
}

.cheatsheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fffdf5;
    border: 1px solid #f0d58c;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.cheatsheet-anchors {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin: 0.85rem 0 1rem;
    font-size: 0.92rem;
}

.cheatsheet-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.15rem;
    align-items: start;
}

@media (max-width: 860px) {
    .cheatsheet-grid {
        grid-template-columns: 1fr;
    }
}

.cheatsheet-stories {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.cheatsheet-story {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.cheatsheet-story summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

@media print {
    .site-header,
    .site-footer,
    .no-print,
    .flash-banner {
        display: none !important;
    }

    .site-main {
        padding: 0 !important;
    }

    .container,
    .container-wide {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .prepare-card,
    .cheatsheet-anchors,
    .cheatsheet-story {
        break-inside: avoid;
        background: #fff !important;
    }
}

/* ---------- Enterprise Accessibility (WCAG 2.1 AA) & Dark Mode ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #1d4e89;
    color: #fff;
    padding: 0.55rem 0.9rem;
    z-index: 9999;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: inherit;
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.2;
}
.theme-toggle:hover {
    background: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] {
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-dark: #0284c7;
    --line: #334155;
    --panel: #1e293b;
    --badge: #1e293b;
}
html[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
    background: #111827;
    border-color: #1e293b;
}
html[data-theme="dark"] .brand,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] label,
html[data-theme="dark"] .form-label {
    color: #f8fafc;
}
html[data-theme="dark"] .nav-links a.nav-active {
    background: #1e293b;
    color: #ffffff;
}
html[data-theme="dark"] .count-card,
html[data-theme="dark"] .prepare-card,
html[data-theme="dark"] .prepare-workspace-box,
html[data-theme="dark"] .onboarding-card,
html[data-theme="dark"] .onboarding-step,
html[data-theme="dark"] .board-toolbar,
html[data-theme="dark"] .board-column,
html[data-theme="dark"] .board-card,
html[data-theme="dark"] .board-column-banner,
html[data-theme="dark"] .cheatsheet-anchors,
html[data-theme="dark"] .round-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .ready-prompt-card,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .prompt-card,
html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .trust-callout,
html[data-theme="dark"] .packet-preview-details {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .onboarding-steps li,
html[data-theme="dark"] .onboarding-steps li.step-done,
html[data-theme="dark"] .onboarding-step,
html[data-theme="dark"] .board-card,
html[data-theme="dark"] .board-column-banner,
html[data-theme="dark"] .board-column-tip,
html[data-theme="dark"] .board-wip-note,
html[data-theme="dark"] .interview-spotlight,
html[data-theme="dark"] .cheatsheet-bar {
    background: #162033;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] .interview-spotlight,
html[data-theme="dark"] .cheatsheet-bar {
    border-left-color: #f59e0b;
}
html[data-theme="dark"] .fit-not-checked,
html[data-theme="dark"] .fit-badge-unchecked,
html[data-theme="dark"] .status-pill-withdrawn {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}
html[data-theme="dark"] .board-toolbar input,
html[data-theme="dark"] .board-toolbar select {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
}
html[data-theme="dark"] .nav-links a {
    color: #e2e8f0;
}
html[data-theme="dark"] .data-table th {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
html[data-theme="dark"] .data-table td {
    border-color: #1e293b;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}
html[data-theme="dark"] .code-block,
html[data-theme="dark"] code {
    background: #0b1220;
    color: #93c5fd;
    border-color: #334155;
}
html[data-theme="dark"] a {
    color: #7dd3fc;
}
html[data-theme="dark"] a.button,
html[data-theme="dark"] button.button,
html[data-theme="dark"] .btn-primary {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
}
html[data-theme="dark"] a.button:hover,
html[data-theme="dark"] button.button:hover,
html[data-theme="dark"] .btn-primary:hover {
    background: #075985;
    border-color: #075985;
    color: #ffffff;
}
html[data-theme="dark"] a.button-secondary,
html[data-theme="dark"] button.button-secondary,
html[data-theme="dark"] .button-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}
html[data-theme="dark"] a.button-secondary:hover,
html[data-theme="dark"] button.button-secondary:hover {
    background: #334155;
    color: #ffffff;
}
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .detail-role,
html[data-theme="dark"] .board-card-role,
html[data-theme="dark"] .file-meta {
    color: #94a3b8;
}
html[data-theme="dark"] .fit-badge-unchecked,
html[data-theme="dark"] .status-pill-withdrawn {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

/* ---------- Pipeline Analytics & Weekly Velocity ---------- */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.funnel-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
}
.funnel-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.funnel-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
html[data-theme="dark"] .funnel-track {
    background: #334155;
}
.funnel-fill {
    height: 100%;
    border-radius: 999px;
}
.funnel-bar-applied { background: #2563eb; }
.funnel-bar-responded { background: #0891b2; }
.funnel-bar-interview { background: #d97706; }
.funnel-bar-offer { background: #16a34a; }

.velocity-chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    align-items: end;
    height: 165px;
    margin-top: 0.85rem;
}
.velocity-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.velocity-count {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.velocity-bar-wrap {
    flex: 1;
    width: 100%;
    max-width: 38px;
    display: flex;
    align-items: flex-end;
    background: rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    overflow: hidden;
}
.velocity-bar {
    width: 100%;
    background: #1d4e89;
    border-radius: 6px 6px 0 0;
}
html[data-theme="dark"] .velocity-bar {
    background: #3b82f6;
}
.velocity-label {
    font-size: 0.74rem;
    margin-top: 0.35rem;
    opacity: 0.8;
    white-space: nowrap;
}
