/* Блок расчёта (assets/calc.js): на главной (#calc в «Сейчас на небе») и в кабинете (app/, вкладка «Карта»).
   Отдельно от styles.css, чтобы кабинет брал только его. Цвета страницы — переменные --text, --muted, --line, --ink:
   у главной из styles.css, у кабинета из app/app.css. */
/* Расчёт: цвета сторон и значков ставит calc.js из рисунка приложения (assets/chart/bodygraph.json). */
.calc { grid-area: calc; width: 100%; max-width: 416px; justify-self: center;
  --c-design: #D23C3C; --c-personality: #1E1E22; --c-design-icon: #E39A9A; --c-personality-icon: #8E8D93; --c-dim: #7A7870; }
.calc [hidden] { display: none !important; }
.calc-title { font: 700 22px/1.2 Inter, sans-serif; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.calc-when { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
/* «Дизайн» и «Личность» над столбцами — нажатие скрывает и показывает свою сторону, как в приложении. */
.calc-sides { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
/* Значки жизненных циклов между «Дизайном» и «Личностью»: выбранный — тёмный, остальные бледные (как в приложении). */
.calc-cycles { display: flex; gap: 2px; }
.calc-cycle { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--text); opacity: .3; cursor: pointer; transition: opacity .15s; }
.calc-cycle svg { width: 18px; height: 18px; }
.calc-cycle:hover { opacity: .6; background: #f6f4ff; }
.calc-cycle.on { opacity: 1; }
/* Значок колеса ворот между «Дизайном» и «Личностью» — только своя карта кабинета (как значок у головы в приложении). */
.calc-mandala-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--text); opacity: .45; cursor: pointer; transition: opacity .15s; }
.calc-mandala-btn svg { width: 22px; height: 22px; }
.calc-mandala-btn:hover { opacity: .7; background: #f6f4ff; }
.calc-mandala-btn.on { opacity: 1; }
/* Колесо ворот (calc.js, gateWheel; не .calc-wheel — так зовутся колонки выбора даты): рисунок во всю ширину блока,
   ниже дуги — колесо под дымкой; рабочая дуга — слой сверху: вбок крутит, вверх-вниз листает страницу; стрелки ‹ ›
   — у середины колеса. */
.calc-chart.wheel { display: block; min-height: 0; }
.calc-mandala { position: relative; }
.calc-mandala-svg { display: block; width: 100%; height: auto; aspect-ratio: var(--wheel-ratio); user-select: none; -webkit-user-select: none; }
.calc-mandala-touch { position: absolute; top: 0; left: 0; right: 0; height: var(--wheel-work); touch-action: pan-y; cursor: grab; }
.calc-mandala-touch:active { cursor: grabbing; }
.calc-mandala-arrow { position: absolute; z-index: 1; top: calc(var(--wheel-work) - 44px); width: 44px; height: 44px; display: grid;
  place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.calc-mandala-arrow-l { left: 0; }
.calc-mandala-arrow-r { right: 0; }
.calc-mandala-arrow .chev { width: 10px; height: 10px; border-width: 2px; }
/* Карта цикла — как композит: над столбцами «Твоя карта» синим и цикл зелёным. */
.calc.calc-pair .calc-side-d { color: var(--c-person-a, #3E6FD8); }
.calc.calc-pair .calc-side-p { color: var(--c-person-b, #2E9E5B); }
.calc-when { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 22px; }
/* Дата с шевронами и выбором (погода, транзит, циклы) — по центру над ползунком. */
.calc-when:has(.calc-date) { justify-content: center; }
/* Цикл по выбранному дню, начавшийся позже него: «12 апр 2006 — за 3 дня до этого лунара» — своей строкой (30.10.2026). */
.calc-picked { flex-basis: 100%; margin-top: 2px; text-align: center; color: var(--muted); opacity: .75; font-size: 11px; }
/* Пометка у лунара: расшифровка каждого лунара — только в My Design, ссылка на статью. */
.calc-only { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 9px 3px 4px; border-radius: 10px;
  background: #f6f4ff; text-decoration: none; }
.calc-only:hover { background: #ece6ff; }
/* У пары шевронов с датой нет — пометка своей строкой от левого края. */
.calc-only.start { margin-left: 0; }
.calc-only img { width: 20px; height: 20px; flex: none; }
.calc-only span { display: grid; line-height: 1.25; }
.calc-only b { color: var(--ink); font-size: 12px; font-weight: 600; }
.calc-only i { color: var(--muted); font-size: 11px; font-style: normal; }
.calc-age { color: var(--c-faint, #C4C2BD); }
.calc-step { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0;
  border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.calc-step:hover { background: #f3f0ff; }
.calc-step:disabled { opacity: .3; cursor: default; background: none; }
.chev.chev-l, .chev.chev-r { margin: 0; translate: 0 0; }
.chev.chev-l { rotate: 135deg; translate: 2px 0; }
.chev.chev-r { rotate: -45deg; translate: -2px 0; }
.calc-none { padding: 24px 0; color: var(--muted); font-size: 13px; }
/* Столбцы карты цикла поверх боков бодиграфа — размеры CompositeLayout.kt (столбец 98, строка 25). */
.calc-chart.pair { display: block; position: relative; min-height: 0; }
.pair-graph { position: absolute; left: 50%; translate: -50% 0; height: auto; }
.pair-col { position: absolute; top: 0; width: 98px; z-index: 1; }
.pair-first { left: 0; }
.pair-second { right: 0; }
.pair-row { height: 25px; display: flex; align-items: center; }
.pair-num { width: 29px; height: 21px; margin: 0; padding: 0 1px; border: 0; border-radius: 4px; background: none; font: 500 12px Inter, sans-serif;
  white-space: nowrap; cursor: pointer; }
.pair-num.pair-d { text-align: right; color: var(--c-design); }
.pair-num.pair-p { text-align: left; color: var(--c-personality); }
.pair-num:hover { background: #f6f4ff; }
.pair-num.on { background: #ece6ff; }
/* Небо транзита: Дизайна нет — пустое место той же ширины. */
.pair-num.pair-none { display: inline-block; cursor: default; }
.pair-num.pair-none:hover { background: none; }
/* Ползунок транзита (кабинет): ±сутки по минутам под датой. */
/*
 * Ползунок времени (заказчик 27.10.2026): линия 2 px, пройденное — 4 px (доля — --fill от calc.js), кругляш того же
 * размера — мягкий, край уходит в прозрачность.
 */
.calc-slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: -6px 0 10px; padding: 0;
  border: 0; border-radius: 2px; cursor: pointer;
  background: linear-gradient(var(--ink), var(--ink)) 0 50% / var(--fill, 50%) 4px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 2px no-repeat; }
.calc-slider::-webkit-slider-runnable-track { height: 22px; background: none; border: 0; }
.calc-slider::-moz-range-track { height: 22px; background: none; border: 0; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: 1px; border: 0; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--ink) 52%, color-mix(in srgb, var(--ink) 35%, transparent) 76%, transparent 100%); }
.calc-slider::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--ink) 52%, color-mix(in srgb, var(--ink) 35%, transparent) 76%, transparent 100%); }
.calc-slider:focus-visible { outline: none; }
.calc-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
/* Погода в кабинете: дата — кнопка выбора даты; под ползунком — поле даты, пояс и «Сейчас». */
.calc-date { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font: 500 13px Inter, sans-serif; cursor: pointer; }
.calc-date:hover { background: #f3f0ff; }
.calc-date .chev { margin: 0; translate: 0 -2px; }
.calc-date[aria-expanded="true"] .chev { rotate: -135deg; translate: 0 2px; }
.calc-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 13px; }
.calc-zone { color: var(--muted); font-size: 11px; }
.calc .calc-pick input { flex: 1 1 9em; width: auto; min-width: 0; margin: 0; font: inherit; padding: 6px 10px; }
.calc-pick .calc-wheels { flex-basis: 100%; }
/* Время рождения ползунком (своя карта, 10.11.2026): по бокам шаг в минуту, под ним — сдвиг и «Исходное время». */
.calc-shift { margin: -4px 0 12px; text-align: center; }
.calc-shift-row { display: flex; align-items: center; gap: 6px; }
.calc-shift .calc-slider { flex: 1; margin: 0; }
.calc-min { flex: none; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font: 500 11px Inter, sans-serif; white-space: nowrap; cursor: pointer; }
.calc-min:hover { background: #f3f0ff; }
.calc-shift-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.calc-shift-reset { margin-top: 4px; padding: 4px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font: 500 12px Inter, sans-serif; text-decoration: underline; cursor: pointer; }
.calc-shift-reset:hover { color: var(--text); }
/* Строка сводки, изменившаяся от сдвига времени. */
.calc-summary div.changed dd { color: var(--ink); }
.calc-summary div.changed dt::after { content: ' •'; color: var(--ink); }
/* Колесо закреплённой даты (форма карты в кабинете): не крутится, бледное. */
.calc-wheel.locked { pointer-events: none; opacity: .45; }
/* Поле даты цифрами: набрано целиком, а такого числа нет. */
input.bad { border-color: #c0392b; }
.calc-now { padding: 4px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.calc-now:hover { background: #f3f0ff; }
.pair-icon { width: 18px; display: inline-flex; justify-content: center; color: var(--c-dim); }
.pair-icon svg { width: 14px; height: 14px; }
.calc-side { padding: 2px 0; border: 0; background: none; font: 600 14px Inter, sans-serif; cursor: pointer; }
.calc-side-d { color: var(--c-design); }
.calc-side-p { color: var(--c-personality); }
.calc-side.off { opacity: .3; }
/* Столбец 62, бодиграф между столбцами, строки через 25 — размеры PlanetColumn.kt. */
.calc-stage { position: relative; }
.calc-chart { display: flex; align-items: flex-start; min-height: 440px; }
.calc-col { flex: 0 0 62px; width: 62px; }
.calc-graph { flex: 1 1 0; min-width: 0; height: auto; display: block; }
.calc-graph text { font-family: Inter, sans-serif; }
/*
 * Переменные у головного центра (calc.js withArrows, как Variables в ChartLayout.kt; 29.10.2026): бодиграф опущен
 * на высоту головы (padding-top из calc.js), сверху — стрелка, цвет, тон и база, подписи, вторая; своя карта — мельче.
 * Фигура — --f, цифра — --t: 23 и 10, своя карта — 21 и 9. Узкий бодиграф (телефон 360, кабинет с отступами карточки) —
 * мельче, чтобы три фигуры с просветами уместились между головой и столбцом: от головы до края бодиграфа — 37,5 % его
 * ширины ((VIEW_X + VIEW_W − HEAD_RIGHT) / VIEW_W), без просвета 6 у головы и 3 у значка планеты, на три фигуры и два
 * просвета по 4: (37,5cqw − 17px) / 3; цифра — в той же доле, что 10 к 23.
 */
.calc-graph-box { position: relative; flex: 1 1 0; min-width: 0; }
.calc-graph-box .calc-graph { width: 100%; }
.calc-vars { --f: 23px; --t: 10px; position: absolute; top: 0; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.calc-graph-box.small .calc-vars { --f: 21px; --t: 9px; }
@supports (width: 1cqw) {
  .calc-graph-box { container-type: inline-size; }
  .calc-vars { --f: min(23px, 12.5cqw - 5.67px); --t: min(10px, 5.43cqw - 2.46px); }
  .calc-graph-box.small .calc-vars { --f: min(21px, 12.5cqw - 5.67px); --t: min(9px, 5.43cqw - 2.46px); }
}
.calc-vars-d { align-items: flex-end; }
.calc-vars-p { align-items: flex-start; }
.calc-arrow { display: block; width: 35px; height: 15px; color: var(--c-design-icon); }
.calc-vars-p .calc-arrow { color: var(--c-personality-icon); }
.calc-arrow svg { display: block; width: 100%; height: 100%; }
.calc-arrow.left svg { transform: scaleX(-1); }
.calc-figs { display: flex; gap: 4px; }
.calc-fig { position: relative; width: var(--f); height: var(--f); display: grid; place-items: center; color: var(--c-figure, #E9E6E0); }
.calc-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.calc-fig b { position: relative; top: 1.5px; color: var(--text); font: 600 var(--t)/1 Inter, sans-serif; }
.calc-caps span { width: var(--f); text-align: center; color: var(--muted); font: min(9px, var(--t))/1 Inter, sans-serif; white-space: nowrap; }
.calc-gate { cursor: default; }
/* Строка столбца — кнопка: открывает страницу ворот поверх бодиграфа (calc.js). Шаг — ровно 25 (ROW_STEP): без отступов
   кнопок кабинета, иначе строки расходятся до 31 (заказчик 27.10.2026). */
.calc-row { width: 100%; height: 25px; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; border-radius: 6px;
  background: none; font: 500 13px Inter, sans-serif; white-space: nowrap; cursor: pointer; }
.calc-row:hover { background: #f6f4ff; }
.calc-row.on { background: #ece6ff; }
.calc-col-d .calc-row { justify-content: flex-end; color: var(--c-design); }
.calc-col-p .calc-row { justify-content: flex-start; color: var(--c-personality); }
.calc-num { width: 42px; display: flex; align-items: center; justify-content: space-between; }
.calc-num b { font-weight: 500; }
.calc-mark { flex: none; width: 11px; height: 11px; display: inline-flex; align-items: center; justify-content: center; }
.calc-mark svg { width: 7.9px; height: 7.9px; }
.calc-star svg { width: 10px; height: 10px; }
.calc-glyph { flex: none; width: 16px; height: 16px; }
.calc-col-d .calc-glyph { color: var(--c-design-icon); }
.calc-col-p .calc-glyph { color: var(--c-personality-icon); }
.calc-row.calc-dim, .calc-row.calc-dim .calc-glyph { color: var(--c-dim); }
.calc-warn { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff7e0; color: #7a5a00; font-size: 13px; line-height: 1.45; }
.calc-summary { display: grid; gap: 6px; margin: 18px 0 0; font-size: 14px; }
.calc-summary div { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.calc-summary dt { color: var(--muted); }
.calc-summary dd { margin: 0; font-weight: 500; color: var(--text); }
.calc-back { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--muted); font: 500 14px Inter, sans-serif; cursor: pointer; }
.calc-back:hover { color: var(--ink); }
/* «Ты» и «+ Близкий» над полями: чьи дата и город в полях; точка — цвет человека в карте пары. */
.calc-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.calc-who-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--muted); font: 500 13px Inter, sans-serif; cursor: pointer; }
.calc-who-tab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-person-a, #3E6FD8); }
.calc-who-tab[data-who="partner"]::before { background: var(--c-person-b, #2E9E5B); }
.calc-who-tab.on { border-color: transparent; background: #ece6ff; color: var(--text); }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.calc-field input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--text); font: 400 16px Inter, sans-serif; }
.calc-field input:focus { outline: none; border-color: #b8a6ff; box-shadow: 0 0 0 3px #ece6ff; }
.calc-city { grid-column: 1 / -1; position: relative; }
.calc-cities { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 4px 0 0; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(23, 38, 74, .28); }
.calc-cities li { padding: 8px 14px; color: var(--text); font-size: 15px; cursor: pointer; }
.calc-cities li:hover, .calc-cities li.on { background: #f3f0ff; }
.calc-go { grid-column: 1 / -1; justify-self: start; }
/* «Рассчитать» и рядом — пометка программы пробуждения (на узком экране встаёт под кнопку). */
.calc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calc-awake { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 9px; border: 1px solid #ddd3ff; border-radius: 12px;
  background: #f6f4ff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.calc-awake:hover { background: #ece6ff; border-color: #c9b9ff; }
.calc-awake svg { flex: none; width: 20px; height: 26px; fill: none; stroke: #7b61e8; stroke-width: 1.4; stroke-linejoin: round; }
.calc-awake span { display: grid; line-height: 1.3; }
.calc-awake b { font-size: 13px; font-weight: 600; }
.calc-awake i { color: var(--muted); font-size: 11.5px; font-style: normal; }
.calc-go:disabled { opacity: .6; cursor: progress; }
.calc-error { grid-column: 1 / -1; color: #b42318; font-size: 14px; }
.calc-note { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.45; }
.calc-note a { text-decoration: underline; }

/* Дата и время рождения — одно поле, под ним колёсики, как DateWheels в приложении: строка 36, видно пять. */
.calc-born-field { grid-column: 1 / -1; }
.calc-born { position: relative; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--text); font: 400 16px Inter, sans-serif; text-align: left; cursor: pointer; }
.calc-born.empty { color: #98a2b3; }
.calc-born::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); rotate: 45deg; transition: rotate .2s, margin .2s; }
.calc-born[aria-expanded="true"]::after { rotate: -135deg; margin-top: -2px; }
.calc-born:focus-visible { outline: none; border-color: #b8a6ff; box-shadow: 0 0 0 3px #ece6ff; }
.calc-wheels { position: relative; display: flex; height: 180px; margin-top: 4px; overflow: hidden; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; animation: wheels-in .25s ease; }
@keyframes wheels-in { from { max-height: 0; } to { max-height: 180px; } }
/* Полоса выбранного: две линии на всю ширину. */
.calc-wheels::before { content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 36px; pointer-events: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-wheel { height: 180px; min-width: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  scrollbar-width: none; outline: none; }
.calc-wheel::-webkit-scrollbar { display: none; }
.calc-wheel:focus-visible { background: #faf9ff; }
.calc-wheel-pad { height: 72px; }
.calc-wheel-item { height: 36px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center;
  color: var(--text); font: 500 16px Inter, sans-serif; white-space: nowrap; cursor: pointer; user-select: none; }
@media (prefers-reduced-motion: reduce) { .calc-wheels { animation: none; } }

/* Страница ворот (calc.js, как GatePage в приложении): поверх бодиграфа и другого столбца, высотой с бодиграф;
   столбец, из которого нажали, остаётся виден — по нему можно идти дальше. */
.calc-sheet { position: absolute; top: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(23, 38, 74, .28); }
.calc-sheet.from-p { left: 0; right: 64px; }
.calc-sheet.from-d { left: 64px; right: 0; }
.calc-sheet.pair.from-p { right: 100px; }
.calc-sheet.pair.from-d { left: 100px; }
/* Выезжает от дальнего края к своему столбцу и там останавливается. */
.calc-sheet.opening.from-p { animation: sheet-from-left .3s ease-out; }
.calc-sheet.opening.from-d { animation: sheet-from-right .3s ease-out; }
@keyframes sheet-from-left { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes sheet-from-right { from { clip-path: inset(0 0 0 100% round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@media (prefers-reduced-motion: reduce) { .calc-sheet.opening.from-p, .calc-sheet.opening.from-d { animation: none; } }
/* Программа пробуждения (calc.js): окно поверх бодиграфа и обоих столбцов, той же высоты; поднимается снизу. */
.calc-sheet.whole { left: 0; right: 0; }
.calc-sheet.whole.opening { animation: sheet-rise .3s ease-out; }
@keyframes sheet-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .calc-sheet.whole.opening { animation: none; } }
.awake-years { color: var(--muted); font-size: 13px; font-weight: 500; }
.awake-h { margin: 18px 0 8px !important; font: 600 16px/1.3 Inter, sans-serif; }
.awake-lead { margin: 2px 0 10px !important; font-size: 14px; line-height: 20px; font-weight: 500; }
.awake-sub { margin: 12px 0 4px !important; font-size: 13px; font-weight: 600; }
/* Строка — кнопка: без закругления и отступов кнопок кабинета, иначе черта сверху загибается (заказчик 27.10.2026). */
.awake-row { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px 0; border: 0; border-radius: 0; border-top: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.awake-row span { display: grid; gap: 2px; flex: 1; }
.awake-row b { font-size: 14px; font-weight: 500; }
.awake-row i { color: var(--muted); font-size: 12px; font-style: normal; }
.awake-row .chev { flex: none; }
.awake-row[aria-expanded="true"] .chev { translate: 0 2px; rotate: -135deg; }
.awake-more { display: grid; gap: 6px; padding-bottom: 14px; }
.awake-more > p { margin: 0; }
.awake-carrier { font-weight: 500; }
.awake-more-link { margin-top: 16px !important; color: var(--muted); font-size: 13px; }
.awake-more-link a { color: var(--ink); text-decoration: underline; }
.awake-end { margin-top: 12px !important; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 4px 16px; }
.sheet-title { font: 700 17px/1.2 Inter, sans-serif; }
.sheet-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0;
  border-radius: 50%; background: #f3f3f6; color: var(--text); font: 400 22px/1 Inter, sans-serif; cursor: pointer; }
.sheet-close:hover { background: #ece6ff; }
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted); font: 500 13px Inter, sans-serif; cursor: pointer; }
.sheet-tab.on { border-color: transparent; background: #ece6ff; color: var(--text); }
.sheet-tab-icon { width: 14px; height: 14px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 22px;
  color: var(--text); font-size: 13px; line-height: 18px; }
.sheet-body p { margin: 0; }
.sheet-body hr { margin: 14px 0; border: 0; border-top: 1px solid var(--line); }
.sheet-wait { color: var(--muted); font-size: 12px; }
.sheet-gate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sheet-hex { flex: none; fill: #C4C2BD; }
.sheet-gate-name { font: 600 18px/1.25 Inter, sans-serif; }
.sheet-gate-first { font-size: 15px; line-height: 20px; font-weight: 500; }
.sheet-body .sheet-muted { margin-top: 6px; color: var(--muted); }
.sheet-toggle { display: inline-flex; align-items: center; margin-top: 10px; padding: 4px 0; border: 0; background: none; color: var(--text);
  font: 500 13px Inter, sans-serif; cursor: pointer; }
.sheet-toggle + hr, hr + .sheet-toggle { margin-top: 0; }
.chev { width: 7px; height: 7px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  translate: 0 -2px; rotate: 45deg; }
.sheet-toggle[aria-expanded="true"] .chev { translate: 0 2px; rotate: -135deg; }
.sheet-about { margin-top: 8px; }
.sheet-line { display: grid; gap: 4px; }
.sheet-line-no { color: var(--muted); }
.sheet-icon { width: 14px; height: 14px; vertical-align: -2px; }
.sheet-body-d { color: var(--c-design-icon); }
.sheet-body-p { color: var(--c-personality-icon); }
.sheet-line-title { font-size: 15px; line-height: 20px; font-weight: 600; }
.sheet-growth { color: #3E6FD8; }
.sheet-fixing { display: grid; gap: 2px; margin-top: 6px; }
.sheet-fixing.faded { opacity: .4; }
.sheet-fixing-head { display: flex; align-items: center; gap: 6px; }
.sheet-fixing-head b { font-weight: 500; }
.sheet-mark svg { display: block; width: 11px; height: 11px; }
.sheet-strong { font-weight: 500; }
.sheet-lead { margin-bottom: 14px !important; font-size: 15px; line-height: 21px; font-weight: 500; }
.sheet-nodes { margin-bottom: 14px !important; font-weight: 600; }
.sheet-nodes-d { color: var(--c-design); }
.sheet-nodes-p { color: var(--c-personality); }
/* Вкладка аминокислоты окна ворот с колеса (calc.js, aminoTab) — как AminoTab.kt. */
.sheet-amino-name { font: 600 20px/1.25 Inter, sans-serif; }
.sheet-amino-map svg { display: block; width: 68%; height: auto; margin: 12px auto 6px; }
.sheet-body .sheet-amino-caption { font-size: 12px; }
.sheet-amino-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 0; border: 0; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sheet-amino-row:hover b { text-decoration: underline; }
.sheet-amino-row.on { cursor: default; }
.sheet-amino-row.on:hover b { text-decoration: none; }
.sheet-amino-row .sheet-hex { fill: var(--muted); }
.sheet-amino-row.on .sheet-hex { fill: var(--text); }
.sheet-amino-text { flex: 1; display: grid; gap: 2px; }
.sheet-amino-text b { font-size: 15px; line-height: 20px; font-weight: 400; }
.sheet-amino-row.on .sheet-amino-text b { font-weight: 600; }
.sheet-amino-text small { color: var(--muted); font-size: 12px; }
.sheet-amino-planets { display: inline-flex; gap: 3px; }
.sheet-body .sheet-amino-head { margin: 18px 0 6px; }
.sheet-amino-head ~ p:not(.sheet-amino-head) { margin-bottom: 8px; font-size: 14px; line-height: 20px; }
/* Тексты с разметкой — как Markup.kt: заголовок, список, цитата, абзацы через 8. */
.mk { display: grid; gap: 8px; }
.mk h4, .mk ul, .mk blockquote { margin: 0; }
.mk h4 { margin-top: 4px; font-weight: 600; }
.mk-13 { font-size: 13px; line-height: 18px; }
.mk-13 h4 { font-size: 15px; line-height: 20px; }
.mk-14 { font-size: 14px; line-height: 19px; }
.mk-14 h4 { font-size: 16px; line-height: 21px; }
.mk ul { display: grid; gap: 4px; padding: 0; list-style: none; }
.mk li { position: relative; padding-left: 14px; }
.mk li::before { content: "•"; position: absolute; left: 0; }
.mk blockquote { padding-left: 10px; color: var(--muted); }
.mk b { font-weight: 600; }
@media (max-width: 420px) { .calc-chart { min-height: 0; } }

/* Карта сна (кабинет) — как DreamLayout.kt: столбцы областей сна по бокам бодиграфа. */
.calc-chart.dream { align-items: start; }
.dream-col { display: grid; align-content: start; gap: 14px; }
.dream-area { display: grid; justify-items: end; }
.dream-area.right { justify-items: start; }
/* Заголовок области шире столбца — выходит в сторону бодиграфа (у его верха по бокам пусто). */
.dream-area b { position: relative; z-index: 1; margin-bottom: 4px; font: 600 12px Inter, sans-serif; white-space: nowrap; }
.dream-area.left b { justify-self: start; }
.dream-area.right b { justify-self: end; }
.dream-row { height: 25px; display: flex; align-items: center; gap: 4px; font: 500 13px Inter, sans-serif; }
.dream-ic svg { width: 14px; height: 14px; display: block; }
.dream-none { color: var(--muted); font-size: 13px; }

/* Загрузка — точки волной, как знак «.•°•.·»: пять точек разного размера, каждая поднимается чуть позже соседней. */
.wave { display: inline-flex; align-items: center; gap: 4px; height: 1em; margin-left: 8px; vertical-align: -0.1em; }
.wave i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .3; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(1), .wave i:nth-child(5) { width: 3px; height: 3px; }
.wave i:nth-child(3) { width: 5px; height: 5px; }
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; }
.wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(2px); opacity: .3; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; opacity: .6; } }
