html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.job-description {
    line-height: 1.8;
    font-size: 1rem;
    color: #1f2937;
    overflow-wrap: anywhere;
}

.job-description__heading {
    margin: 1.5rem 0 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #dbe7f3;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b5ed7;
}

.job-description__heading:first-child {
    margin-top: 0;
}

.job-description__paragraph {
    margin-bottom: 1rem;
}

.job-description__stack {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.job-description__line {
    margin: 0;
    color: #344054;
}

.job-description__list {
    padding-left: 1.35rem;
    margin-bottom: 1rem;
}

.job-description__list li {
    margin-bottom: 0.35rem;
}

.job-description a {
    word-break: break-word;
    font-weight: 600;
}

.job-description__empty {
    margin-bottom: 0;
}

.cv-builder-hero,
.cv-panel,
.cv-preview-surface,
.cv-preview-placeholder,
.cv-feedback-card {
    border: 1px solid #d9dfe8;
    border-radius: 24px;
}

.cv-builder-page {
    display: grid;
    gap: 1.5rem;
}

.cv-builder-hero {
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(183, 110, 76, 0.14), transparent 32%),
        linear-gradient(135deg, #f8f1eb 0%, #eff4fb 100%);
}

.cv-builder-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(22, 32, 49, 0.08);
    color: #162031;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-builder-hero h1,
.cv-panel-head h2,
.cv-preview-placeholder h3,
.cv-feedback-card h3 {
    color: #162031;
}

.cv-builder-hero h1 {
    max-width: 12ch;
    margin: 1rem 0 0.75rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 0.95;
}

.cv-builder-hero p,
.cv-panel-head p,
.cv-preview-placeholder p,
.cv-feedback-card li,
.cv-upload-status span {
    color: #5d6b80;
}

.cv-builder-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cv-builder-hero-points span,
.cv-preview-chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(22, 32, 49, 0.06);
    color: #162031;
    font-size: 0.92rem;
}

.cv-workspace {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.cv-panel {
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(22, 32, 49, 0.06);
    min-width: 0;
}

.cv-panel--preview {
    min-height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.cv-preview-mode-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.9rem;
}

.cv-panel-head {
    margin-bottom: 1.25rem;
}

.cv-panel-head--split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.cv-panel-head--preview {
    display: grid;
    gap: 0.9rem;
}

.cv-preview-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.cv-preview-actions > * {
    flex: 0 0 auto;
}

.cv-preview-actions__icon {
    min-width: 2.75rem;
    padding-inline: 0;
    justify-content: center;
}

.cv-textarea {
    min-height: 16rem;
}

.cv-notes-textarea {
    min-height: 7rem;
}

.cv-upload-status {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f7f9fc;
}

.cv-preview-placeholder,
.cv-preview-surface {
    padding: 1.5rem;
    background: #fff;
}

.cv-preview-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d9dfe8;
}

.cv-preview-header h2 {
    margin-bottom: 0.35rem;
    font-size: 1.85rem;
}

.cv-preview-headline {
    margin-bottom: 0.4rem;
    color: #b76e4c;
    font-weight: 700;
}

.cv-preview-contact,
.cv-preview-meta,
.cv-preview-role-head span,
.cv-preview-role-head div {
    color: #5d6b80;
}

.cv-preview-section + .cv-preview-section {
    margin-top: 1.4rem;
}

.cv-preview-section h3 {
    margin-bottom: 0.7rem;
    color: #b76e4c;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cv-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cv-preview-role + .cv-preview-role {
    margin-top: 1rem;
}

.cv-preview-role-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cv-preview-role ul,
.cv-feedback-card ul,
.cv-preview-section ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.cv-feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.cv-feedback-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.cv-search-presets {
    margin-top: 1.5rem;
}

.cv-search-presets--banner {
    margin-top: 0;
    position: relative;
    padding: 1rem 1rem 0.9rem;
    border: 1px solid rgba(23, 33, 47, 0.1);
    border-radius: 1.1rem;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 14px 34px rgba(18, 33, 53, 0.06);
}

.cv-search-presets__head {
    margin-bottom: 0.8rem;
    padding-right: 2.5rem;
}

.cv-search-presets__head h3 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
    color: #162031;
}

