/* v63: Onest — фирменный шрифт сайта (лежит на сервере, без внешних CDN) */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/onest-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root[data-ui="vision"] body { font-family: var(--f); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01" 0; }
:root[data-ui="vision"] button, :root[data-ui="vision"] input, :root[data-ui="vision"] textarea, :root[data-ui="vision"] select { font-family: var(--f); }
/* ============ «Стекло» в духе iOS / visionOS ============
   Включается data-ui="vision" поверх «Голограммы» и дизайн-системы ds.css.
   Шрифт системный Apple (на iPhone/Mac — настоящий SF Pro), иначе Inter. Меню и виджеты — на матовом стекле над обоями. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root[data-ui="vision"] {
  --f: "Onest", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;   /* v63: фирменный шрифт */
  --sans: var(--f); --serif: var(--f); --display: var(--f);
  --t-display: 700 44px/50px var(--f); --t-h1: 700 34px/40px var(--f); --t-h2: 700 22px/28px var(--f); --t-h3: 600 17px/22px var(--f);
  --t-body: 400 15px/22px var(--f); --t-small: 400 13px/18px var(--f); --t-cap: 600 12px/16px var(--f);
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --c-bg: #05060E; --c-text: #FFFFFF; --c-text-2: rgba(235, 235, 245, .66); --c-text-3: rgba(235, 235, 245, .42);
  --c-accent: #0A84FF; --c-accent-2: #5E5CE6; --c-accent-soft: rgba(10, 132, 255, .18); --c-on-accent: #fff;
  --c-success: #30D158; --c-warn: #FF9F0A; --c-danger: #FF453A;
  /* «жидкое стекло» */
  --glass: rgba(24, 24, 34, .78); --glass-2: rgba(44, 44, 58, .82); --glass-3: rgba(255, 255, 255, .16);
  --c-surface: var(--glass); --c-surface-2: rgba(255, 255, 255, .06); --c-surface-solid: #16171F;
  --c-border: rgba(255, 255, 255, .1); --c-border-strong: rgba(255, 255, 255, .18);
  --blur: blur(30px) saturate(160%);
  --e1: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 40px -24px rgba(0, 0, 0, .8);
  --e2: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 80px -30px rgba(0, 0, 0, .85);
  -webkit-font-smoothing: antialiased;
}
:root[data-ui="vision"] body { font-family: var(--f); letter-spacing: -.01em; background: #05060E; }
/* обои: картинка Midjourney, а пока её нет — мягкие пятна цвета, как обои iPhone */
:root[data-ui="vision"] body::before { opacity: 1 !important; animation: none !important; inset: 0 !important; transform: scale(1.2);
  /* обои размыты до мягких цветовых пятен, как фон за виджетами в iOS: без резких линий */
  background:
    radial-gradient(60vmax 50vmax at 10% 0%, rgba(88, 86, 214, .55), transparent 65%),
    radial-gradient(55vmax 45vmax at 95% 15%, rgba(175, 82, 222, .35), transparent 65%),
    radial-gradient(70vmax 55vmax at 70% 110%, rgba(10, 100, 220, .38), transparent 65%),
    url(/assets/v_wall.webp) center / cover no-repeat, #07071A !important;
  filter: blur(70px) saturate(120%) brightness(.55) !important; }
:root[data-ui="vision"] body::after { display: none; }
@media (max-width: 900px) { :root[data-ui="vision"] body::before { background:
    radial-gradient(70vmax 50vmax at 10% 0%, rgba(88, 86, 214, .6), transparent 65%), radial-gradient(60vmax 50vmax at 100% 40%, rgba(175, 82, 222, .35), transparent 65%),
    radial-gradient(70vmax 60vmax at 60% 100%, rgba(10, 100, 220, .4), transparent 65%), url(/assets/v_wallm.webp) center / cover no-repeat, #07071A !important; } }

/* стекло для всех карточек */
:root[data-ui="vision"] .ds-card, :root[data-ui="vision"] .card:not(.hero), :root[data-ui="vision"] .card.diary, :root[data-ui="vision"] .feed-item,
:root[data-ui="vision"] .sec-card, :root[data-ui="vision"] .more-grid a {
  background: var(--glass) !important; border: 0 !important; box-shadow: var(--e1) !important; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: var(--r-lg) !important; }
:root[data-ui="vision"] .card.chat { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-ui="vision"] .ds-card .ds-cap, :root[data-ui="vision"] .card h3, :root[data-ui="vision"] .ds-card-head .ds-cap { color: var(--c-text-2); letter-spacing: .02em; text-transform: none; font: 600 15px/20px var(--f); }
:root[data-ui="vision"] .phi { background: var(--glass-2); color: #fff; border-radius: 8px; }
:root[data-ui="vision"] .ds-btn.primary, :root[data-ui="vision"] .btn.coral, :root[data-ui="vision"] .cbtn.send { background: #0A84FF; box-shadow: none; }
:root[data-ui="vision"] .ds-btn.secondary, :root[data-ui="vision"] .btn:not(.coral):not(.ghost) { background: var(--glass-2); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
:root[data-ui="vision"] .ds-btn { border-radius: var(--r-pill); font-weight: 600; }
:root[data-ui="vision"] .ds-chip, :root[data-ui="vision"] .chip { background: var(--glass-2); border: 0; color: var(--c-text); }
:root[data-ui="vision"] .ds-chip.active { background: rgba(10, 132, 255, .28); }
:root[data-ui="vision"] .ds-tabs, :root[data-ui="vision"] .seg { background: rgba(118, 118, 128, .24); border: 0; border-radius: 12px; padding: 3px; }
:root[data-ui="vision"] .ds-tab, :root[data-ui="vision"] .seg button { height: 32px; border-radius: 9px; font: 600 14px/1 var(--f); }
:root[data-ui="vision"] .ds-tab.on, :root[data-ui="vision"] .seg button.on { background: rgba(255, 255, 255, .2); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
:root[data-ui="vision"] .ds-item-lead, :root[data-ui="vision"] .ds-card .list .row .ic, :root[data-ui="vision"] .dric { border: 0 !important; border-radius: 10px; }
:root[data-ui="vision"] .hdate { border: 0; background: var(--glass-2); border-radius: 12px; }
:root[data-ui="vision"] .hdate.now { background: #FF453A; }
:root[data-ui="vision"] .topbar h1, :root[data-ui="vision"] .mtop h1 { font: var(--t-h1); letter-spacing: -.02em; }
:root[data-ui="vision"] .topbar .search, :root[data-ui="vision"] .tback, :root[data-ui="vision"] .mtop .back, :root[data-ui="vision"] .mtop .icon {
  background: rgba(118, 118, 128, .24); border: 0; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
:root[data-ui="vision"] .ptour { background: rgba(118, 118, 128, .24); border: 0; color: #fff; }
:root[data-ui="vision"] .ds-avatar { box-shadow: none; }
:root[data-ui="vision"] .ds-badge { background: rgba(118, 118, 128, .3); color: #fff; font-weight: 600; }
:root[data-ui="vision"] .ds-badge.warn { background: rgba(255, 159, 10, .22); color: #FFB340; }
:root[data-ui="vision"] .cal2 .day.sel { background: #0A84FF !important; box-shadow: none !important; }
:root[data-ui="vision"] .cal2 .day.today { background: rgba(255, 69, 58, .18) !important; border-color: transparent !important; }
:root[data-ui="vision"] .cal2 .day.today .cn { color: #FF6961 !important; }
:root[data-ui="vision"] .cal2 .day.sel .cn { color: #fff !important; }
:root[data-ui="vision"] .bubble.me { background: #0A84FF; box-shadow: none; }
:root[data-ui="vision"] .bubble.bot { background: var(--glass-2); border: 0; }
:root[data-ui="vision"] .composer { background: rgba(30, 30, 40, .55); border: 0; box-shadow: var(--e2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* ===== меню слева: плавающая стеклянная панель, группы, цветные «плитки» иконок как в iOS ===== */
@media (min-width: 901px) {
  :root[data-ui="vision"] .shell { grid-template-columns: 272px minmax(0, 1fr); }
  :root[data-ui="vision"] .side { position: sticky; top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; padding: var(--s5) var(--s2) var(--s2);
    border-radius: 30px; border: 0; background: rgba(20, 20, 30, .78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--e2); gap: 0; }
  :root[data-ui="vision"] .main { padding: var(--s6) var(--s6) var(--s8) var(--s6); max-width: 1220px; }
}
:root[data-ui="vision"] .brand { padding: 0 var(--s3) var(--s4); }
:root[data-ui="vision"] .brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(160deg, #FF7A9A, #FF2D55); box-shadow: 0 6px 16px -6px rgba(255, 45, 85, .8); }
:root[data-ui="vision"] .brand b { font: 700 17px/22px var(--f); letter-spacing: -.02em; }
:root[data-ui="vision"] .brand span { font: 400 13px/18px var(--f); color: var(--c-text-3); }
.side-nav { display: flex; flex-direction: column; gap: var(--s3); overflow-y: auto; flex: 1; scrollbar-width: none; padding: 0 2px; }
.side-nav::-webkit-scrollbar { display: none; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-gl { font: 600 12px/16px var(--f); color: var(--c-text-3); padding: var(--s2) var(--s3) var(--s1); }
:root[data-ui="vision"] .nav-item { height: 40px; padding: 0 var(--s2); gap: var(--s3); border-radius: 12px; font: 500 15px/1 var(--f); letter-spacing: -.01em; color: rgba(255, 255, 255, .86); box-shadow: none !important; }
:root[data-ui="vision"] .nav-item .ni { width: 28px; height: 28px; border-radius: 8px; background: var(--tile); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 6px -2px rgba(0, 0, 0, .5); }
:root[data-ui="vision"] .nav-item .svi { width: 17px; height: 17px; opacity: 1 !important; color: #fff !important; stroke-width: 2; }
:root[data-ui="vision"] .nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
:root[data-ui="vision"] .nav-item.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
:root[data-ui="vision"] .side-foot { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0 0; padding: var(--s2); border: 0; border-radius: 18px; background: rgba(255, 255, 255, .06); text-decoration: none; color: inherit; }
:root[data-ui="vision"] .side-foot:hover { background: rgba(255, 255, 255, .1); }
:root[data-ui="vision"] .side-foot b { font: 600 15px/20px var(--f); color: #fff; } :root[data-ui="vision"] .side-foot .small { font: 400 13px/16px var(--f); color: var(--c-text-3); }
.sf-go { margin-left: auto; color: var(--c-text-3); display: grid; place-items: center; } .sf-go .svi { width: 18px; height: 18px; }
/* на телефоне — плавающий «док» из жидкого стекла */
@media (max-width: 900px) {
  :root[data-ui="vision"] .tabbar { left: var(--s4); right: var(--s4); height: 64px; padding: 0 var(--s1); border-radius: 32px; border: 0;
    background: rgba(30, 30, 44, .5); -webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%); box-shadow: var(--e2); align-items: center; }
  :root[data-ui="vision"] .tab { height: 54px; margin: 0 2px; border-radius: 27px; font: 500 10px/12px var(--f); color: rgba(255, 255, 255, .62); gap: 2px; justify-content: center; }
  :root[data-ui="vision"] .tab .svi { width: 24px; height: 24px; stroke-width: 1.8; }
  :root[data-ui="vision"] .tab.on { background: rgba(255, 255, 255, .14); color: #fff; } :root[data-ui="vision"] .tab.on .svi { color: #fff; }
  :root[data-ui="vision"] .tab.center .ti { width: auto; height: auto; background: none !important; box-shadow: none !important; border-radius: 0; margin: 0; }
  :root[data-ui="vision"] .tab.center { color: #fff; } :root[data-ui="vision"] .tab.center .svi { color: #64B5FF; }
}

/* ===== главная: виджеты ===== */
.vhome { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.vhome > .vw { animation: ds-in .5s var(--ease) both; }
.vhome > .vw:nth-child(2) { animation-delay: .04s; } .vhome > .vw:nth-child(3) { animation-delay: .08s; } .vhome > .vw:nth-child(4) { animation-delay: .12s; }
.vhome > .vw:nth-child(5) { animation-delay: .16s; } .vhome > .vw:nth-child(6) { animation-delay: .2s; } .vhome > .vw:nth-child(n+7) { animation-delay: .24s; }
:root[data-ui="vision"] a.vw, :root[data-ui="vision"] .vw a:not(.vw-link) { color: #fff; }
.vw { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; border-radius: 28px; overflow: hidden; color: #fff; text-decoration: none;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--e1); aspect-ratio: 1 / 1;
  transition: transform .3s var(--ease), background .3s; }
a.vw:hover { transform: translateY(-3px) scale(1.01); background: var(--glass-2); } a.vw:active { transform: scale(.98); }
.vw.span2 { grid-column: span 2; aspect-ratio: auto; min-height: 0; }
.vw.span4 { grid-column: 1 / -1; aspect-ratio: auto; }
.vw.row2 { grid-row: span 2; }
.vw-h { display: flex; align-items: center; gap: 8px; font: 600 15px/20px var(--f); color: rgba(255, 255, 255, .92); position: relative; z-index: 1; }
.vw-hi { width: 24px; height: 24px; border-radius: 7px; background: var(--tile); display: grid; place-items: center; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.vw-hi .svi { width: 15px; height: 15px; color: #fff; stroke-width: 2.1; }
.vw-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.vw-link { display: inline-flex; align-items: center; gap: 2px; font: 500 14px/1 var(--f); color: #64B5FF; text-decoration: none; }
.vw-link .svi { width: 15px; height: 15px; }
.vw-big { font: 700 52px/1 var(--f); letter-spacing: -.04em; margin-top: auto; position: relative; z-index: 1; }
.vw-big.sm { font-size: 26px; line-height: 30px; letter-spacing: -.02em; }
.vw-unit { font: 500 15px/20px var(--f); color: var(--c-text-2); position: relative; z-index: 1; }
.vw-foot { font: 400 13px/18px var(--f); color: var(--c-text-2); margin: 6px 0 0; position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vw-more { font: 400 12px/16px var(--f); color: var(--c-text-3); margin: 4px 0 0; }
.vw-ico { position: relative; width: 56px; height: 56px; border-radius: 15px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--tile);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.vw-ico .svi { width: 28px; height: 28px; color: #fff; }
.vw-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.62); }
.vw-cap { font: 600 12px/16px var(--f); letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); margin: auto 0 4px; }
.vk-small .vw-big { margin-top: 0; }
.vw:not(.span2):not(.span4) { aspect-ratio: auto; min-height: 196px; }
.vfam { flex: 1; align-items: center; }

/* «Сегодня» — карточка как в App Store */
.vw.vk-today { padding: 0; min-height: 360px; justify-content: flex-end; border-radius: 32px; box-shadow: var(--e2); }
.vt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.vt-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 75%, rgba(0, 0, 0, .75)); }
.vt-in { position: relative; z-index: 1; padding: 28px 32px 30px; display: flex; flex-direction: column; gap: 6px; }
.vt-cap { font: 600 13px/16px var(--f); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin: 0; }
.vt-cap::first-letter { text-transform: uppercase; }
.vt-title { font: 800 48px/52px var(--f) !important; letter-spacing: -.035em; color: #fff; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.vt-ask { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); height: 52px; padding: 0 6px 0 18px; border-radius: 26px; color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vt-ask .svi { width: 18px; height: 18px; flex: none; }
.vt-ask input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 400 16px/1 var(--f); }
.vt-ask input::placeholder { color: rgba(255, 255, 255, .7); }
.vt-ask button { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: #000; cursor: pointer; flex: none; }
.vt-ask button .svi { width: 18px; height: 18px; stroke-width: 2.2; }
/* календарь-виджет как в iOS */
.vc-wd { font: 600 13px/16px var(--f); color: #FF453A; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.vc-d { font: 300 64px/1 var(--f); letter-spacing: -.04em; margin: 2px 0 auto; }
.vc-ev { position: relative; padding-left: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc-ev::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--ec, #FF453A); }
.vc-ev b { font: 600 14px/18px var(--f); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vc-ev span { font: 400 12px/16px var(--f); color: var(--c-text-2); }
.vc-ev.none::before { background: rgba(255, 255, 255, .3); }
/* фото-виджет */
.vw.vk-photo .vp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 35%, transparent 60%, rgba(0, 0, 0, .55)); }
.vp-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
/* дневник: кольца как в «Активности» + кнопки как в «Пункте управления» */
.vw.vk-diary { aspect-ratio: auto; }
.vdiary { display: flex; align-items: center; gap: 22px; }
.vrings { width: 150px; flex: none; } .vrings svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(255, 80, 120, .15)); }
.vrows { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vrow { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 4px 8px; margin: -4px -8px; border-radius: 12px; color: #fff; cursor: pointer; font: inherit; }
.vrow:hover { background: rgba(255, 255, 255, .06); }
.vrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); grid-row: span 2; }
.vrow-t { font: 600 15px/20px var(--f); color: var(--rc); }
.vrow-s { font: 400 13px/18px var(--f); color: var(--c-text-2); grid-column: 2; } .vrow-s b { font: 600 15px/18px var(--f); color: #fff; font-variant-numeric: tabular-nums; }
.vrow.live .vrow-t::after { content: " ● идёт"; font-size: 11px; vertical-align: 1px; animation: vblink 1.4s infinite; }
@keyframes vblink { 50% { opacity: .35; } }
.vccs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; padding-top: 20px; }
.vcc { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 0; }
.vcc-i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  font: 700 18px/1 var(--f); transition: transform .2s var(--ease), background .2s; }
.vcc:hover .vcc-i { background: rgba(255, 255, 255, .2); } .vcc:active .vcc-i { transform: scale(.9); }
.vcc-i .svi { width: 24px; height: 24px; stroke-width: 1.9; }
.vcc-t { font: 500 12px/14px var(--f); color: var(--c-text-2); white-space: nowrap; }
.vcc[data-q="left"] .vcc-i, .vcc[data-q="right"] .vcc-i { color: #FF6F92; }
.vcc[data-q="bottle"] .vcc-i { color: #FF6F92; } .vcc[data-q="sleep"] .vcc-i { color: #A5A2FF; } .vcc[data-q="wet"] .vcc-i { color: #5AC8FA; } .vcc[data-q="dirty"] .vcc-i { color: #E2B07A; }
.vcc.on .vcc-i { background: #fff; color: #000 !important; }
.vcc.next .vcc-i { box-shadow: inset 0 0 0 2px #FF6F92; } .vcc.next .vcc-t::after { content: " · дальше"; color: #FF6F92; }
/* семья, новое, скоро */
.vfam { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 2px 0; } .vfam::-webkit-scrollbar { display: none; }
.vf { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 18px; text-decoration: none; color: #fff; }
.vf:hover { background: rgba(255, 255, 255, .07); }
.vf .ds-avatar.lg { --sz: 58px; margin-bottom: 2px; font-weight: 600; }
.vf-n { font: 600 13px/16px var(--f); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-s { font: 400 11px/14px var(--f); color: var(--c-text-3); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vf-s.bd { color: #FFB340; display: inline-flex; align-items: center; gap: 3px; } .vf-s.bd .svi { width: 11px; height: 11px; }
.vnews, .vsoon { display: flex; flex-direction: column; gap: 2px; }
.vn { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; text-decoration: none; color: #fff; }
.vn:hover, .vs-row:hover { background: rgba(255, 255, 255, .06); }
.vn-i { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; overflow: hidden; font-size: 18px; }
.vn-i .svi { width: 20px; height: 20px; } .vn-i.ph img { width: 100%; height: 100%; object-fit: cover; }
.vn-m { display: flex; flex-direction: column; min-width: 0; } .vn-m b { font: 600 15px/20px var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-m span { font: 400 13px/18px var(--f); color: var(--c-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-row { display: grid; grid-template-columns: 4px 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; text-decoration: none; color: #fff; }
.vs-row i { width: 4px; height: 30px; border-radius: 2px; background: var(--ec); }
.vs-t { font: 500 15px/20px var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vs-w { font: 400 13px/18px var(--f); color: var(--c-text-2); white-space: nowrap; }

@media (max-width: 1180px) and (min-width: 901px) { .vhome { gap: 16px; } .vw { padding: 16px; } .vw-big { font-size: 44px; } }
@media (max-width: 900px) {
  .vhome { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .vw { padding: 14px 16px; border-radius: 24px; }
  .vw.row2 { grid-row: auto; }
  .vw.vk-today { min-height: 300px; border-radius: 28px; } .vt-in { padding: 20px 18px 18px; } .vt-title { font-size: 34px !important; line-height: 38px !important; }
  .vt-ask { height: 48px; } .vt-ask input { font-size: 15px; }
  .vw-big { font-size: 44px; } .vc-d { font-size: 52px; }
  .vrings { width: 118px; } .vdiary { gap: 16px; }
  .vcc-i { width: 52px; height: 52px; }
  .vw-ico { width: 48px; height: 48px; border-radius: 13px; } .vw:not(.span2):not(.span4) { min-height: 172px; }
}
:root[data-ui="vision"] .vw-link { color: #64B5FF; }
.vd-sum { margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .07); color: #fff; font: inherit; cursor: pointer; text-align: left; }
.vk-diary .vd-sum { margin-top: 18px; } .vk-diary > #vdiary { display: flex; flex-direction: column; flex: 1; } .vk-diary > #vdiary .vd-sum { margin-top: auto; }
.vk-diary > #vdiary .vccs { margin-bottom: 18px; }
.vd-sum span { font: 600 13px/18px var(--f); color: var(--c-text-3); } .vd-sum b { flex: 1; font: 500 14px/18px var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-sum .svi { width: 16px; height: 16px; color: var(--c-text-3); } .vd-sum:hover { background: rgba(255, 255, 255, .11); }

/* ===== 3D-иконки разделов (картинки Midjourney поверх цветной плитки) ===== */
:root[data-ui="vision"] .nav-item .ni, :root[data-ui="vision"] .more-grid a .mi { position: relative; overflow: hidden; }
:root[data-ui="vision"] .nav-item .ni { width: 30px; height: 30px; border-radius: 8px; }
.ni img, .mi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.58); }
.ni.pic, .mi.pic { background: #1c1c26 !important; } .ni.pic .svi, .mi.pic .svi { display: none; }
:root[data-ui="vision"] .more-grid a .mi { width: 52px; height: 52px; border-radius: 14px; background: var(--tile); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
:root[data-ui="vision"] .more-grid a .mi .svi { width: 26px; height: 26px; color: #fff; }

/* ===== маленькие виджеты: картина во весь блок, текст поверх затемнения снизу ===== */
.vk-small { justify-content: space-between; }
.vw-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; transition: transform .6s var(--ease); }
a.vw:hover .vw-scene { transform: scale(1.05); }
.vw-sshade { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .78) 100%); }
.vk-small.has-scene .vw-sshade { opacity: 1; }
.vw-sv { position: relative; z-index: 1; margin-top: auto; display: flex; flex-direction: column; }
.vk-small.has-scene .vw-foot, .vk-small.has-scene .vw-unit { color: rgba(255, 255, 255, .8); }
.vk-small.has-scene .vw-big { text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.vk-small .vw-ico { display: none; }

/* ===== ИИ-помощник: отдельный виджет под баннером — сфера + живая сводка дня + поле вопроса ===== */
.vt-in { display: flex !important; flex-direction: column; gap: 6px !important; }
.vt-left { display: flex; flex-direction: column; gap: 6px; }
.vt-left .vt-title { margin: 0 !important; }
.vw.vk-today { min-height: 320px !important; }
.vw.vk-ai { flex-direction: row; gap: 28px; align-items: center; padding: 26px 28px; border-radius: 30px; overflow: visible;
  background: radial-gradient(120% 140% at 0% 50%, rgba(120, 90, 255, .2), transparent 50%), radial-gradient(80% 120% at 100% 0%, rgba(60, 140, 255, .12), transparent 60%), var(--glass) !important; }
.vw.vk-ai::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(190, 160, 255, .8), rgba(120, 180, 255, .8), transparent); }
.aix-orbw { position: relative; width: 150px; height: 150px; flex: none; }
.aix-orbw::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(circle, rgba(150, 110, 255, .55), rgba(80, 140, 255, .22) 45%, transparent 70%);
  filter: blur(10px); opacity: .8; transition: opacity .5s, transform .8s var(--ease); }
.aix-orb { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; transform: scale(1.25); transition: transform .9s var(--ease), filter .5s; }
.vk-ai:hover .aix-orb, .vk-ai:focus-within .aix-orb { transform: scale(1.32) rotate(10deg); filter: brightness(1.15) saturate(1.25); }
.vk-ai:hover .aix-orbw::before, .vk-ai:focus-within .aix-orbw::before { opacity: 1; transform: scale(1.12); }
@keyframes aix-think { 0% { transform: scale(1.3) rotate(0); } 100% { transform: scale(1.5) rotate(200deg); filter: brightness(1.4) saturate(1.4); } }
.vk-ai.thinking .aix-orb, .aix.thinking .aix-orb { animation: aix-think .45s var(--ease) forwards; }
.aix-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aix-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aix-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 12px; font: 700 11px/1 var(--f); letter-spacing: .06em; text-transform: uppercase;
  color: #E6DCFF; background: linear-gradient(90deg, rgba(140, 110, 255, .35), rgba(90, 150, 255, .28)); box-shadow: inset 0 0 0 1px rgba(200, 180, 255, .35); }
.aix-badge .svi { width: 13px; height: 13px; }
.aix-hint { font: 400 13px/18px var(--f); color: rgba(255, 255, 255, .5); }
@keyframes aix-w { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
.aix-brief { margin: 14px 0 0; font: 500 22px/32px var(--f); letter-spacing: -.02em; color: rgba(255, 255, 255, .92); max-width: 820px; }
.aix-brief .w { display: inline; animation: aix-w .7s var(--ease) both; }
.aix-brief em { font-style: normal; font-weight: 600; background: linear-gradient(95deg, #E8DDFF, #A9BEFF 60%, #FFC2E3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aix-mem { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 400 13px/18px var(--f); color: rgba(255, 255, 255, .5); }
.aix-mem b { color: rgba(255, 255, 255, .85); font-weight: 500; } .aix-mem .svi { width: 15px; height: 15px; color: #B9AEFF; }
.aix-form { display: flex; align-items: center; gap: 6px; height: 56px; margin-top: 18px; padding: 0 6px 0 18px; border-radius: 18px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: box-shadow .25s, background .25s; }
.aix-form:focus-within { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(170, 150, 255, .7), 0 0 0 5px rgba(140, 120, 255, .15); }
.aix-form input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: 500 16px/1 var(--f); }
.aix-form input::placeholder { color: rgba(255, 255, 255, .45); }
.aix-mic, .aix-go { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.aix-mic { color: rgba(255, 255, 255, .75) !important; background: transparent; } .aix-mic:hover { background: rgba(255, 255, 255, .1); }
.aix-go { background: linear-gradient(135deg, #8B7BFF, #5B8CFF); color: #fff; box-shadow: 0 8px 20px -8px rgba(110, 120, 255, .9); } .aix-go:hover { transform: scale(1.06); }
.aix-go .svi, .aix-mic .svi { width: 20px; height: 20px; } .aix-go .svi { stroke-width: 2.3; }
@media (max-width: 1180px) { .aix-orbw { width: 110px; height: 110px; } .aix-brief { font-size: 19px; line-height: 28px; } }
@media (max-width: 900px) {
  .vw.vk-today { min-height: 260px !important; }
  .vw.vk-ai { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; padding: 18px 16px; border-radius: 26px; }
  .aix-orbw { width: 64px; height: 64px; grid-row: 1; align-self: center; } .aix-orbw::before { inset: -12px; }
  .aix-body { display: contents; }
  .aix-top { grid-column: 2; flex-direction: column; align-items: flex-start; gap: 4px; } .aix-hint { font-size: 12px; line-height: 16px; }
  .aix-brief { grid-column: 1 / -1; font-size: 18px; line-height: 26px; margin-top: 14px; }
  .aix-mem { grid-column: 1 / -1; }
  .aix-form { grid-column: 1 / -1; height: 50px; margin-top: 14px; min-width: 0; } .aix-form input { font-size: 15px; } .aix-mic { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aix-orb, .aix-orbw::before { transition: none; } .aix-brief .w { animation: none; } }
.vt-in { gap: 4px; } .vw.vk-today { min-height: 400px; }

/* ===== дневник: графики вместо кнопок ===== */
.vchart, .vweek { margin-top: 18px; }
.vchart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font: 600 13px/18px var(--f); color: var(--c-text-2); }
.vleg { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font: 400 12px/16px var(--f); color: var(--c-text-3); }
.vleg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: -6px; }
.vtl { width: 100%; height: 78px; display: block; overflow: visible; }
.v-track { fill: rgba(255, 255, 255, .05); } .v-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; } .v-now { stroke: #FF453A; stroke-width: 2; }
.v-tick { fill: rgba(235, 235, 245, .42); font: 500 11px var(--f); } .v-tick.on { fill: #fff; font-weight: 700; }
.vwk { width: 100%; height: 100px; display: block; }
.vweek-avg { font: 400 12px/16px var(--f); color: var(--c-text-3); } .vweek-avg b { color: #fff; font-weight: 600; }
.vd-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; }
.vd-foot .vd-sum { margin: 0; flex: 1; min-width: 0; }
.vd-add { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px 0 14px; border-radius: 22px; border: 0; cursor: pointer; flex: none;
  background: #fff; color: #000; font: 600 15px/1 var(--f); transition: transform .2s var(--ease); }
.vd-add:hover { transform: scale(1.04); } .vd-add .svi { width: 18px; height: 18px; stroke-width: 2.4; }
.vk-diary > #vdiary .vccs { display: none; }
/* шторка «Записать» — как «Пункт управления» */
.vccs.big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; padding: 4px 0 8px; }
.vccs.big .vcc-i { width: 64px; height: 64px; font-size: 20px; } .vccs.big .vcc-i .svi { width: 28px; height: 28px; }
.vccs.big .vcc-t { font-size: 13px; color: rgba(255, 255, 255, .8); } a.vcc { text-decoration: none; color: #fff; }
/* рост и вес */
.vk-grow { min-height: 0; }
.vg-top { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.vg-top div { display: flex; align-items: baseline; gap: 4px; } .vg-top b { font: 700 34px/1 var(--f); letter-spacing: -.03em; } .vg-top span { font: 500 15px/1 var(--f); color: var(--c-text-2); }
.vg-top .vw-foot { margin: 0; flex-basis: 100%; }
.vg-chart { margin-top: auto; padding-top: 10px; } .vgrowth { width: 100%; height: 110px; display: block; overflow: visible; }
/* «Новое в семье» во всю ширину — карточками в ряд */
.vw.span4.vk-news .vnews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vw.span4.vk-news .vn { margin: 0; padding: 12px; background: rgba(255, 255, 255, .05); border-radius: 16px; }
@media (max-width: 900px) {
  .ai { padding: 12px 12px 12px 16px; } .ai input { font-size: 17px; height: 40px; } .ai-go { width: 40px; height: 40px; } .ai-mic { display: none; }
  .ai-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; } .ai-chips::-webkit-scrollbar { display: none; }
  .ai-chips button { flex: none; }
  .vw.vk-today { min-height: 360px; }
  .vw.span4.vk-news .vnews { grid-template-columns: minmax(0, 1fr); } .vw.span4.vk-news .vn { background: none; padding: 8px; margin: 0 -8px; }
  .vd-add { padding: 0 14px 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .ai-orb i { animation: none; } }
html[data-ui="vision"], :root[data-ui="vision"] body { overflow-x: clip; }

/* ===== меню: монохром — тонкие белые значки без плиток, выбранный пункт — светлая плашка ===== */
:root[data-ui="vision"] .nav-item .ni { width: 22px; height: 22px; background: none !important; box-shadow: none !important; border-radius: 0; }
:root[data-ui="vision"] .nav-item .ni img { display: none !important; }
:root[data-ui="vision"] .nav-item .ni .svi { display: block !important; width: 20px; height: 20px; color: rgba(255, 255, 255, .55) !important; stroke-width: 1.7; }
:root[data-ui="vision"] .nav-item { color: rgba(255, 255, 255, .64); font-weight: 500; gap: 12px; padding: 0 12px; }
:root[data-ui="vision"] .nav-item:hover { color: #fff; } :root[data-ui="vision"] .nav-item:hover .ni .svi { color: rgba(255, 255, 255, .85) !important; }
:root[data-ui="vision"] .nav-item.on { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important; }
:root[data-ui="vision"] .nav-item.on .ni .svi { color: #fff !important; }
:root[data-ui="vision"] .more-grid a .mi { background: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
:root[data-ui="vision"] .more-grid a .mi img { display: none !important; } :root[data-ui="vision"] .more-grid a .mi .svi { display: block !important; color: rgba(255, 255, 255, .85) !important; stroke-width: 1.7; }
@media (max-width: 900px) { .ai-ttl span:last-child { display: none; } .ai-ttl { font-size: 13px; } }

/* ===== сфера на главной — кнопка запуска помощника ===== */
.aix-orbw { border: 0; background: none; padding: 0; cursor: pointer; }
.aix-tap { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 3px 9px; border-radius: 10px; font: 600 11px/14px var(--f); color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.aix-orbw:hover .aix-tap { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.aix-orbw:active .aix-orb { transform: scale(1.15); }
#askq { cursor: pointer; }

/* ===== полноэкранный помощник ===== */
html.aio-open { overflow: hidden; }
.aio { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: #fff; font-family: var(--f); }
.aio-bg { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(60, 40, 140, .55), rgba(4, 4, 12, .88)); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  opacity: 0; transition: opacity .45s ease; }
.aio.in .aio-bg { opacity: 1; } .aio.out .aio-bg { opacity: 0; }
/* свечение по краям экрана, как у Siri: вспыхивает при открытии и пока помощник думает или слушает */
@property --aio-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes aio-spin { to { --aio-a: 360deg; } }
.aio-edge { position: absolute; inset: 0; pointer-events: none; padding: 3px; opacity: 0; transition: opacity .6s ease;
  background: conic-gradient(from var(--aio-a), #5E5CE6, #BF5AF2, #FF375F, #FF9F0A, #64D2FF, #5E5CE6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: blur(6px); animation: aio-spin 4s linear infinite; }
.aio.in .aio-edge { animation: aio-spin 4s linear infinite, aio-flash 1.4s ease-out both; }
@keyframes aio-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .25; } }
.aio.thinking .aio-edge, .aio.listening .aio-edge { opacity: 1 !important; animation-duration: 2s, 0s; }
.aio.out .aio-edge { opacity: 0 !important; }
.aio-x { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); opacity: 0; transition: opacity .4s .2s, background .2s; z-index: 2; } .aio-x:hover { background: rgba(255, 255, 255, .2); } .aio-x .svi { width: 20px; height: 20px; }
.aio.in .aio-x { opacity: 1; } .aio.out .aio-x { opacity: 0; transition-delay: 0s; }
.aio-stage { position: relative; z-index: 1; width: min(680px, calc(100vw - 32px)); max-height: 100vh; padding: 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.aio-orb { --lvl: 0; position: relative; width: 190px; height: 190px; flex: none; transition: width .5s var(--ease), height .5s var(--ease); }
.aio-orb img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; transform: scale(calc(1.25 + var(--lvl) * .35)); transition: transform .12s linear; animation: aio-breathe 5s ease-in-out infinite; }
@keyframes aio-breathe { 50% { filter: brightness(1.12) saturate(1.15); } }
.aio-glow { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(150, 110, 255, .55), rgba(80, 140, 255, .2) 45%, transparent 70%);
  filter: blur(12px); transform: scale(calc(1 + var(--lvl) * .6)); transition: transform .12s linear; }
.aio-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(190, 170, 255, .0); }
@keyframes aio-spinorb { to { transform: rotate(360deg) scale(1.3); } }
@keyframes aio-ping { 0% { transform: scale(.9); opacity: .8; border-color: rgba(190, 170, 255, .7); } 100% { transform: scale(1.5); opacity: 0; } }
.aio.thinking .aio-orb img { animation: aio-spinorb 2.4s linear infinite; }
.aio.thinking .aio-ring, .aio.listening .aio-ring { animation: aio-ping 1.4s ease-out infinite; }
.aio-hello { margin: 18px 0 0; min-height: 40px; font: 700 32px/40px var(--f); letter-spacing: -.03em;
  background: linear-gradient(95deg, #fff, #E3D6FF 50%, #BCCBFF); -webkit-background-clip: text; background-clip: text; color: transparent; transition: font-size .4s, opacity .4s; }
.aio-hello.small { font-size: 18px; line-height: 24px; min-height: 0; opacity: .7; }
.aio-stage > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.aio.in .aio-stage > * { opacity: 1; transform: none; } .aio.in .aio-stage > .aio-orb { transition-delay: 0s; }
.aio.in .aio-hello { transition-delay: .15s; } .aio.in .aio-form { transition-delay: .25s; } .aio.in .aio-foot { transition-delay: .35s; }
.aio.out .aio-stage > * { opacity: 0; transform: translateY(10px) scale(.98); transition-delay: 0s; }
.aio-thread { width: 100%; max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; text-align: left; scrollbar-width: thin; }
.aio-thread:empty { display: none; }
.aio-q { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: rgba(255, 255, 255, .14); font: 500 15px/21px var(--f); }
.aio-a { padding: 4px 2px; font: 400 17px/26px var(--f); color: rgba(255, 255, 255, .92); }
.aio-a p { margin: 0 0 10px; } .aio-a ul, .aio-a ol { margin: 0 0 10px; padding-left: 22px; } .aio-a b, .aio-a strong { color: #fff; }
@keyframes aio-rv { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.aio-a .rv { animation: aio-rv .6s var(--ease) both; }
.aio-saved { font: 500 13px/18px var(--f) !important; color: #9FE6B8 !important; margin-top: 4px !important; }
.aio-dots { display: inline-flex; gap: 6px; padding: 8px 0; } .aio-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: aio-dot 1.2s ease-in-out infinite; }
.aio-dots i:nth-child(2) { animation-delay: .15s; } .aio-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aio-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.aio-form { width: 100%; display: flex; align-items: center; gap: 8px; height: 62px; margin-top: 20px; padding: 0 8px 0 22px; border-radius: 31px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.aio-form:focus-within { box-shadow: inset 0 0 0 1.5px rgba(180, 160, 255, .7), 0 0 0 6px rgba(140, 120, 255, .16), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.aio-form input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: 500 18px/1 var(--f); }
.aio-form input::placeholder { color: rgba(255, 255, 255, .5); }
.aio-mic, .aio-go { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.aio-mic { background: rgba(255, 255, 255, .12); color: #fff; } .aio-mic:hover { background: rgba(255, 255, 255, .2); }
.aio-mic.on { background: #FF375F; animation: aio-mic 1.2s ease-in-out infinite; } @keyframes aio-mic { 50% { box-shadow: 0 0 0 8px rgba(255, 55, 95, .25); } }
.aio-go { background: #fff; color: #000; } .aio-go:hover { transform: scale(1.06); }
.aio-mic .svi, .aio-go .svi { width: 21px; height: 21px; } .aio-go .svi { stroke-width: 2.3; }
.aio-foot { width: 100%; display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; padding: 0 8px; font: 400 13px/18px var(--f); color: rgba(255, 255, 255, .5); }
.aio-all { display: inline-flex; align-items: center; gap: 2px; color: rgba(255, 255, 255, .7) !important; text-decoration: none; white-space: nowrap; } .aio-all .svi { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .aio-orb { width: 150px; height: 150px; } .aio-hello { font-size: 26px; line-height: 32px; }
  .aio-form { height: 56px; } .aio-form input { font-size: 16px; } .aio-foot { flex-direction: column; align-items: center; gap: 6px; }
  .aio-x { top: max(14px, env(safe-area-inset-top)); right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .aio-edge, .aio-orb img, .aio-ring { animation: none !important; } }
.aio-stage { height: 100vh; height: 100dvh; box-sizing: border-box; justify-content: center; }
.aio.chatting .aio-stage { justify-content: flex-end; padding-bottom: max(28px, env(safe-area-inset-bottom)); padding-top: 72px; }
.aio.chatting .aio-orb { width: 96px; height: 96px; }
.aio.chatting .aio-hello { display: none; }
.aio.chatting .aio-thread { flex: 1 1 auto; max-height: none; min-height: 0; margin-top: 14px; }
@media (max-width: 900px) { .aio.chatting .aio-orb { width: 72px; height: 72px; } }
.aio-thread > :first-child { margin-top: auto; }

/* ===== плавающая сфера ИИ-помощника ===== */
.aifab { position: fixed; right: 28px; bottom: 28px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.aifab-orb { pointer-events: auto; position: relative; width: 64px; height: 64px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .35s var(--ease); }
.aifab-orb:hover { transform: scale(1.08); } .aifab-orb:active { transform: scale(.94); }
.aifab-orb img { position: relative; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 66%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 66%); animation: fab-float 6s ease-in-out infinite; }
@keyframes fab-float { 0%, 100% { transform: scale(1.3) translateY(0) rotate(0); } 50% { transform: scale(1.36) translateY(-4px) rotate(8deg); filter: brightness(1.15) saturate(1.2); } }
.aifab-halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(160, 120, 255, .6), rgba(80, 150, 255, .25) 45%, transparent 70%);
  filter: blur(10px); animation: fab-halo 3.2s ease-in-out infinite; }
@keyframes fab-halo { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.1); } }
.aifab-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(200, 180, 255, .55); opacity: 0; animation: fab-ring 4.8s ease-out infinite 1s; }
@keyframes fab-ring { 0% { opacity: .9; transform: scale(.95); } 40% { opacity: 0; transform: scale(1.55); } 100% { opacity: 0; transform: scale(1.55); } }
/* искорки вокруг сферы */
.aifab .sp { position: absolute; width: 10px; height: 10px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), linear-gradient(#fff, #fff) center / 2px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
  filter: drop-shadow(0 0 4px #C7B5FF); animation: fab-sp 5s ease-in-out infinite; }
.aifab .s1 { top: -6px; left: 8px; animation-delay: .4s; } .aifab .s2 { top: 10px; right: -10px; width: 7px; height: 7px; animation-delay: 1.6s; }
.aifab .s3 { bottom: 2px; left: -10px; width: 8px; height: 8px; animation-delay: 2.9s; } .aifab .s4 { bottom: -8px; right: 14px; width: 6px; height: 6px; animation-delay: 3.8s; }
@keyframes fab-sp { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: 0; transform: scale(.5) rotate(90deg); } }
/* подсказка-облачко над сферой */
.aifab-tip { pointer-events: auto; cursor: pointer; position: relative; max-width: 270px; padding: 12px 14px; border-radius: 18px 18px 6px 18px; text-align: left; color: #fff;
  background: rgba(30, 26, 54, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(200, 180, 255, .3), 0 20px 40px -16px rgba(0, 0, 0, .8), 0 0 30px -10px rgba(150, 120, 255, .6);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.aifab-tip b { display: block; font: 700 14px/18px var(--f); margin-bottom: 3px; } .aifab-tip span { font: 400 13px/18px var(--f); color: rgba(255, 255, 255, .78); }
.aifab.tip .aifab-tip, .aifab:hover .aifab-tip { opacity: 1; transform: none; pointer-events: auto; }
html.aio-open .aifab { opacity: 0; pointer-events: none; transition: opacity .2s; }
@media (max-width: 900px) {
  .aifab { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .aifab-orb { width: 56px; height: 56px; } .aifab-tip { max-width: 230px; }
  .aifab:hover .aifab-tip { opacity: 0; } .aifab.tip .aifab-tip { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .aifab-orb img, .aifab-halo, .aifab-ring, .aifab .sp { animation: none; } }
/* сводка дня внутри помощника */
.aio-brief { width: 100%; margin-top: 18px; padding: 16px 18px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.aio-brief p { margin: 0 0 6px; font: 400 16px/24px var(--f); color: rgba(255, 255, 255, .88); animation: aio-rv .6s var(--ease) both; }
.aio-brief p:nth-child(2) { animation-delay: .35s; } .aio-brief p:nth-child(3) { animation-delay: .7s; } .aio-brief p:nth-child(4) { animation-delay: 1s; }
.aio-brief p:last-child { margin: 0; }
.aio-brief em { font-style: normal; font-weight: 600; background: linear-gradient(95deg, #E8DDFF, #A9BEFF 60%, #FFC2E3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aio-brief .aio-mem { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 8px; } .aio-brief .aio-mem .svi { width: 14px; height: 14px; color: #B9AEFF; }
.aio.in .aio-brief { transition-delay: .2s; }

/* картинка сферы на чёрном фоне: края растворяем маской (режим «экран» внутри фиксированного слоя не работает и давал чёрный ореол) */
.aio-orb img, .aix-orb { mix-blend-mode: normal !important; border-radius: 0 !important;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 66%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 66%); }
/* спрятать / показать сферу */
.aifab-x { pointer-events: auto; position: absolute; right: -4px; bottom: 46px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgba(40, 36, 64, .95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 4px 10px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s var(--ease); z-index: 2; }
.aifab-x .svi { width: 12px; height: 12px; stroke-width: 2.4; }
.aifab:hover .aifab-x { opacity: 1; transform: none; }
.aifab-pill { pointer-events: auto; display: none; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 10px; border-radius: 17px; border: 0; cursor: pointer; color: #fff; font: 700 12px/1 var(--f); letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(120, 100, 255, .9), rgba(80, 140, 255, .85)); box-shadow: 0 8px 20px -8px rgba(110, 120, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.aifab-pill .svi { width: 15px; height: 15px; }
.aifab.min .aifab-orb, .aifab.min .aifab-tip, .aifab.min .aifab-x { display: none; } .aifab.min .aifab-pill { display: inline-flex; animation: ds-in .3s var(--ease) both; }
@media (max-width: 900px) { .aifab-x { opacity: .9; transform: none; bottom: 40px; } }

/* ===== установка приложения: плашка, инструкция, код, новая версия ===== */
.ibar { position: fixed; left: 50%; top: 12px; z-index: 150; display: flex; align-items: center; gap: 12px; width: min(560px, calc(100vw - 24px)); padding: 10px 10px 10px 12px;
  border-radius: 20px; background: rgba(28, 26, 46, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 40px -16px rgba(0, 0, 0, .8);
  transform: translate(-50%, -140%); transition: transform .45s var(--ease); color: #fff; }
.ibar.in { transform: translate(-50%, 0); }
.ibar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.ibar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ibar-t b { font: 600 14px/18px var(--f); } .ibar-t span { font: 400 12px/16px var(--f); color: rgba(255, 255, 255, .6); }
.ibar-go { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: #fff; color: #000; font: 600 13px/1 var(--f); cursor: pointer; flex: none; }
.ibar-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; } .ibar-x .svi { width: 14px; height: 14px; }
.ig-tabs { margin: 4px 0 14px; }
.ig { display: flex; flex-direction: column; gap: 12px; }
.ig-step { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.ig-step img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; background: #111; }
.ig-step div { display: flex; flex-direction: column; gap: 3px; } .ig-step i { font: 700 12px/1 var(--f); font-style: normal; color: #B9AEFF; }
.ig-step b { font: 600 15px/20px var(--f); } .ig-step span { font: 400 13px/18px var(--f); color: rgba(255, 255, 255, .6); }
.code-big { margin: 14px 0; text-align: center; font: 700 40px/1 var(--f); letter-spacing: .25em; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.vbar { position: fixed; left: 50%; bottom: 24px; z-index: 160; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 24px; color: #fff;
  background: rgba(28, 26, 46, .95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 40px -16px rgba(0, 0, 0, .8); transform: translate(-50%, 160%); transition: transform .45s var(--ease); font: 500 14px/1 var(--f); }
.vbar.in { transform: translate(-50%, 0); } .vbar button { height: 34px; padding: 0 16px; border-radius: 17px; border: 0; background: #0A84FF; color: #fff; font: 600 13px/1 var(--f); cursor: pointer; }
@media (max-width: 900px) { .vbar { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.login-tg { width: 100%; margin-top: 8px; text-decoration: none; }
/* v52: во время экскурсии — ни плашки, ни сферы (бабушке по одной вещи за раз) */
body:has(.tour) .aifab, body:has(.tour) .ibar, body:has(#sheet-root .sheet) .aifab { visibility: hidden; }

/* ===== v55 «Сцена» на остальных экранах: картина-шапка + затемнение под текст ===== */
.card.hero, .phero, .scband { position: relative; overflow: hidden; isolation: isolate; }
.scart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.scfade { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s ease; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 8, 26, .94) 0%, rgba(6, 8, 26, .72) 34%, rgba(6, 8, 26, .18) 72%, rgba(6, 8, 26, .05) 100%); }
.has-art > .scart, .has-art > .scfade { opacity: 1; }
.has-art > .hero-deco { display: none; }
.scband { min-height: 184px; display: flex; align-items: flex-end; padding: var(--s6); margin-bottom: var(--s5); border-radius: var(--r-xl); }
.scband .scin { max-width: 560px; display: flex; flex-direction: column; gap: var(--s1); }
.scband .ds-cap, .phero.has-art .ds-cap, .card.hero.has-art .eyebrow { color: #C9CFFF; }
.scband.has-art .ds-h1, .scband.has-art .ds-h2, .phero.has-art .ds-h1, .card.hero.has-art h2 { color: #fff; text-shadow: 0 2px 18px rgba(6, 8, 26, .55); }
.scband.has-art .ds-muted, .phero.has-art .ds-muted, .card.hero.has-art .age { color: rgba(236, 238, 255, .78); }
.scband.slim { min-height: 128px; padding: var(--s5) var(--s6); }
.phero.has-art, .card.hero.has-art { min-height: 208px; }
:root[data-theme="light"] .scfade { background: linear-gradient(90deg, rgba(6, 8, 26, .9) 0%, rgba(6, 8, 26, .62) 36%, rgba(6, 8, 26, .12) 75%); }
@media (max-width: 700px) {
  .scband { min-height: 152px; padding: var(--s5); border-radius: var(--r-lg); }
  .scfade { background: linear-gradient(180deg, rgba(6, 8, 26, .1) 0%, rgba(6, 8, 26, .55) 45%, rgba(6, 8, 26, .92) 100%); }
  .chatband.has-msgs { display: none; }        /* на телефоне в начатой переписке место — сообщениям */
  .phero.has-art, .card.hero.has-art { min-height: 0; }
}

/* ===== v56: телефон — без плавающей сферы поверх контента, ровный чат ===== */
.aifab.off { display: none !important; }
@media (max-width: 900px) {
  .aifab { display: none !important; }             /* на телефоне помощник — центральная кнопка «Спросить» в меню */
  .chatband { display: none; }                     /* в чате место — сообщениям */
  .chat { min-height: 0; }
}
.bubble .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble .acts button { white-space: nowrap; flex: none; }

/* ===== v57: мобильная версия — воздух, крупнее мелочи, без «коробки в коробке», без обрезанных строк ===== */
@media (max-width: 700px) {
  /* воздух между блоками */
  :root[data-look] .main { padding: var(--s3) 16px 136px; }
  .vhome { gap: 16px; }
  .vw { padding: 18px !important; border-radius: 26px; }
  .vw:not(.span2):not(.span4) { min-height: 188px; }
  :root[data-look] .topbar { margin-bottom: var(--s5); }
  .ds-card + .ds-card, .card + .card { margin-top: 4px; }

  /* мелкий текст — не меньше 12 px */
  .vf-s, :root[data-look] .ds-badge, .dtile small, .qb small, small { font-size: 12px !important; }
  :root[data-ui="vision"] .tab, :root[data-look] .tab { font-size: 11px; }

  /* строки не режем многоточием — переносим (максимум 2 строки) */
  .vk-fam .vd-sum b, .vf-s, :root[data-look] .ds-item-title, :root[data-look] .ds-item-meta {
    white-space: normal !important; text-overflow: clip !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .vf-s { -webkit-line-clamp: 2; max-width: 84px; }
  .vfam { scrollbar-width: none; } .vfam::-webkit-scrollbar { display: none; }
  .vfam .vf { flex: 1 1 0 !important; width: auto !important; min-width: 72px !important; }           /* до 4 человек — ровно в ширину, больше — листаются */
  .vf-s { max-width: none; }

  .vk-diary .vd-sum > span:first-child { display: none; }   /* «Сегодня» лишнее рядом с кнопкой «Записать» */
  /* малыш: дневник без лишней рамки — плитки во всю ширину */
  .card.diary { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .dtiles { gap: 10px; }
  :root[data-look] .qbar { gap: 10px; margin: 14px 0 6px; }
  :root[data-look] .qb { min-height: 72px; justify-content: center; font-size: 13px; }
  :root[data-look] .dhead { flex-wrap: wrap; row-gap: 2px; margin-top: var(--s6); }
  :root[data-look] .dhead .small { order: 3; flex-basis: 100%; }

  /* вкладки малыша помещаются целиком, без прокрутки вбок */
  .btabs-wrap .ds-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .btabs-wrap .ds-tab { padding: 0 4px; justify-content: center; font-size: 13px; height: 40px; }
  .btabs-wrap .ds-tab .svi { display: none; }

  /* календарь: шапка-сцена компактнее, ближайшее событие в 2 строки */
  .scband .ds-h1 { font: 700 24px/30px var(--f) !important; }
  .scband .ds-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .calx { gap: 16px; }
}

/* ===== v58: общие выводы и обсуждения ===== */
.insight-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; padding: 8px 12px; border-radius: 16px;
  background: rgba(255, 196, 61, .10) !important; color: #FFE29A !important; font: 600 13px/18px var(--f); }
.insight-chip a { color: inherit; }
.sharebtn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sharebtn .svi { width: 15px; height: 15px; }
.insight-chip .sharebtn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 214, 102, .45); background: rgba(255, 196, 61, .14);
  color: #FFE29A; font: 600 13px/1 var(--f); cursor: pointer; }
.bubble .acts .sharebtn { color: #FFE29A !important; border-color: rgba(255, 214, 102, .4) !important; background: rgba(255, 196, 61, .12) !important; }
.sharedone { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: #8EF0A8 !important; font: 600 12px/1 var(--f); }

.cmts { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c-border, rgba(255,255,255,.08)); display: flex; flex-direction: column; gap: 10px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt .ds-avatar { flex: none; }
.cmt-b { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: rgba(255, 255, 255, .06); font: 400 14px/20px var(--f); position: relative; }
.cmt-b b { font-weight: 650; } .cmt-b .faint { font-size: 12px; }
.cmt-b > div { white-space: pre-line; overflow-wrap: anywhere; }
.cmt-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--c-text-3, #999); cursor: pointer; display: grid; place-items: center; }
.cmt-x .svi { width: 12px; height: 12px; }
.cmt-form { display: flex; gap: 8px; align-items: center; }
.cmt-form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--c-border, rgba(255,255,255,.1)); background: rgba(10, 14, 38, .55);
  color: var(--c-text, #fff); font: 400 15px/1 var(--f); }
.cmt-form input:focus { outline: none; border-color: var(--c-accent, #7C8CFF); }
.cmt-form button { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--c-accent, #7C8CFF); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cmt-form button .svi { width: 18px; height: 18px; }
.feed-item.insight .feed-body .muted { white-space: pre-line; }

.fgrp { margin-bottom: var(--s5, 20px); display: flex; flex-direction: column; gap: 14px; }
.fgrp-h { display: flex; align-items: center; gap: 10px; } .fgrp-h .ds-h2 { flex: 1; margin: 0; }
.fgrp-i { font-size: 22px; }
.fdig { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 196, 61, .14), rgba(124, 140, 255, .1)); border: 1px solid rgba(255, 214, 102, .25); }
.fdig-t { white-space: pre-line; font: 400 15px/22px var(--f); }
.fins { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--c-border, rgba(255,255,255,.08)); }
.fins-h { display: flex; align-items: center; gap: 10px; } .fins-h > div { flex: 1; min-width: 0; }
.fins-t { margin-top: 8px; white-space: pre-line; font: 400 14px/21px var(--f); color: var(--c-text-2, #cfd3ea); }
.fgrp.mine { opacity: .95; }
@media (max-width: 700px) { .fins { padding: 12px 14px; } .fdig { padding: 12px 14px; } }

/* ===== v59: телефон — нижнее меню, «Ещё» списком, единая шкала шрифтов ===== */
@media (max-width: 900px) {
  /* нижнее меню: плотная плашка; активный пункт — аккуратная «таблетка» под иконкой, без кривого овала */
  :root[data-ui="vision"] .tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 68px; padding: 0 4px;
    border-radius: 28px; background: rgba(16, 18, 38, .94); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
  :root[data-ui="vision"] .tab, :root[data-ui="vision"] .tab.on, :root[data-ui="vision"] .tab.center, :root[data-ui="vision"] .tab.center.on {
    height: 60px; margin: 0; padding: 0; border-radius: 0; background: none !important; box-shadow: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font: 500 11px/13px var(--f) !important; color: rgba(225, 230, 255, .58); letter-spacing: 0; white-space: nowrap; }
  :root[data-ui="vision"] .tab .ti, :root[data-ui="vision"] .tab.center .ti {
    display: grid !important; place-items: center; width: 58px !important; height: 32px !important; margin: 0 !important; border-radius: 16px !important;
    background: none !important; box-shadow: none !important; transition: background .2s ease; filter: none; opacity: 1; }
  :root[data-ui="vision"] .tab.on .ti, :root[data-ui="vision"] .tab.center.on .ti { background: rgba(124, 140, 255, .26) !important; }
  :root[data-ui="vision"] .tab.on, :root[data-ui="vision"] .tab.center.on { color: #fff; font-weight: 650 !important; }
  :root[data-ui="vision"] .tab .svi, :root[data-ui="vision"] .tab.center .svi { width: 23px; height: 23px; color: inherit !important; filter: none !important; }
  :root[data-ui="vision"] .tab.on .svi { color: #D5DBFF !important; }
  :root[data-ui="vision"] .tab:active .ti { background: rgba(255, 255, 255, .10) !important; }
  /* контент не просвечивает сквозь меню */
  :root[data-ui="vision"] body::after { display: block; content: ""; position: fixed; inset: auto 0 0 0; top: auto; left: 0; right: 0; bottom: 0; height: calc(96px + env(safe-area-inset-bottom)); z-index: 45; pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 8, 24, 0), rgba(6, 8, 24, .78) 55%, rgba(6, 8, 24, .92)); }
}
@media (max-width: 700px) {
  /* «Ещё» — компактный список как в настройках iPhone, а не крупные полупустые плитки */
  :root[data-look] .more-grid { display: flex !important; flex-direction: column; gap: 0; border-radius: 22px; overflow: hidden;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
  :root[data-look] .more-grid a { display: grid !important; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center;
    column-gap: 14px; min-height: 64px; padding: 10px 16px !important; border-radius: 0 !important; background: none !important; border: 0 !important;
    box-shadow: none !important; font: 600 16px/20px var(--f) !important; color: var(--c-text, #fff) !important; position: relative; }
  :root[data-look] .more-grid a + a::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: rgba(255, 255, 255, .07); }
  :root[data-look] .more-grid a > .mi, :root[data-look] .more-grid a > .ni { grid-row: 1 / 3; width: 40px !important; height: 40px !important; margin: 0 !important;
    border-radius: 11px !important; }
  :root[data-look] .more-grid a small { grid-column: 2; font: 400 13px/17px var(--f) !important; color: var(--c-text-3, #9aa0bd) !important; margin: 0; }
  :root[data-look] .more-grid a::after { content: "›"; grid-column: 3; grid-row: 1 / 3; font: 400 24px/1 var(--f); color: rgba(255, 255, 255, .3); }
  :root[data-look] .more-grid a:active { background: rgba(255, 255, 255, .06) !important; }

  /* единая шкала шрифтов на телефоне */
  :root[data-look] .topbar h1 { font: 700 30px/36px var(--f) !important; letter-spacing: -.02em; }
  :root[data-look] .ds-h2, .fgrp-h .ds-h2 { font: 650 19px/24px var(--f) !important; }
  :root[data-look] .ds-h3, :root[data-look] .ds-card-head .ds-h3 { font: 650 17px/22px var(--f) !important; }
  :root[data-look] .ds-body, :root[data-look] .ds-item-title, .feed-title, .fins-t, .cmt-b { font-size: 15px !important; line-height: 21px !important; }
  :root[data-look] .ds-item-meta, :root[data-look] .ds-small, .plead, .feed-head .small { font-size: 13px !important; line-height: 18px !important; }
  :root[data-look] .ds-cap, .eyebrow, .vt-cap { letter-spacing: .06em !important; }
  .plead, :root[data-look] .topbar + .muted { margin-top: -8px; }
}

/* ===== v60: спокойная премиальная отделка + «Спросить» ===== */
:root[data-ui="vision"] { --acc: #A3ACFF; --acc-ink: #0B0E2A; --amb: #FFC978; --ink: #F1F2FA; --mute: #9CA2C4; --hair: rgba(255, 255, 255, .08); }

/* кнопки: вместо ярко-синего iOS и белых «таблеток» — мягкий перванш с тёмным текстом */
:root[data-ui="vision"] .ds-btn.primary, :root[data-ui="vision"] .btn.coral, :root[data-ui="vision"] .cbtn.send, :root[data-ui="vision"] .vd-add {
  background: var(--acc) !important; color: var(--acc-ink) !important; box-shadow: none !important; border: 0 !important; font-weight: 650 !important; }
:root[data-ui="vision"] .vd-add .svi, :root[data-ui="vision"] .ds-btn.primary .svi { color: var(--acc-ink) !important; }
:root[data-ui="vision"] .vd-add { border-radius: 14px !important; }
:root[data-ui="vision"] .ds-btn.secondary { background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--hair) !important; color: var(--ink) !important; box-shadow: none !important; }

/* переключатели */
:root[data-ui="vision"] .sw { width: 48px !important; height: 28px !important; background: rgba(255, 255, 255, .16) !important; border: 0 !important; box-shadow: none !important; }
:root[data-ui="vision"] .sw::after { top: 2px !important; left: 2px !important; width: 24px !important; height: 24px !important; background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35) !important; transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
:root[data-ui="vision"] .sw.on { background: var(--acc) !important; } :root[data-ui="vision"] .sw.on::after { transform: translateX(20px) !important; }

/* сегменты (вкладки внутри страниц) */
:root[data-ui="vision"] .ds-tabs { background: rgba(255, 255, 255, .06) !important; border: 0 !important; border-radius: 12px !important; padding: 3px !important; gap: 2px !important; }
:root[data-ui="vision"] .ds-tab { border-radius: 9px !important; color: var(--mute) !important; font-weight: 600 !important; height: 34px !important; }
:root[data-ui="vision"] .ds-tab.on { background: rgba(255, 255, 255, .15) !important; color: #fff !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .3) !important; }

/* без «кричащих» заглавных: подписи обычным регистром */
:root[data-ui="vision"] .ds-cap, :root[data-ui="vision"] .eyebrow, :root[data-ui="vision"] .vt-cap, :root[data-ui="vision"] .feed-day, :root[data-ui="vision"] .nav-gl {
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 550 !important; }
:root[data-ui="vision"] .vt-cap, :root[data-ui="vision"] .eyebrow { font-size: 14px !important; color: rgba(235, 238, 255, .82) !important; }

/* нижнее меню: активная «таблетка» в тон акцента */
@media (max-width: 900px) { :root[data-ui="vision"] .tab.on .ti, :root[data-ui="vision"] .tab.center.on .ti { background: rgba(163, 172, 255, .22) !important; } }

/* ---------- «Спросить» ---------- */
.askx .msgs { gap: 24px !important; padding-top: 8px; }
.askx .bubble { animation: none; }
.askx .bubble.bot { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 2px 0 0 42px !important; max-width: min(760px, 100%) !important; position: relative; font: 400 16px/25px var(--f) !important; color: #E8EAF6 !important; }
.askx .bubble.bot::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: url(/assets/holo_center.webp?v=orb2) center / 165% no-repeat, radial-gradient(circle at 40% 35%, #A99CFF, #3A2E95 75%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 18px -4px rgba(160, 140, 255, .8); }
.askx .bubble.bot b, .askx .bubble.bot strong { color: #fff; font-weight: 650; }
.askx .bubble.bot p { margin: 0 0 10px; } .askx .bubble.bot ul, .askx .bubble.bot ol { padding-left: 20px; margin: 6px 0 10px; }
.askx .bubble.me { align-self: flex-end; background: rgba(163, 172, 255, .16) !important; border: 1px solid rgba(163, 172, 255, .26) !important; color: var(--ink) !important;
  border-radius: 20px 20px 6px 20px !important; box-shadow: none !important; font: 400 16px/23px var(--f) !important; max-width: min(560px, 82%) !important; padding: 10px 14px !important; }
.askx .bubble .acts { display: flex; align-items: center; gap: 2px; margin-top: 10px !important; margin-left: -8px; }
.askx .bubble .acts .ia { width: 36px !important; height: 36px !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: none !important;
  color: #858BB2 !important; display: grid; place-items: center; cursor: pointer; }
.askx .bubble .acts .ia:hover, .askx .bubble .acts .ia:active { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
.askx .bubble .acts .ia .svi { width: 19px; height: 19px; }
.askx .bubble .acts .ia.playing { color: var(--acc) !important; }
.ia-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--acc, #A3ACFF); animation: iaspin .8s linear infinite; }
@keyframes iaspin { to { transform: rotate(360deg); } }
.askx .bubble .acts .sharebtn { height: 32px !important; padding: 0 12px !important; margin-left: 8px; border-radius: 16px !important; font: 600 13px/1 var(--f) !important;
  color: var(--amb) !important; background: rgba(255, 201, 120, .1) !important; border: 1px solid rgba(255, 201, 120, .28) !important; }
.askx .insight-chip { margin-left: 42px; }
.askx .typing { background: none !important; box-shadow: none !important; padding: 6px 0 6px 42px !important; position: relative; }
.askx .typing::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: url(/assets/holo_center.webp?v=orb2) center / 165% no-repeat, #3A2E95; animation: askpulse 1.4s ease-in-out infinite; }
.askx .typing i { background: var(--acc) !important; }
@keyframes askpulse { 50% { box-shadow: 0 0 0 6px rgba(163, 172, 255, .14), 0 0 24px rgba(163, 172, 255, .5); } }

.askx-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px !important; padding: 28px 12px 12px !important; margin: auto; }
.askx-orb { position: relative; width: 136px; height: 136px; margin-bottom: 10px; }
.askx-orb::before { content: ""; position: absolute; inset: -28%; border-radius: 50%; background: radial-gradient(circle, rgba(150, 125, 255, .45), rgba(90, 140, 255, .14) 45%, transparent 70%); }
.askx-orb > span { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; animation: askfloat 6s ease-in-out infinite; }
.askx-orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.42); display: block; }
@keyframes askfloat { 50% { transform: translateY(-5px); } }
.askx-hello h2 { margin: 0; font: 700 28px/34px var(--f) !important; letter-spacing: -.02em; color: #fff; }
.askx-hello p { margin: 0; max-width: 360px; font: 400 15px/22px var(--f); color: var(--mute); }
.askx .suggest { display: flex !important; flex-direction: column; gap: 8px !important; width: 100%; max-width: 440px; margin: 4px auto 18px !important; }
.askx .suggest button { height: auto !important; min-height: 50px; padding: 13px 16px !important; border-radius: 16px !important; text-align: left; justify-content: flex-start;
  background: rgba(255, 255, 255, .05) !important; border: 1px solid var(--hair) !important; color: #E8EAF6 !important; font: 500 15px/20px var(--f) !important; white-space: normal; }
.askx .suggest button:active { background: rgba(163, 172, 255, .14) !important; }
.askx .composer { min-height: 56px !important; border-radius: 28px !important; padding: 6px 6px 6px 8px !important; background: rgba(18, 20, 46, .9) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8) !important; }
.askx .composer:focus-within { border-color: rgba(163, 172, 255, .55) !important; box-shadow: 0 0 0 4px rgba(163, 172, 255, .12), 0 10px 30px -12px rgba(0, 0, 0, .8) !important; }
.askx .composer textarea { font: 400 16px/22px var(--f) !important; }
.askx .cbtn { width: 44px !important; height: 44px !important; border-radius: 50% !important; color: #A9AECB !important; }
.askx #mic { background: rgba(255, 255, 255, .07) !important; color: #E8EAF6 !important; }
.askx .cbtn.send { background: var(--acc) !important; color: var(--acc-ink) !important; }
@media (prefers-reduced-motion: reduce) { .askx-orb > span, .askx .typing::before { animation: none; } }
.askx .suggest.hidden { display: none !important; }

/* ===================== v62: «Спросить», «Выводы семьи», меню — единый премиальный стиль ===================== */
/* ---------- «Спросить»: сообщения ---------- */
.askx .msgs { gap: 18px !important; }
.cday { display: flex; justify-content: center; margin: 6px 0 -4px; }
.cday span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #A6ACCD; font: 600 12px/16px var(--f); }
.askx .bubble.bot { padding: 14px 16px 10px !important; max-width: min(720px, 100%) !important; border-radius: 22px 22px 22px 8px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .045)) !important; border: 1px solid rgba(255, 255, 255, .09) !important;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9) !important; -webkit-backdrop-filter: blur(18px) !important; backdrop-filter: blur(18px) !important; }
.askx .bubble.bot::before { display: none !important; }
.bm-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bm-h b { font: 650 13px/16px var(--f); color: #CBD0F5; }
.bm-orb { width: 22px; height: 22px; border-radius: 50%; flex: none; background: url(/assets/holo_center.webp?v=orb2) center / 165% no-repeat, #3A2E95;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 14px -2px rgba(160, 140, 255, .9); }
.bm-t { margin-left: auto; font: 500 11.5px/14px var(--f); color: #7D83A8; }
.askx .bubble.bot .bm-c { font: 400 16px/25px var(--f); color: #E9EBF7; }
.askx .bubble.bot .bm-c p { margin: 0 0 10px; } .askx .bubble.bot .bm-c > :last-child { margin-bottom: 0; }
.askx .bubble.bot .bm-c ul, .askx .bubble.bot .bm-c ol { margin: 6px 0 10px; padding-left: 0; list-style: none; }
.askx .bubble.bot .bm-c li { position: relative; padding-left: 18px; margin: 4px 0; }
.askx .bubble.bot .bm-c li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); opacity: .9; }
.askx .bubble .acts { border-top: 1px solid rgba(255, 255, 255, .07); margin: 12px -6px 0 !important; padding-top: 6px; }
.askx .bubble.me { position: relative; padding: 10px 14px 18px !important; background: linear-gradient(160deg, #8F9BFF, #6F7CF4) !important; border: 0 !important;
  color: #fff !important; box-shadow: 0 12px 26px -16px rgba(110, 125, 255, .95) !important; border-radius: 22px 22px 8px 22px !important; }
.askx .bubble.me .bm-c { font: 450 16px/22px var(--f); }
.askx .bubble.me .bm-t { position: absolute; right: 12px; bottom: 5px; font-size: 10.5px; color: rgba(255, 255, 255, .7); }
.askx .insight-chip { margin-left: 0 !important; }
/* ---------- «Спросить»: пустой экран ---------- */
.askx-hello { padding: 18px 8px 6px !important; gap: 8px !important; }
.askx-orb { width: 150px !important; height: 150px !important; margin-bottom: 14px !important; }
.askx-orb::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(190, 180, 255, .22);
  box-shadow: 0 0 0 14px rgba(160, 150, 255, .05), 0 0 0 30px rgba(160, 150, 255, .03); pointer-events: none; }
.askx-k { font: 550 15px/20px var(--f); color: #B9BEE3; }
.askx-hello h2 { font: 700 32px/38px var(--f) !important; letter-spacing: -.025em; }
.askx-hello p { font-size: 15px !important; }
.askx .suggest { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; max-width: 560px; margin: 8px auto 18px !important; }
.askx .suggest button { display: flex !important; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 112px; padding: 14px !important; border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)) !important; border: 1px solid rgba(255, 255, 255, .09) !important; text-align: left; }
.sg-i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(163, 172, 255, .18); color: #D5DAFF; margin-bottom: 4px; }
.sg-i .svi { width: 18px; height: 18px; }
.sg-k { font: 600 12px/15px var(--f); color: #9CA2C4; }
.sg-q { font: 550 15px/20px var(--f); color: #F1F2FA; }
.askx .suggest button:active { transform: scale(.98); background: rgba(163, 172, 255, .14) !important; }
.askx .suggest.hidden { display: none !important; }
/* мягкое свечение сферы за чатом */
.askx::before { content: ""; position: fixed; right: -30vw; top: -10vh; width: 80vw; height: 80vw; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(120, 100, 255, .18), transparent 65%); }

/* ---------- «Выводы семьи»: галерея тем ---------- */
.tgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ttile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 30%, #3B3486, #14163A 70%); border: 1px solid rgba(255, 255, 255, .08); color: #fff !important;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .95); transition: transform .25s ease; }
.ttile:active { transform: scale(.98); }
.ttile-art, .thero > img, .tempty-art { position: absolute; inset: 0; z-index: -2; }
.ttile-art img, .thero > img, .tempty-art img { width: 100%; height: 100%; object-fit: cover; }
.ttile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 30, 0) 35%, rgba(8, 9, 30, .55) 62%, rgba(8, 9, 30, .92)); }
.ttile-in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ttile-in b { font: 700 19px/23px var(--f); letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.ttile-new { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 201, 120, .92); color: #2A1A00; font: 700 11.5px/14px var(--f); }
.tmeta { display: flex; align-items: center; gap: 8px; font: 550 13px/16px var(--f); color: rgba(235, 238, 255, .8); }
.avstack { display: inline-flex; } .avstack .ds-avatar { --sz: 24px; border: 2px solid #15173C; margin-left: -8px; font-size: 10px; }
.avstack .ds-avatar:first-child { margin-left: 0; }
.tsec { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; font: 700 21px/26px var(--f); color: #fff; }
.tsec span { font: 500 13px/16px var(--f); color: #9CA2C4; }
.tmine { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.tmine::-webkit-scrollbar { display: none; }
.tmcard { flex: 0 0 min(300px, 82%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.tmcard .tlist { max-height: 110px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.tm-k { font: 600 12px/15px var(--f); color: #9CA2C4; } .tmcard b { font: 650 16px/21px var(--f); color: #fff; }
.tmcard .sharebtn { margin-top: auto; align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(255, 201, 120, .3);
  background: rgba(255, 201, 120, .1); color: var(--amb); font: 600 13px/1 var(--f); cursor: pointer; }
.tlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tlist li { position: relative; padding-left: 16px; font: 400 15px/21px var(--f); color: #D9DCF0; }
.tlist li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--amb); }
.ttext { margin: 0; font: 400 15px/21px var(--f); color: #D9DCF0; white-space: pre-line; }
.tempty { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 10px; padding: 24px; border: 1px solid rgba(255, 255, 255, .08); }
.tempty::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(8, 9, 30, .95)); }
.tempty h2 { margin: 0; font: 700 24px/30px var(--f); color: #fff; } .tempty p { margin: 0; color: #C3C7E4; font: 400 15px/21px var(--f); }
.tempty .ds-btn { align-self: flex-start; }
/* ---------- страница темы ---------- */
.thero { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; min-height: 240px; display: flex; align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 18px; background: #191A44; }
.thero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 30, 0) 30%, rgba(8, 9, 30, .9)); }
.thero-in { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.thero-k { font: 600 13px/16px var(--f); color: #C9CEF5; } .thero h2 { margin: 0; font: 750 32px/38px var(--f); letter-spacing: -.02em; color: #fff; }
.tdig { margin-bottom: 18px; padding: 18px 20px; border-radius: 24px; background: linear-gradient(150deg, rgba(255, 201, 120, .16), rgba(163, 172, 255, .1));
  border: 1px solid rgba(255, 201, 120, .24); display: flex; flex-direction: column; gap: 10px; }
.tdig-h { display: flex; align-items: center; gap: 8px; color: var(--amb); } .tdig-h b { font: 700 16px/20px var(--f); }
.tdig-h .svi { width: 18px; height: 18px; }
.tdig-t { white-space: pre-line; font: 400 15px/22px var(--f); color: #EEF0FA; } .tdig-p { margin: 0; color: #CFD3EC; font: 400 15px/21px var(--f); }
.tdig .ds-btn { align-self: flex-start; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tcard { padding: 16px 18px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 10px; }
.tcard header { display: flex; align-items: center; gap: 10px; } .tcard header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcard header b { font: 650 14px/18px var(--f); color: #fff; } .tcard header span { font: 500 12px/16px var(--f); color: #8E94B8; }
.tcard h3 { margin: 0; font: 700 18px/23px var(--f); color: #fff; letter-spacing: -.01em; }
.tcard .heart { border: 0; background: rgba(255, 255, 255, .06); color: #A9AECB; height: 32px; min-width: 32px; padding: 0 10px; border-radius: 16px;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tcard .heart.on { color: #FF6B8B; background: rgba(255, 107, 139, .14); } .tcard .heart .svi { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .tgal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ttile { min-height: 196px; border-radius: 22px; } .ttile-in { padding: 12px 12px 14px; } .ttile-in b { font-size: 17px; line-height: 21px; }
  .tmeta { font-size: 12px; } .thero { min-height: 210px; border-radius: 24px; } .thero h2 { font-size: 28px; line-height: 33px; }
  .tcards { grid-template-columns: minmax(0, 1fr); }
  .askx .suggest button { min-height: 104px; }
}

/* ---------- нижнее меню: стекло, свечение активной иконки и световая полоска сверху ---------- */
@media (max-width: 900px) {
  :root[data-ui="vision"] .tabbar { height: 70px !important; border-radius: 30px !important; background: rgba(14, 16, 36, .78) !important;
    border: 1px solid rgba(255, 255, 255, .09) !important; -webkit-backdrop-filter: blur(28px) saturate(180%) !important; backdrop-filter: blur(28px) saturate(180%) !important;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07) !important; overflow: hidden; }
  :root[data-ui="vision"] .tab .ti, :root[data-ui="vision"] .tab.center .ti, :root[data-ui="vision"] .tab.on .ti, :root[data-ui="vision"] .tab.center.on .ti {
    background: none !important; width: 44px !important; height: 30px !important; }
  :root[data-ui="vision"] .tab { position: relative; color: rgba(215, 220, 250, .5) !important; }
  :root[data-ui="vision"] .tab .svi { width: 24px !important; height: 24px !important; stroke-width: 1.7; transition: transform .25s ease, filter .25s ease; }
  :root[data-ui="vision"] .tab.on { color: #fff !important; }
  :root[data-ui="vision"] .tab.on .svi { color: #fff !important; filter: drop-shadow(0 0 7px rgba(170, 180, 255, .95)) !important; transform: translateY(-1px); }
  :root[data-ui="vision"] .tab.on::before { content: ""; position: absolute; top: -5px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #8E9BFF, #D8C2FF); box-shadow: 0 0 14px 3px rgba(160, 170, 255, .65); }
  :root[data-ui="vision"] .tab.on::after { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 44px; margin-left: -32px; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(150, 160, 255, .28), transparent 70%); }
}

/* ---------- «Ещё»: сгруппированные списки с цветными иконками ---------- */
.mgroup { margin-bottom: 22px; } .mgroup h2 { margin: 0 0 8px 6px; font: 650 14px/18px var(--f); color: #9CA2C4; }
.mlist { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .035)); border: 1px solid rgba(255, 255, 255, .08); }
.mrow2 { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; color: #fff !important; }
.mrow2 + .mrow2::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: rgba(255, 255, 255, .07); }
.mrow2:active { background: rgba(255, 255, 255, .06); }
:root[data-ui="vision"] .mrow2 .mi { width: 40px !important; height: 40px !important; border-radius: 12px !important; flex: none; display: grid; place-items: center; margin: 0 !important;
  background: var(--tile) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px -6px rgba(0, 0, 0, .7) !important; }
:root[data-ui="vision"] .mrow2 .mi .svi { width: 21px !important; height: 21px !important; color: #fff !important; display: block !important; }
:root[data-ui="vision"] .mrow2 .mi img { display: none !important; }
.mr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .mr-t b { font: 600 16px/20px var(--f); } .mr-t small { font: 400 13px/17px var(--f); color: #9CA2C4; }
.mr-go { color: rgba(255, 255, 255, .3); } .mr-go .svi { width: 18px; height: 18px; }
@media (min-width: 901px) { .mgroup { max-width: 640px; } }

/* ===== v64: типографика — Playfair Display для крупных заголовков, Onest для текста ===== */
:root[data-ui="vision"] { --display: "Playfair Display", Georgia, "Times New Roman", serif; }
:root[data-ui="vision"] .vt-title, :root[data-look] .topbar h1, :root[data-look] .mtop h1, :root[data-ui="vision"] .ds-h1, :root[data-ui="vision"] .ds-display,
.askx-hello h2, .ttile-in b, .thero h2, .tcard h3, .tsec, .tempty h2, :root[data-ui="vision"] .shero h1, .tdig-h b {
  font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: -.01em !important; font-feature-settings: "lnum" 1, "kern" 1; }
:root[data-look] .topbar h1, :root[data-look] .mtop h1 { font-size: 32px !important; line-height: 38px !important; }
:root[data-ui="vision"] .vt-title { font-weight: 600 !important; letter-spacing: -.015em !important; }
.askx-hello h2 { font-size: 34px !important; line-height: 40px !important; }
.thero h2 { font-size: 36px; line-height: 42px; } .ttile-in b { font-size: 20px; line-height: 24px; } .tcard h3 { font-size: 20px; line-height: 25px; }
.tdig-h b { font-size: 19px; line-height: 23px; }
.tsec span { font-family: var(--f); }
@media (max-width: 700px) { :root[data-look] .topbar h1, :root[data-look] .mtop h1 { font-size: 30px !important; line-height: 36px !important; } .thero h2 { font-size: 32px; line-height: 38px; } .ttile-in b { font-size: 18px; line-height: 22px; } }
/* «Итог семьи»: подзаголовки и списки */
.tdig-t { white-space: normal !important; display: flex; flex-direction: column; gap: 8px; }
.tdig-t h4 { margin: 8px 0 0; font: 650 14px/18px var(--f); color: var(--amb); }
.tdig-t h4:first-child { margin-top: 0; }
.tdig-t p { margin: 0; font: 400 15px/22px var(--f); color: #EEF0FA; }
.tdig-t .tlist li { color: #EEF0FA; }

/* ===== v69: шапка темы на ПК и «Мои выводы» целиком ===== */
/* на широком экране картина не растягивается на всю ширину (мыло и обрезка), а стоит справа целиком, мягко растворяясь влево */
@media (min-width: 701px) {
  .thero { min-height: 300px; background: radial-gradient(circle at 75% 40%, #2C2766, #121334 70%); }
  .thero > img { left: auto !important; right: 0; width: min(620px, 58%) !important; height: 100% !important; object-fit: cover; object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
  .thero::after { background: linear-gradient(90deg, rgba(10, 11, 34, .85) 0%, rgba(10, 11, 34, .35) 45%, rgba(10, 11, 34, 0) 70%) !important; }
  .thero-in { padding: 28px 32px; max-width: 46%; }
}
/* «Мои выводы»: без обрезки текста; на ПК — сетка, на телефоне — список */
.tmine { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; overflow: visible !important; scroll-snap-type: none !important; }
.tmcard { flex: none !important; }
.tmcard .tlist { max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
@media (max-width: 700px) { .tmine { grid-template-columns: minmax(0, 1fr); } }

/* ===================== v73: «пульт» — удобство и единый визуал ===================== */
:root[data-ui="vision"] { --surf: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)); --surf-b: rgba(255, 255, 255, .09);
  --r-card: 26px; --sh-card: 0 24px 48px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); }
/* единые карточки главной */
.v73 .vw { background: var(--surf) !important; border: 1px solid var(--surf-b) !important; border-radius: var(--r-card) !important; box-shadow: var(--sh-card) !important;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.v73 .vw-h { font: 650 16px/20px var(--f) !important; letter-spacing: -.005em; }
.v73 .vw-h .vw-hi { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
.v73 .vw-link { font: 600 13.5px/18px var(--f) !important; color: #B9C1FF !important; }
.v73 .vk-today { min-height: 190px !important; }
.v73 .vk-today .vt-title { font-size: 34px !important; line-height: 40px !important; }
@media (max-width: 900px) { .v73 .vk-today { min-height: 168px !important; } .v73 .vk-today .vt-in { padding: 18px 18px 16px !important; } .v73 .vk-today .vt-title { font-size: 30px !important; line-height: 35px !important; } }

/* «Сейчас»: статус малыша + три больших действия */
.vnow { display: flex; flex-direction: column; margin: 14px 0 12px; border-radius: 20px; overflow: hidden; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .06); }
.vnow-r { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.vnow-r + .vnow-r { border-top: 1px solid rgba(255, 255, 255, .06); }
.vnow-r:active { background: rgba(255, 255, 255, .05); }
.vnow-i { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent); }
.vnow-i .svi { width: 19px; height: 19px; }
.vnow-t { flex: 1; font: 600 16px/20px var(--f); }
.vnow-s { font: 500 14px/18px var(--f); color: #A9AFD3; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.vnow-r.live { background: color-mix(in srgb, var(--rc) 12%, transparent); }
.vnow-r.live .vnow-s b { font: 700 18px/20px var(--f); color: #fff; font-variant-numeric: tabular-nums; }
.vnow-r.live .vnow-s em { font: 600 11.5px/14px var(--f); font-style: normal; color: var(--rc); }
.vnow-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vna { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); color: #fff; font: 600 13.5px/16px var(--f); text-align: center; transition: transform .12s ease; }
.vna:active { transform: scale(.96); background: rgba(163, 172, 255, .18); }
.vna-i { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: rgba(163, 172, 255, .2); color: #DCE0FF; }
.vna-i .svi { width: 21px; height: 21px; }
.vna.on { background: rgba(163, 172, 255, .2); border-color: rgba(163, 172, 255, .45); }
.vnow-sum { margin-top: 10px !important; width: 100%; }
.v73 .vk-diary { min-height: 0 !important; }

/* помощник на главной — компактно */
.v73 .vk-ai { display: flex; align-items: center; gap: 16px; }
.v73 .vk-ai .aix-orbw { width: 84px !important; height: 84px !important; flex: none; }
.v73 .vk-ai .aix-tap, .v73 .vk-ai .aix-hint, .v73 .vk-ai .aix-mem { display: none !important; }
.v73 .vk-ai .aix-brief { font: 500 15px/22px var(--f) !important; margin: 6px 0 10px !important; }
@media (max-width: 700px) { .v73 .vk-ai { flex-direction: column; align-items: stretch; } .v73 .vk-ai .aix-orbw { width: 64px !important; height: 64px !important; position: absolute; right: 16px; top: 14px; } }

/* мини-плитки ровно 2×2 на телефоне, 4 в ряд на ПК */
.v73 .vk-small { min-height: 150px !important; }

/* нижнее меню: центральная «Записать» */
@media (max-width: 900px) {
  :root[data-ui="vision"] .tab.add .ti { width: 50px !important; height: 50px !important; border-radius: 17px !important; margin-top: -14px !important;
    background: linear-gradient(160deg, #B7BEFF, #8C97FF) !important; color: #0B0E2A !important; box-shadow: 0 10px 24px -8px rgba(140, 150, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .5) !important; }
  :root[data-ui="vision"] .tab.add .svi { color: #0B0E2A !important; width: 26px !important; height: 26px !important; stroke-width: 2.4 !important; filter: none !important; }
  :root[data-ui="vision"] .tab.add { color: #DCE0FF !important; font-weight: 650 !important; }
  :root[data-ui="vision"] .tab.add::before, :root[data-ui="vision"] .tab.add::after { display: none !important; }
  :root[data-ui="vision"] .tabbar { overflow: visible !important; }
}

/* дневник: идущее сейчас — наверху */
.diary-live { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

/* «Семья» — хаб */
.hubtop { margin: -4px 0 18px; }
.hubfam { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.hubfam::-webkit-scrollbar { display: none; }
.hubp { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 70px; color: #E9EBF7 !important; font: 550 13px/16px var(--f); }
.hubp .ds-avatar { --sz: 60px; box-shadow: 0 0 0 2px rgba(163, 172, 255, .5), 0 0 0 5px rgba(163, 172, 255, .08); }
.hubnews { margin-bottom: 22px; padding: 16px; border-radius: var(--r-card); background: var(--surf); border: 1px solid var(--surf-b); box-shadow: var(--sh-card); }
.hubnews-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.hubnews-h h2 { margin: 0; font: 600 20px/24px var(--display); color: #fff; }
.hubnews-h a { font: 600 13.5px/18px var(--f); color: #B9C1FF; display: inline-flex; align-items: center; gap: 2px; } .hubnews-h a .svi { width: 15px; height: 15px; }
.hubfeed { display: flex; flex-direction: column; }
.hubn { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: #fff !important; }
.hubn + .hubn { border-top: 1px solid rgba(255, 255, 255, .06); }
.hubn-i { width: 46px; height: 46px; border-radius: 13px; flex: none; overflow: hidden; display: grid; place-items: center; background: rgba(163, 172, 255, .16); color: #DCE0FF; }
.hubn-i img { width: 100%; height: 100%; object-fit: cover; } .hubn-i .svi { width: 20px; height: 20px; }
.hubn-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hubn-m b { font: 600 15px/19px var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hubn-m span { font: 500 12.5px/16px var(--f); color: #9CA2C4; }
.hubn-c { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--f); color: #A9AFD3; } .hubn-c .svi { width: 14px; height: 14px; }
.hub-sk { height: 58px; border-radius: 14px; background: rgba(255, 255, 255, .04); margin: 4px 0; }
.hub-empty { margin: 4px 0; color: #9CA2C4; font: 400 14px/20px var(--f); }

/* v74: мелочи после проверки */
.aix-badge { text-transform: none !important; letter-spacing: 0 !important; font: 650 12px/1 var(--f) !important; }
:root[data-ui="vision"] .card.hero h2, :root[data-ui="vision"] .card.hero .hname { font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: -.01em !important; }
.v73 .vk-ai .aix-brief { margin-bottom: 12px !important; }

/* ===== v75: единый стиль карточек на всех страницах ===== */
:root[data-ui="vision"] .ds-card:not(.thero):not(.scband):not(.phero), :root[data-ui="vision"] .feed-item,
:root[data-ui="vision"] .card:not(.hero):not(.chat):not(.diary):not(.flat) {
  background: var(--surf) !important; border: 1px solid var(--surf-b) !important; border-radius: var(--r-card) !important; box-shadow: var(--sh-card) !important; }
:root[data-ui="vision"] .feed-item { padding: 16px !important; margin-bottom: 14px; }
:root[data-ui="vision"] .feed-title { font: 650 17px/22px var(--f) !important; color: #fff; margin: 4px 0 6px; }
:root[data-ui="vision"] .feed-day { font: 600 13px/16px var(--f) !important; color: #A9AFD3 !important; margin: 18px 4px 10px !important; }
:root[data-ui="vision"] .feed-acts .heart { height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(255, 255, 255, .06); border: 0; color: #A9AFD3; }
:root[data-ui="vision"] .feed-acts .heart.on { color: #FF6B8B; background: rgba(255, 107, 139, .14); }
.cmt-form button { background: var(--acc, #A3ACFF) !important; color: var(--acc-ink, #0B0E2A) !important; }
.cmt-form button .svi { color: var(--acc-ink, #0B0E2A); }
/* подарки: отсчёт до дня рождения — ровная сетка */
:root[data-ui="vision"] .gcount, :root[data-ui="vision"] .gdays { border-radius: var(--r-card) !important; }
/* люди: больше воздуха */
:root[data-ui="vision"] .ds-card.pcard { padding: 14px 16px !important; }

/* v76: «Сейчас» без графиков — не растягиваем на две строки сетки */
.v73 .vk-diary.row2 { grid-row: auto !important; align-self: start; }
.v73 .vk-soon { align-self: start; }
