/*
  Кабинет кандидата в стиле лендинга (i18n/template.html): цвета и кнопки оттуда, шрифты — Manrope для латиницы,
  Noto Sans Devanagari для хинди, Noto Nastaliq Urdu для урду. Отступы — логические свойства (урду — rtl).
*/
:root {
  --navy: #061f52;
  --gold: #be9238;
  --gold-text: #846219;
  --on-gold: #010a20;
  --ink: #14213d;
  --muted: #56627d;
  --line: #e2e7f0;
  --soft: #f4f6fb;
  --paper: #f7f6f2;
  --white: #fff;
  --success: #1f7a3f;
  --success-bg: #eaf5ee;
  --error: #b42318;
  --error-bg: #fdecea;
  --radius: 18px;
  --font: Manrope, "Segoe UI", Arial, sans-serif;
  --lh: 1.6;
  --lh-head: 1.25;
}

:root:lang(hi) {
  --font: "Noto Sans Devanagari", Manrope, sans-serif;
  --lh: 1.75;
  --lh-head: 1.45;
}

:root:lang(ur) {
  --font: "Noto Nastaliq Urdu", Manrope, serif;
  --lh: 2.1;
  --lh-head: 1.85;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: var(--lh-head);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
}

:lang(ur) h1 {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
}

/* FocusOnNavigate ставит фокус на h1 для экранных дикторов — рамка вокруг заголовка не нужна. */
h1:focus {
  outline: none;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--gold-text);
  font-weight: 700;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
}

/* Латиница внутри хинди и урду (e-mail, бренд) — латинским шрифтом. */
[dir="ltr"]:not(html),
input[type="email"],
input[type="password"] {
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container.narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  top: 12px;
}

/* Шапка */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 200px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.inline-form {
  margin: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  direction: ltr;
}

.lang-switch button {
  border: 0;
  background: none;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--navy);
  font: 700 14px/1.5 Manrope, Arial, sans-serif;
  cursor: pointer;
}

.lang-switch button[lang="hi-IN"] {
  font-family: "Noto Sans Devanagari", Manrope, sans-serif;
}

.lang-switch button[lang="ur-PK"] {
  font-family: "Noto Nastaliq Urdu", serif;
  line-height: 1.6;
}

.lang-switch button:hover {
  color: var(--gold-text);
}

.lang-switch button.is-current {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Кнопки — как на лендинге */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

:lang(ur) .btn {
  padding-block: 6px;
}

.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 8px 20px rgba(190, 146, 56, 0.28);
}

.btn-gold:hover {
  background: #a87f2c;
  color: var(--on-gold);
}

