/* ══════════════════════════════════════════════════════════════
   LUNESSA – кабинет 2.0 (собран с нуля 19.09.2026 по макету владельца)

   Три зоны: верхняя полоса, левая колонка, лента. Лента – единственное,
   что прокручивается. Палитра та же, что на главной: тёплый крем, тёмное
   какао для текста, золото для акцентов. Никаких системных контролов:
   кнопки, меню, окна – свои.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #F4EDE4;
  --bg-tint: #F7EFE6;
  --panel: #FBF5ED;
  --panel-2: #FDF9F3;
  --ink: #342A23;
  --ink-2: #4A3E33;
  --body: #5D5146;
  --muted: #8A7F72;
  --muted-2: #A39A8F;
  --line: rgba(113, 90, 67, .14);
  --line-2: rgba(113, 90, 67, .24);
  --gold: #C4A46B;
  --gold-mid: #A38663;
  --gold-deep: #7A6349;
  --gold-soft: #D9C7A6;
  --gold-tint: #F1E7D6;
  --dark: #7F6849;
  --dark-hov: #6C573C;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --shadow: 0 14px 34px rgba(96, 76, 57, .09);
  --r: 14px;
  /* Переменные прежнего кабинета: их ждут перенесённые стили снов и
     отношений. Значения – в палитре нового. */
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 18px;
  --line-soft: rgba(113, 90, 67, .09);
  --ink-3: var(--ink-2);
  --gold-pale: #EFE3CC;
  --shadow-card: 0 1px 2px rgba(74, 58, 32, .06), 0 8px 22px rgba(74, 58, 32, .08);
  --shadow-soft: 0 1px 2px rgba(74, 58, 32, .05);


}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 13.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Пока сервис входа не ответил – кабинет не мелькает */
html.is-gate .shell { visibility: hidden; }

/* Окно загрузки: во весь экран, цвет фона, звезда дышит. Уходит плавно,
   когда небо на день посчитано. */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg); color: var(--ink);
  transition: opacity .55s ease, visibility .55s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { font-size: 22px; color: var(--gold); animation: breathe 1.8s ease-in-out infinite; }
.loader__word { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: .3em; padding-left: .3em; }
.loader__text { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }

/* Смена дня: прежние данные остаются, пока не пришли новые, и лишь чуть гаснут */
.is-updating .facts, .is-updating .hero__quote, .is-updating .hero__sub,
.is-updating .rings, .is-updating .skylist, .is-updating .card__quote { opacity: .45; transition: opacity .25s ease; }
.facts, .hero__quote, .hero__sub, .rings, .skylist, .card__quote { transition: opacity .25s ease; }

.eyebrow { font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }

/* ─── Каркас ─────────────────────────────────────────────── */

/* Масштаб под ширину окна. Макет рисован под 1920: на 1536 (ноутбук с
   масштабом Windows 125%) всё выглядело крупнее, чем на мониторе. Скрипт
   кладёт в --z отношение ширины окна к 1920, не ниже .8 – это те 80%,
   которые владелец выбрал глазами. Высота делится на --z, потому что zoom
   умножает и 100vh: иначе внизу оставалась бы пустая полоса. */
.shell {
  zoom: var(--z, 1);
  min-height: calc(100vh / var(--z, 1));
  background: var(--bg);
}

/* ─── Шапка – копия главной (landing.css .top) ─────────────── */

.top {
  position: sticky; top: 0; z-index: 30;
  height: 84px; display: flex; align-items: center; gap: 40px;
  padding: 0 5.4%;
  background: rgba(247, 240, 232, .92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(113, 90, 67, .15);
}
.top__brand { position: relative; flex-shrink: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.top__mark { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--gold); }
.top__word { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1; letter-spacing: .18em; }
.top__tag { margin-top: 5px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__navbtn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; line-height: inherit; font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); white-space: nowrap; touch-action: manipulation; }
.top__navbtn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold-mid); transform: scaleX(0); transition: transform .2s ease; }
.top__navbtn:hover::after, .top__navbtn[aria-current="page"]::after { transform: scaleX(1); }
.top__navbtn:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 4px; }
.top__actions { display: flex; align-items: center; gap: 22px; }
.top__sky { margin-left: auto; display: flex; align-items: center; gap: 16px; padding-right: 20px; border-right: 1px solid rgba(113, 90, 67, .18); }
.top__skyitem { display: flex; flex-direction: column; gap: 2px; }
.top__skylabel { font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-mid); white-space: nowrap; }
.top__skyval { font-size: 13px; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.top__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px;
  border: 1px solid var(--gold-deep); border-radius: 25px; background: transparent;
  font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.top__cta span { color: var(--gold-mid); font-size: 13px; }
.top__cta:hover { background: var(--gold-tint); transform: translateY(-1px); }
.top__cta:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.top__userwrap { position: relative; }
.top__login { border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: 13.5px; color: var(--body); white-space: nowrap; }
.top__login:hover { color: var(--gold-deep); }
.top__login:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 4px; }
.top__caret { font-size: 10px; color: var(--muted); }

.menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: 200px;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); box-shadow: var(--shadow);
}
.menu__item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--ink);
}
.menu__item:hover { background: var(--gold-tint); }
.menu__item:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: -2px; }
.menu__item--out { color: var(--gold-deep); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* ─── Бургер и выезжающие разделы (узкие экраны) ───────────── */

.top__burger { display: none; width: 34px; padding: 4px 0; border: 0; background: none; cursor: pointer; flex-direction: column; gap: 7px; }
.top__burger span { display: block; height: 1px; background: var(--ink-2); }
.top__burger:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 4px; }
.drawer {
  position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(340px, 90vw);
  display: flex; flex-direction: column; padding: 40px 28px 28px;
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(50, 40, 26, .16);
}
.drawer__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.drawer__word { font-family: var(--serif); font-size: 20px; letter-spacing: .28em; color: var(--gold-deep); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.drawer__link {
  display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 11px 10px; border-radius: 10px;
  cursor: pointer; text-align: left; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink);
}
.drawer__link:hover, .drawer__link[aria-current="page"] { background: var(--gold-tint); }
.drawer__link:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: -2px; }
.drawer__glyph { width: 22px; text-align: center; color: var(--gold-mid); font-size: 15px; }
body.is-drawer .main { pointer-events: none; }
body.is-drawer { overflow: hidden; }

/* ─── Лента ──────────────────────────────────────────────── */

