:root {
    --bg: #0f1419;
    --fg: #e7ecf1;
    --muted: #8b98a5;
    --accent: #3b82f6;
    --border: #2f3b47;
    --surface: #1a222c;
    --surface-alt: #18202a;
    --role-ai-bg: #152238;
    --role-ai-border: #2563eb;
    --overlay: rgba(0, 0, 0, 0.6);
    --content-max-width: 72rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html[data-theme="light"] {
    --bg: #f4f6f8;
    --fg: #1a2332;
    --muted: #5c6b7a;
    --accent: #2563eb;
    --border: #d0d7de;
    --surface: #ffffff;
    --surface-alt: #eef1f4;
    --role-ai-bg: #e8f0fe;
    --role-ai-border: #60a5fa;
    --overlay: rgba(15, 23, 42, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--fg);
}

a { color: var(--accent); }

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

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-decoration: none;
}

.top__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.top__nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    flex-shrink: 0;
}

.theme-toggle__btn {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.theme-toggle__btn:hover {
    color: var(--fg);
}

.theme-toggle__btn.is-active {
    background: var(--accent);
    color: #fff;
}

.top__login {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}

.hero {
    --hero-content-width: min(var(--content-max-width), 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1.5rem;
}

.hero__search {
    display: flex;
    align-items: stretch;
    width: var(--hero-content-width);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.hero__location,
.search-bar__location {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    width: var(--hero-content-width);
    margin: 0 0 0.65rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--fg);
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.page .search-bar__location {
    width: 100%;
    margin-bottom: 0.65rem;
}

.hero__location-hint,
.search-bar__location .hero__location-hint {
    color: var(--muted);
    font-size: 0.92rem;
    border-bottom: 1px dashed var(--border);
}

.hero__location-value,
.search-bar__location .hero__location-value {
    color: var(--accent);
    font-size: 0.98rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.hero__location:hover .hero__location-value,
.search-bar__location:hover .hero__location-value {
    color: var(--fg);
}

.location-modal__panel {
    width: min(32rem, 94vw);
    max-height: min(88vh, 720px);
    overflow-y: auto;
}

.location-modal__section + .location-modal__section {
    margin-top: 1rem;
}

.location-modal__label {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.location-modal__city-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--fg);
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.location-modal__city-suggest {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-alt);
    max-height: 10rem;
    overflow-y: auto;
}

.location-modal__city-suggest[hidden] {
    display: none;
}

.location-modal__city-option {
    border: none;
    background: none;
    color: var(--fg);
    text-align: left;
    padding: 0.55rem 0.75rem;
    font: inherit;
    cursor: pointer;
}

.location-modal__city-option:hover {
    background: var(--surface);
    color: var(--accent);
}

.location-modal__regions {
    max-width: none;
}

.location-modal__region {
    width: 100%;
    border: none;
    background: none;
    color: var(--fg);
    text-align: left;
    padding: 0.45rem 0;
}

.location-modal__region.is-active,
.location-modal__region.is-active .scroll-checklist__label {
    color: var(--accent);
}

.location-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.location-modal__apply {
    margin-left: auto;
}

.hero__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--fg);
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    outline: none;
}

.hero__btn {
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 0 1.5rem;
    cursor: pointer;
}

.hero__hint {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero__languages {
    width: var(--hero-content-width);
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.hero__languages a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.hero__languages a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.hero__tracks {
    width: var(--hero-content-width);
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
}

.hero__tracks a {
    color: var(--fg);
    text-decoration: none;
    opacity: 0.88;
}

.hero__tracks a:hover {
    color: var(--accent);
    opacity: 1;
}

.hero__roles {
    width: var(--hero-content-width);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
}

.role-tile {
    display: block;
    text-decoration: none;
    color: var(--fg);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: 0.88rem;
    line-height: 1.25;
}

.role-tile:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.role-tile--ai {
    border-color: var(--role-ai-border);
    background: var(--role-ai-bg);
}

.page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

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

.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.modal__panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    width: min(400px, 92vw);
}

.modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal__title { margin: 0 0 1rem; font-size: 1.25rem; }

.modal__warning {
    color: #f87171;
    font-size: 0.9rem;
}

.login-form__label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.login-form__input {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg);
}

.login-form__submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    min-height: 2.75rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25;
    cursor: pointer;
}

.top__register {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.top__register:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal__panel--wide {
    max-width: 32rem;
}

.modal__switch {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.modal__link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}

.modal__success {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    margin-bottom: 1rem;
}

html[data-theme="light"] .modal__success {
    color: #15803d;
}

.field-error {
    margin: -0.5rem 0 0.75rem;
    font-size: 0.85rem;
    color: #f87171;
}

.register-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.login-form__check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.login-form__check input {
    margin-top: 0.2rem;
}

.login-form__vk {
    margin-top: 1rem;
    min-height: 48px;
}

.page--wide { max-width: 56rem; }
.page--search { max-width: var(--content-max-width); }

.search-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.search-filters {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 1rem 1rem 1.1rem;
}

.search-filters__head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.search-filters__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
}

