/* ПОХУдейка веб — визуально как iOS (мятный фон, белые карточки, плавающий таббар) */
:root {
  --ios-bg-top: #eef8f0;
  --ios-bg-bottom: #e3f2e6;
  --ios-card: #ffffff;
  --ios-ink: #1c1c1e;
  --ios-muted: #6b7280;
  --ios-muted2: #9ca3af;
  --ios-green: #5a9c6a;
  --ios-green-dark: #4a8a5a;
  --ios-sage: #6b9075;
  --ios-sage-btn: #5c7d66;
  --ios-blue-tile: #5b8fc7;
  --ios-border: rgba(0, 0, 0, 0.06);
  --ios-shadow: 0 4px 20px rgba(15, 45, 25, 0.07);
  --ios-radius: 22px;
  --ios-radius-sm: 16px;
  --ios-tab-float: 72px;
  --ios-safe-b: env(safe-area-inset-bottom, 0px);
  /* Таббар как на системном скрине: неактивный чёрный, активный зелёный, «пилюля» — скруглённый прямоугольник */
  --ios-tabbar-inactive: #000000;
  --ios-tabbar-active: #2f5539;
  --ios-dock-halo-fill: rgba(218, 228, 222, 0.92);
  --ios-surface-soft: rgba(255, 255, 255, 0.78);
  --ios-surface-strong: rgba(255, 255, 255, 0.92);
  --ios-sheet-bg: linear-gradient(180deg, #d4ecdd 0%, #cbe7d7 100%);
  --ios-chip-bg: #ffffff;
  --ios-chip-border: rgba(0, 0, 0, 0.08);
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, var(--ios-bg-top) 0%, var(--ios-bg-bottom) 55%, #dceee0 100%);
  overscroll-behavior-y: none;
}

body.poh-web {
  margin: 0;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  color: var(--ios-ink);
  background: linear-gradient(180deg, var(--ios-bg-top) 0%, var(--ios-bg-bottom) 55%, #dceee0 100%);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Тёмная тема — ближе к iOS тёмному режиму */
body.poh-web.poh-web--dark {
  --ios-bg-top: #1a2520;
  --ios-bg-bottom: #0f1a16;
  --ios-card: rgba(28, 38, 33, 0.94);
  --ios-ink: #f3f4f3;
  --ios-muted: #9ca3af;
  --ios-muted2: #6b7280;
  --ios-border: rgba(255, 255, 255, 0.1);
  --ios-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --ios-tabbar-inactive: rgba(255, 255, 255, 0.55);
  --ios-tabbar-active: #9dd9b0;
  --ios-dock-halo-fill: rgba(90, 156, 106, 0.22);
  --ios-surface-soft: rgba(32, 43, 37, 0.86);
  --ios-surface-strong: rgba(25, 34, 29, 0.94);
  --ios-sheet-bg: linear-gradient(180deg, #1b2a23 0%, #16221d 100%);
  --ios-chip-bg: rgba(255, 255, 255, 0.08);
  --ios-chip-border: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #1a2520 0%, #0f1a16 100%);
}

html.poh-web-html--dark {
  background: linear-gradient(180deg, #1a2520 0%, #0f1a16 100%);
}

* {
  -webkit-tap-highlight-color: transparent;
}

.poh-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--ios-tab-float) + var(--ios-safe-b) + 12px);
}

/* Верхняя полоска: только действия (на главной без крупного лого — как в приложении) */
.poh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 6px;
  min-height: 44px;
}

.poh-topbar--home .poh-logo {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.poh-logo {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ios-ink);
}

.poh-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.poh-link-site {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ios-green);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--ios-border);
}

body.poh-web--dark .poh-link-site {
  background: rgba(255, 255, 255, 0.08);
  color: #8fdf9e;
}

.poh-btn-theme {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ios-ink);
  cursor: pointer;
  font-family: inherit;
}

body.poh-web--dark .poh-btn-theme {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ios-ink);
}

.poh-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable both-edges;
}

/* Карточки iOS */
.poh-ios-card {
  background: var(--ios-card);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  padding: 18px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ios-border);
}

/* Главная — дашборд */
.poh-home-hero {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.poh-mascot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(90, 156, 106, 0.25);
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #c8ead1, #e8f5ec);
  display: grid;
  place-items: center;
}

.poh-mascot--lg {
  width: 96px;
  height: 96px;
  border-width: 3px;
}

.poh-mascot--lg .poh-mascot-emoji {
  font-size: 2.5rem;
}

.poh-mascot--plate {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.poh-mascot--plate .poh-mascot-emoji {
  font-size: 2rem;
}

.poh-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poh-mascot .poh-mascot-emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: none;
}

.poh-mascot--empty .poh-mascot-emoji {
  display: block;
}

.poh-mascot--empty img {
  display: none;
}

.poh-home-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(90, 156, 106, 0.25);
}

.poh-home-greet {
  flex: 1;
  min-width: 0;
}

.poh-home-date {
  font-size: 0.78rem;
  color: var(--ios-muted);
  margin: 0 0 2px;
}

.poh-home-hi {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.poh-home-goal {
  text-align: right;
  font-size: 0.72rem;
  color: var(--ios-muted);
  line-height: 1.35;
  max-width: 42%;
}

.poh-home-goal strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ios-ink);
  font-weight: 700;
}