.main { padding: 22px 5.4% 40px; }
.screen { min-height: 100%; }

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 20px 22px;
}
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__title { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 24px; line-height: 1.15; color: var(--ink); }
.card__sub { margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.card__par { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--body); }
.card__par--muted { color: var(--muted); }
.card__hint { font-size: 11px; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 13px; }
.card__link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--gold-deep);
}
.card__link:hover { color: var(--ink); }
.card__link:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 4px; }
.card__link--left { display: inline-block; margin-top: 12px; }
.card__how { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.card__quote { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.5; color: var(--body); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  touch-action: manipulation;
}
.btn:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.btn--soft { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--ink); }
.btn--soft:hover { background: #EADCC3; }
.btn--dark { background: var(--dark); color: #FBF6EE; }
.btn--dark:hover { background: var(--dark-hov); }
.btn--ghost { background: none; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold-soft); }

/* ─── Главная ────────────────────────────────────────────── */

.home { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 22px; align-items: start; max-width: 1720px; }
.home__main { min-width: 0; }
/* Внутри экрана блоки друг под другом; экран главной – через flex, прочие – своей .page */
.screen[data-screen="home"] { display: flex; flex-direction: column; gap: 18px; }
.screen[data-screen="home"][hidden] { display: none; }
.home__side { display: flex; flex-direction: column; gap: 14px; }
.home__eyebrow { margin-top: 4px; }

.hero {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line);
  min-height: 520px; background: linear-gradient(180deg, #F1E8DC, #EEE3D3);
}
.hero__art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 58%);
}
.hero__body { position: relative; z-index: 1; max-width: 48%; padding: 30px 0 30px 38px; display: flex; flex-direction: column; gap: 10px; }
.hero__hello { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--ink); }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-2); }
.hero__date { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.hero__num { font-family: var(--serif); font-weight: 500; font-size: 92px; line-height: .85; color: var(--ink); letter-spacing: -.02em; }
.hero__dm { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.hero__moon { font-size: 15px; letter-spacing: .24em; color: var(--ink); }
.hero__kicker { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-deep); }
.facts { display: flex; flex-direction: column; gap: 6px; }
.facts__item { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 16px; color: var(--ink-2); }
.facts__glyph { width: 18px; text-align: center; color: var(--gold-deep); font-size: 14px; }
.facts__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dark); display: inline-block; margin: 0 3px; }
.hero__quote { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.22; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.hero .btn { align-self: flex-start; margin-top: 8px; }
.hero__words {
  position: absolute; z-index: 1; top: 26px; right: 28px; text-align: right;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; line-height: 2; color: var(--ink-2);
}

/* Карта недели и ритуал: вся иллюстрированная плашка – одна кнопка. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.weekly-feature { min-width: 0; }
.weekly-tile {
  position: relative; isolation: isolate; display: flex; width: 100%; min-height: 278px;
  aspect-ratio: 2.12; overflow: hidden; padding: 30px; border: 1px solid #D8C5A8;
  border-radius: 17px; background: #F1E4D0; color: var(--ink); text-align: left;
  cursor: pointer; font: inherit; touch-action: manipulation;
  box-shadow: 0 2px 5px rgba(96, 76, 57, .035);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.weekly-tile__art {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; transition: transform .5s ease; pointer-events: none;
}
.weekly-tile::after {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(249, 240, 224, .32), rgba(249, 240, 224, .08) 48%, transparent 68%);
}
.weekly-tile__body { display: flex; flex-direction: column; align-items: flex-start; width: 55%; min-width: 0; align-self: stretch; }
.weekly-tile__eyebrow { color: var(--gold-deep); font-size: 9px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.weekly-tile__title { display: block; margin: 14px 0 12px; font: 500 35px/1.04 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.weekly-tile__lead { color: var(--ink-2); font-size: 13px; line-height: 1.75; max-width: 29ch; text-wrap: pretty; }
.weekly-tile__action { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 24px; color: #685136; font-size: 12px; font-weight: 500; }
.weekly-tile__arrow {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border: 1px solid #BDA17A; border-radius: 50%; font-size: 20px; font-weight: 400;
  background: rgba(252, 247, 237, .38); transition: transform .25s ease, background .25s ease;
}
.weekly-tile[aria-expanded="true"] .weekly-tile__arrow { transform: rotate(-45deg); }
.weekly-tile:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.weekly-tile:active { transform: translateY(1px); }
@media (hover: hover) {
  .weekly-tile:hover { border-color: #AD8B58; box-shadow: 0 9px 24px rgba(96, 76, 57, .13); transform: translateY(-2px); }
  .weekly-tile:hover .weekly-tile__art { transform: scale(1.025); }
  .weekly-tile:hover .weekly-tile__arrow { background: #F8EDD9; }
}
.weekly-detail { margin-top: 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.weekly-detail--tarot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.weekly-detail__mark { display: grid; place-items: center; min-width: 45px; min-height: 62px; padding: 8px; border: 1px solid var(--gold-soft); border-radius: 6px; color: var(--gold-deep); font: 500 24px var(--serif); }
.weekly-detail__title { margin-bottom: 6px; font: 500 26px/1.1 var(--serif); }
.weekly-detail__text { color: var(--body); font-size: 13px; line-height: 1.8; }
.ritual { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.ritual li { position: relative; padding-left: 30px; color: var(--body); font-size: 13px; line-height: 1.7; }
.ritual li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border: 1px solid var(--gold-soft); border-radius: 50%; font: 12px var(--serif); color: var(--gold-deep); }
@media (max-width: 560px) {
  .weekly-tile { min-height: 236px; aspect-ratio: auto; padding: 23px 20px; }
  .weekly-tile__body { width: 61%; }
  .weekly-tile__art { object-position: 58% center; }
  .weekly-tile::after { background: linear-gradient(90deg, rgba(249, 240, 224, .75), rgba(249, 240, 224, .36) 48%, transparent 80%); }
  .weekly-tile__eyebrow { font-size: 8px; letter-spacing: .15em; }
  .weekly-tile__title { font-size: 31px; margin-top: 13px; }
  .weekly-tile__lead { font-size: 12px; line-height: 1.65; }
  .weekly-tile__action { gap: 8px; padding-top: 22px; font-size: 11px; }
  .weekly-tile__arrow { width: 28px; height: 28px; font-size: 18px; }
  .weekly-detail { padding: 20px; }
}
@media (max-width: 360px) {
  .weekly-tile { padding: 21px 17px; }
  .weekly-tile__body { width: 66%; }
  .weekly-tile__title { font-size: 28px; }
}

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px 14px;
  cursor: pointer; text-align: left; transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--gold-soft); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.chip__glyph { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-tint); color: var(--gold-deep); font-size: 13px; flex: none; }
.chip__body { display: flex; flex-direction: column; min-width: 0; }
.chip__title { font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--ink); }
.chip__note { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip__arrow { margin-left: auto; color: var(--gold-deep); }

/* Переключатель дня */
.dayswitch { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.dayswitch__arrow { width: 32px; height: 32px; flex: none; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-2); }
.dayswitch__arrow:hover { background: var(--gold-tint); }
.dayswitch__arrow:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }
.dayswitch__days { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.daytab { border: 0; background: none; padding: 7px 4px; border-radius: 999px; cursor: pointer; font-size: 12px; color: var(--body); white-space: nowrap; }
.daytab:hover { background: var(--gold-tint); }
.daytab[aria-selected="true"] { background: var(--gold-tint); color: var(--ink); font-weight: 600; }
.daytab:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }

/* Кольца состояния дня */
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ring__glyph { font-size: 15px; color: var(--gold-deep); height: 18px; }
.ring__dial { position: relative; width: 62px; height: 62px; }
.ring__dial svg { width: 62px; height: 62px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--gold-tint); stroke-width: 3; }
.ring__bar { fill: none; stroke: var(--gold-mid); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); }
.ring__name { font-size: 12px; color: var(--ink); line-height: 1.2; }
.ring__note { font-size: 10.5px; color: var(--muted); }

/* Сейчас в небе */
.card--sky { overflow: hidden; }
.card--sky .eyebrow, .card--sky .skylist, .card--sky .card__link { position: relative; z-index: 1; }
.card__moon { position: absolute; right: -60px; top: 50%; width: 190px; height: 190px; transform: translateY(-50%); border-radius: 50%; object-fit: cover; opacity: .9; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 45% 50%, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle at 45% 50%, #000 40%, transparent 72%); }
.skylist { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; max-width: 74%; }
.skylist--wide { max-width: none; }
.skyrow { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink); }
.skyrow__glyph { width: 16px; text-align: center; color: var(--gold-deep); flex: none; font-size: 13px; }
.skyrow__name { font-family: var(--serif); font-size: 15px; }
.skyrow__when { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.skyrow--tense .skyrow__glyph { color: #B4644A; }
.skyrow--soft .skyrow__glyph { color: #7E9B6E; }

/* Астронавигатор */
.navi { display: grid; grid-template-columns: repeat(3, 1fr); }
.navi__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; cursor: pointer; text-align: center; border-right: 1px solid var(--line); }
.navi__item:last-child { border-right: 0; }
.navi__item:hover .navi__go { background: var(--gold-tint); }
.navi__item:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: -2px; border-radius: 8px; }
.navi__glyph { font-size: 20px; color: var(--gold-deep); height: 26px; }
.navi__title { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); }
.navi__note { font-size: 10.5px; color: var(--muted); }
.navi__go { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-soft); display: grid; place-items: center; font-size: 12px; color: var(--gold-deep); margin-top: 4px; }

.banner { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); min-height: 128px; display: grid; place-items: center; background: #EDE3D4; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.banner__text { position: relative; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.3; text-align: center; color: var(--ink); }

/* ─── Внутренние страницы ────────────────────────────────── */

.page { display: flex; flex-direction: column; gap: 18px; }
.page--center { align-items: center; text-align: center; padding-top: 80px; }
.page__head { display: flex; flex-direction: column; gap: 6px; }
.page__title { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); }
.page__lead { font-size: 13.5px; color: var(--body); max-width: 60ch; }
.page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.planets { margin-top: 10px; display: flex; flex-direction: column; }
.planet { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.planet:last-child { border-bottom: 0; }
.planet__glyph { text-align: center; color: var(--gold-deep); }
.planet__name { font-family: var(--serif); font-size: 15px; }
.planet__sign { font-size: 12.5px; color: var(--body); }
.planet__deg { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.planet__retro { font-size: 10px; letter-spacing: .12em; color: #B4644A; }

.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); align-self: flex-start; }
.tab { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--body); }
.tab:hover { background: var(--gold-tint); }
.tab[aria-selected="true"] { background: var(--gold-tint); color: var(--ink); font-weight: 600; }
.tab:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }

