/* Neutral fallbacks are used outside Telegram; Telegram theme variables take precedence in-app. */
:root {
  --bg: var(--tg-theme-bg-color, #f4f5f7);
  --surface: var(--tg-theme-secondary-bg-color, #ffffff);
  --surface-soft: var(--tg-theme-section-bg-color, #eceff3);
  --text-primary: var(--tg-theme-text-color, #1f2937);
  --text-secondary: var(--tg-theme-subtitle-text-color, var(--tg-theme-hint-color, #687385));
  --accent: var(--tg-theme-button-color, #3b82a0);
  --accent-hover: var(--tg-theme-link-color, #28758f);
  --border: var(--tg-theme-section-separator-color, rgba(15, 23, 42, 0.10));
  --hover: rgba(15, 23, 42, 0.05);
  --progress-inactive: rgba(0, 0, 0, 0.15);
  --progress-active: var(--accent);
  --bg-gradient: var(--bg);
  --header-bg: var(--bg);
  --nav-bg: color-mix(in srgb, var(--surface) 88%, transparent);
  --nav-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  --btn-primary-text: var(--tg-theme-button-text-color, #ffffff);
  --link: var(--tg-theme-link-color, #3b82a0);
  --link-hover: var(--accent-hover);
  --error: #dc2626;
  --avatar-bg: var(--surface-soft);
  --avatar-border: var(--border);
  --dropdown-bg: var(--surface);
  --dropdown-hover: var(--hover);
  --input-bg: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  --input-border: var(--border);
  --wizard-card-bg: var(--surface);
  --wizard-card-border: var(--border);
  --option-hover: var(--hover);
  --option-selected-bg: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --option-selected-border: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-secondary: var(--accent);
}

[data-theme="dark"] {
  --bg: var(--tg-theme-bg-color, #182431);
  --surface: var(--tg-theme-secondary-bg-color, #22303f);
  --surface-soft: var(--tg-theme-section-bg-color, #1e2b39);
  --text-primary: var(--tg-theme-text-color, #f3f5f7);
  --text-secondary: var(--tg-theme-subtitle-text-color, var(--tg-theme-hint-color, #9ba9b7));
  --accent: var(--tg-theme-button-color, #4b8eaa);
  --accent-hover: var(--tg-theme-link-color, #72b4cf);
  --border: var(--tg-theme-section-separator-color, rgba(255, 255, 255, 0.10));
  --hover: rgba(255, 255, 255, 0.07);
  --progress-inactive: rgba(255, 255, 255, 0.2);
  --progress-active: var(--accent);
  --bg-gradient: var(--bg);
  --header-bg: var(--bg);
  --nav-bg: color-mix(in srgb, var(--surface) 86%, transparent);
  --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --btn-primary-text: var(--tg-theme-button-text-color, #ffffff);
  --link: var(--tg-theme-link-color, #72b4cf);
  --link-hover: var(--accent-hover);
  --error: #f87171;
  --avatar-bg: var(--surface-soft);
  --avatar-border: var(--border);
  --dropdown-bg: var(--surface);
  --dropdown-hover: var(--hover);
  --input-bg: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  --input-border: var(--border);
  --wizard-card-bg: var(--surface);
  --wizard-card-border: var(--border);
  --option-hover: var(--hover);
  --option-selected-bg: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --option-selected-border: color-mix(in srgb, var(--accent) 65%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-secondary: var(--accent);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

#root {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background 0.2s ease;
}

.app-header {
  height: 52px;
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-header__left {
  flex: 1;
  min-width: 0;
}

.app-header__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-header__profile {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header__avatar-btn {
  display: block;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-header__avatar-btn:hover {
  transform: scale(1.06);
}
.app-header__avatar-btn:hover .app-header__avatar {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
.app-header__avatar-btn:active .app-header__avatar {
  transform: scale(0.97);
}
.app-header__avatar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avatar-bg);
  border: 2px solid var(--avatar-border);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.app-header__avatar-initials {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.app-header__dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 140px;
  padding: 6px 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--nav-shadow);
  z-index: 100;
}
.app-header__dropdown[hidden] {
  display: none;
}
.app-header__dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease-out;
}
.app-header__dropdown-item:hover {
  background: var(--dropdown-hover);
}
.app-header__dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}
.app-header__dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
}

.app-unregistered-block {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  overflow: auto;
}
.app-unregistered-block[hidden] {
  display: none !important;
}
.app-unregistered-block__content {
  max-width: 320px;
  text-align: center;
}
.app-unregistered-block__icon {
  display: block;
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}
.app-unregistered-block__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}
.app-unregistered-block__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.app-content {
  flex: 1;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(104px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.app-content .wizard {
  margin-top: 24px;
}

.screen {
  display: none;
}

.screen--active {
  display: block;
}

.screen-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}
/* Заголовок страницы только в header, в контенте не дублируем */
.app-content .screen-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.requests-view--hidden {
  display: none !important;
}

.my-requests-empty {
  margin-top: 24px;
  padding: 32px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.my-requests-empty__text {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}
.my-requests-empty__hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.my-requests-loading {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}
.my-requests-loading {
  min-height: 132px;
  border-radius: 16px;
  background: linear-gradient(100deg, var(--surface-soft) 20%, var(--hover) 45%, var(--surface-soft) 70%);
  background-size: 220% 100%;
  color: transparent;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer { to { background-position: -120% 0; } }

.my-requests-card {
  position: relative;
  margin-top: 12px;
  padding: 16px;
  padding-right: 136px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.my-requests-card__status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.9;
}
.status-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}
.status-badge--new { color: var(--accent); background: var(--accent-soft); }
.status-badge--in_progress, .status-badge--interview, .status-badge--sobes { color: var(--link); }
.status-badge--hired, .status-badge--closed { color: #16835f; }
.status-badge--rejected, .status-badge--cancelled { color: var(--error); }
.my-requests-card:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
}
.my-requests-card:active {
  opacity: 0.95;
}
.my-requests-card:first-child {
  margin-top: 16px;
}
.my-requests-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.my-requests-card__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.my-requests-card__count {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 6px 0 0;
  opacity: 0.9;
}
.my-requests-card__dates {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
  opacity: 0.9;
}
.my-requests-card__date-row {
  margin: 2px 0 0;
}
.my-requests-card__date-row:first-child {
  margin-top: 0;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 100px;
}
.request-modal[hidden] {
  display: none !important;
}
.request-modal--close-confirm {
  z-index: 1001;
}
.request-modal--edit-sent-hr {
  z-index: 1001;
}
.request-close-confirm__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 16px;
  background: transparent;
  padding: 0;
  gap: 10px;
}
.request-close-confirm__toggle-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.request-close-confirm__toggle-btn {
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}
.request-close-confirm__toggle-btn:hover {
  color: var(--text-primary);
}
.request-close-confirm__toggle-btn--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.request-close-confirm__toggle-btn--active#request-close-confirm-type-cancel {
  background: color-mix(in srgb, var(--error) 12%, var(--surface));
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
  color: var(--error);
}
.request-close-confirm__toggle-btn strong,
.request-close-confirm__toggle-btn small { display: block; }
.request-close-confirm__toggle-btn strong { font-size: 13px; }
.request-close-confirm__toggle-btn small { display: none; }
.request-close-confirm__toggle-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid currentColor;
  font-size: 17px;
  line-height: 1;
}
.request-close-confirm__toggle-caption {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.25;
  padding: 0 4px;
}
.request-close-confirm__toggle-option:has(.request-close-confirm__toggle-btn--active) .request-close-confirm__toggle-caption {
  color: var(--accent);
  opacity: 0.95;
}
.request-close-confirm__label {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.request-close-confirm__required {
  color: var(--error);
}
.request-close-confirm__textarea {
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.request-close-confirm__textarea[aria-invalid="true"] {
  border-color: var(--error);
}
.request-modal__actions--close-confirm {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: stretch;
  justify-content: stretch;
}
.request-modal__actions--close-confirm .request-modal__btn {
  flex: 1;
  min-width: 0;
}
.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.request-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 148px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--wizard-card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--wizard-card-border);
  border-radius: 20px;
  padding: 18px 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.request-modal__title {
  flex-shrink: 0;
  margin: 0 0 12px;
  padding-right: 40px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.request-modal__title--pending::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: feedback-spinner 0.8s linear infinite;
}
@keyframes feedback-spinner { to { transform: rotate(360deg); } }
.request-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  -webkit-overflow-scrolling: touch;
}
.request-detail-row {
  margin-bottom: 10px;
}
.request-detail-row__label {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.9;
}
.request-detail-row__value {
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 2px;
}
.request-detail-error {
  margin: 0;
  color: var(--text-secondary);
}
.request-modal__actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.request-modal__actions--three {
  grid-template-columns: 1fr 1fr 1fr;
}
.request-modal__actions--three .request-modal__btn {
  min-width: 0;
}
.request-modal__btn {
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.request-modal__btn--primary {
  background: var(--accent);
  color: var(--btn-primary-text);
}
.request-modal__btn--primary:hover {
  background: var(--accent-hover);
}
.request-modal__btn--danger {
  background: var(--error);
  color: #fff;
}
.request-modal__btn--secondary {
  background: var(--surface-soft);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.request-modal__btn--secondary:hover {
  background: var(--hover);
}
.request-modal__btn--ghost {
  background: var(--surface-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.request-modal__btn--ghost:hover {
  background: var(--hover);
}
.request-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.request-modal__close:hover {
  color: var(--text-primary);
  background: var(--hover);
}
.request-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.request-edit-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.request-edit-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
}
.request-edit-form__textarea {
  resize: vertical;
  min-height: 72px;
}

.request-edit-form__label--checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.request-edit-form__checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.request-edit-form__error {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
}

.request-edit-form__input[aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.app-header__admin-btn {
  margin-right: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.app-header__admin-btn:hover {
  background: var(--hover);
}
.app-header__admin-btn--on {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.12);
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}

.dashboard__filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.dashboard__preset-btn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}
.dashboard__preset-btn--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.18);
}

.dashboard__custom {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.dashboard__label {
  font-size: 12px;
  color: var(--text-secondary);
}
.dashboard__date {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 13px;
}
.dashboard__apply {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--btn-primary-text);
  font-size: 12px;
  cursor: pointer;
}

.dashboard__kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.kpi-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 10px;
}
.kpi-card__title {
  font-size: 12px;
  color: var(--text-secondary);
}
.kpi-card__value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

.dashboard__row {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 10px;
}
.dashboard__chart-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.dashboard__chart-canvas {
  width: 100%;
  height: 190px;
}

.dashboard__table-body {
  display: block;
}
.dash-table__row {
  display: grid;
  grid-template-columns: 26px 1fr 56px;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.dash-table__row:first-child {
  border-top: none;
}
.dash-table__cell--idx {
  color: var(--text-secondary);
}
.dash-table__cell--num {
  text-align: right;
  font-weight: 600;
}
.dashboard-empty {
  color: var(--text-secondary);
  font-size: 13px;
}

.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item__btn {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}
.faq-item__btn:hover {
  background: var(--hover);
}
.faq-item__btn::after {
  content: "";
  float: right;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.2s ease-out;
}
.faq-item--open .faq-item__btn::after {
  transform: rotate(180deg);
}
.faq-item__answer {
  padding: 0 16px 14px;
  overflow: hidden;
}
.faq-item__answer p {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--surface-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.requests-filter {
  display: flex;
  gap: 0;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.requests-filter__option {
  flex: 1;
  margin: 0;
  cursor: pointer;
  text-align: center;
}
.requests-filter__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.requests-filter__option span {
  display: block;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.requests-filter__option input:checked + span {
  background: var(--accent);
  color: #fff;
}
.requests-filter__option:not(:last-child) span {
  border-right: 1px solid var(--border);
}

/* Календарь выбора месяца в архиве (Мои заявки / Кандидаты) */
.archive-calendar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
}
.archive-calendar[hidden] {
  display: none !important;
}
.archive-calendar__month {
  flex: 1;
  min-width: 0;
  padding: 10px 32px 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.archive-calendar__nav {
  display: flex;
  gap: 6px;
}
.archive-calendar__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.archive-calendar__btn:hover {
  background: var(--surface-hover);
}
.archive-calendar__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.help-role-switcher {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.help-role-switcher__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.help-role-switcher__segmented {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.help-role-switcher__option {
  flex: 1;
  margin: 0;
  cursor: pointer;
  text-align: center;
}
.help-role-switcher__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.help-role-switcher__option span {
  display: block;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.help-role-switcher__option input:checked + span {
  background: var(--accent);
  color: #fff;
}
.help-role-switcher__option:not(:last-child) span {
  border-right: 1px solid var(--border);
}

.wizard {
  margin-top: 24px;
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: var(--wizard-card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--wizard-card-border);
  display: none;
  flex-direction: column;
  min-height: 420px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.wizard[style*="block"] {
  display: flex !important;
}

.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.wizard-step-title {
  font-size: 17px;
  font-weight: 500;
}

.wizard-step-progress {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-secondary);
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.wizard-progress-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wizard-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--progress-inactive);
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.wizard-progress-dot--filled,
.wizard-progress-dot--current {
  background: var(--progress-active);
}

.wizard-progress-dot--current {
  width: 7px;
  height: 7px;
  margin: -0.5px 0 0 -0.5px;
  box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.3);
}

.wizard-progress-caption {
  display: none;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.wizard-progress-bar {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--progress-inactive);
  overflow: hidden;
}

.wizard-progress-bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.22s ease-out;
}

.wizard-body {
  font-size: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wizard-field-group {
  margin-bottom: 14px;
}

/* Headcount step: same left alignment as other steps */
.wizard-field-group--headcount .wizard-label {
  margin-bottom: 8px;
}
.wizard-field-group--headcount .stepper {
  width: 210px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.wizard-field-group--headcount .stepper__btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, transform 0.08s ease-out;
}
.wizard-field-group--headcount .stepper__btn:hover {
  background: var(--hover);
}
.wizard-field-group--headcount .stepper__btn:active {
  transform: translateY(1px);
}
.wizard-field-group--headcount .stepper__value {
  min-width: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.wizard-field-group--headcount .stepper-quick-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 12px 0 10px;
}
.wizard-field-group--headcount .stepper-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}
.wizard-field-group--headcount .stepper-quick__btn {
  width: 44px;
  min-width: 44px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.wizard-field-group--headcount .stepper-quick__btn:hover {
  background: var(--hover);
}
.wizard-field-group--headcount .stepper-quick__btn.wizard-quick--active {
  background: var(--option-selected-bg);
  border: 1px solid var(--accent);
  color: var(--text-primary);
}
.wizard-field-group--headcount .wizard-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.85;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.stepper__icon {
  font-size: 18px;
  color: var(--text-secondary);
  padding: 6px;
}

.stepper__btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease-out, transform 0.08s ease-out;
}

.stepper__btn:active {
  transform: translateY(1px);
}

.stepper__value {
  min-width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.wizard-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.stepper-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.stepper-quick__btn {
  min-width: 44px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(20, 28, 44, 0.85);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out;
}
.stepper-quick__btn:hover,
.stepper-quick__btn.wizard-quick--active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Salary step spacing */
.wizard-field-group--salary .wizard-label {
  margin-bottom: 16px;
}
.wizard-field-group--salary .wizard-segmented {
  margin-bottom: 20px;
}

.work-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.work-time-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-time-field__label {
  font-size: 13px;
  color: var(--text-secondary);
}
.work-time-field .wizard-input {
  min-width: 100px;
}
.work-time-sep {
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 18px;
}

/* Segmented control: Фиксированная | Договорная */
.wizard-segmented {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
}
.wizard-segmented__option {
  flex: 1;
  text-align: center;
  cursor: pointer;
  margin: 0;
}
.wizard-segmented__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wizard-segmented__option span {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;
}
.wizard-segmented__option:first-child span {
  border-right-width: 0;
  border-radius: 10px 0 0 10px;
}
.wizard-segmented__option:last-child span {
  border-radius: 0 10px 10px 0;
}
.wizard-segmented__option input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.salary-row {
  display: block;
  margin-top: 0;
}
.salary-row.wizard-input--hidden {
  display: none;
}
.salary-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 0 14px;
  min-height: 48px;
}
.salary-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.2);
}
.wizard-input--salary {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  border: none !important;
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none !important;
}
.salary-row__suffix {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.salary-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.salary-quick__btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.salary-quick__btn:hover {
  background: var(--hover);
  color: var(--text-primary);
}

.wizard-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.wizard-templates__chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.wizard-templates__chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

.wizard-date-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.wizard-date-quick__btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out;
}
.wizard-date-quick__btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.wizard-date-quick__btn--selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wizard-date-quick__btn--selected:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.wizard-date-quick__label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Date trigger input (opens calendar popover) */
.wizard-date-trigger {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 8px;
  transition: background 0.12s, border-color 0.12s;
}
.wizard-date-trigger:hover {
  background: var(--hover);
}
.wizard-date-trigger::placeholder {
  color: var(--text-secondary);
}

/* Calendar popover */
.wizard-date-wrap {
  position: relative;
}
.calendar-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  z-index: 100;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--nav-shadow);
  border: 1px solid var(--border);
  padding: 14px;
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
}
.calendar-popover.is-open {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.wizard-label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wizard-label-row .wizard-label {
  margin-bottom: 0;
}
.wizard-info-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.wizard-info-btn:hover {
  background: var(--hover);
  color: var(--text-primary);
}
.wizard-info-tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  z-index: 50;
  max-width: 320px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--option-selected-border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  box-shadow: var(--nav-shadow);
}
.wizard-info-tooltip[hidden] {
  display: none;
}

.calendar-inline {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--nav-shadow);
  border: 1px solid var(--border);
  padding: 14px;
  margin-top: 8px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.calendar-month-select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%239ca3af'%3E%3Cpath d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.calendar-nav__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.12s;
}
.calendar-nav__btn:hover {
  background: var(--hover);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  min-width: 0;
  min-height: 36px;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  margin: 0 auto;
}
.calendar-day:hover:not(.calendar-day--past) {
  background: var(--hover);
}
.calendar-day--selected {
  background: var(--accent);
  color: #fff;
}
.calendar-day--past {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-day--other {
  color: var(--text-secondary);
  opacity: 0.7;
}
.calendar-day--other:not(.calendar-day--past) {
  color: var(--text-primary);
  opacity: 1;
}
.calendar-selected-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.calendar-selected-summary__date {
  color: var(--text-primary);
  font-weight: 500;
}
.calendar-selected-summary__distance {
  margin-top: 2px;
  font-size: 12px;
  color: var(--accent);
}
.calendar-reset-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.calendar-reset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.wizard-date-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.wizard-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-option {
  position: relative;
  font-size: 13px;
  cursor: pointer;
}

.wizard-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-option__card {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wizard-option__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.wizard-option__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.wizard-option__text {
  flex: 1;
  min-width: 0;
}
.wizard-option__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wizard-option__desc {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.wizard-option__desc--small {
  font-size: 10px;
  line-height: 1.3;
}

.wizard-option__check {
  font-size: 12px;
  color: var(--accent-secondary);
  opacity: 0;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.wizard-option:hover .wizard-option__card {
  background: var(--option-hover);
}

.wizard-option input[type="radio"]:checked + .wizard-option__card {
  background: var(--option-selected-bg);
  border: 1px solid var(--option-selected-border);
  color: var(--text-primary);
}

.wizard-option input[type="radio"]:checked + .wizard-option__card .wizard-option__check {
  opacity: 1;
}

.wizard-input,
.wizard-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  min-height: 48px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wizard-textarea {
  min-height: 96px;
  resize: vertical;
}

.wizard-input--hidden {
  display: none;
}

.wizard-summary {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.wizard-summary-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.wizard-summary-row:last-child {
  border-bottom: none;
}

.wizard-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.wizard-summary-value {
  font-size: 13px;
}

.wizard-input:focus,
.wizard-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wizard-search { margin-bottom: 10px; }

.wizard-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  gap: 16px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.wizard-footer__spacer {
  flex: 1;
}

.wizard-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-btn--primary {
  background: var(--accent);
  color: var(--btn-primary-text);
  font-weight: 500;
  box-shadow: 0 5px 12px var(--accent-soft);
}

.wizard-btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 6px 14px var(--accent-soft);
}

.wizard-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.wizard-btn--ghost:hover:not(:disabled) {
  background: var(--hover);
}

.wizard-btn--link {
  background: transparent;
  border: none;
  color: var(--link);
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  text-decoration: none;
}

.wizard-btn--link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.wizard-btn:active:not(:disabled) {
  transform: none;
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-error {
  margin-top: 4px;
  font-size: 11px;
  color: var(--error);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 420px;
  height: 68px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: var(--nav-shadow);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bottom-nav__item {
  flex: 1;
  min-width: 0;
  margin: 0 2px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.bottom-nav__item:hover {
  background: var(--hover);
  color: var(--text-primary);
}
.bottom-nav__item:active {
  transform: scale(0.96);
}

.bottom-nav__item--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.bottom-nav__item--active:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav__label {
  white-space: nowrap;
  font-size: 11px;
}

.admin-mode-toggle {
  position: fixed;
  z-index: 50;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 16px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
}
.admin-mode-toggle--on { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Уведомление об успешном создании заявки */
.request-success-toast {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.request-success-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.request-success-toast__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.request-success-toast__icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 20px;
}
.request-success-toast__text {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}
.request-success-toast__hint {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100%;
}
.request-success-toast__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.request-success-toast__btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.request-success-toast__btn:active {
  opacity: 0.9;
}
.request-success-toast__btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px var(--accent-soft);
}
.request-success-toast__btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.request-success-toast__btn--secondary:hover {
  background: var(--surface-soft);
}

/* Модальное окно просмотра заявки */
.request-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.request-detail-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.request-detail-modal[hidden] {
  display: none !important;
}
.request-detail-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.request-detail-modal__inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow: auto;
  padding: 24px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.request-detail-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.request-detail-modal__close:hover {
  color: var(--text-primary);
  background: var(--surface-soft);
}
.request-detail-modal__title {
  margin: 0 32px 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.request-detail-modal__body {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-primary);
}
.request-detail-modal__row {
  margin-bottom: 12px;
}
.request-detail-modal__row:last-child {
  margin-bottom: 0;
}
.request-detail-modal__label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.request-detail-modal__value {
  font-size: 14px;
  color: var(--text-primary);
}
.request-detail-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.request-detail-modal__btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.request-detail-modal__btn:active {
  opacity: 0.9;
}
.request-detail-modal__btn--primary {
  background: var(--accent, #f59e0b);
  color: #fff;
}
.request-detail-modal__btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.request-detail-modal__btn--secondary:hover {
  background: var(--surface-soft);
}
