/* Шафа Каті. Три вида: старинный шкаф, современный и модерн.
   Вид выбирается в разделе «Разбор и я» и запоминается на устройстве. */

:root,
:root[data-theme='antique'] {
  /* Старинный шкаф: тёплое дерево, латунь, кремовая подкладка ящиков. */
  --bg: #efe3d0;
  --surface: #fbf3e4;
  --surface-2: #e6d5ba;
  --ink: #2f2114;
  --ink-soft: #7a6449;
  --line: #cdb794;
  --accent: #7c4a24;
  --accent-ink: #fdf6e8;
  --danger: #98362c;
  --radius: 14px;
  --gap: 12px;
  --font: Georgia, 'Times New Roman', serif;
  --title-font: Georgia, 'Times New Roman', serif;
  --title-spacing: 0.01em;
  --panel-shadow: 0 2px 0 rgba(120, 88, 50, 0.18);
  /* Текстура дерева: полосы вместо картинки, чтобы ничего не грузить. */
  --wood: repeating-linear-gradient(
    90deg,
    rgba(124, 74, 36, 0.05) 0px,
    rgba(124, 74, 36, 0.05) 2px,
    rgba(124, 74, 36, 0) 2px,
    rgba(124, 74, 36, 0) 9px
  );
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme='modern'] {
  /* Современный: светлый, спокойный, без украшений. */
  --bg: #f7f3ee;
  --surface: #fffdfb;
  --surface-2: #f1eae1;
  --ink: #241f1a;
  --ink-soft: #6b625a;
  --line: #e2d8cc;
  --accent: #8a4a3d;
  --accent-ink: #fff8f4;
  --danger: #a33a34;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --title-font: var(--font);
  --title-spacing: -0.01em;
  --panel-shadow: none;
  --wood: none;
}

:root[data-theme='deco'] {
  /* Модерн: тёмный фон, латунь и зелень, как вечерняя витрина. */
  --bg: #14151a;
  --surface: #1d1f26;
  --surface-2: #272a33;
  --ink: #f3efe7;
  --ink-soft: #a9a396;
  --line: #343845;
  --accent: #c9a24b;
  --accent-ink: #1b1c22;
  --danger: #e08070;
  --radius: 10px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --title-font: var(--font);
  --title-spacing: 0.06em;
  --panel-shadow: none;
  --wood: none;
}

/* Системная тёмная схема применяется к современному виду:
   у старинного и модерна свои цвета, и подменять их не нужно. */
@media (prefers-color-scheme: dark) {
  :root[data-theme='modern'] {
    --bg: #16130f;
    --surface: #211c17;
    --surface-2: #2b241d;
    --ink: #f2ece5;
    --ink-soft: #b3a89c;
    --line: #372f27;
    --accent: #d99178;
    --accent-ink: #1d1712;
    --danger: #e0796f;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  background-image: var(--wood);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  -webkit-text-size-adjust: 100%;
}

body.sheet-open { overflow: hidden; }
body.sheet-open .nav { pointer-events: auto; }

.app {
  padding: 16px 16px calc(84px + var(--safe-bottom));
  max-width: 720px;
  margin: 0 auto;
}

/* Шапка раздела */
.head { display: flex; flex-direction: column; gap: var(--gap); }
.head-row {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
  padding: 10px 0 6px;
}
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.title { font-size: 26px; font-weight: 650; margin: 0; font-family: var(--title-font); letter-spacing: var(--title-spacing); }
.count { color: var(--ink-soft); font-size: 14px; }

.hint { color: var(--ink-soft); font-size: 13px; }
.hint.locked { color: var(--accent); }

/* Кнопки */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}
.btn:active { transform: scale(0.99); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; }

.icon-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px 6px 0;
  cursor: pointer;
}

/* Поиск */
.search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
}

/* Табы категорий */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.controls { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.banner {
  width: 100%;
  text-align: left;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

/* Загрузка */
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-text { font-size: 13px; color: var(--ink-soft); }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); transition: width 0.2s ease; }

/* Сетка вещей */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 16px;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
}
.card-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-title {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); flex: 0 0 auto; }
.dot.unknown { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, var(--line) 3px, var(--line) 6px); }

/* Пустые состояния */
.empty { padding: 48px 8px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.empty-title { font-size: 20px; margin: 0; }
.empty-text { color: var(--ink-soft); font-size: 15px; grid-column: 1 / -1; }

/* Нижнее меню */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  /* Кнопки держатся кучкой по центру: на широком экране растягивать их
     через всю ширину неудобно и некрасиво. */
  justify-content: center;
  gap: 4px;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.nav-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 10px;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--surface-2); }