.cv-search-presets__head p {
    margin-bottom: 0;
    color: #5d6b80;
    font-size: 0.92rem;
}

.cv-search-presets__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(23, 33, 47, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #5d6b80;
    font-size: 1.1rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv-search-presets__close:hover {
    background: #ffffff;
    color: #162031;
    border-color: rgba(23, 33, 47, 0.22);
}

.cv-search-presets__grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}

.cv-search-preset-card {
    display: grid;
    flex: 0 0 280px;
    gap: 0.7rem;
    padding: 0.9rem;
    border: 1px solid #d9dfe8;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    align-content: start;
}

.cv-search-preset-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
}

.cv-search-preset-card__head h4 {
    margin-bottom: 0;
    font-size: 0.98rem;
    color: #162031;
}

.cv-search-preset-card__rationale {
    margin-bottom: 0;
    color: #5d6b80;
    font-size: 0.88rem;
    line-height: 1.45;
}

.cv-search-preset-card__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0;
}

.cv-search-preset-card__meta > div {
    display: grid;
    gap: 0.1rem;
}

.cv-search-preset-card__meta dt {
    margin-bottom: 0;
    color: #b76e4c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-search-preset-card__meta dd {
    margin-bottom: 0;
    color: #162031;
    font-size: 0.88rem;
    line-height: 1.35;
}

.cv-search-preset-card__action {
    justify-self: start;
    padding: 0.45rem 0.8rem;
}

.cv-feedback-card {
    padding: 1rem 1.1rem;
    background: #f8fafc;
}

@media (min-width: 1200px) {
    .cv-workspace--source-open {
        grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
    }

    .cv-workspace--source-open.cv-workspace--has-feedback {
        grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr) minmax(260px, 320px);
    }

    .cv-workspace--preview-ready:not(.cv-workspace--source-open) {
        grid-template-columns: minmax(0, 1fr);
    }

    .cv-workspace--preview-ready.cv-workspace--has-feedback:not(.cv-workspace--source-open) {
        grid-template-columns: minmax(0, 1.55fr) minmax(260px, 320px);
    }

    .cv-feedback-sidebar {
        position: sticky;
        top: 6.75rem;
    }
}

@media (max-width: 991.98px) {
    .cv-panel-head--split,
    .cv-preview-role-head,
    .cv-search-preset-card__head {
        flex-direction: column;
    }

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

@media (max-width: 1199.98px) {
    .cv-workspace {
        grid-template-columns: 1fr;
    }

    .cv-feedback-sidebar {
        position: static;
    }
}

:root {
    --app-bg: #f5efe5;
    --app-bg-soft: rgba(255, 252, 247, 0.78);
    --app-surface: #fffdf8;
    --app-surface-strong: #ffffff;
    --app-text: #17212f;
    --app-muted: #5e6b7d;
    --app-border: rgba(23, 33, 47, 0.12);
    --app-primary: #406b52;
    --app-primary-deep: #335542;
    --app-accent: #5a92a0;
    --app-warning: #c4934c;
    --app-danger: #b36247;
    --app-shadow: 0 24px 60px rgba(23, 33, 47, 0.08);
}

html,
body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(90, 146, 160, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(196, 147, 76, 0.12), transparent 24%),
        linear-gradient(180deg, #f7f1e7 0%, #f4efe8 55%, #efe8dd 100%);
    color: var(--app-text);
    font-family: "Inter", "Segoe UI", sans-serif;
}

body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 33, 47, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 33, 47, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

body,
.form-control,
.form-select,
.btn,
.form-check-label,
.badge,
.list-group-item {
    font-family: "Inter", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-5,
.display-6,
.page-heading__value,
.cv-builder-hero h1,
.app-footer__name {
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: -0.03em;
}

a,
.btn-link {
    color: var(--app-primary);
}

a:hover,
.btn-link:hover {
    color: var(--app-primary-deep);
}

.container,
.page-shell {
    width: min(100%, 80rem);
    margin: 0 auto;
}

.page-shell {
    display: grid;
    gap: 1.5rem;
}

.page-heading {
    display: grid;
    gap: 0.55rem;
}

.page-heading--inline {
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: space-between;
    align-items: start;
    gap: 1rem 1.5rem;
}

.page-heading__eyebrow,
.hero-panel__eyebrow,
.search-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(23, 33, 47, 0.08);
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-heading h1,
.page-heading h2,
.results-shell h2,
.empty-state h2 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
}

.page-heading p,
.hero-panel p,
.search-panel p,
.results-shell p,
.empty-state p,
.page-summary-card__label,
.stat-card__label {
    margin: 0;
    color: var(--app-muted);
}

.page-summary-card,
.stat-card,
.empty-state,
.search-panel,
.results-shell,
.hero-panel,
.detail-card,
.permission-card {
    border: 1px solid var(--app-border);
    border-radius: 1.75rem;
    background: var(--app-bg-soft);
    backdrop-filter: blur(16px);
    box-shadow: var(--app-shadow);
}

.page-summary-card {
    min-width: 12rem;
    padding: 1.1rem 1.25rem;
}

.page-summary-card__label {
    font-size: 0.85rem;
}

.page-summary-card__value {
    margin-top: 0.2rem;
    color: var(--app-text);
    font-size: 1.25rem;
    font-weight: 700;
}

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

.stat-card {
    display: grid;
    gap: 0.2rem;
    padding: 1.15rem 1.25rem;
}

.stat-card strong {
    font-size: 2rem;
    color: var(--app-text);
    line-height: 1;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.95fr);
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 2.3rem);
    background:
        radial-gradient(circle at top right, rgba(196, 147, 76, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(255, 250, 243, 0.92) 0%, rgba(243, 247, 248, 0.88) 100%);
}