.btn-outline {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  min-height: 58px;
  padding: 14px 30px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
.lang-switch button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Содержимое */
.site-main {
  flex: 1;
}

.hero {
  padding-block: clamp(40px, 8vw, 88px);
  background: linear-gradient(180deg, var(--white), var(--paper));
  text-align: center;
}

.hero .lead {
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.page {
  padding-block: 40px 56px;
}

.eyebrow {
  color: var(--gold-text);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

:lang(hi) .eyebrow,
:lang(ur) .eyebrow {
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(6, 31, 82, 0.06);
}

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

/* Аккаунт */
.auth {
  padding: 40px 16px 56px;
}

.auth-card {
  max-width: 460px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 14px 34px rgba(6, 31, 82, 0.08);
}

.auth-card .lead {
  color: var(--muted);
  margin-bottom: 20px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid #c9d1e0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190, 146, 56, 0.25);
}

.field input.invalid {
  border-color: var(--error);
}

/* В урду поля e-mail и пароля — латиница слева направо, но выравнивание по краю формы. */
[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.field-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.field-error,
.validation-message {
  margin: 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}

.alert,
.notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.alert p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.alert ul {
  margin: 0;
  padding-inline-start: 20px;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #f5c2bd;
}

.alert-error a {
  color: var(--error);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bfe0cb;
}

.notice {
  background: var(--soft);
  border: 1px solid var(--line);
}

.turnstile {
  min-height: 65px;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
}

.auth-links {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

/* Ссылка в шапке («Мои согласия») */
.header-link {
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
}

.header-link:hover {
  color: var(--gold-text);
  text-decoration: underline;
}

/* Согласия */
.check.check-top {
  align-items: flex-start;
}

.check.check-top input {
  flex: none;
  margin-top: 0.3em;
}

.consent-field {
  gap: 8px;
}

.consent-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 10px 14px;
}

.consent-details summary {
  cursor: pointer;
  color: var(--gold-text);
  font-weight: 700;
}

.consent-details[open] summary {
  margin-bottom: 10px;
}

.consent-details .consent-text {
  max-height: 320px;
  overflow-y: auto;
  padding-inline-end: 6px;
}

.consent-text h2 {
  font-size: 19px;
  margin-top: 4px;
}

.consent-text h3 {
  font-size: 16px;
  margin: 16px 0 6px;
}

.consent-text ul {
  margin: 0 0 12px;
  padding-inline-start: 22px;
}

.consent-text li {
  margin-bottom: 4px;
}

.consent-meta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.consent-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-block: 20px 32px;
}

.consent-card h2 {
  font-size: 20px;
  margin: 0;
}

.consent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
}

.badge-withdrawn {
  background: var(--error-bg);
  color: var(--error);
}

.badge-outdated {
  background: #fdf3df;
  color: var(--gold-text);
}

.badge-none {
  background: var(--soft);
  color: var(--muted);
}

.consent-facts {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.consent-warning {
  margin-top: 12px;
}

.consent-give-form {
  margin-block: 20px;
}

.consent-decline .consent-actions {
  margin-top: 8px;
}

.back-link {
  margin-top: 20px;
}

.consent-history h2 {
  font-size: 20px;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--success);
  border-radius: 12px;
  font-size: 14px;
}

.history-item[data-withdrawn="true"] {
  border-inline-start-color: var(--error);
}

.history-withdrawn {
  color: var(--error);
  font-weight: 600;
}

/* Подвал */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 22px;
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 4px;
}

.footer-brand {
  color: rgba(255, 255, 255, 0.6);
}

/* Анкета кандидата (EIN-60): мастер шагов, формы, главная кабинета */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wizard-nav {
  margin-bottom: 24px;
}

.wizard-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  counter-reset: none;
}

.wizard-nav li {
  flex: 1 1 0;
  min-width: 0;
}

.wizard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
}

.wizard-nav a:hover {
  border-color: var(--gold);
}

.wizard-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
  font: 800 13px/1 Manrope, Arial, sans-serif;
}

.wizard-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wizard-nav li.is-done .wizard-num {
  background: var(--success-bg);
  border-color: #bfe0cb;
  color: var(--success);
}

.wizard-nav li.is-current a {
  border: 2px solid var(--gold);
  background: #fdf8ee;
}

.wizard-nav li.is-current .wizard-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

.lead {
  font-size: 17px;
}

.profile-form {
  margin-top: 8px;
}

.profile-form h2,
.step-finish h2 {
  font-size: 20px;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset.field legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
}

.req {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1.5px solid #c9d1e0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190, 146, 56, 0.25);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error);
}

.input-date {
  max-width: 260px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.check.choice {
  padding: 10px 14px;
  border: 1.5px solid #c9d1e0;
  border-radius: 10px;
  background: var(--white);
}

.check.choice:has(input:checked) {
  border-color: var(--gold);
  background: #fdf8ee;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.privacy-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.notice-info {
  border-inline-start: 4px solid var(--gold);
}

.alert-warning {
  background: #fdf3df;
  color: #6b4c10;
  border: 1px solid #ecd29b;
  border-inline-start: 4px solid var(--gold);
}

.experience-list {
  margin-bottom: 20px;
}

.experience-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experience-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
}

.experience-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.experience-text strong {
  color: var(--navy);
}

.experience-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-danger {
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: var(--white);
}

.step-finish {
  margin-top: 24px;
}

.completion-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-block: 20px;
  border-top: 4px solid var(--gold);
}

.completion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.completion-head h2 {
  font-size: 20px;
  margin: 0;
}

.completion-percent {
  font: 800 32px/1 Manrope, Arial, sans-serif;
  color: var(--navy);
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d6b46a);
  border-radius: 999px;
}