.card--reading { min-height: 200px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.reading__title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--ink); }
.reading__kicker { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-deep); }
.reading__par { font-size: 13.5px; line-height: 1.7; color: var(--body); max-width: 64ch; }
.reading__line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg-tint); }
.reading__mark { flex: none; width: 18px; text-align: center; color: var(--gold-deep); }
.reading__line--tense .reading__mark { color: #B4644A; }
.reading__sky { font-size: 12.5px; color: var(--muted); }
.reading__days { display: flex; flex-direction: column; gap: 8px; }
.reading__day { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.reading__day.is-today { background: var(--bg-tint); }
.reading__dhead { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.reading__dhead b { font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--ink); }
.reading__wait { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 15px; }

.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.num { display: flex; flex-direction: column; gap: 4px; }
.num__val { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ink); }
.num__val small { font-size: 14px; color: var(--gold-deep); margin-left: 6px; }
.num__name { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.num__note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.num--wide { grid-column: 1 / -1; }
.num__trace { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.profile__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.profile__row:last-of-type { border-bottom: 0; }
.profile__row b { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.profile__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.profile__note a { color: var(--gold-deep); }

/* ─── Окно ───────────────────────────────────────────────── */

.dlg { border: 0; padding: 0; background: none; max-width: min(420px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(46, 42, 36, .42); backdrop-filter: blur(4px); }
.dlg__panel { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 26px 26px 22px; box-shadow: var(--shadow); }
.dlg__title { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.dlg__text { margin-top: 8px; font-size: 13px; color: var(--body); }
.dlg__row { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }

/* ─── Движение ───────────────────────────────────────────── */

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

/* ─── Уже ────────────────────────────────────────────────── */

@media (max-width: 1500px) {
  .home { grid-template-columns: minmax(0, 1fr) 340px; }
  .top { gap: 22px; padding: 0 3.5%; }
  .main { padding-inline: 3.5%; }
  .top__nav { gap: 18px; }
  .top__navbtn { font-size: 15px; }
  .top__sky { gap: 12px; padding-right: 14px; }
  .top__skylabel { font-size: 8px; }
  .top__skyval { font-size: 12px; }
  .top__actions { gap: 14px; }
  .top__cta { padding: 9px 18px; font-size: 15px; }
}
@media (max-width: 1400px) {
  .top__sky { display: none; }
  .top__actions { margin-left: auto; }
}
@media (max-width: 1300px) {
  .hero__body { max-width: 58%; }
  .hero__num { font-size: 80px; }
  .rings { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
}
@media (max-width: 1180px) {
  .home { grid-template-columns: 1fr; }
  .home__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .home__side .dayswitch { grid-column: 1 / -1; }
  .rings { grid-template-columns: repeat(4, 1fr); }
  .top__nav { display: none; }
  .top__burger { display: flex; }
}
@media (max-width: 940px) {
  .top { height: 72px; padding: 0 18px; gap: 16px; }
  .top__word { font-size: 24px; }
  .top__tag { font-size: 8px; }
  .top__cta { padding: 9px 15px; font-size: 14px; }
  .main { padding: 16px; }
  .duo, .page__grid, .home__side { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__art { -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 80%); mask-image: linear-gradient(90deg, transparent 40%, #000 80%); object-position: 80% 30%; }
  .hero__body { max-width: 78%; padding: 24px 18px; }
  .hero__words { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top__cta { display: none; }
  .hero__body { max-width: 100%; }
  .hero__art { opacity: .35; }
  .hero__num { font-size: 68px; }
  .hero__quote { font-size: 20px; }
  .rings { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: 1fr; }
  .dayswitch__days { grid-template-columns: 1fr; }
  .daytab:not([aria-selected="true"]) { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   Сны – стили перенесены из прежнего кабинета (styles.css до
   масштабирования, 4c78b9c). Классы модуля снов, календаря и окна
   «Как я толкую сны»; чужих имён не задевают.
   ══════════════════════════════════════════════════════════════ */
.page--dreams { gap: 18.5px; }
.page--dreams .panel { position: relative; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.btn--sm { padding: 7.5px 17px; font-size: 12.5px; align-self: flex-end; }
.link { background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3.5px; transition: color .15s ease; }
.link:hover { color: var(--gold-mid); }
.panel { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); padding: 18.5px; display: flex; flex-direction: column; gap: 13.5px; box-shadow: var(--shadow-card); }
.eyebrow--lg { font-size: 11px; }
.chip { display: flex; align-items: center; gap: 7.5px; padding: 10px 13.5px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 13px; color: var(--ink-3); transition: border-color .15s ease, background .15s ease; touch-action: manipulation; box-shadow: var(--shadow-soft); }
.chip:hover { border-color: var(--gold-soft); }
.chip[aria-checked="true"] { background: var(--gold-tint); border-color: var(--gold-soft); }
.chatp__hist-view .histday { padding: 12px 13px; }
.chatp__hist-view .histday__date { font-size: 15.5px; }
.egoal.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.check.is-on .check__box { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--gold-deep); }
.moods .chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9.5px; border: 1px solid var(--line-2); border-radius: 849px; background: var(--panel); cursor: pointer; font-size: 12px; color: var(--ink-3); transition: border-color .15s ease, background .15s ease; touch-action: manipulation; }
.moods .chip:hover { border-color: var(--gold-soft); }
.moods .chip[aria-pressed="true"] { background: var(--gold-tint); border-color: var(--gold-soft); }
.hist { display: flex; flex-direction: column; gap: 12px; margin-top: 3.5px; }
.hist__empty { font-size: 13px; color: var(--muted); }
.histday { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); }
.histday__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.histday__date { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.histday__count { font-size: 12px; color: var(--muted-2); }
.link--danger.is-armed { color: #B4644A; font-weight: 500; }
.cmp__note { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__input { height: 37.5px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 13.5px; box-shadow: var(--shadow-soft); }
.field__input:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }
.cmp__hint { font-size: 12px; color: var(--muted-2); }
.cmp__hint--err { color: #9C5B44; }
.pair__tabs .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.switch.is-on { background: var(--gold-tint); border-color: var(--gold-pale); }
.switch.is-on .switch__dot { transform: translateX(16px); background: var(--gold-deep); }
.dream__form { display: flex; flex-direction: column; gap: 12px; margin-top: 3.5px; }
.dream__when { display: flex; flex-wrap: wrap; gap: 8.5px; }
.dream__when .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.dream__text { width: 100%; min-height: 110.5px; resize: vertical; padding: 12px 13.5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.7; box-shadow: var(--shadow-soft); }
.dream__text:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }
.dream__text::placeholder { color: var(--muted-2); }
.dream__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .dream__foot .btn--lg { width: 100%; }
}
.dream__result { margin-top: 7px; padding-top: 15.5px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.dream__care { padding: 13.5px 15.5px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); font-size: 14px; line-height: 1.8; color: var(--ink-2); max-width: 68ch; }
.dream__entry { display: flex; flex-direction: column; gap: 8.5px; }
.dream__told { font-size: 13px; line-height: 1.7; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--line); }
.fc__tabs .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
#natalBody .eyebrow--lg:not(:first-child) { margin-top: 8.5px; }
.gender .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--ink); }
@media (max-width: 1180px) {
  .rail > .panel {  }
}
.wheel__item.is-on { color: var(--ink); font-family: var(--serif); font-size: 17px; }
@media (pointer: coarse) {
  input, textarea, select,
  .field, .field__input, .mail__input, .notebox__input,
  .composer__input, .chatp .composer__input,
  .combo input, .picker__btn, .wheel__btn { font-size: 15.5px; }
}
.cal { position: fixed; z-index: 120; width: 251.5px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); box-shadow: var(--shadow-card); font-family: var(--sans); }
.cal__head { display: flex; align-items: center; gap: 3.5px; margin-bottom: 8.5px; }
.cal__nav { flex: none; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8.5px; background: none; cursor: pointer; color: var(--muted); transition: background .15s ease, color .15s ease; touch-action: manipulation; }
.cal__nav:hover { background: var(--gold-tint); color: var(--ink); }
.cal__nav:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }
.cal__title { flex: 1; min-width: 0; height: 29px; border: 1px solid transparent; border-radius: 8.5px; background: none; cursor: pointer; font-family: var(--serif); font-size: 18px; color: var(--ink); transition: background .15s ease; touch-action: manipulation; }
.cal__title:hover { background: var(--gold-tint); }
.cal__title:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 1px; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 3.5px; }
.cal__dowcell { text-align: center; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__grid--m { grid-template-columns: repeat(3, 1fr); gap: 5px; }
/* Ячейки календаря: перенос по классам их пропустил, и кнопки рисовались
   системными – серые квадраты. Свой вид, как в прежнем кабинете. */
.cal__day, .cal__cell {
  height: 31px; border: 1px solid transparent; border-radius: 8.5px;
  background: none; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink-2);
  font-variant-numeric: tabular-nums; transition: background .12s ease, color .12s ease; touch-action: manipulation;
}
.cal__cell { height: 36px; }
.cal__day:hover:not(:disabled), .cal__cell:hover:not(:disabled) { background: #F6EFE1; }
.cal__day:focus-visible, .cal__cell:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: -2px; }
.cal__day--out { color: var(--muted-2); opacity: .6; }
.cal__day--rest { color: var(--gold-deep); }
.cal__day:disabled, .cal__cell:disabled { color: var(--line-2); cursor: default; }
.cal__dowcell--rest { color: var(--muted-2); }
body.cal-open { overflow: hidden; }
@media (max-width: 560px) {
  .cal--sheet { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px)); padding: 16px; }
  .cal--sheet .cal__day { height: 40px; }
  .cal--sheet .cal__cell { height: 46px; }
}
.cal__day--today { border-color: var(--gold-soft); }
.cal__day.is-on, .cal__cell.is-on { background: var(--dark); color: #F6F1E6; border-color: var(--dark); }
.cal__day.is-on:hover, .cal__cell.is-on:hover { background: var(--dark-hov); }
.cal__foot { display: flex; justify-content: flex-end; margin-top: 8.5px; padding-top: 8.5px; border-top: 1px solid var(--line-soft); }
.cal__today { font-size: 13px; }
.cal__veil { position: fixed; inset: 0; z-index: 119; background: rgba(31, 27, 22, .34); overscroll-behavior: contain; }
.cal__row { display: contents; }
body.cal-open { overflow: hidden; }
@media (max-width: 560px) {
  .cal--sheet { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(289px, calc(100vw - 27px)); padding: 13.5px; }
  .cal--sheet .cal__day { height: 34px; }
  .cal--sheet .cal__cell { height: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  .cal__nav, .cal__title, .cal__day, .cal__cell { transition: none; }
}
.dream__title { margin: 0 0 8.5px; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.15; color: var(--ink); }
.dream__move { margin: 0 0 13.5px; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.dream__par { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: var(--body); }
.dream__par:last-of-type { margin-bottom: 0; }
.dream__sky { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.dream__advice { margin: 8.5px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--gold-deep); }
.dream__images { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.dream__images li { position: relative; padding-left: 13.5px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.dream__images li::before { content: '·'; position: absolute; left: 3.5px; color: var(--gold-mid); }
.dream__limits { margin: 12px 0 0; padding: 10px 12px; border-left: 2px solid var(--gold-soft); background: var(--panel-2); border-radius: 0 10px 10px 0; font-size: 13px; line-height: 1.65; color: var(--body); }
.dream__more, .dream__open { margin-top: 10px; align-self: flex-start; }
.dream__deep { margin-top: 13.5px; padding-top: 13.5px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.dream__hyp { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--panel-2); display: flex; flex-direction: column; gap: 5px; }
.dream__hyp-sure { margin: 0; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.dream__deep .dream__par { font-size: 13.5px; margin-bottom: 0; }
.dream__against { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.dmark { margin-top: 15.5px; padding-top: 13.5px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8.5px; }
.dmark--soft { border-top-style: dashed; }
.dmark__ask { margin: 0; font-size: 13px; color: var(--muted); }
.dmark__row { display: flex; gap: 7px; flex-wrap: wrap; }
.dmark__btn { padding: 7.5px 13.5px; font-size: 13px; }
.dmark__btn--why { font-size: 13px; padding: 7px 11px; }
.dmark__btn.is-on { background: var(--dark); border-color: var(--dark); color: #F6F1E6; }
.dmark__why { display: flex; flex-direction: column; gap: 7px; margin-top: 3.5px; }
.dassoc { margin: 12px 0; padding: 12px 13.5px; background: var(--gold-tint); border-radius: 12px; display: flex; flex-direction: column; gap: 8.5px; }
.dassoc__q { margin: 0; font-size: 14.5px; font-style: italic; color: var(--ink); }
.dassoc__open { align-self: flex-start; }
.dassoc__form { display: flex; flex-direction: column; gap: 8.5px; }
.dassoc__input { width: 100%; min-width: 0; height: auto; min-height: 78px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.dassoc__send { align-self: flex-start; }
.dassoc__said { margin: 0; padding-left: 10px; border-left: 2px solid var(--gold-soft); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dassoc__err { margin: 0; font-size: 13px; color: var(--muted); }
.dream__end { display: block; height: 1px; }
.dreambox:not([data-state="form"]) > .eyebrow,
.dreambox:not([data-state="form"]) > .cmp__note,
.dreambox:not([data-state="form"]) > .dream__form { display: none; }
.dreambox[data-state="waiting"] { padding: 0; border: none; background: none; box-shadow: none; gap: 0; }
.dreambox:not([data-state="form"]) > .dream__result { margin-top: 0; padding-top: 0; border-top: none; }
.dream__next { display: flex; flex-direction: column; align-items: flex-start; gap: 8.5px; margin-top: 15.5px; }
.dream__again { align-self: flex-start; }
.dream__next .dream__left { margin: 0; }
.wait:focus, .dream__result:focus { outline: none; }
.wait { display: flex; flex-direction: column; align-items: center; gap: 8.5px; padding: 37.5px 20.5px 41px; text-align: center; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow-card); animation: wait-in .5s ease both; }
.wait__art { width: 200px; max-width: 100%; }
/* Рисунок ожидания: перенос пропустил эти правила, и SVG растягивался во
   всю панель. Штрих дорисовывается по длине – время раздаёт скрипт. */
.wait__draw { width: 100%; height: auto; display: block; overflow: visible; }
.wait__stroke { fill: none; stroke: var(--gold-mid); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: wait-draw 1s linear both; }
.wait__stroke--thin { stroke: var(--gold-soft); stroke-width: 1.1; }
@keyframes wait-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .wait, .wait__stroke, .wait__dots i { animation: none; } }
@keyframes wait-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


.wait__title { margin: 7px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--ink); }
.wait__step { margin: 0; min-height: 1.5em; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.wait__dots { display: inline-block; margin-left: 2px; }
.wait__dots i { display: inline-block; width: 2.5px; height: 2.5px; margin-left: 2.5px; border-radius: 50%; background: currentColor; vertical-align: 1px; opacity: .25; animation: wait-dot 1.4s ease-in-out infinite; }
.wait__dots i:nth-child(2) { animation-delay: .2s; }
.wait__dots i:nth-child(3) { animation-delay: .4s; }
.wait__dots i { opacity: .6; }
@keyframes wait-dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }



.dream__left { margin: -4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3.5px; }
.hist__where { font-size: 13.5px; color: var(--ink-3); min-width: 0; }
.hist__cal { flex: none; }
.hist__pager { display: flex; align-items: center; justify-content: center; gap: 15.5px; padding-top: 5px; }
.hist__page:disabled { opacity: .35; cursor: default; text-decoration: none; }
.hist__pageno { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal__mark { position: absolute; left: 0; right: 0; bottom: 1px; font-style: normal; font-size: 7px; line-height: 1; text-align: center; color: var(--gold-deep); }
.cal__day.is-on .cal__mark { color: #F6F1E6; }
.dream__key { margin: 3.5px 0 5px; padding: 2px 0 2px 12px; border-left: 2px solid var(--gold-soft); font-size: 14px; line-height: 1.6; color: var(--ink); }
.dream__part { margin: 17px 0 3.5px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.dream__part + .dream__par { margin-top: 3.5px; }
.dream__itog { margin-top: 18.5px; padding-top: 13.5px; border-top: 1px solid var(--line-soft); }
.wait__finds { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 7px; max-width: 34ch; margin-top: 3.5px; }
.wait__finds-lead { font-size: 12px; color: var(--muted-2); }
.wait__find { padding: 3.5px 8.5px; border-radius: 849px; border: 1px solid var(--line-soft); background: var(--panel-2); font-size: 11.5px; color: var(--gold-deep); }
.wait__live { width: 100%; text-align: left; margin-top: 7px; }
.wait__live .dream__title { margin-top: 0; }
.dreambox { position: relative; }
.help-btn { position: absolute; top: 10px; right: 10px; width: 41px; height: 41px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 849px; background: var(--panel-2); cursor: pointer; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--gold-deep); transition: border-color .15s ease, color .15s ease; touch-action: manipulation; }
.help-btn:hover { border-color: var(--gold-soft); color: var(--ink); }
.help-btn:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.help { width: min(391px, calc(100vw - 27px)); margin: auto; padding: 0; border: none; background: none; overflow: visible; color: var(--ink); }
.help:focus-visible { outline: none; }
.help::backdrop { background: rgba(46, 42, 36, .42); backdrop-filter: blur(3.5px); -webkit-backdrop-filter: blur(3.5px); }
.help__panel { position: relative; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 34px); overflow-y: auto; overscroll-behavior: contain; padding: 29px 24px 22px; border: 1px solid var(--line); border-radius: 20.5px; background: var(--bg); box-shadow: 0 25.5px 68px rgba(50, 40, 26, .22); }
.help__close { position: absolute; top: 10px; right: 10px; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 849px; background: var(--panel-2); cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted-2); transition: border-color .15s ease, color .15s ease; touch-action: manipulation; }
.help__close:hover { border-color: var(--gold-soft); color: var(--ink); }
.help__close:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.help__star { font-size: 14.5px; color: var(--gold); text-align: center; }
.help__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; text-align: center; color: var(--ink); }
.help__lead { margin: 0 auto; max-width: 34ch; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.help__list { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-direction: column; }
.help__item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2.5px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.help__item:first-child { padding-top: 3.5px; }
.help__item:last-child { border-bottom: none; }
.help__ic { grid-row: 1 / span 2; width: 32.5px; height: 32.5px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--gold-tint); font-size: 15.5px; color: var(--gold-deep); }
.help__h { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.help__t { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.help .btn { align-self: center; margin-top: 7px; }
@media (max-width: 560px) {
  .help__panel { padding: 25.5px 17px 18.5px; }
  .help__title { font-size: 19.5px; }
}
.dream__past { margin: 13.5px 0 0; padding: 10px 12px; border-left: 2px solid var(--gold-soft); background: var(--gold-tint); border-radius: 0 10px 10px 0; font-size: 13px; line-height: 1.65; color: var(--body); }
.dream__past-lead { display: block; margin-bottom: 3.5px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.wait__find--past { background: var(--gold-tint); border-color: var(--gold-soft); }
.histday__past { font-size: 11.5px; color: var(--gold-deep); }
.eyebrow__star { color: var(--gold); letter-spacing: 0; margin-left: 2px; }
.chip--lg { min-height: 41px; padding: 0 15.5px; gap: 8.5px; border-radius: 12px; font-size: 13.5px; }
.chip__icon { display: inline-flex; width: 15.5px; height: 15.5px; flex: none; color: var(--gold-deep); }
.chip__icon svg { width: 100%; height: 100%; display: block; }
.chip__arrow { margin-left: 2px; color: var(--gold-deep); }
.btn--lg { min-height: 44px; padding: 0 24px; gap: 8.5px; font-size: 14.5px; }
.btn__glyph { font-size: 13.5px; color: #F3E3BE; }
.wait__art.has-pic { width: 240px; }
.wait__pic { display: block; width: 100%; height: auto; border-radius: 15.5px; box-shadow: var(--shadow-card); opacity: 0; }
.wait__pic.is-in { opacity: 1; -webkit-mask-image: linear-gradient(135deg, #000 44%, transparent 58%); mask-image: linear-gradient(135deg, #000 44%, transparent 58%); -webkit-mask-size: 300% 300%; mask-size: 300% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: pic-draw 7s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes pic-draw {
  from { -webkit-mask-position: 100% 100%; mask-position: 100% 100%; filter: sepia(.45) contrast(1.35) brightness(1.06); }
  75%  { filter: sepia(.15) contrast(1.08); }
  to   { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; filter: none; }
}
.dream__art { display: block; width: 240px; max-width: 100%; height: auto; align-self: center; margin-bottom: 5px; border-radius: 15.5px; box-shadow: var(--shadow-card); }
@media (prefers-reduced-motion: reduce) {
  .wait__pic.is-in { animation: none; -webkit-mask-image: none; mask-image: none; }
}
.diary__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15.5px; }
.diary__lead { flex: 1 1 auto; min-width: 0; }
.diary__tools { flex: none; }
@media (max-width: 600px) {
  .diary__head { flex-wrap: wrap; }
}
.diary__title { margin: 0 0 5px; font-family: var(--serif); font-weight: 500; font-size: 24.5px; line-height: 1.15; color: var(--ink); }
.diary__title .eyebrow__star { font-size: 16px; vertical-align: middle; }
.diary__tools:empty { display: none; }
.hist__bar { margin: 0; gap: 12px; }
.histday__row { display: flex; align-items: stretch; gap: 15.5px; }
.histday__pic { flex: none; width: 126px; min-height: 98.5px; align-self: stretch; overflow: hidden; background: var(--panel); border-right: 1px solid var(--line-soft); }
.histday__img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.histday__pic--none { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #EFE7D8 0 6px, #F6F0E5 6px 12px); color: var(--gold-soft); font-size: 24.5px; }
.histday__meta { flex: 1; min-width: 0; padding: 13.5px 0; display: flex; flex-direction: column; gap: 3.5px; justify-content: center; }
.histday__when { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.histday__row .histday__date { font-size: 19.5px; }
.histday__row .histday__count { font-size: 13px; }
.histday__row .histday__past { font-size: 12.5px; }
.histday__acts .dream__open { font-size: 14px; }
.histday__acts { position: relative; display: flex; align-items: center; gap: 5px; padding-right: 10px; }
.histday__acts .dream__open { align-self: center; margin: 0; }
.histday__more { width: 29px; height: 29px; flex: none; display: flex; align-items: center; justify-content: center; border: none; border-radius: 849px; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted-2); touch-action: manipulation; }
.histday__more:hover { background: var(--panel); color: var(--ink); }
.histday__more:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.histday__menu { position: absolute; right: 41px; top: 50%; transform: translateY(-50%); z-index: 6; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: var(--shadow-card); }
.histday__menu[hidden] { display: none; }
.histday__body { padding: 12px 15.5px 15.5px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.histday__body[hidden] { display: none; }
@media (max-width: 600px) {
  .histday__row { flex-wrap: wrap; }
  .histday__pic { width: 81.5px; }
  .histday__acts { width: 100%; justify-content: flex-end; padding: 0 8.5px 8.5px; }
}
.pair__tabs .chip.is-on { background: linear-gradient(103deg, #8F7040 0%, #7E6137 52%, #6E5330 100%); border-color: transparent; color: #FFFBF3; }
.pair__tabs .chip.is-on .chip__lock { color: #F3E3BE; }

/* ══════════════════════════════════════════════════════════════
   Отношения – стили перенесены из прежнего кабинета (до масштабирования,
   4c78b9c) по классам модуля; ниже умножены на 0.85, как у снов.
   ══════════════════════════════════════════════════════════════ */
.page--relations { gap: 15.5px; }
.page--relations .panel { position: relative; }
.pairrail { overflow: hidden; }
.edm { width: min(476px, calc(100vw - 24px)); max-height: min(646px, calc(100vh - 34px)); margin: auto; padding: 0; border: none; background: none; overflow: visible; color: var(--ink); }
.edm::backdrop { background: rgba(46, 42, 36, .42); backdrop-filter: blur(3.5px); -webkit-backdrop-filter: blur(3.5px); }
.edm__panel { position: relative; max-height: inherit; border: 1px solid var(--line); border-radius: 20.5px; background: var(--bg); box-shadow: 0 25.5px 68px rgba(50, 40, 26, .22); overflow: hidden; }
.edm__scroll { max-height: min(646px, calc(100vh - 34px)); overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 20.5px; display: flex; flex-direction: column; gap: 13.5px; }
.edm__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 849px; background: var(--panel-2); cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted-2); transition: border-color .15s ease, color .15s ease; touch-action: manipulation; }
.edm__close:hover { border-color: var(--gold-soft); color: var(--ink); }
.edm__fields .field--city { flex: none; min-width: 0; }
.egoal.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
@media (max-width: 560px) {
  .edm { width: 100vw; max-height: 100vh; }
  .edm__panel { border: none; border-radius: 0; }
  .edm__scroll { max-height: 100vh; padding: 22px 15.5px 18.5px; }
}
.check.is-on .check__box { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--gold-deep); }
.link--danger.is-armed { color: #B4644A; font-weight: 500; }
.cmp__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 3.5px; }
.field__label { font-size: 11.5px; letter-spacing: .04em; color: var(--muted-2); }
.cmp__date { display: flex; gap: 7px; }
.picker { position: relative; display: inline-block; }
.picker--day { width: 75px; }
.picker--month { width: 88.5px; }
.picker--year { width: 85px; }
.picker__btn--empty { color: var(--muted-2); }
.picker__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.picker__caret { flex: none; font-size: 10px; color: var(--muted-2); }
.picker__pop { position: fixed; z-index: 60; display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 2px; width: max-content; min-width: 100%; max-height: 228px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); box-shadow: 0 13.5px 32.5px rgba(60, 50, 35, .16); }
.picker__opt { min-width: 37.5px; padding: 7.5px 8.5px; border: none; border-radius: 8.5px; background: none; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.picker__opt:hover { background: #F6EFE1; }
.picker__opt[aria-selected="true"] { background: var(--gold-tint); color: var(--ink); }
.picker__opt:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: -2px; }
.cmp__form .btn { height: 37.5px; padding: 0 22px; }
.cmp__limit { font-size: 12px; color: var(--muted-2); }
.field__opt { font-style: normal; color: var(--muted-2); opacity: .8; }
.field--city { flex: 1 1 187px; min-width: 170px; }
.picker--num { width: 64.5px; }
/* Список подсказок ложится под своё поле, а не под родителя модалки:
   без position: relative он уезжал за нижний край окна. */
.combo { position: relative; display: block; }
.combo .field__input { width: 100%; box-sizing: border-box; }
.onboard__fields .combo { max-width: 320px; }
.combo__list { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; max-height: 222.5px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); box-shadow: 0 13.5px 32.5px rgba(60, 50, 35, .16); }
.combo__list[hidden] { display: none; }
.combo__opt { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 7.5px 10px; border: none; border-radius: 8.5px; background: none; cursor: pointer; text-align: left; font: inherit; }
.combo__opt:hover { background: #F6EFE1; }
.combo__name { font-size: 13.5px; color: var(--ink); }
.combo__tail { font-size: 11.5px; color: var(--muted-2); }
.combo__msg { padding: 8.5px 10px; font-size: 13px; color: var(--muted); }
.cmp__result { margin-top: 5px; padding-top: 15.5px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 13.5px; }
#cmpForm[hidden] ~ .cmp__result { margin-top: 0; padding-top: 0; border-top: none; }
.pair__head { display: flex; flex-direction: column; gap: 3.5px; }
.pair__name { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--ink); }
.pair__body { display: flex; flex-direction: column; gap: 15.5px; }
.pair__title { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); text-wrap: pretty; max-width: 32ch; }
.pair__whois { font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 46ch; margin-top: -8px; }
.pair__item { display: flex; align-items: flex-start; gap: 9.5px; }
.pair__mark { flex: none; width: 13.5px; font-size: 12.5px; line-height: 1.75; text-align: center; }
.pair__item.is-soft .pair__mark { color: var(--gold); }
.pair__item.is-tense .pair__mark { color: var(--gold-deep); }
.pair__itembody { display: flex; flex-direction: column; gap: 2.5px; min-width: 0; }
.pair__text { font-size: 13.5px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.pair__why { font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.zicon { width: 12px; height: 12px; vertical-align: -2px; fill: currentColor; color: var(--gold-mid); }
.pair__teaser { font-size: 13.5px; line-height: 1.75; color: var(--body); max-width: 56ch; padding-left: 12px; border-left: 2px solid var(--gold-pale); }
.pair__tail { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 60ch; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pair__share { align-self: flex-start; }
.pair__again { align-self: flex-start; margin-top: 3.5px; }
.sharecard { aspect-ratio: 4 / 5; width: 100%; max-width: 272px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 18.5px; text-align: center; background: #F5EFE4; border: 1px solid var(--gold-soft); border-radius: 15.5px; }
.sharecard__signs { display: flex; gap: 12px; }
.sharecard__title { font-family: var(--serif); font-size: 20.5px; line-height: 1.25; color: var(--ink); }
.sharecard__line { font-size: 13px; line-height: 1.7; color: var(--body); }
.sharecard__mark { margin-top: auto; font-size: 10px; letter-spacing: .2em; color: var(--muted-2); }
.pair__empty { font-size: 13px; line-height: 1.75; color: var(--muted); max-width: 60ch; padding-left: 12px; border-left: 2px solid var(--line-2); }
.pair__today { display: flex; flex-direction: column; gap: 5px; padding: 13.5px 15.5px; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--gold-tint) 0%, var(--panel-2) 130%); border: 1px solid var(--gold-pale); }
.pair__todaycap { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.pair__numbers { display: flex; align-items: flex-start; gap: 15.5px; padding-top: 13.5px; border-top: 1px solid var(--line-soft); }
.pair__numside { flex: none; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.pair__numval { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.pair__numand { font-size: 18.5px; color: var(--muted-2); }
.pair__numcap { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.pair__numtext { font-size: 13px; line-height: 1.75; color: var(--body); max-width: 52ch; }
.pair__foot { font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 56ch; }
@media (max-width: 560px) {
  .pair__numbers { flex-direction: column; gap: 8.5px; }
  .pair__numside { flex-direction: row; align-items: baseline; gap: 7px; }
}
.switch.is-on { background: var(--gold-tint); border-color: var(--gold-pale); }
.switch.is-on .switch__dot { transform: translateX(16px); background: var(--gold-deep); }
.dream__when .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.fc__tabs .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.main, .chatp__log, .chatp__hist-view, .picker__pop, .combo__list { scrollbar-width: thin; scrollbar-color: var(--gold-pale) transparent; }
.main::-webkit-scrollbar,
.chatp__log::-webkit-scrollbar,
.chatp__hist-view::-webkit-scrollbar,
.picker__pop::-webkit-scrollbar,
.combo__list::-webkit-scrollbar { width: 16px; height: 16px; }
.main::-webkit-scrollbar-track,
.chatp__log::-webkit-scrollbar-track,
.chatp__hist-view::-webkit-scrollbar-track,
.picker__pop::-webkit-scrollbar-track,
.combo__list::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb,
.chatp__log::-webkit-scrollbar-thumb,
.chatp__hist-view::-webkit-scrollbar-thumb,
.picker__pop::-webkit-scrollbar-thumb,
.combo__list::-webkit-scrollbar-thumb { background: var(--gold-pale); border-radius: 849px; border: 6px solid transparent; background-clip: content-box; }
.gender .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--ink); }
.wheel { position: relative; }
.wheel__btn--empty { color: var(--muted-2); }
.wheel__caret { flex: none; font-size: 10px; color: var(--muted-2); }
.wheel__pop { position: fixed; z-index: 60; height: 112px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); box-shadow: 0 13.5px 32.5px rgba(60, 50, 35, .16); scrollbar-width: none; touch-action: pan-y; }
.wheel__pop::-webkit-scrollbar { display: none; }
.wheel__pop:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: -2px; }
.wheel__pop[hidden] { display: none; }
.wheel__track { padding: 37.5px 0; }
.wheel__band { position: sticky; top: 37.5px; z-index: 1; height: 37.5px; margin-bottom: -37.5px; border-top: 1px solid var(--gold-pale); border-bottom: 1px solid var(--gold-pale); pointer-events: none; }
.wheel__item.is-on { color: var(--ink); font-family: var(--serif); font-size: 17px; }
.cmp__date .wheel + .wheel { margin-left: 0; }
.timein { display: flex; }
.timein__input { width: 123px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.timein__input::placeholder { color: var(--muted-2); letter-spacing: 0; }
.timein__input.is-bad { border-color: #c4746a; }
.cal__day.is-on, .cal__cell.is-on { background: var(--dark); color: #F6F1E6; border-color: var(--dark); }
.cal__day.is-on:hover, .cal__cell.is-on:hover { background: var(--dark-hov); }
.dmark__btn.is-on { background: var(--dark); border-color: var(--dark); color: #F6F1E6; }
.cal__day.is-on .cal__mark { color: #F6F1E6; }
.pair__head { display: flex; flex-direction: column; gap: 5px; }
.pair__head .pair__name { margin: 3.5px 0 0; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; color: var(--ink); }
.pair__heart { font-size: 18.5px; color: var(--gold); }
.pair__sub { margin: 0; font-family: var(--serif); font-size: 16px; color: var(--ink-3); }
.pair__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pair__col { display: flex; flex-direction: column; gap: 10px; padding: 15.5px 15.5px 13.5px; border: 1px solid var(--line-soft); border-radius: 13.5px; background: var(--panel-2); }
.pair__col--deep { background: var(--gold-tint); border-color: var(--gold-soft); }
.pair__colhead { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; color: var(--ink); }
.pair__colmark { font-size: 13px; color: var(--gold); margin-left: 2px; }
.pair__col--tense .pair__colmark { color: #9C5B44; }
.pair__col .pair__item { display: flex; align-items: flex-start; gap: 10px; }
.pair__num { flex: none; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font-size: 10.5px; letter-spacing: .04em; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.pair__col .pair__text { font-size: 13px; line-height: 1.6; }
.pair__note { margin: 3.5px 0 0; padding: 8.5px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-soft); font-family: var(--serif); font-style: italic; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pair__col .pair__today, .pair__col .pair__numbers { padding: 0; border: none; background: none; }
.pair__col .pair__tail { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--body); }
.pair__open { align-self: flex-start; }
.pair__acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pair__acts .pair__share { align-self: auto; }
.pair__acts .pair__again { margin: 0; }
@media (max-width: 1700px) {
  .pair__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair__col--deep { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pair__head .pair__name { font-size: 27px; }
  .pair__cols { grid-template-columns: 1fr; }
}
.circle__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.circle__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20.5px; color: var(--ink); }
.circle__note { margin: 0; flex: 1 1 272px; }
.circle__row { display: flex; flex-wrap: wrap; gap: 10px; }
.circle__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5px; min-width: 204px; min-height: 71.5px; padding: 12px 17px; border: 1px dashed var(--gold-soft); border-radius: 13.5px; background: none; color: var(--ink-3); cursor: pointer; font: inherit; touch-action: manipulation; }
.circle__add:disabled { cursor: default; opacity: .8; }
.circle__plus { font-size: 18.5px; line-height: 1; color: var(--gold-deep); }
.circle__addlabel { font-size: 13px; }
.circle__addnote { font-size: 10.5px; color: var(--muted-2); }
.pairrail { display: flex; flex-direction: column; align-items: center; gap: 8.5px; height: 100%; padding: 22px 18.5px 18.5px; overflow-y: auto; text-align: center; }
.pairrail[hidden] { display: none; }
.pairrail__eyebrow { font-size: 9.5px; }
.pairrail__title { margin: 2px 0 0; font-family: var(--serif); font-weight: 500; font-size: 25.5px; line-height: 1.1; color: var(--ink); }
.pairrail__elements { margin: 0; font-size: 12px; color: var(--muted); }
.pairrail__text { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--body); }
.pairrail__list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.pairrail__item { display: flex; align-items: flex-start; gap: 8.5px; font-size: 12px; line-height: 1.5; color: var(--body); }
.pairrail__mark { flex: none; color: var(--gold); font-size: 11px; line-height: 1.6; }
.pairrail__fact { margin: 2px 0 0; font-size: 11px; color: var(--muted-2); }
.pairrail__quote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.pairrail__more { align-self: center; margin-top: 3.5px; }
.pairrail__foot { margin-top: auto; padding-top: 10px; font-size: 9px; }
.pairrail__art { display: block; width: 100%; height: 221px; object-fit: cover; object-position: center 22%; border-radius: 12px; border: 1px solid var(--line-soft); margin: 5px 0; }
.pairrail__elements:empty, .pairrail__fact:empty, .pairrail__quote:empty { display: none; }
.pair__all { display: flex; flex-direction: column; gap: 8.5px; padding: 15.5px 15.5px 13.5px; border: 1px solid var(--line-soft); border-radius: 13.5px; background: var(--panel-2); }
.pair__link { display: flex; align-items: flex-start; gap: 8.5px; }
.pair__link .pair__mark { width: 13.5px; font-size: 12px; line-height: 1.6; text-align: center; }
.pair__link.is-soft .pair__mark { color: var(--gold); }
.pair__link.is-tense .pair__mark { color: #9C5B44; }
.pair__linkwhy { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--body); }
.pair__linkmeaning { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }

/* Списки даты и времени, поля, чипы: групповые правила из старого кабинета,
   которые перенос по классам пропустил (селекторы через запятую) */
.moods .chip__glyph { font-size: 12.5px; color: var(--gold-mid); }
.picker__btn { width: 100%; height: 37.5px; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; transition: border-color .15s ease; touch-action: manipulation; box-shadow: var(--shadow-soft); }
.picker__btn:hover { border-color: var(--gold-soft); }
.picker__btn[aria-expanded="true"] { border-color: var(--gold-mid); }
.main::-webkit-scrollbar, .chatp__log::-webkit-scrollbar, .chatp__hist-view::-webkit-scrollbar, .picker__pop::-webkit-scrollbar, .combo__list::-webkit-scrollbar { width: 16px; height: 16px; }
.main::-webkit-scrollbar-track, .chatp__log::-webkit-scrollbar-track, .chatp__hist-view::-webkit-scrollbar-track, .picker__pop::-webkit-scrollbar-track, .combo__list::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb, .chatp__log::-webkit-scrollbar-thumb, .chatp__hist-view::-webkit-scrollbar-thumb, .picker__pop::-webkit-scrollbar-thumb, .combo__list::-webkit-scrollbar-thumb { background: var(--gold-pale); border-radius: 849px; border: 6px solid transparent; background-clip: content-box; }
.gender { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.wheel__btn { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 58px; padding: 9.5px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel-2); cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; transition: border-color .15s ease; touch-action: manipulation; }
.wheel__btn:hover { border-color: var(--gold-soft); }
.wheel__btn[aria-expanded="true"] { border-color: var(--gold-mid); }
.wheel__btn:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.wheel__item { height: 37.5px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted-2); font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; transition: color .12s ease; }

/* Блок «двое» в результате пары: в старом кабинете звался .duo, в новом это
   имя занято сеткой карты и ритуала недели – здесь .pairduo */
.pair__tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.pair__tabs .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.chip__lock { margin-left: 5px; font-size: 10px; color: var(--gold-mid); }
.pair__tabs .chip.is-on { background: linear-gradient(103deg, #8F7040 0%, #7E6137 52%, #6E5330 100%); border-color: transparent; color: #FFFBF3; }
.pair__tabs .chip.is-on .chip__lock { color: #F3E3BE; }
.pairduo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15.5px; padding: 17px 18.5px; border: 1px solid var(--line-soft); border-radius: 15.5px; background: var(--panel-2); }
.pairduo__person { display: flex; align-items: center; gap: 13.5px; min-width: 0; }
.pairduo__person--other { justify-content: flex-end; text-align: right; }
.pairduo__icon { flex: none; width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-soft); border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 5px var(--panel-2), inset 0 0 0 6px var(--line-soft); color: var(--gold-deep); }
.zicon--xl { width: 39px; height: 39px; color: var(--gold-deep); }
.pairduo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pairduo__who { margin: 0; font-family: var(--serif); font-size: 18.5px; color: var(--ink); }
.pairduo__date { margin: 0; font-size: 12px; color: var(--muted); }
.pairduo__sign { margin: 2px 0 0; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.pairduo__traits { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }
.pairduo__x { display: flex; align-items: center; gap: 8.5px; color: var(--gold); }
.pairduo__cross { font-family: var(--serif); font-size: 25.5px; line-height: 1; color: var(--gold-deep); }
.pairduo__spark { font-size: 11px; color: var(--gold-soft); }

/* ══════════════════════════════════════════════════════════════
   Чат – оболочка из прежнего кабинета в масштабе нового
   ══════════════════════════════════════════════════════════════ */
.chatp { display: flex; flex-direction: column; min-height: 560px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.chatp__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.chatp__ava { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--gold-soft); background: var(--gold-tint); color: var(--gold-deep); font-size: 12px; }
.chatp__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-right: auto; }
.chatp__name { font-family: var(--serif); font-size: 16px; letter-spacing: .14em; color: var(--ink); }
.chatp__role { font-size: 11px; color: var(--muted-2); }
.chatp__hist { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12px; color: var(--gold-deep); transition: background .15s ease, border-color .15s ease; touch-action: manipulation; }
.chatp__hist:hover { background: var(--gold-tint); border-color: var(--gold-soft); }
.chatp__hist:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.chatp__log, .chatp__hist-view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.chatp__hist-view .hist__note { margin: 0; font-size: 12.5px; color: var(--muted); }
.chatempty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: auto 0; padding: 22px 14px; border: none; background: none; cursor: pointer; text-align: center; touch-action: manipulation; }
.chatempty__star { font-size: 14px; color: var(--gold); }
.chatempty__hi { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.chatempty__left { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.chatempty:hover .chatempty__hi { color: var(--gold-deep); }
.chatempty:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 4px; border-radius: 12px; }
.msg { display: flex; }
.msg--me { justify-content: flex-end; }
.msg--her { justify-content: flex-start; }
.msg__bubble { max-width: 78%; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 8px; }
.msg--me .msg__bubble { padding: 12px 16px; border-radius: 16px 16px 5px 16px; background: var(--gold-tint); border: 1px solid #E3D4B4; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.msg--her .msg__bubble { padding: 14px 18px; border-radius: 16px 16px 16px 5px; background: var(--panel-2); border: 1px solid var(--line); font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.msg__par { margin: 0; }
.msg__days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.msg__day { padding: 3px 10px; border-radius: 999px; font-family: var(--sans); font-size: 11.5px; border: 1px solid var(--line-2); color: var(--ink); }
.msg__day--green { background: #EAF0E2; border-color: #C9D8B6; }
.msg__day--yellow { background: var(--gold-tint); border-color: var(--gold-soft); }
.msg__day--red { background: #F3E3DD; border-color: #E0C2B7; }
.msg__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.msg__chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold-soft); background: var(--panel); cursor: pointer; font-family: var(--sans); font-size: 12.5px; color: var(--gold-deep); text-decoration: none; }
.msg__chip:hover { background: var(--gold-tint); }
.msg__chip:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.msg--wait .msg__bubble { color: var(--muted); font-style: italic; flex-direction: row; align-items: center; gap: 4px; }
.chatp__foot { border-top: 1px solid var(--line-soft); background: var(--panel-2); padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.chatp__prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.chatp__prompt { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 11.5px; color: var(--body); touch-action: manipulation; }
.chatp__prompt:hover { border-color: var(--gold-soft); color: var(--gold-deep); }
.chatp__prompt:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.composer { display: flex; flex-direction: column; gap: 8px; }
.composer__row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; }
.composer__row:focus-within { border-color: var(--gold-mid); }
.composer__input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); }
.composer__input::placeholder { color: var(--muted-2); }
.composer__input:disabled { color: var(--muted); }
.composer__send { width: 38px; height: 38px; flex: none; border-radius: 999px; border: none; background: var(--dark); color: #FBF6EE; cursor: pointer; font-size: 16px; transition: background .15s ease; touch-action: manipulation; }
.composer__send:hover { background: var(--dark-hov); }
.composer__send:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.composer__limit { margin: 0; font-size: 12px; color: var(--muted-2); text-align: center; }
.histday--chat { padding: 12px 14px; }
.histday--chat .histday__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.histday--chat .histday__meta { display: flex; flex-direction: column; gap: 2px; }
.histday--chat .histday__date { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.histday--chat .histday__count { font-size: 11.5px; color: var(--muted); }
.histday--chat .histday__log { display: flex; flex-direction: column; gap: 8px; }
.histday--chat .msg__bubble { max-width: 90%; }
.link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.link--danger { color: #B4644A; }
.link.is-armed { font-weight: 600; }
.hist__foot { display: flex; justify-content: center; padding-top: 6px; }
.hist__empty { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .msg__bubble { max-width: 92%; } .chatp { min-height: 480px; } }

/* ══════════════════════════════════════════════════════════════
   Онбординг – анкета рождения во весь экран, кабинет за ней не виден
   ══════════════════════════════════════════════════════════════ */
/* Кабинет за анкетой остаётся, но сильно размыт и не кликается; inert
   на .shell ставит скрипт – чтобы и с клавиатуры туда не попасть */
html.is-onboard .shell { filter: blur(8px) saturate(.95); pointer-events: none; user-select: none; transition: filter .4s ease; }
html.is-onboard body { overflow: hidden; }
.onboard {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  /* Без backdrop-filter: он делает вуаль containing block для position: fixed,
     и выпадающие списки даты уезжали в угол. Размытие и так на .shell. */
  background: rgba(244, 237, 228, .5);
}
.onboard[hidden] { display: none; }
.onboard__card { box-shadow: 0 30px 80px rgba(50, 40, 26, .22); }
.onboard__card { width: min(600px, 100%); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 34px 38px 30px; display: flex; flex-direction: column; gap: 16px; margin: auto 0; }
.onboard__brand { margin: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: var(--gold-deep); }
.onboard__brand span { color: var(--gold); letter-spacing: 0; margin-right: 4px; }
.onboard__title { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); }
.onboard__lead { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--body); max-width: 46ch; }
.onboard__bar { height: 2px; border-radius: 2px; background: var(--line-soft); overflow: hidden; margin: 4px 0 6px; }
.onboard__fill { display: block; height: 100%; width: 33%; background: var(--gold-mid); transition: width .3s ease; }
.onboard__steps { display: grid; }
/* Все шаги лежат в одной ячейке: высота окна = самый высокий шаг, и при
   перелистывании ничего не прыгает. Скрытый шаг невидим, но место держит. */
.onboard__step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; }
.onboard__step[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.onboard__step .onboard__foot { margin-top: auto; padding-top: 8px; }
.onboard__q { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.onboard__fields { display: flex; flex-direction: column; gap: 14px; }
.onboard__fields .field--city { flex: none; min-width: 0; }
.onboard__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.onboard__goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.egoal { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease; touch-action: manipulation; }
.egoal:hover { border-color: var(--gold-soft); }
.egoal.is-on { background: var(--gold-tint); border-color: var(--gold-soft); }
.egoal:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.egoal__title { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.egoal__note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.onboard__err { margin: 0; }
.onboard__err[hidden] { display: none; }
.onboard__note { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted-2); }
.onboard__note a { color: var(--gold-deep); }
@media (max-width: 560px) {
  .onboard { padding: 12px; }
  .onboard__card { padding: 24px 18px 22px; }
  .onboard__goals { grid-template-columns: 1fr; }
  .onboard__title { font-size: 26px; }
}

/* ─── Онбординг: движение ─────────────────────────────────── */
.onboard { animation: ob-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.onboard.is-done { animation: ob-out .42s ease both; pointer-events: none; }
.onboard__card { animation: ob-card .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ob-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ob-card { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.onboard__card.is-settled { animation: none; }
.onboard.is-done .onboard__card { animation: ob-card-out .42s ease both; }
@keyframes ob-card-out { to { opacity: 0; transform: translateY(-14px) scale(.985); } }
.onboard__step.is-out-fwd { animation: ob-step-out-fwd .18s ease-in both; }
.onboard__step.is-out-back { animation: ob-step-out-back .18s ease-in both; }
.onboard__step.is-in-fwd { animation: ob-step-in-fwd .32s cubic-bezier(.2, .7, .2, 1) both; }
.onboard__step.is-in-back { animation: ob-step-in-back .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ob-step-out-fwd { to { opacity: 0; transform: translateX(-22px); } }
@keyframes ob-step-out-back { to { opacity: 0; transform: translateX(22px); } }
@keyframes ob-step-in-fwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes ob-step-in-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.onboard .btn, .onboard .link, .egoal, .onboard .chip { transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.onboard .btn:active, .egoal:active, .onboard .chip:active { transform: scale(.97); }
.onboard .btn.is-pressed { animation: ob-press .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes ob-press { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(163, 134, 99, .35); } 60% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(163, 134, 99, 0); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(163, 134, 99, 0); } }
.egoal.is-on { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(96, 76, 57, .10); }
.onboard .btn.is-busy { position: relative; padding-right: 40px; }
.onboard .btn.is-busy::after { content: '✦'; position: absolute; right: 16px; top: 50%; margin-top: -.6em; line-height: 1.2; color: var(--gold-tint); animation: ob-spin 1.1s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.onboard__err.is-shake { animation: ob-shake .4s ease; }
@keyframes ob-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .onboard, .onboard__card, .onboard__step, .onboard .btn, .onboard__err { animation: none !important; }
}

/* ─── Главная без прокрутки на десктопе ───────────────────────
   Владелец 22.09.2026: главная должна целиком помещаться в окно
   1920×945 (браузер на весь экран). Ужимаем отступы, героя, плитки
   недели и карточки справа – без смены шрифта основного текста. */
@media (min-width: 941px) {
  .main { padding-top: 18px; padding-bottom: 18px; }
  .home { gap: 18px; }
  .home__side { gap: 12px; }
  .screen[data-screen="home"] { gap: 14px; }
  .home__eyebrow { margin-top: 0; margin-bottom: -4px; }

  .hero { min-height: 0; }
  .hero__body { padding: 24px 0 24px 36px; gap: 7px; }
  .hero__hello { font-size: 28px; }
  .hero__date { margin-top: 6px; gap: 16px; }
  .hero__num { font-size: 74px; }
  .hero__kicker { margin-top: 4px; }
  .facts { gap: 3px; }
  .hero__quote { margin-top: 4px; font-size: 21px; }
  .hero .btn { margin-top: 4px; }

  .weekly-tile { min-height: 0; aspect-ratio: 2.75; padding: 22px 26px; }
  .weekly-tile__title { margin: 9px 0 8px; font-size: 30px; }
  .weekly-tile__lead { line-height: 1.6; }
  .weekly-tile__action { padding-top: 12px; }
  .weekly-tile__arrow { width: 28px; height: 28px; font-size: 18px; }

  .chip { padding: 9px 13px; }

  .home__side .card { padding: 15px 20px; }
  .home__side .card__head { margin-bottom: 9px; }
  .dayswitch { padding: 3px; }
  .dayswitch__arrow { width: 30px; height: 30px; }
  .rings { gap: 6px; }
  .ring { gap: 4px; }
  .ring__dial, .ring__dial svg { width: 54px; height: 54px; }
  .ring__val { font-size: 15.5px; }
  .card__quote { margin-top: 11px; padding-top: 10px; }
  .skylist { margin-top: 8px; gap: 4px; }
  .card__moon { width: 170px; height: 170px; }
  .navi__item { gap: 3px; padding: 2px 4px; }
  .navi__glyph { height: 22px; font-size: 18px; }
  .navi__go { margin-top: 2px; width: 24px; height: 24px; }
  .banner { min-height: 84px; }
  /* низ правой колонки – вровень с левой */
  .home[data-screen="home"] .home__side { align-self: stretch; }
  .home[data-screen="home"] .banner { flex: 1; }
}

/* ─── Моя карта ─────────────────────────────────────────────── */
.page--me { gap: 16px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mycard {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 28px; align-items: center; padding: 30px 30px 26px 34px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(ellipse at 76% 48%, #F8F1E6 0%, rgba(248, 241, 230, 0) 58%), linear-gradient(180deg, #F3EADD, #EEE3D3);
}
.mycard__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mycard__eyebrow { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.mycard__title { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.04; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.mycard__lead { max-width: 52ch; font-family: var(--serif); font-size: 17.5px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.mybig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.mybig__item { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 13px 14px 14px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(253, 249, 243, .8); }
.mybig__decor { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; fill: none; stroke: var(--gold-soft); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mybig__label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.mybig__row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mybig__icon { width: 20px; height: 20px; flex: none; color: var(--gold-deep); vertical-align: 0; }
.mybig__value { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mybig__deg { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mybig__note { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.mybig__item.is-empty .mybig__value { color: var(--muted-2); }
.mycard__data { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.mycard__born { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mycard__born .ico { color: var(--gold-deep); }
.mycard__edit { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; border: 0; border-bottom: 1px solid var(--gold-soft); background: none; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--ink); touch-action: manipulation; }
.mycard__edit .ico { width: 14px; height: 14px; color: var(--gold-deep); }
.mycard__edit:hover { border-color: var(--gold-deep); }
.mycard__edit:focus-visible, .mycard__ask:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; }
.mycard__acts { display: flex; align-items: center; gap: 26px; margin-top: 6px; flex-wrap: wrap; }
.mycard__btn { padding-left: 24px; padding-right: 24px; }
.mycard__ask { padding: 2px 0; border: 0; border-bottom: 1px solid var(--gold-soft); background: none; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); touch-action: manipulation; }
.mycard__ask:hover { border-color: var(--gold-deep); }
.mycard__side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.mycard__wheel { width: 100%; max-width: 440px; aspect-ratio: 1; }
.mycard__pick { align-self: flex-end; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; font-size: 11.5px; color: var(--muted); text-align: right; }
.mycard__pick .ico { width: 14px; height: 14px; color: var(--gold-mid); }
.mycard__words { position: absolute; z-index: 1; top: 26px; right: 26px; text-align: right; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; line-height: 2; color: var(--ink-2); }

.wheelmap { width: 100%; height: 100%; overflow: visible; }
.wheelmap__halo { fill: rgba(253, 249, 243, .6); stroke: none; }
.wheelmap__ring { fill: none; stroke: var(--gold-mid); stroke-width: 1; opacity: .55; }
.wheelmap__tick { stroke: var(--gold-mid); stroke-width: .8; opacity: .45; }
.wheelmap__cusp { stroke: var(--gold-mid); stroke-width: 1; opacity: .55; }
.wheelmap__sign { color: var(--gold-deep); fill: currentColor; }
.wheelmap__house { stroke: var(--gold-mid); stroke-width: .8; opacity: .35; }
.wheelmap__axis { stroke: var(--gold-deep); stroke-width: 1.2; opacity: .7; }
.wheelmap__hnum { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.wheelmap__angle { font: 600 11px var(--sans); letter-spacing: .08em; fill: var(--gold-deep); text-anchor: middle; dominant-baseline: central; }
.wheelmap__mark { stroke: var(--ink-2); stroke-width: 1.2; }
.wheelmap__lead { stroke: var(--ink-2); stroke-width: .7; opacity: .5; }
.wheelmap__planet { font: 20px 'Segoe UI Symbol', 'DejaVu Sans', var(--serif); fill: var(--ink); paint-order: stroke; stroke: #F8F1E6; stroke-width: 5px; stroke-linejoin: round; text-anchor: middle; dominant-baseline: central; cursor: pointer; transition: fill .15s ease; }
.wheelmap__planet.is-lum { fill: var(--gold-deep); font-size: 23px; }
.wheelmap__planet:hover, .wheelmap__planet.is-picked { fill: #A0702F; }
.wheelmap__core { font-size: 22px; fill: var(--gold); text-anchor: middle; dominant-baseline: central; }

.mymain__title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--ink); }
.mymain__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.mymain__col { display: flex; gap: 14px; padding: 0 26px; min-width: 0; }
.mymain__col:first-child { padding-left: 0; }
.mymain__col:last-child { padding-right: 0; }
.mymain__col + .mymain__col { border-left: 1px solid var(--line); }
.mymain__icon { width: 26px; height: 26px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold-deep); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.mymain__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mymain__head { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--ink); }
.mymain__text { font-size: 13px; line-height: 1.6; color: var(--body); text-wrap: pretty; }


.mytable__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mytable__row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(120px, 1fr) 90px 130px minmax(0, 2.6fr); align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); border-radius: 6px; transition: background .15s ease; }
.mytable__row--head { padding-top: 0; font-size: 11px; color: var(--muted); }
#myPlanets .mytable__row:last-child { border-bottom: 0; }
#myPlanets .mytable__row:hover, #myPlanets .mytable__row.is-picked { background: rgba(241, 231, 214, .6); }
.mytable__planet { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mytable__glyph { width: 20px; text-align: center; font: 17px 'Segoe UI Symbol', 'DejaVu Sans', var(--serif); color: var(--gold-deep); }
.mytable__name { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.mytable__sign { display: flex; align-items: center; gap: 8px; }
.mytable__zicon { width: 15px; height: 15px; color: var(--gold-deep); vertical-align: 0; }
.mytable__num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.mytable__key { color: var(--ink-2); min-width: 0; }
.mytable__row.is-gen { opacity: .72; }

@media (max-width: 1280px) {
  .mycard__words { display: none; }
  .mytable__row { grid-template-columns: minmax(130px, 1fr) minmax(110px, 1fr) 70px 90px minmax(0, 2fr); }
}
@media (max-width: 940px) {
  .mycard { grid-template-columns: 1fr; padding: 26px 20px; gap: 18px; }
  .mycard__title { font-size: 34px; }
  .mycard__lead { font-size: 16px; }
  .mybig { grid-template-columns: 1fr; }
  .mycard__wheel { max-width: 420px; }
  .mycard__pick { align-self: center; text-align: center; }
  .mymain__cols { grid-template-columns: 1fr; gap: 18px; }
  .mymain__col { padding: 0; }
  .mymain__col + .mymain__col { border-left: 0; padding-top: 18px; border-top: 1px solid var(--line); }
  .mytable__row--head { display: none; }
  .mytable__row { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 2px; padding: 10px 2px; }
  .mytable__num:nth-of-type(4) { grid-column: 3; }
  .mytable__key { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
  .mytable__num:nth-of-type(3) { display: none; }
}

/* ─── Полный прогноз дня в плашке ─────────────────────────────
   Раскрыта – карта и ритуал недели уходят, плашка растёт вниз: картинка
   остаётся наверху и тает к низу, текст прогноза идёт на всю ширину. */
.screen[data-screen="home"].is-dayopen .duo { display: none; }
/* правая колонка не тянется за выросшей плашкой – баннер пустел бы */
.home.is-dayopen .home__side { align-self: start; }
@media (min-width: 941px) { .home.is-dayopen .home__side { position: sticky; top: 102px; } }
.home.is-dayopen .banner { flex: none; }
.hero__more-arrow { display: inline-block; transition: transform .25s ease; }
.hero__more[aria-expanded="true"] .hero__more-arrow { transform: rotate(-90deg); }
.is-dayopen .hero__art {
  bottom: auto; height: 560px;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 58%), linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 22%, #000 58%), linear-gradient(180deg, #000 55%, transparent 100%);
  mask-composite: intersect;
}
.hero__full { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; margin: 4px 36px 28px; padding-top: 20px; border-top: 1px solid var(--line); animation: dayfull-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes dayfull-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dayfull__meta { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.dayfull__advice { display: flex; flex-direction: column; gap: 6px; max-width: 880px; padding: 14px 18px; border: 1px solid var(--gold-soft); border-radius: 12px; background: rgba(253, 249, 243, .82); }
.dayfull__advice-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.dayfull__advice-text { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.dayfull { transition: opacity .25s ease; }
.dayfull.is-loading { opacity: .55; }
.dayfull__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dayfull__sec { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(253, 249, 243, .72); }
.dayfull__title { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--ink); }
.dayfull__par { font-size: 13.5px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.dayfull__wait { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }
.dayhours { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.dayhours__row { display: flex; align-items: baseline; gap: 9px; font-size: 13px; color: var(--ink-2); }
.dayhours__row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dayhours__icon { color: var(--gold-deep); }
.dayhours__row--care .dayhours__icon { color: #B4644A; }
.dayfull__foot { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
@media (max-width: 940px) {
  .hero__full { margin: 0 20px 22px; }
  .dayfull__grid { grid-template-columns: 1fr; }
  .is-dayopen .hero__art { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .hero__full { animation: none; } }
