/* ============================================================
   Шрифты проекта
   - AA Stetica Medium — основной акцентный (названия приложения, страниц,
                 растений, групп, размножений, задач, имени профиля)
   - Montserrat Regular — дополнительный (весь остальной текст)
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stetica';
  src: url('fonts/AAStetica-Medium.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:            #F8F6F0;
  --card:          #FFFFFF;
  --accent:        #A9BFA5;
  --accent-soft:   rgba(169, 191, 165, 0.28);
  --green:         #4A6454;
  --green-dark:    #3F574A;
  --blue:          #CFE0E3;   /* полив */
  --sand:          #F0DFC8;   /* удобрение */
  --lilac:         #DDD6E8;   /* душ */
  --pink:          #EBD3CB;
  --text:          #2F3A33;
  --text-muted:    rgba(47, 58, 51, 0.66);
  --border:        rgba(74, 100, 84, 0.12);
  --danger:        #B4573F;
  --danger-soft:   #F6E3DC;

  --font-heading:  'Stetica', 'Montserrat', Georgia, serif;
  --font-text:     'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius:    20px;
  --radius-md: 16px;
  --radius-sm: 14px;

  --shadow:    0 10px 30px rgba(74, 100, 84, 0.08);
  --shadow-lg: 0 20px 50px rgba(74, 100, 84, 0.14);

  --nav-h: 66px;
  --maxw: 560px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--text);
}
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Приложение: контейнер ---------- */
#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; position: relative; }
.view { display: block; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
.view[hidden] { display: none !important; }

.content { padding: 12px 16px 24px; }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  padding-top: calc(16px + env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-family: var(--font-heading); font-weight: 400; font-size: 1.75rem; letter-spacing: .01em; }
.topbar__sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.topbar--sub h1 { font-family: var(--font-heading); font-weight: 400; font-size: 1.45rem; flex: 1; text-align: center; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }

/* Выпадающая кнопка сортировки */
.sort-dropdown { position: relative; margin-bottom: 16px; }
.sort-dropdown[hidden] { display: none; }
.sort-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
  transition: border-color .15s ease;
}
.sort-toggle:hover { border-color: var(--accent); }
.sort-toggle .icon { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s ease; }
.sort-dropdown.open .sort-toggle .icon { transform: rotate(180deg); }

.sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex; flex-direction: column;
}
.sort-menu[hidden] { display: none; }
.sort-option {
  position: relative;
  display: flex; align-items: center;
  padding: 11px 14px 11px 34px;
  border-radius: 10px;
  text-align: left;
  font-size: 14.5px; font-weight: 500;
  color: var(--text);
  transition: background .15s ease;
}
.sort-option:hover { background: var(--accent-soft); }
.sort-option::before {
  content: "✓";
  position: absolute; left: 13px;
  color: var(--green); font-weight: 500;
  opacity: 0;
}
.sort-option.active { color: var(--green); }
.sort-option.active::before { opacity: 1; }

/* мобильная адаптация: крупнее тач-зона пунктов */
@media (max-width: 899px) {
  .sort-menu { min-width: 200px; }
  .sort-option { padding-top: 13px; padding-bottom: 13px; }
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--green);
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--add { background: var(--green); color: #fff; border-color: transparent; }
.icon-btn--confirm { background: var(--accent); color: var(--green); border-color: transparent; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(74, 100, 84, 0.28); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--border); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(180, 87, 63, 0.3); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: 12px; }
.btn--lg { padding: 16px 24px; font-size: 16px; }

/* ---------- Навигация ---------- */
#bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  margin: 0 auto;
  max-width: var(--maxw);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(74, 100, 84, 0.06);
}
#bottom-nav[hidden] { display: none; }
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-item .icon { width: 24px; height: 24px; }
.nav-item.active { color: var(--green); }
.nav-item.active .icon { transform: translateY(-1px); }
.nav-brand { display: none; }

/* ---------- Карточки ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--overdue {
  background: #FBF1E3;
}
.card + .card { margin-top: 14px; }

/* ---------- Чипы ---------- */
.chip {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chip--sage  { background: var(--accent-soft); }
.chip--blue  { background: rgba(207, 224, 227, 0.8); }
.chip--sand  { background: rgba(240, 223, 200, 0.9); }
.chip--lilac { background: rgba(221, 214, 232, 0.85); }
.chip--pink  { background: rgba(235, 211, 203, 0.85); }
.chip--sm { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }

/* Картинки-иконки действий ухода.
   Плитки в исходнике имеют свой фон, поэтому чип получает тот же оттенок. */
.care-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  overflow: hidden;
}
.chip .care-icon { width: 100%; height: 100%; border-radius: 11px; }
.chip--sm .care-icon { border-radius: 9px; }
.mini-tag .care-icon { width: 16px; height: 16px; border-radius: 5px; display: inline-block; vertical-align: -3px; }
.care-icon--thumb { width: 100%; height: 100%; border-radius: 12px; }

/* Заголовок карточки задачи: плитка крупнее */
.group-card__head .chip .care-icon { border-radius: 12px; }

/* ============================================================
   ЭКРАН АВТОРИЗАЦИИ
   ============================================================ */
.view--auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}
.auth-shell { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.auth-logo .icon { width: 34px; height: 34px; }
.auth-brand h1 { font-family: var(--font-heading); font-size: 2.15rem; font-weight: 400; letter-spacing: .01em; }
.auth-brand p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }

.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px 20px; }
.auth-panel h2 { font-family: var(--font-heading); font-weight: 400; font-size: 1.6rem; margin-bottom: 4px; }
.auth-hint { font-size: 14.5px; color: var(--text-muted); margin-bottom: 18px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; justify-content: center; }
.auth-links .link { color: var(--green); font-size: 14px; font-weight: 500; text-decoration: none; }
.auth-error { min-height: 20px; margin: 10px 0; font-size: 13.5px; color: var(--danger); }
.auth-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 18px; }

/* Галочки согласий на регистрации */
.consents { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.consent {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; color: var(--text); cursor: pointer; line-height: 1.45;
}
.consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--green);
}
.consent a { color: var(--green); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* ============================================================
   Поля форм
   ============================================================ */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-muted); margin-bottom: 7px; }