.search-filters__status {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.search-filters__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.search-filters__group {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.search-filters__group legend {
    padding: 0;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-filters__salary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.search-filters__salary-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.search-filters__salary-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.search-filters__salary-field input {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font-size: 0.92rem;
}

.search-filters__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.search-filters__apply {
    width: 100%;
    margin: 0;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.search-filters__reset {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.55rem 1rem;
}

.search-results {
    min-width: 0;
}

.search-results__count {
    margin: 0 0 0.75rem;
}

.scroll-checklist--compact {
    max-height: 9.5rem;
    max-width: none;
}

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

    .search-filters {
        position: static;
    }
}

.search-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--surface);
}

.search-bar__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--fg);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-bar__btn {
    flex-shrink: 0;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 1.25rem;
    cursor: pointer;
    white-space: nowrap;
}

.filters { margin-bottom: 1rem; color: var(--muted); }
.filters__form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    align-items: end;
}
.filters select,
.filters input {
    display: block;
    margin-top: 0.25rem;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg);
    border-radius: 6px;
}

.job-list { list-style: none; padding: 0; margin: 0; }
.job-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.job-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
}
.job-card__title:hover { color: var(--accent); }
.job-card__meta { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.job-card__skills { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }

.job-meta, .job-salary { color: var(--muted); }
.job-description { margin-top: 1.5rem; line-height: 1.6; white-space: pre-wrap; }

.cabinet-links { list-style: none; padding: 0; margin: 0; }
.cabinet-links > li { margin: 0.75rem 0; font-size: 1.1rem; }
.cabinet-links a.is-active { font-weight: 700; }

.cabinet-links__group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    list-style: none;
}

.cabinet-links__group-label {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.cabinet-links__group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cabinet-links__group-list li {
    margin: 0.45rem 0;
    font-size: 1.05rem;
}

.cabinet-page {
    max-width: var(--content-max-width);
}

.cabinet-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 0.5rem;
}

.cabinet-nav__heading {
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.cabinet-nav__heading a {
    text-decoration: none;
    color: inherit;
}

.cabinet-content {
    min-width: 0;
}

.cabinet-home__section {
    margin-top: 0.5rem;
}

.job-search-status {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 40rem;
}

.job-search-status__option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.job-search-status__option input {
    margin-top: 0.2rem;
}

.education-records__row {
    display: grid;
    grid-template-columns: 140px 1fr 120px auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .cabinet-shell {
        grid-template-columns: 1fr;
    }

    .education-records__row {
        grid-template-columns: 1fr;
    }
}

.form-row { margin-bottom: 1rem; }
.form-row--checkboxes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 32rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}
.form-row--checkboxes li {
    margin: 0;
    border-bottom: 1px solid var(--border);
}
.form-row--checkboxes li:last-child {
    border-bottom: none;
}
.form-row--checkboxes li label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    margin: 0;
    font-size: 0.95rem;
    cursor: pointer;
}
.form-row label:not(.scroll-checklist__item) {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row textarea,
.form-row select,
.cabinet-form__input {
    width: 100%;
    max-width: 32rem;
    padding: 0.6rem 0.75rem;
    min-height: 2.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    font-size: 1rem;
    line-height: 1.25;
}

.form-row textarea {
    min-height: auto;
    resize: vertical;
}

.form-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 32rem;
    margin-bottom: 1rem;
}

.form-dates .form-row {
    margin-bottom: 0;
}

@media (max-width: 32rem) {
    .form-dates {
        grid-template-columns: 1fr;
    }
}

.cabinet-form .login-form__submit,
.cabinet-form__submit {
    max-width: 32rem;
}

.page form:not(.search-bar) > .hero__btn[type="submit"] {
    display: block;
    width: 100%;
    max-width: 32rem;
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    min-height: 2.75rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.25;
}

.btn-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.flash { padding: 0.75rem 1rem; border-radius: 8px; margin: 1rem 0; }
.flash--success { background: #14532d; color: #bbf7d0; }
.flash--warning { background: #422006; color: #fde68a; }
.flash--error { background: #450a0a; color: #fecaca; }

.scroll-checklist {
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    max-width: 32rem;
}

.scroll-checklist label.scroll-checklist__item,
.scroll-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.scroll-checklist__item:last-child {
    margin-bottom: 0;
}

.scroll-checklist__item input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: auto;
    min-height: auto;
    padding: 0;
}

.scroll-checklist__label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.35;
    word-break: break-word;
}

.chip-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0;
    max-width: 32rem;
}

.chip-picker__chip {
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--fg);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
}

.chip-picker__chip:hover {
    border-color: var(--accent);
}

.chip-picker__chip.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

.skill-picker__selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.35rem 0 0.5rem;
    min-height: 1.5rem;
}

.skill-picker__add {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    max-width: 32rem;
}