.poh-home-remain-label {
  font-size: 0.85rem;
  color: var(--ios-muted);
  margin: 18px 0 6px;
}

.poh-home-remain-kcal {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  line-height: 1.1;
}

.poh-norm-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ios-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 5px 10px;
  border-radius: 8px;
}

body.poh-web--dark .poh-norm-pill {
  background: rgba(255, 255, 255, 0.08);
}

.poh-norm-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--ios-border);
  font-size: 0.88rem;
  color: var(--ios-green-dark);
  cursor: pointer;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.poh-norm-hint span:first-child {
  font-size: 1rem;
}

.poh-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ios-muted);
  margin-top: 10px;
}

.poh-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-top: 6px;
}

body.poh-web--dark .poh-bar-track {
  background: rgba(255, 255, 255, 0.1);
}

.poh-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ios-green), #7ec88e);
  transition: width 0.35s ease;
}

.poh-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.poh-quick-tile {
  background: var(--ios-card);
  border-radius: var(--ios-radius-sm);
  padding: 14px 12px;
  border: 1px solid var(--ios-border);
  box-shadow: var(--ios-shadow);
  cursor: pointer;
  text-align: left;
  color: var(--ios-ink);
  font-family: inherit;
  transition: transform 0.15s ease;
}

.poh-quick-tile:active {
  transform: scale(0.98);
}

.poh-quick-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--ios-ink);
}

.poh-quick-ico--green {
  background: rgba(90, 156, 106, 0.2);
}

.poh-quick-ico--blue {
  background: rgba(91, 143, 199, 0.22);
}

.poh-quick-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ios-ink);
  margin: 0 0 4px;
}

.poh-quick-sub {
  font-size: 0.78rem;
  color: var(--ios-muted);
  margin: 0;
}

body.poh-web--dark .poh-quick-tile {
  background: var(--ios-surface-strong);
  border-color: var(--ios-chip-border);
}

body.poh-web--dark .poh-quick-ico--green {
  background: rgba(111, 188, 130, 0.22);
}

body.poh-web--dark .poh-quick-ico--blue {
  background: rgba(109, 168, 232, 0.24);
}

.poh-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 20px 0 10px;
  letter-spacing: -0.02em;
}

.poh-empty-plate {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--ios-card);
  border-radius: var(--ios-radius);
  padding: 16px;
  border: 1px solid var(--ios-border);
  box-shadow: var(--ios-shadow);
}

.poh-empty-plate img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.poh-empty-plate h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.poh-empty-plate p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ios-muted);
  line-height: 1.45;
}

