/* authcore/public/css/3.css — стили только для 3.html (Профиль) */

/* app-shell — единственный скролл-контейнер */
.app-shell {
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-h) + var(--safe-bottom, 0px));
}

/* динамическая высота viewport для смартфонов */
@supports (height: 100dvh) {
  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }
}

/* ─────────────────────────────
 * Header (fixed)
 * ───────────────────────────── */
.profile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: #000;
  margin: 0;
}

/* Внутренний блок хедера */
.profile-header-inner {
  padding: 15px 24px;
  border-radius: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Заголовок */
.profile-header-top {
  width: 100%;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: start;
  pointer-events: auto;
}

.profile-header-spacer {
  width: 50px;
  height: 50px;
}

.profile-title {
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.icon-btn.profile-header-action {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  margin-top: 0;
  width: 50px;
  height: 50px;
  color: #8E8E93;
  font-size: 22px;
  pointer-events: auto;
  opacity: calc(1 - var(--profile-shrink-progress));
  transform:
    translateX(10px)
    translateY(calc(-8px - 6px * var(--profile-shrink-progress)))
    scale(calc(1 - 0.16 * var(--profile-shrink-progress)));
  transform-origin: top right;
  transition:
    transform 0.5s ease,
    opacity 0.35s ease,
    color 0.12s ease,
    background 0.12s ease;
}

.icon-btn.profile-header-action:active {
  background: rgba(255, 255, 255, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn.profile-header-action:hover {
    color: #F5F5F7;
    transform:
      translateX(10px)
      translateY(calc(-8px - 6px * var(--profile-shrink-progress)))
      scale(calc((1 - 0.16 * var(--profile-shrink-progress)) * 1.08));
  }
}

/* header-icon base */
.header-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background:
    linear-gradient(to top, #141414, #313131) padding-box,
    linear-gradient(#68686B, #545457) border-box;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* профиль: чуть меньше иконка */
#profile-header .header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin: 0 10px 0 0;
}

#profile-header .header-icon i {
  font-size: 25px;
  transition: font-size 0.5s ease;
}

.avatar-circle.avatar-circle {
  width: 80px;
  height: 80px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #9333ea, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 700;
  border: 2px solid #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.avatar-img {
  width: 80px;
  height: 80px;
  margin: 0 0 4px 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #374151;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
}

.profile-subtext {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}

#u-email i {
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Делаем высоту хедера стабильной: строка email всегда занимает место */
#profile-header #u-email.hidden {
  display: flex !important;
  visibility: hidden;
}

/* Плавные переходы для внутренних элементов */
#profile-header > * {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    margin 0.5s ease,
    height 0.5s ease,
    padding 0.5s ease;
}

/* ===== ПЛАВНЫЙ SHRINK HEADER ===== */
#profile-header.shrink-header {
  position: relative;
  transform: translateY(calc(-4px * var(--profile-shrink-progress)));
  padding-top: calc(15px * (1 - var(--profile-shrink-progress)));
  padding-bottom: calc(6px + 4px * (1 - var(--profile-shrink-progress)));
  border-radius: calc(15px * (1 - var(--profile-shrink-progress)));
  box-shadow: none;
  background: none !important;
  pointer-events: none;
  overflow: hidden;
}

#profile-header.shrink-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, #151517, #2f2f32);
  opacity: calc(1 - var(--profile-shrink-progress));
  pointer-events: none;
  z-index: 0;
}

#profile-header.shrink-header > * {
  position: relative;
  z-index: 1;
}

#profile-header .profile-title {
  margin: 0 0 calc(10px * (1 - var(--profile-shrink-progress))) 0;
  font-size: calc(1.25rem - 0.15rem * var(--profile-shrink-progress));
  line-height: calc(1.2 - 0.1 * var(--profile-shrink-progress));
}

#profile-header .header-icon {
  width: calc(40px - 8px * var(--profile-shrink-progress));
  height: calc(40px - 8px * var(--profile-shrink-progress));
  border-radius: calc(10px - 3px * var(--profile-shrink-progress));
  margin: 0 10px 0 0;
}

#profile-header .header-icon i {
  font-size: calc(25px - 5px * var(--profile-shrink-progress));
}

#avatar-wrap {
  display: flex;
  justify-content: center;
  height: calc(80px * (1 - var(--profile-shrink-progress)));
  margin: 0;
  overflow: hidden;
}

