/* ==========================================================================
   НооЛинк — общие компоненты
   ========================================================================== */

/* ---- Обёртка витрины (за пределами "телефона") ---- */
.stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f9fb, #ffffff);
}

/* ---- Рамка телефона ---- */
.phone-frame {
  position: relative;
  width: 402px;
  max-width: 100%;
  height: 874px;
  max-height: 100dvh;
  background: var(--bg-void);
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

@media (max-width: 460px) {
  .phone-frame {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .stage {
    padding: 0;
  }
}

/* ---- Фон-созвездие (сквозной по всей рамке телефона) ---- */
.constellation-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ---- Фон для саммит-экранов (Кейс 4+): едва заметная вертикальная
   разметка (в духе сайта NooSoft) + широкое тёплое пятно света сверху,
   окрашенное в акцент активного саммита (--accent-spark), + едва заметный
   отголосок того же акцента снизу-справа. Один общий фон на все экраны
   "внутри саммита" — так смена темы (data-theme на .phone-frame) красит
   сразу весь фон, а не только точечные акценты в иконках. ---- */
.summit-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0, rgba(0, 0, 0, 0.025) 1px, transparent 1px, transparent 25%),
    radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--accent-spark) 15%, transparent) 0%, transparent 70%),
    radial-gradient(circle at 90% 95%, color-mix(in srgb, var(--accent-spark) 7%, transparent) 0%, transparent 45%),
    var(--bg-void);
}
.summit-bg__grain {
  display: none;
}

/* ---- Статус-бар ---- */
.status-bar {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 6px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.status-bar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

/* ---- Экран ---- */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 0 24px 28px;
  overflow: hidden;
}

.screen--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen--scroll::-webkit-scrollbar { display: none; }

.screen__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ---- Прокручиваемый контент с закреплённым футером ниже (например, "Выйти") ---- */
.screen__content--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen__content--scroll::-webkit-scrollbar { display: none; }

.screen__footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-hairline);
}

/* ---- Закреплённая шапка над прокручиваемым контентом ---- */
.screen__header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

/* ---- Бренд-марка ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 122, 255, 0.25));
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ---- Верхняя панель экрана ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: var(--space-6);
}

.topbar__back {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.topbar__back:hover { background: var(--bg-surface-2); }
.topbar__back:active { transform: scale(0.9); }

.topbar__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}

/* ---- Брендинг саммита в шапке — лого + название саммита вместо заголовка экрана,
   самый сильный сигнал "я внутри конкретного саммита" (сильнее оттенка иконок). ---- */
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.topbar__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-hairline);
}
/* Инициалы (нет своего лого) — цветной бейдж вместо белого кружка, чтобы буквы
   были читаемы. Своя картинка-лого (в т.ч. дефолтная иконка НооЛинк) — всегда на
   белой подложке с небольшим полем: логотипы почти всегда рисуются под светлый фон,
   заливка темы под ними может "съесть" контраст (особенно на прозрачных краях PNG). */
.topbar__brand-mark.is-org { background: var(--gradient-spark); border-color: transparent; }
.topbar__brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar__brand-mark .org-mark__text { font-size: 11px; }
.topbar__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--accent-spark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--gradient-spark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: none;
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.avatar-btn:active { transform: scale(0.9); }
.avatar-btn__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Числовой фрагмент внутри обычного текста (номер телефона и т.п. в предложении) ---- */
.mono-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---- Типографика ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}

/* ---- Подзаголовок внутри секции (например, деление "Основные"/"Дополнительные") ---- */
.subeyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-3);
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.body-lg {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: var(--space-3) 0 0;
  font-weight: 500;
}

.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ---- Поле ввода ---- */
.field {
  margin-bottom: var(--space-5);
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.field__input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--accent-spark-dim);
}

.field__input-wrap.is-static {
  background: var(--bg-surface-3);
  border-style: dashed;
  cursor: default;
}

.field__input-wrap.is-error {
  border-color: var(--red-error);
  animation: field-shake 340ms var(--ease-out);
}

.field__prefix {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: var(--space-2);
  user-select: none;
}

.field__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 500;
  padding: 16px 0;
  letter-spacing: 0.02em;
  min-width: 0;
}

.field__input::placeholder {
  color: var(--text-tertiary);
  font-family: inherit;
  font-weight: 500;
}

/* ---- Встроенная кнопка отправки внутри поля (вместо модалки/отдельной кнопки) ---- */
.field__submit-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: var(--bg-surface-3);
  cursor: not-allowed;
  margin-left: 6px;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}
.field__submit-btn svg { transition: transform var(--dur-base) var(--ease-out); }
.field__submit-btn:not(:disabled) {
  background: var(--gradient-spark);
  color: var(--text-on-accent);
  cursor: pointer;
  box-shadow: var(--glow-spark);
}
.field__submit-btn:not(:disabled):hover svg { transform: translateX(2px); }
.field__submit-btn:not(:disabled):active { transform: scale(0.88); }

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-error);
  margin-top: var(--space-2);
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.field__error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Кнопки ---- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out), opacity var(--dur-base);
  width: 100%;
}

