:root {
    --brand-700: #0b4892;
    --brand-600: #1464c0;
    --brand-100: #d8eafe;
    --brand-50: #f0f7ff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --neutral-900: #212529;
    --neutral-800: #343a40;
    --neutral-600: #6c757d;
    --neutral-300: #dee2e6;
    --neutral-100: #f8f9fa;
    --neutral-50: #fbfcfe;
    --white: #fff;
}

* { box-sizing: border-box; }

body {
    background: var(--neutral-50);
    color: var(--neutral-900);
    font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    margin: 0;
}

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

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

.sidebar {
    background: var(--brand-700);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark {
    align-items: center;
    background: var(--white);
    border-radius: 8px;
    color: var(--brand-700);
    display: grid;
    font-size: 20px;
    font-weight: 800;
    height: 42px;
    place-items: center;
    width: 42px;
}

.brand span { color: rgba(255, 255, 255, .72); display: block; font-size: 12px; }
.login-brand span { color: var(--neutral-600); }

.nav-list { display: grid; gap: 6px; }
.nav-list a {
    border-radius: 6px;
    color: rgba(255, 255, 255, .78);
    padding: 11px 12px;
    text-decoration: none;
}
.nav-list a:hover, .nav-list a.active { background: rgba(255, 255, 255, .13); color: var(--white); }

.sidebar-footer {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.sidebar-footer button {
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    padding: 7px 9px;
}

.main-panel { min-width: 0; padding: 24px; }
.topbar, .section-toolbar, .panel-heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.topbar { margin-bottom: 24px; }
.eyebrow { color: var(--brand-700); font-size: 12px; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; }
h1, h2 { color: var(--neutral-900); margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }

.button {
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    min-height: 38px;
    padding: 8px 13px;
    text-decoration: none;
    white-space: nowrap;
}
.button.primary { background: var(--brand-700); color: var(--white); }
.button.primary:hover { background: var(--brand-600); }
.button.secondary { background: var(--white); border-color: var(--neutral-300); color: var(--neutral-800); }
.button.danger { background: #fdecee; border-color: #f5bcc3; color: var(--danger); }
.button.ghost { background: transparent; color: var(--brand-700); }
.button.small { min-height: 30px; padding: 5px 9px; }

.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-card, .panel, .inline-form, .offer-form, .login-card {
    background: var(--white);
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
}
.metric-card { padding: 18px; }
.metric-card span { color: var(--neutral-600); display: block; margin-bottom: 10px; }
.metric-card strong { color: var(--brand-700); font-size: 28px; }
.content-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); }
.panel { overflow: hidden; }
.panel-heading { border-bottom: 1px solid var(--neutral-300); padding: 14px 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--neutral-300); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--neutral-100); color: var(--neutral-600); font-size: 12px; font-weight: 700; }