.field__control {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__control .icon { width: 18px; height: 18px; color: var(--text-muted); }
.field__control input { flex: 1; border: none; outline: none; padding: 13px 0; background: transparent; }
.field > input[type="text"], .field > input[type="email"], .field > input[type="password"],
.field > input[type="date"], .field > input[type="number"], .field > input[type="time"], .field > select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field > input:focus, .field > textarea:focus, .field > select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field > textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #fff;
  resize: none;
  overflow: hidden;
  min-height: 56px;
  outline: none;
}
.field > select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A6454' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
/* Два и более поля в ряд: каждое сжимается, не выходя за контейнер */
.field--inline {
  flex: 1 1 0;
  min-width: 0;
}
.field--inline > input,
.field--inline > select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.field--inline > span { font-size: 12px; }

/* ---------- Кнопка очистки поля (крестик) ---------- */
.field { position: relative; min-width: 0; }
/* В ряду из нескольких полей ширина колонки не должна превышать контейнер */
.field { max-width: 100%; }
.field-clear {
  display: none;
  align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(74, 100, 84, 0.12);
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.field-clear.show { display: inline-flex; }
.field-clear:hover { background: rgba(74, 100, 84, 0.25); color: var(--text); }
.field-clear .icon { width: 13px; height: 13px; }
/* крестик внутри обёртки с иконкой — справа, как flex-элемент */
.field__control .field-clear { margin-right: -6px; }
/* крестик у прямых полей: привязываем к правому краю самого поля,
   чтобы он не выходил за границы узких колонок */
.field > .field-clear {
  position: absolute;
  top: 38px;
  right: 12px;
  z-index: 2;
  pointer-events: auto;
}
/* Узкие колонки (2+ поля в ряд): крестик держится внутри поля */
.field--inline > .field-clear { right: 10px; }
/* У даты/времени крестик правее значка календаря */
.field > input[type="date"] ~ .field-clear,
.field > input[type="time"] ~ .field-clear { right: 10px; }
.field > textarea ~ .field-clear { top: 34px; }
.field > select ~ .field-clear { right: 38px; }
/* Значок календаря у полей с датой/временем.
   position:absolute на ::-webkit-calendar-picker-indicator в iOS Safari
   не поддерживается и раздувает поле шире колонки — поэтому значок
   остаётся в обычном потоке, а место под него даёт padding-right.
   Значения min/max-width и box-sizing не дают полю выйти за контейнер. */
.field > input[type="date"],
.field > input[type="time"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 46px;   /* место под значок календаря */
  position: relative;
  -webkit-appearance: none;
  appearance: none;
}
.field > input[type="date"]::-webkit-calendar-picker-indicator,
.field > input[type="time"]::-webkit-calendar-picker-indicator {
  margin: 0 0 0 4px;
  padding: 0;
  cursor: pointer;
  opacity: .55;
  flex: 0 0 auto;
}
.field > input[type="date"]::-webkit-calendar-picker-indicator:hover,
.field > input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: .9; }

/* Дата во всю ширину: значение не должно обрезаться */
.field > input[type="date"] { text-align: left; }

/* резерв места под крестик справа (дата/время — больше, там ещё календарь) */
.field > input[type="text"], .field > input[type="number"],
.field > textarea, .field > select { padding-right: 40px; }

/* ---------- Выбор фото ---------- */
.photo-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.photo-picker__preview {
  width: 92px; height: 92px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
  background: var(--accent-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--green); font-size: 11px; font-weight: 500;
  overflow: hidden;
  background-size: cover; background-position: center;
}
.photo-picker__preview .icon { width: 24px; height: 24px; }
.photo-picker__preview.has-photo { border-style: solid; }
.photo-picker__preview.has-photo .icon, .photo-picker__preview.has-photo span { display: none; }