.btn-primary {
  background: var(--gradient-spark);
  color: var(--text-on-accent);
  box-shadow: var(--glow-spark);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary:disabled:active { transform: none; }

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-hairline);
}
.btn-ghost:active { transform: scale(0.97); }

.btn-danger {
  background: var(--red-error);
  color: var(--text-on-accent);
}
.btn-danger:active { transform: scale(0.97); }

.btn-text {
  background: transparent;
  color: var(--accent-spark);
  padding: 8px;
  width: auto;
  font-size: 15px;
}
.btn-text:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.btn-danger-text {
  background: transparent;
  color: var(--red-error);
  padding: 8px;
  width: auto;
  font-size: 15px;
}

/* ---- Спиннер ожидания в кнопке (ответ сервера при отправке формы) ---- */
.btn__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  flex: 0 0 auto;
  animation: btn-spinner-rotate 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn-ghost .btn__spinner,
.btn-text .btn__spinner {
  border-color: var(--border-hairline);
  border-top-color: var(--accent-spark);
}

.field__submit-btn .btn__spinner { display: none; }
.field__submit-btn.is-loading .field__submit-icon { display: none; }
.field__submit-btn.is-loading .btn__spinner { display: inline-block; }

/* ---- Тихая ссылка выхода — намеренно неприметная, чтобы не нажималась случайно ---- */
.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.logout-link svg { flex: 0 0 auto; opacity: 0.8; }
.logout-link:hover,
.logout-link:focus-visible {
  color: var(--red-error);
  background: var(--bg-surface);
}
.logout-link:active { transform: scale(0.96); }

/* ---- OTP-поля ---- */
.otp-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin: var(--space-2) 0 var(--space-6);
}

.otp-digit {
  width: 60px;
  height: 68px;
  text-align: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
  caret-color: var(--accent-spark);
}

.otp-digit:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--accent-spark-dim);
  transform: translateY(-2px);
}

.otp-digit.is-filled {
  border-color: var(--accent-spark);
}

.otp-digit.is-error {
  border-color: var(--red-error);
  animation: field-shake 340ms var(--ease-out);
}

.otp-digit.is-success {
  border-color: var(--mint-live);
  background: var(--mint-live-dim);
}

/* ---- Ссылка "изменить" / meta-строка ---- */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-row .link {
  color: var(--accent-spark);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

/* ---- Таймер ---- */
.timer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: var(--space-4);
}

/* ---- Кнопка повторной отправки кода ----
   Один и тот же элемент на протяжении обратного отсчёта и после него —
   меняются только цвет/иконка/курсор, чтобы переход не выглядел
   как резкая подмена текста на кнопку. */
.resend-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

.resend-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-tertiary);
  cursor: default;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}

.resend-btn__icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) rotate(-40deg);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.resend-btn__icon svg { width: 100%; height: 100%; }

.resend-btn.is-ready {
  color: var(--accent-spark);
  background: var(--bg-surface);
  border-color: var(--border-hairline);
  cursor: pointer;
}
.resend-btn.is-ready .resend-btn__icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.resend-btn.is-ready:hover {
  border-color: var(--accent-spark);
  box-shadow: 0 0 0 3px var(--accent-spark-dim);
}
.resend-btn.is-ready:active { transform: scale(0.95); }

.resend-btn.is-spinning .resend-btn__icon {
  animation: resend-spin 500ms var(--ease-out);
}

@keyframes resend-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Тост ---- */
.toast {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 70;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur-base);
  pointer-events: none;
}
.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.toast.is-error { border-color: rgba(255, 59, 48, 0.4); }
.toast.is-success { border-color: rgba(52, 199, 89, 0.4); }

/* Пока открыта модалка (шит/центр-карточка), тост уходит наверх экрана — под шитом или
   в затемнённо-заблюренном фоне снизу его не видно. Блюр самой модалки при этом не трогаем. */
.phone-frame:has(.sheet-overlay.is-open) .toast {
  top: 66px;
  bottom: auto;
  transform: translateY(-120%);
}
.phone-frame:has(.sheet-overlay.is-open) .toast.is-visible {
  transform: translateY(0);
}

/* ---- Модалка (bottom sheet) ---- */
.sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 12, 0.6);
  backdrop-filter: blur(6px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  overflow-y: auto;
  background: var(--bg-surface-2);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px 32px;
  box-shadow: var(--shadow-modal);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-spring);
}

/* ---- Модалка по центру (вместо bottom sheet) ---- */
.sheet-overlay.is-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: 82%;
  overflow-y: auto;
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-modal);
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}
.sheet-overlay.is-center.is-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ---- Мини-шаги внутри шита (например, смена номера в 2 шага) ---- */
.sheet-step { display: none; }
.sheet-step.is-active { display: block; animation: content-rise var(--dur-base) var(--ease-out) both; }
.sheet__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sheet__close:active { transform: scale(0.9); }
.sheet-overlay.is-open .sheet {
  transform: translateY(0);
}

.sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-hairline);
  margin: 0 auto var(--space-5);
}