.section-toolbar { margin-bottom: 14px; }
.section-toolbar p, .muted { color: var(--neutral-600); margin: 4px 0 0; }
.inline-form, .offer-form, .form-stack { display: grid; gap: 12px; margin-bottom: 16px; padding: 16px; }
.inline-form { grid-template-columns: repeat(5, minmax(150px, 1fr)) auto; }
.inline-form.compact { grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; }
.offer-form { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.offer-form .wide { grid-column: 1 / -1; }
.profile-heading { border-bottom: 1px solid var(--neutral-300); padding-bottom: 16px; }
.profile-form { display: grid; gap: 0; }
.profile-section { background: var(--white); border: 1px solid var(--neutral-300); border-bottom: 0; padding: 20px; }
.profile-section:first-child { border-radius: 8px 8px 0 0; }
.profile-section-title { align-items: flex-start; display: flex; gap: 12px; margin-bottom: 18px; }
.profile-section-title > span { align-items: center; background: var(--brand-700); border-radius: 6px; color: var(--white); display: flex; flex: 0 0 32px; font-weight: 800; height: 32px; justify-content: center; }
.profile-section-title h3 { font-size: 17px; margin: 0; }
.profile-section-title p { color: var(--neutral-600); line-height: 1.4; margin: 4px 0 0; }
.profile-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-fields .wide { grid-column: 1 / -1; }
.skill-picker { display: grid; gap: 14px; }
.skill-select { background: var(--white); border: 1px solid var(--neutral-300); border-radius: 8px; padding: 14px; position: relative; }
.skill-select:focus-within { border-color: var(--brand-700); box-shadow: 0 0 0 3px var(--brand-50); }
.skill-select-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 9px; }
.skill-select-heading label { font-weight: 800; }
.skill-select-heading span { color: var(--neutral-600); font-size: 12px; font-weight: 700; }
.skill-select input { border: 0; padding: 8px 0; }
.skill-select input:focus { box-shadow: none; outline: none; }
.skill-search-results { background: var(--white); border: 1px solid var(--neutral-300); border-radius: 6px; box-shadow: 0 12px 30px rgba(18, 34, 52, .12); display: grid; left: 14px; max-height: 250px; overflow-y: auto; padding: 6px; position: absolute; right: 14px; top: calc(100% - 4px); z-index: 5; }
.skill-search-results[hidden] { display: none; }
.skill-result { align-items: center; background: transparent; border: 0; border-radius: 5px; color: var(--neutral-800); cursor: pointer; display: flex; justify-content: space-between; padding: 10px; text-align: left; }
.skill-result strong { color: var(--brand-700); font-size: 12px; }
.skill-result:hover, .skill-result:focus { background: var(--brand-50); color: var(--brand-700); outline: none; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; }
.skill-tags.empty { align-items: center; color: var(--neutral-600); }
.skill-tag { align-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 6px; color: var(--brand-700); display: inline-flex; font-weight: 700; gap: 7px; padding: 7px 9px; }
.skill-tag button { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 20px; line-height: 1; padding: 0; }
.skill-suggestions { background: var(--neutral-100); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.skill-suggestions > div { align-items: center; display: flex; justify-content: space-between; width: 100%; }
.skill-suggestions > div span { color: var(--neutral-600); font-size: 12px; }
.skill-suggestion { align-items: center; background: var(--white); border: 1px solid var(--neutral-300); border-radius: 6px; color: var(--neutral-800); cursor: pointer; display: inline-flex; font-weight: 700; gap: 7px; padding: 8px 10px; }
.skill-suggestion span { align-items: center; background: var(--brand-50); border-radius: 4px; color: var(--brand-700); display: inline-flex; font-size: 16px; height: 22px; justify-content: center; width: 22px; }
.skill-suggestion:hover { border-color: var(--brand-700); color: var(--brand-700); transform: translateY(-1px); }
.profile-save { background: var(--neutral-100); border: 1px solid var(--neutral-300); border-radius: 0 0 8px 8px; display: flex; justify-content: flex-end; margin-bottom: 18px; padding: 14px 20px; }
.cv-upload-form { display: grid; gap: 14px; padding: 18px; }
.profile-content-grid { grid-template-columns: 1fr; }
.profile-content-grid > aside { order: -1; }
.profile-content-grid > aside .panel-heading { align-items: center; }
.profile-content-grid > aside .cv-upload-form { grid-template-columns: minmax(320px, 1.2fr) minmax(260px, .8fr); }
.profile-content-grid > aside .cv-ai-promise, .profile-content-grid > aside .cv-submit { grid-column: 1 / -1; }
.cv-ai-promise { align-items: flex-start; background: #eef7f2; border: 1px solid #b9dec9; border-radius: 8px; display: flex; gap: 14px; padding: 15px; }
.cv-ai-promise p { color: #456258; line-height: 1.5; margin: 5px 0 0; }
.cv-ai-mark { align-items: center; background: #17694f; border-radius: 6px; color: var(--white); display: flex; flex: 0 0 44px; font-weight: 800; height: 44px; justify-content: center; }
.field-hint { color: var(--neutral-600); font-size: 12px; font-weight: 400; line-height: 1.4; }
.upcoming-services { border-top: 1px solid var(--neutral-300); margin-top: 24px; padding-top: 22px; }
.upcoming-services-heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; }
.upcoming-services-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upcoming-service { align-items: flex-start; background: var(--white); border: 1px solid var(--neutral-300); border-radius: 8px; display: flex; gap: 14px; padding: 18px; }
.upcoming-service h3 { margin: 0 0 6px; }
.upcoming-service p { color: var(--neutral-600); line-height: 1.5; margin: 0; }
.service-index { color: var(--brand-700); font-size: 12px; font-weight: 800; }
.cv-upload-copy { display: grid; gap: 4px; }
.cv-upload-copy strong { font-size: 17px; }
.cv-upload-copy span { color: var(--neutral-600); line-height: 1.45; }
.cv-title-field { margin-top: 2px; }
.cv-dropzone {
    align-items: center;
    background: var(--brand-50);
    border: 2px dashed #8db8e8;
    border-radius: 8px;
    color: var(--neutral-900);
    cursor: pointer;
    display: flex;
    gap: 18px;
    grid-row: span 2;
    min-height: 170px;
    padding: 24px;
    transition: background .15s ease, border-color .15s ease;
}
.cv-dropzone:hover, .cv-dropzone.is-dragging { background: #e5f1ff; border-color: var(--brand-700); }
.cv-dropzone.has-file { background: #e9f7ee; border-color: #58a971; }
.cv-dropzone.has-error { background: #fdecee; border-color: var(--danger); }
.cv-document-preview { align-items: center; background: var(--white); border: 1px solid var(--brand-100); border-radius: 7px; box-shadow: 0 8px 20px rgba(20, 69, 128, .12); color: var(--brand-700); display: flex; flex: 0 0 78px; flex-direction: column; height: 96px; justify-content: center; position: relative; }
.cv-document-preview::after { border-left: 16px solid transparent; border-top: 16px solid #dbeafe; content: ''; position: absolute; right: 0; top: 0; }
.cv-document-preview strong { font-size: 24px; }
.cv-document-preview small { color: var(--neutral-600); font-size: 10px; }
.cv-dropzone-copy { display: grid; gap: 5px; }
.cv-dropzone-copy strong { font-size: 18px; }
.cv-dropzone-copy span, .cv-dropzone-copy small { color: var(--neutral-600); font-weight: 400; }
.cv-dropzone input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.cv-file-status { align-items: center; background: var(--neutral-100); border-radius: 6px; color: var(--neutral-600); display: flex; gap: 8px; margin: 0; min-height: 38px; padding: 8px 10px; word-break: break-word; }
.cv-file-indicator { background: var(--brand-700); border-radius: 50%; flex: 0 0 8px; height: 8px; width: 8px; }
.cv-submit { justify-content: center; width: 100%; }
.cv-submit:disabled { background: var(--neutral-300); color: var(--neutral-600); cursor: not-allowed; }
.cv-library { border-top: 1px solid var(--neutral-300); padding: 20px; }
.cv-library-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.cv-library-heading h3 { margin: 2px 0 0; }
.cv-library-heading > span { align-items: center; background: var(--neutral-100); border-radius: 50%; display: flex; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.cv-document-list { display: grid; gap: 12px; }
.cv-document-card { background: var(--white); border: 1px solid var(--neutral-300); border-radius: 8px; overflow: hidden; }
.cv-document-main { align-items: center; display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 15px; }
.cv-document-type { align-items: center; background: var(--brand-50); border-radius: 6px; color: var(--brand-700); display: flex; font-size: 12px; font-weight: 900; height: 44px; justify-content: center; width: 44px; }
.cv-document-copy { display: grid; gap: 3px; min-width: 0; }
.cv-document-copy span { color: var(--neutral-600); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-document-actions { align-items: center; background: var(--neutral-100); border-top: 1px solid var(--neutral-300); display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 15px; }
.cv-library-empty { align-items: center; background: var(--neutral-100); border: 1px dashed var(--neutral-300); border-radius: 8px; color: var(--neutral-600); display: flex; gap: 14px; padding: 20px; }
.cv-library-empty > span { align-items: center; background: var(--white); border-radius: 6px; color: var(--brand-700); display: flex; font-weight: 900; height: 46px; justify-content: center; width: 46px; }
.cv-library-empty p { margin: 4px 0 0; }
label { color: var(--neutral-800); display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
input, select, textarea {
    border: 1px solid var(--neutral-300);
    border-radius: 6px;
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px var(--brand-100);
    outline: none;
}
td input, td select { min-width: 150px; }

.badge { border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 700; padding: 4px 9px; }
.badge.draft { background: var(--neutral-100); color: var(--neutral-600); }
.badge.submitted { background: #fff7db; color: #916300; }
.badge.validated { background: var(--brand-50); color: var(--brand-700); }
.badge.published, .badge.active { background: #e9f7ee; color: #1c7c34; }
.badge.rejected, .badge.blocked { background: #fdecee; color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions form { margin: 0; }
.padded { padding: 16px; }
.switcher-panel { margin-bottom: 16px; }
.empty { color: var(--neutral-600); padding: 18px; }
.alert { border-radius: 8px; margin-bottom: 14px; padding: 11px 13px; }
.alert.success { background: #e9f7ee; color: #1c7c34; }
.alert.danger { background: #fdecee; color: var(--danger); }
.identity-verification-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.identity-verification-notice {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 13px 14px;
}
.identity-verification-notice.warning { background: #fff7db; border-color: #f0d38a; color: #7a5200; }
.identity-verification-notice.notice { background: #eaf3ff; border-color: #b7d7ff; color: #134f8f; }
.identity-verification-notice strong, .identity-verification-notice span { display: block; }
.identity-verification-notice span { line-height: 1.45; margin-top: 3px; }
.identity-verification-notice form { margin: 0; }
.action-list { display: grid; gap: 10px; padding: 16px; }
.action-item {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    color: inherit;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    padding: 12px;
    text-align: left;
    text-decoration: none;
}
.action-item:hover { border-color: var(--brand-700); }
.action-item strong, .action-item span { display: block; }
.action-item span { color: var(--neutral-600); font-size: 12px; margin-top: 4px; }
.action-meta { align-items: center; display: flex; flex-shrink: 0; gap: 8px; }
.prompt-band {
    align-items: center;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px 16px;
}
.prompt-band strong, .prompt-band span { display: block; }
.prompt-band span { color: var(--neutral-600); margin-top: 3px; }
.ai-intro-panel {
    align-items: center;
    background: linear-gradient(135deg, #0f3767, #1265ad);
    border-radius: 8px;
    color: var(--white);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 22px;
}
.ai-intro-panel h2, .ai-intro-panel .eyebrow { color: var(--white); }
.ai-intro-panel p { color: rgba(255, 255, 255, .82); margin: 8px 0 0; max-width: 760px; }
.ai-intro-points { display: grid; gap: 8px; min-width: 190px; }
.ai-intro-points span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    padding: 9px 11px;
}
.modal-backdrop {
    align-items: center;
    background: rgba(33, 37, 41, .52);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 50;
}
.modal-panel {
    background: var(--white);
    border-radius: 8px;
    max-width: 520px;
    padding: 24px;
    width: min(100%, 520px);
}
.modal-panel p { color: var(--neutral-600); line-height: 1.5; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.onboarding-modal { max-height: calc(100vh - 36px); max-width: 680px; overflow-y: auto; width: min(100%, 680px); }
.activation-progress {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 12px;
}
.activation-progress strong { color: var(--brand-700); font-size: 24px; }
.activation-progress span { color: var(--neutral-600); }
.progress-track {
    background: var(--white);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.progress-track span {
    background: var(--brand-700);
    display: block;
    height: 100%;
}
.activation-steps {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.activation-steps li {
    align-items: center;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 12px;
}
.activation-steps li.done { background: #e9f7ee; border-color: #b9e5c8; }
.activation-steps li.locked { background: var(--neutral-100); }
.activation-steps p { margin: 3px 0 0; }
.step-index {
    align-items: center;
    background: var(--brand-50);
    border-radius: 999px;
    color: var(--brand-700);
    display: grid;
    font-weight: 800;
    height: 34px;
    place-items: center;
    width: 34px;
}
.premium-panel { margin-top: 18px; }
.premium-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; }
.premium-card {
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}
.premium-card span { color: var(--neutral-600); }
.premium-footer { align-items: center; display: flex; justify-content: space-between; margin-top: 6px; }
.premium-footer form { margin: 0; }
.compact-list { color: var(--neutral-600); margin: 4px 0 0 18px; padding: 0; }
.payment-context {
    background: var(--brand-50);
    border-bottom: 1px solid var(--brand-100);
    display: grid;
    gap: 4px;
}
.payment-context span { color: var(--neutral-600); }
.analysis-box {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 14px;
}
.analysis-score {
    background: var(--white);
    border: 1px solid var(--brand-100);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.analysis-score span { color: var(--neutral-600); display: block; font-size: 12px; }
.analysis-score strong { color: var(--brand-700); display: block; font-size: 28px; margin-top: 4px; }
.analysis-box ul { margin: 6px 0 12px 18px; padding: 0; }
.score-band {
    align-items: center;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px;
}
.score-band.excellent, .score-band.very-good { background: #e9f7ee; border-color: #b9e5c8; }
.score-band.good { background: var(--brand-50); border-color: var(--brand-100); }
.score-band.medium { background: #fff7db; border-color: #ffe39a; }
.score-band.low, .score-band.poor { background: #fdecee; border-color: #f5bcc3; }
.score-summary span, .score-summary small { color: var(--neutral-600); display: block; }
.score-summary strong { display: block; font-size: 26px; margin: 2px 0; }
.score-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.score-actions form { margin: 0; }
.analysis-detail ul { margin: 8px 0 18px 18px; padding: 0; }
.offer-description { line-height: 1.55; }

.login-page { display: grid; min-height: 100vh; place-items: center; }
.login-card { max-width: 440px; padding: 28px; width: min(92vw, 440px); }
.login-card h1 { margin-bottom: 8px; }
.checkbox { align-items: center; display: flex; flex-direction: row; font-weight: 400; }
.checkbox input { min-height: auto; width: auto; }

.auth-entry-page {
    background: #f3f7fb;
    min-height: 100vh;
}
.auth-entry-shell {
    display: grid;
    grid-template-columns: minmax(420px, .92fr) minmax(460px, 1.08fr);
    min-height: 100vh;
}
.auth-value-panel {
    background:
        radial-gradient(circle at 18px 18px, rgba(255,255,255,.09) 1px, transparent 1.5px),
        linear-gradient(135deg, #10294c, #0b4d8d);
    background-size: 32px 32px, auto;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 34px;
    justify-content: center;
    padding: 42px;
}
.auth-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}
.auth-brand .brand-mark {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--white);
}
.auth-value-panel h1 {
    color: var(--white);
    font-size: 50px;
    line-height: 1.16;
    max-width: 640px;
}
.auth-value-panel p {
    color: rgba(255, 255, 255, .84);
    font-size: 22px;
    line-height: 1.45;
    margin: 22px 0 0;
    max-width: 670px;
}
.auth-benefits {
    display: grid;
    gap: 26px;
    max-width: 720px;
}
.auth-benefits article {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 64px minmax(0, 1fr);
}
.auth-benefits article > span {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    display: grid;
    font-weight: 800;
    height: 64px;
    place-items: center;
    width: 64px;
}
.auth-benefits strong {
    color: var(--white);
    display: block;
    font-size: 24px;
}
.auth-benefits p {
    font-size: 19px;
    margin: 6px 0 0;
}
.auth-trust {
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 18px !important;
    margin-top: 18px !important;
    padding-top: 22px;
}
.auth-action-panel {
    align-items: center;
    display: grid;
    justify-items: center;
    padding: 40px;
}
.auth-card {
    background: var(--white);
    border: 1px solid #e6ecf3;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(18, 45, 78, .14);
    max-width: 660px;
    padding: 48px 56px;
    text-align: center;
    width: min(100%, 660px);
}
.auth-card h2 {
    font-size: 34px;
    line-height: 1.18;
}
.auth-card p {
    color: #5d6f88;
    font-size: 20px;
    line-height: 1.45;
    margin: 18px 0 0;
}
.auth-main-action {
    box-shadow: 0 14px 28px rgba(20, 100, 192, .26);
    font-size: 22px;
    justify-content: center;
    margin-top: 28px;
    min-height: 72px;
    width: 100%;
}
.auth-switch {
    align-items: center;
    color: #5d6f88;
    display: flex;
    flex-wrap: wrap;
    font-size: 18px;
    gap: 6px;
    justify-content: center;
    margin-top: 26px;
}
.auth-switch a {
    color: var(--brand-700);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { min-height: auto; }
    .nav-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .content-grid, .metric-grid, .inline-form, .inline-form.compact, .offer-form { grid-template-columns: 1fr; }
    .profile-fields { grid-template-columns: 1fr; }
    .profile-fields .wide { grid-column: auto; }
    .premium-grid, .analysis-box { grid-template-columns: 1fr; }
    .profile-content-grid > aside .cv-upload-form, .upcoming-services-grid { grid-template-columns: 1fr; }
    .profile-content-grid > aside .cv-ai-promise, .profile-content-grid > aside .cv-submit { grid-column: auto; }
    .ai-intro-panel { align-items: flex-start; flex-direction: column; }
    .ai-intro-points { width: 100%; }
    .auth-entry-shell { grid-template-columns: 1fr; }
    .auth-value-panel { padding: 32px 24px; }
    .auth-value-panel h1 { font-size: 38px; }
    .auth-action-panel { padding: 26px 18px; }
    .auth-card { padding: 32px 24px; }
}

@media (max-width: 700px) {
    .app-shell { display: block; }
    .sidebar {
        gap: 12px;
        padding: 12px 14px;
        position: sticky;
        top: 0;
        z-index: 20;
    }
    .brand { margin-bottom: 0; }
    .brand-mark { height: 36px; width: 36px; }
    .brand span { display: none; }
    .nav-list {
        display: flex;
        gap: 8px;
        margin: 0 -14px;
        overflow-x: auto;
        padding: 0 14px 2px;
        scrollbar-width: none;
    }
    .nav-list::-webkit-scrollbar { display: none; }
    .nav-list a {
        flex: 0 0 auto;
        padding: 10px 12px;
        white-space: nowrap;
    }
    .sidebar-footer {
        justify-content: space-between;
        margin-top: 0;
        min-width: 0;
    }
    .sidebar-footer span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sidebar-footer button { flex: 0 0 auto; }
    .main-panel { padding: 18px 14px 28px; }
    .profile-section { padding: 16px; }
    .upcoming-services-heading { align-items: flex-start; flex-direction: column; }
    .profile-save .button { width: 100%; }
    .cv-dropzone { grid-row: auto; }
    .cv-document-main { align-items: flex-start; grid-template-columns: auto minmax(0, 1fr); }
    .cv-document-status { grid-column: 2; }
    .topbar, .section-toolbar, .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .topbar { gap: 12px; margin-bottom: 18px; }
    h1 { font-size: 24px; }
    .button { justify-content: center; }
    .topbar .button, .section-toolbar .button { width: 100%; }
    .prompt-band, .action-item {
        align-items: stretch;
        flex-direction: column;
    }
    .prompt-band .button, .prompt-band form, .prompt-band button, .action-meta, .action-meta .button {
        width: 100%;
    }
    .action-meta { align-items: stretch; flex-direction: column; }
    .modal-actions, .modal-actions form, .modal-actions button { width: 100%; }
    .activation-steps li {
        align-items: stretch;
        grid-template-columns: 34px minmax(0, 1fr);
    }
    .activation-steps li > form, .activation-steps li > .badge {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
    .activation-steps li > form .button { width: 100%; }
}