/* ---------- Секции формы ---------- */
.form-section { margin-top: 8px; }
.form-section__title { font-size: 1.15rem; margin-bottom: 4px; }
.form-section__hint { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.care-form { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; background: #fff; }
.care-form__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.care-form__name { font-weight: 500; font-size: 15px; }
.care-form__grid {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}
.care-form__grid > .field { flex: 1 1 0; min-width: 0; }
.care-form__grid .field { margin-bottom: 0; }

/* На узких экранах два поля в ряд не помещаются:
   разводим их в колонку, чтобы дата читалась целиком. */
@media (max-width: 479px) {
  .care-form__grid {
    flex-wrap: wrap;
    gap: 14px;
  }
  .care-form__grid > .field {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ============================================================
   ЭКРАН «СЕГОДНЯ»
   ============================================================ */
/* Компактная сводка «Сегодня» — информационная плашка, не баннер. */
.summary-note {
  background: #E6F0E7;
  border-radius: 15px;
  padding: 15px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.summary-note--calm {
  flex-direction: row;
  align-items: center;   /* лист по центру всего текстового блока */
  gap: 10px;
}
.summary-note__icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: #3E7C59;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.summary-note__text { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.summary-note__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: #22302A;
  overflow-wrap: break-word;
}
.summary-note--calm .summary-note__title { font-size: 18px; }
.summary-note__hint {
  font-size: 13.5px;
  line-height: 19px;
  color: #6E7A72;
  overflow-wrap: break-word;
}

/* Широкие экраны: только отступы; подсказка всегда под заголовком */
@media (min-width: 900px) {
  .summary-note { padding: 16px 20px; }
  .summary-note__title { font-size: 21px; }
  .summary-note--calm .summary-note__title { font-size: 19px; }
  .summary-note__hint { font-size: 14px; line-height: 20px; }
}

/* Узкие экраны (320 px): уменьшаем отступы, но не текст */
@media (max-width: 359px) {
  .summary-note { padding: 13px 14px; }
  .summary-note__title { font-size: 18px; }
  .summary-note--calm .summary-note__title { font-size: 17px; }
}

.group-card { padding: 0; overflow: hidden; }
.group-card__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.group-card__title { flex: 1; }
.group-card__title h2 { font-size: 1.1rem; }
.group-card__title { font-family: var(--font-heading); font-weight: 400; font-size: 19px; }
.group-card__title .counter { font-family: var(--font-text); font-size: 13px; color: var(--text-muted); }

.mark-all-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--green);
  font-weight: 500; font-size: 13px;
  border-radius: 999px; padding: 8px 14px;
  transition: background .15s ease;
}
.mark-all-btn:active { background: var(--accent); }

.task-list { list-style: none; border-top: 1px solid var(--border); }
.task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.task-row:last-child { border-bottom: none; }
.task-row__thumb {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background-size: cover; background-position: center;
}
.task-row__thumb .icon { width: 22px; height: 22px; }
.task-row__info { flex: 1; min-width: 0; }
.task-row__name { font-family: var(--font-heading); font-weight: 400; font-size: 17px; }
.task-row__meta { font-size: 13.5px; color: var(--text-muted); }

/* Метаданные задачи карантина: точка, тип и срок на одной линии */
.task-row__meta--q {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.task-row__meta--q .status-dot { flex-shrink: 0; }
.task-row__meta--q .q-type { color: var(--text-muted); }
.task-row__meta--q .q-sep { color: #C6CEC8; }
.q-when { color: var(--text-muted); }
.q-when--overdue { color: #C97A2B; }
.task-row__meta .overdue { color: var(--danger); font-weight: 500; }

.done-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border); color: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.done-btn .icon { width: 20px; height: 20px; }
.done-btn:active { transform: scale(.9); }
.done-btn:hover { border-color: var(--accent); }

/* ---------- Пустые состояния ---------- */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty__icon { font-size: 46px; margin-bottom: 12px; }
.empty__title { font-family: var(--font-heading); font-weight: 400; font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }
.empty__text { font-size: 14px; max-width: 30ch; margin: 0 auto 18px; }

/* ============================================================
   ЭКРАН «РАСТЕНИЯ»
   ============================================================ */
/* ============================================================
   Карточка черенка на вкладке «Размножение»
   ============================================================ */
.method-tag {
  display: inline-flex; align-items: center;
  background: #E6F0E7;
  color: #3E7C59;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.prop-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.prop-card__date { color: #6E7A72; font-size: 13px; }
.prop-card__days-row { color: #6E7A72; font-size: 13px; }

/* Индикатор этапов роста */
.growth { display: flex; flex-direction: column; gap: 6px; }
.growth__bar {
  height: 4px; border-radius: 999px;
  background: #EDF0EA;
  overflow: hidden;
}
.growth__fill {
  display: block; height: 100%;
  border-radius: 999px;
  background: #3E7C59;
  transition: width .3s ease;
}
.growth__stages { display: flex; justify-content: space-between; }
.growth__stage { font-size: 11px; color: #A2ADA6; }
.growth__stage.is-active { color: #3E7C59; font-weight: 600; }

/* «Настроить уход» вместо неактивных строк */
/* «Настроить уход» внутри карточки-детали */
.care-schedule-empty {
  padding: 16px;
  font-size: 13.5px;
  color: #6E7A72;
  line-height: 1.5;
}
.care-setup-toggle {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: #3E7C59;
  text-align: center;
  transition: background .15s ease;
}
.care-setup-toggle:hover { background: #F3F7F3; }

/* Скрытый (ненастроенный) тип ухода */
.care-schedule-item--hidden { background: #FBFCFA; }
.care-schedule-item--hidden .care-schedule-item__name { color: #6E7A72; }
.mini-done-btn--ghost {
  background: #F3F7F3;
  color: #3E7C59;
  border: 1px solid rgba(62, 124, 89, .18);
}Лента фотодневника в карточке */
.photo-strip-wrap { margin-top: 2px; }
.photo-strip {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip__item {
  width: 96px; height: 96px;
  min-width: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #E6F0E7;
  cursor: pointer;
  display: block;
}
.photo-strip__add {
  width: 96px; height: 96px;
  min-width: 96px;
  border-radius: 12px;
  border: 1.5px dashed #C9D6CC;
  background: #F4F8F4;
  color: #3E7C59;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.photo-strip__add .icon { width: 24px; height: 24px; }
.photo-strip__add:hover { background: #E6F0E7; border-color: #9DBBA6; }

/* Карточка растения (вкладка «Растения»)
   Фото сверху 4:3, ниже — название, комната и строки ухода. */
.plant-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid #E4E0D6;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34, 48, 42, 0.04);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .18s ease, transform .15s ease;
}
.plant-card:active { transform: scale(.99); }
.plant-card:hover { box-shadow: 0 6px 18px rgba(34, 48, 42, 0.08); }

/* Фото — верхняя часть карточки, соотношение 4:3 */
.plant-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #E6F0E7;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.plant-card__photo[data-action="view-photo"] { cursor: pointer; }
.plant-card__photo--empty {
  display: flex; align-items: center; justify-content: center;
  color: #6E9A78;
}
.plant-card__photo--empty .icon { width: 52px; height: 52px; opacity: .55; }

.plant-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.plant-card__head { display: flex; align-items: flex-start; gap: 10px; }
.plant-card__info { flex: 1; min-width: 0; }
.plant-card__name { color: #22302A; font-size: 17px; font-weight: 600; line-height: 1.3; }
.plant-card__group { color: #6E7A72; font-size: 13px; margin-top: 2px; }

.plant-card__care { display: flex; flex-direction: column; gap: 6px; }

/* Строка ухода: точка · тип · срок */
.care-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; line-height: 1.35;
  color: #6E7A72;
  min-width: 0;
}
.care-row--muted { color: #9AA69E; font-size: 13px; }
.care-row__label { color: #22302A; flex-shrink: 0; }
.care-row__sep { color: #C6CEC8; }
.care-row__due { color: #6E7A72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.care-row__due--overdue { color: #C97A2B; }

/* Бейдж «+N» для скрытых строк ухода */
.care-more {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(34, 48, 42, 0.06);
  color: #6E7A72;
  font-size: 12px; font-weight: 500;
}

/* Миниатюра в карточках групп и размножения (списком) */
.plant-card__thumb {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  align-self: center;
  background: var(--accent-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.plant-card__thumb .icon { width: 28px; height: 28px; }

/* Индикаторы статуса (цветные точки) */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.status-dot--today {
  background-color: #3E7C59;
}
.status-dot--overdue {
  background-color: #C97A2B;
}

.plant-card__next { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 4px 10px;
}
.mini-tag--due { background: var(--accent-soft); color: var(--green); }
.mini-tag--ok { background: rgba(74, 100, 84, 0.07); color: var(--text-muted); }
.mini-tag--overdue { background: rgba(201, 122, 43, 0.12); color: #C97A2B; }

/* ============================================================
   КАРТОЧКА РАСТЕНИЯ (detail)
   ============================================================ */
.detail-hero { text-align: center; padding: 8px 0 4px; }
.detail-hero__photo {
  width: 128px; height: 128px; border-radius: 32px; margin: 0 auto 14px;
  background: var(--accent-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}
.detail-hero__photo[data-action="view-photo"] { cursor: pointer; }
.detail-hero__photo .icon { width: 48px; height: 48px; }
.detail-hero h2 { font-family: var(--font-heading); font-weight: 400; font-size: 1.75rem; letter-spacing: .01em; }
.detail-hero__group { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.detail-hero__desc { font-size: 14px; color: var(--text-muted); margin-top: 10px; }
.detail-hero__notes { font-size: 14px; color: var(--text); margin-top: 8px; font-style: italic; }

.section-label { font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin: 22px 4px 10px; }

.care-schedule-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.care-schedule-item + .care-schedule-item { border-top: 1px solid var(--border); }
.care-schedule-item__info { flex: 1; min-width: 0; }
.care-schedule-item__name { font-family: var(--font-heading); font-weight: 400; font-size: 16.5px; }
.care-schedule-item__sub { font-size: 13.5px; color: var(--text-muted); }
.care-schedule-item__sub .overdue { color: var(--danger); font-weight: 500; }

.mini-done-btn {
  flex-shrink: 0;
  background: var(--accent-soft); color: var(--green);
  font-weight: 500; font-size: 12.5px;
  border-radius: 999px; padding: 8px 13px;
}

.history-list { list-style: none; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.history-item:last-child { border-bottom: none; }
.history-item__date { font-size: 14px; color: var(--text-muted); }
/* Кнопка отмены отметки в истории */
.history-del {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.history-del .icon { width: 14px; height: 14px; }
.history-del:hover { background: var(--danger-soft); color: var(--danger); border-color: rgba(180, 87, 63, .25); }
.history-del:active { transform: scale(.92); }

/* «Показать ещё» */
.history-more {
  display: block; width: 100%;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500;
  color: var(--green);
  text-align: center;
  transition: background .15s ease;
}
.history-more:hover { background: var(--accent-soft); }
.history-item__name { flex: 1; min-width: 0; font-weight: 500; font-size: 14.5px; }

/* Плашка «Пересадка» в карточке растения */
.repot-card { background: var(--accent-soft); border-color: transparent; }
.repot-date { font-weight: 500; color: var(--green); }
.repot-size { color: var(--text-muted); }

/* Карточка участника группы и её плашка пересадки */
.group-plant-card { display: block; }
.group-plant-card__head { display: flex; align-items: center; gap: 12px; }
.group-plant-card .plant-card__info { cursor: pointer; }
.repot-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border-radius: 12px;
  padding: 8px 12px; margin-top: 12px;
  font-size: 13px;
}
.repot-badge .repot-date { font-weight: 500; color: var(--green); }

/* ============================================================
   РАЗМНОЖЕНИЕ
   ============================================================ */
.prop-card { cursor: pointer; }
.prop-card__head { display: flex; align-items: center; gap: 12px; }
.prop-card__info { flex: 1; min-width: 0; }
.prop-card__name { font-family: var(--font-heading); font-weight: 400; font-size: 19px; letter-spacing: .005em; }
.prop-card__sub { font-size: 13.5px; color: var(--text-muted); }
.prop-card__days {
  flex-shrink: 0; font-size: 12px; font-weight: 500; color: var(--green);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 7px;
}
.prop-card__meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.prop-card__meta .progress-wrap { flex: 1; }
.progress { height: 7px; border-radius: 999px; background: rgba(74, 100, 84, 0.1); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* detail */
.prop-detail-hero { text-align: center; padding: 6px 0 2px; }
.prop-detail-hero .chip { margin: 0 auto 12px; width: 54px; height: 54px; font-size: 26px; border-radius: 18px; }
.prop-detail-hero h2 { font-size: 1.45rem; }
.prop-detail-hero__meta { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; cursor: pointer;
}
.check-item + .check-item { border-top: 1px solid var(--border); }
.check-item__box {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all .15s ease;
}
.check-item__box .icon { width: 15px; height: 15px; opacity: 0; }
.check-item.done .check-item__box { background: var(--green); border-color: var(--green); }
.check-item.done .check-item__box .icon { opacity: 1; }
.check-item.done .check-item__label { color: var(--text-muted); text-decoration: line-through; }
.check-item__label { font-weight: 500; font-size: 15px; }

/* фото-лента */
.photo-diary-controls {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.photo-diary-controls input[type="date"] {
  flex: 1; min-width: 140px; max-width: 220px;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 9px 12px; background: #fff; color: var(--text); font-size: 14px;
}
.photo-diary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-diary__add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--green);
  font-size: 13px; font-weight: 500;
  flex-shrink: 0;
}
.photo-diary__add .icon { width: 16px; height: 16px; }
.photo-diary__item { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: #e9e6dd; }
.photo-diary__item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.photo-diary__item .photo-date {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-size: 10.5px; padding: 14px 6px 5px;
}
.photo-diary__item .photo-del {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.photo-diary__item .photo-del .icon { width: 14px; height: 14px; }

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
/* Карточка пользователя в профиле — стили в разделе «ПРОФИЛЬ» ниже. */

/* Выбор эмодзи-аватара */
.avatar-picker { text-align: center; margin-bottom: 20px; }
.avatar-picker__preview {
  width: 88px; height: 88px;
  margin: 0 auto 10px;
  border-radius: 26px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  box-shadow: var(--shadow);
}
.avatar-picker__hint { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.avatar-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.avatar-picker__item {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.avatar-picker__item:active { transform: scale(.92); }
.avatar-picker__item.active { border-color: var(--green); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 420px) {
  .avatar-picker__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Поле только для чтения */
.field__control--readonly { background: rgba(74, 100, 84, 0.06); }
.field__control--readonly input { color: var(--text-muted); cursor: default; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.profile-stats { display: flex; gap: 10px; margin-top: 18px; }
.profile-stat { flex: 1; background: var(--bg); border-radius: var(--radius-md); padding: 14px 8px; }
.profile-stat__num { font-family: var(--font-heading); font-weight: 400; font-size: 1.5rem; color: var(--green); }
.profile-stat__label { font-size: 11.5px; color: var(--text-muted); }

.menu-list { list-style: none; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 16px; text-align: left;
  font-size: 15px; font-weight: 500;
}
.menu-item + .menu-item { border-top: 1px solid var(--border); }
.menu-item > .icon { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.menu-item--danger { color: var(--danger); }
.menu-item--danger .icon { color: var(--danger); }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed;
  left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px);
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  background: var(--green); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--danger); }

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(47, 58, 51, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 24px;
  text-align: center;
  animation: modal-in .2s ease;
}
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.modal__close:hover { background: var(--accent); }
.modal__close .icon { width: 16px; height: 16px; }
.modal__title { font-size: 1.25rem; margin-bottom: 12px; }
.modal__text { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.modal__text a { color: var(--green); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   COOKIE-БАННЕР
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 65;
  width: calc(100% - 32px);
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ============================================================
   ПРОСМОТР ФОТО (лайтбокс)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 17, 0.88);
}
.lightbox__body {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__body img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close .icon { width: 18px; height: 18px; }

/* ============================================================
   ШИРОКИЕ ЭКРАНЫ
   ============================================================ */
@media (min-width: 620px) {
  .content { padding: 16px 20px 28px; }
  .topbar { padding-left: 20px; padding-right: 20px; }
  .care-form__grid { gap: 16px; }
}

/* ============================================================
   ДЕСКТОП (≥900px): боковой сайдбар + сетки
   ============================================================ */
@media (min-width: 900px) {
  /* навигация становится левым сайдбаром */
  #bottom-nav {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 232px; height: 100vh; max-width: none; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 6px;
    padding: 26px 14px;
    border-top: none; border-right: 1px solid var(--border);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
  }
  .nav-brand {
    display: flex; align-items: center; gap: 11px;
    padding: 2px 10px 24px;
  }
  .nav-brand__logo {
    width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
    object-fit: cover;
    display: block;
  }
  .nav-brand__name {
    font-family: var(--font-heading); font-weight: 400; font-size: 20px;
    color: var(--text); letter-spacing: .01em;
  }
  .nav-item {
    flex: none;
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 13px; padding: 13px 16px; border-radius: 14px;
    font-size: 15px;
    transition: background .15s ease, color .15s ease;
  }
  .nav-item:hover { background: rgba(169, 191, 165, 0.14); }
  .nav-item.active { background: var(--accent-soft); color: var(--green); }
  .nav-item.active .icon { transform: none; }
  .nav-item .icon { width: 22px; height: 22px; }

  /* контент сдвигается вправо, когда сайдбар виден */
  body.has-nav #app { max-width: none; margin: 0 0 0 232px; }
  body.has-nav .view { padding-bottom: 56px; }
  body.has-nav .topbar,
  body.has-nav .content {
    max-width: 1240px; margin-left: auto; margin-right: auto;
  }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .content { padding: 20px 28px 40px; }

  /* сетки списков: 3 колонки (задаются в общем блоке ниже) */
  #plants-root .sort-dropdown { margin-bottom: 0; }

  /* формы и карточки — по центру, читаемая ширина */
  #view-plant-form .content, #view-prop-form .content,
  #view-plant-detail .content, #view-prop-detail .content {
    max-width: 800px; margin: 0 auto;
  }

  #toast { bottom: 32px; left: calc(50% + 116px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   КАРАНТИН РАСТЕНИЯ
   Спокойная лавандовая гамма — не пересекается с янтарным
   (просроченные задачи) и зелёным (обычный уход).
   ============================================================ */

/* Метка «Карантин» */
.q-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F1EBF3;
  color: #756078;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.q-badge .icon { width: 13px; height: 13px; }
.q-badge--list { margin-top: 6px; }
.q-badge--done { background: rgba(34, 48, 42, .06); color: #6E7A72; }

/* Тонированная граница карточки в списке */
.plant-card--quarantine { border-color: #DCD0DF; }

/* Сводка в карточке растения.
   Все строки и кнопки выровнены по одному левому краю; padding
   контейнера задаёт единственный отступ. */
.q-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F1EBF3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
}
/* Заголовок: щит · Карантин · N дней — единый размер */
.q-summary__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: left;
}
.q-summary__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #756078;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.q-summary__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #22302A;
  line-height: 1.35;
}
/* Круглая точка между «Карантин» и количеством дней */
.q-summary__dot {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #756078;
  opacity: .55;
}
.q-summary__line {
  font-size: 13px;
  color: #6E7A72;
  line-height: 1.45;
  text-align: left;
}
/* Кнопки: слева, без дополнительных отступов */
.q-summary__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 4px 0 0;
  padding: 0;
}

/* Кнопки карантина */
.q-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(117, 96, 120, .22);
  background: #fff;
  color: #756078;
  font-size: 13px; font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
}
.q-btn:hover { background: #F7F3F8; border-color: rgba(117, 96, 120, .4); }
.q-btn .icon { width: 15px; height: 15px; }
.q-btn--primary { background: #756078; border-color: transparent; color: #fff; }
.q-btn--primary:hover { background: #655070; }
.q-btn--block { display: flex; width: 100%; }
.q-btn--tiny { padding: 5px 10px; font-size: 12px; }
.q-btn--ghost { background: transparent; border-color: transparent; color: #6E7A72; }
.q-btn:disabled { opacity: .55; cursor: default; }

/* Блок «Карантин» */
.q-card { padding: 0; }
.q-card__section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.q-card__section:last-child { border-bottom: none; }
.q-card__title { font-size: 13px; font-weight: 600; color: #6E7A72; margin-bottom: 10px; }
.q-muted { font-size: 13px; color: #9AA69E; }

/* Напоминания */
.q-reminders { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.q-reminder { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-reminder__info { flex: 1; min-width: 130px; }
.q-reminder__type { font-size: 14px; color: #22302A; font-weight: 500; }
.q-reminder__when { font-size: 12.5px; color: #6E7A72; }

/* Записи */
.q-entry { padding: 10px 0; border-bottom: 1px solid var(--border); }
.q-entry:last-child { border-bottom: none; }
.q-entry__head { display: flex; align-items: center; gap: 8px; }
.q-entry__kind {
  font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px;
  background: #F1EBF3; color: #756078;
}
.q-entry__kind--treatment { background: #E6F0E7; color: #3E7C59; }
.q-entry__kind--note { background: rgba(34, 48, 42, .06); color: #6E7A72; }
.q-entry__kind--system { background: rgba(34, 48, 42, .04); color: #9AA69E; }
.q-entry__date { flex: 1; font-size: 12.5px; color: #6E7A72; }
.q-entry__more { color: #6E7A72; font-size: 18px; line-height: 1; padding: 2px 6px; }
.q-entry__meta { font-size: 12.5px; color: #6E7A72; margin-top: 4px; }
.q-entry__text { font-size: 13.5px; color: #22302A; margin-top: 4px; line-height: 1.45; }
.q-entry__menu { display: flex; gap: 4px; margin-top: 6px; }
.q-entry__menu[hidden] { display: none; }
.q-menu-item {
  font-size: 12.5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(34, 48, 42, .05); color: #22302A;
}
.q-menu-item--danger { color: #B4573F; background: rgba(180, 87, 63, .1); }

/* История карантина */
.q-hist__toggle {
  display: block; width: 100%; padding: 14px 16px;
  font-size: 13.5px; font-weight: 500; color: #756078; text-align: center;
}
.q-hist { border-top: 1px solid var(--border); }
.q-hist__episode { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.q-hist__episode:last-child { border-bottom: none; }
.q-hist__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-hist__dates { font-size: 13px; color: #6E7A72; }
.q-hist__reason { font-size: 13px; color: #22302A; margin-top: 6px; }
.q-hist__note { font-size: 13px; color: #6E7A72; margin-top: 4px; }
.q-hist__sub { font-size: 12px; font-weight: 600; color: #9AA69E; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.q-hist__reminders { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.q-hist__reminder { font-size: 12.5px; color: #6E7A72; }
.q-hist__reminder--cancelled { text-decoration: line-through; opacity: .65; }
.q-hist__reminder--done { color: #3E7C59; }

/* ============================================================
   ПАНЕЛЬ ФОРМ (нижняя на мобильном, модалка на десктопе)
   ============================================================ */
.q-sheet { position: fixed; inset: 0; z-index: 90; }
.q-sheet[hidden] { display: none; }
.q-sheet__overlay { position: absolute; inset: 0; background: rgba(24, 32, 28, .42); }
.q-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh; overflow-y: auto;
  animation: q-sheet-up .22s ease;
}
@keyframes q-sheet-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 900px) {
  .q-sheet__panel {
    position: relative; margin: 8vh auto 0; max-width: 520px;
    border-radius: 20px; bottom: auto;
    box-shadow: var(--shadow-lg);
  }
}

/* Поля формы */
.q-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.q-form > * { max-width: 100%; min-width: 0; }
.q-form__title { font-size: 1.25rem; font-weight: 600; color: #22302A; }
.q-form__text { font-size: 13.5px; color: #6E7A72; line-height: 1.5; }
.q-form__error {
  background: var(--danger-soft); color: var(--danger);
  border-radius: 10px; padding: 10px 12px; font-size: 13px;
}
.q-form__error[hidden] { display: none; }
.q-form__actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.q-form__actions .q-btn { flex: 1; min-width: 130px; }

.q-field { display: flex; flex-direction: column; gap: 5px; }
.q-field > span { font-size: 13px; color: #6E7A72; }
.q-field input, .q-field select, .q-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #22302A;
  outline: none;
}
/* Текст растёт вниз и никогда не расширяет поле вбок */
.q-field textarea {
  resize: none;
  overflow: hidden;
  line-height: 1.45;
  min-height: 44px;
  display: block;
}
.q-field input:focus, .q-field select:focus, .q-field textarea:focus {
  border-color: #B9A4BE; box-shadow: 0 0 0 3px rgba(117, 96, 120, .12);
}
.q-field-row { display: flex; gap: 10px; }
.q-field-row .q-field { flex: 1; }
.q-field-group {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-radius: 12px; background: #F9F7FA;
}
.q-field-group > span { font-size: 13px; color: #6E7A72; }
.q-field-group input, .q-field-group select, .q-field-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; font-size: 14.5px; font-family: inherit; background: #fff;
  color: #22302A;
  outline: none;
}
.q-field-group textarea {
  resize: none;
  overflow: hidden;
  line-height: 1.45;
  min-height: 40px;
  display: block;
}
.q-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #22302A; }
.q-check input { width: 17px; height: 17px; accent-color: #756078; }

/* Кнопка «Отменить» в уведомлении */
.toast--action {
  display: inline-flex; align-items: center; gap: 12px;
  padding-right: 10px;
}
.toast__action {
  color: #B9D3BE; font-weight: 600; font-size: 13px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  padding-left: 12px;
}


/* ============================================================
   СЕТКА КАРТОЧЕК: 2 в ряд на всех экранах
   ============================================================ */
#plants-root,
#prop-root {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  /* Все карточки в ряду одной высоты — по самой высокой */
  align-items: stretch;
}
#plants-root .card,
#prop-root .card {
  margin: 0;
  min-width: 0;
  height: 100%;            /* одинаковая высота в ряду */
  display: flex;
  flex-direction: column;
}
#plants-root .plant-card__body,
#prop-root .plant-card__body {
  flex: 1;                 /* тело забирает оставшееся место */
  display: flex;
  flex-direction: column;
}
/* Строки ухода идут сразу под текстом; свободное место остаётся снизу */
#plants-root .plant-card__care,
#prop-root .plant-card__care {
  margin-top: 0;
}
/* Служебные элементы растягиваются на всю ширину */
#plants-root .empty,
#prop-root .empty,
#plants-root .section-label,
#plants-root .sort-dropdown {
  grid-column: 1 / -1;
}

/* Текст карточки подгоняется под ширину колонки */
#plants-root .plant-card__body,
#prop-root .plant-card__body {
  padding: 12px;
  gap: 8px;
}
#plants-root .plant-card__name,
#prop-root .plant-card__name {
  font-size: 15px;
  line-height: 1.28;
}
#plants-root .plant-card__group,
#prop-root .prop-card__date {
  font-size: 12px;
  margin-top: 2px;
}
#plants-root .care-row,
#prop-root .care-row {
  font-size: 12px;
  gap: 6px;
}
#plants-root .care-row__due,
#prop-root .care-row__due {
  font-size: 12px;
}
#plants-root .care-more,
#prop-root .care-more {
  min-width: 26px;
  height: 19px;
  font-size: 11px;
  padding: 0 7px;
}
#plants-root .status-dot,
#prop-root .status-dot {
  width: 7px;
  height: 7px;
}
#prop-root .method-tag {
  font-size: 11px;
  padding: 3px 8px;
}
#prop-root .prop-card__days-row {
  font-size: 11.5px;
}
#prop-root .growth__stages { font-size: 10px; }
#prop-root .growth__stage { font-size: 10.5px; }

/* Очень узкие экраны (до 360px): плотнее, но читаемо */
@media (max-width: 359px) {
  #plants-root, #prop-root { gap: 10px; }
  #plants-root .plant-card__body,
  #prop-root .plant-card__body { padding: 10px; gap: 6px; }
  #plants-root .plant-card__name,
  #prop-root .plant-card__name { font-size: 13.5px; }
  #plants-root .plant-card__group,
  #prop-root .prop-card__date { font-size: 11px; }
  #plants-root .care-row,
  #prop-root .care-row { font-size: 11px; }
  #plants-root .care-row__due,
  #prop-root .care-row__due { font-size: 11px; }
}

/* Широкие экраны: карточки крупнее */
@media (min-width: 900px) {
  #plants-root, #prop-root { gap: 18px; }
  #plants-root .plant-card__body,
  #prop-root .plant-card__body { padding: 16px; gap: 10px; }
  #plants-root .plant-card__name,
  #prop-root .plant-card__name { font-size: 17px; }
  #plants-root .plant-card__group,
  #prop-root .prop-card__date { font-size: 13px; }
  #plants-root .care-row,
  #prop-root .care-row { font-size: 13px; }
  #plants-root .care-row__due,
  #prop-root .care-row__due { font-size: 13px; }
  #plants-root .status-dot,
  #prop-root .status-dot { width: 8px; height: 8px; }
  #prop-root .method-tag { font-size: 12px; padding: 3px 10px; }
  #prop-root .prop-card__days-row { font-size: 13px; }
  #prop-root .growth__stages { font-size: 11px; }
  #prop-root .growth__stage { font-size: 11px; }
}

/* ============================================================
   РАЗДЕЛ «УВЕДОМЛЕНИЯ» В ПРОФИЛЕ
   ============================================================ */
.notify { display: flex; flex-direction: column; gap: 12px; }
.notify__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notify__row--time { padding-top: 4px; }
.notify__row--muted { padding-top: 4px; }
.notify__label { font-size: 14px; color: #22302A; }
.notify__value { font-size: 13px; color: #6E7A72; text-align: right; word-break: break-word; }
.notify__time {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; font-size: 15px; font-family: inherit; color: #22302A;
  background: #fff;
}

/* Переключатель */
.notify__switch { position: relative; display: inline-flex; flex-shrink: 0; }
.notify__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.notify__slider {
  width: 46px; height: 26px; border-radius: 999px;
  background: #D8DCD8; position: relative; transition: background .18s ease;
  pointer-events: none;
}
.notify__slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .18s ease;
}
.notify__switch input:checked + .notify__slider { background: #3E7C59; }
.notify__switch input:checked + .notify__slider::after { transform: translateX(20px); }
.notify__switch input:disabled + .notify__slider { opacity: .5; cursor: default; }
.notify__switch input:focus-visible + .notify__slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Статус */
.notify__status {
  font-size: 13px; color: #6E7A72;
  padding: 9px 12px; border-radius: 10px; background: rgba(34,48,42,.04);
}
.notify__status--on { color: #3E7C59; background: #E6F0E7; }
.notify__status--warn { color: #C97A2B; background: rgba(201,122,43,.1); }

.notify__hint { font-size: 12.5px; color: #6E7A72; line-height: 1.5; }
.notify__hint--warn { color: #C97A2B; }
.notify__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--ok { background: #3E7C59; color: #fff; border-color: transparent; }
.btn--ok:hover { background: #35704f; }

/* ============================================================
   ЭТАПЫ РАЗМНОЖЕНИЯ
   ============================================================ */
.stages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stages--full { flex-direction: column; align-items: stretch; gap: 8px; }

.stage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: inherit;
  text-align: left;
  color: #22302A;
}
.stages--full .stage {
  padding: 10px 12px;
  border-radius: 12px;
  background: #FBFCFA;
  border: 1px solid var(--border);
  transition: background .15s ease, border-color .15s ease;
}
.stages--full button.stage:hover { background: #F3F7F3; border-color: rgba(62,124,89,.3); }
.stages--full button.stage:active { transform: scale(.995); }

.stage__mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: #EDF0EA;
  color: #9AA69E;
}
.stage__body { min-width: 0; display: flex; flex-direction: column; }
.stage__label { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.stages--full .stage__label { font-size: 14px; }
.stage__date { font-size: 10.5px; color: #6E7A72; line-height: 1.3; }
.stages--full .stage__date { font-size: 12.5px; }

.stage--done .stage__mark { background: #3E7C59; color: #fff; }
.stage--done .stage__label { color: #3E7C59; }

.stage--next .stage__mark { background: #E6F0E7; color: #3E7C59; border: 1px solid rgba(62,124,89,.35); }
.stage--next .stage__label { color: #22302A; }
.stage--next .stage__date { color: #3E7C59; }

.stage--todo .stage__label { color: #9AA69E; }
/* «отметить» у невыполненного этапа — того же цвета, что и его название */
.stage--todo .stage__date { color: #9AA69E; }

.stage__arrow { color: #C6CEC8; font-size: 12px; flex-shrink: 0; }
.stages--full .stage__arrow { display: none; }

.stage-card { padding: 14px; }
.stage-hint { font-size: 12.5px; color: #6E7A72; margin-top: 10px; line-height: 1.5; }

/* ---------- Панель перевода в растение ---------- */
.convert-bar {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #E6F0E7;
  display: flex; flex-direction: column; gap: 10px;
}
.convert-bar[hidden] { display: none; }
.convert-bar__hint { font-size: 12.5px; color: #3E7C59; line-height: 1.5; }
.convert-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.convert-bar__actions .btn { flex: 1; min-width: 130px; }

/* ---------- История размножения в карточке растения ---------- */
.prop-origin { padding: 12px 16px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.prop-origin__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #6E7A72; }
.prop-origin__row b { color: #22302A; font-weight: 500; text-align: right; }
.prop-origin__list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.prop-origin__entry { font-size: 12.5px; color: #6E7A72; }

/* ============================================================
   Экран запуска (пока приложение определяет, куда вернуться)
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s ease;
}
.boot[hidden] { display: none; }
.boot--out { opacity: 0; pointer-events: none; }

.boot__logo {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  animation: boot-pulse 1.1s ease-in-out infinite;
}
.boot__logo .icon { width: 28px; height: 28px; }

@keyframes boot-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ============================================================
   ПРОФИЛЬ: главный экран, «Настройки», «Подписка»
   ============================================================ */

.content--narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.topbar__spacer { width: 42px; flex-shrink: 0; }

/* ---------- Карточка пользователя ---------- */
.profile-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}
.profile-head__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.profile-head__avatar {
  width: 52px; height: 52px;
  font-size: 24px;
  flex-shrink: 0;
}
.profile-head__info { min-width: 0; flex: 1; }
.profile-head__name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.profile-head__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  overflow-wrap: anywhere;   /* длинный email переносится, не ломая сетку */
}
.profile-head__edit { align-self: flex-start; }

/* ---------- Статистика ---------- */
.profile-stats--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.profile-stats--grid .profile-stat {
  flex: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Одинаковое оформление всех четырёх карточек */
  background: #FFFFFF;
  border: 1px solid #E4E0D6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: none;
}
.profile-stats--grid .profile-stat__num { color: #3E7C59; }
.profile-stats--grid .profile-stat__label { color: #6E7A72; line-height: 1.35; }

/* ---------- Карточка «Подписка» ---------- */
.subscribe-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin-top: 12px;
  padding: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.subscribe-card:hover { border-color: rgba(62,124,89,.35); background: #FCFDFB; }
.subscribe-card__icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  align-self: center;   /* по центру блока по вертикали */
}
.subscribe-card__icon .icon { width: 18px; height: 18px; }
.subscribe-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.subscribe-card__title { font-size: 15px; font-weight: 600; color: var(--text); }
.subscribe-card__status { font-size: 13px; font-weight: 600; color: var(--green); }
.subscribe-card__sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.subscribe-card__more {
  font-size: 13px; font-weight: 600; color: var(--green);
  flex-shrink: 0; align-self: center;
  white-space: nowrap;
}
/* Пока места мало — ссылка переходит на новую строку под текстом,
   а не обрезается сбоку. Карточка целиком кликабельна в любом случае. */
@media (max-width: 479px) {
  .subscribe-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon body" ". more";
    align-items: center;
    row-gap: 8px;
  }
  .subscribe-card__icon { grid-area: icon; align-self: center; }
  .subscribe-card__body { grid-area: body; }
  .subscribe-card__more { grid-area: more; justify-self: start; align-self: start; }
}

/* ---------- Список действий ---------- */
.card--menu { padding: 0; overflow: hidden; margin-top: 12px; }
.menu-item__icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-item__icon .icon { width: 16px; height: 16px; }
.menu-item__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; text-align: left; }
.menu-item__title { font-size: 14.5px; color: var(--text); }
.menu-item__sub { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.menu-item__chev { width: 16px; height: 16px; color: #B9C2BB; flex-shrink: 0; }

/* ---------- Выход ---------- */
.profile-logout { margin-top: 20px; }

/* Спокойная заливка вместо контурной кнопки; ширина и скругление
   берутся из .btn--block / .btn */
.profile-logout .btn--ghost {
  background: #E6F0E7;
  color: #2F6247;
  border-color: transparent;
  box-shadow: none;
}
.profile-logout .btn--ghost:hover { background: #DCE9DE; }
.profile-logout .btn--ghost:active { background: #D1E1D4; }
.profile-logout .btn--ghost .icon { color: #2F6247; }
.profile-logout .btn--ghost:focus-visible {
  outline: 2px solid #3E7C59;
  outline-offset: 2px;
}

/* ---------- «Настройки» ---------- */
.settings-block { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.settings-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.settings-row__body { min-width: 0; flex: 1; }
.settings-row__title { font-size: 13px; color: var(--text-muted); }
.settings-row__value { font-size: 14.5px; color: var(--text); margin-top: 2px; overflow-wrap: anywhere; }
.settings-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.settings-danger { color: #B4553F; border-color: rgba(180,85,63,.3); }
.settings-danger:hover { background: rgba(180,85,63,.06); border-color: rgba(180,85,63,.5); }

/* Блок уведомлений на экране настроек */
#view-settings .notify { margin-top: 0; }

/* ---------- «Подписка» ---------- */
.sub-status { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.sub-badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 600;
  color: var(--green);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 11px;
}
.sub-status__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.sub-status__text { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.sub-status__note { font-size: 12.5px; color: var(--text-muted); }

.sub-plan { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-top: 12px; }
.sub-plan__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
/* Подпись и значение — одинаковые размер и цвет */
.sub-plan__label { font-size: 13.5px; color: var(--text); }
.sub-plan__value { font-size: 13.5px; color: var(--text); text-align: right; }

.sub-referral { padding: 16px; margin-top: 12px; }
.sub-referral__title { font-size: 15px; font-weight: 600; color: var(--text); }
.sub-referral__text { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 6px; }

/* ---------- Документы ---------- */
.docs-list { display: flex; flex-direction: column; gap: 8px; }
.docs-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #FBFCFA;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.docs-link .icon { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }
.docs-link__chev { margin-left: auto; color: #B9C2BB; }
.docs-link:hover { border-color: rgba(62,124,89,.35); background: #F5F9F5; }

/* ---------- Десктоп ---------- */
@media (min-width: 900px) {
  .profile-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
  }
  .profile-head__edit { align-self: center; }
  .profile-stats--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content--narrow { padding-left: 20px; padding-right: 20px; }
}