.skill-picker__suggest {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.skill-picker__chip {
    cursor: pointer;
}

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

.portfolio-list__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.portfolio-list__url {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
    word-break: break-all;
}

.portfolio-list__meta {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.portfolio-list__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.portfolio-list__actions form {
    margin: 0;
}

.git-links-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.git-links-row {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 200px) minmax(180px, 220px) auto;
    gap: 0.5rem;
    align-items: center;
}

.git-links-row input[type="url"],
.git-links-row input[type="text"],
.git-links-row select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--fg);
}

.git-links-readonly__visibility {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.profile-readonly-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-readonly-chips__item {
    margin: 0;
    min-width: 0;
}

.profile-readonly-chips__chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-alt);
    color: var(--fg);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.35;
    word-break: break-word;
}

.profile-readonly-chips__chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.profile-readonly-chips__chip strong {
    font-weight: 600;
}

.profile-readonly-chips__chip .muted {
    font-size: 0.8rem;
}

.profile-readonly-chips__chip--label {
    cursor: default;
}

.profile-readonly-chips__chip--label:hover {
    border-color: var(--border);
    color: var(--fg);
}

.git-links-add {
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .git-links-row {
        grid-template-columns: 1fr;
    }
}

.experience-list__visibility {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.experience-employer__item {
    margin-top: 0.35rem;
}

/* Candidate profile: section cards + sticky chip nav */
.profile-hints {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.profile-hints p {
    margin: 0.35rem 0;
}

.profile-hints p:first-child {
    margin-top: 0;
}

.profile-hints p:last-child {
    margin-bottom: 0;
}

.profile-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 1.25rem;
    padding: 0.65rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.profile-nav__list {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-nav__list::-webkit-scrollbar {
    display: none;
}

.profile-nav__link {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.profile-nav__link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.profile-nav__link.is-active {
    border-color: var(--accent);
    background: var(--surface-alt);
    color: var(--accent);
    font-weight: 600;
}

.profile-section {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    scroll-margin-top: 4.25rem;
}

.profile-section__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.profile-section__body .form-row:last-child,
.profile-section__body .ai-picker-block:last-child {
    margin-bottom: 0;
}

.profile-section__body .form-row label:not(.scroll-checklist__item) {
    font-weight: 500;
}

.profile-salary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-salary-grid .form-row {
    margin-bottom: 0;
}

@media (max-width: 32rem) {
    .profile-salary-grid {
        grid-template-columns: 1fr;
    }
}

.ai-picker-block__heading {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-section .scroll-checklist,
.profile-section .form-row input[type="text"],
.profile-section .form-row input[type="number"],
.profile-section .form-row textarea,
.profile-section .form-row select,
.profile-section .chip-picker,
.profile-section .ai-picker-block__add {
    max-width: none;
}

.profile-submit {
    margin-top: 0.5rem;
}

.experience-preview {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.experience-preview__item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.experience-preview__item:last-child {
    border-bottom: none;
}

.ai-page {
    max-width: 56rem;
}

.ai-hero {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ai-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
}

.ai-hero__lead {
    margin: 0 0 1.25rem;
}

.ai-hero__search {
    margin-bottom: 1rem;
}

.ai-hero__roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.ai-hero__skills a.is-active,
.ai-hero__roles .role-tile.is-active {
    color: var(--accent);
    border-color: var(--accent);
}

.ai-hero__skills a.is-active {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.save-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 1rem 0 1.25rem;
}

.save-search-form__name {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

.profile-share {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
}

.profile-share__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-share__hint {
    margin: 0 0 0.75rem;
}

.profile-share__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.profile-share__input {
    flex: 1;
    min-width: 220px;
}

.contact-field {
    margin-bottom: 0;
}

.contact-field + .form-row,
.contact-field + .contact-field {
    margin-top: 0;
}

.contacts-form__submit {
    margin-top: 1rem;
}

.contact-field__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.contact-field__row .form-row {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.contact-badge {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    margin-bottom: 0.35rem;
}

.contact-badge--ok {
    color: #166534;
    background: #dcfce7;
}

.contact-badge--pending {
    color: #92400e;
    background: #fef3c7;
}

.contact-verify {
    margin: 0.75rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
}

.contact-verify__title {
    margin: 0 0 0.65rem;
    font-weight: 600;
}

.contact-verify__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-verify__form--code {
    margin-bottom: 0;
}

.contact-verify__label {
    font-size: 0.875rem;
}

.contact-verify__input {
    width: 8rem;
}

.contact-verify__hint {
    margin: 0.35rem 0 0;
}

.hero__btn--secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.contacts-summary {
    margin: 0;
}

.contacts-summary__row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 0.45rem;
}

.contacts-summary__row dt {
    margin: 0;
    color: var(--muted);
}

.contacts-summary__row dd {
    margin: 0;
}

.company-switcher {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.company-switcher select,
.company-switcher__label {
    font-size: 0.875rem;
    max-width: 12rem;
}

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

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

.link-button {
    background: none;
    border: none;
    color: var(--link, #2563eb);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