.poh-home-eat {
  width: 100%;
  margin-top: 16px;
  padding: 16px 18px;
  border: none;
  border-radius: var(--ios-radius-sm);
  background: linear-gradient(180deg, #c8ead1 0%, #b5e0c2 100%);
  color: var(--ios-ink);
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(90, 156, 106, 0.22);
}

.poh-home-eat .poh-plus-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ios-ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.poh-home-eat .poh-plus-ico .poh-ui-ico {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

body.poh-web--dark .poh-home-eat {
  background: linear-gradient(180deg, #2a4036 0%, #22332c 100%);
  color: #e8f5eb;
}

/* Экранные заголовки (Лента, Дневник…) */
.poh-screen-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 12px;
}

.poh-screen-lead {
  font-size: 0.88rem;
  color: var(--ios-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.poh-feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.poh-btn-new-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: var(--ios-sage-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.poh-seg {
  position: relative;
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
  overflow: hidden;
}

body.poh-web--dark .poh-seg {
  background: rgba(255, 255, 255, 0.08);
}

.poh-seg__halo {
  position: absolute;
  z-index: 0;
  border-radius: 10px;
  background: var(--ios-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    top 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.18s ease;
}

.poh-seg button {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--ios-muted);
  font-family: inherit;
}

.poh-seg button.poh-seg--on {
  background: transparent;
  color: var(--ios-ink);
}

/* Пост ленты */
.poh-feed-card {
  background: var(--ios-card);
  border-radius: var(--ios-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--ios-border);
  box-shadow: var(--ios-shadow);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.poh-feed-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.poh-feed-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poh-feed-user-link {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.poh-feed-user-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.poh-feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c8ead1, #e8f5ec);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ios-green-dark);
  font-size: 0.95rem;
}

.poh-feed-avatar--img {
  overflow: hidden;
  background: transparent;
}

.poh-feed-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poh-feed-meta {
  font-size: 0.72rem;
  color: var(--ios-muted);
}

.poh-feed-body {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.poh-feed-img {
  width: 100%;
  border-radius: 14px;
  margin-top: 8px;
}

.poh-feed-foot {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.poh-chip-like,
.poh-chip-comment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--ios-ink);
}

.poh-chip-like--on {
  color: #d43e5d;
  background: rgba(212, 62, 93, 0.12);
}

.poh-feed-post-menu {
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 210px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ios-border);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(27, 52, 39, 0.2);
  overflow: hidden;
  z-index: 30;
}

body.poh-web--dark .poh-feed-post-menu {
  background: rgba(32, 42, 37, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}

.poh-feed-post-menu button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.poh-feed-post-menu button + button {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.poh-web--dark .poh-feed-post-menu button + button {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.poh-feed-post-menu button:last-child {
  color: #c62828;
}

.poh-feed-profile-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.poh-feed-profile-card {
  text-align: center;
}

.poh-feed-profile-name {
  margin: 2px 0 4px;
  font-size: 1.2rem;
}

.poh-feed-profile-sub {
  margin: 0 0 12px;
  color: var(--ios-muted);
}

.poh-feed-comments-sheet {
  width: min(430px, 100vw);
  min-height: calc(100dvh - 56px);
  border-radius: 22px 22px 0 0;
  padding: 10px 12px calc(90px + var(--ios-safe-b));
  background: var(--ios-sheet-bg);
}

.poh-feed-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.poh-feed-comments-list {
  display: grid;
  gap: 8px;
}

.poh-feed-comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.poh-feed-comment-bubble {
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--ios-border);
  background: var(--ios-surface-strong);
  padding: 9px 10px;
}

.poh-feed-comment-meta {
  font-size: 0.78rem;
  color: var(--ios-muted);
  margin-bottom: 4px;
}

.poh-feed-comment-text {
  font-size: 0.92rem;
  line-height: 1.4;
}

.poh-feed-comments-input-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + var(--ios-safe-b));
  width: min(408px, calc(100vw - 22px));
  display: flex;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--ios-border);
  background: var(--ios-surface-strong);
  padding: 6px 6px 6px 12px;
}

.poh-feed-comments-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  color: inherit;
}

.poh-feed-comments-input-wrap button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ios-border);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ios-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

body.poh-web--dark .poh-feed-comments-input-wrap button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.poh-feed-compose-form {
  display: grid;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

.poh-feed-compose-form * {
  box-sizing: border-box;
}

.poh-feed-compose-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: linear-gradient(180deg, #d6ecdf 0%, #cae4d6 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

#poh-feed-compose {
  margin: 0 auto;
  width: min(430px, calc(100vw - 24px));
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(44, 69, 57, 0.16);
  box-sizing: border-box;
}

.poh-feed-compose-top {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.poh-feed-compose-link {
  border: none;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ios-muted2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.poh-feed-compose-publish {
  border: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ios-muted2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.poh-feed-compose-publish:not(:disabled) {
  background: var(--ios-sage-btn);
  color: #fff;
}

.poh-feed-compose-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poh-feed-compose-head-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.poh-feed-compose-head-sub {
  color: var(--ios-muted2);
  font-size: 0.85rem;
}

.poh-feed-compose-section-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.poh-feed-compose-section-sub {
  margin: -6px 0 0;
  font-size: 0.92rem;
  color: var(--ios-muted2);
  line-height: 1.35;
}

.poh-feed-compose-block,
.poh-feed-compose-extra {
  border-radius: 18px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.75);
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.poh-web--dark .poh-feed-compose-block,
body.poh-web--dark .poh-feed-compose-extra {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.poh-feed-compose-mode {
  font-weight: 700;
  font-size: 0.98rem;
}

.poh-feed-compose-upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.poh-feed-compose-thumb-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.85);
}

body.poh-web--dark .poh-feed-compose-thumb-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.poh-feed-compose-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poh-feed-compose-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.poh-feed-compose-add-photo {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  border: 2px dashed rgba(90, 156, 106, 0.35);
  background: transparent;
  display: grid;
  place-items: center;
  color: #4e8564;
  cursor: pointer;
}

.poh-feed-compose-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 12px 0 8px;
}

.poh-feed-compose-counter {
  text-align: right;
  color: var(--ios-muted2);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.poh-feed-compose-block textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  min-height: 120px;
  resize: none;
  font: inherit;
  color: var(--ios-ink);
  box-sizing: border-box;
}

.poh-feed-compose-field-title {
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-weight: 800;
}

.poh-feed-compose-meals {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.poh-feed-meal-chip {
  border: 1px solid var(--ios-border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ios-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.poh-feed-meal-chip--on {
  background: var(--ios-sage-btn);
  color: #fff;
  border-color: transparent;
}

.poh-feed-compose-extra input[type="number"] {
  width: 100%;
  border: 1px solid var(--ios-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  font: inherit;
  box-sizing: border-box;
  max-width: 100%;
}

body.poh-web--dark .poh-feed-compose-extra input[type="number"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ios-ink);
}

@media (max-width: 390px) {
  .poh-scroll { padding: 0 12px 16px; }
  .poh-ios-card { padding: 14px 12px; border-radius: 18px; }
  .poh-screen-title { font-size: 1.45rem; }
  .poh-dock { padding: 7px 6px; }
  .poh-dock__btn { font-size: 0.68rem; padding: 8px 4px 6px; }
}

@media (max-width: 430px) {
  :root { --ios-shadow: 0 2px 10px rgba(15, 45, 25, 0.06); }
  body.poh-web.poh-web--dark { --ios-shadow: 0 4px 14px rgba(0, 0, 0, 0.28); }
}

/* Дневник */
.poh-diary-summary {
  margin-bottom: 14px;
}

.poh-diary-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.poh-diary-summary-top h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.poh-diary-summary-top span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ios-muted);
}

.poh-diary-hist-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.poh-diary-hist-title span {
  font-size: 0.8rem;
  color: var(--ios-muted);
  font-weight: 600;
}

.poh-meal-card {
  display: flex;
  gap: 12px;
  background: var(--ios-card);
  border-radius: var(--ios-radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--ios-border);
  box-shadow: var(--ios-shadow);
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.poh-meal-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(90, 156, 106, 0.18);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.poh-meal-body {
  flex: 1;
  min-width: 0;
}

.poh-meal-date {
  font-size: 0.72rem;
  color: var(--ios-muted);
  margin-bottom: 4px;
}

.poh-meal-text {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

.poh-meal-kcal {
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 6px;
}

.poh-meal-read {
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: rgba(90, 156, 106, 0.2);
  color: var(--ios-green-dark);
  cursor: pointer;
  font-family: inherit;
}

/* Прогресс */
.poh-progress-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 0;
  color: inherit;
}

.poh-progress-nav h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.poh-progress-nav p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ios-muted);
}

.poh-progress-ring-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 12px 0;
}

.poh-progress-ring {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(var(--ios-green) calc(var(--poh-ring-p, 0) * 360deg), rgba(0, 0, 0, 0.07) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.poh-progress-ring-inner {
  width: 76%;
  height: 76%;
  border-radius: 50%;
  background: var(--ios-card);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  padding: 4px;
}

.poh-stat-list {
  flex: 1;
  font-size: 0.88rem;
}

.poh-stat-list div {
  margin-bottom: 6px;
  color: var(--ios-muted);
}

.poh-stat-list strong {
  color: var(--ios-ink);
}

.poh-kv {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--ios-border);
  font-size: 0.88rem;
}

.poh-kv:first-of-type {
  border-top: none;
}

.poh-weight-input-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.poh-weight-input-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ios-border);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

body.poh-web--dark .poh-weight-input-row input {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.poh-btn-save-gray {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.poh-hist-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--ios-border);
  font-size: 0.88rem;
}

.poh-hist-row:last-child {
  border-bottom: none;
}

/* Профиль */
.poh-prof-avatar-wrap {
  position: relative;
  width: 96px;
  margin: 0 auto 12px;
}

.poh-prof-avatar-wrap .poh-mascot {
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--ios-shadow);
}

.poh-prof-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.94);
  color: #3f574a;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.poh-prof-name {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.poh-prof-section {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ios-muted);
  margin: 0 0 8px;
}