.sheet__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---- Системный алерт (нативный диалог ОС) ---- */
.native-alert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast);
}
.native-alert-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.native-alert {
  width: 270px;
  background: #f2f2f7;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  transform: scale(0.85);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.native-alert-overlay.is-open .native-alert {
  transform: scale(1);
}

.native-alert__title {
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1e;
  padding: 18px 16px 4px;
}
.native-alert__body {
  font-size: 13px;
  color: rgba(60, 60, 67, 0.7);
  padding: 0 16px 16px;
  line-height: 1.4;
}
.native-alert__actions {
  display: flex;
  border-top: 1px solid rgba(60, 60, 67, 0.2);
}
.native-alert__btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 16px;
  color: #007aff;
  background: none;
  border: none;
  cursor: pointer;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.native-alert__btn:first-child { border-left: none; font-weight: 400; }
.native-alert__btn:last-child { font-weight: 600; }
.native-alert__tag {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-top: var(--space-4);
  text-align: center;
}

/* ---- Терминология / служебное ---- */
.legal {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-tertiary);
  text-align: center;
}
.legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-hairline);
}

/* ---- Возврат к карте кейсов (инструмент ревью, не часть продукта) ---- */
.home-nav {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100;
}
.home-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-base), border-color var(--dur-base);
}
.home-nav__btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-noo);
}
.home-nav__btn:active { transform: scale(0.9); }

/* ---- Демо-панель (инструмент ревью, не часть продукта) ---- */
.demo-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  font-family: var(--font-mono);
}

.demo-panel__toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow-card);
}

.demo-panel__body {
  position: absolute;
  bottom: 54px;
  right: 0;
  width: 220px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}
.demo-panel.is-open .demo-panel__body { display: flex; }

.demo-panel__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 6px 2px 0;
}
.demo-panel__label:first-child { margin-top: 0; }

.demo-panel__btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
}
.demo-panel__btn:hover { background: var(--bg-surface); }

/* ---- Профиль: заголовок с фото ---- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) 0 var(--space-6);
}

.avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--gradient-spark);
}

.avatar__initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-spark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--text-on-accent);
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}

.avatar__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 1.5px dashed var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}

.avatar__edit-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 2.5px solid var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.avatar__edit-badge:active { transform: scale(0.88); }

.profile-header .display-md { margin-top: var(--space-4); }

.profile-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-mono);
}
.profile-header__meta .dot { opacity: 0.4; }
.profile-header__hint {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ---- Баннер-приглашение заполнить профиль ---- */
.nudge-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-spark-soft);
  border: 1px solid var(--accent-noo-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: var(--space-6);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-base);
}
.nudge-banner:hover { border-color: var(--accent-noo); }
.nudge-banner:active { transform: scale(0.98); }
.nudge-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-spark);
  flex: 0 0 auto;
}
.nudge-banner__text { flex: 1; }
.nudge-banner__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.nudge-banner__sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nudge-banner__arrow {
  color: var(--text-tertiary);
  flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease-out);
}
.nudge-banner:hover .nudge-banner__arrow { transform: translateX(3px); color: var(--accent-noo); }

/* ---- Карточка контактной информации (read-only, сгруппированные строки) ---- */
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}
.info-row + .info-row { border-top: 1px solid var(--border-hairline); }
.info-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-noo);
  flex: 0 0 auto;
}
.info-row__body { flex: 1; min-width: 0; }
.info-row__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}
.info-row__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.info-row__value.is-empty {
  color: var(--text-tertiary);
  font-weight: 500;
  font-style: normal;
}
.info-row__value--wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-weight: 500;
  line-height: 1.45;
}
.info-row__icon--accent {
  background: var(--accent-spark-dim);
  color: var(--accent-spark);
}

/* ---- Разделитель между зонами экрана (шапка профиля / данные) ---- */
.section-divider {
  height: 1px;
  background: var(--border-hairline);
  margin: var(--space-6) 0;
}

/* ---- Витрина текущего саммита ---- */
.summit-spotlight {
  position: relative;
  background: var(--bg-surface);
  border: 1.5px solid var(--accent-spark-dim);
  border-left: 5px solid var(--accent-spark);
  border-radius: var(--radius-lg);
  padding: 20px 20px 20px 16px;
  overflow: hidden;
}
.summit-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 110% at 0% 0%, var(--accent-spark-dim) 0%, transparent 75%);
  pointer-events: none;
}
.summit-spotlight__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
}
.summit-spotlight__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint-live);
}
.summit-spotlight__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
/* ---- Лого организатора саммита (карточки списка "Мои саммиты"): та же логика,
   что и в шапке саммита (topbar__brand-mark) и в renderOrgMark из shared.js —
   картинка, если у саммита есть свой логотип, иначе бейдж с инициалами/иконка НооЛинк. ---- */
.summit-spotlight__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
/* Своя картинка-лого — на белой подложке (логотипы рисуются под светлый фон, а
   цветная заливка темы под прозрачными краями PNG съедает контраст); инициалы —
   на цветном бейдже, там подложка не нужна, наоборот важен акцент темы. */