.hero-panel h1 {
    margin: 0.85rem 0 0.75rem;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 0.9;
    max-width: 12ch;
}

.hero-panel__copy {
    display: grid;
    gap: 0.35rem;
}

.hero-panel__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.hero-panel__pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(23, 33, 47, 0.06);
    color: var(--app-text);
}

.hero-panel__aside {
    display: flex;
    align-items: stretch;
}

.hero-panel__stat {
    width: 100%;
    display: grid;
    gap: 0.75rem;
    padding: 1.3rem;
    border: 1px solid rgba(23, 33, 47, 0.1);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.72);
}

.hero-panel__stat strong {
    color: var(--app-text);
    font-size: 1.25rem;
}

.hero-panel__stat-label {
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-panel {
    display: grid;
    gap: 1.5rem;
    padding: 1.4rem 1.5rem 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(251, 248, 242, 0.76) 100%);
}

.search-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.search-panel__head h2 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

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

.search-field {
    display: grid;
    gap: 0.45rem;
}

.search-field--wide {
    grid-column: span 2;
}

.search-panel__footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(23, 33, 47, 0.08);
}

.search-panel__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem 1.5rem;
}

.search-field--hours {
    min-width: min(100%, 22rem);
}

.search-switch {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.15rem 0;
}

.search-submit {
    min-width: 11rem;
}

.results-shell {
    display: grid;
    gap: 1.15rem;
    padding: 1.35rem 1.4rem 1.5rem;
}

.results-shell__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.results-shell__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.results-shell__controls .form-select {
    width: auto;
    min-width: 12rem;
}