.poh-prof-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ios-border);
  font-size: 0.9rem;
  gap: 8px;
}

.poh-prof-row input {
  max-width: 56%;
}

.poh-prof-edit-trigger {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0 4px 0 0;
  cursor: pointer;
  font: inherit;
  vertical-align: middle;
}

.poh-prof-row input[readonly] {
  pointer-events: none;
}

.poh-meal-del {
  margin-top: 6px;
  padding: 0;
  font-size: 0.75rem;
  color: var(--ios-muted2);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.poh-prof-row:last-child {
  border-bottom: none;
}

.poh-prof-extra-card {
  padding: 14px 12px 12px;
}

.poh-prof-extra-title {
  margin: 2px 2px 10px;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.poh-install-guide-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #6cb488, #4a8a5a);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 22px rgba(54, 112, 73, 0.3);
}

body.poh-web--dark .poh-install-guide-btn {
  background: linear-gradient(135deg, #4b7f60, #3a6d52);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.poh-extra-stack {
  display: grid;
  gap: 8px;
}

.poh-extra-bubble {
  box-sizing: border-box;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.poh-extra-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.poh-extra-toggle strong {
  font-size: 0.96rem;
}

.poh-extra-row {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.poh-extra-row--link {
  color: inherit;
}

.poh-extra-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(122, 186, 109, 0.2);
  color: #78ab5a;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.poh-extra-label {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.94rem;
}

.poh-extra-chev {
  color: #9da4ac;
  font-size: 1.28rem;
  line-height: 1;
}

.poh-btn--account-danger,
.poh-btn--account-logout {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.72);
  color: #d53964;
  font-size: 1.02rem;
  font-weight: 700;
}

.poh-app-version {
  margin: 14px 0 0;
  text-align: center;
  color: #97a39b;
  font-size: 0.82rem;
}

body.poh-web--dark .poh-extra-bubble,
body.poh-web--dark .poh-extra-row,
body.poh-web--dark .poh-btn--account-danger,
body.poh-web--dark .poh-btn--account-logout {
  background: rgba(33, 44, 38, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
}

.poh-theme-seg {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-top: 8px;
}

body.poh-web--dark .poh-theme-seg {
  background: rgba(255, 255, 255, 0.08);
}

.poh-theme-seg button {
  flex: 1;
  border: none;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--ios-muted);
  font-family: inherit;
}

.poh-theme-seg button.poh-theme-seg--on {
  background: var(--ios-card);
  color: var(--ios-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.poh-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--ios-border);
  margin-top: 10px;
}

.poh-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #ccc;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.poh-switch.poh-switch--on {
  background: var(--ios-green);
}

.poh-switch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.poh-switch.poh-switch--on::after {
  transform: translateX(20px);
}

.poh-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ios-border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ios-ink);
}

.poh-menu-row:last-child {
  border-bottom: none;
}

/* Плавающий таббар */
.poh-dock-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 14px calc(10px + var(--ios-safe-b));
  pointer-events: none;
}