.summit-spotlight__mark.is-org { background: var(--gradient-spark); border-color: transparent; }
.summit-spotlight__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.summit-spotlight__mark .org-mark__text { font-size: 16px; }
.summit-spotlight__head .summit-spotlight__name { margin-bottom: 0; }
.summit-spotlight__name {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.summit-spotlight__meta {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.summit-spotlight__bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.summit-spotlight__chevron {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-spark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.summit-spotlight--clickable {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.summit-spotlight--clickable:hover {
  border-color: var(--accent-spark);
  box-shadow: var(--glow-spark);
}
.summit-spotlight--clickable:hover .summit-spotlight__chevron {
  transform: translateX(2px);
}
.summit-spotlight--clickable:active { transform: scale(0.985); }
.summit-spotlight.is-empty {
  text-align: center;
  padding: 26px 20px;
}
.summit-spotlight.is-empty::before { display: none; }
.summit-spotlight.is-empty .summit-spotlight__name {
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}
.summit-spotlight.is-empty .summit-spotlight__meta {
  font-family: var(--font-body);
  font-size: 13px;
}

/* ---- Форм-карточка (сгруппированные редактируемые поля) ---- */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.form-row {
  padding: 12px 16px;
  position: relative;
}
.form-row + .form-row { border-top: 1px solid var(--border-hairline); }
.form-row__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.form-row__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 0;
}
.form-row__input.is-textarea {
  resize: none;
  min-height: 72px;
  line-height: 1.5;
  font-weight: 500;
  font-size: 14.5px;
}
.form-row__input::placeholder {
  color: var(--text-tertiary);
  font-weight: 500;
}
.form-row.is-error .form-row__input,
.form-row.is-error .form-row__static { color: var(--red-error); }
.form-row.is-error { animation: field-shake 340ms var(--ease-out); }
.form-row--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-row--action .form-row__body { flex: 1; min-width: 0; }
.form-row__static {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.form-row__error {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-error);
  margin-top: 4px;
  display: none;
}
.form-row.is-error .form-row__error { display: block; }

/* ---- Строка-ссылка внутри карточки — целиком кликабельна, открывает шит ---- */
.form-row--link {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.form-row--link:hover { background: var(--bg-surface-2); }
.form-row--link:active { background: var(--bg-surface-3); }
.form-row--link .form-row__chevron {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.form-row--link:hover .form-row__chevron { transform: translateX(2px); color: var(--accent-spark); }

/* ---- Строка-ссылка в стиле настроек — с цветной подписью ---- */
.settings-row--link {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.settings-row--link:hover { background: var(--bg-surface-2); }
.settings-row--link:active { background: var(--bg-surface-3); }
.settings-row--link .settings-row__chevron {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease-out);
}
.settings-row--link:hover .settings-row__chevron { transform: translateX(2px); }

/* ---- Заголовок секции ---- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.section-title .eyebrow { margin: 0; }
.section-title__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.section-title__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-noo);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
}
.section-title__link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -1px;
}
.section-title__link:hover { color: var(--accent-spark); }

/* ---- Карточка саммита (в профиле — некликабельная) ---- */
.summit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-spark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.summit-card + .summit-card { margin-top: var(--space-3); }
.summit-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.summit-card__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-hairline);
}
.summit-card__mark.is-org { background: var(--gradient-spark); border-color: transparent; }
.summit-card__mark img { width: 76%; height: 76%; object-fit: contain; display: block; }
.summit-card__mark .org-mark__text { font-size: 13px; }
.summit-card--quiet .summit-card__mark { width: 30px; height: 30px; }
.summit-card--quiet .summit-card__mark .org-mark__text { font-size: 11.5px; }

.summit-card--clickable {
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.summit-card--clickable:hover { border-color: var(--accent-spark); background: var(--bg-surface-2); }
.summit-card--clickable:active { transform: scale(0.98); }
.summit-card__chevron {
  flex: 0 0 auto;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.summit-card--clickable:hover .summit-card__chevron { transform: translateX(2px); color: var(--accent-spark); }

.summit-card--quiet {
  padding: 12px 14px;
  background: transparent;
}
.summit-card--quiet:hover { background: var(--bg-surface); }
.summit-card--quiet .summit-card__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.summit-card--quiet:hover .summit-card__name { color: var(--text-primary); }
.summit-card--quiet .summit-card__date { font-size: 12px; }
.summit-card--quiet .summit-card__chevron { width: 14px; height: 14px; }

/* ---- Плитка "добавить код" — в стиле карточки списка, но пунктиром ---- */
.add-code-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1.5px dashed var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.add-code-tile:hover {
  border-color: var(--accent-spark);
  color: var(--accent-spark);
  background: var(--bg-surface);
}
.add-code-tile:active { transform: scale(0.98); }

/* ---- Нативный select со своей стрелкой ---- */
/* ---- Кастомный dropdown (нативный <select> нельзя стилизовать в открытом виде).
   Меню рендерится в отдельный слой-портал на всю рамку телефона и раскрывается
   ВВЕРХ от кнопки — так оно не обрезается overflow:hidden у карточек и не
   раздувает блок под собой, как было при разворачивании внутри потока. ---- */
.dropdown-portal {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-surface-3);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 8px 10px 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out);
}
.dropdown__trigger:hover { border-color: var(--accent-spark); }
.dropdown__trigger svg { flex: 0 0 auto; transition: transform var(--dur-base) var(--ease-out); color: var(--text-tertiary); }
.dropdown__trigger.is-open { border-color: var(--border-focus); }
.dropdown__trigger.is-open svg { transform: rotate(-180deg); }

.dropdown__menu {
  position: absolute;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
  padding: 4px;
  pointer-events: auto;
  animation: content-rise var(--dur-fast) var(--ease-out) both;
}
.dropdown__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.dropdown__option:hover { background: var(--bg-surface-3); }
.dropdown__option.is-selected { color: var(--accent-spark); }
.dropdown__option.is-selected svg { display: block; }
.dropdown__option svg { display: none; flex: 0 0 auto; }

/* ---- Сетка карточек соцсетей — компактнее, когда их несколько ---- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px;
  min-width: 0;
}
.contact-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.contact-card__remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.contact-card__remove:hover { background: var(--red-error); color: var(--text-on-accent); }
.contact-card__fixed-label {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-surface-3);
  border: 1.5px solid transparent;
  border-radius: var(--radius-xs);
  padding: 8px 9px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
}
.contact-card .dropdown__trigger {
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 7px 8px 7px 9px;
  font-size: 12px;
  margin-bottom: 0;
}
.contact-card .dropdown__trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-card .field__input-wrap { padding: 0 9px; }
.contact-card .field__prefix { font-size: 13px; }
.contact-card .field__input { font-size: 13px; padding: 8px 0; }
.contact-card .field__input-wrap.is-static .field__input { font-size: 12px; white-space: normal; }
.contact-card .caption { font-size: 10.5px; margin-top: 6px; line-height: 1.35; }

/* ---- Список контактов построчно (редактирование) — та же карточка, что и в
   сетке, просто в один столбец внутри общей рамки, как copy-row в просмотре ---- */
.contact-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.contact-list .contact-card {
  border: none;
  border-radius: 0;
  padding: 16px;
}
.contact-list .contact-card + .contact-card { border-top: 1px solid var(--border-hairline); }
.contact-list .contact-card__head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-list .contact-card__remove {
  width: 30px;
  height: 30px;
}
.contact-list .contact-card__fixed-label {
  padding: 10px 12px;
  font-size: 13px;
}
.contact-list .contact-card .dropdown__trigger {
  flex: 0 0 auto;
  width: auto;
  max-width: 160px;
  padding: 9px 10px 9px 12px;
  font-size: 13px;
}
.contact-list .field__input-wrap { padding: 0 12px; }
.contact-list .field__prefix { font-size: 14px; }
.contact-list .field__input { font-size: 14px; padding: 11px 0; }
.contact-list .field__input-wrap.is-static .field__input { font-size: 13.5px; white-space: normal; padding: 11px 0; }

/* ---- Read-only вариант карточки соцсети (экран «Профиль») ---- */
.contact-card__type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-spark);
  font-weight: 700;
  margin-bottom: 5px;
}
.contact-card__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  overflow-wrap: break-word;
}