.nav-btn.on { color: var(--accent); font-weight: 600; }

/* Панель поверх экрана: карточка вещи, фильтры, сортировка */
.sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow-y: auto;
  /* Снизу оставляем место под меню: оно видно всегда, даже поверх панели. */
  padding: 0 16px calc(96px + var(--safe-bottom));
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 10;
}
.sheet.in { transform: none; opacity: 1; }

/* Содержимое панели держится той же колонкой, что и основной экран.
   Центрируем через align-items, а не через авто-отступы: у блоков внутри
   свои margin, и они такие отступы затирали, из-за чего текст уезжал влево. */
.sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sheet > * {
  width: 100%;
  max-width: 720px;
  flex: 0 0 auto;
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 14px 0 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sheet-title { font-size: 18px; font-weight: 600; font-family: var(--title-font); letter-spacing: var(--title-spacing); }

.item-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 16px;
  max-height: 46vh;
  display: flex;
  justify-content: center;
}
.item-photo img { width: 100%; object-fit: contain; }
.item-photo-empty { padding: 48px 0; color: var(--ink-soft); font-size: 14px; }

.fields { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.row { flex-direction: row; align-items: center; gap: 10px; }
.field-label { font-size: 13px; color: var(--ink-soft); }
.field select,
.field input[type='text'],
.field input[type='number'],
.field input[type='date'] {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 16px;
  width: 100%;
}
.field input[type='checkbox'] { width: 22px; height: 22px; accent-color: var(--accent); }

.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 8px; color: var(--ink-soft); font-size: 13px; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.list { display: flex; flex-direction: column; gap: 6px; }
.list-item {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  cursor: pointer;
}
.list-item.on { border-color: var(--accent); color: var(--accent); }

/* Проверка вещей */
.confirm-card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.confirm-title { font-size: 18px; font-weight: 600; }

/* Стилист */
.ask { display: flex; gap: 8px; }
.ask .search { flex: 1; }
.looks { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.look { display: flex; flex-direction: column; gap: 10px; }
.look-title { font-size: 17px; font-weight: 600; }
.collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.collage-cell {
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collage-cell img { width: 100%; height: 100%; object-fit: cover; }
.collage-empty { font-size: 11px; color: var(--ink-soft); padding: 6px; text-align: center; }
.look-items { font-size: 13px; color: var(--ink-soft); }
.look-why { font-size: 15px; line-height: 1.5; }
.look-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.look-actions .btn { flex: 1 1 140px; min-width: 0; white-space: normal; line-height: 1.25; }

/* Календарь */
.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 16px 0 20px;
}
.month-weekday { font-size: 11px; color: var(--ink-soft); text-align: center; padding-bottom: 4px; }
.month-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 0;
}
.month-cell.empty { border: none; background: none; cursor: default; }
.month-cell.today { border-color: var(--accent); }
.month-day { font-size: 13px; color: var(--ink); }
.dots { display: flex; gap: 3px; height: 6px; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); }
.mini-dot.worn { background: var(--accent); }
.mini-dot.planned { background: transparent; border: 1px solid var(--accent); }

.day-list { display: flex; flex-direction: column; gap: 16px; }
.event { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.event-line { display: flex; gap: 8px; align-items: center; }
.event-date { font-size: 13px; color: var(--ink-soft); }
.event-kind { font-size: 11px; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--line); color: var(--ink-soft); }
.event-kind.worn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.event-title { font-size: 16px; font-weight: 550; }

.card.chosen .card-photo { outline: 3px solid var(--accent); outline-offset: -3px; }
.picked { margin: 8px 0; }