.results-shell__meta {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.results-shell__load-more {
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
}

.archived-shell {
    margin-top: 1.25rem;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    padding: 2.4rem 1.5rem;
    text-align: center;
}

.empty-state--inline {
    justify-items: start;
    text-align: left;
}

.loading-state {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    padding: 2rem 1rem;
}

.loading-state__spinner {
    width: 2.8rem;
    height: 2.8rem;
    border: 3px solid rgba(64, 107, 82, 0.18);
    border-top-color: var(--app-primary);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.loading-state__message {
    margin: 0;
    color: var(--app-muted);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.token-usage {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.token-usage__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.token-usage__pill--input {
    background: rgba(90, 146, 160, 0.12);
    color: #316875;
}

.token-usage__pill--output {
    background: rgba(196, 147, 76, 0.16);
    color: #8d6224;
}

.token-usage__pill--calls,
.token-usage__pill--muted {
    background: rgba(23, 33, 47, 0.08);
    color: var(--app-text);
}

.token-usage__pill--cost {
    background: rgba(64, 107, 82, 0.14);
    color: var(--app-primary);
}

.analysis-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    min-height: 5rem;
    padding: 0.7rem;
    border-radius: 1.25rem;
    border: 1px solid transparent;
}

.analysis-badge__score {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.analysis-badge__label {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analysis-badge--positive {
    background: rgba(64, 107, 82, 0.14);
    color: var(--app-primary);
}

.analysis-badge--warning {
    background: rgba(196, 147, 76, 0.16);
    color: #8d6224;
}

.analysis-badge--negative {
    background: rgba(179, 98, 71, 0.14);
    color: var(--app-danger);
}

.analysis-badge--muted {
    background: rgba(23, 33, 47, 0.08);
    color: var(--app-muted);
}

.job-card {
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 1.6rem;
    background: rgba(255, 253, 248, 0.84);
    box-shadow: 0 16px 40px rgba(23, 33, 47, 0.06);
    overflow: hidden;
}

.job-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: rgba(23, 33, 47, 0.08);
}

.job-card--positive::before {
    background: var(--app-primary);
}

.job-card--warning::before {
    background: var(--app-warning);
}

.job-card--negative::before {
    background: var(--app-danger);
}

.job-card--archived {
    opacity: 0.72;
}

.job-card__inner {
    display: grid;
    gap: 1rem;
    padding: 1.35rem 1.4rem 1.45rem 1.55rem;
}

.job-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: start;
}

.job-card__content {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

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

.job-card__title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    color: var(--app-text);
    text-decoration: none;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.1;
}

.job-card__title:hover {
    color: var(--app-primary);
}

.job-card__index {
    color: var(--app-muted);
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    color: var(--app-muted);
    font-size: 0.93rem;
}

.job-card__meta span {
    position: relative;
}

.job-card__meta span + span::before {
    content: "";
    display: inline-block;
    width: 0.28rem;
    height: 0.28rem;
    margin: 0 0.45rem 0.08rem 0;
    border-radius: 999px;
    background: rgba(23, 33, 47, 0.2);
}

.job-card__score {
    display: flex;
    justify-content: end;
    flex-shrink: 0;
}

.job-card__status,
.job-card__locked {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.job-card__locked,
.job-card__status--neutral {
    background: rgba(23, 33, 47, 0.08);
    color: var(--app-text);
}

.job-card__status--warning {
    background: rgba(196, 147, 76, 0.16);
    color: #8d6224;
}

.job-card__status--info {
    background: rgba(90, 146, 160, 0.12);
    color: #316875;
}

.job-card__status--positive {
    background: rgba(64, 107, 82, 0.14);
    color: var(--app-primary);
}

.job-card__description,
.job-card__summary p,
.job-card__panel p {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.65;
}

.job-card__progress {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.job-card__summary {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: rgba(90, 146, 160, 0.08);
}

.job-card__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.job-card__panel {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--app-border);
    border-radius: 1.2rem;
}

.job-card__panel--positive {
    background: rgba(64, 107, 82, 0.08);
}

.job-card__panel--warning {
    background: rgba(196, 147, 76, 0.1);
}

.job-card__panel--neutral,
.job-card__panel--call {
    background: rgba(23, 33, 47, 0.04);
}

.job-card__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.job-card__panel strong {
    color: var(--app-text);
}

.job-card__contact {
    display: grid;
    gap: 0.45rem;
}

.job-card__contact a {
    width: fit-content;
    text-decoration: none;
}

.job-card__contact a:hover {
    text-decoration: underline;
}

.job-card__contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.job-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(23, 33, 47, 0.08);
}

.job-card__status-line {
    min-height: 2rem;
    display: flex;
    align-items: center;
}

.job-card__status-copy {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.job-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.55rem;
}

.job-card__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 0;
    border-radius: 999px;
    background: rgba(23, 33, 47, 0.06);
    color: var(--app-text);
    font-size: 0.85rem;
    font-weight: 700;
}

.job-card__icon-button:hover {
    background: rgba(64, 107, 82, 0.12);
    color: var(--app-primary);
}

.job-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.job-pill--positive {
    background: rgba(64, 107, 82, 0.14);
    color: var(--app-primary);
}

.job-pill--warning {
    background: rgba(196, 147, 76, 0.16);
    color: #8d6224;
}

.job-pill--negative {
    background: rgba(179, 98, 71, 0.14);
    color: var(--app-danger);
}

.job-pill--neutral {
    background: rgba(23, 33, 47, 0.08);
    color: var(--app-text);
}

.detail-card {
    border: 1px solid var(--app-border);
    border-radius: 1.75rem;
    background: rgba(255, 253, 248, 0.84);
    box-shadow: var(--app-shadow);
}

.detail-card .card-body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card,
.cv-panel,
.cv-preview-surface,
.cv-preview-placeholder,
.cv-feedback-card,
.search-panel,
.results-shell {
    border-color: var(--app-border);
}

.card,
.list-group-item,
.cv-panel,
.cv-preview-surface,
.cv-preview-placeholder,
.cv-feedback-card {
    background: rgba(255, 253, 248, 0.84);
}

.card,
.list-group-item,
.cv-panel,
.cv-preview-surface,
.cv-preview-placeholder,
.cv-feedback-card,
.modal-content {
    box-shadow: var(--app-shadow);
}

.card,
.list-group-item,
.modal-content {
    border-radius: 1.5rem;
}

.card-body,
.card-header,
.list-group-item {
    border-color: rgba(23, 33, 47, 0.08);
}

.btn {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-sm {
    padding: 0.48rem 0.78rem;
    font-size: 0.84rem;
}

.btn-lg {
    padding: 0.9rem 1.25rem;
}

.btn-primary,
.btn-dark {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-deep) 100%);
    border-color: transparent;
}

.btn-primary:hover,
.btn-dark:hover,
.btn-primary:focus,
.btn-dark:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary-deep) 0%, #274537 100%);
    border-color: transparent;
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: rgba(64, 107, 82, 0.25);
    background: rgba(64, 107, 82, 0.04);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-outline-secondary,