.poh-dock {
  position: relative;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  align-content: center;
  max-width: 400px;
  width: 100%;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 7px 10px 9px;
  box-shadow: 0 4px 24px rgba(15, 45, 25, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(0, 0, 0, 0.06);
  gap: 2px;
}

/* Скользящая «пилюля»: скруглённый прямоугольник под иконкой и подписью (как системный таббар) */
.poh-dock__halo {
  position: absolute;
  z-index: 0;
  border-radius: 20px;
  background: var(--ios-dock-halo-fill);
  pointer-events: none;
  opacity: 0;
  will-change: left, top, width, height, border-radius;
  transform: translateZ(0);
  transition:
    left 0.55s cubic-bezier(0.25, 0.85, 0.24, 1),
    top 0.55s cubic-bezier(0.25, 0.85, 0.24, 1),
    width 0.5s cubic-bezier(0.25, 0.85, 0.24, 1),
    height 0.5s cubic-bezier(0.25, 0.85, 0.24, 1),
    border-radius 0.45s cubic-bezier(0.25, 0.85, 0.24, 1),
    opacity 0.18s ease;
}

/* Кадр без transition — старт FLIP с прежней иконки, затем анимация к новой */
.poh-dock__halo.poh-dock__halo--instant {
  transition: none !important;
}

body.poh-web--dark .poh-dock__halo {
  background: var(--ios-dock-halo-fill);
}

body.poh-web--dark .poh-dock {
  background: rgba(28, 38, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.poh-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.poh-dock__btn {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ios-tabbar-inactive);
  font-family: inherit;
  max-width: 78px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.poh-dock__ico-wrap {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  transition: transform 0.2s ease;
}

.poh-dock__btn:active .poh-dock__ico-wrap {
  transform: scale(0.94);
}

.poh-dock__btn svg {
  width: 22px;
  height: 22px;
}

.poh-dock__btn--on {
  color: var(--ios-tabbar-active);
}

body.poh-web--dark .poh-dock__btn--on {
  color: var(--ios-tabbar-active);
}

/* Контент вкладок: плавный сдвиг по направлению навигации */
.poh-tab-panel-wrap {
  position: relative;
  min-height: 1px;
}

.poh-tab-panel {
  will-change: opacity, transform;
}

.poh-tab-panel--nav-fwd {
  animation: pohTabInFwd 0.46s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.poh-tab-panel--nav-back {
  animation: pohTabInBack 0.46s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes pohTabInFwd {
  from {
    opacity: 0;
    transform: translateX(14px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pohTabInBack {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poh-dock__halo {
    transition: opacity 0.15s ease;
  }

  .poh-dock__btn,
  .poh-dock__ico-wrap {
    transition: none;
  }

  .poh-tab-panel--nav-fwd,
  .poh-tab-panel--nav-back {
    animation: pohTabReduce 0.2s ease both;
  }

  @keyframes pohTabReduce {
    from {
      opacity: 0.75;
    }
    to {
      opacity: 1;
    }
  }
}

/* Общие utility */
.poh-muted {
  color: var(--ios-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.poh-h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
}

.poh-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ios-muted);
}

.poh-field input,
.poh-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: inherit;
}

body.poh-web--dark .poh-field input,
body.poh-web--dark .poh-field textarea {
  background: rgba(0, 0, 0, 0.2);
}

.poh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.poh-btn--primary {
  background: linear-gradient(145deg, var(--ios-green-dark), var(--ios-green));
  color: #fff;
}

.poh-btn--ghost {
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
}

.poh-btn--danger {
  background: transparent;
  border: 1px solid rgba(211, 47, 47, 0.45);
  color: #c62828;
}

.poh-banner--err {
  background: rgba(211, 47, 47, 0.1);
  color: #c62828;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.poh-banner--ok {
  background: rgba(90, 156, 106, 0.15);
  color: var(--ios-green-dark);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.poh-auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.poh-auth-switch button {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--ios-border);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.poh-auth-switch button.poh-on {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.poh-auth-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 24px;
}

.poh-auth-card {
  max-width: 420px;
  width: 100%;
  border-radius: 28px;
  padding: 20px;
}

.poh-auth-mascot {
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.poh-auth-title {
  text-align: center;
  margin-bottom: 2px;
}

.poh-auth-subtitle {
  text-align: center;
  margin: 0 0 14px;
}

.poh-auth-form {
  display: grid;
  gap: 10px;
}

.poh-auth-form input {
  border-radius: 15px;
}

.poh-auth-submit {
  width: 100%;
  margin-top: 2px;
  border-radius: 16px;
  min-height: 56px;
  font-size: 1.12rem;
}

.poh-auth-submit:disabled,
.poh-auth-apple-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.poh-auth-link-btn,
.poh-auth-bottom-link {
  border: none;
  background: transparent;
  color: var(--ios-ink);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 6px;
  cursor: pointer;
  font-family: inherit;
}

.poh-auth-link-btn {
  margin-top: -2px;
}

.poh-auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ios-muted2);
  font-size: 0.98rem;
}

.poh-auth-divider::before,
.poh-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ios-border);
}

.poh-auth-apple-btn {
  border: none;
  border-radius: 14px;
  min-height: 50px;
  background: #000;
  color: #fff;
  font-size: 1.03rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.poh-auth-docs {
  display: grid;
  gap: 8px;
}

.poh-auth-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ios-ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.poh-auth-doc .poh-ui-ico:last-child {
  margin-left: auto;
  opacity: 0.75;
}

.poh-auth-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ios-muted2);
  font-size: 0.95rem;
}

.poh-auth-consent input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

body.poh-web--dark .poh-auth-doc {
  background: rgba(255, 255, 255, 0.08);
}

body.poh-web--dark .poh-auth-switch button.poh-on {
  background: rgba(255, 255, 255, 0.12);
}

.poh-link {
  color: var(--ios-green);
  font-weight: 600;
  text-decoration: none;
}

.poh-ui-ico {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

.poh-ui-ico--sm {
  width: 0.98em;
  height: 0.98em;
}

.poh-sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.poh-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--ios-card);
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(24px + var(--ios-safe-b));
  border: 1px solid var(--ios-border);
  max-height: 88vh;
  overflow-y: auto;
}

.poh-eat-sheet {
  background: var(--ios-sheet-bg);
}

.poh-eat-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.poh-eat-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ios-ink);
}

