/* «Всё известное»: панели, карточка объекта, карта трассы, подписи поверх WebGL. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05070d; }
body { font: 13px/1.45 system-ui, sans-serif; color: #dfe6f5; }
/* Страница — как приложение: текст не выделяется (ни мышью, ни Ctrl+A); поля ввода — как обычно */
body { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
/* «⧉» у названия в карточках (ui/copy.ts) */
h3 button.copy { background: none; border: none; padding: 0 2px; margin-left: 2px; color: #8fa3c8; font-size: 13px; cursor: pointer; vertical-align: 1px; }
h3 button.copy:hover { color: #fff; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.panel {
  position: fixed; background: rgba(12, 17, 30, 0.9); border: 1px solid #243150; border-radius: 10px;
  padding: 10px 12px; backdrop-filter: blur(4px);
}
#side { left: 10px; top: 10px; bottom: 10px; width: 330px; display: flex; flex-direction: column; gap: 8px; }
#side h1 { margin: 0; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.home { color: #8fa3c8; text-decoration: none; font-size: 12px; margin-bottom: -4px; }
.home:hover { color: #dfe6f5; }
#data-info { color: #8fa3c8; font-size: 12px; }
#data-info b { color: #dfe6f5; font-weight: 500; }
.lmem { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #8fa3c8; cursor: pointer; white-space: nowrap; }
/* «Расстояния — в масштабе, точки — нет» (HN, 0054 п. 11) */
#scale-note { color: #8fa3c8; font-size: 11px; margin-top: -4px; }
#scale-note:empty { display: none; }
/* Фоновая загрузка астероидов (src/known/ui/loading.ts): строка с полосой под сводкой */
#ast-load { padding: 7px 9px 5px; border: 1px solid #243150; border-radius: 6px; background: rgba(74, 144, 226, 0.08); color: #c8d2e6; font-size: 12px; }
#ast-load[hidden] { display: none; }
#ast-load .load-text { margin-bottom: 6px; }
#ast-load .load-bar { max-width: none; }
#ast-load .load-num { margin-top: 4px; min-height: 15px; font-size: 11px; }
#search {
  width: 100%; padding: 5px 8px; background: #0f1524; color: #dfe6f5; border: 1px solid #2b3a5c; border-radius: 6px; font: inherit;
}
/* Результаты поиска — выпадающим списком поверх панели: не сдвигают дерево фильтров, своя прокрутка
   (жалоба: «результат поиска сдвигает панель фильтров, их не видно; на телефоне почти нереально») */
.search-box { position: relative; }
:is(#results, #tz-results):empty, :is(#results, #tz-results).closed { display: none; }
:is(#results, #tz-results) { position: fixed; z-index: 30; overflow: auto; color: #dfe6f5; font-size: 13px;
  overscroll-behavior: contain; background: #0d1424; border: 1px solid #2c3a5c; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); }
@media (max-width: 900px) { #results .res { padding: 8px 10px; } }
.res { padding: 3px 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res:hover, .res.hl { background: #18223a; }
:is(.res, .fh, .bi):focus-visible { outline: 2px solid #6ea8ff; outline-offset: -2px; }
#tz-results .sub { color: #8fa3c8; font-size: 11px; }
.res.none { color: #8fa3c8; cursor: default; }
.res.astload { color: #9cc4ff; white-space: normal; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #8fa3c8; font-size: 12px; }
.tools span { flex: 1; }
button {
  background: #16203a; color: #dfe6f5; border: 1px solid #2b3a5c; border-radius: 6px; padding: 3px 9px; font: inherit; cursor: pointer;
}
button:hover { border-color: #4a90e2; }
.boosty { background: #f15f2c; color: #fff; border: 1px solid #f15f2c; border-radius: 6px; padding: 3px 9px; text-decoration: none; white-space: nowrap; }
.boosty:hover { background: #ff7440; border-color: #ff7440; }
button.on { background: #1f3a6b; border-color: #4a90e2; }
#groups { overflow: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.grp { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 5px; cursor: pointer; }
.grp:hover { background: #151e33; }
.grp.hl { background: #1c2a4a; }
.grp input { margin: 0; cursor: pointer; }
.gn { flex: 1; min-width: 0; }
.gc { color: #8fa3c8; font-variant-numeric: tabular-nums; }
.eye { padding: 0 4px; border: 0; background: none; font-size: 13px; line-height: 1; opacity: 0.25; filter: grayscale(1); }
.eye:hover { opacity: 0.7; }
.eye.on { opacity: 1; filter: none; }
/* глазик папки «частично»: орбиты у части групп — полуярко с полоской снизу (щелчок — у всех) */
.eye.part { opacity: 0.65; filter: none; box-shadow: inset 0 -2px 0 rgba(120, 190, 255, 0.85); border-radius: 2px; }
.eye.off { opacity: 0.1; cursor: not-allowed; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-right: 2px; vertical-align: 0; }
.sep { margin: 8px 4px 4px; color: #8fa3c8; font-size: 11px; line-height: 1.35; border-top: 1px solid #243150; padding-top: 8px; }
.hint { color: #5d6d8e; font-size: 11px; }
#top { left: 50%; transform: translateX(-50%); top: 10px; display: flex; gap: 10px; align-items: center; padding: 6px 10px; }
#clock { font-family: ui-monospace, Consolas, monospace; font-size: 12px; min-width: 190px; cursor: pointer; border-radius: 4px; padding: 2px 4px; }
#clock:hover { background: #1a2440; }
/* Выбор даты — под часами */
#date-pop { position: absolute; top: calc(100% + 6px); left: 10px; display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 6px; background: #0d1424; border: 1px solid #2c3a5c; z-index: 6; }
#date-pop[hidden] { display: none; }
#date-pop input { background: #111a30; color: #d6e2fb; border: 1px solid #2c3a5c; border-radius: 4px; padding: 3px 6px; font: 12px ui-monospace, Consolas, monospace; color-scheme: dark; }
#date-pop input { width: 22ch; }
#date-pop input.bad { border-color: #c0504d; }
#date-pop #tz-sel { width: 170px; background: #111a30; color: #d6e2fb; border: 1px solid #2c3a5c; border-radius: 4px; padding: 3px 4px; font-size: 12px; color-scheme: dark; }
#speeds { display: flex; gap: 8px; align-items: center; }
/* Время — ползунок ‹‹‹‹‹ ‖ ›››››: шевроны под прозрачным range, на тех же местах, что и ползунок
   (--th — его ширина); горят от середины до ползунка */
.tsl { --th: 16px; position: relative; width: 300px; height: 26px; }
.tsl .marks { position: absolute; inset: 0; pointer-events: none; font: 700 14px/1 system-ui, sans-serif; color: #2f3c5e; }
.tsl .marks span { position: absolute; top: 50%; transform: translate(-50%, -52%); }
.tsl .marks .p { color: #6c7ea8; }
.tsl .marks .lit { color: #6fa8ff; }
.tsl .marks .back.lit { color: #ffb36f; }
.tsl .marks .on { color: #e6f0ff; }
.tsl .marks .back.on { color: #fff0e0; }
.tsl .marks .hov { color: #e6f0ff; }
.tslider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.tslider:focus:not(:focus-visible) { outline: none; }
.tslider::-webkit-slider-runnable-track { height: 26px; background: transparent; }
.tslider::-moz-range-track { height: 26px; background: transparent; }
.tslider::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: var(--th); height: 22px; margin-top: 2px; border-radius: 5px; background: rgba(111, 168, 255, 0.14); border: 1.5px solid #cfe2ff; }
.tslider::-moz-range-thumb { box-sizing: border-box; width: var(--th); height: 22px; border-radius: 5px; background: rgba(111, 168, 255, 0.14); border: 1.5px solid #cfe2ff; }
.tsl .tip { position: absolute; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 3px 7px; border-radius: 4px; background: #0d1424; border: 1px solid #2c3a5c; color: #d6e2fb; font-size: 11px; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 5; }
.tsl .tip.up { top: auto; bottom: calc(100% + 6px); } /* снизу не влезает (полоса времени внизу) — над ползунком (time.ts) */
.tsl:hover .tip, .tslider:active + .tip, .tslider:focus-visible + .tip { opacity: 1; }
#card { right: 10px; top: 10px; width: 330px; max-height: calc(100% - 20px); overflow: auto; z-index: 10; } /* поверх значков «📅 📰» */
#card h3 { margin: 0 0 6px; font-size: 14px; word-break: break-word; }
.row { padding-left: 12px; text-indent: -12px; }
.row b { color: #8fa3c8; font-weight: 500; margin-right: 6px; }
.note { margin-top: 6px; color: #e8c07a; font-size: 12px; }
.btns { display: flex; gap: 6px; margin-top: 8px; }
#track { margin-top: 8px; cursor: zoom-in; }
#track canvas { width: 100%; display: block; border-radius: 6px; border: 1px solid #243150; }
#track-info { color: #9fb0d0; font-size: 11px; margin-top: 3px; }
#track.big { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 1200px); z-index: 20;
  background: rgba(12,17,30,0.96); padding: 10px; border: 1px solid #2b3a5c; border-radius: 10px; cursor: zoom-out; }
#status { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #8fa3c8; font-size: 14px; pointer-events: none; }
#status:empty { display: none; }
/* Индикатор загрузки (src/known/ui/loading.ts) */
#status { text-align: center; width: min(600px, 88vw); }
.load-text { margin-bottom: 10px; }
.load-bar { position: relative; max-width: 320px; margin: 0 auto; height: 4px; border-radius: 2px; background: #1a2440; overflow: hidden; }
.load-bar[hidden] { display: none; }
.load-fill { height: 100%; width: 0; border-radius: 2px; background: #4a90e2; transition: width 0.2s linear; }
.load-bar::after { content: ''; position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(160, 200, 255, 0.55), transparent);
  animation: load-run 1.4s linear infinite; }
.load-bar.busy .load-fill { width: 0 !important; }
@keyframes load-run { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.load-num { margin-top: 8px; min-height: 16px; font-size: 12px; color: #6f83a8; font-variant-numeric: tabular-nums; }
/* Пока грузимся, панель и полоса времени спрятаны (body.loading стоит в known.html, снимает loadingEnd) */
#side, #top { transition: opacity 0.4s; }
body.loading #side, body.loading #top { opacity: 0; pointer-events: none; }
/* Фон на время загрузки — Млечный Путь (та же текстура, что небо сцены), медленно плывёт; после загрузки растворяется */
/* Старт — центр Галактики посреди экрана (середина картинки шириной 340vh); за круг картинка сдвигается ровно на свою ширину */
#load-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.9s, visibility 0s 0.9s; background: #05070d; }
/* Картинка плывёт сдвигом (transform), а не background-position: такую анимацию ведёт поток композитора — фон не
   замирает, пока главный поток занят шейдерами и текстурами (пользователь 2026-10-11: «когда билдятся текстуры, фон
   не двигается»). Полоса — с запасом на круг (340vh), сдвиг за 240 с — ровно на круг */
#load-bg::before { content: ''; position: absolute; top: -35%; height: 170%; left: calc(50vw - 170vh); width: calc(100vw + 510vh);
  background: url(../textures/2k_stars_milky_way.jpg) 0 0 / auto 100% repeat-x;
  filter: brightness(1.7) saturate(1.25); will-change: transform;
  animation: load-drift 240s linear infinite; }
/* Виньетка: края темнее, подпись в центре читается */
#load-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 7, 13, 0.45) 0%, rgba(5, 7, 13, 0.1) 45%, rgba(5, 7, 13, 0.6) 100%); }
body.loading #load-bg { opacity: 1; visibility: visible; transition: none; }
body:not(.loading) #load-bg::before { animation-play-state: paused; }
body.loading #labels { visibility: hidden; }
@keyframes load-drift { from { transform: translateX(0); } to { transform: translateX(-340vh); } }
@media (prefers-reduced-motion: reduce) { #load-bg::before { animation: none; } }
#status { text-shadow: 0 1px 6px #05070d, 0 0 2px #05070d; }
body.loading .load-text { color: #dfe6f5; }
body.loading .load-num { color: #a9b8d6; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
/* Подписи на Земле (earth-labels.ts, 0074) */
#earth-labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
body.loading #earth-labels { visibility: hidden; }
.elbl { position: absolute; transform: translate(-3px, -50%); white-space: nowrap; font-size: 11px; pointer-events: auto; cursor: default; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.elbl.city::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #ffe7a8; margin-right: 4px; vertical-align: 2px; }
.elbl.city { color: #f2e6c8; }
.elbl.city.cap { color: #fff3cf; font-weight: 600; }
.elbl.city.cap::before { width: 6px; height: 6px; background: none; border: 1.5px solid #ffd166; vertical-align: 1px; }
.elbl.sea { color: rgba(150, 200, 255, 0.85); font-style: italic; transform: translate(-50%, -50%); }
.elbl.sea.ocean { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(150, 200, 255, 0.7); }
.elbl.mtn { color: #e3d6c3; font-size: 10px; }
.elbl.volc { color: #ffb38a; font-size: 10px; }
.elbl.ph { color: #9dffcf; font-weight: 600; border-bottom: 1px dotted rgba(157, 255, 207, 0.6); cursor: help; }
.elbl.ph.myth { color: #c9c9c9; text-decoration: line-through; }
#earth-labels .elbl { cursor: pointer; }
#earth-labels .elbl:hover { color: #fff; }
.elbl.sel { color: #fff !important; background: rgba(13, 20, 36, 0.85); border: 1px solid #ffd166; border-radius: 4px; padding: 0 4px; z-index: 1; }
/* «📅 События» (ui/events.ts, 0080) */
/* «📰 Что нового» (0095): карточки без дат, новое сверху; точка на кнопке — есть непросмотренное */
#news-pop { right: 10px; top: 10px; width: 340px; max-height: calc(100% - 20px); display: flex; flex-direction: column; font-size: 12px; z-index: 6; }
#news-pop[hidden] { display: none; }
#news-pop h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
/* RSS «Что нового» (scripts/build-rss.mjs) — значок у заголовка */
#news-pop .rss { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 400; color: #ffb36f; text-decoration: none; border: 1px solid #5a4630; border-radius: 4px; padding: 1px 6px; }
#news-pop .rss:hover { background: #2a2014; }
#news-pop .rss svg { width: 12px; height: 12px; }
#news-pop .close { position: absolute; right: 8px; top: 8px; background: none; border: none; color: #8fa3c8; font-size: 14px; cursor: pointer; }
#news-pop .list { overflow: auto; flex: 1; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; }
#news-pop .news-card { padding: 7px 9px; border: 1px solid #23324f; border-radius: 8px; background: rgba(15, 25, 44, 0.6); }
#news-pop .news-card { position: relative; }
#news-pop .news-card .date { display: block; color: #6f84ab; font-size: 11px; margin-bottom: 1px; }
#news-pop .ntag { font-size: 10px; border-radius: 8px; padding: 0 6px; margin-left: 4px; border: 1px solid; }
#news-pop .ntag.world { color: #8fd6a0; border-color: #3f7a52; }
#news-pop .ntag.tech { color: #9fb3d9; border-color: #3a4d72; }
#news-pop .news-card.unread::before { content: ''; position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ff9f43; box-shadow: 0 0 6px #ff9f43; }
#news-pop .news-card.unread b { padding-right: 14px; }
#news-pop .news-card b { display: block; color: #cfe0ff; font-size: 13px; }
#news-pop .news-card p { margin: 3px 0 0; color: #9fb3d9; line-height: 1.35; }
#news-pop .news-card button { margin-top: 6px; font-size: 12px; padding: 3px 10px; }
#news-btn.fresh { position: relative; } /* у #news-mini — fixed: relative сбивал его в левый угол */
:is(#news-btn, #news-mini).fresh::after { content: ''; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: #ff9f43; box-shadow: 0 0 6px #ff9f43; }
#news-mini { display: none; position: fixed; right: 10px; top: 10px; z-index: 9; width: 46px; height: 46px; padding: 0; border-radius: 12px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); color: #d6e2fb; font-size: 20px; line-height: 1; opacity: 0.35; transition: opacity 0.8s; }
/* «📰» и «📅» — всегда справа вверху (пользователь 2026-10-10: «из панели убери, пусть эти 2 кнопки всегда там будут,
   мобильный или нет»); на телефоне — левее ∞ и ⛶. Кнопки в ряду инструментов — спрятаны (код их нажимает) */
#news-mini { display: block; }
#news-mini svg { display: block; margin: auto; } /* значок RSS вместо 📰 (пользователь) */
/* как ☰ 🔍 ∞ ⛶: без касаний (мыши) у правого верхнего угла 4 с — бледнеют; рядом — ярче (ui/events.ts) */
:is(#events-top, #news-mini) { opacity: 0.35; transition: opacity 0.8s; }
:is(#events-top, #news-mini):is(.awake, :hover) { opacity: 1; transition-duration: 0.15s; }
#news-btn, #events-btn { display: none !important; }
/* созвездия — одна кнопка «✦ В объёме» (у Солнца совпадает с небом); плоский слой — только у космонавта (✦ в его панели) */
#stars-btn, #con3d-btn { display: none !important; } /* созвездия — галочкой в дереве под «Известными звёздами» */
body.phone #news-mini { right: 118px; }
body:is(.tour, .loading) #news-mini { display: none !important; }
/* Новости на весь экран — только на телефоне; на компе окно справа 340px (пользователь 2026-10-24, 0133) */
body.phone.touch #news-pop { left: 10px; right: 10px; width: auto; z-index: 12; font-size: 14px; }
body.phone.touch #news-pop .news-card b { font-size: 15px; }
body.phone.touch #news-pop .close { width: 40px; height: 40px; right: 4px; top: 4px; font-size: 18px; }
#events-pop { right: 10px; top: 10px; width: 340px; max-height: calc(100% - 20px); display: flex; flex-direction: column; font-size: 12px; z-index: 6; }
#events-pop[hidden], #event-mark[hidden] { display: none; }
#events-pop h3 { margin: 0 0 6px; font-size: 15px; }
#events-pop .close { position: absolute; right: 8px; top: 8px; background: none; border: none; color: #8fa3c8; font-size: 14px; cursor: pointer; }
#events-pop .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
#events-pop .sw-now { padding: 6px 8px; margin-bottom: 6px; border-radius: 6px; background: rgba(255, 170, 60, 0.12); line-height: 1.5; }
#events-pop .sw-go { margin-left: 4px; padding: 1px 6px; font-size: 11px; background: rgba(120, 160, 255, 0.18); border: 1px solid rgba(140, 170, 255, 0.4); border-radius: 4px; color: inherit; cursor: pointer; }
#events-pop .tabs .on { border-color: #6fa8ff; color: #cfe0ff; }
#events-pop .hint { color: #8fa3c8; font-size: 11px; margin-bottom: 6px; }
#events-pop .ev a { color: #8fb8ff; }
#events-pop .list { overflow: auto; flex: 1; overscroll-behavior: contain; }
#events-pop .ev { padding: 6px 4px; border-top: 1px solid #1d2842; cursor: pointer; }
#events-pop .ev:hover { background: #18223a; }
#events-pop .ev .t { color: #8fa3c8; font-size: 11px; }
#events-pop .ev .n { color: #e6f0ff; }
#events-pop .ev .s { color: #b7c6e4; font-size: 11px; }
#events-pop .ev.pha .n { color: #ffb3b3; }
#events-pop .tag { font-size: 10px; border: 1px solid #ff8a8a; border-radius: 8px; padding: 0 5px; color: #ff8a8a; }
#event-mark { position: fixed; z-index: 5; pointer-events: none; }
#events-top { display: block; position: fixed; right: 64px; top: 10px; z-index: 9; width: 46px; height: 46px; padding: 0; border-radius: 12px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); font-size: 20px; line-height: 1; }
body.phone #events-top { right: 172px; }
body:is(.tour, .loading) #events-top { display: none !important; }
body.news-open #news-mini { display: none !important; }
/* окна — в самом верху, поверх значков (пользователь: «подними, пусть перекрывает»); открыто одно за раз */
#events-pop, #news-pop { top: 10px; max-height: calc(100% - 20px); z-index: 11; }
body.events-open #events-top { display: none !important; } /* окно открыто — значок не нужен (пользователь) */
/* телефон: окно «Событий» — над джойстиками, а они на это время спрятаны (перехватывали нажатия по строкам) */
/* телефон: окно — сверху, под рядом кнопок (☰ 🔍 ∞ ⛶), до полосы времени внизу; над джойстиками (пользователь) */
body.phone #events-pop { z-index: 12; top: 10px; bottom: 76px; max-height: none; }
body.phone #news-pop { top: 10px; }
body.events-open:is(.touch) :is(#cam-pad, #zoom-pad) { display: none !important; }
#parade-mark { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#parade-mark[hidden] { display: none; }
#parade-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#parade-mark path { fill: none; stroke: rgba(255, 220, 150, 0.38); stroke-width: 1.1; stroke-dasharray: 4 6; }
#parade-mark circle { fill: none; stroke: rgba(255, 220, 150, 0.55); stroke-width: 1; }
#parade-mark span { position: absolute; white-space: nowrap; font-size: 12px; color: #ffe2b0; text-shadow: 0 0 3px #000, 0 0 6px #000; }
#event-mark .ring { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 2px solid #ffb38a; border-radius: 50%; animation: tour-pulse 1.6s ease-in-out infinite; }
#event-mark .lbl { position: absolute; left: 14px; top: -8px; white-space: nowrap; font-size: 12px; color: #ffd8b0; background: rgba(13, 20, 36, 0.8); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 900px) { #events-pop { top: auto; bottom: 96px; left: 10px; right: 10px; width: auto; max-height: 50%; } }
#earth-card { right: 10px; top: 10px; width: 330px; max-height: calc(100% - 20px); overflow: auto; font-size: 12px; }
#earth-card[hidden] { display: none; }
#earth-card h3 { margin: 0 0 2px; font-size: 15px; padding-right: 24px; }
#earth-card .sub { color: #8fa3c8; margin-bottom: 8px; }
#earth-card .row { color: #b7c6e4; margin: 3px 0; }
#earth-card .desc { color: #9dffcf; margin: 8px 0; line-height: 1.45; }
#earth-card .desc.myth { color: #c9c9c9; }
#earth-card .wiki { margin: 8px 0; color: #d6e2fb; line-height: 1.45; }
#earth-card .wiki img { float: right; max-width: 110px; max-height: 110px; margin: 0 0 6px 8px; border-radius: 4px; }
#earth-card .wiki p { margin: 0; }
#earth-card .links { clear: both; margin-top: 6px; }
#earth-card .close { position: absolute; right: 8px; top: 8px; background: none; border: none; color: #8fa3c8; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) { #earth-card { top: auto; bottom: 96px; left: 10px; right: 10px; width: auto; max-height: 40%; } }
.elbl.poi { font-size: 11px; }
.elbl.poi.land, .elbl.poi.rover { color: #ffd8a8; }
.elbl.poi.feat { color: rgba(220, 225, 240, 0.85); font-style: italic; }
.elay { margin: 4px 0 6px; font-size: 12px; color: #b7c6e4; }
.elay .eh { color: #8fa3c8; font-size: 11px; margin-bottom: 2px; }
.elay label { display: block; cursor: pointer; line-height: 1.7; }
/* Созвездия (stars.ts): подписи под подписями объектов */
#star-labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
body.loading #star-labels { visibility: hidden; }
.slbl { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 10px; }
.slbl.con { color: rgba(130, 165, 235, 0.55); letter-spacing: 0.12em; text-transform: uppercase; font-size: 9px; }
.slbl.con.big { color: rgba(140, 175, 245, 0.7); font-size: 10px; }
.slbl.star { color: rgba(225, 230, 245, 0.7); transform: translate(6px, -50%); }
.slbl.con.lit { color: #cfe0ff; }
#star-tip { position: fixed; z-index: 8; pointer-events: none; font-size: 12px; padding: 3px 7px; border-radius: 4px; background: rgba(13, 20, 36, 0.9); border: 1px solid #2c3a5c; color: #9fb2d6; white-space: nowrap; }
#star-tip b { color: #e6f0ff; font-weight: 600; }
:is(#con-card, #neb-card) { right: 10px; top: 10px; width: 330px; max-height: calc(100% - 20px); overflow: auto; font-size: 12px; z-index: 10; } /* поверх значков «📅 📰» (пользователь: «кнопки всегда снизу») */
:is(#con-card, #neb-card)[hidden] { display: none; }
/* Фильтр «Сближение орбит» в папке астероидов (ast-filter-ui.ts) */
.grp.sk { padding-left: 22px; font-size: 12px; color: #b7c6e4; } .grp.sk.dim { opacity: 0.45; } /* виды под слоями (panel.ts) */
.lvl { padding-left: calc(var(--lvl) * 12px); } /* дерево по масштабу: Вселенная → Млечный Путь → Солнечная система */
/* Слои космоса (Вселенная, звёзды, Млечный Путь, пульсары) раскрывать нечего — место под стрелку не держим: на 0 уровне был
   отступ в 34 px (пользователь 2026-10-24: «большой отступ на 0 уровне») */
label.grp:is([data-g="ouniverse"], [data-g="ostarsdb"], [data-g="ogalaxy"], [data-g="opulsars"]) > .tchev:empty { display: none !important; } /* у строк космоса стрелки нет — и места под неё нет (пользователь 2026-10-24) */
.af.off { opacity: 0.5; } .af.off label { cursor: help; }
.af { margin: 6px 4px 4px; padding-top: 6px; border-top: 1px solid #243150; font-size: 12px; color: #b7c6e4; }
.af label { cursor: pointer; }
.af .afr { margin: 4px 0 0 20px; line-height: 1.9; color: #8fa3c8; }
.af:not(.on) .afr { opacity: 0.55; }
.af select { background: #111a30; color: #d6e2fb; border: 1px solid #2c3a5c; border-radius: 4px; font-size: 11px; padding: 1px 2px; max-width: 150px; }
.af .afn { margin-left: 6px; color: #ffd166; }
.af .afp { display: block; margin: 2px 0 0 20px; color: #ffb3b3; cursor: pointer; }
/* Прямой эфир с МКС (iss-live.ts): метка на схеме и окно */
#cam-mark { position: fixed; z-index: 7; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ff8a8a; background: rgba(13, 20, 36, 0.85); font-size: 15px; cursor: pointer; animation: tour-pulse 2s ease-in-out infinite; }
#cam-mark[hidden], #live-pop[hidden], #cam-tag[hidden] { display: none; }
/* В VR видео не показать (iss-live.ts, vrOn) — кнопки в карточке тоже нет */
:is(body.xr, body.xr-hide) :is(#card #live, #cam-mark, #cam-tag, #live-pop) { display: none !important; }
#cam-tag { position: fixed; z-index: 7; transform: translateY(-50%); padding: 4px 10px; border-radius: 12px; border: 1px solid #6e3340; background: rgba(13, 20, 36, 0.88); color: #ffb3b3; font-size: 12px; white-space: nowrap; cursor: pointer; }
#cam-tag:hover { color: #fff; border-color: #ff8a8a; }
#cam-mark.behind { opacity: 0.55; }
#live-pop { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 32px)); z-index: 9; font-size: 12px; }
#live-pop h3 { margin: 0 0 8px; font-size: 15px; padding-right: 24px; }
#live-pop .close { position: absolute; right: 8px; top: 8px; background: none; border: none; color: #8fa3c8; font-size: 14px; cursor: pointer; }
#live-pop .tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
#live-pop .tabs .on { border-color: #6fa8ff; color: #cfe0ff; }
#live-pop .player { position: relative; aspect-ratio: 16 / 9; background: #05070d; border-radius: 6px; overflow: hidden; }
#live-pop iframe, #live-pop .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#live-pop .poster { background: #05070d center / cover no-repeat; cursor: pointer; padding: 0; }
#live-pop .poster span { display: inline-block; padding: 8px 16px; border-radius: 20px; background: rgba(5, 7, 13, 0.75); color: #fff; font-size: 15px; }
#live-pop .dn { margin: 8px 0 4px; color: #ffd166; }
#live-pop .mini { position: absolute; right: 34px; top: 8px; background: none; border: none; color: #8fa3c8; font-size: 14px; cursor: pointer; }
/* Свёрнутый: маленький плеер внизу слева от карточки (карта трассы видна рядом); на узком экране — справа внизу */
#live-pop.min { left: auto; top: auto; right: 350px; bottom: 10px; transform: none; width: min(360px, calc(100vw - 20px)); padding: 6px; }
@media (max-width: 900px) { #live-pop.min { right: 10px; bottom: 56px; } }
/* Свёрнутый в карточке МКС — над картой трассы (место — #live-slot, позицию ставит iss-live.ts) */
#live-pop.min.dock { right: auto; bottom: auto; box-sizing: border-box; border-radius: 6px; box-shadow: none; z-index: 6; }
#live-slot { margin: 6px 0; }
#live-pop.min h3 { font-size: 12px; margin: 0 0 4px; }
#live-pop.min :is(.tabs, .note) { display: none; }
#live-pop.min .dn { margin: 4px 0 0; font-size: 11px; }
#live-pop .delay { margin: 2px 0 4px; color: #b7c6e4; }
#live-pop.min .delay { font-size: 10px; color: #8fa3c8; }
#live-pop.min .close, #live-pop.min .mini { top: 4px; }
#card #halo { margin-left: 4px; padding: 1px 8px; font-size: 11px; }
#card #halo.on { border-color: #6fa8ff; color: #cfe0ff; }
:is(#con-card, #neb-card) .spectrum { display: block; width: 100%; height: auto; margin: 6px 0 8px; border-radius: 4px; }
:is(#con-card, #neb-card) h3 { margin: 0 0 2px; font-size: 15px; padding-right: 24px; }
:is(#con-card, #neb-card) .sub { color: #8fa3c8; margin-bottom: 8px; }
:is(#con-card, #neb-card) p { margin: 0 0 8px; line-height: 1.45; color: #d6e2fb; }
:is(#con-card, #neb-card) .row { color: #b7c6e4; margin: 3px 0; }
:is(#con-card, #neb-card) .row.now { color: #ffd166; }
:is(#con-card, #neb-card) .close { position: absolute; right: 8px; top: 8px; background: none; border: none; color: #8fa3c8; font-size: 14px; cursor: pointer; }
/* карточки созвездия и туманности — и при спрятанном интерфейсе (2026-10-15) */
.lbl { position: absolute; font-size: 11px; white-space: nowrap; padding: 0 3px; background: rgba(5, 7, 13, 0.6); border-radius: 3px; }
.lbl.st { color: #ffd166; }
.lbl.sel { color: #fff; font-weight: 600; }
.lbl.pl { color: #c8d2e6; }
.lbl.mn { color: #9aa6bd; }
.lbl.cr { color: #ffd166; }
.lbl.hel { color: #9cc4ff; }
.lbl.gal-sun { color: #ffd166; }
.lbl.gal-arm { color: #8fb8ff; }
.lbl.gal-dir { color: #ffd8a0; }
body.gal-time #top, body.gal-time #date-pop { display: none !important; }
/* Вселенная (пользователь 2026-10-18): «Земля», «Вся система» (есть ☀️ «вернуться»), «Вращать с Землёй», «Короткие пути» и «Созвездия» тут не нужны — фигуры созвездий уже не видны */
body.gal-far :is(#to-earth, #to-system, #rot-btn, #short-btn, #stars-btn, #con3d-btn) { display: none !important; }
/* Панель — на всех масштабах (№7 бэклога): на Галактике Солнечная система свёрнута в строку (panel.ts); ☀ «вернуться» —
   правее панели */
@media (min-width: 761px) { body.gal-time:not(.phone):not(.clean) #gal-back { left: 350px; } } /* интерфейс спрятан — кнопка к краю (2026-10-15) */
#gal-back { position: fixed; left: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); font-size: 20px; line-height: 1; padding: 0; z-index: 5; display: none; cursor: pointer; }
#gal-back:hover { background: #1a2440; }
/* Мини-полоска времени Галактики — как #mini-speed; в компактном виде (спрятанные панели) и на телефоне —
   всегда — только она: верхней полоски и кнопки ☰/✕ на масштабе Галактики нет (0070) */
/* «Включить Галактику / Вселенную» у предела отдаления (ui/zoom-offer.ts) */
#zoom-offer { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 8; display: flex; gap: 8px; align-items: center; padding: 6px 8px 6px 12px; font-size: 13px; color: #d6e2fb; max-width: calc(100% - 20px); box-sizing: border-box; }
#zoom-offer[hidden] { display: none; }
#zoom-offer button { white-space: nowrap; }
#zoom-offer .x { padding: 2px 7px; }
/* узкий экран: текст строкой сверху, кнопки под ним (пользователь 2026-10-24) */
@media (max-width: 480px) { #zoom-offer { flex-wrap: wrap; width: calc(100% - 40px); box-sizing: border-box; } #zoom-offer > span { flex: 1 0 100%; } #zoom-offer .x { margin-left: auto; } }
#gal-mini { display: none; position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 7; gap: 6px; }
#gal-mini[hidden] { display: none !important; }
#gal-mini button { height: 36px; min-width: 40px; padding: 0 12px; border-radius: 18px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); color: #d6e2fb; font-size: 14px; cursor: pointer; }
#gal-mini button:hover { background: #1a2440; }
body.gal-time #gal-mini { display: flex; }
body.gal-time #mini-speed { display: none !important; } /* кнопка «спрятать интерфейс» (#ui-toggle) остаётся и на масштабе Галактики (пользователь 2026-10-15) */
body.gal-time:not(.astro) #agent-btn { bottom: 52px; } /* космонавта тут нет — робот на его место */
#gal-mini button.on { color: #ffd166; border-color: #6a5a2c; }
#gal-mini .gm-n { align-self: center; color: #8a93a8; font-size: 12px; }
#gal-mini .gm-n:empty { display: none; }
body.gal-time:not(.astro) #gal-back { display: block; }
body.gal-time:not(.astro) #astro-btn, body.gal-time:not(.astro) #astro-ghost { display: none !important; } /* на масштабе Галактики космонавта не предлагаем (0070) */
.gal-mark { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1.5px dashed; border-radius: 50%; }
.gal-dirmark { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; overflow: visible; pointer-events: none; }
.gal-dirmark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* Beyond the Oort cloud (0190): anchors of the layer labels (clickable) and where each interstellar guest is now */
.beyond-pin { position: absolute; width: 7px; height: 7px; margin: -4px 0 0 -4px; border: 1.5px solid #9cc4ff; transform: rotate(45deg); pointer-events: none; }
.beyond-pin.lit { border-color: #fff; }
.lbl.hel.beyond.lit { color: #fff; }
.beyond-now { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 1.5px solid #9dff5c; border-radius: 50%; pointer-events: none; }
.warn { position: absolute; left: calc(50% + 170px); bottom: 16px; transform: translateX(-50%); max-width: min(760px, calc(100% - 380px)); color: #e8c07a; background: rgba(12,17,30,0.85); padding: 4px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.folder { margin-bottom: 4px; }
.fh { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 5px; cursor: pointer; font-weight: 600; }
.fh:hover { background: #151e33; }
.fh input { margin: 0; cursor: pointer; }
.fn { flex: 1; min-width: 0; }
.chev { width: 10px; color: #8fa3c8; }
.folder > .fb { display: none; padding-left: 14px; } /* только прямой .fb: у вложенной папки (в «Солнечной системе») открытый родитель не должен раскрывать закрытую */
.folder.open > .fb { display: block; }
.res .sub { color: #8fa3c8; }
.row.sub { color: #9fb0d0; text-indent: 0; padding-left: 0; }
/* Апсиды (Ap / Pe) на орбите выбранного */
.aps:not(.lbl) { position: absolute; width: 7px; height: 7px; margin: -4px 0 0 -4px; border: 1.5px solid #fff; border-radius: 50%; background: rgba(5, 7, 13, 0.6); }
.lbl.aps { color: #e8eefc; }
/* Узлы (AN / DN) — ромбик; линия узлов через центр — пунктиром */
.nod:not(.lbl) { position: absolute; width: 7px; height: 7px; margin: -4px 0 0 -4px; border: 1.5px solid #8fd0ff; background: rgba(5, 7, 13, 0.6); transform: rotate(45deg); }
.lbl.nod { color: #a9dcff; }
.node-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node-line line { stroke: #8fd0ff; stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 4 4; }
/* За телом (орбита выбранного просвечивает) — бледнее */
.behind { opacity: 0.5; }
/* Стрелки направления движения на орбите выбранного */
.orbit-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-arrows path { fill: none; stroke: currentColor; stroke-opacity: 0.95; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ring { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #fff; border-radius: 50%; }
#hover {
  position: fixed; pointer-events: none; background: rgba(12, 17, 30, 0.95); border: 1px solid #2b3a5c;
  border-radius: 6px; padding: 3px 8px; white-space: nowrap; font-size: 12px;
  z-index: 12; /* поверх кругляшей и пультов сценария */
}
#hover .sub, #track-tip .sub { color: #8fa3c8; }
#refresh-note[hidden] { display: none; }
/* Доступ агента (?agent, 0110): код комнаты внизу по центру */
#agent-box { right: 54px; bottom: 90px; max-width: calc(100vw - 70px); flex-wrap: wrap; padding: 6px 10px; display: flex; gap: 8px; align-items: center; color: #9cc4ff; z-index: 8; } /* ниже карточки и лент «События», «Что нового» (z 10–12) */
/* Подпись агента слева внизу — как у заставки (#tour-cap) */
#agent-cap { position: fixed; left: 48px; bottom: 44px; max-width: min(560px, calc(100vw - 64px)); opacity: 0; transition: opacity 0.8s; pointer-events: none; z-index: 51; color: #eef2fb; font-family: system-ui, sans-serif; text-shadow: 0 1px 8px #000; }
#agent-cap.on { opacity: 1; }
#agent-cap b { display: block; font-size: 38px; font-weight: 200; letter-spacing: 0.12em; text-transform: uppercase; }
#agent-cap span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.08em; color: #aab6cf; font-variant-numeric: tabular-nums; }
#agent-cap p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: #d3dbea; font-weight: 300; }
#agent-cap p:empty { display: none; }
/* Картинки агента: у тела (едут за ним) или в точке экрана */
.agent-pic { position: fixed; left: 0; top: 0; margin: 0; z-index: 25; pointer-events: none; }
.agent-pic img { display: block; border-radius: 6px; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.agent-pic figcaption { margin-top: 4px; font: 12px system-ui, sans-serif; color: #dfe6f5; text-shadow: 0 1px 4px #000; }
/* Кнопка агента — над космонавтом */
#agent-btn { position: fixed; right: 10px; bottom: 94px; z-index: 7; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); cursor: pointer; padding: 0; font-size: 16px; line-height: 1; }
#agent-btn:hover { background: #1a2440; }
/* свои кнопки агента в углах (corner, 0140): как 🤖, видны и у космонавта */
.agent-cbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2c5c4a; background: rgba(13, 20, 36, 0.85); color: #cfe; cursor: pointer; padding: 0; font-size: 16px; line-height: 1; }
.agent-cbtn:hover { background: #1a2440; }
/* пульт агента (panel, 0141) */
.agent-panel { position: fixed; z-index: 9; /* над метками сцены (эфир МКС — 7, «i» у подписи — 9, пульт позже в DOM), под окнами интерфейса (карточка, меню — 10, новости — 11) */ min-width: 220px; max-width: 360px; max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; background: rgba(10, 16, 30, 0.92); border: 1px solid #2c5c74; border-radius: 10px; color: #cfe6f5; font: 13px/1.4 system-ui, sans-serif; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); }
.agent-pin { position: fixed; z-index: 1; /* как подписи сцены — под окнами и панелями интерфейса */ width: 38px; height: 38px; border-radius: 50%; border: 2px solid #ffd36b; background: rgba(10, 16, 30, 0.9); color: #fff; font-size: 18px; line-height: 1; padding: 0; cursor: pointer; box-shadow: 0 0 14px rgba(255, 211, 107, 0.7); animation: agent-pin-pulse 2s ease-in-out infinite; }
@keyframes agent-pin-pulse { 50% { box-shadow: 0 0 22px rgba(255, 211, 107, 1); } }
.agent-pin:hover, .agent-pin.on { background: #1c3654; }
.agent-panel .ap-close { float: right; border: 0; background: none; color: #7fd8ff; cursor: pointer; padding: 0 2px; font: inherit; }
.agent-panel .ap-head { position: sticky; top: 0; background: rgba(10, 16, 30, 0.98); padding: 6px 10px; border-bottom: 1px solid #1f3c50; font-weight: 600; color: #7fd8ff; cursor: move; user-select: none; touch-action: none; }
.agent-panel .ap-row { padding: 4px 10px; display: flex; flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; }
.agent-panel .ap-row:last-child { padding-bottom: 8px; }
.agent-panel button { flex: 1; min-width: 40px; padding: 5px 8px; border-radius: 6px; border: 1px solid #2c5c74; background: #12243a; color: #dff; cursor: pointer; font: inherit; }
.agent-panel button:hover { background: #1c3654; }
.agent-panel .ap-slider { align-items: center; flex-wrap: nowrap; }
.agent-panel .ap-slider input { flex: 1; min-width: 80px; accent-color: #7fd8ff; }
.agent-panel .ap-slider b { min-width: 36px; text-align: right; font-weight: 600; }
#agent-btn.on { border-color: #ffe08a; box-shadow: 0 0 8px rgba(255, 224, 138, 0.5); }
body.tour #agent-btn, body.astro #agent-btn, body.touch #agent-btn, body.tour #agent-box, body.astro #agent-box { display: none; } /* полоска агента прячется вместе с интерфейсом (заставка, «чистый» вид) */
/* Агент спрятал всё (hide_ui): только сцена, подписи тел, подпись и картинки агента */
/* hideUi — прячем всё, показываем нужное (правило проекта, 0114): видно только перечисленное здесь — сцена, подписи,
   затемнения, окна медиа, плеер; любой новый элемент интерфейса прячется сам; показать ещё — hideUi {keep: [...]} (класс ui-keep) */
body.agent-clean > :not(#view):not(#labels):not(#agent-cap):not(.agent-pic):not(#agent-nav):not(#watermark):not(#agent-fade):not(#tour-fade):not(#tour-cap):not(#tour-mark):not(#debug-draw):not(.media-win):not(.media-line):not(.media-need):not(.ui-keep):not(.ui-keep-wrap):not(script) { display: none !important; }
body.agent-clean .ui-keep-wrap > :not(.ui-keep):not(.ui-keep-wrap) { display: none !important; }
body.agent-nolabels #labels { display: none !important; }
/* Навигация презентации и кнопки агента — внизу по центру (видны и при hide_ui) */
#agent-nav { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 52; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px); padding: 6px 8px; border-radius: 10px; background: rgba(13, 20, 36, 0.78); border: 1px solid #2c3a5c; color: #d6e2fb; font: 13px system-ui, sans-serif; }
#agent-nav[hidden] { display: none; }
#agent-nav .pl-err { color: #ffb070; }
#agent-nav .pl-list { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); max-height: 50vh; overflow-y: auto; padding: 6px; border-radius: 10px; background: rgba(13, 20, 36, 0.95); border: 1px solid #2c3a5c; text-align: left; }
#agent-nav .pl-h { padding: 4px 8px 2px; font-size: 11px; color: #8fa3c8; text-transform: uppercase; letter-spacing: 0.06em; }
#agent-nav .pl-row { padding: 4px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#agent-nav .pl-row.step { font: 12px ui-monospace, Consolas, monospace; color: #c3cfe6; }
#agent-nav .pl-row:hover { background: #22304f; }
#agent-nav .pl-row.on { background: #2a3d66; color: #ffe08a; }
#agent-nav button { background: rgba(30, 44, 74, 0.9); color: #e8eefb; border: 1px solid #3a4c74; border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; }
#agent-nav button:hover:not([disabled]) { background: #2a3d66; }
#agent-nav button[disabled] { opacity: 0.35; cursor: default; }
#agent-nav span { padding: 0 6px; font-variant-numeric: tabular-nums; }
#agent-box .ag-menu { position: relative; }
#agent-box .ag-drop { position: absolute; bottom: calc(100% + 6px); right: 0; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 8px; background: rgba(13, 20, 36, 0.95); border: 1px solid #2c3a5c; white-space: nowrap; }
#agent-box .ag-drop[hidden] { display: none; }
body.agent-drop::after { content: ""; position: fixed; inset: 8px; border: 2px dashed #ffe08a; border-radius: 12px; pointer-events: none; z-index: 60; }
#agent-box[hidden] { display: none !important; }
#agent-box a { color: #9cc4ff; font-size: 12px; text-decoration: none; }
#agent-box a:hover { text-decoration: underline; }
#agent-box code { cursor: pointer; color: #ffe08a; user-select: all; }
#refresh-note { left: 50%; top: 58px; transform: translateX(-50%); padding: 6px 10px; display: flex; gap: 8px; align-items: center; color: #9cc4ff; }
#track-tip { position: fixed; pointer-events: none; z-index: 30; background: rgba(12, 17, 30, 0.95); border: 1px solid #2b3a5c; border-radius: 6px; padding: 3px 8px; white-space: nowrap; font-size: 12px; }
@media (max-width: 760px) {
  #side { width: auto; right: 10px; bottom: auto; max-height: 55%; gap: 6px; }
  /* Узкое окно на компьютере: панель во всю ширину — под значками «📅 📰» справа вверху, а не под ними
     (пользователь 2026-10-10: значки закрывали «∞ заставка» и RU | EN) */
  body:not(.phone) #side { top: 64px; max-height: calc(100% - 64px - 96px); } /* снизу — до полосы времени */
  /* Подсказка про мышь и клавиатуру на телефоне не нужна — место списку групп */
  .hint { display: none; }
  #groups { min-height: 120px; }
  .tools button { font-size: 11px; padding: 3px 7px; }
  /* Полоса времени — внизу, во всю ширину (кроме кнопки ☰ справа), при нехватке места — в две строки */
  #top { top: auto; bottom: 10px; left: 10px; right: 54px; transform: none; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  #speeds { flex: 1 0 100%; }
  .tsl { flex: 1; width: auto; }
  #card { top: auto; bottom: 96px; left: 10px; right: 10px; width: auto; max-height: 40%; }
  /* Пояснения — во всю ширину над полосой времени (без сдвига под боковую панель — она сверху) */
  .warn { left: 10px; right: 54px; bottom: 96px; transform: none; max-width: none; font-size: 11px; }
}
/* Переключатель языка RU | EN — в заголовке панели, справа */
.lang-switch { display: flex; }
.lang-switch select { font: 11px system-ui, sans-serif; color: #dfe6f5; background: #0e1630; border: 1px solid #4a90e2; border-radius: 6px; padding: 1px 4px; cursor: pointer; color-scheme: dark; }

/* Демо (кнопка «▶ демо»): только сцена и подписи */
/* Заставка (tour.ts): панели, подсказки и курсор спрятаны */
body.tour #side, body.tour #top, body.tour #card, body.tour #hover, body.tour #status, body.tour #refresh-note, body.tour #track-tip, body.tour .warn, body.tour #ui-toggle, body.tour #astro-btn, body.tour #mini-speed,
body.tour #gal-mini, body.tour #gal-back, body.tour #astro-ghost, body.tour #astro-mark, body.tour #scale-note { display: none !important; } /* заставка — без интерфейса (и галактического) */
body.tour { cursor: none; }
/* Заставка (tour.ts): кнопка у заголовка; затемнение на склейках, подпись внизу слева, подсказка */
#tour-btn { margin-left: auto; margin-right: 8px; font: 11px system-ui, sans-serif; color: #dfe6f5; background: rgba(160, 110, 230, 0.15); border: 1px solid #a06ee6; border-radius: 6px; padding: 1px 8px; cursor: pointer; }
#tour-btn:hover { background: rgba(160, 110, 230, 0.3); }
#tour-fade { position: fixed; inset: 0; background: #000; opacity: 1; pointer-events: none; z-index: 50; }
#tour-cap { position: fixed; left: 48px; bottom: 44px; opacity: 0; pointer-events: none; z-index: 51; color: #eef2fb; font-family: system-ui, sans-serif; text-shadow: 0 1px 8px #000; }
#tour-cap b { display: block; font-size: 38px; font-weight: 200; letter-spacing: 0.12em; text-transform: uppercase; }
#tour-cap span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.08em; color: #aab6cf; font-variant-numeric: tabular-nums; }
#tour-hint { position: fixed; right: 24px; bottom: 20px; z-index: 51; pointer-events: none; font: 12px system-ui, sans-serif; color: #8fa3c8; transition: opacity 1s; }
#tour-hint.gone { opacity: 0; }
#tour-cap { max-width: min(560px, calc(100vw - 64px)); }
#tour-cap p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: #d3dbea; font-weight: 300; }
#tour-cap p:empty { display: none; }
/* Панель заставки: ⛶, звук, громкость, стоп — видна, пока двигают мышью */
#tour-ctl { position: fixed; top: 16px; right: 16px; z-index: 52; display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(8, 12, 22, 0.6); border: 1px solid rgba(143, 163, 200, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
body.tour-awake #tour-ctl { opacity: 1; pointer-events: auto; }
body.tour.tour-awake { cursor: default; }
#tour-ctl button { font: 13px system-ui, sans-serif; color: #dfe6f5; background: rgba(74, 144, 226, 0.15); border: 1px solid #4a6fa8; border-radius: 6px; padding: 3px 9px; cursor: pointer; }
#tour-ctl button:hover { background: rgba(74, 144, 226, 0.35); }
#tour-ctl .stop { border-color: #c0616a; background: rgba(200, 80, 90, 0.2); }
#tour-ctl input { width: 110px; accent-color: #a06ee6; cursor: pointer; }
/* меню мелодий у кнопки ♪ — выпадает вниз */
#tour-ctl .thm-wrap { position: relative; display: inline-flex; }
/* «☰ Сцены»: все сцены заставки по разделам, прокрутка */
#tour-ctl .sc-wrap { position: relative; display: inline-flex; }
#tour-ctl .sc-menu { position: absolute; top: calc(100% + 6px); right: 0; display: flex; flex-direction: column; gap: 1px; width: 300px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 8px; background: rgba(8, 12, 22, 0.92); border: 1px solid rgba(143, 163, 200, 0.3); }
#tour-ctl .sc-menu[hidden] { display: none; }
#tour-ctl .sc-menu b { font: 600 11px system-ui, sans-serif; color: #8fa3c8; text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 4px 3px; }
#tour-ctl .sc-menu b:first-child { margin-top: 2px; }
#tour-ctl .sc-menu button { text-align: left; border-color: transparent; background: transparent; padding: 3px 8px; }
#tour-ctl .sc-menu button:hover { border-color: #4a6fa8; background: rgba(74, 144, 226, 0.3); }
@media (max-width: 600px) { #tour-ctl { flex-wrap: wrap; justify-content: flex-end; left: 16px; } #tour-ctl .sc-menu { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; } }
#tour-ctl .thm-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 5px; border-radius: 8px; background: rgba(8, 12, 22, 0.88); border: 1px solid rgba(143, 163, 200, 0.3); }
#tour-ctl .thm-menu[hidden] { display: none; }
#tour-ctl .thm-menu button { text-align: left; border-color: transparent; background: transparent; white-space: nowrap; }
#tour-ctl .thm-menu button.on { border-color: #4a6fa8; background: rgba(74, 144, 226, 0.3); }
/* Кольцо вокруг гостя / аппарата: крошечную точку иначе не найти */
#tour-mark { position: fixed; left: 0; top: 0; z-index: 49; pointer-events: none; }
#tour-mark i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 1.5px solid #9dff5c; border-radius: 50%; box-shadow: 0 0 10px rgba(157, 255, 92, 0.6); animation: tour-pulse 1.8s ease-in-out infinite; }
#tour-mark span { position: absolute; left: 20px; top: -9px; white-space: nowrap; font: 13px system-ui, sans-serif; color: #d9ffc4; text-shadow: 0 1px 4px #000; }
@keyframes tour-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.55; } }
@media (max-width: 600px) { #agent-cap, #tour-cap { left: 16px; bottom: 24px; max-width: calc(100vw - 32px); max-height: 38vh; overflow: hidden; } #agent-cap b, #tour-cap b { font-size: 22px; } #agent-cap p, #tour-cap p { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; } }
/* телефон в альбомной ориентации: экран низкий — подпись ещё теснее */
@media (max-height: 480px) { #agent-cap, #tour-cap { max-height: 45vh; overflow: hidden; } #agent-cap p, #tour-cap p { font-size: 12px; -webkit-line-clamp: 3; line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; } }
/* Дерево тел под группами «Солнце и планеты», «Карликовые»: ▸ — раскрыть, щелчок по телу — лететь */
.tchev { width: 12px; flex: none; color: #8fa3c8; text-align: center; cursor: pointer; }
.tchev:hover { color: #dfe6f5; }
.tree { padding-left: 18px; }
.bi { display: flex; align-items: center; gap: 7px; padding: 2px 4px; border-radius: 5px; cursor: pointer; }
.bi:hover { background: #151e33; }
.bi.on { background: #1c2a4a; }
.bi.sel { background: #26406e; box-shadow: inset 3px 0 0 #6fb4ff; } /* выбранное тело — дерево раскрыто до него */
.bi.sel .gn { color: #fff; font-weight: 600; }
.bi .dot { width: 7px; height: 7px; }

/* Спрятать все панели (кнопка в углу, клавиша H) — чистый вид */
#ui-toggle { position: fixed; right: 10px; bottom: 10px; z-index: 7; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); color: #d6e2fb; font-size: 15px; cursor: pointer; }
#ui-toggle:hover { background: #1a2440; }
/* …и пояснения внизу (прогноз, созерцание) — чистый вид без текста */
body.clean #side, body.clean #top, body.clean #refresh-note, body.clean .warn { display: none; } /* карточка объекта — и при спрятанном интерфейсе: щёлкнул — видишь, что это (2026-10-15) */

/* Пауза пробелом: бегунок на выбранной скорости мигает, часы — тоже */
@keyframes pause-blink { 50% { opacity: 0.35; } }
.tsl.paused .tslider::-webkit-slider-thumb { border-style: dashed; animation: pause-blink 1.2s steps(2) infinite; }
.tsl.paused .tslider::-moz-range-thumb { border-style: dashed; animation: pause-blink 1.2s steps(2) infinite; }
.tsl.paused .marks .on { animation: pause-blink 1.2s steps(2) infinite; }
#clock.paused { animation: pause-blink 1.2s steps(2) infinite; }
/* Время идёт — знак паузы в середине как обычная отметка; вживую — «● Вживую» вместо «Сейчас» */
.tsl.running .marks .p { color: #2f3c5e; }
#now-btn { white-space: nowrap; }
#now-btn.live, #mini-pause.live { color: #ff8a8a; border-color: #6e3340; }
/* Свёрнутый вид (панели спрятаны): [−] [пауза · скорость] [+] внизу по центру */
/* Джойстик полёта на сенсорном экране (0085): крестовина = WASD, справа от неё ⇧/⇩ = R/F; в чистом виде, над полоской времени */
#cam-pad { display: none; position: fixed; left: 10px; bottom: 58px; z-index: 7; gap: 10px; align-items: center; user-select: none; -webkit-user-select: none; touch-action: none; }
body.touch:is(.clean, .astro) #cam-pad { display: grid; }
body.tour #cam-pad { display: none !important; }
body.astro-post #cam-pad :is(.ud, .cross > :not(.i)) { visibility: hidden; } /* обзор с точки — только смотреть; «i» остаётся */ /* обзор с точки — только смотреть */
body.astro #cam-pad { bottom: 130px; }
/* Справа внизу, под правую руку: джойстик взгляда (стрелки) и + / − (держать — наезд камеры) — зеркально левому */
/* узкий телефон: оба джойстика — кнопки поменьше, чтобы не сошлись */
#zoom-pad { display: none; position: fixed; right: 10px; bottom: 58px; z-index: 7; gap: 10px; align-items: center; user-select: none; -webkit-user-select: none; touch-action: none; }
body.touch:is(.clean, .astro) #zoom-pad { display: grid; }
body.tour #zoom-pad { display: none !important; }
body.astro-post #zoom-pad :is(.ud, .cross > :not(.i)) { visibility: hidden; }
body.astro #zoom-pad { bottom: 130px; }
#zoom-pad .ud { display: flex; flex-direction: column; gap: 12px; }
#zoom-pad .cross button { border-radius: 10px; color: #9cc4ff; font-size: 18px; } /* взгляд — голубые стрелки, полёт — белые */
#zoom-pad button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.92); color: #d6e2fb; font-size: 24px; line-height: 1; padding: 0; touch-action: none; -webkit-touch-callout: none; }
#zoom-pad button.on { background: #26406e; border-color: #4a90e2; } /* над панелью космонавта */
/* На сенсорном экране клавиш нет — и подсказок про них */
body.touch #astro-hud :is(.ah-keys, .ah-postkeys) { display: none !important; }

:is(#cam-pad, #zoom-pad) .cross { display: grid; grid-template: repeat(3, 44px) / repeat(3, 44px); gap: 6px; /* промежутки — чтобы не попасть пальцем в соседнюю */ }
:is(#cam-pad, #zoom-pad) .cross .w { grid-area: 1 / 2; } :is(#cam-pad, #zoom-pad) .cross .a { grid-area: 2 / 1; } :is(#cam-pad, #zoom-pad) .cross .d { grid-area: 2 / 3; } :is(#cam-pad, #zoom-pad) .cross .s { grid-area: 3 / 2; }
#cam-pad .ud { display: flex; flex-direction: column; gap: 12px; }
#cam-pad button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.7); color: #d6e2fb; font-size: 18px; line-height: 1; padding: 0; touch-action: none; -webkit-touch-callout: none; }
#cam-pad .ud button { border-radius: 50%; color: #9cc4ff; }
#cam-pad button.on { background: #26406e; border-color: #4a90e2; }
#mini-speed { display: none; position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 7; gap: 6px; }
body.clean #mini-speed { display: flex; }
#mini-speed button { height: 36px; min-width: 40px; padding: 0 12px; border-radius: 18px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); color: #d6e2fb; font-size: 14px; cursor: pointer; }
#mini-speed button:hover { background: #1a2440; }
#mini-pause { min-width: 120px !important; font-size: 13px !important; }
#mini-pause.paused { color: #ffd166; animation: pause-blink 1.2s steps(2) infinite; }
/* Космонавт (0060): человечек над ✕, перетаскивание, свой интерфейс */
#astro-btn { position: fixed; right: 10px; bottom: 52px; z-index: 7; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); cursor: grab; display: flex; align-items: center; justify-content: center; padding: 0; }
#astro-btn svg, #astro-ghost svg { fill: #ffcf4a; }
#astro-btn:hover { background: #1a2440; }
/* VR (0071): видна, только если браузер умеет immersive-vr (или ?vrpanel — проба без шлема) */
#vr-btn { position: fixed; right: 10px; bottom: 92px; z-index: 7; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); color: #cfe0ff; font: 600 11px system-ui, sans-serif; padding: 0; cursor: pointer; }
#vr-btn[hidden], body.tour #vr-btn, body.astro #vr-btn { display: none; }
#vr-btn:hover { background: #1a2440; }
#vr-btn.on { background: #1f3a6b; border-color: #4a90e2; }
/* выход из VR — на полосе времени, видна только в шлеме (на снимке панели — тоже: у снимка body.xr) */
#vr-exit { display: none; border-color: rgba(255, 140, 120, 0.6); color: #ffc2b8; }
body.xr #vr-exit { display: inline-block; }
/* панель тестов VR (0071): только в шлеме и в пробе ?vrpanel — снимается в 3D, на странице не видна */
#vr-test { display: none; left: 10px; bottom: 10px; width: 320px; }
body:is(.xr, .xr-hide) #vr-test { display: block; }
#vr-test h3 { margin: 0 0 6px; font-size: 14px; }
#vr-test .vrt-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
#vr-test .vrt-row b { font-weight: 500; color: #8fa3c8; margin-right: 2px; }
#vr-test button { padding: 4px 8px; }
#vr-test .vrt-bench { width: 100%; padding: 7px; }
#vr-test .sub { color: #8fa3c8; font-size: 11px; margin-top: 6px; }
/* бинокль космонавта (0060): сетка поверх вида — только на экране (в снимок не идёт); кнопки — в полосе сверху */
#bino { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
#bino[hidden] { display: none; }
/* видоискатель: затемнение к краям и уголки-скобки, как у камеры */
#bino { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
#bino .bino-c { position: absolute; width: 46px; height: 46px; border: 0 solid rgba(170, 240, 255, 0.55); }
#bino .bino-c.tl { left: 7%; top: 9%; border-width: 2px 0 0 2px; }
#bino .bino-c.tr { right: 7%; top: 9%; border-width: 2px 2px 0 0; }
#bino .bino-c.bl { left: 7%; bottom: 9%; border-width: 0 0 2px 2px; }
#bino .bino-c.br { right: 7%; bottom: 9%; border-width: 0 2px 2px 0; }
#bino .bino-bar { position: absolute; left: 50%; top: 10px; /* у космонавта верхних кнопок нет — строка бинокля у самого верха (0133) */ transform: translateX(-50%); display: flex; gap: 8px; align-items: center; pointer-events: auto; color: #a8f2ff; font: 600 15px system-ui, sans-serif; text-shadow: 0 0 6px rgba(90, 220, 255, 0.8); }
#bino .bino-bar button { padding: 4px 10px; }
#bino .bino-bar button.on { border-color: #5ad6ff; box-shadow: 0 0 8px rgba(90, 214, 255, 0.7); background: rgba(90, 214, 255, 0.18); } /* слежение включено */
/* проба VR без шлема: настоящие панели невидимы (место и разметка — те же, их снимают в 3D) */
body.xr-hide :is(#side, #card, #top, #hover, #labels, #vr-test) { visibility: hidden; }
#astro-ghost { position: fixed; z-index: 20; pointer-events: none; transform: translate(-50%, -100%); }
#astro-mark { position: fixed; z-index: 19; pointer-events: none; width: 26px; height: 10px; margin: -5px 0 0 -13px; border: 2px solid #ffcf4a; border-radius: 50%; box-shadow: 0 0 8px #ffcf4a; }
body.astro-drag, body.astro-drag * { cursor: grabbing !important; }
/* Режим космонавта прячет обычный интерфейс, кроме панели времени (#top: ускорение — всегда под рукой);
   «Интерфейс» (astro-ui) возвращает его — кроме человечка */
body.astro #astro-btn, body.astro:not(.astro-ui):not(.menu) #side, body.astro:not(.astro-ui):not(.info) #card, body.astro:not(.astro-ui) :is(#ui-toggle, #star-labels, #refresh-note, #track-tip, #scale-note) { display: none !important; }
/* космонавт без «Интерфейса»: из подписей — только выбранная цель (кольцо и имя) */
/* указатели Галактики (0070) — и космонавту; выделение одинаково во всех видах (0132): кольца и подписи выбранных звёзд, пульсаров,
   галактик (.sel-ring, .lit) и подсказка под курсором (.neb-tip) — тоже (пользователь 2026-10-24: «нет кружочка, что точка выделена») */
body.astro:not(.astro-ui) #labels > :not(.ring):not(.sel):not(.gal-keep):not(.sel-ring):not(.lit):not(.neb-tip) { display: none !important; }
/* надпись барьера на стекле шлема (от первого лица): голограмма чуть выше центра, свечение без фона */
#astro-visor-msg { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); max-width: min(520px, 80vw); z-index: 8; pointer-events: none; text-align: center; font-size: 15px; line-height: 1.4; color: #9fe6ff; text-shadow: 0 0 6px rgba(80, 200, 255, 0.8), 0 0 14px rgba(40, 140, 255, 0.5); letter-spacing: 0.02em; }
#astro-visor-msg[hidden] { display: none; }
body.tour #astro-hud, body.tour #astro-visor-msg { display: none !important; } /* заставка ведёт космонавта сама (0055) */
#astro-hud { position: fixed; inset: 0; pointer-events: none; z-index: 8; color: #dfe6f5; font-size: 13px; }
#astro-hud [hidden] { display: none !important; }
/* Одна панель: данные, шкала + шар + ориентация, ряд кнопок — на общем фоне, разделены линиями */
#astro-hud .ah-dash { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(8, 12, 22, 0.78); border: 1px solid #2c3a5c; border-radius: 14px; padding: 8px 10px; pointer-events: auto; }
/* свернуть середину панели (шкала, шар, SAS) — строка данных и кнопки остаются */
/* свёрнуто: панель — только строка данных и кнопки; шкала скорости — слева от неё, шар и кнопки SAS — справа */
#astro-hud .ah-dash.min .ah-row { position: absolute; inset: 0; pointer-events: none; }
#astro-hud .ah-dash.min .ah-row > * { position: absolute; bottom: 0; pointer-events: auto; }
#astro-hud .ah-dash.min .ah-gauge { right: calc(100% + 10px); }
#astro-hud .ah-dash.min .ah-ball { left: calc(100% + 10px); width: 110px; height: 110px; }
#astro-hud .ah-dash.min .ah-sas { left: calc(100% + 130px); align-self: auto; }
/* свёрнуто: кнопки SAS — в два ряда (пары одна над другой), низкий блок рядом с шаром */
#astro-hud .ah-dash.min .ah-sas { bottom: 25px; /* по центру шара (110 − 60) / 2 */ grid-template-columns: none; grid-template-rows: repeat(2, 28px); grid-auto-flow: column; grid-auto-columns: 34px; }
#astro-hud .ah-sas > :last-child:nth-child(odd) { grid-column: span 2; width: auto; } /* последняя — во всю ширину, без дырки */
#astro-hud .ah-dash.min .ah-gauge .ah-bar { height: 80px; }
#astro-hud .ah-min { position: absolute; top: 4px; right: 6px; width: 20px; height: 18px; padding: 0; line-height: 16px; font-size: 11px; background: transparent; border: 1px solid #2c3a5c; border-radius: 5px; color: #9fb3d9; cursor: pointer; }
#astro-hud .ah-dash.min .ah-min { transform: rotate(180deg); }
/* ширина панели постоянная — от длины текста не меняется (кнопки не прыгают); длинный текст обрезается */
#astro-hud .ah-dash { width: 440px; box-sizing: border-box; }
#astro-hud .ah-top { overflow: hidden; text-overflow: ellipsis; padding: 0 22px 6px; border-bottom: 1px solid #2c3a5c; align-self: stretch; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
#astro-hud .ah-st { color: #7cf29a; }
#astro-hud .ah-row { display: flex; align-items: flex-end; gap: 10px; }
#astro-hud .ah-ball { width: 180px; height: 180px; display: block; }
/* газ (N₂): узкая полоса слева от шкалы скорости, мало — красная */
#astro-hud .ah-gas { display: flex; flex-direction: column; align-items: center; font-size: 10px; pointer-events: auto; }
#astro-hud .ah-gbar { position: relative; width: 8px; height: 140px; border: 1px solid #4a5f8c; border-radius: 3px; overflow: hidden; background: rgba(20, 28, 48, 0.8); }
#astro-hud .ah-gfill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#9fe9fb, #3aa7d8); }
#astro-hud .ah-gas.low .ah-gfill { background: #e0564f; }
#astro-hud .ah-gas { cursor: pointer; position: relative; }
/* подписи под полосами — одной высоты, чтобы верх полос N₂ и скорости совпадал */
#astro-hud .ah-gp, #astro-hud .ah-gv { height: 18px; line-height: 18px; }
#astro-hud .ah-gl2, #astro-hud .ah-gl { height: 12px; line-height: 12px; }
#astro-hud .ah-ginf { display: none; position: absolute; top: -13px; right: -9px; font-size: 13px; color: #ffd38a; }
#astro-hud .ah-gas.inf .ah-ginf { display: block; }
#astro-hud .ah-gas.inf .ah-gfill { background: linear-gradient(#ffd38a, #d9902f); } /* бесконечный: полоса — израсходованное */
#astro-hud .ah-gp { margin-top: 4px; font-variant-numeric: tabular-nums; }
#astro-hud .ah-gl2 { opacity: 0.6; }
#astro-hud .ah-dash.min .ah-gas { right: calc(100% + 52px); }
#astro-hud .ah-dash.min .ah-gbar { height: 80px; }
#astro-hud .ah-gauge { display: flex; flex-direction: column; align-items: center; }
#astro-hud .ah-bar { position: relative; width: 14px; height: 140px; border: 1px solid #4a5f8c; border-radius: 4px; overflow: hidden; background: rgba(20, 28, 48, 0.8); }
#astro-hud .ah-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffcf4a, #7cf29a); }
#astro-hud .ah-bar i { position: absolute; left: 0; right: 0; height: 1px; background: #8fa3c8; opacity: 0.6; }
#astro-hud .ah-gv { font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }
#astro-hud .ah-gl { color: #8fa3c8; font-size: 10px; }
#astro-hud .ah-sas { display: grid; grid-template-columns: repeat(2, 34px); gap: 4px; align-self: center; pointer-events: auto; position: relative; }
/* what the field took in a hit on the ground flies off the hit and fades (astro/damage.ts, 0213) */
.ah-dmg { position: fixed; z-index: 30; transform: translate(-50%, -50%); pointer-events: none; font: 700 22px/1 system-ui, sans-serif; color: #ffd27a; text-shadow: 0 0 6px #ff9a1f, 0 1px 3px #000; animation: ah-dmg 1.5s ease-out forwards; white-space: nowrap; }
@keyframes ah-dmg { 0% { opacity: 0; margin-top: 0; } 12% { opacity: 1; } 100% { opacity: 0; margin-top: -90px; } }
#astro-hud .ah-grav { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 12px/1.2 system-ui, sans-serif; color: #9fe8ff; text-shadow: 0 0 3px #000; pointer-events: auto; }
#astro-hud .ah-sas button { width: 34px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; }
#astro-hud .ah-btns { display: flex; align-items: center; gap: 4px; pointer-events: auto; padding-top: 8px; border-top: 1px solid #2c3a5c; align-self: stretch; justify-content: center; }
#astro-hud .ah-btns button { width: 34px; height: 30px; padding: 0; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
#astro-hud .ah-btns button[data-v] { opacity: 0.5; }
#astro-hud .ah-btns button[disabled] { opacity: 0.25; cursor: default; }
#astro-hud .ah-sep { width: 1px; height: 22px; background: #2c3a5c; margin: 0 3px; }
#astro-hud button.on { background: #1f3a6b; border-color: #ffcf4a; opacity: 1 !important; }
#astro-hud .ah-keys { position: absolute; left: 12px; bottom: 58px; /* над кнопкой языка (0133) */ max-width: 360px; color: #8fa3c8; font-size: 11px; background: rgba(8, 12, 22, 0.6); padding: 4px 8px; border-radius: 6px; }
body.astro.astro-ui #astro-hud .ah-keys { display: none; }
#astro-hud .ah-dash > .ah-anc { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 320px; max-height: 50vh; overflow: auto; background: rgba(8, 12, 22, 0.94); border: 1px solid #2c3a5c; border-radius: 10px; padding: 6px; pointer-events: auto; z-index: 2; }
#astro-hud .ah-anc-q { width: 100%; box-sizing: border-box; margin-bottom: 4px; }
#astro-hud .ah-anc .r { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; cursor: pointer; }
#astro-hud .ah-anc .r:hover { background: #1a2440; }
#astro-hud .ah-anc .r.cur { color: #ffcf4a; }
#astro-hud .ah-anc .r.none { color: #8fa3c8; cursor: default; }
#astro-hud .ah-anc .r .d { margin-left: auto; color: #8fa3c8; font-variant-numeric: tabular-nums; white-space: nowrap; }
#astro-hud .ah-anc .r button { padding: 0 5px; font-size: 13px; }

/* Космонавт от первого лица: интерфейс — проекция на стекло шлема (голограмма): прозрачная панель, светящиеся
   голубые контуры и текст, строки развёртки, лёгкий наклон (изогнутое стекло) и мерцание */
@keyframes astro-holo { 0%, 100% { opacity: 0.93; } 47% { opacity: 0.86; } 52% { opacity: 0.95; } }
body #astro-hud .ah-dash {
  background: rgba(10, 40, 60, 0.16);
  border-color: rgba(90, 220, 255, 0.55);
  box-shadow: 0 0 18px rgba(80, 200, 255, 0.25), inset 0 0 26px rgba(80, 200, 255, 0.12);
  color: #a8f2ff;
  text-shadow: 0 0 6px rgba(90, 220, 255, 0.85);
  transform: translateX(-50%) perspective(900px) rotateX(9deg);
  mix-blend-mode: screen;
  animation: astro-holo 3.7s ease-in-out infinite;
}
body #astro-hud .ah-dash::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(120, 230, 255, 0.07) 0 1px, transparent 1px 3px);
}
body #astro-hud .ah-top { border-bottom-color: rgba(90, 220, 255, 0.4); }
body #astro-hud button {
  background: rgba(20, 80, 110, 0.12); border-color: rgba(90, 220, 255, 0.5); color: #a8f2ff;
  box-shadow: 0 0 6px rgba(80, 200, 255, 0.25);
}
body #astro-hud button.on { background: rgba(60, 190, 240, 0.28); box-shadow: 0 0 10px rgba(90, 220, 255, 0.7); }
body #astro-hud .ah-ball { filter: drop-shadow(0 0 7px rgba(90, 220, 255, 0.65)) saturate(0.75) brightness(1.1); opacity: 0.88; }
body #astro-hud .ah-keys { color: #9fe9fb; text-shadow: 0 0 5px rgba(90, 220, 255, 0.7); background: rgba(10, 40, 60, 0.12); mix-blend-mode: screen; }
/* от первого лица и остальные панели (левая, карточка, время) — голограмма на стекле, как панель космонавта.
   Стекло матовое и тёмное (размытие + затемнение того, что за ним): на плотном поле точек текст терялся
   (пользователь, скрин); без «screen» — иначе фон за панелью не затемнить. Под мышью — почти непрозрачная. */
body :is(#side, #card, #top) {
  background: rgba(6, 22, 36, 0.55);
  border-color: rgba(90, 220, 255, 0.5);
  box-shadow: 0 0 18px rgba(80, 200, 255, 0.22), inset 0 0 26px rgba(80, 200, 255, 0.1);
  color: #a8f2ff;
  text-shadow: 0 0 6px rgba(90, 220, 255, 0.6), 0 1px 2px #000;
  animation: astro-holo 3.7s ease-in-out infinite;
  backdrop-filter: blur(8px) brightness(0.45) saturate(0.7);
  -webkit-backdrop-filter: blur(8px) brightness(0.45) saturate(0.7);
  transition: background-color 0.25s;
}
body :is(#side, #card, #top):is(:hover, :focus-within) { background: rgba(6, 18, 30, 0.88); }
body :is(#side, #card, #top) :is(button, input) {
  background: rgba(20, 80, 110, 0.12); border-color: rgba(90, 220, 255, 0.45); color: #a8f2ff;
}

/* Светофильтры шлема (0082, ui/filters.ts): ряд под кнопками SAS — только от первого лица */
#astro-hud .ah-flt { display: flex; gap: 4px; justify-content: flex-end; align-self: flex-end; pointer-events: auto; }
#astro-hud .ah-dash.min .ah-flt { position: absolute; left: calc(100% + 130px); bottom: -8px; }
/* со стороны — только «без фильтра» и камера (стёкла шлема — от первого лица) */
body:not(.astro-first) #astro-hud .ah-flt button:not(.f-none):not(.f-cam) { display: none; }
#astro-hud .ah-flt button { width: 34px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center; }
#astro-hud .ah-flt i { display: block; width: 13px; height: 13px; border-radius: 50%; }
#astro-hud .ah-flt .f-none i { border: 1px dashed #8fb7d8; width: 11px; height: 11px; }
#astro-hud .ah-flt .f-sun i { background: radial-gradient(circle, #ffb24a 0 45%, #2a1600 46%); box-shadow: 0 0 0 1px #6b4a1a; }
#astro-hud .ah-flt .f-red i { background: #e0372c; }
#astro-hud .ah-flt .f-blue i { background: #3557ff; }
#astro-hud .ah-flt button.on { border-color: #ffd36b; box-shadow: 0 0 6px rgba(255, 211, 107, 0.6); }
#astro-hud .ah-flt .f-uv i { background: radial-gradient(circle, #d9b8ff, #6a2bd8); }
#astro-hud .ah-flt .f-sdo i { background: radial-gradient(circle, #ffe07a 20%, #c86a1a 55%, #2a1206); } /* SDO 171/193 Å — золотой */
#astro-hud .ah-flt .f-ha i { background: radial-gradient(circle, #ff4a32 0 42%, #1a0000 43% 58%, #ff3a22 59% 66%, transparent 67%); box-shadow: 0 0 0 1px #7a1a12; }
#astro-hud .ah-flt .f-cam i { background: radial-gradient(circle, #9fd0ff 0 25%, #1b2733 26% 55%, #c8d2dc 56% 66%, transparent 67%); box-shadow: 0 0 0 1px #6f8396; }
/* Щиток (0082): стекло действует в кадре (render/filter-draw.ts), здесь — только его кромка, на доле --k сверху */
#visor-shield { position: fixed; left: 0; right: 0; top: 0; height: calc(var(--k, 0) * 100%); z-index: 5; pointer-events: none;
  border-bottom: 3px solid rgba(190, 220, 240, 0.55); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
#visor-shield:not(.on) { display: none; }
#visor-shield.full { border-bottom-color: transparent; box-shadow: none; }
body:not(.astro) #visor-shield { display: none; }

/* Обзор с точки (0083): перетаскивание человечка — отметка, линейка по нормали, координаты; в режиме — урезанная панель */
#astro-drop { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 8; pointer-events: none; }
#astro-drop[hidden] { display: none; }
#astro-drop circle { fill: #ffd36b; stroke: #1b1408; stroke-width: 1.5; }
#astro-drop line { stroke: #ffd36b; stroke-width: 2; }
#astro-drop polygon.ring { fill: rgba(255, 211, 107, 0.18); stroke: #ffd36b; stroke-width: 2; }
#astro-drop text { fill: #fff3d0; font: 600 13px system-ui, sans-serif; paint-order: stroke; stroke: rgba(0, 0, 0, 0.8); stroke-width: 3px; }
#astro-drop text.no { fill: #9fb4cc; }
body.astro-dragging, body.astro-dragging * { cursor: grabbing !important; }
#astro-hud .ah-btns .ah-postlink, #astro-hud .ah-btns .ah-poststars, #astro-hud .ah-postkeys { display: none; }
body.astro-post #astro-hud .ah-btns .ah-postlink { display: inline-flex; width: auto; padding: 0 10px; white-space: nowrap; }
body.astro-post #astro-hud .ah-btns .ah-poststars { display: inline-flex; }
body.astro-post #astro-hud .ah-btns > button:not([data-a="exit"]):not([data-a="bino"]):not(.ah-postlink):not(.ah-poststars),
body.astro-post #astro-hud .ah-btns > .ah-sep,
body.astro-post #astro-hud .ah-row,
body.astro-post #astro-hud .ah-keys,
body.astro-post #astro-hud .ah-min { display: none; }
body.astro-post #astro-hud .ah-postkeys { display: block; position: absolute; left: 12px; bottom: 58px; max-width: 360px; color: #8fa3c8; font-size: 11px; background: rgba(8, 12, 22, 0.6); padding: 4px 8px; border-radius: 6px; }
body.astro-post #astro-hud .ah-dash { width: auto; }
body.astro-post #astro-hud .ah-top br, body.astro-post #astro-hud .ah-sp, body.astro-post #astro-hud .ah-st { display: none; }
body.astro-post #astro-hud .ah-flt, body.astro-post #astro-hud .ah-dash.min .ah-flt { position: static; align-self: center; }
#astro-drop .ghost circle, #astro-drop .ghost path { fill: #ffcf4a; stroke: rgba(0, 0, 0, 0.6); stroke-width: 1; }
/* Подсказка у человечка: при наведении, в первый раз — сама */
#astro-tip { position: fixed; right: 54px; bottom: 44px; z-index: 7; width: 300px; padding: 9px 12px; border-radius: 10px; background: rgba(8, 14, 26, 0.94); border: 1px solid #3a4f78; color: #cfe0ff; font: 12px/1.45 system-ui, sans-serif; pointer-events: none; opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; }
#astro-tip b { color: #ffcf4a; }
#astro-tip.show { opacity: 1; transform: none; pointer-events: auto; } /* при первом нажатии, до OK (не при наведении) */
#astro-tip .tip-ok { display: flex; justify-content: flex-end; margin-top: 8px; }
#astro-tip .tip-ok button { padding: 4px 18px; font-weight: 600; border-color: #ffcf4a; color: #ffcf4a; }
body.astro #astro-tip, body.astro-dragging #astro-tip, body.tour #astro-tip { display: none; }
body.gal-time:not(.astro) #astro-tip { display: none; }
/* Панель космонавта на узком экране — по ширине; свёрнутая — только строка данных и кнопки (шкала, шар, SAS
   не помещаются по бокам), развёрнутая — шар меньше, кнопки переносятся; джойстик — над развёрнутой панелью.
   В конце файла: перекрывает обычные размеры панели */
@media (max-width: 600px) {
  body #astro-hud .ah-dash { width: calc(100vw - 16px); bottom: 8px; padding: 6px; }
  #astro-hud .ah-dash.min :is(.ah-row, .ah-flt) { display: none; }
  #astro-hud .ah-ball { width: min(180px, 40vw); height: min(180px, 40vw); }
  #astro-hud .ah-gbar, #astro-hud .ah-bar { height: min(140px, 30vw); }
  #astro-hud .ah-row { gap: 6px; }
  #astro-hud .ah-flt { flex-wrap: wrap; justify-content: center; align-self: center; }
  #astro-hud .ah-btns { flex-wrap: wrap; row-gap: 4px; gap: 3px; }
  #astro-hud .ah-btns button { width: 30px; }
  #astro-hud .ah-sep { margin: 0 1px; }
  #astro-hud .ah-top { font-size: 11px; white-space: normal; }
  body.astro :is(#cam-pad, #zoom-pad) { bottom: 150px; }
  body.astro:has(#astro-hud .ah-dash:not(.min)) :is(#cam-pad, #zoom-pad) { bottom: calc(min(180px, 40vw) + 190px); }
}
/* Телефон (0085): «☰ Меню» слева вверху вместо ☰/✕ внизу; панель групп — выпадающим меню без поиска и заголовка,
   строки и стрелки раскрытия — под палец */
#menu-btn { display: none; position: fixed; left: 10px; top: 10px; z-index: 9; width: 46px; height: 46px; padding: 0; border-radius: 12px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.85); color: #d6e2fb; font-size: 22px; line-height: 1; }
body.phone #menu-btn { display: block; opacity: 0.35; transition: opacity 0.8s; }
body.phone #menu-btn.awake { opacity: 1; transition-duration: 0.15s; } /* касание у угла — ярче, без касаний — бледнее */
body.phone.menu :is(#menu-btn, #find-btn) { display: none; }
/* 🔍 рядом с ☰: та же панель, но только поле поиска (список — под ним, своим слоем) */
#find-btn { display: none; position: fixed; left: 64px; top: 10px; z-index: 9; width: 46px; height: 46px; padding: 0; border-radius: 12px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.92); color: #d6e2fb; font-size: 20px; line-height: 1; opacity: 0.35; transition: opacity 0.8s; }
body.phone #find-btn { display: block; }
body.phone #find-btn.awake { opacity: 1; transition-duration: 0.15s; }
body.tour #find-btn { display: none !important; }
/* «i» в середине джойстиков: справа — выбранное (жёлтая), слева — текущее, куда летели (голубая) */
:is(#cam-pad, #zoom-pad) .cross .i { grid-area: 2 / 2; border-radius: 50%; color: #ffd36b; border-color: #6a5a2c; font: italic 700 20px Georgia, serif; }
#cam-pad .cross .i { color: #7fd0ff; border-color: #2f6a8c; }
:is(#cam-pad, #zoom-pad) .cross .i[hidden] { display: none; }
body.phone.find #side :is(#scale-note, #ast-load, .tools, #groups, #data-info, #hint, .hint) { display: none !important; }
body.phone.find #side .search-box { display: block !important; flex: 1; }
body.phone.find #side .menu-head { align-items: center; }
body.phone.find #side .menu-head { order: 0; }
body.phone.find #side { display: flex !important; flex-direction: row-reverse; align-items: center; height: auto !important; gap: 8px; }
body.phone.find #search { font-size: 16px; padding: 9px 10px; } /* 16 px — iPhone не приближает страницу при вводе */
body.phone #ui-toggle { display: none !important; } /* «спрятать интерфейс» — от старой раскладки: с ней возвращались #top и боковая панель (0133) */
#top { display: none !important; } /* верхняя полоса времени снесена — время только нижней полосой (пользователь 2026-10-24) */
body.tour #menu-btn { display: none !important; }
/* ⛶ справа вверху — во весь экран (на телефоне в горизонтальном положении мешает адресная строка); бледнеет, как ☰ */
#fs-btn { position: fixed; right: 10px; top: 10px; z-index: 9; width: 46px; height: 46px; padding: 0; border-radius: 12px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.92); color: #d6e2fb; font-size: 22px; line-height: 1; opacity: 0.35; transition: opacity 0.8s; }
#fs-btn.awake { opacity: 1; transition-duration: 0.15s; }
#fs-btn.on { border-color: #4a90e2; }
#fs-btn[hidden], body.tour #fs-btn { display: none; }
/* ⛶ и на компьютере (пользователь 2026-10-14: «в браузерной версии добавь кнопку полный экран… покажи и там и там»):
   справа вверху, левее — RSS и «События»; мышь навела — ярче */
#fs-btn:hover { opacity: 1; transition-duration: 0.15s; }
body:not(.phone) #news-mini { right: 64px; }
body:not(.phone) #events-top { right: 118px; }
body:not(.phone):has(#fs-btn[hidden]) #news-mini { right: 10px; }
body:not(.phone):has(#fs-btn[hidden]) #events-top { right: 64px; }
/* ∞ — заставка, левее ⛶ (без ⛶ — на его месте) */
#tour-go { position: fixed; right: 64px; top: 10px; z-index: 9; width: 46px; height: 46px; padding: 0; border-radius: 12px; border: 1px solid #5a3f8a; background: rgba(13, 20, 36, 0.92); color: #d9c2ff; font-size: 24px; line-height: 1; opacity: 0.35; transition: opacity 0.8s; }
#tour-go.awake { opacity: 1; transition-duration: 0.15s; }
#fs-btn[hidden] + #tour-go, #tour-go:has(+ #fs-btn[hidden]) { right: 10px; }
body:not(.phone) #tour-go, body.tour #tour-go { display: none; } /* у космонавта — тоже (заставка сама выводит из скафандра) */
body.phone.menu #side { display: flex; top: 10px; left: 10px; right: auto; bottom: auto; width: min(480px, calc(100% - 20px)); box-sizing: border-box; max-height: calc(100% - 20px); z-index: 10; }
/* Компьютер (0133): меню скрыто, пока не нужно, — открытое шире, без лишних переносов (пользователь 2026-10-24) */
.menu-close { display: none; }
body.phone #side .menu-head { display: flex; align-items: flex-start; gap: 8px; }
body.phone #side .menu-head #scale-note { flex: 1; margin-top: 0; }
body.phone #side .menu-close { display: block; flex: none; margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: 10px; font-size: 20px; line-height: 1; }
body.phone #side .search-box { display: none; }
#side :is(.home, h1) { display: none; } /* «на главную», название, заставка и язык — сцена и есть главная; язык — внизу, заставка — вверху, название — в заголовке страницы (пользователь 2026-10-24) */
body:is(.touch, .phone) #side :is(h1, #data-info, .hint) { display: none; } /* на компе — как было: заголовок, свежесть данных, подсказка (0133) */
body.phone #side .tools :is(button, .boosty) { font-size: 13px; padding: 6px 10px; }
body.phone #groups { font-size: 15px; }
body.phone #groups :is(.fh, .grp, .bi) { min-height: 40px; padding-top: 2px; padding-bottom: 2px; }
body.touch #groups :is(.chev, .tchev) { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 20px; }
body.phone #groups input[type="checkbox"] { width: 20px; height: 20px; }
body.phone #groups .eye { font-size: 18px; padding: 6px; }
/* Сенсорный экран (0085): панели — плотные, без голограммы (прозрачность и смешение «screen» — на яркой планете
   текста не видно; пользователь по скрину с телефона) */
body.touch #astro-hud .ah-dash, body.touch :is(#side, #card, #top) {
  background: rgba(8, 14, 26, 0.92); mix-blend-mode: normal; animation: none; color: #e6f6ff;
  text-shadow: 0 1px 2px #000; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); backdrop-filter: none;
}
body.touch #astro-hud .ah-dash::after { display: none; }
body.touch #astro-hud button, body.touch :is(#side, #card, #top) :is(button, input) { background: rgba(20, 50, 80, 0.9); }
body.touch #astro-hud button.on { background: rgba(40, 110, 170, 0.95); }
body.touch #astro-hud .ah-ball { opacity: 1; filter: none; }
body.touch #cam-pad button, body.touch #menu-btn, body.touch #mini-speed button { background: rgba(13, 20, 36, 0.92); }
/* Телефон горизонтально (низкий экран): джойстики — к низу по бокам (полоска времени — между ними), меню — в две
   колонки (пользователь) */
@media (orientation: landscape) and (max-height: 500px) {
  body:not(.astro) :is(#cam-pad, #zoom-pad) { bottom: 10px; }
  /* меню — в две колонки на всю высоту: слева кнопки столбиком, справа дерево; у каждой — своя прокрутка */
  body.phone.menu #side { display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    width: min(640px, calc(100% - 20px)); height: calc(100% - 20px); column-gap: 10px; row-gap: 6px; }
  body.phone #side > :is(.menu-head, #ast-load) { grid-column: 1 / -1; }
  body.phone #side .tools { grid-column: 1; flex-direction: column; flex-wrap: nowrap; align-items: stretch; overflow-y: auto; min-height: 0; }
  body.phone #side .tools span { display: none; }
  body.phone #side .tools button { text-align: left; white-space: nowrap; }
  body.phone #side #groups { grid-column: 2; grid-row: 2; min-height: 0; }
}
/* Телефон (0085): карточка найденного — окном по центру, не во всю ширину; кнопки действий — сверху, закреплены,
   прокручивается содержимое под ними. На большом экране — как была (справа сверху) */
#card-x { display: none; }
body.phone #card:not([hidden]) { display: flex; flex-direction: column; left: 50%; top: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%); width: min(420px, calc(100% - 20px)); max-height: calc(100% - 40px); box-sizing: border-box;
  overflow: auto; padding-top: 0; z-index: 12; }
body.phone #card .btns { order: -1; position: sticky; top: 0; z-index: 1; flex-wrap: wrap; margin: 0 -12px 8px; padding: 10px 12px 8px;
  background: rgb(8, 14, 26); border-bottom: 1px solid #243150; }
body.phone #card .btns button { padding: 7px 10px; font-size: 14px; }
body.phone #card #card-x { display: block; margin-left: auto; width: 38px; padding: 0; font-size: 18px; }
/* Сенсорный экран: подсказка заставки про клавиши (Esc, F, M) — не нужна, клавиатуры нет (0085) */
body.touch #tour-hint { display: none; }
/* Пока грузимся — только полоса загрузки (#status): панели и все кнопки спрятаны. opacity: 0 у панелей не хватало —
   анимация «голограммы» (astro-holo) крутит opacity и перебивала его; кнопки не прятались вовсе (пользователь, скрин) */
body.loading :is(#side, #top, #card, #ui-toggle, #astro-btn, #agent-btn, #agent-box, #astro-ghost, #mini-speed, #vr-btn, #cam-pad, #zoom-pad,
  #menu-btn, #find-btn, #fs-btn, #tour-go, #gal-back, #gal-mini, #refresh-note, .warn, #scale-note) {
  visibility: hidden !important; animation: none !important; pointer-events: none !important;
}
/* Сенсорный экран: в панели заставки ползунок громкости не нужен (громкость — кнопками телефона) — панель в одну строку */
body.touch #tour-ctl input[type="range"] { display: none; }
/* Телефон (0085): окна места (горы, вулканы, места на Луне и Марсе — 0074, 0075) и созвездия — как карточка
   объекта: плотным окном по центру, ✕ — под палец (внизу на 40 % высоты они ложились на джойстики); созвездие
   видно и в чистом виде (body.clean его прятал, а телефон всегда в чистом виде) */
body.phone :is(#earth-card, #con-card, #neb-card):not([hidden]) { display: block; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 20px)); max-height: calc(100% - 40px); box-sizing: border-box; z-index: 12; font-size: 14px;
  background: rgba(8, 14, 26, 0.95); mix-blend-mode: normal; animation: none; text-shadow: none; }
body.phone :is(#earth-card, #con-card, #neb-card) h3 { font-size: 17px; padding-right: 48px; }
body.phone :is(#earth-card, #con-card, #neb-card) .close { right: 6px; top: 6px; width: 40px; height: 40px; font-size: 20px; border: 1px solid #2c3a5c; border-radius: 10px; background: rgba(20, 50, 80, 0.9); color: #d6e2fb; }
/* На компе карточки — справа вверху, под кнопками, не посреди сцены (пользователь 2026-10-24, 0133) */
body.phone:not(.touch) #card:not([hidden]), body.phone:not(.touch) :is(#earth-card, #con-card, #neb-card):not([hidden]) { left: auto; right: 10px; top: 10px; transform: none; max-height: calc(100% - 80px); z-index: 12; }
/* Телефон: язык — кнопкой в левом нижнем углу (RU ⇄ EN; переключатель в заголовке панели на телефоне спрятан) */
#lang-mini { display: none; position: fixed; left: 10px; bottom: 10px; z-index: 7; width: 46px; height: 36px; padding: 0; border-radius: 18px; border: 1px solid #2c3a5c; background: rgba(13, 20, 36, 0.92); color: #9fb3d9; font: 600 13px system-ui, sans-serif; }
body.phone #lang-mini { display: block; }
body:is(.tour, .loading) :is(#lang-mini, #lang-menu) { display: none !important; } /* язык не прячем никогда (пользователь 2026-10-24) */
/* меню языков — над кнопкой; текущий отмечен */
#lang-menu { position: fixed; left: 10px; bottom: 54px; z-index: 13; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(8, 14, 26, 0.96); border: 1px solid #2c3a5c; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
#lang-menu[hidden] { display: none; }
#lang-menu button { display: flex; justify-content: space-between; gap: 16px; min-width: 150px; padding: 10px 12px; font-size: 15px; text-align: left; border-radius: 8px; }
#lang-menu button i { font-style: normal; color: #8fa3c8; font-size: 12px; align-self: center; }
#lang-menu button.on { border-color: #4a90e2; background: #1f3a6b; }
/* Джойстики — крестовина «плюсом» (▲ сверху, ◀ ▶ по бокам, ▼ снизу; привычнее — пользователь), «i» — в середине
   (есть выбор — появляется); ⇧ ⇩ (справа + −) — в верхних углах крестовины, своего ряда нет */
:is(#cam-pad, #zoom-pad) { grid-template: repeat(3, 44px) / repeat(3, 44px); column-gap: 10px; row-gap: 8px; }
:is(#cam-pad, #zoom-pad) :is(.cross, .ud) { display: contents; }
:is(#cam-pad, #zoom-pad) .cross .w { grid-area: 1 / 2; }
:is(#cam-pad, #zoom-pad) .cross .a { grid-area: 2 / 1; }
:is(#cam-pad, #zoom-pad) .cross .d { grid-area: 2 / 3; }
:is(#cam-pad, #zoom-pad) .cross .s { grid-area: 3 / 2; }
:is(#cam-pad, #zoom-pad) .cross .i { grid-area: 2 / 2; }
:is(#cam-pad, #zoom-pad) .ud button:first-child { grid-area: 1 / 1; }
:is(#cam-pad, #zoom-pad) .ud button:last-child { grid-area: 1 / 3; }
#cam-pad .roll { display: contents; }
#cam-pad .roll button:first-child { grid-area: 3 / 1; } /* ⟲ ⟳ — крен через плечо (Q / E), в нижних углах крестовины (пользователь 2026-10-24) */
#cam-pad .roll button:last-child { grid-area: 3 / 3; }
body.astro-post #cam-pad .roll button { visibility: hidden; }
:is(#cam-pad, #zoom-pad) button { width: 44px; height: 44px; }
@media (max-width: 480px) {
  :is(#cam-pad, #zoom-pad) { grid-template: repeat(3, 42px) / repeat(3, 42px); }
  :is(#cam-pad, #zoom-pad) button { width: 42px; height: 42px; }
}
/* Горизонтально джойстики у самого низа — кнопка языка между левым джойстиком и полоской времени */
@media (orientation: landscape) and (max-height: 500px) {
  #lang-mini, #lang-menu { left: 172px; }
}
/* Кнопки джойстиков — чуть прозрачные (пользователь: 0.8–0.9), сцена под ними видна; нажатая — полностью */
:is(#cam-pad, #zoom-pad) button { opacity: 0.85; }
:is(#cam-pad, #zoom-pad) button.on { opacity: 1; }
/* Телефон: человечек — в правом нижнем углу (на месте ☰/✕), крупнее, под палец; тянуть на планету — пальцем */
body.phone #astro-btn { right: 10px; bottom: 10px; width: 46px; height: 36px; border-radius: 18px; touch-action: none; }
body.phone #astro-tip { right: 10px; bottom: 54px; width: min(300px, calc(100vw - 20px)); box-sizing: border-box; }
/* Сенсорный экран: свернуть/развернуть панель космонавта — под палец (была 20×18) */
body.touch #astro-hud .ah-min { width: 36px; height: 28px; font-size: 15px; line-height: 26px; top: 4px; right: 4px; }
body.touch #astro-hud .ah-top { padding-right: 44px; }
/* Телефон, космонавт (0085): ☰ панели космонавта не нужен — меню ☰ и поиск 🔍 слева вверху те же, что без
   скафандра; шар — меньше, светофильтры — по касанию шара */
body.phone #astro-hud [data-a="ui"], body.phone #astro-hud [data-a="ui"] + .ah-sep { display: none; }
body.phone.astro:not(.menu) :is(#menu-btn, #find-btn) { display: block !important; }
body.phone.astro.menu #side { display: flex !important; }
body.phone #astro-hud .ah-ball { width: 120px; height: 120px; cursor: pointer; pointer-events: auto; }
body.phone #astro-hud .ah-gbar, body.phone #astro-hud .ah-bar { height: 96px; }
body.phone #astro-hud .ah-dash:not(.flt-open) .ah-flt { display: none; }
body.phone.astro:has(#astro-hud .ah-dash:not(.min)) :is(#cam-pad, #zoom-pad) { bottom: 330px; }
@media (orientation: landscape) and (max-height: 500px) {
  body.phone.astro.menu:not(.find) #side { display: grid !important; }
}
/* Телефон, космонавт: окно карточки по «i» и из поиска — и в скафандре (body.astro прятал #card — «i» не работала) */
body.phone.astro.info #card:not([hidden]) { display: flex !important; }
/* Выйти из скафандра (и из обзора с точки) — кнопкой с подписью, не только Esc (пользователь: на телефоне Esc нет) */
#astro-hud .ah-btns button.ah-exit { width: auto; padding: 0 10px; font-size: 13px; gap: 4px; white-space: nowrap; }
/* Обзор с точки (0083): нижняя панель сворачивается, как у космонавта; развёрнутая — мини-глобус и компас
   (пользователь: «компас со сферой сверху убери — в разворот нижней панели»); светофильтры — всегда */
#astro-hud .ah-orient { display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: center; }
#astro-hud .ah-orient canvas { width: 96px; height: 96px; opacity: 0.9; }
#astro-hud .ah-cmp { font: 600 12px system-ui, sans-serif; color: #dfe6f5; white-space: nowrap; text-shadow: none; }
body:not(.astro-post) #astro-hud .ah-orient, #astro-hud .ah-dash.min .ah-orient { display: none !important; }
body.astro-post #astro-hud .ah-min { display: block; }
/* светофильтры от первого лица — всегда, и в свёрнутой панели (на телефоне их прятал шар) */
body.astro-first #astro-hud .ah-flt { display: flex !important; position: static !important; align-self: center; flex-wrap: wrap; justify-content: center; }
/* Телефон, обзор с точки: панель — по ширине экрана, как в полёте (была «по содержимому» — узкая) */
body.phone.astro-post #astro-hud .ah-dash { width: max-content !important; max-width: calc(100vw - 16px); } /* без переносов, не шире нужного */
/* Телефон, космонавт и обзор с точки: скорость времени — прямо над нижней панелью (пользователь: «варп тут нужен»,
   «лучше сразу над нижней панелью»; --ahud — верх панели, astro.ts), джойстики — над полоской */
body.astro #mini-speed { display: flex !important; bottom: calc(var(--ahud, 120px) + 8px); }
body.phone.astro :is(#cam-pad, #zoom-pad) { bottom: calc(var(--ahud, 120px) + 54px) !important; } /* над полоской времени */
/* Панель космонавта минимизирована (третье состояние кнопки ▾): только кнопка — в правом нижнем углу */
body #astro-hud .ah-dash.tiny { left: auto; right: 10px; bottom: 10px; width: auto !important; padding: 0; transform: none; background: none; border: none; box-shadow: none; animation: none; }
body #astro-hud .ah-dash.tiny::after { display: none; }
#astro-hud .ah-dash.tiny > :not(.ah-min):not(.ah-btns) { display: none !important; }
/* свёрнута совсем — остаётся и «вид со стороны ⇄ от первого лица» (отзыв #34: «кнопка от третьего лица, когда всё спрятано») */
body #astro-hud .ah-dash.tiny { flex-direction: row; gap: 6px; }
#astro-hud .ah-dash.tiny .ah-btns { display: flex !important; margin: 0; padding: 0; border: none; }
#astro-hud .ah-dash.tiny .ah-btns > :not([data-a="view"]) { display: none !important; }
#astro-hud .ah-dash.tiny .ah-min { position: static; transform: none; width: 46px; height: 36px; font-size: 16px; line-height: 34px; border-radius: 18px; background: rgba(13, 20, 36, 0.92); }
/* Панель минимизирована (только кнопка ▴ в углу) — полоска времени на одном уровне с ней, джойстики — как без панели */
body.astro:has(#astro-hud .ah-dash.tiny) #mini-speed { bottom: 10px; }
body.phone.astro:has(#astro-hud .ah-dash.tiny) :is(#cam-pad, #zoom-pad) { bottom: 58px !important; }
/* «i» у отметки выбранного (космонавт, обзор с точки) — открыть карточку; на компьютере в скафандре — тоже */
#sel-info { position: fixed; left: 0; top: 0; z-index: 9; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid #6a5a2c; background: rgba(13, 20, 36, 0.9); color: #ffd36b; font: italic 700 15px Georgia, serif; line-height: 24px; text-align: center; cursor: pointer; }
#sel-info[hidden] { display: none; }
#sel-info { width: 14px; height: 14px; font-size: 10px; line-height: 12px; } /* в строку с подписью, ростом с шрифт (пользователь 2026-10-24) */ /* меньше (пользователь 2026-10-24) */
body:is(.tour, .menu) #sel-info { display: none; }
body.astro.info #card:not([hidden]) { display: block !important; z-index: 12; }
body.info #card #card-x { display: block; margin-left: auto; width: 32px; padding: 0; }

/* Форма отзыва (решение 0089, ui/feedback.ts): посреди экрана, поверх панелей */
#fb-pop { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 20px)); z-index: 40; display: flex; flex-direction: column; gap: 8px; }
#fb-pop[hidden] { display: none; }
#fb-pop h3 { margin: 0; font-size: 15px; }
#fb-pop textarea, #fb-pop input { width: 100%; box-sizing: border-box; padding: 6px 8px; background: #0f1524; color: #dfe6f5; border: 1px solid #2b3a5c; border-radius: 6px; font: inherit; resize: vertical; user-select: text; -webkit-user-select: text; }
#fb-pop .fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#fb-pop .fb-cap { display: flex; gap: 8px; align-items: center; } /* картинка с цифрами, ↻, поле */
#fb-pop .fb-cap img { width: 170px; height: 56px; border-radius: 6px; flex: none; }
#fb-pop .fb-cap button { flex: none; padding: 4px 9px; }
#fb-pop .fb-cap input { flex: 1; min-width: 0; font-size: 18px; letter-spacing: 3px; }
#fb-pop .fb-note { color: #8fa3c8; font-size: 11px; }
#fb-pop .fb-msg { min-height: 16px; color: #ffd166; }
#fb-pop .fb-row { display: flex; gap: 8px; justify-content: flex-end; }
/* Туманности (0096): подписи, подсказка, карточка — как у созвездий */
.lbl.neb { color: #ff9fb4; }
.lbl.neb.lit { color: #ffd0dc; font-weight: 600; }
.lbl.neb-tip { color: #9fb3d9; }
.neb-mark { position: absolute; width: 8px; height: 8px; margin: -5px 0 0 -5px; border: 1.5px solid #ff7fa0; border-radius: 50%; box-shadow: 0 0 6px #ff5f8a; }
.neb-mark.lit { border-color: #ffd0dc; box-shadow: 0 0 10px #ff9fb4; }
#neb-card .fly { margin-top: 6px; }
/* Скопления и галактики (0097) */
.lbl.deep-gx { color: #c9b8ff; }
.lbl.deep-cl { color: #ffe08a; }
.lbl:is(.deep-gx, .deep-cl).lit { color: #fff; font-weight: 600; }
.lbl.con3d { color: #9fc0ff; }
/* Метка Солнца вдали от него (масштаб Галактики) */

.sel-ring { position: absolute; transform: translate(-50%, -50%); border: 1.5px solid #ffd166; border-radius: 50%; box-shadow: 0 0 8px rgba(255, 209, 102, 0.6); pointer-events: none; } /* выбранная галактика/скопление (deep-draw.ts) */
.sun-mark { position: absolute; width: 7px; height: 7px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 8px 3px rgba(255, 209, 102, 0.7); }
.lbl.con3d.lit { color: #e2ecff; font-weight: 600; }
body.astro:not(.phone) #events-top { right: 10px; } /* у космонавта «📰» нет — в самый угол */

/* Фоновая сборка шейдеров (gl/context.ts): строка внизу по центру, пока догружается графика — не мешает сцене */
.gl-bg {
  /* над полоской времени (она внизу по центру, 0133): строка ложилась на неё (пользователь 2026-10-24) */
  position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 50;
  padding: 4px 12px; border-radius: 12px; pointer-events: none;
  font-size: 12px; color: #cfd8e6; background: rgba(10, 16, 28, 0.72);
}

/* Погода Земли собирается в фоне (earth-weather.ts): по строке бегут полосы, «загрузка…» мигает — видно, что идёт работа */
.wrow.wbusy { background: repeating-linear-gradient(-45deg, rgba(120, 180, 255, 0.16) 0 8px, rgba(120, 180, 255, 0.04) 8px 16px);
  animation: wbusy 1.2s linear infinite; border-radius: 4px; }
.wrow .wload { animation: wblink 1s ease-in-out infinite; color: #8fc4ff; }
@keyframes wbusy { from { background-position: 0 0; } to { background-position: -45px 0; } }
@keyframes wblink { 50% { opacity: 0.35; } }
/* строка сборки шейдера живой планеты (gl/gas.ts gasRowHtml): без галочки, только состояние */
.grow { padding: 2px 4px; border-radius: 4px; }
.grow .gload { color: #7f93a8; }
.grow.wbusy .gload { animation: wblink 1s ease-in-out infinite; color: #8fc4ff; }
@media (prefers-reduced-motion: reduce) { .wrow.wbusy, .wrow .wload, .grow.wbusy .gload { animation: none; } }
/* Водяной знак с лицензией CC BY 4.0 — справа внизу, левее круглых кнопок; виден всегда (ui/watermark.ts) */
#watermark { position: fixed; right: 54px; bottom: 8px; z-index: 6; font: 11px system-ui, sans-serif; color: rgba(214, 226, 251, 0.45); text-decoration: none; text-shadow: 0 1px 3px #000; letter-spacing: 0.02em; }
#watermark:hover { color: #d6e2fb; text-decoration: underline; }
body.loading #watermark { display: none; }
body.phone #watermark { right: 8px; bottom: 4px; font-size: 10px; }
/* Statistics notice (ui/metrics-note.ts): a link left of the watermark, same look; the window — the shared info window */
#metrics-note { position: fixed; right: 200px; bottom: 8px; z-index: 6; font: 11px system-ui, sans-serif; color: rgba(214, 226, 251, 0.45); text-decoration: none; text-shadow: 0 1px 3px #000; }
#metrics-note:hover { color: #d6e2fb; text-decoration: underline; }
body.loading #metrics-note { display: none; }
body.phone #metrics-note { font-size: 10px; }
#metrics-win { right: 10px; top: 10px; width: 330px; max-height: calc(100% - 20px); overflow: auto; font-size: 12px; z-index: 10; } /* same place as the sky cards */
#metrics-win[hidden] { display: none; }
#metrics-win h3 { margin: 0 0 2px; font-size: 15px; }
#metrics-win p { margin: 0 0 8px; line-height: 1.45; color: #d6e2fb; }
#metrics-win .mn-toggle { align-self: flex-start; }
#metrics-win .mn-state { color: #9fb3d9; }
/* Плеер сюжета прячется, пока играет без движения мыши (agent.ts, wakeNav) */
#agent-nav { transition: opacity 0.6s; }
#agent-nav.idle { opacity: 0; pointer-events: none; }
/* Заставка управляется общим плеером (agent.ts, tourBar): своя панель и подсказка — спрятаны */
#tour-ctl, #tour-hint { display: none !important; }
/* Громкость в плеере: ползунок — при наведении на 🔊 */
#agent-nav .pl-snd { position: relative; display: inline-flex; }
#agent-nav .pl-snd input { position: absolute; bottom: calc(100% + 62px); left: 50%; transform: translateX(-50%) rotate(-90deg); transform-origin: center; width: 110px; opacity: 0; pointer-events: none; transition: opacity 0.2s; accent-color: #a06ee6; }
#agent-nav .pl-snd:hover input, #agent-nav .pl-snd input:focus { opacity: 1; pointer-events: auto; }
#agent-nav .pl-snd::before { content: ''; position: absolute; bottom: 100%; left: -6px; right: -6px; height: 130px; display: none; }
#agent-nav .pl-snd:hover::before { display: block; }
/* Консоль языка (console.ts) — слева внизу, над подписью; видна и при «спрятать всё» */
#agent-console { position: fixed; left: 12px; bottom: 12px; width: min(620px, calc(100vw - 24px)); z-index: 53; display: flex; flex-direction: column; border-radius: 10px; background: rgba(8, 12, 22, 0.94); border: 1px solid #2c3a5c; font: 12px/1.45 ui-monospace, Consolas, monospace; color: #d6e2fb; }
#agent-console[hidden] { display: none; }
#agent-console .con-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; color: #8fa3c8; border-bottom: 1px solid #22304f; }
#agent-console .con-head button { background: none; border: 0; color: #8fa3c8; cursor: pointer; }
#agent-console .con-log { max-height: 34vh; overflow-y: auto; padding: 6px 8px; white-space: pre-wrap; word-break: break-word; }
#agent-console .con-log .cmd { color: #ffe08a; }
#agent-console .con-log .err { color: #ff8a8a; }
#agent-console .con-log .mut { color: #8fa3c8; }
#agent-console input { border: 0; border-top: 1px solid #22304f; background: transparent; color: #e8eefb; font: inherit; padding: 7px 8px; outline: none; }

/* Свои окна вместо prompt/alert браузера (ui/dialog.ts) */
#ui-dialog { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); padding: 16px; }
#ui-dialog .panel { position: static; width: min(460px, 100%); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; color: #dfe7f7; }
#ui-dialog p { margin: 0; font-size: 14px; line-height: 1.45; }
#ui-dialog input { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid #2c3a5c; background: #0b1222; color: #eef2fb; font: inherit; font-size: 14px; }
#ui-dialog input:focus { outline: none; border-color: #6ea8ff; }
#ui-dialog .dlg-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#ui-dialog button { padding: 7px 16px; border-radius: 8px; border: 1px solid #2c3a5c; background: #13203a; color: #dfe7f7; cursor: pointer; font-size: 13px; }
#ui-dialog button:hover { background: #1c2c4e; }
#ui-dialog button.ok { background: #2d5bb8; border-color: #3f74d8; color: #fff; }
/* ⏪ ⏩ ⏮ ⏭ плеера — как остальные кнопки, без синих «эмодзи» Windows (пользователь 2026-10-14: «у стрелок синее убери») */
#agent-nav button { font-variant-emoji: text; }
#agent-nav button .gl { font-style: normal; }
#agent-nav button:is([data-nav=back], [data-nav=fwd], [data-nav=prev], [data-nav=next], [data-nav=tprev], [data-nav=tnext]) .gl { filter: grayscale(1) brightness(2.2); }

/* поиск в списке сцен заставки */
#agent-nav .pl-find { width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 6px 9px; border-radius: 7px; border: 1px solid #2c3a5c; background: #0b1222; color: #eef2fb; font: 13px system-ui, sans-serif; }
#agent-nav .pl-find:focus { outline: none; border-color: #6ea8ff; }
#agent-nav .pl-list [hidden] { display: none; }
/* узкий экран: плеер в несколько рядов — подписи сцены выше него, не под кнопками */
@media (max-width: 600px) { #agent-cap, #tour-cap { bottom: 150px; } }

/* ♪ в плеере заставки — меню мелодий над кнопкой */
#agent-nav .pl-thm-wrap { position: relative; display: inline-block; }
#agent-nav .pl-thm { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 9px; background: #0b1222f2; border: 1px solid #2c3a5c; white-space: nowrap; z-index: 2; }
#agent-nav .pl-thm button { text-align: left; width: auto; padding: 5px 10px; }
#agent-nav .pl-thm button.on { color: #ffd27a; }

/* подпись заставки и агента читается и на светлом (глыба во весь кадр): плотнее тень (пользователь 2026-10-15) */
#tour-cap, #agent-cap { text-shadow: 0 0 2px #000, 0 1px 3px #000, 0 2px 14px #000c; }

/* окна с медиа в сценах (media.ts) */
.media-win { position: fixed; z-index: 55; min-width: 220px; background: #0b1222f0; border: 1px solid #2c3a5c; border-radius: 10px; box-shadow: 0 8px 30px #000a; overflow: hidden; display: flex; flex-direction: column; }
.media-win .media-h { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; cursor: move; color: #cfd8ea; font: 12px system-ui, sans-serif; user-select: none; }
.media-win .media-h span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-win .media-h button { background: none; border: 0; color: #cfd8ea; cursor: pointer; font-size: 13px; }
.media-win .media-b { flex: 1; display: flex; flex-direction: column; }
.media-win video { width: 100%; height: 100%; background: #000; display: block; }
.media-win audio { width: 100%; display: block; }
.media-win.media-yt .media-b { aspect-ratio: 16 / 9; }
.media-win iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-win .media-pick { padding: 14px; color: #ffd27a; cursor: pointer; font: 13px system-ui, sans-serif; text-align: center; }
.media-win .media-err { padding: 8px 10px; color: #ff9d8a; font: 12px system-ui, sans-serif; }
.media-line { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 54; }

/* перед запуском сцены — выбрать её файлы с компьютера (media.ts needFiles) */
.media-need { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: #0008; }
.media-need-b { min-width: 300px; max-width: min(460px, 92vw); padding: 16px 18px; border-radius: 12px; background: #0b1222f5; border: 1px solid #2c3a5c; color: #dfe6f3; font: 13px/1.45 system-ui, sans-serif; box-shadow: 0 10px 40px #000a; }
.media-need-b b { display: block; font-size: 15px; margin-bottom: 6px; }
.media-need-b ul { list-style: none; padding: 0; margin: 10px 0; }
.media-need-b li { padding: 2px 0; color: #ffd27a; }
.media-need-b li.ok { color: #8fe3a5; }
.media-need-b button { margin: 4px 6px 0 0; padding: 6px 12px; border-radius: 7px; border: 1px solid #2c3a5c; background: #16213a; color: #eef2fb; cursor: pointer; font: inherit; }
.media-need-b .media-pick { display: inline-block; margin: 4px 0; padding: 6px 12px; border-radius: 7px; border: 1px solid #ffd27a66; color: #ffd27a; cursor: pointer; }
.media-need-f { margin-top: 10px; text-align: right; }
.media-need-b li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.media-need-b li .media-pick { margin: 0; padding: 3px 10px; }
.media-need-b li.bad { color: #ff9d8a; }
.media-need-b button.on { border-color: #8fe3a5; color: #8fe3a5; }
.media-need-b .media-path { display: block; color: #8fa0bd; font-size: 11px; word-break: break-all; } /* полный путь, как в сценарии: где искать файл */
/* поиск в списке сцен — прикреплён вверху, список прокручивается под ним (пользователь 2026-10-15) */
#agent-nav .pl-list .pl-find { position: sticky; top: -6px; z-index: 1; box-shadow: 0 -6px 0 rgba(13, 20, 36, 0.98), 0 4px 8px rgba(13, 20, 36, 0.9); }

/* «Поставить рядом» (0124): выпадающий список, подписи со сравнением и строки мелких тел */
#cmp-pop { position: fixed; z-index: 30; width: 300px; max-height: min(420px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; font-size: 13px; color: #d6e2fb; box-sizing: border-box; }
#cmp-pop[hidden] { display: none; }
#cmp-pop .cmp-h { color: #8fa3c8; font-size: 12px; }
#cmp-pop .cmp-q { width: 100%; box-sizing: border-box; padding: 5px 8px; border-radius: 6px; border: 1px solid #2c4a7a; background: #0c1626; color: #e6eefc; font-size: 13px; }
#cmp-pop .cmp-list { overflow: auto; display: flex; flex-direction: column; gap: 1px; }
#cmp-pop .cmp-it { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; cursor: pointer; }
#cmp-pop .cmp-it:hover { background: #17315a; }
#cmp-pop .cmp-it .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
#cmp-pop .cmp-it .n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cmp-pop .cmp-it .sub { color: #8fa3c8; font-size: 11px; white-space: nowrap; }
#cmp-pop .cmp-none { color: #8fa3c8; padding: 6px; }
.lbl.cmp { color: #ffd98a; max-width: 360px; white-space: normal; line-height: 1.3; }
.lbl.cmp.lit { font-weight: 600; }
.cmp-rows { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; align-items: center; pointer-events: none; }
.cmp-row { pointer-events: auto; cursor: pointer; padding: 3px 10px; border-radius: 12px; background: rgba(10, 18, 34, 0.78); border: 1px solid #2c4a7a; color: #ffd98a; font-size: 12px; white-space: nowrap; }
.cmp-row:hover { background: #17315a; color: #fff2c8; }
.cmp-x { color: #ffb4a8; }
/* «Поставить рядом» — только когда объект в кадре шаром (render/overlay.ts, render/starsdb.ts ставят класс) */
body.cmp-far .cmp-btn { display: none; }
#cmp-tags { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.cmp-tag { position: absolute; max-width: 380px; padding: 4px 9px; border-radius: 8px; background: rgba(10, 18, 34, 0.82); border: 1px solid #2c4a7a; color: #ffd98a; font-size: 12px; line-height: 1.35; pointer-events: auto; cursor: pointer; }
.cmp-tag[hidden] { display: none; }
.cmp-tag:hover, .cmp-tag.hot { background: #17315a; color: #fff2c8; border-color: #ffd98a; }
#cmp-arrows { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
#cmp-arrows .ring { fill: transparent; pointer-events: all; cursor: pointer; }
.cmp-tag .x { margin-left: 8px; padding: 0 5px; border: 0; background: transparent; color: #ffb4a8; cursor: pointer; font-size: 12px; }
.cmp-tag .x:hover { color: #fff; }

/* Центр масс двойной (0128): крестик */
.bary-mark { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); pointer-events: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  color: rgba(200, 215, 255, .75); }

/* Пульсары (0131): подписи — голубые */
.lbl.psr { color: #9fdcff; }
.lbl.psr.lit { color: #e6f6ff; }
/* Окно информации — одно для всех типов объектов (0134, ui/info-win.ts): строка действий и ✕ сверху, закреплена;
   место — как у #card (справа сверху на компе, по центру на телефоне) */
.info-win:not([hidden]) { display: flex; flex-direction: column; overflow: auto; padding-top: 0; box-sizing: border-box; }
.info-win > .btns { order: -1; position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 -12px 8px; padding: 10px 12px 8px; background: rgb(8, 14, 26); border-bottom: 1px solid #243150; }
body.phone .info-win:is(#card, #neb-card, #con-card, #earth-card) > .btns > :is(.close, .card-x), body .info-win > .btns > :is(.close, .card-x) { /* сильнее старого правила телефона (абсолютный ✕ закрывал «—») */ display: block; position: static; margin-left: auto; width: 38px; height: auto; padding: 4px 0;
  font-size: 18px; border: 1px solid #2c3a5c; border-radius: 8px; background: rgba(20, 50, 80, 0.9); color: #d6e2fb; }
body .info-win h3 { padding-right: 0; }
body .info-win > .btns .fly { margin-top: 0; }
/* ⏱ у полосы времени — меню скоростей вверх (controls.ts) */
#mini-speed { position: fixed; }
:is(#rate-menu, #gal-rate) { position: absolute; right: 0; bottom: 44px; display: flex; flex-direction: column; gap: 3px; padding: 6px; max-height: 60vh; overflow: auto;
  border-radius: 12px; background: rgba(8, 14, 26, 0.96); border: 1px solid #2c3a5c; }
:is(#rate-menu, #gal-rate)[hidden] { display: none; }
:is(#mini-speed, #gal-mini) .rate-menu button { height: 30px; border-radius: 8px; text-align: left; white-space: nowrap; font-size: 13px; }
:is(#mini-speed, #gal-mini) .rate-menu button.on { border-color: #4a90e2; background: #1f3a6b; }
:is(#rate-menu, #gal-rate)[data-dir="-1"] { right: auto; left: 0; }
:is(#mini-speed, #gal-mini) button.rate-dd { min-width: 30px; width: 30px; padding: 0; font-size: 16px; color: #9cc4ff; }
/* Окно тела открыто, пока body.info (открыли «i», поиском или ссылкой); ✕ снимает info — окно прячется (0134) */
body.phone:not(.info) #card { display: none !important; }
/* Углы экрана — области кнопок (0133, ui/corners.ts): прижаты к углу, спрятанная — остальные подтягиваются */
.corner { position: fixed; z-index: 9; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.corner > * { position: relative !important; inset: auto !important; transform: none !important; margin: 0 !important; pointer-events: auto; }
.corner [hidden] { display: none !important; }
.corner.tl { left: 10px; top: 10px; }
.corner.tr { right: 10px; top: 10px; flex-direction: row-reverse; }
.corner.bl { left: 10px; bottom: 10px; }
.corner.br { right: 10px; bottom: 10px; flex-direction: row-reverse; }
.corner .i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #6a5a2c; background: rgba(13, 20, 36, 0.85); color: #ffd36b; font: italic 700 17px Georgia, serif; cursor: pointer; padding: 0; }
.corner #cur-btn { color: #7fd0ff; border-color: #2f6a8c; }
body:is(.tour, .menu, .loading) .corner .i { display: none !important; }
.info-win { background: rgb(12, 17, 30); } /* непрозрачно: кнопки угла под окном не просвечивают */
body .info-win > .btns > .min { margin-left: auto; width: 38px; padding: 4px 0; font-size: 16px; border: 1px solid #2c3a5c; border-radius: 8px; background: rgba(20, 50, 80, 0.9); color: #d6e2fb; }
body .info-win > .btns > .min + :is(.close, .card-x) { margin-left: 0; }
/* Узкий экран: полоса времени со стрелками скоростей влезает между языком и космонавтом; подпись — над нижней строкой */
@media (max-width: 480px) {
  #mini-speed { gap: 4px; }
  #mini-speed button { min-width: 34px; padding: 0 8px; }
  #mini-pause { min-width: 92px !important; }
  :is(#mini-speed, #gal-mini) button.rate-dd { min-width: 26px; width: 26px; }
}
/* Копирайт — тонкой строкой у самого нижнего края, под кнопками (пользователь 2026-10-24: «куда-то в другое место») */
#watermark, body.phone #watermark { left: 50%; right: auto; bottom: 0; transform: translateX(-50%); font-size: 9px; line-height: 10px; white-space: nowrap; }
/* Стрелки скоростей — вплотную к «−» и «+», одной кнопкой с ними */
:is(#mini-speed, #gal-mini) .rate-dd[data-dir="-1"] { margin-right: -6px; border-radius: 18px 0 0 18px; border-right: none; }
:is(#mini-speed, #gal-mini) .rate-dd[data-dir="-1"] + button { border-radius: 0 18px 18px 0; }
:is(#mini-speed, #gal-mini) .rate-dd[data-dir="1"] { margin-left: -6px; border-radius: 0 18px 18px 0; border-left: none; }
:is(#mini-speed, #gal-mini) button:has(+ .rate-dd[data-dir="1"]) { border-radius: 18px 0 0 18px; }
@media (max-width: 480px) { :is(#mini-speed, #gal-mini) .rate-dd[data-dir="-1"] { margin-right: -4px; } :is(#mini-speed, #gal-mini) .rate-dd[data-dir="1"] { margin-left: -4px; } }
/* Свернуть панель космонавта — над её правым верхним углом, в строке полосы времени; не наезжает на подпись цели (пользователь 2026-10-24) */
#astro-hud .ah-dash:not(.tiny) .ah-min, body.touch #astro-hud .ah-dash:not(.tiny) .ah-min { top: var(--miny, -46px); left: var(--minx, auto); right: auto; width: 36px; height: 36px; border-radius: 18px; font-size: 15px; line-height: 34px;
  background: rgba(13, 20, 36, 0.92); color: #d6e2fb; }
/* Космонавт (от первого и третьего лица): меню, поиск, верхние кнопки и «i» — те же, что везде (пользователь 2026-10-24: «меню нет») */
/* Панель космонавта свёрнута совсем — её кнопка сразу за полосой времени, как и в развёрнутом виде (пользователь 2026-10-24) */
body #astro-hud .ah-dash.tiny { left: calc(var(--msr, 50%) + 8px); right: auto; bottom: var(--msb, 10px); }
#astro-hud .ah-dash.tiny .ah-min { width: 36px; height: 36px; }
/* Узкий экран, космонавт: панель во всю ширину — язык над ней, на одной строке с полосой времени */
@media (max-width: 480px) {
  body.phone.astro:not(:has(#astro-hud .ah-dash.tiny)) .corner.bl { bottom: var(--msb, 10px); }
}
.corner #gal-back { width: 46px; height: 46px; border-radius: 12px; } /* ☀ в ряду с меню и поиском */
/* Узкий экран: полоса времени Галактики длиннее обычной — над нижними кнопками, не под ними */
@media (max-width: 480px) { #gal-mini { gap: 4px; max-width: calc(100% - 20px); } #gal-mini button { min-width: 34px; padding: 0 8px; } #gal-mini .gm-mid { font-size: 12px; white-space: nowrap; } #gal-mini .gm-n { display: none; } }
#wind-btn { display: none; }
body.gal-time:not(.gal-far) #wind-btn:not([hidden]) { display: inline-block; } /* 🌀 — только на масштабе Галактики */
#wind-btn.on { background: #26406e; border-color: #4a90e2; }
#wind-btn { display: none; }
body.gal-time:not(.gal-far) #wind-btn:not([hidden]) { display: inline-block; } /* 🌀 — только на масштабе Галактики */
#wind-btn.on { background: #26406e; border-color: #4a90e2; }
/* Открыли меню — окно объекта прячется под ним (отзыв #37: окно лежало поверх меню); закрыли меню — окно снова видно.
   Только на узком экране: на компьютере меню слева, окно справа — оба открыты сразу (пользователь 2026-10-25) */
@media (max-width: 900px) { body.menu .info-win { display: none !important; } }
/* Верхние углы тускнеют и просыпаются целиком: проснулась одна кнопка (касание, наведение) — ярче весь ряд (пользователь 2026-10-24) */
.corner:is(.tl, .tr) > * { opacity: 0.35 !important; transition: opacity 0.8s; }
.corner:is(.tl, .tr):is(:has(.awake), :hover, :focus-within) > * { opacity: 1 !important; transition-duration: 0.15s; }
body.phone .info-win:is(#card, #neb-card, #con-card, #earth-card) > .btns > .min + :is(.close, .card-x) { margin-left: 0; }
/* Строка действий окна — всегда одна: «—» и ✕ не уходят на вторую строку; действия на узком экране ужимаются (2026-10-24) */
body .info-win > .btns { flex-wrap: nowrap; }
body .info-win > .btns > :not(.min):not(.close):not(.card-x) { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body .info-win > .btns > :is(.min, .close, .card-x) { flex: none; }
@media (max-width: 480px) { body .info-win > .btns > button { padding-left: 7px; padding-right: 7px; } }
/* Космонавт: полоса времени есть всегда — на ускорении управление молчит, но смотреть можно (пользователь 2026-10-24) */
body.astro:not(.tour) #mini-speed { display: flex !important; }
/* Панель агента — в нижнем ряду, сразу левее её кнопки (пользователь 2026-10-24); на узком — над рядом */
@media (min-width: 1520px) { #agent-box { bottom: 10px; right: calc(var(--brw, 100px) + 18px); } }
/* Плеер сцен — шириной по содержимому: с left: 50% он сжимался до половины экрана и ломался в три строки (пользователь 2026-10-24: «шире можно») */
#agent-nav { width: max-content; }
.lbl.dw { color: #e8b6ff; } /* белые и коричневые карлики */
.lbl.dw.lit { color: #f7e2ff; }
.lbl.var { color: #ff9fcf; } /* переменные звёзды */
.lbl.var.lit { color: #ffd5e9; }
.lbl.qso { color: #ffc9a8; } /* квазары (0137) */
.lbl.qso.lit { color: #ffe2cf; }
.lbl.gw { color: #b69cff; } /* гравитационные волны GWTC */
.lbl.gw.lit { color: #e2d5ff; }
.gw-chirp { display: block; width: 100%; height: 90px; margin: 8px 0 2px; background: rgba(20, 25, 48, .6); border-radius: 4px; }
.gw-axis { fill: none; stroke: #46516e; stroke-width: 1; }
.gw-wave { fill: none; stroke: #b69cff; stroke-width: 1.4; }
.gw-all { margin-top: 10px; }
.gw-all summary { cursor: pointer; color: #d8ccff; }
.gw-table { max-height: 260px; overflow: auto; margin-top: 6px; }
.gw-table table { border-collapse: collapse; width: 100%; font-size: 10px; }
.gw-table th, .gw-table td { padding: 3px 4px; border-bottom: 1px solid #28334d; text-align: left; white-space: nowrap; }
.gw-table tbody tr { cursor: pointer; }
.gw-table tbody tr:hover, .gw-table tbody tr:focus { background: #252b4a; outline: none; }
.lbl.sg { color: #ffcf8a; } /* сверхгиганты */
.lbl.sg.lit { color: #fff0d2; }
.lbl.abell { color: #c6d6ff; } /* скопления галактик Абелла */
.lbl.abell.lit { color: #edf4ff; }
.lbl.scl { color: #b8c9ff; } /* сверхскопления и крупная структура */
.lbl.scl.lit { color: #e4ebff; }
.lbl.gc { color: #ffd27a; } /* шаровые скопления */
.lbl.gc.lit { color: #fff0bd; }
.lbl.snr { color: #ffad66; } /* остатки сверхновых */
.lbl.snr.lit { color: #ffd7ad; }
.lbl.bh { color: #ff9a55; } /* чёрные дыры */
.lbl.bh.lit { color: #ffd2ae; }

.lbl.met { color: #ffd9a0; } /* радианты метеорных потоков (0152) */
.lbl.met.lit { color: #fff0d6; }
.lbl.frb { color: #72e8ff; } /* быстрые радиовсплески */
.lbl.frb.lit { color: #c4f7ff; }
.lbl.grb { color: #c6a0ff; } /* гамма-всплески */
.lbl.grb.lit { color: #eadcff; }
#neb-card .burst-replay { margin-right: 6px; }

/* Astronaut keys hint behind a «?» button (user 2026-10-30): the text shows only after a click; the button blinks until
   the first click (astro/hud.ts helpSeen). Sits where the text was, the text opens above it. */
#astro-hud .ah-help { position: absolute; left: 12px; bottom: 58px; width: 30px; height: 30px; border-radius: 50%; padding: 0;
  font: 600 16px/28px system-ui, sans-serif; color: #9fe9fb; background: rgba(10, 40, 60, 0.55); border: 1px solid rgba(90, 220, 255, 0.55); cursor: pointer; pointer-events: auto; }
#astro-hud .ah-help:hover, #astro-hud.help-open .ah-help { background: rgba(30, 90, 120, 0.7); }
#astro-hud .ah-help.blink { animation: ah-help-blink 1.2s ease-in-out infinite; }
@keyframes ah-help-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(90, 220, 255, 0); opacity: 1; } 50% { box-shadow: 0 0 10px 3px rgba(90, 220, 255, 0.8); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { #astro-hud .ah-help.blink { animation: none; box-shadow: 0 0 8px 2px rgba(90, 220, 255, 0.7); } }
#astro-hud:not(.help-open) .ah-keys, #astro-hud:not(.help-open) .ah-postkeys { display: none !important; }
/* The hint folds by a click on it (and the ✕ at its end); where the «?» is hidden (touch, joystick UI), the hint is hidden too */
#astro-hud .ah-keys, #astro-hud .ah-postkeys { pointer-events: auto; cursor: pointer; }
#astro-hud .ah-fold { color: #9fe9fb; font-weight: 600; margin-left: 4px; }
body.touch #astro-hud :is(.ah-keys, .ah-postkeys), body.astro.astro-ui #astro-hud :is(.ah-keys, .ah-postkeys) { display: none !important; }
#astro-hud.help-open .ah-keys, body.astro-post #astro-hud.help-open .ah-postkeys { bottom: 96px; }
body.astro-post #astro-hud .ah-keys { display: none !important; }
body.touch #astro-hud .ah-help, body.astro.astro-ui #astro-hud .ah-help { display: none; }