.btn-outline-dark {
    color: var(--app-text);
    border-color: rgba(23, 33, 47, 0.16);
    background: rgba(255, 255, 255, 0.58);
}

.btn-outline-secondary:hover,
.btn-outline-dark:hover {
    color: var(--app-text);
    background: rgba(23, 33, 47, 0.08);
    border-color: rgba(23, 33, 47, 0.24);
}

.btn-danger,
.btn-outline-danger {
    border-color: rgba(179, 98, 71, 0.28);
}

.form-label {
    margin-bottom: 0.35rem;
    color: var(--app-text);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.form-control,
.form-select {
    min-height: 3rem;
    border: 1px solid rgba(23, 33, 47, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    color: var(--app-text);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(64, 107, 82, 0.4);
    box-shadow: 0 0 0 0.22rem rgba(64, 107, 82, 0.12);
}

.form-check-input {
    border-color: rgba(23, 33, 47, 0.18);
}

.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.form-text,
.text-muted,
.small,
small {
    color: var(--app-muted) !important;
}

.alert {
    margin-bottom: 0;
    border: 1px solid transparent;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.76);
}

.alert-secondary,
.alert-light,
.alert-info {
    border-color: rgba(90, 146, 160, 0.14);
    background: rgba(90, 146, 160, 0.08);
    color: #274e5a;
}

.alert-warning {
    border-color: rgba(196, 147, 76, 0.18);
    background: rgba(196, 147, 76, 0.12);
    color: #7f5618;
}

.alert-danger {
    border-color: rgba(179, 98, 71, 0.2);
    background: rgba(179, 98, 71, 0.1);
    color: #8f452d;
}

.alert-success {
    border-color: rgba(64, 107, 82, 0.18);
    background: rgba(64, 107, 82, 0.1);
    color: var(--app-primary-deep);
}

.badge {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.text-success {
    color: var(--app-primary) !important;
}

.text-warning {
    color: #8d6224 !important;
}

.text-danger {
    color: var(--app-danger) !important;
}

.bg-success {
    background-color: var(--app-primary) !important;
}

.bg-warning {
    background-color: var(--app-warning) !important;
}

.bg-danger {
    background-color: var(--app-danger) !important;
}

.bg-secondary {
    background-color: rgba(23, 33, 47, 0.62) !important;
}

.bg-info {
    background-color: var(--app-accent) !important;
}

.list-group-item {
    border-left: 0;
    border-right: 0;
}

.modal-content {
    border: 1px solid var(--app-border);
    background: rgba(255, 253, 248, 0.96);
}

.modal-header,
.modal-footer {
    border-color: rgba(23, 33, 47, 0.08);
}

.modal-backdrop.show {
    opacity: 0.35;
}

.employer-call-dialog .modal-dialog {
    max-width: 34rem;
}

.employer-call-dialog .modal-title {
    color: var(--app-text);
    font-family: "Fraunces", Georgia, serif;
}

.employer-call-dialog .bg-light,
.detail-card .bg-light {
    background: rgba(23, 33, 47, 0.04) !important;
}

.permission-card {
    padding: 1.4rem 1.5rem;
}

pre {
    border-radius: 1rem;
    background: rgba(23, 33, 47, 0.04) !important;
}

details summary {
    color: var(--app-muted);
}

@media (max-width: 991.98px) {
    .page-heading--inline,
    .hero-panel,
    .results-shell__head,
    .job-card__header,
    .job-card__footer,
    .search-panel__head,
    .search-panel__footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

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

    .search-field--wide {
        grid-column: span 2;
    }

    .token-usage {
        justify-content: flex-start;
    }

    .job-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .stat-grid,
    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-field--wide {
        grid-column: span 1;
    }

    .hero-panel h1,
    .page-heading h1,
    .page-heading h2 {
        max-width: none;
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .job-card__inner,
    .search-panel,
    .results-shell,
    .detail-card .card-body,
    .empty-state,
    .hero-panel {
        padding: 1.15rem;
    }

    .job-card__title {
        font-size: 1.15rem;
    }
}

/* Fidelity overrides to match the supplied source more closely. */
:root {
    --background: oklch(0.97 0.01 85);
    --foreground: oklch(0.22 0.02 260);
    --card: oklch(0.99 0.005 85);
    --card-foreground: oklch(0.22 0.02 260);
    --primary: oklch(0.45 0.12 145);
    --primary-foreground: oklch(0.99 0.005 85);
    --secondary: oklch(0.93 0.02 85);
    --secondary-foreground: oklch(0.22 0.02 260);
    --muted: oklch(0.93 0.015 85);
    --muted-foreground: oklch(0.5 0.02 260);
    --accent: oklch(0.65 0.1 195);
    --accent-foreground: oklch(0.99 0.005 85);
    --destructive: oklch(0.55 0.12 25);
    --destructive-foreground: oklch(0.99 0.005 85);
    --warning: oklch(0.75 0.12 75);
    --warning-foreground: oklch(0.3 0.02 260);
    --success: oklch(0.5 0.14 145);
    --success-foreground: oklch(0.99 0.005 85);
    --border: oklch(0.88 0.015 85);
    --input: oklch(0.92 0.01 85);
    --ring: oklch(0.45 0.12 145);
}

html,
body {
    background: var(--background);
    color: var(--foreground);
    font-family: "Inter", system-ui, sans-serif;
}

body::before {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif,
.page-heading h1,
.page-heading h2,
.job-card__title,
.app-brand__name,
.app-footer__name {
    font-family: "Fraunces", Georgia, serif;
}

.page-shell,
.container {
    width: min(100%, 80rem);
}

.page-shell {
    gap: 2rem;
}

.page-heading {
    gap: 0.5rem;
}

.page-heading h1,
.page-heading h2 {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.05;
}

.page-heading--search {
    margin-bottom: -0.5rem;
}

.page-heading--search h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-heading p {
    font-size: 1.125rem;
}

.page-heading__eyebrow,
.hero-panel__eyebrow,
.search-panel__eyebrow {
    display: none;
}

.page-summary-card,
.stat-card,
.search-panel,
.detail-card,
.permission-card {
    border-radius: 1rem;
    border-color: var(--border);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.results-shell {
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.results-shell__head {
    margin-bottom: 0.25rem;
}

.results-shell h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.results-shell__controls .form-select {
    min-width: 8.75rem;
}

.results-shell__meta,
.results-shell__head p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--accent) 5%, white);
}

.guest-cta__copy h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Inter", system-ui, sans-serif;
}

.guest-cta__copy p {
    margin: 0.25rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.auth-entry-card {
    max-width: 40rem;
    padding: 1.75rem;
}

.auth-entry-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.auth-entry-card p {
    max-width: 34rem;
    color: var(--muted-foreground);
}

.auth-entry-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.auth-entry-card__help {
    margin: 0;
    font-size: 0.95rem;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-google:hover,
.btn-google:focus {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    background: color-mix(in srgb, var(--accent) 4%, white);
    color: var(--foreground);
}

.btn-google__mark {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.empty-state {
    padding: 3rem 2rem;
    border: 0;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--secondary) 55%, transparent);
    box-shadow: none;
}

.empty-state h2 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.empty-state p {
    max-width: 34rem;
}

.empty-state__note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.search-panel {
    padding: 1.5rem;
}

.search-grid {
    gap: 1.5rem;
}

.search-panel__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.search-panel__controls {
    gap: 1.5rem;
}

.search-field {
    gap: 0.5rem;
}

.search-field--hours {
    min-width: 38rem;
    max-width: 100%;
}

.form-label {
    margin-bottom: 0;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
}

.form-control,
.form-select {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    border-color: color-mix(in srgb, var(--border) 85%, white);
    background: color-mix(in srgb, var(--card) 92%, white);
    color: var(--foreground);
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-select {
    padding-right: 2.75rem;
    background-position: right 1rem center;
}

.search-submit {
    min-width: 10rem;
    align-self: end;
}

.search-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.search-switch__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.search-switch__track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 2rem;
    height: 1.15rem;
    padding: 1px;
    border-radius: 999px;
    background: var(--input);
    transition: background-color 0.18s ease;
    flex-shrink: 0;
}

.search-switch__thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--background);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease;
}

.search-switch__input:checked + .search-switch__track {
    background: var(--primary);
}

.search-switch__input:checked + .search-switch__track .search-switch__thumb {
    transform: translateX(0.82rem);
}

.search-switch__input:focus-visible + .search-switch__track {
    outline: 3px solid color-mix(in srgb, var(--ring) 28%, transparent);
    outline-offset: 2px;
}

.search-switch__label {
    color: var(--foreground);
    font-size: 0.95rem;
    font-weight: 500;
}

.job-card {
    border-radius: 0.75rem;
    border-color: var(--border);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.job-card::before {
    display: none;
}

.job-card__inner {
    gap: 1rem;
    padding: 1.25rem;
}

.job-card__header {
    gap: 1rem;
}

.job-card__title {
    font-size: 1.125rem;
    line-height: 1.25;
}

.job-card__meta {
    gap: 0.35rem 0.75rem;
    font-size: 0.875rem;
}

.job-card__score {
    min-width: 3.5rem;
}

.analysis-badge {
    min-width: 3.5rem;
    min-height: 3.5rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.analysis-badge__score {
    font-size: 1.125rem;
}

.analysis-badge__label {
    margin-top: 0.15rem;
    font-size: 0.625rem;
}

.job-card__summary,
.job-card__panel {
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.job-card__summary {
    background: color-mix(in srgb, var(--accent) 8%, white);
}

.job-card__panel--positive {
    background: color-mix(in srgb, var(--primary) 8%, white);
}

.job-card__panel--warning {
    background: color-mix(in srgb, var(--warning) 10%, white);
}

.job-card__panel--neutral,
.job-card__panel--call {
    background: color-mix(in srgb, var(--secondary) 60%, white);
}

.job-card__description,
.job-card__summary p,
.job-card__panel p,
.job-card__status-copy,
.job-card__contact a {
    font-size: 0.875rem;
}

.job-card__footer {
    padding-top: 1rem;
}

.job-card__icon-button {
    min-height: auto;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.job-card__icon-button:hover {
    background: color-mix(in srgb, var(--secondary) 85%, white);
    color: var(--foreground);
}

.token-usage {
    justify-content: flex-end;
}

.token-usage__pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.cv-builder-hero {
    display: none;
}

.cv-panel,
.cv-preview-surface,
.cv-preview-placeholder,
.cv-feedback-card,
.cv-search-preset-card {
    border-radius: 1rem;
}

@media (max-width: 991.98px) {
    .search-field--hours {
        min-width: 0;
        width: 100%;
    }

    .search-panel__footer {
        align-items: stretch;
    }

    .search-submit {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        gap: 1.5rem;
    }

    .page-heading--search h1 {
        font-size: 1.875rem;
    }

    .page-heading p {
        font-size: 1rem;
    }

    .search-panel {
        padding: 1rem;
    }

    .results-shell__head {
        gap: 0.75rem;
    }

    .job-card__header,
    .job-card__footer {
        gap: 0.75rem;
    }

    .guest-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

.app-header__nav a.app-nav-link,
.app-header__mobile-nav a.app-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    color: #5e6b7d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.app-header__nav a.app-nav-link:hover,
.app-header__mobile-nav a.app-nav-link:hover {
    background: rgba(235, 229, 219, 0.8);
    color: #17212f;
}

.app-header__nav a.app-nav-link.active,
.app-header__mobile-nav a.app-nav-link.active {
    background: rgba(64, 107, 82, 0.12);
    color: #406b52;
}

.auth-body {
    min-height: 100vh;
}

.auth-frame {
    width: min(100%, 88rem);
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.auth-frame__header,
.auth-frame__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-frame__header {
    margin-bottom: 2rem;
}

.auth-frame__main {
    display: grid;
}

.auth-frame__footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, white);
}

.auth-frame__footer p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.auth-frame__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.auth-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 78%, #183928) 100%);
    color: var(--primary-foreground);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 18%, transparent);
}

.auth-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auth-brand__name {
    color: var(--foreground);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.auth-brand__tag {
    color: var(--muted-foreground);
    font-size: 0.88rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 30rem);
    gap: 1.5rem;
    align-items: stretch;
}

.auth-showcase,
.auth-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.auth-showcase {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--warning) 20%, transparent), transparent 34%),
        radial-gradient(circle at bottom left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--card) 94%, white) 0%, color-mix(in srgb, var(--secondary) 55%, white) 100%);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--secondary) 92%, white);
    color: var(--foreground);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-showcase h1 {
    margin: 0;
    max-width: 12ch;
    color: var(--foreground);
    font-size: clamp(2.15rem, 4.2vw, 3.75rem);
    line-height: 0.92;
}

