/* Design tokens match the Qualora presentation demo (qualora-presentation-demo.html)
   so the real, running app looks like the product that was already designed,
   not a generic placeholder. */
:root {
    --navy: #0c1930;
    --ink: #152137;
    --muted: #667085;
    --line: #e6ebf1;
    --bg: #faf7f1;
    --card: #fffdfa;
    --serif: 'Lora', Georgia, serif;
    --amber: #e79b2c;
    --amber-soft: #fff6e6;
    --violet: #7657f6;
    --violet-dark: #5b3fd1;
    --violet-soft: #f0edff;
    --blue: #3388ff;
    --blue-soft: #eaf3ff;
    --red: #d64545;
    --red-soft: #fdecec;
    --green: #22b455;
    --green-dark: #15803d;
    --green-soft: #e7f8ec;
    --shadow-sm: 0 12px 32px rgba(14, 28, 52, .10);
    --shadow-md: 0 22px 60px rgba(14, 28, 52, .16);
    --r: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.45;
}

h1, h2, h3 { font-family: var(--serif); }
a { color: inherit; }

.topbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    font-size: 21px;
    letter-spacing: -.8px;
    text-decoration: none;
    color: var(--ink);
}

.mark {
    width: 26px;
    height: 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 3px;
    transform: rotate(-9deg);
}
.mark i { display: block; background: var(--violet); border-radius: 8px; }
.mark i:nth-child(1) { height: 48%; }
.mark i:nth-child(2) { height: 75%; }
.mark i:nth-child(3) { height: 100%; }

.tagline { color: var(--muted); font-size: .9rem; }

.logout-form { margin-left: auto; }
.logout-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.logout-btn:hover { border-color: var(--navy); color: var(--navy); }

.signin-link {
    margin-left: auto;
    background: var(--navy);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 700;
}
.signin-link:hover { background: #142646; }

.topbar-link {
    margin-right: 16px;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 700;
}
.topbar-link:hover { border-color: var(--navy); }

/* ---- Login pages: value-prop panel beside the card, instead of an
   empty page around it ---- */
.login-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0; }
@media (max-width: 860px) { .login-split { grid-template-columns: 1fr; padding: 32px 0; } }
.login-split .login-wrap { padding-top: 0; justify-content: flex-start; }
.login-split h2 { font-size: 1.9rem; letter-spacing: -.8px; margin: 12px 0 10px; color: var(--navy); }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { font-size: .88rem; padding: 7px 0; color: #4b5567; display: flex; gap: 8px; }
.check-list li::before { content: "✓"; color: var(--violet-dark); font-weight: 800; flex-shrink: 0; }

.login-wrap { display: flex; justify-content: center; padding-top: 80px; }
.login-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 10px 30px rgba(14, 28, 52, .08);
    padding: 32px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.login-card h1 { font-size: 1.4rem; margin: 0 0 8px; }
.login-card .subhead { font-size: .85rem; margin-bottom: 20px; }
.login-card input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .9rem;
    box-sizing: border-box;
}
.login-submit { margin-top: 14px; }
.login-error { color: #c23b3b; font-size: .8rem; margin: -8px 0 14px; }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 32px 60px; }

/* ---- Admin "view as" impersonation banner ---- */

.impersonation-banner {
    background: var(--amber);
    color: #4a2e05;
    font-size: .8rem;
    font-weight: 700;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.impersonation-banner form { margin: 0; }
.impersonation-banner button {
    background: #4a2e05;
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 800;
    cursor: pointer;
}
.impersonation-banner button:hover { background: #2e1c03; }

.subhead { color: var(--muted); margin-top: 0; }

/* ---- Jobs list ---- */

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.job-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent, var(--violet));
    border-radius: var(--r);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(14, 28, 52, .06);
    transition: box-shadow .15s, transform .15s;
}

.job-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.job-card h2 { font-size: 1.05rem; margin: 0; letter-spacing: -.3px; }

.job-org { font-size: .8rem; color: #5c6879; margin: 4px 0 12px; font-weight: 700; }
.job-meta { color: var(--muted); font-size: .82rem; margin: 4px 0; }

.status-pill {
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--violet-soft);
    color: var(--violet-dark);
    white-space: nowrap;
}
.status-pill.status-active { background: var(--green-soft); color: var(--green-dark); }
.status-pill.status-paused { background: var(--amber-soft); color: #986516; }
.status-pill.status-closed { background: #eef0f3; color: #667085; }

.view-pipeline-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 14px;
    background: var(--violet);
    color: #1c1142;
    font-weight: 800;
    font-size: .82rem;
    padding: 9px 0;
    border-radius: 999px;
}

/* ---- Pipeline board ---- */

.back-link { color: var(--violet-dark); font-weight: 700; text-decoration: none; font-size: .85rem; }

.job-header { margin: 14px 0 24px; }
.job-header p { color: var(--muted); font-size: .85rem; }

.pipeline-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.pipeline-column {
    background: #f4f7f9;
    border-radius: 14px;
    padding: 14px;
    min-height: 220px;
}

.pipeline-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    font-weight: 800;
    color: var(--ink);
    padding: 0 2px 12px;
}

.count-pill { background: white; color: var(--ink); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: .75rem; }

.pipeline-column-body { display: flex; flex-direction: column; gap: 11px; }

.pipe-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px;
    box-shadow: 0 4px 14px rgba(14, 28, 52, .05);
}