/* Разбор и цифры */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 8px; }
.number { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.number-value { font-size: 24px; font-weight: 650; }
.number-label { font-size: 12px; color: var(--ink-soft); }
.section-title { font-size: 17px; font-weight: 600; margin: 24px 0 8px; font-family: var(--title-font); letter-spacing: var(--title-spacing); }
.profile {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  margin-bottom: 8px;
}
.weather { margin-top: 2px; }

/* Лента фотографий в образах */
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.photo-strip::-webkit-scrollbar { display: none; }
.strip-cell {
  flex: 0 0 96px;
  aspect-ratio: 3 / 4;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}
.strip-cell img { width: 100%; height: 100%; object-fit: cover; }

.badge.soft { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }

.badge.drop {
  left: auto;
  right: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Доступность: видимый фокус для клавиатуры и уважение к отключённой анимации */
:where(button, input, select, textarea, a):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Фраза дня и обучение */
.phrase {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: 14px;
  padding: 12px 14px;
}
.help-step { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.help-count { font-size: 12px; color: var(--ink-soft); }
.help-title { font-size: 22px; margin: 0; }
.help-body { font-size: 16px; line-height: 1.5; margin: 0; color: var(--ink); }
.help-dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0; }
.help-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.help-dot.on { background: var(--accent); }

/* Образ по слотам */
.slots { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.slot { display: flex; gap: 12px; align-items: flex-start; }
.slot-photo {
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.slot-photo img { width: 100%; height: 100%; object-fit: cover; }
.slot-photo.blank {
  border: 2px dashed var(--line);
  background: none;
}
.slot-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.slot-name { font-size: 12px; color: var(--ink-soft); }
.slot-item { font-size: 15px; }
.slot-item.missing { color: var(--ink-soft); font-style: italic; }
.slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-options { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.missing-note {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  margin-top: 10px;
}

/* События из её собственного календаря */
.agenda { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.agenda-time { flex: 0 0 62px; font-size: 13px; color: var(--ink-soft); padding-top: 2px; }
.agenda-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.agenda-title { font-size: 15px; }
.mini-dot.agenda { background: var(--ink-soft); }

/* Свои маленькие окна вместо системных */
.dialog-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
}
@media (min-width: 560px) { .dialog-back { align-items: center; } }
.dialog {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.dialog-title { font-size: 17px; font-weight: 600; }
.dialog-actions { display: flex; gap: 8px; margin-top: 4px; }
.dialog-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(92px + var(--safe-bottom));
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
.toast.in { opacity: 1; transform: none; }


/* Мелочи, которые отличают старинный шкаф от остальных видов */
:root[data-theme='antique'] .card-photo,
:root[data-theme='antique'] .collage-cell,
:root[data-theme='antique'] .slot-photo {
  box-shadow: inset 0 0 0 1px rgba(124, 74, 36, 0.18), var(--panel-shadow);
}
:root[data-theme='antique'] .btn,
:root[data-theme='antique'] .chip,
:root[data-theme='antique'] .list-item {
  box-shadow: var(--panel-shadow);
}
:root[data-theme='antique'] .nav {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), var(--surface));
  border-top: 2px solid var(--line);
}
:root[data-theme='deco'] .title,
:root[data-theme='deco'] .sheet-title {
  text-transform: uppercase;
  font-size: 22px;
}

/* Разделы как вещи в шкафу */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}
.tile {
  position: relative;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--panel-shadow);
}
.tile:active { transform: translateY(1px); }
.tile-icon { display: block; width: 34px; height: 34px; color: var(--accent); }
.tile-icon svg { width: 100%; height: 100%; }
.tile-label { font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.25; }
.tile-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  color: var(--accent);
}

/* Выбор вида */
.theme-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.theme-card {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}
.theme-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-name { font-size: 15px; font-weight: 600; }
.theme-swatch { width: 100%; height: 26px; border-radius: 8px; border: 1px solid var(--line); }
.theme-swatch.antique { background: linear-gradient(90deg, #7c4a24 0 33%, #efe3d0 33% 66%, #c9a24b 66%); }
.theme-swatch.modern { background: linear-gradient(90deg, #8a4a3d 0 33%, #f7f3ee 33% 66%, #e2d8cc 66%); }
.theme-swatch.deco { background: linear-gradient(90deg, #14151a 0 33%, #c9a24b 33% 66%, #272a33 66%); }

/* Переключение вариантов в ячейке образа */
.variant-nav { display: flex; align-items: center; gap: 8px; }
.variant-nav .chip { padding: 4px 12px; font-size: 16px; line-height: 1; }
.colors-box { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.colors-box .chip { display: inline-flex; align-items: center; gap: 6px; }

/* Простой график по месяцам */
.chart { display: flex; gap: 6px; align-items: flex-end; height: 120px; margin: 10px 0; overflow-x: auto; }
.chart-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 34px; height: 100%; }
.chart-bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart-bar { width: 10px; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart-bar.added { background: var(--line); }
.chart-bar.worn { background: var(--accent); }
.chart-label { font-size: 10px; color: var(--ink-soft); }

/* Значки действий: на карточке и в шапке карточки вещи */
.mark {
  appearance: none;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark svg { width: 100%; height: 100%; }
.mark.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.card-marks {
  position: absolute;
  right: 6px;
  top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -6px 0 14px;
}
.quick-actions .mark { width: 42px; height: 42px; padding: 9px; }

/* Голос и фото рядом с полем */
.input-extras { display: flex; gap: 6px; align-items: center; }
.input-extras .mark { width: 40px; height: 40px; padding: 9px; }
.ask { align-items: center; }