#profile-header #avatar-box,
#profile-header #avatar-img {
  width: calc(80px - 24px * var(--profile-shrink-progress));
  height: calc(80px - 24px * var(--profile-shrink-progress));
  opacity: calc(1 - var(--profile-shrink-progress));
  transform:
    translateY(calc(-8px * var(--profile-shrink-progress)))
    scale(calc(1 - 0.15 * var(--profile-shrink-progress)));
  transform-origin: top center;
}

#u-info-box {
  margin:
    calc(10px * (1 - var(--profile-shrink-progress))) 0 calc(5px * (1 - var(--profile-shrink-progress))) 0 !important;
  height: calc(20px * (1 - var(--profile-shrink-progress)));
  opacity: calc(1 - var(--profile-shrink-progress));
  overflow: hidden;
  transform:
    translateY(calc(-6px * var(--profile-shrink-progress)))
    scale(calc(1 - 0.1 * var(--profile-shrink-progress)));
  transform-origin: top center;
}

#profile-header .profile-subtext {
  max-width: calc(200px - 40px * var(--profile-shrink-progress));
}

/* ─────────────────────────────
 * Main
 * ───────────────────────────── */
main {
  padding-bottom: 0;
}

/* Отступ между шапкой и первым блоком — только для смартфона */
@media (max-width: 1023px) {
  main {
    padding-top: 12px;
  }
}

/* ===== Скроллбар в модалке оплаты ===== */
.scroll-area::-webkit-scrollbar {
  width: 0px;
}

.scroll-area::-webkit-scrollbar-track {
  background: #0d0d0e;
}

.scroll-area::-webkit-scrollbar-thumb {
  background: #3a3a3c;
  border-radius: 6px;
}

.input-slim {
  background: #0b0f19;
  border: 1px solid #293041;
  border-radius: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Пилюли-переключатели кабинетов */
.pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d1d5db;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.pill.active {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transform: translateY(-1px);
}

.pill:active {
  transform: scale(0.96);
}

#cabs-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

/* стили блока/форм */
.first-open-block {
  background-color: #1C1C1E;
  padding: 16px;
  margin: 0;
  border-radius: 16px;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.form-stack {
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-warning {
  font-size: 11px;
  color: #FF9F0A;
  margin: 0 2px 0 0;
  padding: 0 4px;
}

.text-hint {
  font-size: 12px;
  color: #8E8E93;
  margin: 4px 0 0 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #C7C7CC;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.94);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.icon-btn:disabled:active {
  transform: none;
  background: transparent;
  color: #C7C7CC;
}

.notifications-entry {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  border: 1px solid #2C2C2E;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(38, 38, 41, 0.98), rgba(28, 28, 30, 0.98));
  color: #FFFFFF;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.notifications-entry:active {
  transform: scale(0.985);
}

.notifications-entry__left,
.notifications-entry__right {
  display: flex;
  align-items: center;
}

.notifications-entry__left {
  gap: 10px;
  min-width: 0;
}

.notifications-entry__right {
  gap: 10px;
  flex-shrink: 0;
}

.notifications-entry__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.notifications-entry__icon i {
  font-size: 16px;
}

.notifications-entry__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.notifications-entry__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FF453A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 69, 58, 0.28);
}

.notifications-entry__chevron {
  font-size: 11px;
  color: #8E8E93;
}

.section-divider {
  width: 100%;
  height: 1px;
}

.section-divider--soft {
  margin: 0 0 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.10) 12%,
    rgba(255, 255, 255, 0.10) 88%,
    rgba(255, 255, 255, 0)
  );
}

.cab-notification-swipe {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.cab-notification-swipe__delete {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 92px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #FF5C52, #D92D20);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cab-notification-swipe__delete i {
  font-size: 16px;
}

.cab-notification-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border: 1px solid #2C2C2E;
  border-radius: 16px;
  background: #1C1C1E;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.cab-notification-card__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cab-notification-card__body--mobile {
  align-items: flex-start;
  gap: 4px;
}

.cab-notification-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cab-notification-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cab-notification-card__title {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #E5E5EA;
}

.cab-notification-card__title--mobile {
  width: 100%;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.24;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(12.5px * 1.24 * 2);
}

.cab-notification-card__title--unread {
  font-weight: 600;
  color: #FFFFFF;
}

.cab-notification-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cab-notification-card__time {
  font-size: 11px;
  color: #8E8E93;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.cab-notification-card__delete {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8E8E93;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  align-self: center;
  transition:
    opacity 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}

.cab-notification-card__delete:active {
  transform: scale(0.96);
}

.cab-notification-card__delete i {
  font-size: 14px;
}