.poh-eat-title {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.poh-eat-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: rgba(185, 207, 194, 0.95);
  border-radius: 999px;
  padding: 3px;
}

.poh-eat-seg__halo {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(32, 65, 43, 0.14);
  transition:
    left 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    top 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.18s ease;
}

.poh-eat-seg-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #253129;
  cursor: pointer;
  font-family: inherit;
}

.poh-eat-seg-btn--on {
  background: transparent;
}

.poh-seg-halo--instant {
  transition: none !important;
}

.poh-eat-photo-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.poh-eat-soft-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.poh-eat-input-wrap {
  margin-top: 12px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.poh-eat-input-wrap textarea {
  width: 100%;
  min-height: 300px;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  background: transparent;
  padding: 16px 18px;
  resize: vertical;
  box-sizing: border-box;
  font: inherit;
  color: var(--ios-ink);
}

.poh-eat-input-wrap:focus-within {
  border-color: rgba(90, 156, 106, 0.55);
  box-shadow: 0 0 0 2px rgba(90, 156, 106, 0.2);
}

.poh-eat-photo-preview-wrap {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.poh-eat-photo-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.poh-eat-photo-status {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2f3c33;
}

.poh-eat-voice-btn {
  width: 100%;
  margin-top: 12px;
}

.poh-eat-submit {
  width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  color: #2f3c33;
  padding: 16px 14px;
  font-size: 1.65rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.poh-eat-submit--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.poh-eat-submit-wait {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.poh-eat-submit-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(47, 60, 51, 0.2);
  border-top-color: #5a9c6a;
  animation: poh-spin 0.75s linear infinite;
}

.poh-small {
  font-size: 0.82rem;
}

.poh-forecast-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ios-border);
}

/* Что съесть */
.poh-what-bg {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding-top: 56px;
}

.poh-ass-bg {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: linear-gradient(180deg, #d5ecd9 0%, #c6e6d2 100%);
}

.poh-ass-screen {
  width: min(430px, 100vw);
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 12px calc(16px + var(--ios-safe-b));
  box-sizing: border-box;
}

.poh-as-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 10px;
}

.poh-as-head h2 {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.poh-as-close {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 1rem;
  color: #50645a;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.poh-as-head-gap {
  width: 64px;
}

.poh-as-thread {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 10px;
}

.poh-as-msg {
  border-radius: 18px;
  padding: 12px 14px;
  line-height: 1.38;
  font-size: 0.97rem;
  border: 1px solid rgba(120, 170, 135, 0.25);
  box-shadow: 0 8px 20px rgba(36, 75, 43, 0.08);
}

.poh-as-msg--assistant {
  background: rgba(192, 224, 184, 0.8);
  color: #223329;
}

.poh-as-msg--user {
  background: rgba(255, 255, 255, 0.9);
  color: #2a3630;
}

.poh-as-msg--assistant .poh-as-md-p {
  margin: 0 0 0.55em;
}

.poh-as-msg--assistant .poh-as-md-p:last-child {
  margin-bottom: 0;
}

.poh-as-msg--assistant .poh-as-md-list {
  margin: 0.35em 0 0.55em;
  padding-left: 1.2em;
}

.poh-as-msg--assistant .poh-as-md-list li {
  margin: 0.22em 0;
}

.poh-as-msg--assistant strong {
  font-weight: 700;
  color: #152018;
}

.poh-as-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f675b;
  margin: 2px 2px 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.poh-as-foot {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px;
}

.poh-as-foot textarea {
  min-height: 22px;
  max-height: 140px;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font: inherit;
  color: var(--ios-ink);
  padding: 6px 8px;
}

.poh-as-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(113, 158, 126, 0.3);
  color: #446451;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.poh-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  padding: 18px;
}

.poh-norm-modal {
  width: min(340px, 92vw);
  border-radius: 28px;
  background: rgba(250, 254, 251, 0.98);
  border: 1px solid rgba(117, 146, 125, 0.22);
  box-shadow: 0 14px 34px rgba(20, 45, 30, 0.2);
  padding: 18px 16px 14px;
}

.poh-norm-modal h3 {
  margin: 2px 0 8px;
  text-align: center;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.poh-norm-modal-text {
  color: #3f4d46;
  font-size: 1.55rem;
  line-height: 1.33;
}

.poh-norm-modal-text p {
  margin: 0 0 7px;
}

.poh-norm-modal-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 16px;
  background: rgba(205, 219, 211, 0.9);
  color: #3d6748;
  padding: 12px 14px;
  font-size: 1.65rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.poh-what-sheet {
  width: min(430px, 100vw);
  min-height: calc(100dvh - 56px);
  background: linear-gradient(180deg, #edf8f1 0%, #e3f3e7 80%);
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(74, 138, 90, 0.18);
  padding: 8px 12px calc(100px + var(--ios-safe-b));
}

.poh-what-handle {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: rgba(95, 107, 99, 0.5);
  margin: 4px auto 10px;
}

.poh-what-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
}

.poh-what-head-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(121, 177, 128, 0.2);
  display: grid;
  place-items: center;
}

.poh-what-head h2 {
  margin: 0;
  font-size: 1.95rem;
  letter-spacing: -0.03em;
}

.poh-what-head p {
  margin: 2px 0 0;
  color: var(--ios-muted);
}

.poh-what-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 14px 12px;
}

