@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

/* ANU Astro — палитра и шрифты совпадают с ANU Mini App */
.astro-root {
  --cream: #f3f8fc;
  --paper: #fbfdff;
  --ink: #0f2238;
  --text: #2a3b4f;
  --muted: #6b7f95;
  --line: rgba(15, 34, 56, 0.10);
  --line-strong: rgba(15, 34, 56, 0.20);
  --green: #13294a;
  --green-2: #0b1c35;
  --blue: #2d5f8f;
  --gold: #d2ad5c;
  --gold-soft: #e3eef9;
  --support: #2a7a5f;
  --support-bg: #e0f1ea;
  --tension: #a64b33;
  --tension-bg: #f8e5de;
  --accent: #2d5f8f;
  --accent-bg: #e8f1fa;
  --radius: 18px;
  --shadow: 0 14px 32px rgba(19, 41, 74, 0.10);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

.astro-root :where(*, *::before, *::after) { box-sizing: border-box; }
.astro-root :where(button, input, textarea, select) { font: inherit; color: inherit; }
.astro-root :where(button) { cursor: pointer; }
.astro-root [hidden] { display: none !important; }

body.astro-standalone { margin: 0; min-height: 100vh; background: #cfdceb; }

.astro-viewport { min-height: 100vh; display: flex; justify-content: center; }
.astro-app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #e3eef9 0%, #f3f8fc 340px),
    var(--cream);
}
@media (min-width: 620px) {
  .astro-viewport { padding: 28px 12px; }
  .astro-app { min-height: calc(100vh - 56px); border-radius: 34px; box-shadow: 0 30px 70px rgba(15,34,56,.25); }
}
/* Встроенный режим внутри ANU: без рамки телефона */
.astro-embedded .astro-viewport { padding: 0; min-height: 0; }
.astro-embedded .astro-app { max-width: none; border-radius: 0; box-shadow: none; min-height: 0; }

.astro-screen { padding: 18px 18px 120px; animation: astro-fade .2s ease both; }
@keyframes astro-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Шапка ---------- */
.astro-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.astro-brand { display: flex; align-items: center; gap: 10px; }
.astro-logo { width: 38px; height: 38px; color: var(--blue); }
.astro-word { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: 4px; color: var(--ink); line-height: 1; }
.astro-tag { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.astro-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; color: var(--ink); flex: none;
}
.astro-icon-btn:hover { border-color: var(--line-strong); }
.astro-back-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.astro-back-row .astro-crumb { font-size: 13px; color: var(--muted); }

/* ---------- Заголовки и текст ---------- */
.astro-h1 { font-family: var(--display); font-size: 30px; line-height: 1.1; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.astro-h2 { font-family: var(--display); font-size: 23px; line-height: 1.15; font-weight: 600; color: var(--ink); margin: 26px 0 4px; text-align: center; }
.astro-h2.left { text-align: left; }
.astro-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; text-align: center; }
.astro-sub.left { text-align: left; }
.astro-muted { color: var(--muted); font-size: 13px; }

/* ---------- Карточки ---------- */
.astro-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; box-shadow: 0 2px 0 rgba(23,40,32,.02);
}
.astro-stack { display: grid; gap: 12px; }