@media (min-width: 768px) {
  .cab-notification-card {
    transition:
      transform 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease;
  }

  .cab-notification-card:hover {
    border-color: #3A3A3C;
    background: #222225;
  }

  .cab-notification-card__delete {
    opacity: 0;
    pointer-events: none;
  }

  .cab-notification-card:hover .cab-notification-card__delete,
  .cab-notification-card:focus-visible .cab-notification-card__delete,
  .cab-notification-card__delete:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .cab-notification-card__delete:hover,
  .cab-notification-card__delete:focus-visible {
    color: #FFFFFF;
    outline: none;
  }
}

@media (max-width: 767px) {
  .cab-notification-card {
    padding: 10px 12px;
  }

  .cab-notification-card__body--mobile {
    gap: 3px;
  }

  .cab-notification-card__time {
    font-size: 10px;
    line-height: 1.15;
  }
}

/* ─────────────────────────────────────────
 * Модалка (bottom-sheet)
 * ───────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: .55s;
}

.stack-12 > * + * {
  margin-top: 12px;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: #000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid #1C1C1E;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition:
    transform 0.35s ease-out,
    background 0.65s ease-out,
    box-shadow 0.95s ease-out;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.sheet__body > * + * {
  margin-top: 20px;
}

.sheet__header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #1C1C1E;
}

.sheet-header-meta {
  flex: 1;
  min-width: 0;
  margin-top: 2px;
}

.sheet-header-subtitle {
  font-size: 0.75rem;
  color: #8E8E93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* trial card */
.trial-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #2D823D;
  backdrop-filter: blur(18px);
}

.trial-card__text {
  color: #d1d1d6;
  font-size: 0.75rem;
  margin: 4px 0 12px 0;
}

.trial-card__gift {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.trial-card__gift-icon {
  font-size: 23px;
  color: #fff;
}

/* pulse */
.pulse-glow {
  animation: heartbeat-green 2.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes heartbeat-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(60, 220, 130, 0), 0 0 0 rgba(60, 220, 130, 0) inset;
  }

  10% {
    transform: scale(1.17);
    box-shadow: 0 0 18px rgba(60, 220, 130, 0.85), 0 0 10px rgba(60, 220, 130, 0.55) inset;
  }

  20% {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(60, 220, 130, 0.55), 0 0 6px rgba(60, 220, 130, 0.35) inset;
  }

  32% {
    transform: scale(1.14);
    box-shadow: 0 0 14px rgba(60, 220, 130, 0.75), 0 0 8px rgba(60, 220, 130, 0.45) inset;
  }

  42% {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(60, 220, 130, 0.4), 0 0 5px rgba(60, 220, 130, 0.3) inset;
  }

  60% {
    transform: scale(1);
    box-shadow: 0 0 3px rgba(60, 220, 130, 0.18), 0 0 2px rgba(60, 220, 130, 0.15) inset;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(60, 220, 130, 0), 0 0 0 rgba(60, 220, 130, 0) inset;
  }
}

.trial-btn {
  width: 80%;
  display: block;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: #1b5e27;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.trial-btn:hover {
  background-color: #196d28;
}

.trial-btn:active {
  background-color: #185e25;
  transform: scale(0.99);
}

.btn--promo {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background-color: #2C2C2E;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.15s ease,
    opacity 0.15s ease,
    transform 0.12s ease;
}

.btn--promo:hover {
  background-color: #3A3A3C;
}

.btn--promo:active {
  background-color: rgba(58, 58, 60, 0.9);
  transform: scale(0.98);
}

.btn--promo:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ───────── Payment buttons ───────── */
.pay-btn {
  flex: 1;
  padding: 10px 0px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  color: #FFFFFF;
  transition: background-color 0.15s ease;
}

.pay-btn--close {
  background-color: #3A3A3C;
  font-weight: 500;
}

.pay-btn--close:hover {
  background-color: #48484A;
}

.pay-btn--close:active {
  background-color: #505052;
}

.pay-btn--submit {
  background-color: #0A84FF;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pay-btn--submit:hover {
  background-color: #409CFF;
}

.pay-btn--submit:active {
  background-color: rgba(10, 132, 255, 0.9);
}

.pay-link {
  color: #0A84FF;
  text-decoration: none;
}

.pay-link:hover {
  color: #409CFF;
}

.pay-icon{
  margin-right:0 5px;
}

/* ─────────────────────────────────────────
 * Desktop app-like layout (>= 1024px) — как 2.html
 * ───────────────────────────────────────── */