.poh-what-filter-row span {
  color: var(--ios-muted);
}

.poh-what-cuisine-btn {
  border: none;
  background: none;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ios-ink);
  font-family: inherit;
}

.poh-what-menu {
  background: var(--ios-surface-strong);
  border: 1px solid rgba(74, 138, 90, 0.2);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(30, 60, 40, 0.18);
  margin: -4px 8px 10px;
  overflow: hidden;
}

.poh-what-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  padding: 14px 16px;
  font-size: 1.55rem;
  cursor: pointer;
  font-family: inherit;
}

.poh-what-menu button:last-child {
  border-bottom: none;
}

.poh-what-toggle-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.poh-what-toggle-row p {
  margin: 4px 0 0;
  color: var(--ios-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.poh-what-exclude-row {
  display: flex;
  gap: 8px;
}

.poh-what-exclude-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ios-border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 1rem;
}

.poh-what-exclude-row button {
  border: none;
  background: var(--ios-chip-bg);
  border: 1px solid var(--ios-chip-border);
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.poh-what-exclude-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.poh-what-exclude-tags button {
  border: 1px solid var(--ios-chip-border);
  background: var(--ios-chip-bg);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
}

.poh-what-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 84px;
}

.poh-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #78a46a;
  animation: poh-spin 0.8s linear infinite;
}

@keyframes poh-spin {
  to {
    transform: rotate(360deg);
  }
}

.poh-recipe-card {
  background: var(--ios-surface-strong);
  border: 1px solid rgba(74, 138, 90, 0.18);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(30, 60, 40, 0.1);
  overflow: hidden;
  margin-top: 10px;
}