.completion-lead,
.completion-done {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.completion-card .btn {
  align-self: flex-start;
}

.missing-list {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}

.steps-title {
  font-size: 20px;
  margin-top: 28px;
}

.step-cards {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
}

.step-card h3 {
  font-size: 18px;
  margin: 2px 0 0;
}

.step-summary {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.step-card-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 560px) {
  .wizard-nav ol {
    gap: 6px;
  }

  .wizard-nav a {
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  .form-grid,
  .phone-row,
  .missing-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .input-date {
    max-width: none;
  }

  .form-actions .btn,
  .completion-card .btn {
    width: 100%;
  }

  .experience-actions,
  .step-card-side {
    width: 100%;
  }

  .experience-actions .btn,
  .step-card-side .btn {
    flex: 1;
  }
}

/* Анкета 2/2 (EIN-61): шесть шагов, желаемые страны, отправка */
.wizard-nav ol {
  flex-wrap: wrap;
}

.wizard-nav li {
  flex: 1 1 calc(33.333% - 8px);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.country-grid .check.choice {
  padding: 8px 12px;
}

.submit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 20px;
  border-top: 4px solid var(--navy);
}

.submit-card h2 {
  font-size: 20px;
  margin: 0;
}

.submit-card ul {
  margin: 6px 0 0;
  padding-inline-start: 20px;
}

.submit-card form {
  margin: 0;
}

@media (max-width: 560px) {
  .country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-card .btn {
    width: 100%;
  }
}

/* Телефон */
@media (max-width: 560px) {
  .header-row {
    min-height: 60px;
  }

  .brand img {
    width: 160px;
  }

  .auth {
    padding: 20px 12px 40px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .consent-actions .btn,
  .consent-actions .inline-form,
  .consent-give-form .btn {
    width: 100%;
  }

  .consent-actions .inline-form .btn {
    width: 100%;
  }
}

/* Документы (EIN-62): чек-лист, дисклеймер, карточка на тип документа */
.documents-consent {
  margin-block: 16px;
}

.documents-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  margin-block: 20px;
}

.documents-intro h2 {
  font-size: 18px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.checklist li {
  position: relative;
  padding-inline-start: 28px;
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-inline-start: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

[dir="rtl"] .checklist li::before {
  transform: rotate(45deg);
}

.documents-disclaimer p {
  font-size: 14px;
}

.document-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-card > p {
  margin: 0;
}

.document-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.document-head h2 {
  font-size: 20px;
  margin: 0;
}

.document-file {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.document-file p {
  margin: 0 0 6px;
}

.document-name {
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 8px 4px;
}

.document-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.upload-pickers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-picker {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  min-width: 0;
}

.file-picker-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}

.file-picker input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 14px;
}

/* Снимок камерой — на телефонах и планшетах (на компьютере capture открывает обычный выбор файла). */
@media (hover: hover) and (pointer: fine) {
  .camera-picker {
    display: none;
  }
}

.document-upload .btn {
  align-self: flex-start;
}

@media (max-width: 560px) {
  .documents-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-actions .inline-form,
  .document-actions .btn,
  .document-upload .btn {
    width: 100%;
  }
}

.documents-summary {
  margin-block: 16px;
  border-inline-start: 4px solid var(--gold);
}

/* Плашка ошибки интерактивной части (Blazor показывает её сам; хвост ревью EIN-56). */
#blazor-error-ui {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: #fff4dc;
  color: var(--ink);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .reload {
  margin-inline-start: 12px;
  font-weight: 700;
  color: var(--gold-text);
}

#blazor-error-ui .dismiss {
  position: absolute;
  inset-inline-end: 16px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

/* Резюме → анкета (EIN-85): карточки Radzen (material-base) в цветах и шрифте кабинета — загрузка на главной и
   проверка (противоречия, источники) на шаге «О себе». */
.cv-autofill,
.cv-review {
  --rz-text-font-family: var(--font);
  --rz-primary: var(--navy);
  --rz-on-primary: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cv-review ul {
  margin: 0;
  padding-inline-start: 20px;
}

.cv-review .rz-alert p {
  margin-bottom: 6px;
}

/* Противоречия и ошибки загрузки — в цветах .alert-warning сайта: у Radzen «warning lighter» оранжевый текст на
   светло-оранжевом (контраст ниже AA). */
.cv-autofill .rz-alert.rz-warning.rz-shade-lighter,
.cv-review .rz-alert.rz-warning.rz-shade-lighter {
  --rz-alert-background-color: #fdf3df;
  --rz-alert-color: #6b4c10;
  --rz-alert-title-color: #6b4c10;
  border: 1px solid #ecd29b;
  border-inline-start: 4px solid var(--gold);
}

.cv-review .rz-text-subtitle1 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.cv-autofill form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-autofill .rz-button {
  align-self: flex-start;
}