@media (min-width: 1024px) {
  .profile-header {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 32px));
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    overflow: hidden;
  }

  .modal .sheet {
    left: 50%;
    right: auto;
    width: min(960px, calc(100% - 32px));
    transform: translateX(-50%) translateY(100%);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }

  .modal.active .sheet {
    transform: translateX(-50%) translateY(0);
  }
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 10px;
  line-height: 1.35;
}

.auth-consent input {
  margin-top: 2px;
  accent-color: #0A84FF;
  cursor: pointer;
}

.auth-consent a {
  color: #0A84FF;
  text-decoration: none;
}

.auth-consent a:hover {
  color: #409CFF;
}

#promo-inp {
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

#promo-inp:focus {
  caret-color: #0A84FF;
}

/* ===== Info modal ===== */

.info-header {
  padding: 12px 16px;
  border-bottom: 1px solid #1C1C1E;
}

.info-title-wrap {
  margin-top: 8px;
}

#info-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.info-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.info-body {
  padding-bottom: 12px;
  color: #E5E5E7;
  font-size: 14px;
  line-height: 1.6;
}

.info-body > * + * {
  margin-top: 12px;
}

.info-footer {
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ===== Cabinet modals ===== */

.cabinet-sheet {
  background: transparent;
  border: none;
  box-shadow: none;
  max-height: none;
}

.cabinet-sheet__inner {
  padding: 12px 16px 16px;
}

.cabinet-sheet-card {
  background: #1C1C1E;
  border-radius: 16px;
  padding: 16px;
}

.cabinet-sheet__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabinet-sheet__icon {
  font-size: 20px;
  color: #C7C7CC;
  line-height: 1;
  flex-shrink: 0;
}

.cabinet-sheet__icon--sm {
  font-size: 18px;
}

.cabinet-sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.cabinet-sheet__subtitle {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #8E8E93;
  line-height: 1.4;
}

.cabinet-sheet__body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet-sheet__label {
  padding: 0 4px;
  font-size: 11px;
  color: #8E8E93;
  line-height: 1.35;
}

.cabinet-sheet__help {
  margin: 0;
  padding: 0 4px;
  font-size: 11px;
  color: #8E8E93;
  line-height: 1.4;
}

.cabinet-sheet__actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.cabinet-sheet__actions .btn {
  flex: 1 1 0;
}

.cabinet-sheet__btn-secondary {
  background-color: #2C2C2E;
  color: rgba(255, 255, 255, 0.8);
}

.cabinet-sheet__btn-secondary:not(:disabled):hover {
  background-color: #3A3A3C;
}

.cabinet-sheet__btn-secondary:not(:disabled):active {
  background-color: #505052;
}

.cabinet-sheet__btn-primary {
  background-color: #3A3A3C;
  color: #FFFFFF;
}

.cabinet-sheet__btn-primary:not(:disabled):hover {
  background-color: #48484A;
}

.cabinet-sheet__btn-primary:not(:disabled):active {
  background-color: #505052;
}

@media (max-width: 380px) {
  .cabinet-sheet__actions {
    flex-direction: column;
  }
}

#cab-access-modal .cabinet-sheet__actions,
#ai-prompt-modal .cabinet-sheet__actions,
#cab-create-modal .cabinet-sheet__actions,
#cab-rename-modal .cabinet-sheet__actions,
#ai-edit-modal .cabinet-sheet__actions,
#manual-reply-modal .cabinet-sheet__actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

#cab-access-modal .cabinet-sheet__actions .btn,
#ai-prompt-modal .cabinet-sheet__actions .btn,
#cab-create-modal .cabinet-sheet__actions .btn,
#cab-rename-modal .cabinet-sheet__actions .btn,
#ai-edit-modal .cabinet-sheet__actions .btn,
#manual-reply-modal .cabinet-sheet__actions .btn {
  flex: 1 1 0;
}

.modal .cabinet-sheet {
  bottom: 0;
  max-height: calc(100vh - 12px);
}

@supports (height: 100dvh) {
  .modal .cabinet-sheet {
    max-height: calc(100dvh - 12px);
  }
}

.modal .cabinet-sheet__inner {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-h, 64px) + var(--safe-bottom, 0px));
}

.modal .cabinet-sheet-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.modal .cabinet-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal .cabinet-sheet__body::-webkit-scrollbar {
  display: none;
}

.modal .cabinet-sheet__actions {
  flex-shrink: 0;
  padding-top: 12px;
}