/* ---- Строка контакта с копированием (экран «Профиль») ---- */
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}
.copy-row + .copy-row { border-top: 1px solid var(--border-hairline); }
.copy-row__body { flex: 1; min-width: 0; }
.copy-row__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}
.copy-row__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
/* ---- Значения с копированием по тапу (без отдельной кнопки) ---- */
[data-copy]:not([data-copy=""]) {
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
[data-copy]:not([data-copy=""]):active { opacity: 0.6; }
[data-copy].is-copied { color: var(--mint-live); }

.summit-card__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.summit-card__date {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge--active {
  color: var(--mint-live);
  background: var(--mint-live-dim);
}
.status-badge--past {
  color: var(--text-tertiary);
  background: var(--bg-surface-3);
}

/* ---- Строка данных (например, отображение телефона в редактировании) ---- */
.field__static-action {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--accent-noo);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 8px 4px;
}

/* ---- Экшн-шит: список опций (например, обновление фото) ---- */
.sheet__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.sheet__option:last-of-type { border-bottom: none; }
.sheet__option-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-noo);
  flex: 0 0 auto;
}
.sheet__option.is-danger { color: var(--red-error); }
.sheet__option.is-danger .sheet__option-icon { color: var(--red-error); }

/* ---- Skeleton-заглушки (имитация краткой подгрузки данных при первом
   открытии экрана — не часть реальной задержки бэкенда, только ощущение) ---- */
.skeleton-group {
  transition: opacity 180ms var(--ease-out);
}
.skeleton-group.is-leaving { opacity: 0; }

.skeleton-line,
.skeleton-card,
.skeleton-circle {
  background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--bg-surface-3) 50%, var(--bg-surface-2) 75%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
