/* T10D Mini App — design system
   Тема: тёмная по умолчанию, светлая через [data-theme="light"].
   Цвета фона/текста берутся из Telegram themeParams (через --tg-theme-*), с запасными значениями. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* акцент */
  --accent-1: #ff5f8f;
  --accent-2: #7b5cff;
  --accent-grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --accent-soft: rgba(255, 95, 143, 0.14);

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #ff6b6b;

  /* тёмная тема (основная) */
  --bg: var(--tg-theme-bg-color, #0d0b14);
  --bg-2: var(--tg-theme-secondary-bg-color, #15121f);
  --text: var(--tg-theme-text-color, #f4f1fa);
  --hint: var(--tg-theme-hint-color, #9b94ad);
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.09);
  --track: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --glow-a: rgba(255, 95, 143, 0.22);
  --glow-b: rgba(123, 92, 255, 0.24);
  --bar-glass: rgba(18, 15, 28, 0.62);
  --skeleton: rgba(255, 255, 255, 0.06);
  --skeleton-hi: rgba(255, 255, 255, 0.13);

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: var(--tg-theme-secondary-bg-color, #f4f2f8);
  --bg-2: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #17131f);
  --hint: var(--tg-theme-hint-color, #7a7388);
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(20, 10, 40, 0.07);
  --track: rgba(20, 10, 40, 0.07);
  --shadow: 0 10px 30px -14px rgba(60, 30, 90, 0.25);
  --glow-a: rgba(255, 95, 143, 0.16);
  --glow-b: rgba(123, 92, 255, 0.14);
  --bar-glass: rgba(255, 255, 255, 0.72);
  --skeleton: rgba(20, 10, 40, 0.05);
  --skeleton-hi: rgba(20, 10, 40, 0.1);
  --accent-soft: rgba(255, 95, 143, 0.12);
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100vh);
}
button { font: inherit; color: inherit; }

/* мягкое цветовое свечение фона */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 10% 0%, var(--glow-a), transparent 70%),
    radial-gradient(55% 40% at 100% 12%, var(--glow-b), transparent 70%);
}

.app {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  padding: calc(var(--sat) + 8px) var(--gutter) calc(var(--tabbar-h) + var(--sab) + 28px);
}

/* ---------- header ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0 6px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff; letter-spacing: -.02em;
  box-shadow: 0 6px 18px -6px rgba(255, 95, 143, .7);
}
.brand-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.chip-version {
  font-size: 11px; font-weight: 600; color: var(--hint);
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); font-family: inherit; cursor: pointer;
  min-height: 32px; display: inline-flex; align-items: center; position: relative;
}
.chip-version::before { content: ""; position: absolute; inset: -6px -2px; } /* зона нажатия 44px */
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spinning svg { animation: spin .9s linear infinite; }

.pills {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 0 14px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.pill.on { border-color: rgba(52, 211, 153, .35); }
.pill.paused { border-color: rgba(251, 191, 36, .35); }
.pill.off { border-color: rgba(255, 107, 107, .35); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hint); flex: none; }
.pill.on .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.pill.paused .dot { background: var(--warn); }
.pill.off .dot { background: var(--bad); }

/* ---------- views ---------- */
.view { animation: viewIn .32s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section-title {
  font-size: 13px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: .06em;
  margin: 22px 4px 10px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  margin-bottom: 12px;
  overflow: hidden;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { font-size: 12.5px; color: var(--hint); }

.press { transition: transform .18s var(--ease), opacity .18s; cursor: pointer; user-select: none; }
.press:active { transform: scale(.97); }

.muted { color: var(--hint); }
.big-num { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tnum { font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: var(--card-strong); border: 1px solid var(--border);
}
.chip.warn { background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .3); color: #f5b81c; }
:root[data-theme="light"] .chip.warn { color: #a86b00; }
.chip.ok { background: rgba(52, 211, 153, .13); border-color: rgba(52, 211, 153, .28); color: #22b07c; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 0 10px calc(var(--sab) + 8px);
  pointer-events: none;
}
.tabbar-inner {
  pointer-events: auto;
  max-width: 540px; margin: 0 auto; height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bar-glass);
  border: 1px solid var(--border); border-radius: 24px;
  backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .55);
  padding: 6px;
}
.tab {
  position: relative; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 18px; min-height: 44px; color: var(--hint);
  transition: color .2s, background .25s var(--ease), transform .18s var(--ease);
}
.tab:active { transform: scale(.92); }
.tab-icon { font-size: 21px; line-height: 1; filter: grayscale(.6); opacity: .8; transition: filter .25s, opacity .25s, transform .3s var(--ease); }
.tab-label { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tab.active { color: var(--text); background: var(--accent-soft); }
.tab.active .tab-icon { filter: none; opacity: 1; transform: translateY(-1px) scale(1.06); }
.badge {
  position: absolute; top: 3px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-grad); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--sat) + 10px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  max-width: 420px; padding: 11px 16px; border-radius: 16px; font-size: 14px; font-weight: 500;
  background: var(--bar-glass); color: var(--text); border: 1px solid var(--border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  animation: toastIn .3s var(--ease) both;
}
.toast.out { animation: toastOut .25s ease both; }
.toast.error { border-color: rgba(255, 107, 107, .4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- pull to refresh ---------- */
.ptr {
  position: fixed; left: 50%; top: calc(var(--sat) + 6px); z-index: 30;
  width: 38px; height: 38px; margin-left: -19px; border-radius: 50%;
  background: var(--bar-glass); border: 1px solid var(--border);
  display: grid; place-items: center; opacity: 0; transform: translateY(-50px);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: opacity .2s;
}
.ptr svg { width: 18px; height: 18px; }
.ptr.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- skeleton ---------- */
.sk {
  border-radius: 12px;
  background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-hi) 50%, var(--skeleton) 100%);
  background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- empty state / screens ---------- */
.empty {
  text-align: center; padding: 40px 22px 34px;
}
.empty-orb {
  width: 108px; height: 108px; margin: 6px auto 20px; border-radius: 34px;
  display: grid; place-items: center; font-size: 50px; position: relative;
  background: var(--card-strong); border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}
.empty-orb::before {
  content: ""; position: absolute; inset: -14px; border-radius: 44px; z-index: -1;
  background: var(--accent-grad); filter: blur(28px); opacity: .45;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.empty h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.empty p { margin: 0 auto; max-width: 300px; color: var(--hint); font-size: 15px; }
.soon-tag {
  display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.feature-list li {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); font-size: 14px;
}
.feature-list .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(255, 95, 143, .8);
  transition: transform .18s var(--ease);
}
.btn:active { transform: scale(.96); }

.fullscreen { min-height: 78vh; display: grid; place-items: center; }

/* ---------- costs tab ---------- */
.hero { padding: 20px; }
.hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%;
  background: var(--accent-grad); opacity: .18; filter: blur(40px); pointer-events: none;
}
.hero-row { display: flex; align-items: center; gap: 18px; }
.hero-main { flex: 1; min-width: 0; }
.hero-label { font-size: 13px; color: var(--hint); font-weight: 600; margin-bottom: 6px; }
.hero-of { font-size: 15px; color: var(--hint); font-weight: 600; margin-top: 6px; }
.ring { width: 104px; height: 104px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-pct { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ring-cap { font-size: 10.5px; color: var(--hint); font-weight: 600; margin-top: -2px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.forecast { margin-top: 16px; font-size: 14px; }
.forecast b { font-weight: 700; }

.progress { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; margin-top: 14px; position: relative; }
.progress > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent-grad); width: 0; transition: width 1s var(--ease); }
.progress > s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .35; border-radius: 2px; }

.balance { display: flex; align-items: center; gap: 14px; }
.balance-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); flex: none; }
.balance-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.balance-note { font-size: 12px; color: var(--hint); margin-top: 10px; }
.cta { border-style: dashed; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { padding: 14px 16px; margin: 0; border-radius: var(--r-md); }
.kpi-label { font-size: 12.5px; color: var(--hint); font-weight: 600; }
.kpi-val { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

.chart { width: 100%; display: block; overflow: visible; }
.chart .bar { transition: opacity .2s; cursor: pointer; }
.chart text { font-family: var(--font); fill: var(--hint); font-size: 10px; }
.chart-tip { font-size: 13px; color: var(--hint); min-height: 18px; }
.chart-tip b { color: var(--text); font-weight: 700; }

.hbars { display: grid; gap: 14px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 7px; }
.hbar-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-val { color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-val b { color: var(--text); font-weight: 700; }
.hbar-track { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.hbar-fill { height: 100%; width: 0; border-radius: 99px; transition: width .9s var(--ease); }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 116px; height: 116px; flex: none; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.legend { flex: 1; min-width: 0; display: grid; gap: 12px; }
.lg { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; font-size: 14px; }
.lg .lg-val { grid-column: 2; font-size: 13px; }
.lg-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.lg-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-val { color: var(--hint); font-variant-numeric: tabular-nums; }

.demo-banner {
  font-size: 12px; text-align: center; color: var(--hint); margin: -4px 0 10px;
}


/* =====================================================================
   Общие компоненты вкладок (шторки, контролы, аватары)
   ===================================================================== */
.btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ff6b6b, #e0457b); box-shadow: 0 10px 24px -10px rgba(255, 90, 100, .8); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 16px; cursor: pointer;
  background: var(--card-strong); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 15px;
}
.btn-ghost.wide { width: 100%; margin-top: 12px; }
.btn-ghost.strong { font-weight: 700; }
.btn-ghost:disabled { opacity: .55; }
.chip.bad { background: rgba(255, 107, 107, .13); border-color: rgba(255, 107, 107, .3); color: #ff7b7b; }
.chip.bonus { background: rgba(123, 92, 255, .16); border-color: rgba(123, 92, 255, .35); color: #a993ff; }
:root[data-theme="light"] .chip.bad { color: #d03c3c; }
:root[data-theme="light"] .chip.bonus { color: #5b3fe0; }
.chip .cnt { font-weight: 800; opacity: .7; margin-left: 2px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.up { color: var(--ok); font-weight: 700; }
.down { color: var(--bad); font-weight: 700; }

.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 12, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 6px var(--gutter) calc(var(--sab) + 18px); max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6);
  transform: translateY(105%); transition: transform .38s var(--ease);
}
.sheet.tall { max-height: 90vh; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 100%; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grip::before { content: ""; width: 40px; height: 5px; border-radius: 9px; background: var(--hint); opacity: .4; }
.sheet-head { margin: 0 2px 14px; }
.sheet-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sheet-sub { font-size: 13.5px; color: var(--hint); margin-top: 4px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.confirm { text-align: center; padding: 6px 4px 0; }
.confirm-icon { font-size: 40px; width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 26px; display: grid; place-items: center; background: var(--accent-soft); }
.confirm-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.confirm-text { color: var(--hint); margin: 8px auto 0; max-width: 320px; font-size: 14.5px; }
.field {
  width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 13px 14px; resize: none; outline: none; margin-top: 10px; transition: border-color .2s, box-shadow .2s;
}
.field:focus { border-color: rgba(255, 95, 143, .55); box-shadow: 0 0 0 4px var(--accent-soft); }
.choice {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-strong);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.choice.big { min-height: 52px; border-radius: 16px; font-size: 15px; text-align: left; padding: 0 14px; }
.chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips-grid .choice:active { background: var(--accent-soft); border-color: rgba(255, 95, 143, .4); }

/* сегменты */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--track); border: 1px solid var(--border); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--card-strong); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .45); transition: transform .35s var(--ease), opacity .2s; }
:root[data-theme="light"] .seg-thumb { background: #fff; box-shadow: 0 3px 10px -3px rgba(60, 30, 90, .25); }
.seg-btn { position: relative; z-index: 1; min-height: 40px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--hint); border-radius: 12px; padding: 0 6px; white-space: nowrap; transition: color .2s; }
.seg-btn.active { color: var(--text); }
.seg-3 .seg-btn { min-height: 44px; }
.seg-4 .seg-btn { font-size: 13px; }

/* переключатель */
.switch { width: 54px; height: 32px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: var(--track); position: relative; flex: none; transition: background .25s; box-shadow: inset 0 0 0 1px var(--border); }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.switch.on { background: var(--accent-grad); }
.switch.on i { transform: translateX(22px); }
.switch::before { content: ""; position: absolute; inset: -6px; } /* зона нажатия 44px */

/* степпер */
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 16px; background: var(--track); border: 1px solid var(--border); flex: none; }
.step-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--card-strong); font-size: 20px; font-weight: 600; cursor: pointer; }
.step-btn:disabled { opacity: .35; }
.step-val { min-width: 58px; text-align: center; font-weight: 800; font-size: 15px; }
.step-val.bump { animation: pop .3s var(--ease); }

.ava { position: relative; text-align: center; line-height: 1; width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; background: var(--card-strong); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.ava-lg { width: 56px; height: 56px; font-size: 22px; }
.ava.ava-xl { width: 64px; height: 64px; font-size: 26px; }
.ava.ava-xxl { width: 120px; height: 120px; font-size: 48px; }
.meter { display: inline-block; width: 38px; height: 5px; border-radius: 9px; background: var(--track); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; border-radius: 9px; }
.spark { display: block; overflow: visible; }
.spin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.backbar { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; margin: -4px 0 8px -4px; border: 0; background: none; color: var(--accent-1); font-weight: 600; font-size: 16px; cursor: pointer; }
.backbar svg { width: 22px; height: 22px; }
.slide-in { animation: slideIn .34s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.info-label { font-size: 12px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.info-text { font-size: 14.5px; line-height: 1.5; }
.legend-inline { display: flex; gap: 12px; font-size: 12px; color: var(--hint); }
.legend-inline span { display: inline-flex; align-items: center; gap: 5px; }
.legend-inline .lg-dot { width: 8px; height: 8px; }

/* =====================================================================
   🏠 Главная
   ===================================================================== */
.control { padding: 18px 18px 14px; }
.ctl-row { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.ctl-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--card-strong); flex: none; filter: grayscale(.5); opacity: .85; transition: all .3s; }
.ctl-icon.live { background: var(--accent-soft); filter: none; opacity: 1; box-shadow: 0 0 0 1px rgba(255, 95, 143, .25); }
.ctl-main { flex: 1; min-width: 0; }
.ctl-title { font-weight: 700; font-size: 16px; }
.ctl-sub { font-size: 13px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-sep { height: 1px; background: var(--border); margin: 12px 0; }
.morning { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 12px; padding: 0 14px; border-radius: 14px; border: 1px dashed var(--border); background: none; font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left; }
.morning span:first-of-type { flex: 1; }
.morning-go { color: var(--hint); font-size: 20px; }

.decide { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 18px; border: 1px solid rgba(255, 95, 143, .3); background: linear-gradient(135deg, rgba(255, 95, 143, .16), rgba(123, 92, 255, .14)); cursor: pointer; text-align: left; }
.decide-num { width: 48px; height: 48px; border-radius: 16px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; box-shadow: 0 8px 20px -8px rgba(255, 95, 143, .9); }
.decide-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.decide-main b { font-size: 15.5px; }
.decide-main span { font-size: 12.5px; color: var(--hint); }
.decide-go { font-size: 13px; font-weight: 700; color: var(--accent-1); white-space: nowrap; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 14px -18px -4px; padding: 0 18px 4px; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.mini-person { position: relative; flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); cursor: pointer; scroll-snap-align: start; }
.mini-person .ava { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--accent-1); margin-bottom: 4px; }
.mp-flag { position: absolute; top: 6px; right: 8px; font-size: 14px; }
.mp-name { font-size: 13px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-ago { font-size: 11px; color: var(--hint); }

.meet-hero { display: block; width: 100%; text-align: left; cursor: pointer; padding: 20px; color: #fff; border: 0;
  background: linear-gradient(140deg, #ff5f8f 0%, #b45cf0 55%, #7b5cff 100%); box-shadow: 0 18px 40px -18px rgba(255, 95, 143, .8); }
.meet-glow { position: absolute; width: 240px; height: 240px; right: -80px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, .25); filter: blur(30px); }
.meet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; }
.meet-tag { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.meet-left { font-size: 12.5px; font-weight: 700; opacity: .9; }
.meet-name { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 14px; position: relative; }
.meet-when { font-size: 17px; font-weight: 700; opacity: .95; position: relative; }
.meet-place { font-size: 14px; opacity: .88; margin-top: 6px; position: relative; }
.meet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; position: relative; }
.meet-hero .chip.ok { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .3); color: #fff; }
.meet-open { font-weight: 700; font-size: 14px; }

.period-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 4px 12px; }
.period-row .seg { width: 200px; }
.stats { transition: opacity .25s; }
.stats.dim { opacity: .45; pointer-events: none; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kpi-ico { font-size: 15px; opacity: .9; }
.kpi-val small { font-size: 15px; color: var(--hint); font-weight: 700; }
.kpi-sub { font-size: 11.5px; color: var(--hint); margin-top: 3px; line-height: 1.3; }
.home-kpis .kpi-val { font-size: 24px; }

.funnel { display: grid; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 116px 1fr 12px; align-items: center; gap: 10px; }
.fn-label { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-lane { position: relative; height: 30px; border-radius: 10px; background: var(--track); margin: 0 auto; overflow: hidden; }
.fn-fill { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; border-radius: 10px; transition: width .9s var(--ease); opacity: .9; }
.fn-n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.fn-n.zero { color: var(--hint); text-shadow: none; font-weight: 600; }

/* =====================================================================
   🔥 Свайпы
   ===================================================================== */
.swipe-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; font-size: 14px; color: var(--hint); }
.swipe-count b { color: var(--text); font-size: 17px; }
.swipe-hint { font-size: 12px; }
.deck { position: relative; height: clamp(380px, calc(var(--tg-viewport-stable-height, 100dvh) - 350px), 640px); margin-bottom: 14px; }
.scard {
  position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--border);
  transform: translateY(calc(var(--depth, 0) * 12px)) scale(calc(1 - var(--depth, 0) * .05));
  transform-origin: 50% 100%;
  transition: transform .4s var(--ease), opacity .3s; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.scard.top { touch-action: none; cursor: grab; }
.scard.dragging { cursor: grabbing; }
.scard.behind { pointer-events: none; }
.scard[data-depth="2"] .sc-info, .scard.behind .sc-badges { opacity: 0; }
.scard[data-depth="2"] { opacity: .7; }
.scard.enter { opacity: 0; transform: translateY(40px) scale(.9); }
.scard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px var(--glow, transparent), inset 0 0 60px var(--glow, transparent); }
.sc-photos, .sc-photos img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-photos img { object-fit: cover; opacity: 0; transition: opacity .18s; -webkit-user-drag: none; }
.sc-photos img.on { opacity: 1; }
.sc-nophoto { position: absolute; inset: 0; display: grid; place-items: center; font-size: 100px; font-weight: 800; color: #fff; background: var(--accent-grad); }
.scard.bump-l { animation: bumpL .3s var(--ease); }
.scard.bump-r { animation: bumpR .3s var(--ease); }
@keyframes bumpL { 40% { transform: perspective(900px) rotateY(-5deg); } }
@keyframes bumpR { 40% { transform: perspective(900px) rotateY(5deg); } }
.sc-dashes { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.sc-dashes i { flex: 1; height: 3.5px; border-radius: 9px; background: rgba(255, 255, 255, .32); transition: background .2s; }
.sc-dashes i.on { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .5); }
.sc-badges { position: absolute; top: 24px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; transition: opacity .3s; }
.sc-badge { font-size: 12.5px; font-weight: 700; color: #fff; padding: 6px 11px; border-radius: 99px; background: rgba(15, 10, 25, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .18); }
.sc-badge.screen { background: linear-gradient(135deg, rgba(255, 95, 143, .85), rgba(123, 92, 255, .85)); border-color: transparent; }
.sc-badge.incoming { background: rgba(255, 95, 143, .8); border-color: transparent; }
.stamp { position: absolute; top: 70px; z-index: 4; font-size: 38px; font-weight: 900; letter-spacing: .04em; padding: 2px 14px; border: 5px solid; border-radius: 14px; opacity: 0; pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.stamp.like { left: 22px; color: #3ee6a6; border-color: #3ee6a6; transform: rotate(-16deg); }
.stamp.nope { right: 22px; color: #ff5d6c; border-color: #ff5d6c; transform: rotate(16deg); }
.stamp.up { left: 50%; top: 40%; transform: translate(-50%, -50%); border: 0; font-size: 90px; }
.sc-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 90px 18px 18px; color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 5, 16, .55) 35%, rgba(8, 5, 16, .9) 100%); transition: opacity .3s; }
.sc-name-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-name { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sc-name span { font-weight: 500; opacity: .9; }
.sc-i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font: italic 800 19px Georgia, serif; cursor: pointer; flex: none; }
.sc-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .92; margin-top: 4px; }
.taste { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; color: #fff; }
.taste.hi { background: linear-gradient(135deg, #34d399, #16a37a); }
.taste.mid { background: linear-gradient(135deg, #fbbf24, #f08a24); }
.taste.lo { background: rgba(255, 255, 255, .25); }
.sc-about { font-size: 14px; line-height: 1.4; opacity: .88; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-warn { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; background: rgba(251, 191, 36, .25); color: #ffd56a; }
.deck-actions { display: flex; justify-content: center; align-items: center; gap: 26px; padding: 6px 0 16px; }
.act { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 28px; font-weight: 700; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.act span { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--hint); white-space: nowrap; }
.act.nope { color: #ff5d6c; }
.act.up { width: 54px; height: 54px; font-size: 22px; color: #a993ff; }
.act.like { color: #fff; background: var(--accent-grad); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(255, 95, 143, .9); }
.act.hot { transform: scale(1.14); }
.act.nope.hot { background: rgba(255, 93, 108, .2); box-shadow: 0 0 0 6px rgba(255, 93, 108, .15); }
.act.like.hot { box-shadow: 0 0 0 8px rgba(255, 95, 143, .2), 0 14px 30px -12px rgba(255, 95, 143, .9); }
.info-actions { display: flex; justify-content: center; gap: 22px; margin: 20px 0 4px; }
.deck-empty { position: absolute; inset: 0; display: grid; place-content: center; }
.grad-orb { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffb3cb, #ff5f8f 40%, #7b5cff 85%); border: 0; box-shadow: inset 0 -12px 30px rgba(60, 20, 120, .5), 0 30px 60px -20px rgba(255, 95, 143, .7); font-size: 54px; }
.grad-orb::before { border-radius: 50%; inset: -24px; }
.grad-orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); animation: ring 3s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

.info-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.info-name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.taste-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; flex: none; }
.taste-ring b { font-size: 22px; line-height: 1; }
.taste-ring span { font-size: 10px; font-weight: 700; opacity: .85; }
.taste-ring.hi { background: linear-gradient(135deg, #34d399, #0f8f6a); }
.taste-ring.mid { background: linear-gradient(135deg, #fbbf24, #e0761b); }
.taste-ring.lo { background: var(--card-strong); color: var(--text); }
.info-sec { padding: 14px 0; border-top: 1px solid var(--border); }
.kids { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.kids small { color: var(--hint); }
.kids.warn { background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .4); }
.kids.warn b { color: #f5b81c; }
.collage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.bubbles { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.38; word-wrap: break-word; position: relative; }
.bubble.her { background: var(--card-strong); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--accent-grad); color: #fff; border-bottom-right-radius: 6px; }
.variants { display: grid; gap: 8px; }
.variant { position: relative; text-align: left; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); font-size: 14.5px; line-height: 1.4; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.variant.sel { border-color: rgba(255, 95, 143, .6); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.v-best { font-size: 11px; font-weight: 800; color: var(--accent-1); text-transform: uppercase; letter-spacing: .05em; }

/* =====================================================================
   👥 Девушки
   ===================================================================== */
.list-head { display: grid; gap: 10px; margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); color: var(--hint); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 15px; height: 44px; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.plist { display: grid; gap: 0; }
.prow { display: flex; gap: 14px; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; border-radius: 22px; animation: viewIn .4s var(--ease) both; cursor: pointer; }
.prow-ava { position: relative; flex: none; align-self: flex-start; }
.ava-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 0 3px var(--bg-2); }
.prow-main { flex: 1; min-width: 0; }
.prow-top { display: flex; align-items: center; gap: 8px; }
.prow-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-icons { display: flex; gap: 2px; font-size: 13px; }
.prow-ago { margin-left: auto; font-size: 12px; color: var(--hint); white-space: nowrap; }
.prow-last { font-size: 13.5px; color: var(--hint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.prow-int { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.prow-int small { font-size: 12px; font-weight: 700; color: var(--hint); }
.prow-meet { font-size: 12.5px; font-weight: 600; margin-top: 8px; color: var(--accent-1); }
.st-pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--card-strong); white-space: nowrap; }
.st-pill.wait { background: rgba(255, 95, 143, .16); color: #ff7aa2; }
.st-pill.ok { background: rgba(52, 211, 153, .14); color: #34d399; }
.st-pill.idle { background: rgba(251, 191, 36, .14); color: #f5b81c; }
.st-pill.bad { background: rgba(255, 107, 107, .15); color: #ff7b7b; }
:root[data-theme="light"] .st-pill.wait { color: #d93c6e; }
:root[data-theme="light"] .st-pill.ok { color: #13915f; }
:root[data-theme="light"] .st-pill.idle { color: #a86b00; }
.stage { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--border); white-space: nowrap; }
.stage.s1 { color: #9fb4ff; } .stage.s2 { color: #ff9466; } .stage.s3 { color: #fbbf24; }
.stage.s4 { color: #ff7aa2; border-color: rgba(255, 95, 143, .35); } .stage.s5 { color: #34d399; } .stage.s6 { color: #c9a2ff; }
.stage.glass { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .14); }

.detail { display: block; }
.phero { position: relative; height: min(480px, 62vh); border-radius: 30px; overflow: hidden; background: var(--bg-2); margin: 0 0 12px; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; }
.phero-track { display: flex; height: 100%; transition: transform .4s var(--ease); }
.phero-track img { flex: none; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.phero-empty { flex: none; width: 100%; display: grid; place-items: center; background: var(--accent-grad); }
.phero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 5, 16, .35) 0%, transparent 22%, transparent 45%, rgba(8, 5, 16, .9) 100%); pointer-events: none; }
.phero-info { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; pointer-events: none; }
.phero-name { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.phero-name span { font-weight: 500; opacity: .9; }
.phero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.phero-tags .st-pill { background: rgba(255, 255, 255, .92); color: #1a1226; }
.phero-sub { font-size: 13px; opacity: .8; margin-top: 8px; }
.qbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 2px var(--gutter) 4px; }
.qbar::-webkit-scrollbar { display: none; }
.qa { flex: none; width: 74px; min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.qa-i { font-size: 22px; }
.qa-l { font-size: 11.5px; font-weight: 600; color: var(--hint); }
.qa.danger .qa-l { color: #ff7b7b; }
.lead { font-size: 15.5px; line-height: 1.5; }
.quote { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent-1); border-radius: 4px 14px 14px 4px; background: var(--card); font-style: italic; font-size: 14px; }
.quote small { display: block; font-style: normal; color: var(--hint); font-size: 11.5px; margin-top: 4px; }
.meet-mini { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, rgba(255, 95, 143, .16), rgba(123, 92, 255, .14)); border-color: rgba(255, 95, 143, .28); }
.mm-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--accent-grad); flex: none; }
.mm-when { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.mm-place { font-size: 13.5px; color: var(--hint); margin-top: 2px; }
.clist { display: grid; gap: 6px; }
.cl-item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 14.5px; }
.cl-ic { font-size: 16px; }
.cl-label { font-weight: 600; }
.cl-val { font-size: 13px; color: var(--hint); text-align: right; }
.cl-item.todo { border-style: dashed; }
.cl-item.todo .cl-val { color: var(--warn); font-weight: 600; }
.cl-item.bad { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .35); }
.int-row { display: flex; align-items: flex-end; gap: 16px; }
.int-num { flex: none; display: flex; align-items: baseline; gap: 4px; }
.int-num b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.int-num small { color: var(--hint); font-weight: 700; }
.int-num span { font-size: 13px; margin-left: 6px; }
.int-spark { flex: 1; min-width: 0; }
.pm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pm .chip { white-space: normal; line-height: 1.3; }
.blist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.blist li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; }
.blist li::before { content: "→"; position: absolute; left: 0; color: var(--accent-1); font-weight: 700; }
.blist.good li::before { content: "✓"; color: var(--ok); }
.blist.risk li::before { content: "!"; color: var(--warn); left: 5px; }
.note-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); font-size: 14px; }
.tasks { display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: 14.5px; }
.task span:nth-child(2) { flex: 1; }
.task small { color: var(--hint); font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 4px; max-height: 460px; overflow-y: auto; margin: 0 -6px; padding: 0 6px 4px; overscroll-behavior: contain; }
.chat-day { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--hint); padding: 3px 10px; border-radius: 99px; background: var(--card-strong); margin: 8px 0 4px; }
.msg { display: flex; }
.msg.me { justify-content: flex-end; }
.msg .bubble { padding-bottom: 20px; min-width: 70px; }
.msg-meta { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; opacity: .7; display: flex; gap: 5px; align-items: center; }
.msg-meta b { font-size: 9.5px; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .22); text-transform: uppercase; letter-spacing: .04em; }
.msg-meta b.you { background: rgba(255, 255, 255, .9); color: #c2306a; }
.compose { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); }
.compose textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 15px; padding: 9px 0; max-height: 140px; }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent-grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: opacity .2s, transform .2s; }
.send svg { width: 18px; height: 18px; margin-left: 2px; }
.send:disabled { opacity: .35; }
.compose-note { font-size: 11.5px; color: var(--hint); text-align: center; margin-top: 8px; }
.advice-cta { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; border-color: rgba(123, 92, 255, .35); background: linear-gradient(135deg, rgba(123, 92, 255, .18), rgba(255, 95, 143, .12)); }
.adv-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--accent-grad); flex: none; box-shadow: 0 8px 20px -8px rgba(123, 92, 255, .9); }
.adv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adv-main b { font-size: 15.5px; }
.adv-main span { font-size: 12.5px; color: var(--hint); }
.adv-cost { font-size: 12px; font-weight: 700; color: var(--hint); padding: 4px 8px; border-radius: 99px; border: 1px solid var(--border); white-space: nowrap; }
.advice { border-color: rgba(123, 92, 255, .4); background: linear-gradient(160deg, rgba(123, 92, 255, .16), rgba(255, 95, 143, .08) 60%, var(--card)); }
.advice.fresh { animation: glowIn 1.2s var(--ease); }
@keyframes glowIn { from { box-shadow: 0 0 0 4px rgba(123, 92, 255, .45), var(--shadow); } }
.adv-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 6px; }
.adv-mood b { font-size: 17px; display: block; }
.adv-int { text-align: right; }
.adv-int b { font-size: 26px; font-weight: 800; display: block; line-height: 1.1; }
.adv-int b small { font-size: 13px; color: var(--hint); }
.adv-int .meter { width: 64px; }
.adv-sec { margin-top: 14px; font-size: 14.5px; }
.adv-next { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(255, 95, 143, .3); font-weight: 600; font-size: 15px; }
.adv-var { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); margin-bottom: 8px; font-size: 14.5px; }
.adv-var span { flex: 1; }
.mini-btn { min-height: 38px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; flex: none; }
.advice-loading { display: flex; gap: 16px; align-items: center; border-color: rgba(123, 92, 255, .35); }
.al-orb { width: 54px; height: 54px; border-radius: 50%; flex: none; background: conic-gradient(from 0deg, #ff5f8f, #7b5cff, #4fc3f7, #ff5f8f); animation: spin 1.6s linear infinite; position: relative; filter: saturate(1.2); }
.al-orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-2); }
.al-steps { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--hint); }
.al-steps span { animation: stepPulse 2.4s ease-in-out infinite both; }
.al-steps span:nth-child(2) { animation-delay: .8s; }
.al-steps span:nth-child(3) { animation-delay: 1.6s; }
@keyframes stepPulse { 0%, 100% { opacity: .35; } 30% { opacity: 1; color: var(--text); } }

/* =====================================================================
   ⚙️ Ещё
   ===================================================================== */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.set-row.col { flex-direction: column; align-items: stretch; }
.card-head + .set-row { border-top: 0; padding-top: 2px; }
.set-main { min-width: 0; }
.set-title { font-weight: 600; font-size: 15px; }
.set-sub { font-size: 12.5px; color: var(--hint); margin-top: 1px; }
.saved-note { color: var(--ok); font-weight: 600; }
.bal-form { display: flex; align-items: center; gap: 8px; }
.bal-cur { font-size: 22px; font-weight: 800; color: var(--hint); }
.bal-in { margin: 0; flex: 1; min-width: 0; min-height: 48px; font-size: 18px; font-weight: 700; }
.bal-form .btn { padding: 0 16px; flex: none; }
.nav-list { padding: 6px; }
.nav-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 12px; border: 0; background: none; border-radius: 18px; text-align: left; cursor: pointer; }
.nav-row + .nav-row { border-top: 1px solid var(--border); border-radius: 0 0 18px 18px; }
.nav-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); flex: none; }
.nav-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-main b { font-size: 15.5px; }
.nav-main span { font-size: 12.5px; color: var(--hint); }
.nav-go { font-size: 24px; color: var(--hint); }
.footer { text-align: center; color: var(--hint); font-size: 12.5px; padding: 24px 0 8px; }
.footer b { color: var(--text); }
.page-head { margin-bottom: 8px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 4px; }
.stat-table { display: grid; }
.st-row { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.st-row:first-child { border-top: 0; }
.st-row b, .st-row span:last-child { text-align: right; }
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.like-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); color: #fff; }
.like-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lt-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--accent-grad); }
.lt-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 5, 16, .92)); }
.lt-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 4px; }
.lt-match { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 95, 143, .9); }
.lt-info { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.lt-name { font-weight: 800; font-size: 15px; }
.lt-text { font-size: 12px; line-height: 1.35; opacity: .9; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lt-text .muted { color: rgba(255, 255, 255, .6); }
.lt-meta { font-size: 10.5px; opacity: .65; margin-top: 4px; }
.timeline { position: relative; display: grid; gap: 2px; }
.tl-day { font-size: 12px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .06em; margin: 10px 0 6px; }
.tl-day:first-child { margin-top: 0; }
.tl-item { position: relative; display: flex; gap: 12px; padding: 8px 0 12px; }
.tl-item::before { content: ""; position: absolute; left: 17px; top: 44px; bottom: -4px; width: 2px; background: var(--track); border-radius: 2px; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--card-strong); flex: none; }
.tl-body { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.45; padding-top: 6px; }
.tl-body small { display: block; color: var(--hint); font-size: 12px; margin-top: 2px; }
.versions .tl-item::before { left: 25px; }
.ver-chip { min-width: 52px; height: 30px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--card-strong); border: 1px solid var(--border); flex: none; position: relative; z-index: 1; }
.tl-item.current .ver-chip { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(255, 95, 143, .9); }
.ver-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ver-head small { margin: 0; }
.ver-head .chip { padding: 3px 8px; font-size: 11px; }
.versions .tl-body { padding-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 400px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
.set-row .chip { white-space: nowrap; flex: none; }

/* ---------- v6.3: чек-лист «узнать», фильтр стадии, тема ---------- */
.ask-btn { min-height: 34px; min-width: 76px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 95, 143, .4); background: var(--accent-soft); color: var(--accent-1); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-grid; place-items: center; position: relative; }
.ask-btn::before { content: ""; position: absolute; inset: -5px -2px; } /* зона нажатия 44px */
.ask-btn:disabled { opacity: .7; }
.ask-btn .spin-dot { width: 12px; height: 12px; }
.cl-pending { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: rgba(123, 92, 255, .16); color: #a993ff; white-space: nowrap; }
.cl-item.asked { border-style: dashed; border-color: rgba(123, 92, 255, .4); animation: pop .3s var(--ease); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 38px; padding: 0 14px; cursor: pointer; background: var(--accent-soft); border-color: rgba(255, 95, 143, .4); color: var(--text); font-family: inherit; }
.filter-chip span { opacity: .6; margin-left: 4px; }
.fn-row.press { border-radius: 12px; min-height: 44px; }
.fn-row.press:active { background: var(--card); }
.fn-go { color: var(--hint); font-size: 18px; width: 12px; text-align: center; }
.home-kpis button.kpi { text-align: left; width: 100%; color: inherit; font: inherit; cursor: pointer; }
.kpi-link { position: absolute; right: 12px; bottom: 10px; color: var(--hint); font-size: 16px; }

/* светлая тема: контраст цветных подписей */
:root[data-theme="light"] .cl-pending { color: #5b3fe0; }
:root[data-theme="light"] .stage.s1 { color: #4060d8; } :root[data-theme="light"] .stage.s2 { color: #d0581f; }
:root[data-theme="light"] .stage.s3 { color: #a86b00; } :root[data-theme="light"] .stage.s4 { color: #d93c6e; }
:root[data-theme="light"] .stage.s5 { color: #13915f; } :root[data-theme="light"] .stage.s6 { color: #7b48d6; }
:root[data-theme="light"] .phero .stage.s1, :root[data-theme="light"] .phero .stage.s4 { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); }
:root[data-theme="light"] .st-pill.bad, :root[data-theme="light"] .qa.danger .qa-l, :root[data-theme="light"] .act.nope { color: #d03c3c; }
:root[data-theme="light"] .kids.warn b, :root[data-theme="light"] .cl-item.todo .cl-val { color: #a86b00; }
:root[data-theme="light"] .act.up { color: #6a4be8; }
:root[data-theme="light"] .act:not(.like) { background: #fff; }
:root[data-theme="light"] .sheet-backdrop { background: rgba(30, 20, 50, .35); }
:root[data-theme="light"] .sheet { box-shadow: 0 -20px 60px -20px rgba(60, 30, 90, .35); }
:root[data-theme="light"] .choice, :root[data-theme="light"] .step-btn, :root[data-theme="light"] .btn-ghost { background: #fff; }
:root[data-theme="light"] .bubble.her { background: #fff; }
:root[data-theme="light"] .scard { box-shadow: 0 24px 50px -24px rgba(60, 30, 90, .55), 0 0 0 1px var(--border); }
:root[data-theme="light"] .al-orb::after { background: #fff; }
:root[data-theme="light"] .fn-n.zero { color: var(--hint); }

/* ---------- v6.4: просмотрщик фото/сторис, траты по девушкам ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, var(--vw-bg, 1)); color: #fff; opacity: 0; transition: opacity .25s; touch-action: none; user-select: none; -webkit-user-select: none; }
.viewer.open { opacity: 1; }
.vw-track { position: absolute; inset: 0; display: flex; transition: transform .35s var(--ease); }
.vw-slide { flex: none; width: 100%; height: 100%; display: grid; place-items: center; padding: calc(var(--sat) + 64px) 0 calc(var(--sab) + 24px); }
.vw-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; -webkit-user-drag: none; pointer-events: none; }
.vw-bars { position: absolute; z-index: 2; top: calc(var(--sat) + 10px); left: 12px; right: 12px; display: flex; gap: 4px; }
.vw-bars i { flex: 1; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.vw-bars i b { display: block; height: 100%; width: 0; background: #fff; transition: width .25s; }
.vw-bars i.on b { width: 100%; }
.vw-top { position: absolute; z-index: 2; top: calc(var(--sat) + 20px); left: 16px; right: 8px; display: flex; align-items: center; gap: 10px; }
.vw-title { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.vw-count { font-size: 13px; opacity: .8; }
.vw-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.vw-close svg { width: 20px; height: 20px; }
.vw-nav { position: absolute; z-index: 2; top: 50%; width: 44px; height: 64px; margin-top: -32px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 30px; cursor: pointer; display: none; }
.vw-nav.prev { left: 10px; } .vw-nav.next { right: 10px; }
.vw-nav[disabled] { opacity: .2; }
@media (hover: hover) and (pointer: fine) { .vw-nav { display: block; } }

.stories-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 14px; padding: 2px 18px 4px; scroll-snap-type: x proximity; }
.stories-row::-webkit-scrollbar { display: none; }
.sheet .stories-row { margin: 0 calc(-1 * var(--gutter)) 14px; padding-left: var(--gutter); padding-right: var(--gutter); }
.story-tile { position: relative; flex: none; width: 86px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; }
.story-ring { display: block; padding: 2.5px; border-radius: 18px; background: linear-gradient(45deg, #fbbf24, #ff5f8f 45%, #7b5cff); }
.story-ring img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 15.5px; border: 2px solid var(--bg-2); background: var(--card-strong); }
.story-new { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 99px; background: var(--accent-grad); border: 2px solid var(--bg-2); white-space: nowrap; }
.collage-tile { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; overflow: hidden; display: block; }
.collage-tile img { display: block; }
.phero-zoom { position: absolute; right: 14px; top: 26px; z-index: 2; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(15, 10, 25, .35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }
.phero-zoom svg { width: 18px; height: 18px; }

.spent { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); font-size: 14px; }
.spent-ic { font-size: 18px; }
.spent-main { flex: 1; min-width: 0; }
.spent-main b { font-weight: 800; }
.spent-note { font-size: 11.5px; color: var(--hint); white-space: nowrap; }

.pbars { display: grid; gap: 4px; }
.pbar { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 4px; border: 0; background: none; border-radius: 14px; text-align: left; color: inherit; font: inherit; }
button.pbar { cursor: pointer; }
button.pbar:active { background: var(--card); }
.pbar .ava { width: 38px; height: 38px; font-size: 15px; }
.pb-feed { background: linear-gradient(135deg, rgba(255, 148, 102, .25), rgba(251, 191, 36, .25)); font-size: 18px; }
.pbar-main { flex: 1; min-width: 0; display: block; }
.pbar .hbar-top { display: flex; margin-bottom: 6px; }
.pbar-go { color: var(--hint); font-size: 18px; width: 10px; }
.pbar .hbar-track { display: block; }
.pbar .hbar-top { gap: 8px; }
.pbar .hbar-name { min-width: 0; flex: 1; }
.pbar .hbar-val { flex: none; }
.pbar .hbar-name { white-space: normal; line-height: 1.25; }
.pbar .hbar-top { align-items: baseline; }

/* ---------- «Узнать у неё…» ---------- */
.ask-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask-chip { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 16px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 95, 143, .35); background: var(--accent-soft); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25;
  transition: transform .15s var(--ease), background .2s, opacity .2s; }
.ask-chip:active { transform: scale(.96); background: rgba(255, 95, 143, .26); }
.ask-chip .ac-ic { flex: none; width: 20px; display: grid; place-items: center; }
.ask-chip .spin-dot { width: 14px; height: 14px; color: var(--accent-1); }
.ask-chip:disabled:not(.loading) { opacity: .5; }
.ask-chip.loading { background: rgba(255, 95, 143, .26); }
.ask-chip.done { border-style: dashed; border-color: rgba(123, 92, 255, .4); background: none; flex-wrap: wrap; }
.ask-chip.done small { width: 100%; padding-left: 28px; margin-top: -4px; font-size: 11px; color: #a993ff; font-weight: 700; }
:root[data-theme="light"] .ask-chip.done small { color: #5b3fe0; }
.sheet { transition: transform .38s var(--ease), bottom .25s var(--ease); }

/* ---------- «Узнать у неё…» ---------- */
.ask-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask-chip { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 16px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 95, 143, .35); background: var(--accent-soft); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25;
  transition: transform .15s var(--ease), background .2s, opacity .2s; }
.ask-chip:active { transform: scale(.96); background: rgba(255, 95, 143, .26); }
.ask-chip .ac-ic { flex: none; width: 20px; display: grid; place-items: center; }
.ask-chip .spin-dot { width: 14px; height: 14px; color: var(--accent-1); }
.ask-chip:disabled:not(.loading) { opacity: .5; }
.ask-chip.loading { background: rgba(255, 95, 143, .26); }
.ask-chip.done { border-style: dashed; border-color: rgba(123, 92, 255, .4); background: none; flex-wrap: wrap; }
.ask-chip.done small { width: 100%; padding-left: 28px; margin-top: -4px; font-size: 11px; color: #a993ff; font-weight: 700; }
:root[data-theme="light"] .ask-chip.done small { color: #5b3fe0; }
.sheet { transition: transform .38s var(--ease), bottom .25s var(--ease); }

/* ---------- v6.5: история, выводы, экран «Домой» ---------- */
.hx-list { display: grid; }
.hx { position: relative; display: flex; gap: 12px; padding: 8px 0 12px; }
.hx::before { content: ""; position: absolute; left: 17px; top: 42px; bottom: -6px; width: 2px; background: var(--track); border-radius: 2px; }
.hx:last-child::before { display: none; }
.hx.ev::before { left: 17px; top: 36px; }
.hx-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--accent-soft); flex: none; position: relative; z-index: 1; }
.hx-dot.sm { background: var(--card-strong); font-size: 15px; height: 30px; width: 30px; margin: 0 3px; border-radius: 10px; }
.hx-body { flex: 1; min-width: 0; padding-top: 4px; }
.hx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.hx-head b { font-size: 14.5px; }
.hx-head small { margin-left: auto; color: var(--hint); font-size: 12px; }
.hx-changes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.hx-changes li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.4; }
.hx-changes li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); }
.hx-short { margin-top: 6px; font-size: 13px; color: var(--hint); font-style: italic; }
.hx.ev .hx-body { padding-top: 2px; }
.hx-text { font-size: 14px; line-height: 1.4; }
.hx.ev small { color: var(--hint); font-size: 11.5px; }

.link-btn { border: 0; background: none; color: var(--accent-1); font: inherit; font-weight: 700; font-size: 14px; min-height: 44px; padding: 0 4px; margin: -12px -4px -12px 0; cursor: pointer; }
.ins-list { display: grid; }
.ins-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 4px; border: 0; background: none; border-top: 1px solid var(--border); text-align: left; color: inherit; font: inherit; border-radius: 0; }
.ins-row:first-child { border-top: 0; }
button.ins-row { cursor: pointer; }
button.ins-row:active { background: var(--card); }
.ins-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex: none; background: var(--card-strong); }
.ins-ic.k-dossier { background: rgba(123, 92, 255, .16); }
.ins-ic.k-meet { background: rgba(52, 211, 153, .15); }
.ins-ic.k-risk { background: rgba(255, 107, 107, .15); }
.ins-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ins-text { font-size: 14px; line-height: 1.4; }
.ins-main small { color: var(--hint); font-size: 11.5px; }
.ins-go { color: var(--hint); font-size: 18px; align-self: center; }
.ins-full { padding: 8px 14px; }
.nav-row:disabled { cursor: default; opacity: 1; }
.ok-text { color: var(--ok); font-weight: 600; }
.hx-time { display: block; color: var(--hint); font-size: 11.5px; margin-top: 2px; }
.ins-text b { font-weight: 700; }

.chips-grid .choice.sel { background: var(--accent-soft); border-color: rgba(255, 95, 143, .7); color: var(--text); box-shadow: 0 0 0 2px rgba(255, 95, 143, .25) inset; }