.astro-hero {
  border-radius: 24px; padding: 18px 18px 16px; color: #eaf2fb; margin-bottom: 6px;
  background: radial-gradient(120% 90% at 85% 0%, #2b5687 0%, #17345c 45%, #0b1c35 100%); position: relative; overflow: hidden;
}
.astro-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px;
  border-radius: 50%; border: 1px solid rgba(195,154,68,.35);
  box-shadow: 0 0 0 22px rgba(195,154,68,.06), 0 0 0 44px rgba(195,154,68,.04);
}
.astro-hero-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; position: relative; z-index: 1; }
.astro-hero-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--gold); flex: none; }
.astro-hero-kicker { font-size: 12px; color: #a9c3de; position: relative; z-index: 1; }
.astro-hero-title { font-family: var(--display); font-size: 27px; line-height: 1.1; font-weight: 600; color: #fff; margin: 2px 0 8px; max-width: 230px; position: relative; z-index: 1; }
.astro-hero p { margin: 0; font-size: 13.5px; color: #cfdeee; position: relative; z-index: 1; max-width: 250px; }
.astro-star { position: absolute; border-radius: 50%; background: #fff; }
.astro-hero-moon { position: absolute; right: 14px; top: 14px; width: 80px; height: 80px; }
.astro-hero-link { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--gold); font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; position: relative; z-index: 1; }

/* ---------- Вопрос ---------- */
.astro-ask { margin-top: 14px; }
.astro-ask-title { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.astro-textarea, .astro-input, .astro-select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 14px; background: #fffefa;
  padding: 11px 13px; font-size: 15px; color: var(--ink); outline: none;
}
.astro-textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.astro-textarea:focus, .astro-input:focus, .astro-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,95,143,.15); }
.astro-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.astro-chip {
  border: 1px solid var(--line); background: #fffefa; border-radius: 999px; padding: 5px 11px;
  font-size: 12.5px; color: var(--text);
}
.astro-chip[data-on="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.astro-btn {
  width: 100%; border: 0; border-radius: 14px; padding: 13px 16px; font-weight: 600; font-size: 15px;
  background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.astro-btn:hover { background: var(--green-2); }
.astro-btn:disabled { opacity: .6; cursor: progress; }
.astro-btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--line-strong); }
.astro-btn.ghost:hover { background: rgba(45,95,143,.06); }
.astro-btn.small { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.astro-link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.astro-place { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: -2px 0 12px; }

/* ---------- Карта сфер (как «Моя карта ANU») ---------- */
.astro-orbit { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1.02; margin: 4px auto 0; }
.astro-orbit-ring { position: absolute; inset: 9% 9%; border-radius: 50%; border: 1px dashed rgba(45,95,143,.35); }
.astro-orbit-center {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; background: radial-gradient(circle, #ffffff 0%, #e4f0fa 65%, #c9def1 100%);
  display: grid; place-items: center; color: var(--ink); padding: 0;
  box-shadow: 0 0 0 10px rgba(214,231,246,.55), 0 12px 30px rgba(19,41,74,.18);
}
.astro-orbit-center svg { width: 82%; height: 82%; }
.astro-orbit-center span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.astro-sphere {
  position: absolute; width: 33%; transform: translate(-50%, -50%); border: 0; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
}
.astro-sphere-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(45,95,143,.35), 0 8px 18px rgba(19,41,74,.22);
  transition: transform .15s ease;
}
.astro-sphere:hover .astro-sphere-dot { transform: scale(1.06); }
.astro-sphere-name { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); margin-top: 3px; }
.astro-sphere-hint { font-size: 11px; line-height: 1.25; color: var(--muted); max-width: 110px; }

