/* ---------- Вход и регистрация ---------- */
.auth {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 24px 24px;
}
.auth__brand { display: flex; flex-direction: column; align-items: center; margin: 24px 0 28px; text-align: center; }
.auth__logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, #3B97FF, #1F5FD0);
  color: #fff;
  box-shadow: 0 12px 32px rgba(47, 140, 255, 0.3);
}
.auth__logo .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.auth__brand h1 { font-size: var(--fs-display); font-weight: 700; }
.auth__brand p { margin-top: 6px; color: var(--text-2); }
.auth__invite {
  margin-bottom: 4px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
  text-align: center;
}
.auth form .btn[type="submit"] { margin-top: 24px; }
.auth__switch { margin-top: auto; padding-top: 24px; color: var(--text-2); font-size: 15px; text-align: center; }
.auth__switch a { font-weight: 500; }

/* ---------- Профиль ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--surface);
}
.profile-card .avatar { width: 52px; height: 52px; font-size: 20px; }
.profile-card__name { font-size: var(--fs-section); font-weight: 600; }
.profile-card__email { color: var(--text-2); font-size: 14px; }

.gesture-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gesture {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--surface);
  font-size: var(--fs-caption);
}
.gesture .icon { color: var(--accent); }
.gesture b { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
.gesture span { color: var(--text-2); }

.app-version { margin-top: 20px; color: var(--text-3); font-size: var(--fs-caption); text-align: center; }

/* ---------- Заглушка «скоро» ---------- */
.stub-note {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Хранилище ---------- */
.screen--with-fab-only { padding-bottom: calc(var(--safe-bottom) + var(--fab) + 40px); }
.screen:not(.screen--with-tabbar) .fab { bottom: calc(var(--safe-bottom) + 20px); }
.cover {
  height: 160px;
  margin-top: 4px;
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Карточка вещи ---------- */
.carousel { position: relative; margin-top: 4px; border-radius: 18px; background: var(--surface); overflow: hidden; }
.carousel--empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--text-3); }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: none; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.carousel__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background 150ms; }
.carousel__dots span.is-active { background: #fff; }

.item-title { margin-top: 16px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.category-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); font-size: 15px; }

.where-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--accent-soft);
  text-align: left;
}
.where-card:active { transform: scale(0.98); }
.where-card .thumb { width: 60px; height: 60px; }
.where-card__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.where-card__label { color: var(--accent); font-size: var(--fs-caption); font-weight: 500; }
.where-card__title { font-size: var(--fs-section); font-weight: 700; }
.where-card__meta { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where-card > .icon { color: var(--accent); }

.round-actions { display: flex; justify-content: space-around; margin: 22px 0 6px; }
.round-action { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 88px; color: var(--text-2); font-size: var(--fs-caption); }
.round-action__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: transform 120ms;
}
.round-action:active .round-action__icon { transform: scale(0.92); }
.round-action--primary .round-action__icon { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(47, 140, 255, 0.35); }

.details { margin: 16px 0 0; }
.details dt { margin-top: 14px; color: var(--text-2); font-size: var(--fs-caption); }
.details dd { margin: 4px 0 0; white-space: pre-wrap; }

/* ---------- Профиль: статистика, категории, импорт ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-caption);
}
.stats b { color: var(--text); font-size: 22px; font-weight: 700; }
.list-disclosure > summary { list-style: none; border-radius: var(--r-card); background: var(--surface); cursor: pointer; }
.list-disclosure > summary::-webkit-details-marker { display: none; }
.list-disclosure > summary > .icon:last-child { color: var(--text-3); transition: transform 160ms; }
.list-disclosure[open] > summary { margin-bottom: 8px; }
.list-disclosure[open] > summary > .icon:last-child { transform: rotate(90deg); }
.list-row--accent, .list-row--accent > .icon:first-child { color: var(--accent); }
.list-row[role="radio"] .list-row__check { margin-left: auto; }
.renumbered { margin-top: 12px; padding: 12px; border-radius: var(--r-card); background: var(--surface-2); font-size: 14px; text-align: left; }
.renumbered p { margin: 0; color: var(--text-2); text-align: left; }
.renumbered ul { margin: 8px 0 0; padding-left: 18px; }
.banner--hint { margin-top: 14px; background: var(--accent-soft); color: var(--text); }
.banner__actions { display: flex; gap: 8px; }
.banner__actions .btn { width: auto; flex: 1; }