.skeleton-line {
  height: 12px;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-2);
}
.skeleton-card {
  height: 64px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.skeleton-circle { border-radius: 50%; }

/* ---- Пустое состояние (переиспользуемое) ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
}
.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}
.empty-state__icon--accent {
  background: var(--gradient-spark-soft);
  color: var(--accent-spark);
}
.empty-state--fill { flex: 1; justify-content: center; }
.empty-state__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.empty-state__sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 240px;
  line-height: 1.5;
}

/* ---- Переключатель (настройки) ---- */
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-block;
}
.switch input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--bg-surface-3);
  border-radius: var(--radius-pill);
  transition: background var(--dur-base) var(--ease-out);
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-on-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-base) var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--gradient-spark); }
.switch input:checked ~ .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--accent-spark-dim); }
.switch.is-disabled { opacity: 0.5; }
.switch.is-disabled input { cursor: not-allowed; }

/* ---- Строка настройки (переиспользует .form-card как обёртку) ---- */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.settings-row + .settings-row { border-top: 1px solid var(--border-hairline); }
.settings-row__body { flex: 1; min-width: 0; }
.settings-row__label { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.settings-row__sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.settings-row__error {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-error);
  margin-top: 2px;
  display: none;
}
.settings-row.is-error { animation: field-shake 340ms var(--ease-out); }
.settings-row.is-error .settings-row__error { display: block; }

/* ---- Теги (сфера/запросы/компетенции) ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.tag__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.tag__remove:hover { background: var(--red-error); color: var(--text-on-accent); }

.tag-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}
.tag-field__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: none;
  border: 1.5px dashed var(--border-hairline);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base);
}
.tag-field__add:hover { border-color: var(--accent-spark); color: var(--accent-spark); }

/* ---- Плоский вариант поля тегов — для использования внутри цветной панели ---- */
.tag-field--flat {
  background: none;
  border: none;
  padding: 0;
  min-height: auto;
}
.info-panel .tag-field__add {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75);
}
.info-panel .tag-field__add:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.info-panel .tag__remove {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}
.info-panel .tag__remove:hover { background: var(--red-error); color: #fff; }

/* ---- Поле-селект (открывает шит выбора) ---- */
.select-field {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out);
}
.select-field:hover { border-color: var(--accent-spark); }
.select-field.is-placeholder { color: var(--text-tertiary); font-weight: 500; }
.select-field__chevron { flex: 0 0 auto; color: var(--text-tertiary); transform: rotate(90deg); }

/* ---- Список выбора внутри шита (справочники) ---- */
.picker-search {
  margin-bottom: var(--space-4);
}
.picker-list {
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 -24px;
  padding: 0 24px;
  scrollbar-width: none;
}
.picker-list::-webkit-scrollbar { display: none; }
.picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}
.picker-option:last-child { border-bottom: none; }
.picker-option__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hairline);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background var(--dur-fast) var(--ease-spring), border-color var(--dur-base), color var(--dur-base);
}
.picker-option.is-selected .picker-option__check {
  background: var(--gradient-spark);
  border-color: transparent;
  color: var(--text-on-accent);
}
.picker-empty {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  padding: var(--space-6) 0;
  display: none;
}

/* ---- Экшн-тайлы (быстрые действия профиля) ---- */
.action-row { display: flex; gap: 12px; }
.action-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.action-tile:hover { border-color: var(--accent-spark); box-shadow: var(--glow-spark); }
.action-tile:active { transform: scale(0.97); }
.action-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-spark);
}

/* ---- QR-заглушка ---- */
.qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.5);
}
.qr-mock-wrap {
  position: relative;
  width: 100%;
}
.qr-mock {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 0;
}
.qr-mock div { background: transparent; }
.qr-mock div.on { background: #1c1c1e; }
.qr-mock-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-mock-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* ---- Метка организатора: по умолчанию иконка НооЛинк (белый кружок), но если у
   саммита свой организатор — цветной бейдж с инициалами вместо неё (см. renderOrgMark
   в shared.js). Используется и в QR-бейдже, и в лоадере входа в саммит. ---- */
.qr-mock-logo.is-org,
.loading-ring__logo.is-org {
  background: var(--gradient-spark);
  box-shadow: none;
}
.org-mark__text {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.qr-mock-logo .org-mark__text { font-size: 19px; }
.loading-ring__logo .org-mark__text { font-size: 15px; }

/* ---- Профиль-«бейдж» (Кейс 4, экран «Профиль») ---- */
.identity-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.identity-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}

/* ---- Линия отрыва, как на бейдже мероприятия ---- */
.identity-card__perforation {
  position: relative;
  height: 0;
  border-top: 1.5px dashed var(--border-hairline);
  margin: 0 -18px 14px;
}
.identity-card__perforation::before,
.identity-card__perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 1px solid var(--border-hairline);
}
.identity-card__perforation::before { left: -7px; }
.identity-card__perforation::after { right: -7px; }

.identity-card__bottom {
  position: relative;
  z-index: 1;
}

/* ---- Единая кнопка "Поделитесь QR" ---- */
.identity-card__share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: var(--gradient-spark);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--glow-spark);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}
.identity-card__share:hover { box-shadow: 0 14px 36px -8px rgba(0, 122, 255, 0.55); }
.identity-card__share:active { transform: scale(0.98); }
.identity-card__share svg { flex: 0 0 auto; }