.poh-recipe-hero {
  background: linear-gradient(180deg, #fff4ed 0%, #ffe9da 100%);
  padding: 14px 14px 12px;
}

.poh-recipe-badge {
  display: inline-block;
  border-radius: 999px;
  background: var(--ios-chip-bg);
  color: #9a5f3f;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
  padding: 4px 10px;
}

.poh-recipe-hero h3 {
  margin: 10px 0 4px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.poh-recipe-hero p {
  margin: 0;
  color: var(--ios-muted);
}

.poh-recipe-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.poh-recipe-pill {
  background: var(--ios-chip-bg);
  border: 1px solid var(--ios-chip-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.poh-recipe-body {
  padding: 14px;
}

.poh-recipe-body h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.poh-recipe-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.poh-recipe-row:last-child {
  border-bottom: none;
}

.poh-recipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6ead9;
}

.poh-recipe-row strong {
  color: #7b7f85;
  font-weight: 700;
}

.poh-recipe-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.poh-recipe-step-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6b9075;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.poh-recipe-step p {
  margin: 0;
  line-height: 1.4;
}

.poh-what-action {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 138, 90, 0.35);
  background: var(--ios-surface-strong);
  padding: 13px 14px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.poh-day-balance {
  margin-top: 10px;
  border-radius: 20px;
  border: 1px solid rgba(112, 183, 145, 0.25);
  background: linear-gradient(180deg, rgba(36, 74, 112, 0.72), rgba(35, 58, 84, 0.55));
  padding: 14px;
  color: #fff;
}

.poh-day-balance-cap {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  opacity: 0.82;
  font-weight: 700;
}

.poh-day-balance-main {
  margin: 6px 0 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.poh-day-balance-main span {
  font-size: 0.7em;
  font-weight: 700;
  opacity: 0.92;
}

.poh-day-balance-sub {
  margin: 8px 0 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.poh-day-balance-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.poh-day-balance-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #76afff, #7fce9c);
  transition: width 0.45s ease;
}

.poh-day-meals {
  margin-top: 12px;
}

.poh-day-meal {
  border-radius: 18px;
  border: 1px solid rgba(74, 138, 90, 0.2);
  background: rgba(255, 255, 255, 0.93);
  padding: 12px;
  margin-bottom: 10px;
}

.poh-day-meal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.poh-day-meal-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.poh-day-meal-kcal {
  color: #5797ff;
  font-size: 1.03rem;
  font-weight: 700;
}

.poh-day-meal-cuisine {
  margin: 2px 0 0;
  color: var(--ios-muted);
  font-size: 0.84rem;
}

.poh-day-meal-items {
  margin-top: 9px;
  display: grid;
  gap: 4px;
}

.poh-day-meal-item {
  font-size: 0.98rem;
  line-height: 1.35;
}

.poh-day-meal-note {
  margin: 9px 0 0;
  color: var(--ios-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.poh-day-action {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 138, 90, 0.3);
  background: var(--ios-surface-strong);
  color: var(--ios-ink);
  padding: 13px 14px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.poh-day-action--ok {
  background: rgba(90, 156, 106, 0.14);
}

body.poh-web--dark .poh-day-meal {
  background: rgba(35, 44, 40, 0.94);
  border-color: rgba(120, 170, 135, 0.34);
}

body.poh-web--dark .poh-day-balance {
  border-color: rgba(130, 184, 150, 0.3);
  background: linear-gradient(180deg, rgba(32, 60, 92, 0.82), rgba(22, 47, 70, 0.72));
}

/* Theme normalization layer: убираем светлые "пятна" в dark mode по всему UI */
body.poh-web--dark .poh-auth-switch button.poh-on,
body.poh-web--dark .poh-auth-doc,
body.poh-web--dark .poh-field input,
body.poh-web--dark .poh-field textarea,
body.poh-web--dark .poh-what-menu,
body.poh-web--dark .poh-recipe-card,
body.poh-web--dark .poh-day-meal,
body.poh-web--dark .poh-day-action,
body.poh-web--dark .poh-what-action,
body.poh-web--dark .poh-what-exclude-row input,
body.poh-web--dark .poh-what-exclude-row button,
body.poh-web--dark .poh-what-exclude-tags button,
body.poh-web--dark .poh-recipe-badge,
body.poh-web--dark .poh-recipe-pill {
  background: var(--ios-surface-strong);
  color: var(--ios-ink);
  border-color: var(--ios-chip-border);
}

body.poh-web--dark .poh-recipe-hero {
  background: linear-gradient(180deg, rgba(55, 74, 63, 0.9) 0%, rgba(41, 56, 48, 0.88) 100%);
}

/* Dark mode: экран "Что ты ел(а)?" */
body.poh-web--dark .poh-eat-back {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

body.poh-web--dark .poh-eat-seg {
  background: rgba(126, 153, 137, 0.4);
}

body.poh-web--dark .poh-eat-seg__halo {
  background: rgba(248, 251, 249, 0.92);
}

body.poh-web--dark .poh-eat-seg-btn {
  color: rgba(240, 245, 242, 0.9);
}

body.poh-web--dark .poh-eat-seg-btn--on {
  color: #243229;
}

body.poh-web--dark .poh-eat-input-wrap {
  background: rgba(23, 31, 27, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}

body.poh-web--dark .poh-eat-input-wrap textarea {
  color: var(--ios-ink);
}

body.poh-web--dark .poh-eat-input-wrap textarea::placeholder {
  color: rgba(214, 223, 217, 0.62);
}

body.poh-web--dark .poh-eat-soft-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ios-ink);
}

body.poh-web--dark .poh-eat-submit {
  background: rgba(236, 241, 238, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(243, 247, 245, 0.95);
}

body.poh-web--dark .poh-eat-submit--disabled {
  background: rgba(236, 241, 238, 0.16);
  color: rgba(243, 247, 245, 0.6);
}

/* Экран выбора тарифа (веб-подписка) */
.poh-subscribe-wrap {
  margin-bottom: 24px;
}

.poh-subscribe-trial {
  margin: 0 0 8px;
  font-size: 15px;
}

.poh-subscribe-lead {
  margin: 0 0 16px;
  line-height: 1.35;
}

.poh-subscribe-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 12px;
}

.poh-subscribe-card {
  border-radius: var(--ios-radius-sm);
  border: 1px solid var(--ios-border);
  padding: 16px 16px 14px;
  background: var(--ios-surface-soft);
  box-shadow: var(--ios-shadow);
}

.poh-subscribe-card--featured {
  border-color: rgba(90, 156, 106, 0.45);
  background: linear-gradient(165deg, rgba(90, 156, 106, 0.12) 0%, var(--ios-surface-soft) 48%);
}

.poh-subscribe-card-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--ios-ink);
}

.poh-subscribe-card-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ios-green-dark);
  margin-bottom: 12px;
}

body.poh-web--dark .poh-subscribe-card-price {
  color: var(--ios-tabbar-active);
}

.poh-subscribe-pick {
  width: 100%;
  margin: 0;
}

.poh-subscribe-footnote {
  margin: 8px 0 0;
  line-height: 1.35;
  opacity: 0.92;
}

.poh-subscribe-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ios-border);
}

body.poh-web--dark .poh-subscribe-card {
  background: var(--ios-surface-strong);
}

body.poh-web--dark .poh-subscribe-card--featured {
  background: linear-gradient(165deg, rgba(157, 217, 176, 0.14) 0%, var(--ios-surface-strong) 50%);
}

/* Профиль: статус веб-подписки / пробного периода */
.poh-billing-card-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ios-ink);
}

.poh-billing-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ios-ink);
}

.poh-billing-line--ok {
  color: var(--ios-ink);
}

.poh-billing-line--trial {
  color: var(--ios-ink);
}

.poh-billing-line--warn {
  color: #b45309;
}

body.poh-web--dark .poh-billing-line--warn {
  color: #fbbf24;
}

.poh-billing-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  background: rgba(90, 156, 106, 0.18);
  color: var(--ios-green-dark);
}

body.poh-web--dark .poh-billing-badge {
  background: rgba(157, 217, 176, 0.2);
  color: var(--ios-tabbar-active);
}

.poh-billing-badge--trial {
  background: rgba(91, 143, 199, 0.22);
  color: var(--ios-blue-tile);
}

body.poh-web--dark .poh-billing-badge--trial {
  background: rgba(130, 180, 220, 0.22);
  color: #9ec5ee;
}