.pc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #d7f7f2, #e9e5ff);
    font-size: .68rem;
    font-weight: 900;
    color: #315b61;
}
.pipe-card.masked .avatar { background: var(--amber-soft); color: #986516; }

.pipe-card strong { font-size: .85rem; display: block; }
.pipe-card .masked-name { color: #986516; }
.pipe-card small { font-size: .74rem; color: #8893a3; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
    font-size: .68rem;
    font-weight: 750;
    padding: 4px 7px;
    background: #f1f4f7;
    color: #617084;
    border-radius: 6px;
}
.tag.good { background: var(--green-soft); color: var(--green-dark); }
.tag.warn { background: var(--amber-soft); color: #986516; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; font-size: .68rem; font-weight: 800; margin-top: 8px; }
.pill.green { background: var(--green-soft); color: var(--green-dark); }
.pill.amber { background: var(--amber-soft); color: #986516; }

.reveal-btn {
    margin-top: 10px;
    width: 100%;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}
.reveal-btn:hover { background: #142646; }
.app .reveal-btn { background: #2563eb; }
.app .reveal-btn:hover { background: #1d4ed8; }
/* Lighter than OpenRoles.cshtml's "Apply" use of this same class - repeated
   once per card in a grid of a dozen-plus, a solid fill that often reads as
   heavy; the light fill reserves full-strength blue for hover/emphasis. */
.app .view-pipeline-btn { background: var(--violet-soft); color: var(--violet-dark); }
.app .job-card:hover .view-pipeline-btn { background: var(--violet); color: #fff; }

.empty-column { color: #a5aebc; font-size: .78rem; text-align: center; padding: 20px 0; }

/* ---- Marketing homepage ---- */

.hero {
    padding: 64px 0 56px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 850;
    color: var(--violet-dark);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }

.hero h1 {
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -1.4px;
    margin: 14px 0 18px;
    color: var(--navy);
}
.hero h1 .accent { color: var(--violet-dark); }
.hero p.lede { font-size: 1.05rem; line-height: 1.65; color: var(--muted); max-width: 540px; margin: 0 0 24px; }

.hero-cta {
    background: var(--violet);
    color: #1c1142;
    font-weight: 800;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 999px;
    display: inline-block;
    text-decoration: none;
}
.hero-cta:hover { transform: translateY(-1px); }

.hero-note { margin-top: 20px; color: var(--muted); font-size: .78rem; }
.hero-note strong { color: var(--ink); }

.hero-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(14, 28, 52, .1);
    padding: 16px;
}
.hero-card-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.hero-card-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d8dee7; display: block; }
.hero-card-bar span { margin-left: auto; font-size: .68rem; color: #8a94a4; }

.hero-preview-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 8px;
}
.hero-preview-row strong { font-size: .82rem; display: block; }
.hero-preview-row small { font-size: .7rem; color: var(--muted); }

/* ---- About-us hero (homepage): single column, no side graphic ---- */
.hero.about-hero { grid-template-columns: 1fr; max-width: 760px; }
.hero.about-hero .lede { max-width: 100%; }

/* ---- Path selector (homepage): candidate vs employer ---- */

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

.path-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.path-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.path-card .path-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.path-card.candidate .path-icon { background: var(--violet-soft); }
.path-card.employer .path-icon { background: var(--blue-soft); }
.path-card h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -.4px; }
.path-card > p { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.path-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.path-card li { font-size: .82rem; padding: 6px 0; color: #4b5567; display: flex; gap: 8px; }
.path-card li::before { content: "✓"; color: var(--violet-dark); font-weight: 800; flex-shrink: 0; }

.path-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.path-card-actions a.primary {
    background: var(--navy);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    text-decoration: none;
}
.path-card-actions a.primary:hover { background: #142646; }
.path-card-actions a.secondary {
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--navy);
}
.path-card-actions a.secondary:hover { border-color: var(--navy); }

/* ---- Dark panel (homepage path selector): a contrast section against the
   cream page background, same two path cards restyled for it. Scoped so
   .path-card still works unchanged everywhere else. ---- */

.dark-panel {
    background: linear-gradient(160deg, var(--navy), #152a4d);
    border-radius: calc(var(--r) + 8px);
    padding: 44px 36px;
    margin: 8px 0;
    border-top: none;
}
.dark-panel .eyebrow { color: #8fe3d4; }
.dark-panel .eyebrow-dot { background: #24c4ae; box-shadow: 0 0 0 5px rgba(36, 196, 174, .18); }
.dark-panel h2 { color: white; }
.dark-panel .section-copy { color: #b7c3d9; }

.dark-panel .path-card {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: none;
}
.dark-panel .path-card .path-icon { background: rgba(255, 255, 255, .1); }
.dark-panel .path-card h3 { color: white; }
.dark-panel .path-card > p { color: #b7c3d9; }
.dark-panel .path-card li { color: #c9d2e3; }
.dark-panel .path-card li::before { color: #8fe3d4; }
.dark-panel .path-card-actions a.primary { background: #24c4ae; color: #04302a; }
.dark-panel .path-card-actions a.primary:hover { background: #2ddcc3; }
.dark-panel .path-card-actions a.secondary { color: white; border-color: rgba(255, 255, 255, .28); }
.dark-panel .path-card-actions a.secondary:hover { border-color: white; }

/* ---- Feature grid ---- */

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 1.7rem; letter-spacing: -.8px; margin: 8px 0 10px; color: var(--navy); }
.section-copy { color: var(--muted); max-width: 640px; font-size: .95rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--violet-soft);
    color: var(--violet-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 14px;
}
.feature h3 { font-size: .95rem; margin: 0 0 6px; }
.feature p { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---- Persona tabs ---- */

.persona-tabs { display: flex; gap: 8px; margin: 24px 0 20px; flex-wrap: wrap; }
.persona-tab {
    padding: 9px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}
.persona-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

.persona-panel { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.persona-panel.active { display: block; }
.persona-panel h3 { margin-top: 0; font-size: 1.1rem; }
.persona-panel ul { list-style: none; padding: 0; margin: 14px 0 0; }
.persona-panel li { font-size: .85rem; padding: 7px 0; color: #4b5567; display: flex; gap: 8px; }
.persona-panel li::before { content: "✓"; color: var(--violet-dark); font-weight: 800; }

/* ---- Pricing ---- */

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--violet); box-shadow: 0 10px 28px rgba(118, 87, 246, .16); }
.price-card h4 { font-size: .95rem; margin: 0 0 6px; }
.price-num { font-size: 1.8rem; font-weight: 800; margin: 8px 0 2px; color: var(--navy); }
.price-num small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.price-fill { font-size: .78rem; color: var(--violet-dark); font-weight: 700; margin-bottom: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { font-size: .8rem; color: #4b5567; padding: 7px 0; border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-card-cta {
    display: block;
    text-align: center;
    margin-top: 16px;
    background: var(--violet);
    color: #1c1142;
    font-weight: 800;
    font-size: .82rem;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
}
.price-card-cta:hover { transform: translateY(-1px); }

/* ---- Footer ---- */

.site-footer { padding: 28px 0; text-align: center; font-size: .75rem; color: var(--muted); }

/* ---- Dashboard app shell (sidebar, matches the presentation demo's recruiter app) ---- */

/* ---- Dashboard theme (admin/employer/recruiter/candidate app shell):
   Midnight Blue + Electric Blue, keeping the site's existing Lora/Inter
   typography. Scoped to .app (only ever the dashboard-shell wrapper, never
   the public marketing site) by redefining the violet tokens here - every
   component that already reads var(--violet)/--violet-dark/--violet-soft
   (job-card accents, status pills, stage markers, badges, etc.) picks up
   the new blue automatically, with no need to touch each one individually. */
.app {
    min-height: 100vh;
    background: #f8fafc;
    --violet: #2563eb;
    --violet-dark: #1d4ed8;
    --violet-soft: #dbeafe;
}
.appbar {
    height: 66px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 400;
}
.appbar-left { display: flex; align-items: center; gap: 12px; }

.app-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 66px); }

.sidebar { background: var(--navy); padding: 22px 14px 80px; color: #c8d2e1; position: sticky; top: 66px; height: calc(100vh - 66px); box-sizing: border-box; overflow-y: auto; }
.side-title { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #72819a; font-weight: 800; padding: 10px 10px 7px; }
.side-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b7c3d5;
    border-radius: 9px;
    padding: 10px 11px;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    display: block;
    text-decoration: none;
    margin: 2px 0;
}
.side-btn:hover, .side-btn.active { background: #172554; color: #60a5fa; }

.side-logout {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
}
.side-logout form { margin: 0; }
.side-logout button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: #8290a7;
    border-radius: 9px;
    padding: 9px 11px;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
}
.side-logout button:hover { color: white; border-color: rgba(255, 255, 255, .3); }

.main { padding: 28px; max-width: 1280px; width: 100%; margin: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.page-head h1 { font-size: 1.7rem; letter-spacing: -.6px; margin: 0 0 4px; }
.page-head p { margin: 0; font-size: .78rem; color: var(--muted); }
.job-description-block { max-width: 720px; margin: -6px 0 18px; }
.job-description { font-size: .84rem; color: #4c596b; line-height: 1.5; margin: 0 0 14px; }
.job-section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #7d8797; font-weight: 800; margin: 0 0 6px; }
.job-bullets { margin: 0 0 14px; padding-left: 18px; }
.job-bullets li { font-size: .84rem; color: #4c596b; line-height: 1.6; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.kpi small { font-size: .68rem; color: #7d8797; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.kpi strong { display: block; font-size: 1.6rem; margin-top: 6px; font-family: var(--serif); }
.kpi span { font-size: .68rem; color: var(--violet-dark); font-weight: 800; }

.panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 17px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.panel-head h3 { font-size: .95rem; margin: 0 0 3px; }
.panel-head p { font-size: .74rem; color: #8490a1; margin: 0; }

.small-btn { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 7px 11px; font-size: .74rem; font-weight: 800; color: #4c596b; cursor: pointer; }
.small-btn.primary { background: var(--navy); color: white; border-color: var(--navy); }
.app .small-btn.primary { background: #2563eb; border-color: #2563eb; }
.app .small-btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: .68rem; text-align: left; color: #8a94a4; text-transform: uppercase; letter-spacing: .06em; padding: 10px; border-bottom: 1px solid var(--line); }
.data-table td { font-size: .8rem; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.data-table tr:hover td { background: #fbfcfd; cursor: pointer; }
.person { display: flex; align-items: center; gap: 8px; }
.person strong { font-size: .8rem; display: block; }
.person small { font-size: .7rem; color: #8590a1; }

/* ---- Candidate profile drawer ---- */

.drawer-bg { position: fixed; inset: 0; background: rgba(8, 17, 33, .46); z-index: 2000; display: none; justify-content: flex-end; }
.drawer-bg.open { display: flex; }
.drawer { width: min(480px, 100%); height: 100%; background: white; box-shadow: -24px 0 70px rgba(0, 0, 0, .16); overflow-y: auto; }
.drawer-head { padding: 19px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head small { font-size: .68rem; color: var(--violet-dark); text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.drawer-head h2 { font-size: 1.3rem; margin: 2px 0; }
.drawer-close { border: 0; background: #f1f4f7; width: 32px; height: 32px; border-radius: 9px; font-size: 1.1rem; cursor: pointer; }
.drawer-body { padding: 20px; }

.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head .avatar { width: 52px; height: 52px; font-size: .8rem; }
.profile-head h3 { font-size: 1rem; margin: 0; }
.profile-head p { font-size: .74rem; color: #798597; margin: 3px 0; }

.detail-block { border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin: 11px 0; }
.detail-block h4 { font-size: .74rem; margin: 0 0 8px; }
.detail-row { display: flex; justify-content: space-between; gap: 14px; font-size: .78rem; padding: 7px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: #748094; }

.grade-stars { display: flex; gap: 4px; margin-top: 8px; }
.grade-stars form { display: inline; margin: 0; }
.grade-stars button { border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: #dfe5eb; padding: 0; line-height: 1; }
.grade-stars button.on { color: var(--amber); }
.grade-note { font-size: .7rem; color: var(--muted); margin-top: 6px; }

/* ---- Read-only rating display (candidate tables) ---- */

.rating-display { display: inline-flex; gap: 1px; white-space: nowrap; }
.rating-display .star { font-size: .85rem; color: #dfe5eb; }
.rating-display .star.on { color: var(--amber); }
.rating-display.unrated { color: var(--muted); font-size: .7rem; }

/* ---- Credentials ---- */

.credential-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.credential-row:last-child { border-bottom: none; }
.credential-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--amber-soft); color: #986516; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }

/* ---- Pipeline stage controls ---- */

.pill.red { background: var(--red-soft); color: var(--red); }

.card-actions { display: flex; gap: 6px; margin-top: 10px; }
.card-btn {
    flex: 1;
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
    padding: 6px 0;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.card-btn.advance { background: var(--violet-soft); color: var(--violet-dark); border-color: transparent; }
.card-btn.advance:hover { background: var(--violet); color: #fff; }
.card-btn.deny { color: var(--red); }
.card-btn.deny:hover { background: var(--red-soft); border-color: var(--red-soft); }

.rejected-column { background: #f7f0f0; }
.pipe-card.rejected { opacity: .82; }
.pipe-card.rejected .card-btn { width: 100%; }

.small-btn.deny-btn { color: var(--red); }
.small-btn.deny-btn:hover { background: var(--red-soft); border-color: var(--red-soft); }

.stage-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.stage-step {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}
.stage-step:hover { background: #f4f6f8; }
.stage-step .stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.stage-step.done { color: var(--ink); }
.stage-step.done .stage-dot { background: var(--violet); }
.stage-step.current { color: var(--violet-dark); background: var(--violet-soft); }
.stage-step.current .stage-dot { background: var(--violet-dark); box-shadow: 0 0 0 3px var(--violet-soft); }

.drawer-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---- Drag and drop ---- */

.drag-hint { color: var(--muted); font-size: .78rem; margin: -14px 0 14px; }

.pipe-card[draggable="true"] { cursor: grab; }
.pipe-card[draggable="true"]:active { cursor: grabbing; }

.pipeline-column-body { transition: background-color .12s; border-radius: 8px; }
.pipeline-column-body.drag-over { background-color: var(--violet-soft); outline: 2px dashed var(--violet); outline-offset: -2px; }
.rejected-column .pipeline-column-body.drag-over { background-color: var(--red-soft); outline-color: var(--red); }

/* ---- Employer requisitions ---- */

.job-status-actions { display: flex; gap: 6px; margin-top: 8px; }
.status-btn {
    flex: 1;
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
    padding: 6px 0;
    font-size: .7rem;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
}
.status-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.status-btn.current { background: var(--navy); color: white; border-color: var(--navy); cursor: default; }
.app .status-btn.current { background: #2563eb; border-color: #2563eb; }
.status-btn:disabled { cursor: default; }

/* ---- Interview widget (employer sidebar) ---- */

.interview-widget { margin-top: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 10px; }
.interview-tabs { display: flex; gap: 4px; padding: 0 6px 8px; }
.interview-tab {
    flex: 1;
    border: 0;
    background: rgba(255, 255, 255, .06);
    color: #b7c3d5;
    border-radius: 7px;
    padding: 6px 4px;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}
.interview-tab em { font-style: normal; opacity: .8; margin-left: 3px; }
.interview-tab.active { background: var(--violet); color: #fff; }
.interview-list { padding: 0 6px; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.interview-item {
    display: block;
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
}
.interview-item:hover { background: rgba(255, 255, 255, .1); }
.interview-item strong { display: block; font-size: .74rem; color: white; }
.interview-item small { font-size: .66rem; color: #8290a7; }
.interview-empty { font-size: .7rem; color: #72819a; padding: 4px 8px; margin: 0; }

/* ---- Interview scheduling (drawer) ---- */

.interview-form { display: flex; gap: 8px; align-items: center; }
.interview-form input[type="datetime-local"] {
    flex: 1;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .78rem;
}

/* ---- Employer dashboard: stat tiles with date-range filters ---- */

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-tile {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.stat-tile-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #7d8797; font-weight: 800; }

.range-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.range-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .68rem;
    font-weight: 700;
    color: #4c596b;
    text-decoration: none;
    white-space: nowrap;
}
.range-pill:hover { border-color: var(--navy); color: var(--navy); }
.range-pill.active { background: var(--navy); color: white; border-color: var(--navy); }

.custom-range-form { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.custom-range-form input[type="date"] {
    padding: 6px 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .72rem;
    flex: 1;
    min-width: 0;
}
.custom-range-form span { color: var(--muted); font-size: .72rem; }

.pipeline-filter-bar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 9px 0 16px; }
.pipeline-filter-bar select {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 26px 4px 12px;
    font-size: .68rem;
    font-weight: 700;
    color: #4c596b;
    background: white;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234c596b' stroke-width='1.5' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.pipeline-filter-bar select:hover { border-color: var(--navy); color: var(--navy); }

.stat-number { display: block; font-size: 2rem; margin-top: 12px; font-family: var(--serif); line-height: 1; }
.stat-caption { font-size: .7rem; color: var(--violet-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.stat-details { margin-top: 10px; }
.stat-details summary {
    font-size: .74rem;
    font-weight: 700;
    color: var(--violet-dark);
    cursor: pointer;
    list-style: none;
}
.stat-details summary::-webkit-details-marker { display: none; }
.stat-details summary::before { content: "▸ "; }
.stat-details[open] summary::before { content: "▾ "; }

.stat-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 220px; overflow-y: auto; }
.stat-list-row {
    display: flex;
    flex-direction: column;
    padding: 7px 9px;
    border-radius: 9px;
    text-decoration: none;
    color: inherit;
}
.stat-list-row:hover { background: #f6f8fb; }
.stat-list-row strong { font-size: .78rem; color: var(--navy); }
.stat-list-row small { font-size: .68rem; color: var(--muted); }

/* ---- Employer dashboard: pipeline-wide stage chart ---- */

.stage-chart { display: flex; flex-direction: column; gap: 4px; }
.stage-row { border-radius: 10px; }
.stage-row summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
}
.stage-row summary::-webkit-details-marker { display: none; }
.stage-row summary:hover { background: #f6f8fb; }
.stage-row-label { flex: 0 0 190px; font-size: .82rem; font-weight: 700; color: var(--navy); }
.stage-row-bar { flex: 1; height: 10px; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.stage-row-fill { display: block; height: 100%; background: var(--violet); border-radius: 999px; transition: width .2s; }
.stage-row-fill.denied { background: var(--red); }
.stage-row-count { flex: 0 0 26px; text-align: right; font-size: .85rem; font-weight: 800; color: var(--navy); }
.stage-row .stat-list { padding-left: 8px; margin-bottom: 6px; }
@media (max-width: 700px) { .stage-row-label { flex-basis: 120px; font-size: .74rem; } }

/* ---- Job workspace: sub-nav tabs (Pipeline / Candidates / Insights) ---- */

.job-subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 18px; }
.job-subnav-tab {
    padding: 9px 4px;
    margin-right: 22px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.job-subnav-tab:hover { color: var(--navy); }
.job-subnav-tab.active { color: var(--navy); border-bottom-color: var(--violet); }

/* ---- Job candidates list: bulk selection bar ---- */

.bulk-bar {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: white;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: .78rem;
    font-weight: 700;
}
.bulk-bar.show { display: flex; }
.bulk-bar select {
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    color: white;
    border-radius: 7px;
    padding: 6px 8px;
    font-size: .76rem;
}
.bulk-bar select option { color: var(--navy); }
.data-table input[type="checkbox"], .bulk-bar input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }

/* ---- Sidebar: not-yet-built nav items ----
   Visible on purpose (a full layout preview), but never look clickable -
   no href, muted color, a "Soon" badge - so nothing pretends to work. */

.side-btn.soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5c6b84;
    cursor: default;
    user-select: none;
}
.side-btn.soon::after {
    content: "Soon";
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(255, 255, 255, .08);
    color: #8290a7;
    border-radius: 999px;
    padding: 2px 7px;
}
.side-btn.soon:hover { background: transparent; color: #5c6b84; }

/* ---- New Requisition form ---- */

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #7d8797; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .85rem;
    font-family: inherit;
}
.form-field textarea { resize: vertical; }
.form-error { color: var(--red); font-size: .8rem; margin-bottom: 10px; font-weight: 700; }

.newreq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .newreq-grid { grid-template-columns: 1fr; } }

/* ---- Apply page: full job posting beside a sticky apply card, the way
   a real job board (Indeed etc.) shows a listing next to its apply box
   instead of a bare form with no context. ---- */

.apply-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .apply-layout { grid-template-columns: 1fr; } }

.apply-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.apply-main .job-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.apply-main .job-meta-row span.tag { background: #f1f4f7; color: #4c596b; }
.apply-main .job-meta-row span.tag.pay { background: var(--green-soft); color: var(--green-dark); }

.apply-card { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); padding: 24px; }
.apply-card h2 { font-size: 1.1rem; margin: 0 0 4px; }
.apply-card .subhead { margin: 0 0 16px; }

/* ---- Candidate drawer: message template preview ---- */

.template-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .8rem;
    margin-bottom: 8px;
}
.template-preview {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .78rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 8px;
    background: #fafbfc;
    color: #333;
}
.hired-banner {
    display: none;
    background: var(--green-soft);
    color: var(--green-dark);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.hired-banner.show { display: block; }
.onboarding-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--amber-soft);
    color: #986516;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.onboarding-nudge a { color: inherit; text-decoration: underline; }

/* ---- Integrations page ---- */

.integration-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.integration-head h3 { margin: 0; }
.integration-badge {
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 4px 10px;
}
.integration-badge.connected { background: var(--violet-soft); color: var(--violet-dark); }
.integration-badge.not-connected { background: #eef0f3; color: #667085; }
.integration-saved-note { color: var(--green-dark); font-weight: 700; font-size: .82rem; margin: -8px 0 16px; }

/* ---- Candidate table: search/filter bar, star column ---- */

.table-filter-bar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.table-filter-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .82rem;
}
.table-filter-bar select {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .82rem;
}
.star-toggle { background: none; border: none; cursor: pointer; font-size: 1rem; color: #d0d5dd; padding: 2px; }
.star-toggle.starred { color: var(--amber); }
.source-tag { font-size: .68rem; color: var(--muted); background: #f2f4f7; border-radius: 999px; padding: 2px 8px; }

/* ---- Onboarding: step rail + background-check checklist ---- */

.onboarding-layout { display: flex; gap: 24px; align-items: flex-start; }
.onboarding-steps { width: 200px; flex-shrink: 0; }
.onboarding-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    border: 1px solid transparent;
}
.onboarding-step.active { background: var(--violet-soft); color: var(--violet-dark); border-color: var(--violet-dark); }
.onboarding-step.soon { color: #98a2b3; font-weight: 600; }
.onboarding-step.soon::after {
    content: "Soon";
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #eef0f3;
    color: #72819a;
    padding: 2px 6px;
    border-radius: 999px;
}
.onboarding-main { flex: 1; min-width: 0; }

.check-summary { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.check-summary-bar { flex: 1; max-width: 260px; height: 8px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.check-summary-fill { display: block; height: 100%; background: var(--green-dark); border-radius: 999px; transition: width .3s ease; }
.check-summary span { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.check-summary strong { color: var(--navy); font-size: .9rem; }

.check-row {
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: white;
    transition: border-color .15s ease;
}
.check-row.automated { border-left-color: var(--violet-dark); }
.check-row:hover { border-color: #c7cedb; }
.check-row.automated:hover { border-left-color: var(--violet-dark); }

.check-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.check-row-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.check-row-id strong { display: block; font-size: .88rem; }
.check-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }

.check-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .66rem;
    font-weight: 800;
    flex-shrink: 0;
    background: #eef0f3;
    color: #667085;
}
.check-icon.automated { background: var(--violet-soft); color: var(--violet-dark); }

.check-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f3f6;
}
.check-link-btn {
    font-size: .74rem;
    font-weight: 700;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
    white-space: nowrap;
}
.check-link-btn:hover { border-color: var(--navy); }
.check-url-form { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 220px; max-width: 360px; }
.check-url-form input { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .76rem; }

.check-status-actions { display: flex; gap: 6px; flex-shrink: 0; }
.check-status-actions .status-btn { flex: none; padding: 6px 12px; }
.check-status-actions .status-btn.current.passed { background: var(--green-dark); border-color: var(--green-dark); }
.check-status-actions .status-btn.current.flagged { background: var(--red); border-color: var(--red); }

.integration-badge.automated { background: var(--violet-soft); color: var(--violet-dark); }
.integration-badge.manual { background: #eef0f3; color: #667085; }

/* ---- Recruiter requisition assignment ---- */

.job-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    margin: 6px 0 12px;
}
.job-checklist-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.job-checklist-item input { margin: 0; }
.job-checklist-edit { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