.auth-showcase p,
.auth-feature-list,
.auth-stat span,
.auth-card__head p,
.auth-links,
.auth-form__label-row a {
    color: var(--muted-foreground);
}

.auth-showcase > p,
.auth-card__head p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

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

.auth-stat {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--border) 85%, white);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--card) 90%, white);
}

.auth-stat strong {
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 700;
}

.auth-stat span {
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-feature-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding-left: 1.2rem;
}

.auth-feature-list li {
    line-height: 1.55;
}

.auth-card {
    display: grid;
    align-content: start;
    gap: 1.2rem;
    padding: 1.5rem;
}

.auth-card__head {
    display: grid;
    gap: 0.4rem;
}

.auth-card__head h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.55rem;
    line-height: 1.05;
}

.auth-alert {
    display: none;
}

.auth-alert.validation-summary-errors {
    display: block;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form__field {
    display: grid;
    gap: 0.45rem;
}

.auth-form__label-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.auth-form__label-row a,
.auth-links a {
    color: var(--foreground);
    text-decoration: none;
}

.auth-form__label-row a:hover,
.auth-links a:hover {
    color: var(--primary);
}

.field-validation-error {
    color: var(--destructive);
    font-size: 0.8125rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--foreground);
    font-size: 0.94rem;
    cursor: pointer;
}

.auth-checkbox input {
    margin: 0;
}

.auth-submit,
.auth-provider {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0.1rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, white);
}

.auth-divider span {
    position: relative;
    padding: 0 0.8rem;
    background: var(--card);
    color: var(--muted-foreground);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-external-list {
    display: grid;
    gap: 0.75rem;
}

.auth-provider {
    background: color-mix(in srgb, var(--secondary) 68%, white);
}

.auth-provider--google {
    gap: 0.75rem;
    background: #fff;
    font-weight: 600;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .auth-shell,
    .auth-stat-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase h1 {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .auth-frame {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .auth-frame__header,
    .auth-frame__actions,
    .auth-links,
    .auth-form__label-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-frame__actions .btn {
        width: 100%;
    }

    .auth-card,
    .auth-showcase {
        padding: 1.15rem;
    }
}