/* ---- Кнопка редактирования рядом с ФИО ---- */
.identity-card__edit {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.identity-card__edit:hover { background: var(--gradient-spark); color: var(--text-on-accent); }
.identity-card__edit:active { transform: scale(0.9); }

.avatar-ring {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gradient-spark);
  padding: 2.5px;
  box-shadow: var(--glow-spark);
}
.avatar-ring .avatar {
  width: 100%;
  height: 100%;
}
.avatar-ring .avatar__initials {
  font-size: 19px;
  border: 2.5px solid var(--bg-surface);
}

.identity-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.identity-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-card__role {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity-card__role svg { flex: 0 0 auto; opacity: 0.7; }
.identity-card__role .dot { opacity: 0.4; flex: 0 0 auto; }
.identity-card__role span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- QR в нижней части бейджа ---- */
/* ---- CTA контакта — вынесен отдельно, сразу под бейджем ---- */
.contact-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.contact-cta:hover { border-color: var(--accent-spark); background: var(--bg-surface-2); }
.contact-cta:active { transform: scale(0.98); }
.contact-cta__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-spark-soft);
  color: var(--accent-spark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.contact-cta__body { flex: 1; min-width: 0; }
.contact-cta__label { font-size: 14px; font-weight: 700; }
.contact-cta__handle { font-size: 12.5px; color: var(--text-secondary); font-family: var(--font-mono); }
.contact-cta__chevron { flex: 0 0 auto; color: var(--text-tertiary); transition: transform var(--dur-base) var(--ease-out); }
.contact-cta:hover .contact-cta__chevron { transform: translateX(2px); color: var(--accent-spark); }

/* ---- Спек-таблица (Запросы / Сфера / Компетенции) ---- */
.spec-row { display: flex; gap: 14px; padding: 12px 0; }
.spec-row + .spec-row { border-top: 1px solid var(--border-hairline); }
.spec-row__label {
  flex: 0 0 96px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding-top: 2px;
}
.spec-row__label--accent { color: var(--accent-spark); }
.spec-row__value {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.about-minor {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Сетка информационных блоков ---- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  padding: 15px;
  min-width: 0;
  overflow: hidden;
}
.info-panel .eyebrow { margin: 0; }
.info-panel--highlight {
  grid-column: 1 / -1;
  background: var(--gradient-spark-soft);
  border-color: var(--accent-spark-dim);
}

.info-panel__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
}
.info-panel__icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-panel__icon svg { display: block; }

.info-panel__value {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.info-panel--full {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
}
.info-panel--full .info-panel__head {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  width: 84px;
  padding-right: 14px;
  border-right: 1px solid var(--border-hairline);
  align-self: stretch;
  align-items: center;
}
.info-panel--full .info-panel__value {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.info-panel--full .tag-field { flex: 1; min-width: 0; }

.info-panel--noo .eyebrow { color: var(--accent-noo); }
.info-panel--spark .eyebrow { color: var(--accent-spark); }
.info-panel--mint .eyebrow { color: var(--mint-live); }

/* ---- Панель как единственная точка редактирования (открывает шит выбора) ---- */
.info-panel--editable {
  display: block;
  width: 100%;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-base) var(--ease-out);
}
.info-panel--editable.info-panel--full { display: flex; }
.info-panel--editable:hover { filter: brightness(1.18); }
.info-panel--editable:active { transform: scale(0.985); }

/* ---- Компактный вариант — только заголовок, без текущих значений ---- */
.info-panel--compact { padding-top: 13px; padding-bottom: 13px; }
.info-panel--compact .info-panel__head { border-bottom: none; padding-bottom: 0; }
.info-panel--compact.info-panel--full .info-panel__head {
  flex: 1;
  width: auto;
  border-right: none;
  padding-right: 0;
}
.info-panel__edit-icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tag-field--flat .tag { cursor: default; }

/* ---- «О себе» — акцентная цитата ---- */
.about-quote {
  position: relative;
  padding-left: 16px;
  border-left: 2.5px solid;
  border-image: var(--gradient-spark) 1;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

/* ---- Точка-акцент перед заголовком секции ---- */
.section-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.section-dot--noo { background: var(--accent-noo); }
.section-dot--spark { background: var(--accent-spark); }

/* ---- Акцентный тег ("Запросы" — то, что искрит) ---- */
.tag--spark {
  background: var(--accent-spark-dim);
  border-color: transparent;
  color: var(--accent-spark);
}

.profile-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12px;
  margin: var(--space-8) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-hairline);
}

/* ---- Кейс 5: личная статистика встреч ---- */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-tile__label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---- Кейс 5: сетка модулей саммита ---- */
/* ---- Кейс 5: карусель "сейчас/далее/встречи" — свайп по горизонтали ---- */
.now-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* border-radius + box-shadow — на самом скролл-контейнере, а не на карточке
     внутри него: overflow-x:auto клипает содержимое (детей), но не собственную
     тень элемента, так что свечение здесь не обрезается на краях скролла. */
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent-spark) 20%, transparent), 0 6px 16px rgba(0, 0, 0, 0.06);
}
.now-carousel::-webkit-scrollbar { display: none; }
.now-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
}
/* Одна тёмная карточка среди белых — главный акцент экрана (в духе
   контрастной чёрной кейс-карточки на сайте NooSoft). */