/* ---------- Быстрый доступ ---------- */
.astro-quick { margin-top: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.astro-quick-title { text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.astro-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.astro-quick-item {
  border: 1px solid var(--line); background: #fffefa; border-radius: 14px; padding: 12px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.2; color: var(--text);
}
.astro-quick-item svg { color: var(--blue); }

/* ---------- Экран сферы ---------- */
.astro-sphere-hero { border-radius: 24px; padding: 22px 18px 18px; text-align: center; color: #eaf2fb; position: relative; overflow: hidden; }
.astro-sphere-hero .astro-sphere-dot { margin: 0 auto 10px; width: 66px; height: 66px; }
.astro-sphere-hero h1 { font-family: var(--display); font-size: 30px; font-weight: 600; margin: 0 0 4px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.astro-sphere-hero p { margin: 0 auto; max-width: 320px; font-size: 13.5px; color: rgba(234,242,251,.9); }

.astro-section-label { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 22px 2px 8px; font-weight: 600; }

.astro-read { position: relative; }
.astro-read-head { display: flex; gap: 12px; align-items: flex-start; }
.astro-read-num {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
  background: var(--gold-soft); color: var(--accent);
}
.astro-read-title { font-family: var(--display); font-size: 20px; line-height: 1.15; font-weight: 600; color: var(--ink); margin: 2px 0 6px; }
.astro-read-short { margin: 0; font-size: 14px; color: var(--text); }
.astro-read-full { margin-top: 10px; font-size: 14px; color: var(--text); }
.astro-read-full p { margin: 0 0 10px; }
.astro-read-full ul { margin: 0 0 10px; padding-left: 18px; }
.astro-attn { margin-top: 10px; background: var(--accent-bg); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: #23466b; }
.astro-attn b { display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.astro-read-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.astro-read-actions { display: flex; gap: 6px; }
.astro-more { background: none; border: 0; padding: 4px 0; color: var(--green); font-size: 13px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.astro-mini-btn {
  border: 1px solid var(--line); background: #fffefa; border-radius: 10px; padding: 6px 10px; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 5px; color: var(--text);
}
.astro-mini-btn[data-on="true"] { background: #fbf3df; border-color: rgba(210,173,92,.6); color: #8a6420; }
.astro-same { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; }

.astro-tone { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.astro-tone.support { background: var(--support-bg); color: var(--support); }
.astro-tone.tension { background: var(--tension-bg); color: var(--tension); }
.astro-tone.accent { background: var(--accent-bg); color: var(--accent); }
.astro-tone.neutral { background: rgba(23,40,32,.06); color: var(--muted); }
.astro-tech { display: inline-block; font-size: 11.5px; color: var(--muted); background: rgba(23,40,32,.05); border-radius: 8px; padding: 2px 8px; }

/* Аспекты */
.astro-aspect-list { display: grid; gap: 8px; margin-top: 10px; }
.astro-aspect { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fffefa; border: 1px solid var(--line); }
.astro-aspect-names { font-weight: 600; font-size: 14px; color: var(--ink); }
.astro-aspect-meaning { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---------- Прогноз ---------- */
.astro-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 14px 0 4px; scrollbar-width: none; }
.astro-month { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin: 20px 2px 8px; }
.astro-event { border-left: 3px solid var(--line-strong); border-radius: 0 var(--radius) var(--radius) 0; }
.astro-event.support { border-left-color: var(--support); }
.astro-event.tension { border-left-color: var(--tension); }
.astro-event.accent { border-left-color: var(--gold); }
.astro-event.past { opacity: .62; }
.astro-event-date { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.astro-now { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }

/* ---------- Колесо ---------- */
.astro-wheel-card { padding: 10px; }
.astro-wheel { width: 100%; height: auto; display: block; }
.astro-wheel text { font-family: var(--body); }
.astro-legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--muted); margin: 8px 0 2px; }
.astro-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; }
.astro-planet-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.astro-planet-row:last-child { border-bottom: 0; }
.astro-glyph { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--accent); font-size: 17px; }
.astro-planet-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.astro-planet-pos { font-size: 12.5px; color: var(--muted); }
.astro-house-badge { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Таблицы для астролога ---------- */
.astro-details { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.astro-details > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.astro-details > summary::-webkit-details-marker { display: none; }
.astro-details[open] > summary svg { transform: rotate(180deg); }
.astro-details-body { padding: 0 12px 14px; }
.astro-details-body h4 { margin: 14px 4px 6px; font-size: 13px; color: var(--ink); }
.astro-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.astro-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.astro-table th { text-align: left; font-weight: 600; color: var(--muted); background: rgba(23,40,32,.03); padding: 7px 9px; white-space: nowrap; }
.astro-table td { padding: 7px 9px; border-top: 1px solid var(--line); vertical-align: top; }

/* ---------- Хорар ---------- */
.astro-verdict { border-radius: 20px; padding: 18px; background: var(--paper); border: 1px solid var(--line); }
.astro-verdict-q { font-family: var(--display); font-size: 21px; line-height: 1.2; color: var(--ink); font-weight: 600; margin: 4px 0 12px; }
.astro-fact { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.astro-fact:first-of-type { border-top: 0; }
.astro-fact-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); color: var(--accent); }
.astro-fact b { color: var(--ink); font-weight: 600; }
.astro-ai-slot { margin-top: 12px; border: 1px dashed rgba(45,95,143,.4); border-radius: 18px; padding: 14px; background: rgba(227,238,249,.5); }
.astro-ai-slot h3 { margin: 0 0 4px; font-family: var(--display); font-size: 19px; color: var(--ink); }
.astro-ai-slot p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- Консультант ---------- */
.astro-chat { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.astro-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.astro-msg.bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.astro-msg.me { background: var(--green); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.astro-msg.pending { color: var(--muted); font-style: italic; }
.astro-composer { position: sticky; bottom: 92px; background: var(--cream); padding: 8px 0 4px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.astro-composer .astro-textarea { min-height: 52px; max-height: 220px; resize: none; overflow-y: auto; line-height: 1.45; }
.astro-send { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; }

/* ---------- Формы ---------- */
.astro-field { display: grid; gap: 6px; margin-bottom: 12px; }
.astro-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.astro-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.astro-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.astro-error { background: var(--tension-bg); color: var(--tension); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }
.astro-ok { background: var(--support-bg); color: var(--support); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }

/* Семья */
.astro-people { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.astro-person { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; width: 70px; font-size: 12px; color: var(--text); }
.astro-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 21px; font-weight: 700; background: var(--gold-soft); color: var(--accent); border: 2px solid transparent; }
.astro-person[data-on="true"] .astro-avatar { border-color: var(--green); }
.astro-avatar.add { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.astro-family-section h3 { font-family: var(--display); font-size: 20px; color: var(--ink); margin: 18px 2px 8px; }
.astro-family-readings { display: grid; gap: 10px; }
.astro-family-reading h4 { margin: 0 0 6px; font-size: 14.5px; color: var(--ink); }
.astro-family-reading p { margin: 0 0 8px; font-size: 14px; }

/* Загрузка */
.astro-loading { text-align: center; padding: 70px 20px; }
.astro-spinner { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--blue); animation: astro-spin 6s linear infinite; }
@keyframes astro-spin { to { transform: rotate(360deg); } }
.astro-skeleton { height: 14px; border-radius: 8px; background: linear-gradient(90deg, rgba(23,40,32,.06), rgba(23,40,32,.12), rgba(23,40,32,.06)); background-size: 200% 100%; animation: astro-shimmer 1.4s infinite; margin: 8px auto; max-width: 260px; }
@keyframes astro-shimmer { to { background-position: -200% 0; } }

/* ---------- Нижнее меню ---------- */
.astro-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom));
}
.astro-nav-inner { background: var(--green-2); border-radius: 22px; display: grid; grid-template-columns: repeat(6, 1fr); padding: 8px 4px; box-shadow: 0 -6px 24px rgba(11,28,53,.18); }
.astro-nav button { background: none; border: 0; color: rgba(220,232,245,.65); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; padding: 4px 0; }
.astro-nav button[data-on="true"] { color: var(--gold); }
@media (min-width: 620px) {
  .astro-nav { bottom: 28px; padding: 0 10px 10px; }
  .astro-nav-inner { border-radius: 0 0 26px 26px; }
}
.astro-embedded .astro-nav { position: sticky; bottom: 0; transform: none; left: auto; max-width: none; }

@media (max-width: 360px) {
  .astro-sphere-dot { width: 48px; height: 48px; }
  .astro-sphere-name { font-size: 13px; }
  .astro-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.astro-recent { width: 100%; display: block; }
.astro-recent:hover { border-color: var(--line-strong); }

/* Спросить: переключатель режимов и карточка хорара в чате */
.astro-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #e3eef9; border-radius: 14px; margin: 6px 0 12px; }
.astro-segment button { border: 0; background: none; border-radius: 11px; padding: 9px 6px; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.astro-segment button[data-on="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(19,41,74,.10); }
.astro-msg-card { align-self: stretch; }
.astro-msg-card .astro-verdict { border-color: rgba(45,95,143,.25); }
.astro-sphere-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 85% 0%, rgba(255,255,255,.16), transparent 60%); pointer-events: none; }
.astro-basis { padding: 14px; }
.astro-basis-head { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; flex-wrap: wrap; }
.astro-basis-head svg { color: var(--blue); }
.astro-basis-head .astro-tech { margin-left: auto; font-family: var(--body); }
.astro-basis-block { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.astro-basis-label { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.astro-basis-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.astro-basis-dot.natal { background: #2f6aa6; }
.astro-basis-dot.horary { background: var(--gold); }
.astro-basis-dot.link { background: #2f8f97; }
.astro-basis-row { font-size: 13.5px; padding: 6px 0; line-height: 1.45; }
.astro-basis-row b { color: var(--ink); font-weight: 600; }

/* Приветствие на главной */
.astro-greet { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(19,41,74,.05); }
.astro-greet-hi { font-family: var(--display); font-size: 25px; font-weight: 600; color: var(--ink); line-height: 1.1; margin-bottom: 10px; }
.astro-greet p { margin: 0; font-size: 14px; color: var(--text); }
.astro-greet-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.astro-greet-trio span { background: #eef5fb; border-radius: 12px; padding: 8px 8px 7px; font-size: 12.5px; line-height: 1.3; color: var(--text); }
.astro-greet-trio b { display: block; color: var(--blue); font-weight: 600; font-size: 12.5px; }
.astro-greet-trio i { display: block; font-style: normal; color: var(--muted); font-size: 11px; margin-top: 2px; }
.astro-greet .astro-greet-motto { margin-top: 12px; font-family: var(--display); font-size: 18px; font-style: italic; color: var(--ink); line-height: 1.3; }

/* Плитки как в ANU */
.astro-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.astro-tile { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 4px 14px rgba(19,41,74,.05); }
.astro-tile:hover { border-color: var(--line-strong); }
.astro-tile-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.astro-tile b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.astro-tile i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Пояснение «знак и дом» */
.astro-explain { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; background: #e8f1fa; color: #23466b; border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.astro-explain svg { flex: none; margin-top: 1px; color: var(--gold); }

/* Цветная шапка карточки */
.astro-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 10px; }
.astro-planet-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--gold); font-size: 15px; }
.astro-tag-chip { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.astro-tag-chip.sign { background: #e6eefb; color: #3b4f9a; }
.astro-tag-chip.house { background: #e0f1ee; color: #22706b; }
.astro-aspect-text { grid-column: 1 / -1; font-size: 13.5px; color: var(--text); line-height: 1.45; }

/* «Хочешь узнать?» */
.astro-hooks { display: grid; gap: 8px; margin-top: 30px; }
.astro-hook { display: grid; grid-template-columns: 34px 1fr 16px; gap: 10px; align-items: center; text-align: left; background: linear-gradient(135deg, #17345c, #2b5687); color: #eaf2fb; border: 0; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.35; font-weight: 500; }
.astro-hook:hover { background: linear-gradient(135deg, #0b1c35, #17345c); }
.astro-hook-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--gold); }
.astro-hook > svg:last-child { color: var(--gold); }
.astro-tiles { margin-top: 14px; }
.astro-tag-chip.extra { background: #f1ecfb; color: #5b4ea0; }
.astro-house-block { border-top: 1px solid var(--line); padding: 8px 4px; font-size: 13px; }
.astro-house-block:first-child { border-top: 0; }
.astro-house-block p { margin: 3px 0; }
.astro-house-block ul { margin: 4px 0; padding-left: 18px; }

/* Карта отношений */
.astro-meter { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #e3eef9; margin-top: 4px; }
.astro-meter-seg.res, .astro-meter-legend i.res { background: #2a7a5f; }
.astro-meter-seg.mix, .astro-meter-legend i.mix { background: #d2ad5c; }
.astro-meter-seg.neu, .astro-meter-legend i.neu { background: #8fa3b8; }
.astro-meter-seg.ten, .astro-meter-legend i.ten { background: #a64b33; }
.astro-meter-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.astro-meter-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.astro-rel-item.tension { border-left: 3px solid #a64b33; }
.astro-rel-item.resource { border-left: 3px solid #2a7a5f; }
.astro-rel-item.mixed { border-left: 3px solid #d2ad5c; }
.astro-rel-item.neutral { border-left: 3px solid #8fa3b8; }
.astro-risk { display: flex; gap: 8px; align-items: flex-start; background: var(--tension-bg); color: var(--tension); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0; }
.astro-risk svg { flex: none; margin-top: 2px; }
.astro-attn ul { margin: 0; padding-left: 18px; }
.astro-attn li { margin: 3px 0; }
.astro-person-row { display: flex; align-items: center; gap: 12px; }
.astro-person-card .astro-btn.small { width: 100%; padding: 11px 10px; }
.astro-filter .astro-chip { white-space: nowrap; flex: none; }

/* Раскрывающиеся разделы (Карта отношений) */
.astro-fold { margin: 12px 0 0; }
.astro-fold-head {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: #fffefa; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  color: var(--ink); box-shadow: 0 1px 2px rgba(16, 27, 34, .04);
}
.astro-fold-head:hover { border-color: rgba(210, 173, 92, .6); }
.astro-fold-title { flex: 1; font-family: var(--display); font-size: 18px; line-height: 1.2; font-weight: 600; }
.astro-fold-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600; background: var(--gold-soft); color: var(--accent);
}
.astro-fold-chev { display: inline-flex; color: var(--green); transition: transform .2s ease; }
.astro-fold.open .astro-fold-chev { transform: rotate(180deg); }
.astro-fold.open .astro-fold-head { border-color: rgba(210, 173, 92, .6); }
.astro-fold-body { padding-top: 10px; }

/* Главная: разделы над картой, «Семья» на всю ширину */
.astro-tile.wide { grid-column: 1 / -1; }
.astro-tiles + .astro-h2 { margin-top: 30px; }

/* Подсказки городов */
.astro-city-pop {
  position: absolute; z-index: 30; max-height: 260px; overflow-y: auto; background: #fffefa;
  border: 1px solid var(--line); border-radius: 14px; padding: 4px; box-shadow: 0 10px 28px rgba(11, 28, 53, .14);
}
.astro-city-opt {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0;
  padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink); cursor: pointer;
}
.astro-city-opt:hover, .astro-city-opt:focus { background: var(--gold-soft); }
.astro-city-opt svg { flex: none; color: var(--muted); }

/* Соляр: карточка «Тема вашего года» и экран соляра */
.astro-year { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(135deg, rgba(210,173,92,.16), rgba(45,95,143,.08)); border: 1px solid rgba(210,173,92,.45); margin: 6px 0 16px; }
.astro-year.static { cursor: default; }
.astro-year-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.astro-year-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.astro-year-house { font-size: 13px; color: var(--muted); }
.astro-year-text { font-size: 15px; line-height: 1.45; margin-top: 4px; }
.astro-year-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--green); }
.astro-sol-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.astro-sol-why li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; }
.astro-sol-why b { flex: none; color: var(--muted); font-weight: 600; }
.astro-sol-asp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(23,40,32,.08); font-size: 14px; }

/* Хорар на главной */
.astro-hq { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 1px solid rgba(45,95,143,.25); }
.astro-hq-sub { margin: 2px 0 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.astro-hq-form { display: flex; flex-direction: column; gap: 8px; }
.astro-hq-form .astro-textarea { min-height: 64px; }
.astro-hq-form .astro-btn { align-self: flex-start; }
.astro-hq-label { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.astro-hq .astro-chips { margin: 0; }
.astro-hq .astro-chip { text-align: left; }
.astro-hq-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Спросить: результат вопроса */
.astro-ask-result { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.astro-ask-banner { border-radius: 14px; padding: 12px 14px; margin-top: 6px; font-size: 14px; line-height: 1.45; }
.astro-ask-banner p { margin: 6px 0 0; }
.astro-ask-banner.void { background: rgba(210,173,92,.14); border: 1px solid rgba(210,173,92,.45); }
.astro-ask-banner.repeat { background: rgba(45,95,143,.08); border: 1px solid rgba(45,95,143,.25); }
.astro-ask-banner.note { background: rgba(45,95,143,.06); }
.astro-ask-banner .astro-sol-why { margin-top: 6px; }

/* Хорар на главной: маленькая карточка в стиле «Темы вашего года» */
.astro-hq-mini { padding-top: 12px; padding-bottom: 12px; margin-top: -6px; gap: 2px;
  background: linear-gradient(135deg, rgba(45,95,143,.12), rgba(210,173,92,.12)); border-color: rgba(45,95,143,.35); }
.astro-hq-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--green); }
.astro-hq-mini-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink, inherit); }

/* Кабинет и оплата */
.astro-paywall { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; border: 1px dashed rgba(210,173,92,.6);
  background: linear-gradient(135deg, rgba(210,173,92,.10), rgba(45,95,143,.06)); }
.astro-paywall .astro-btn { align-self: flex-start; }
.astro-modal { position: fixed; inset: 0; z-index: 50; background: rgba(15,34,56,.45); display: flex; align-items: flex-end; justify-content: center; }
.astro-modal-box { width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--cream); border-radius: 22px 22px 0 0; padding: 18px 16px 24px; box-shadow: 0 -10px 40px rgba(15,34,56,.25); }
@media (min-width: 700px) { .astro-modal { align-items: center; } .astro-modal-box { border-radius: 22px; } }
.astro-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 18px; }
.astro-plan { margin: 10px 0; }
.astro-plan.hl { border: 1.5px solid rgba(210,173,92,.8); }
.astro-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.astro-plan-head span { font-weight: 700; white-space: nowrap; }
.astro-plan-head i { font-style: normal; font-weight: 400; font-size: 12px; }
.astro-plan-btns { display: flex; flex-direction: column; gap: 8px; }
.astro-cab { margin: 0 0 16px; }
.astro-login .astro-input { width: 100%; }
.astro-or { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0; }
#astro-google-btn { display: flex; justify-content: center; min-height: 44px; }
.astro-error { color: #b0413e; font-size: 14px; }
.astro-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px;
  background: rgba(46,125,90,.12); border: 1px solid rgba(46,125,90,.35); font-size: 14px; }

/* Пояснение к точкам под днями */
.astro-day-legend { margin: 2px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.astro-day-legend p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.astro-day-legend i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.astro-day-legend.row { flex-direction: row; gap: 16px; }
.astro-day-why { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 12px; font-size: 14px; line-height: 1.45; color: var(--text); }
.astro-day-why i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #7aa6cf; }
.astro-day-why.strong i { background: #d2ad5c; }
.astro-cab-link { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.astro-ask-modes { flex-wrap: nowrap; }
.astro-ask-modes .astro-chip { flex: 1 1 0; font-size: 13.5px; padding: 9px 8px; text-align: center; line-height: 1.25; }
.astro-plan-list { margin: 6px 0 12px; }
.astro-answer { margin-top: 10px; font-size: 15px; line-height: 1.55; }
.astro-answer p { margin: 0 0 10px; }
.astro-answer-verdict { font-weight: 700; font-size: 17px; line-height: 1.45; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.astro-answer-h { margin: 16px 0 6px; font-size: 15px; }
.astro-head-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.astro-head-right .astro-mini-btn, .astro-bm-corner .astro-mini-btn { padding: 5px 8px; }
.astro-card:has(> .astro-bm-corner) { position: relative; }
.astro-bm-corner { position: absolute; top: 12px; right: 12px; z-index: 1; }
.astro-bm-corner ~ .astro-year-title, .astro-bm-corner ~ .astro-year-kicker, .astro-bm-corner ~ h4 { padding-right: 44px; }
.astro-card-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.astro-card-actions .astro-mini-btn, .astro-bm-corner .astro-mini-btn { padding: 5px 8px; }
.astro-card-top { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 10px; }
.astro-card-top .astro-tags { flex: 1; min-width: 0; margin: 0; }
.astro-event-date { flex-wrap: wrap; row-gap: 6px; }
.astro-head-right { flex-wrap: wrap; justify-content: flex-end; }
.astro-card-top-actions { position: absolute; top: 12px; right: 12px; }
.astro-card:has(> .astro-card-top-actions) { position: relative; }
.astro-card:has(> .astro-card-top-actions) > .astro-tags { padding-right: 150px; }
.astro-bm-corner { display: inline-flex; gap: 6px; }
.astro-bm-corner ~ .astro-year-title, .astro-bm-corner ~ .astro-year-kicker, .astro-bm-corner ~ h4 { padding-right: 150px; }
.astro-event-date .astro-head-right { margin-left: auto; }
.astro-head-right { gap: 6px; }
.astro-head-right .astro-mini-btn, .astro-card-actions .astro-mini-btn, .astro-bm-corner .astro-mini-btn { font-size: 12.5px; padding: 4px 7px; gap: 4px; }
.astro-event-date { column-gap: 4px; }
.astro-fin-h { margin: 28px 0 4px; font-size: 22px; }
.astro-fin-sum { background: var(--paper); border: 1px solid var(--line); }