.now-card--live {
  border: 2px solid var(--accent-spark);
  background: var(--text-primary);
  box-shadow: var(--glow-spark);
}
.now-card--live .now-card__title { color: var(--text-on-accent); }
.now-card--live .now-card__meta { color: rgba(255, 255, 255, 0.65); }
/* "Далее" и "Ваши встречи" — нейтральные (наследуют белый фон/серую рамку
   от .now-card): единственный цветной акцент в карусели — "Идёт сейчас",
   раскрашивать остальные карточки "для разнообразия" не по смыслу, а просто
   чтобы не было монотонно — обратная логика тому, зачем вообще нужен цвет. */
.now-card__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}
.now-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}
.now-card--live .now-card__label { color: var(--mint-live); }
.now-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin: 10px 0 0;
}
.now-card__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.now-card--stats .now-card__stats {
  display: flex;
  gap: 20px;
}
.now-card--stats .now-card__stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
}
.now-card--stats .now-card__stat-label {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 5px;
}

.now-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.now-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hairline);
  transition: background var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out);
}
.now-dot.is-active { width: 16px; border-radius: var(--radius-pill); background: var(--accent-spark); }

/* ---- Кейс 5: подложка вокруг блока "Разделы саммита" целиком — красим не каждую
   карточку по отдельности (пробовали, вернули), а всю группу разом: так тема
   саммита видна на секции сразу, а сами карточки остаются нейтральными и не
   спорят между собой за внимание. ---- */
.module-section {
  /* Нейтральный фон, не своё собственное свечение темы: на экране уже есть
     общий фон-глоу (.summit-bg) и карточка "Идёт сейчас" — этого достаточно,
     чтобы тема саммита читалась; ещё один цветной акцент здесь был бы
     избыточным повтором того же сигнала. Вместо цвета — едва заметная
     штриховка (тот же приём, что в .summit-bg): блок читается как панель
     навигации/wayfinding, а не как ещё одна цветная карточка. */
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0, rgba(0, 0, 0, 0.025) 1px, transparent 1px, transparent 25%),
    var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

/* ---- Кейс 5: разделы саммита — страницы по 3×3 отдельных карточки,
   свайп вбок переключает страницу целиком (как на спрингборде iOS).
   Пока разделов ≤9 — страница одна и свайпать нечего. ---- */
.module-pager {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.module-pager::-webkit-scrollbar { display: none; }
.module-page {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.module-pager-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.module-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 6px;
  background: var(--bg-surface);
  border: 1px solid #ececec;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--dur-base) var(--ease-out);
}
.module-cell:hover { background: var(--bg-surface-2); }
.module-cell:active { background: var(--bg-surface-3); }
/* Кольцо-"фольга" — цитата фольгированного ободка на QR-бейдже участника
   (Кейс 4), не смысловая группировка: одно и то же кольцо на всех разделах,
   иконка внутри — всегда чернильная, не крашеная под "зону". */
.module-cell__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background:
    linear-gradient(var(--bg-surface-3), var(--bg-surface-3)) padding-box,
    var(--gradient-spark) border-box;
  border: 1.5px solid transparent;
}
.module-cell__label { font-weight: 700; font-size: 12.5px; line-height: 1.25; }
/* Точка-индикатор непрочитанного — фиксированный красный, независимо от темы
   саммита (--accent-spark меняется по теме, а сигнал "есть уведомления" должен
   читаться одинаково в любой теме). */
.module-cell__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--red-error);
  border-radius: var(--radius-pill);
}

/* ---- Плавающий nav-dock (иконки-табы саммита) ----
   Не часть потока экрана — лежит поверх прокручиваемого контента (позиция
   absolute внутри .screen), поэтому не съедает вертикальное место у контента.
   У контейнера pointer-events:none, чтобы пустые поля по бокам от капсулы
   не перехватывали тапы/скролл — сама капсула включает их обратно. ---- */
.tab-dock-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 10px 20px max(14px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.tab-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--bg-surface-2) 58%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 7px;
  box-shadow: var(--shadow-modal);
  pointer-events: auto;
}
.tab-dock__item {
  height: 46px;
  min-width: 46px;
  padding: 0;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-spring), padding var(--dur-base) var(--ease-out);
}
.tab-dock__item svg { flex: 0 0 auto; }
.tab-dock__item:active { transform: scale(0.92); }
.tab-dock__item.is-active {
  padding: 0 16px 0 13px;
  background: var(--gradient-spark);
  color: var(--text-on-accent);
  box-shadow: var(--glow-spark);
}
.tab-dock__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  transition: max-width var(--dur-base) var(--ease-out);
}
.tab-dock__item.is-active .tab-dock__label { max-width: 100px; }

/* ---- Утилиты ---- */
.spacer { flex: 1; }
.stack-gap-2 > * + * { margin-top: var(--space-2); }
.stack-gap-4 > * + * { margin-top: var(--space-4); }
