:root {
  color-scheme: dark;
  --bg: #14051f;
  --bg-2: #25073b;
  --card: #fffbff;
  --card-2: #f8f2fb;
  --ink: #281735;
  --light: #fff8ff;
  --muted: #887895;
  --violet: #6a0dad;
  --violet-dark: #240637;
  --gold: #d4af37;
  --gold-soft: #f0dfaa;
  --line: rgba(212, 175, 55, 0.28);
  --shadow: 0 22px 50px rgba(6, 1, 13, 0.38);
  --sky-night-deep: #101a32;
  --sky-night: #172746;
  --sky-surface: #20375c;
  --sky-surface-soft: #29476f;
  --sky-blue: #709ed2;
  --sky-blue-light: #9cc7eb;
  --sky-blue-soft: #bedcf2;
  --sky-glow: rgba(126, 177, 224, 0.22);
  --sky-violet-blue: #536aa4;
  --sky-indigo-soft: #394d82;
  --sky-text: #eef4f8;
  --sky-muted: #adc0d5;
  --focus-ring: #b9dfff;
}

* { box-sizing: border-box; }

html {
  scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(212, 175, 55, 0.16), transparent 26%),
    radial-gradient(circle at 15% 20%, rgba(106, 13, 173, 0.42), transparent 30%),
    linear-gradient(180deg, #10031a 0%, #1a0528 48%, #2b0842 100%);
  color: var(--light);
  font-family: "Segoe UI", Arial, sans-serif;
}

button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

button {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
}

button[aria-busy="true"] {
  cursor: progress;
  opacity: .72;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.has-v2-navigation {
  background:
    radial-gradient(circle at 50% 8%, rgba(112, 158, 210, .18), transparent 34%),
    linear-gradient(180deg, var(--sky-night-deep) 0%, #17213f 46%, #25103b 100%);
}

.app-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px));
}

.hero {
  min-height: 315px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(42, 7, 65, 0.96), rgba(17, 4, 28, 0.96));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(156, 199, 235, .08);
  border-radius: 14px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 26px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 34%, rgba(212,175,55,.32) 35%, transparent 36%),
    repeating-conic-gradient(from 0deg, rgba(212,175,55,.35) 0 4deg, transparent 4deg 30deg);
  opacity: .7;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: -.04em;
  box-shadow: 0 0 0 5px rgba(228, 189, 75, .04), 0 0 22px rgba(228, 189, 75, .12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(228, 189, 75, .2);
  border-radius: 50%;
  transform: rotate(26deg) scaleX(.42);
  pointer-events: none;
}

.brand-mark::after {
  transform: rotate(-26deg) scaleX(.42);
  border-color: rgba(156, 199, 235, .22);
}

.brand-mark span {
  inset: 8px;
  border-color: rgba(228, 189, 75, .38);
  transform: none;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
  color: var(--sky-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(228, 189, 75, .65);
}

.hero-status-separator { color: rgba(228, 189, 75, .58); }
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 { font-size: 31px; line-height: 1.08; }
h2 { font-size: 24px; line-height: 1.15; color: var(--violet-dark); }
h3 { font-size: 18px; color: var(--violet-dark); }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
  color: #f6eafc;
  font-size: 17px;
}

.hero-purpose {
  position: relative;
  z-index: 1;
  max-width: 38ch;
  margin: 8px 0 0;
  color: #f2ead4;
  font-size: 14px;
  line-height: 1.5;
}

.hero-actions, .button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.gold-button, .ghost-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 800;
}

.gold-button {
  border: 0;
  background: var(--gold);
  color: #1c0926;
}

.ghost-button {
  border: 1px solid rgba(212, 175, 55, 0.48);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  width: 100%;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 5, 31, 0.88);
  color: var(--gold-soft);
  font-weight: 900;
  position: sticky;
  top: max(0px, env(safe-area-inset-top, 0px));
  z-index: 6;
  backdrop-filter: blur(12px);
}

.nav-toggle span:first-child {
  display: inline-grid;
  place-items: center;
  width: 24px;
  margin-right: 6px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 10px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 5, 31, 0.82);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.nav-item {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cdb9db;
  font-size: 13px;
}

.nav-item.is-active {
  background: var(--gold);
  color: #1c0926;
  font-weight: 900;
}

.v2-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 10px 0;
  padding: 5px;
  border: 1px solid rgba(156, 199, 235, .18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 55, 92, .94), rgba(16, 26, 50, .98));
  position: sticky;
  top: 0;
  z-index: 7;
  box-shadow: 0 -10px 32px rgba(8, 16, 34, .3), inset 0 1px rgba(240, 223, 170, .08);
  backdrop-filter: blur(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.v2-bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0 16px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 199, 235, .5), rgba(212, 175, 55, .38), transparent);
  pointer-events: none;
}

.v2-bottom-nav[hidden] { display: none; }
#navToggle[hidden],
#mainNavigation[hidden],
#v2AdminEntry[hidden] { display: none !important; }

.v2-nav-item {
  position: relative;
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px 2px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sky-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.v2-nav-item > span:first-child {
  min-height: 22px;
  color: var(--sky-blue-light);
  font-size: 18px;
  filter: saturate(.72);
}

.v2-nav-item::after {
  content: "";
  position: absolute;
  right: 35%;
  bottom: 3px;
  left: 35%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sky-blue-light), var(--gold-soft));
  box-shadow: 0 0 8px rgba(156, 199, 235, .34);
  opacity: 0;
}

.v2-nav-item.is-active {
  background: radial-gradient(circle at 50% 36%, rgba(156, 199, 235, .16), transparent 68%);
  color: #f7f3e9;
  box-shadow: none;
  font-weight: 900;
}

.v2-nav-item.is-active > span:first-child {
  color: var(--sky-blue-soft);
  filter: none;
  text-shadow: 0 0 12px rgba(156, 199, 235, .42);
}

.v2-nav-item.is-active::after {
  opacity: 1;
}

@media (hover: hover) {
  .v2-nav-item:hover:not(.is-active) {
    background: rgba(112, 158, 210, .08);
    color: var(--sky-text);
  }
}

.more-navigation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-active-section="more"] #moreView .more-navigation-grid .mini-card {
  min-height: 78px;
  border-color: rgba(156, 199, 235, .24);
  background: linear-gradient(145deg, rgba(41, 71, 111, .9), rgba(23, 39, 70, .96));
  color: var(--sky-text);
  box-shadow: 0 12px 28px rgba(8, 16, 34, .2);
}

body[data-active-section="more"] #moreView .more-navigation-grid .mini-card .mini-icon {
  color: var(--sky-blue-soft);
}

@media (hover: hover) {
  body[data-active-section="more"] #moreView .more-navigation-grid .mini-card:hover {
    border-color: rgba(156, 199, 235, .52);
    background: linear-gradient(145deg, rgba(49, 82, 126, .96), rgba(27, 47, 83, .98));
  }
}

body[data-active-section="more"] #moreView .more-navigation-grid .mini-card:active {
  border-color: rgba(212, 175, 55, .46);
  background: linear-gradient(145deg, var(--sky-surface), var(--sky-night));
}

.nav-toggle:focus-visible,
.nav-item:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .58);
  outline-offset: 2px;
}

.view { display: none; }
.view.is-active {
  display: grid;
  gap: 10px;
  scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px));
}

.view.is-active.is-route-entering {
  animation: routeViewEnter 220ms cubic-bezier(.22, .75, .24, 1) both;
}

.card, .mini-card, .level-card {
  border: 1px solid rgba(106, 13, 173, 0.14);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.card p { line-height: 1.45; }
.muted { color: var(--muted); line-height: 1.45; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--violet-dark);
  font-weight: 900;
}

.progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee4f4;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: width .35s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats-grid div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid #eadff0;
  border-radius: 8px;
  background: var(--card-2);
}

.stats-grid strong { color: var(--violet-dark); font-size: 18px; }
.stats-grid span { color: var(--muted); font-size: 12px; }

.cosmic-rhythm-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(212, 175, 55, .16), transparent 28%),
    linear-gradient(160deg, rgba(255, 251, 255, .98), rgba(248, 242, 251, .98));
}

.cosmic-score {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(212, 175, 55, .6);
  border-radius: 50%;
  color: var(--violet-dark);
  background:
    radial-gradient(circle, rgba(242, 193, 78, .28), transparent 56%),
    conic-gradient(from 30deg, rgba(75, 46, 131, .16), rgba(212, 175, 55, .34), rgba(75, 46, 131, .16));
  box-shadow: 0 10px 28px rgba(75, 46, 131, .16);
}

.cosmic-score span {
  font-weight: 900;
  font-size: 20px;
}

.cosmic-score small {
  margin-top: -14px;
  color: var(--muted);
  font-weight: 800;
}

.cosmic-stats strong {
  font-size: 17px;
}

.cosmic-bars {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.cosmic-bars div {
  display: grid;
  grid-template-columns: 78px 1fr 42px;
  align-items: center;
  gap: 8px;
  color: var(--violet-dark);
  font-size: 13px;
  font-weight: 800;
}

.cosmic-bars b {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 46, 131, .12);
}

.cosmic-bars i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: width .35s ease;
}

.cosmic-bars em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.cosmic-history {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.cosmic-history span {
  padding: 7px 9px;
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 999px;
  background: rgba(255, 250, 240, .78);
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 800;
}

.discovery-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 175, 55, .34);
  background:
    radial-gradient(circle at 92% 10%, rgba(212, 175, 55, .18), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 244, .98), rgba(247, 239, 251, .96));
}

.discovery-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -58px;
  bottom: -66px;
  border: 1px solid rgba(75, 46, 131, .12);
  border-radius: 50%;
  pointer-events: none;
}

.discovery-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.discovery-card-head h2 {
  margin-top: 3px;
}

.discovery-symbol,
.journey-score {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 50%;
  background: var(--violet-dark);
  color: var(--gold);
  font-weight: 900;
}

.discovery-lead {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.58;
}

.focus-step {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .62);
}

.focus-step span {
  color: var(--violet-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.focus-step p {
  margin: 0;
  line-height: 1.5;
}

.daily-answer-card {
  display: grid;
  gap: 12px;
}

.daily-answer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-answer-head h2 { margin-bottom: 0; }

.daily-answer-symbol {
  color: var(--gold, #d4af37);
  font-size: 1.35rem;
  line-height: 1;
}

.daily-answer-hint,
.daily-answer-after {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.daily-answer-label {
  color: var(--violet-dark);
  font-size: .82rem;
  font-weight: 800;
}

.daily-answer-after {
  font-size: .8rem;
}

.daily-focus-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.daily-focus-status.is-complete {
  color: #557c43;
}

.daily-completion-note {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold, #d4af37);
  background: rgba(212, 175, 55, .1);
  color: var(--violet-dark);
  font-size: .86rem;
  line-height: 1.5;
}

.daily-completion-note p { margin: 0; }

.technical-disclosure {
  border-top: 1px solid rgba(156, 199, 235, .2);
  border-bottom: 1px solid rgba(156, 199, 235, .2);
}

.technical-disclosure + .technical-disclosure {
  border-top: 0;
}

.technical-disclosure summary {
  cursor: pointer;
  padding: 11px 2px;
  color: var(--sky-blue-light, #9cc7eb);
  font-size: .86rem;
  font-weight: 800;
  list-style-position: inside;
}

.technical-disclosure[open] summary {
  color: var(--gold-soft, #f0cf66);
}

.technical-disclosure > div {
  padding: 0 0 10px;
}

.discovery-actions,
.journey-action {
  position: relative;
  z-index: 1;
}

.journey-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 5px 0;
}

.journey-explainer {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.journey-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(75, 46, 131, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.journey-day.is-complete {
  border-color: rgba(212, 175, 55, .8);
  background: linear-gradient(145deg, var(--violet-dark), var(--violet));
  color: #fff8e5;
  box-shadow: 0 6px 14px rgba(47, 20, 73, .16);
}

.journey-day.is-current {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .2);
  color: var(--violet-dark);
}

.weekly-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 2px;
}

.weekly-story-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(75, 46, 131, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 800;
}

.quick-grid, .level-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.daily-cycle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-cycle article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadff0;
  border-radius: 8px;
  background: var(--card-2);
}

.mini-card, .level-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
}

.mini-card { font-size: 16px; }

.mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 50%;
  color: var(--gold);
  background: var(--violet-dark);
  font-size: 18px;
}

.admin-entry {
  grid-column: 1 / -1;
  min-height: 78px;
  border-color: rgba(212, 175, 55, .42);
  background: linear-gradient(135deg, #fffaf0, #f8f2fb);
}

.mini-card span, .level-card span {
  font-size: 14px;
  font-weight: 800;
}

.identity-card {
  gap: 16px;
}

.identity-progress,
.identity-flow {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 250, 240, .9), rgba(248, 242, 251, .9));
  color: var(--violet-dark);
}

.identity-progress strong,
.identity-flow h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.identity-progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 20, 73, .12);
}

.identity-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
}

.identity-progress ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.identity-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.identity-field-button {
  min-height: 42px;
  border: 1px solid rgba(47, 20, 73, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: var(--violet-dark);
  font-weight: 800;
}

.identity-field-button.is-active {
  border-color: rgba(212, 175, 55, .85);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .14);
}

.identity-flow input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(47, 20, 73, .18);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .86);
  color: var(--violet-dark);
  font: inherit;
}

.location-settings-card {
  display: grid;
  gap: 14px;
  color: var(--ink);
}

.location-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.location-settings-head #mySkyTitle {
  max-width: 52%;
  color: var(--violet-dark);
  font-size: .95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: right;
}

.location-settings-card #locationStatus,
.location-access-note {
  margin: 0;
  line-height: 1.5;
}

.location-settings-editor {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(47, 20, 73, .14);
}

.location-settings-editor[hidden],
.location-access-note[hidden] {
  display: none;
}

.location-editor-label {
  margin: 0;
  color: var(--violet-dark);
  font-size: .82rem;
  font-weight: 800;
}

.sky-context-bar {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(156, 199, 235, .2);
  border-bottom: 1px solid rgba(156, 199, 235, .2);
}

.sky-location-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--sky-text);
  text-align: left;
}

.sky-location-indicator:hover #skyLocationIndicatorLabel,
.sky-location-indicator:focus-visible #skyLocationIndicatorLabel {
  color: #fff;
}

#skyLocationIndicatorLabel {
  min-width: 0;
  color: var(--sky-text);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#skyLocationIndicatorMeta {
  min-width: 0;
  color: var(--sky-muted);
  font-size: .82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#skyLocationIndicatorMeta[hidden],
.sky-location-action[hidden] {
  display: none;
}

.sky-location-action {
  margin-left: auto;
  color: var(--gold-soft);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.location-mode-label {
  margin: 0;
  color: var(--gold-soft);
  font-size: .82rem;
  font-weight: 800;
}

.sky-scope-section {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(156, 199, 235, .16);
}

.sky-scope-section[hidden] {
  display: none;
}

.sky-scope-help {
  min-height: 2.7em;
  margin: 0;
  color: var(--sky-muted);
  font-size: .88rem;
  line-height: 1.45;
}

.my-sky-entry[hidden] {
  display: none;
}

.sky-scope-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sky-scope-toggle .identity-field-button {
  min-height: 44px;
  border-color: rgba(112, 158, 210, .25);
  background: rgba(32, 55, 92, .42);
  color: var(--sky-text);
  line-height: 1.25;
  white-space: normal;
}

.sky-scope-toggle .identity-field-button.is-active,
.sky-scope-toggle .identity-field-button[aria-pressed="true"] {
  border-color: rgba(212, 175, 55, .5);
  background: linear-gradient(145deg, rgba(190, 220, 242, .96), rgba(156, 199, 235, .9));
  color: var(--sky-night-deep);
  box-shadow: inset 0 -2px rgba(212, 175, 55, .5), 0 6px 18px rgba(112, 158, 210, .18);
}

.my-sky-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--card-2);
  color: var(--ink);
  font-size: .94rem;
}

.my-sky-summary:empty {
  display: none;
}

.my-sky-summary span {
  color: var(--muted);
}

.my-sky-summary b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.location-input-row {
  display: grid;
  gap: 6px;
}

.location-input-row span {
  color: var(--muted);
  font-size: .9rem;
}

.location-input-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(47, 20, 73, .18);
  border-radius: 8px;
  background: #fff;
  color: var(--violet-dark);
}

.location-attribution {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.location-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.location-candidate-list {
  display: grid;
  gap: 8px;
}

.location-candidate-button {
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}

.location-candidate-button:focus-visible,
.location-candidate-button:hover {
  border-color: rgba(212, 175, 55, .86);
}

.location-settings-card .gold-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.message-box.sky-human-story {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(156, 199, 235, .3);
  border-radius: 8px;
  background: rgba(16, 26, 50, .72);
  color: var(--sky-text-strong, #f7f8ff);
  text-align: left;
}

.message-box.sky-human-story[hidden] { display: none; }

.sky-human-story .eyebrow { margin: 0; color: var(--gold-soft); }

.sky-human-essence {
  display: grid;
  gap: 4px;
}

.sky-human-essence > span,
.sky-human-resonance > strong,
.sky-human-action > strong {
  color: var(--sky-blue-light, #9cc7eb);
  font-size: .78rem;
  line-height: 1.3;
}

.sky-human-essence h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sky-human-resonance,
.sky-human-action {
  display: grid;
  gap: 5px;
}

.sky-human-resonance p,
.sky-human-action p,
.sky-human-why p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }

.sky-human-action {
  padding: 11px 12px;
  border-left: 3px solid var(--gold, #d4af37);
  background: rgba(212, 175, 55, .08);
}

.sky-human-question {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-left: 3px solid var(--sky-blue-light, #9cc7eb);
  background: rgba(156, 199, 235, .08);
}

.sky-human-question strong {
  color: #9cc7eb;
  font-size: .78rem;
  line-height: 1.3;
}

.sky-human-question p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }

.sky-human-action > strong { color: var(--gold-soft); }

.sky-human-why,
.cosmogram-detail-disclosure,
.cosmogram-method-note {
  border-top: 1px solid rgba(156, 199, 235, .2);
}

.sky-human-why summary,
.cosmogram-detail-disclosure summary,
.cosmogram-method-note summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--sky-blue-light, #9cc7eb);
  font-weight: 800;
  cursor: pointer;
}

.sky-human-why summary:focus-visible,
.cosmogram-detail-disclosure summary:focus-visible,
.cosmogram-method-note summary:focus-visible {
  outline: 3px solid var(--sky-focus, #f2c14e);
  outline-offset: 3px;
}

.sky-human-why[open],
.cosmogram-detail-disclosure[open],
.cosmogram-method-note[open] { padding-bottom: 4px; }

.sky-human-why p + p,
.cosmogram-detail-disclosure p + p { margin-top: 7px; }

.sky-human-method { color: var(--sky-text-muted, rgba(247, 248, 255, .68)); font-size: .84rem; }

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.identity-layer-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, .36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 240, .94), rgba(248, 242, 251, .94));
  color: var(--violet-dark);
}

.identity-layer-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.identity-layer-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.identity-meta span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(47, 20, 73, .08);
  color: var(--violet-dark);
  font-size: 11px;
  font-weight: 800;
}

.level-card.is-complete {
  border-color: rgba(212, 175, 55, .8);
}

.section-title {
  position: relative;
  padding: 10px 4px 12px;
}

.section-title h2 {
  color: var(--light);
}

body.has-v2-navigation .section-title::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -30px;
  width: 190px;
  height: 82px;
  background: radial-gradient(circle, var(--sky-glow), transparent 70%);
  pointer-events: none;
}

body.has-v2-navigation .section-title > * {
  position: relative;
}

body.has-v2-navigation .section-title h2 {
  color: var(--sky-text);
  text-shadow: 0 0 24px rgba(156, 199, 235, .16);
}

.level-detail .anchor, .message-box {
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  background: #fff9e8;
  color: var(--violet-dark);
  white-space: pre-wrap;
}

.rich-text {
  max-height: 360px;
  overflow: auto;
  line-height: 1.55;
  font-size: 16px;
}

.rich-text b {
  display: block;
  margin: 8px 0 4px;
  color: var(--violet-dark);
}

textarea, input, select {
  width: 100%;
  border: 1px solid #e1d3ea;
  border-radius: 8px;
  padding: 11px;
  background: white;
  color: var(--ink);
  line-height: 1.42;
}

textarea { resize: vertical; }

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--violet-dark);
  font-weight: 800;
  font-size: 13px;
}

.question-card h2 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 22px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.journal-list {
  display: grid;
  gap: 10px;
}

.journal-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

.journal-item time {
  color: var(--muted);
  font-size: 12px;
}

body[data-active-section="path"] #journalView .search-row input {
  border-color: rgba(156, 199, 235, .28);
  background: rgba(238, 244, 248, .96);
}

body[data-active-section="path"] #journalView .journal-item {
  border-color: rgba(156, 199, 235, .24);
  background: linear-gradient(145deg, rgba(41, 71, 111, .94), rgba(23, 39, 70, .98));
  color: var(--sky-text);
  box-shadow: 0 14px 30px rgba(8, 16, 34, .22);
}

body[data-active-section="path"] #journalView .journal-item time {
  color: var(--sky-blue-light);
}

body[data-active-section="path"] #journalView .journal-item h3 {
  color: #f6f1e7;
}

body[data-active-section="path"] #journalView .journal-item p {
  color: #dce7f0;
  line-height: 1.55;
}

body[data-active-section="path"] #journalView .journal-item strong {
  color: var(--gold-soft);
}

.manifest-grid {
  display: grid;
  gap: 10px;
}

.manifest-output {
  min-height: 120px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  background: #180524;
  color: #fff8ff;
  white-space: pre-wrap;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

.visual-card {
  text-align: center;
}

.visual-card {
  background: linear-gradient(180deg, rgba(255, 251, 255, .98), rgba(248, 242, 251, .96));
}

body[data-active-section="sky"] #visualView .visual-card {
  border-color: rgba(156, 199, 235, .28);
  box-shadow: 0 20px 48px rgba(8, 16, 34, .3), inset 0 1px rgba(190, 220, 242, .16);
}

.visual-card.is-cosmogram-shell,
.visual-card:has(.cosmogram-mode-panel:not([hidden])),
.visual-card:has(.explanation-mode-panel:not([hidden])) {
  border-color: rgba(212, 175, 55, .5);
  background:
    radial-gradient(circle at 86% 0%, rgba(212, 175, 55, .1), transparent 32%),
    linear-gradient(160deg, rgba(25, 4, 39, .96), rgba(9, 1, 16, .98));
  box-shadow: inset 0 0 0 1px rgba(240, 223, 170, .08), var(--shadow);
}

.visual-card .ghost-button {
  border-color: rgba(106, 13, 173, .28);
  background: rgba(255, 255, 255, .92);
  color: var(--violet-dark);
  box-shadow: 0 8px 18px rgba(36, 6, 55, .08);
}

.visual-card .ghost-button:hover,
.visual-card .ghost-button:focus-visible {
  border-color: rgba(212, 175, 55, .52);
  background: #fff8dc;
  color: #1c0926;
}

.visual-card .gold-button {
  color: #1c0926;
}

.lunar-state-context {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 8px;
  background: rgba(255, 250, 240, .58);
}

.lunar-state-label {
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@keyframes routeViewEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes softRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-order {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #eadff0;
  border-radius: 8px;
  background: var(--card-2);
}

.admin-order span {
  color: var(--muted);
  font-size: 12px;
}

.contact-link {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  background: var(--violet-dark);
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #1c0926;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 800;
  z-index: 20;
}

.toast.is-visible { display: block; }

@media (max-width: 620px) {
  .app-shell {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    padding-left: max(10px, env(safe-area-inset-left, 0px));
  }
  .nav-toggle { display: block; }
  .bottom-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    margin-top: 6px;
  }
  .bottom-nav.is-open { display: grid; }
  .nav-item { min-height: 44px; font-size: 12px; padding: 0 2px; }
  body.has-v2-navigation .app-shell {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }
  .v2-bottom-nav {
    position: fixed;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: 0;
    left: max(8px, env(safe-area-inset-left, 0px));
    top: auto;
    margin: 0;
    padding-bottom: max(7px, env(safe-area-inset-bottom, 0px));
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
  .v2-nav-item { min-height: 52px; }
  .quick-grid, .level-grid, .stats-grid, .daily-cycle, .identity-grid { grid-template-columns: 1fr; }
  .hero { min-height: 285px; }
  .sky-grid { grid-template-columns: 1fr; }
  .lunar-state-toolbar { grid-template-columns: 1fr 1fr; }
  .lunar-refresh-button { grid-column: 1 / -1; }
  .lunar-state-panel dl { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
}

/* Cosmogram Lab Phase 2: static, dependency-free SVG inside visualView. */
.visual-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(112, 158, 210, .22);
  border-radius: 12px;
  background: rgba(32, 55, 92, .07);
}

.visual-mode-tab {
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #5e4b69;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.visual-mode-tab.is-active,
.visual-mode-tab[aria-selected="true"] {
  border-color: rgba(156, 199, 235, .44);
  background: linear-gradient(145deg, var(--sky-surface), var(--sky-night-deep));
  color: var(--sky-blue-soft);
  box-shadow: inset 0 -2px rgba(212, 175, 55, .38), 0 8px 20px rgba(16, 26, 50, .2);
}

.visual-mode-tab:focus-visible,
.cosmogram-toolbar select:focus-visible,
.cosmogram-detail-head button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .58);
  outline-offset: 2px;
}

.visual-mode-panel[hidden] { display: none; }
.visual-card,
.visual-mode-tabs,
.visual-mode-panel {
  scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px));
}

.lunar-state-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin: 0 0 12px;
  align-items: center;
}

.lunar-state-toolbar,
.lunar-state-tab,
.lunar-refresh-button,
.lunar-state-panel {
  animation: none !important;
}

.lunar-state-tab {
  min-height: 42px;
  border: 1px solid rgba(106, 13, 173, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--violet-dark);
  font-weight: 800;
}

.lunar-state-tab.is-active {
  border-color: rgba(212, 175, 55, .55);
  background: var(--gold);
  color: #1c0926;
}

.lunar-refresh-button {
  min-height: 42px;
}

.lunar-state-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, .34);
  border-radius: 8px;
  background: rgba(255, 250, 240, .88);
  color: var(--violet-dark);
  text-align: left;
}

.lunar-state-panel:empty {
  display: none;
}

.lunar-state-panel strong {
  font-size: 15px;
}

.lunar-state-panel dl {
  display: grid;
  grid-template-columns: minmax(104px, .7fr) 1fr;
  gap: 5px 10px;
  margin: 0;
}

.lunar-state-panel dt {
  color: var(--muted);
}

.lunar-state-panel dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cosmogram-mode-panel,
.explanation-mode-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, .46);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(212, 175, 55, .14), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(111, 39, 171, .34), transparent 42%),
    linear-gradient(155deg, rgba(20, 3, 31, .98) 0%, rgba(42, 7, 65, .96) 52%, rgba(10, 2, 19, .98) 100%);
  color: #fff8ff;
  text-align: left;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(240, 223, 170, .08), 0 18px 42px rgba(5, 1, 11, .32);
}

.cosmogram-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.cosmogram-heading h2,
.cosmogram-heading h3 { color: #fff8ff; }

.cosmogram-heading > p {
  color: rgba(255, 248, 255, .7);
  font-size: 14px;
  line-height: 1.45;
}

.cosmogram-unavailable {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 12px;
  background: rgba(8, 1, 15, .38);
  text-align: center;
}

.cosmogram-unavailable[hidden] { display: none; }
.cosmogram-unavailable > span { color: var(--gold-soft); font-size: 38px; }
.cosmogram-unavailable h3 { color: var(--gold-soft); }
.cosmogram-unavailable p { max-width: 390px; color: rgba(255, 248, 255, .72); line-height: 1.5; }

.cosmogram-ready[hidden] { display: none; }

.cosmogram-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cosmogram-toolbar label {
  color: rgba(255, 248, 255, .72);
  font-size: 13px;
  font-weight: 700;
}

.cosmogram-toolbar select {
  min-height: 44px;
  max-width: 190px;
  border: 1px solid rgba(212, 175, 55, .42);
  border-radius: 9px;
  background: #1c0729;
  color: #fff8ff;
}

.cosmogram-map-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.cosmogram-map-menu {
  margin: 0 0 10px;
  border: 1px solid rgba(156, 199, 235, .2);
  border-radius: 11px;
  background: rgba(7, 16, 31, .3);
}

.cosmogram-map-menu > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--sky-blue-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.cosmogram-map-menu > summary::-webkit-details-marker { display: none; }
.cosmogram-map-menu > summary::after { content: "+"; color: var(--gold-soft); font-size: 18px; }
.cosmogram-map-menu[open] > summary::after { content: "−"; }
.cosmogram-map-menu[open] > .cosmogram-map-modes { padding: 0 10px 10px; }

.cosmogram-map-modes button {
  min-height: 44px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 8px;
  background: rgba(255, 248, 255, .06);
  color: rgba(255, 248, 255, .76);
  font-size: 12px;
  font-weight: 800;
}

.cosmogram-map-modes button.is-active {
  border-color: rgba(242, 193, 78, .74);
  background: rgba(242, 193, 78, .18);
  color: #fff8ff;
}

.cosmogram-mode-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 10px;
}

.cosmogram-mode-hints[hidden] { display: none; }

.cosmogram-mode-hints span {
  border: 1px solid rgba(156, 199, 235, .28);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 248, 255, .72);
  font-size: 11px;
  font-weight: 800;
}

.cosmogram-guide {
  display: grid;
  margin: 0 0 10px;
}

.cosmogram-guide[hidden],
.cosmogram-guide-panel[hidden] { display: none; }

.cosmogram-guide-toggle {
  justify-self: start;
  min-height: 40px;
  border: 1px solid rgba(156, 199, 235, .34);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(38, 105, 122, .16);
  color: #fff8ff;
  font-size: 13px;
  font-weight: 800;
}

.cosmogram-guide-toggle:focus-visible,
.cosmogram-guide-head button:focus-visible {
  outline: 3px solid rgba(242, 193, 78, .58);
  outline-offset: 2px;
}

.cosmogram-guide-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid rgba(156, 199, 235, .28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 24, 35, .72);
}

.cosmogram-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cosmogram-guide-head h3 { color: #fff8ff; font-size: 16px; }

.cosmogram-guide-head button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 50%;
  background: transparent;
  color: #fff8ff;
  font-size: 24px;
}

.cosmogram-guide-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.cosmogram-guide-panel li {
  color: rgba(255, 248, 255, .76);
  line-height: 1.45;
}

.cosmogram-guide-panel li strong { color: #fff8ff; }

.cosmogram-house-status {
  border-top: 1px solid rgba(156, 199, 235, .2);
  padding-top: 10px;
  color: rgba(255, 248, 255, .68);
  font-size: 12px;
  line-height: 1.45;
}

.cosmogram-house-status[data-house-status="approximate"] { color: #f2c14e; }
.cosmogram-house-status[data-house-status="available"] { color: #9ee0c2; }

.cosmogram-wheel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .42);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(106, 13, 173, .26), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(23, 4, 33, .98), rgba(8, 1, 14, .98) 72%);
  box-shadow: inset 0 0 36px rgba(212, 175, 55, .08);
}

body[data-active-section="sky"] .cosmogram-wheel {
  border-color: rgba(156, 199, 235, .42);
  background:
    radial-gradient(circle at 50% 50%, rgba(112, 158, 210, .2), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(26, 39, 72, .98), rgba(8, 12, 29, .99) 74%);
  box-shadow:
    inset 0 0 42px rgba(112, 158, 210, .12),
    0 0 30px rgba(83, 106, 164, .17);
}

.cosmogram-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
  font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
  animation: none !important;
  transition: none !important;
}

.cosmogram-svg *,
.cosmogram-svg *::before,
.cosmogram-svg *::after {
  animation: none !important;
  transition: none !important;
}

.cosmogram-outer {
  fill: rgba(12, 2, 19, .35);
  stroke: rgba(240, 223, 170, .82);
  stroke-width: 1.4;
}

.cosmogram-zodiac-ring,
.cosmogram-aspect-ring {
  fill: none;
  stroke: rgba(212, 175, 55, .25);
  stroke-width: 1;
}

.cosmogram-aspect-ring { stroke-dasharray: 2 5; }
.cosmogram-sector { stroke: rgba(212, 175, 55, .22); stroke-width: .8; }
.cosmogram-tick { stroke: rgba(240, 223, 170, .36); stroke-width: .7; }

.cosmogram-zodiac {
  fill: #f0dfaa;
  font-size: 16px;
  font-weight: 700;
}

.cosmogram-map-label {
  fill: rgba(156, 199, 235, .72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(8, 1, 14, .86);
  stroke-width: 2.8px;
}

.cosmogram-svg[data-map-mode="research"] .cosmogram-map-label {
  fill: rgba(240, 223, 170, .74);
}

.cosmogram-aspect {
  cursor: pointer;
  opacity: .72;
  outline: none;
}

.cosmogram-aspect line,
.cosmogram-aspect circle {
  fill: none;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.cosmogram-aspect:focus line,
.cosmogram-aspect:focus circle,
.cosmogram-aspect:hover line,
.cosmogram-aspect:hover circle {
  stroke-width: 2.8;
  opacity: 1;
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-aspect[data-focus-state="background"] {
  opacity: .18;
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-aspect[data-focus-state="related"] {
  opacity: .96;
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-aspect[data-focus-state="related"] line,
.cosmogram-svg[data-focus-active="true"] .cosmogram-aspect[data-focus-state="related"] circle {
  stroke-width: 2.45;
}

.aspect-conjunction circle { stroke: #e6c866; }
.aspect-opposition line { stroke: #c36a78; }
.aspect-trine line { stroke: #73c4cd; }
.aspect-square line { stroke: #bd6ca6; }
.aspect-sextile line { stroke: #78bfae; }

.cosmogram-leader {
  stroke: rgba(240, 223, 170, .42);
  stroke-width: .8;
  stroke-dasharray: 2 2;
}

.cosmogram-exact-marker {
  fill: #f0dfaa;
  stroke: #35104a;
  stroke-width: 1.2;
}

.cosmogram-planet {
  cursor: pointer;
  outline: none;
}

.cosmogram-planet .planet-shell {
  fill: #180523;
  stroke: #d9bd63;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 2px rgba(240, 223, 170, .45));
}

.cosmogram-planet text {
  fill: #fff8dc;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

.cosmogram-planet:hover .planet-shell,
.cosmogram-planet:focus .planet-shell {
  stroke: #fff0aa;
  stroke-width: 2.2;
}

.cosmogram-planet:focus {
  filter: drop-shadow(0 0 4px rgba(240, 223, 170, .86));
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-planet[data-focus-state="background"],
.cosmogram-svg[data-focus-active="true"] .cosmogram-exact-marker[data-focus-state="background"],
.cosmogram-svg[data-focus-active="true"] .cosmogram-leader[data-focus-state="background"] {
  opacity: .28;
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-planet[data-focus-state="related"],
.cosmogram-svg[data-focus-active="true"] .cosmogram-exact-marker[data-focus-state="related"],
.cosmogram-svg[data-focus-active="true"] .cosmogram-leader[data-focus-state="related"] {
  opacity: .82;
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-planet[data-focus-state="active"] {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(242, 193, 78, .86));
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-planet[data-focus-state="active"] .planet-shell {
  stroke: #f2c14e;
  stroke-width: 2.7;
}

.cosmogram-svg[data-focus-active="true"] .cosmogram-exact-marker[data-focus-state="active"] {
  fill: #f2c14e;
  stroke: #fff6c8;
  stroke-width: 1.8;
}

.planet-sun .planet-shell {
  fill: url(#planetGradientSun);
  stroke: #ffe58d;
  filter: drop-shadow(0 0 5px rgba(255, 218, 88, .9));
}

.planet-moon .planet-shell { fill: url(#planetGradientMoon); stroke: #f5f1df; }
.planet-mercury .planet-shell { fill: url(#planetGradientMercury); stroke: #d8d6d0; }
.planet-venus .planet-shell { fill: url(#planetGradientVenus); stroke: #ffe4a2; }
.planet-mars .planet-shell { fill: url(#planetGradientMars); stroke: #ffb06e; }
.planet-jupiter .planet-shell { fill: url(#planetGradientJupiter); stroke: #ffd17b; }
.planet-saturn .planet-shell { fill: url(#planetGradientSaturn); stroke: #f2d58d; }
.planet-uranus .planet-shell { fill: url(#planetGradientUranus); stroke: #9deee7; }
.planet-neptune .planet-shell { fill: url(#planetGradientNeptune); stroke: #8ab7ff; }
.planet-pluto .planet-shell { fill: url(#planetGradientPluto); stroke: #c19a78; }

.planet-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  opacity: .82;
  vector-effect: non-scaling-stroke;
}

.planet-band {
  fill: none;
  stroke: rgba(62, 31, 19, .55);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.planet-saturn,
.planet-venus { color: #f2d58d; }

.planet-uranus { color: #9deee7; }

.cosmogram-center circle:first-child {
  fill: rgba(106, 13, 173, .22);
  stroke: rgba(212, 175, 55, .46);
}

.cosmogram-center circle:nth-child(2) {
  fill: rgba(8, 1, 15, .86);
  stroke: rgba(240, 223, 170, .7);
}

.cosmogram-center text {
  fill: #f0dfaa;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cosmogram-center text:last-child { font-size: 6px; fill: rgba(255, 248, 255, .68); }

.cosmogram-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  margin: 12px 0 6px;
  color: rgba(255, 248, 255, .76);
  font-size: 12px;
}

.cosmogram-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 99px;
  background: currentColor;
}

.legend-conjunction { color: #e6c866; }
.legend-opposition { color: #c36a78; }
.legend-trine { color: #73c4cd; }
.legend-square { color: #bd6ca6; }
.legend-sextile { color: #78bfae; }

.cosmogram-coordinate-note {
  color: rgba(255, 248, 255, .56);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.cosmogram-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 12px;
  background: rgba(8, 1, 15, .72);
}

.cosmogram-detail[hidden] { display: none; }

.cosmogram-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cosmogram-detail-head h3 { color: #fff8ff; overflow-wrap: anywhere; }

.cosmogram-detail-head button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff8ff;
  font-size: 24px;
}

.perspective-chip {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(111, 191, 200, .16);
  color: #a9e1e6;
  font-size: 11px;
  font-weight: 800;
}

.cosmogram-detail dl {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) 1fr;
  gap: 7px 12px;
  margin: 0;
}

.cosmogram-detail dt { color: rgba(255, 248, 255, .62); }
.cosmogram-detail dd { margin: 0; color: #fff8ff; font-weight: 700; overflow-wrap: anywhere; }
.cosmogram-detail > p { color: rgba(255, 248, 255, .7); line-height: 1.45; }

.cosmogram-main-story {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  border-color: rgba(156, 199, 235, .28);
  background: rgba(9, 20, 42, .82);
  color: #fff8ff;
  white-space: normal;
}

.cosmogram-main-story[hidden] { display: none; }

.cosmogram-main-story-eyebrow {
  margin: 0;
  color: #a9e1e6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.cosmogram-main-story h3 {
  margin: 0;
  color: #fff8ff;
  font-size: 1.1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cosmogram-main-story-summary,
.cosmogram-main-story-polarity,
.cosmogram-main-story-support,
.cosmogram-main-story-question {
  margin: 0;
  color: rgba(255, 248, 255, .86);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cosmogram-main-story-support,
.cosmogram-main-story-question {
  padding: 9px 10px;
  border-left: 3px solid #d4af37;
  background: rgba(212, 175, 55, .08);
}

.cosmogram-main-story-reason {
  color: rgba(255, 248, 255, .62);
  line-height: 1.4;
}

.cosmogram-main-story-actions {
  display: grid;
  gap: 8px;
}

.cosmogram-main-story-actions button {
  min-height: 44px;
  justify-self: start;
  white-space: normal;
}

.planet-meaning-block {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(156, 199, 235, .22);
  border-radius: 8px;
  background: rgba(15, 27, 55, .62);
  color: #fff8ff;
}

.planet-meaning-essence,
.planet-meaning-context,
.planet-meaning-support,
.planet-meaning-question,
.planet-meaning-list {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.planet-meaning-essence {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.planet-meaning-context {
  color: rgba(255, 248, 255, .86);
}

.planet-meaning-list {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: rgba(255, 248, 255, .82);
}

.planet-meaning-support {
  color: rgba(255, 248, 255, .82);
}

.planet-meaning-question {
  padding: 10px 11px;
  border-left: 3px solid #73c4cd;
  background: rgba(115, 196, 205, .08);
  color: #fff8ff;
  font-weight: 800;
}

.planet-meaning-trust,
.cosmogram-detail-note {
  color: rgba(255, 248, 255, .62);
  font-size: .82rem;
  line-height: 1.42;
}

.aspect-detail-essence,
.aspect-detail-attention {
  display: grid;
  gap: 5px;
}

.aspect-detail-essence strong { color: #fff8ff; font-size: 13px; }
.aspect-detail-essence p { color: #fff; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }

.aspect-detail-attention {
  padding: 10px 11px;
  border-left: 3px solid #73c4cd;
  background: rgba(115, 196, 205, .08);
}

.aspect-detail-attention strong { color: #a9e1e6; font-size: 13px; }
.aspect-detail-attention p { color: rgba(255, 248, 255, .84); line-height: 1.45; overflow-wrap: anywhere; }

.cosmogram-detail-disclosure {
  color: rgba(255, 248, 255, .76);
}

.cosmogram-detail-disclosure dl { padding: 4px 0 7px; }
.cosmogram-detail-disclosure p { color: rgba(255, 248, 255, .7); line-height: 1.45; overflow-wrap: anywhere; }
.cosmogram-methodology p:last-child { font-size: .82rem; color: rgba(255, 248, 255, .58); }

.cosmogram-interpretation {
  display: grid;
  gap: 6px;
  padding: 11px;
  border-left: 3px solid #d4af37;
  border-radius: 0 8px 8px 0;
  background: rgba(212, 175, 55, .08);
}

.cosmogram-interpretation[hidden] { display: none; }
.cosmogram-interpretation strong { color: #f0dfaa; }
.cosmogram-interpretation p { line-height: 1.45; }
.cosmogram-interpretation small { color: rgba(255, 248, 255, .6); line-height: 1.4; }

.cosmogram-explanations {
  display: grid;
  gap: 10px;
}

.cosmogram-explanations:empty { display: none; }

.cosmogram-explanation-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 11px;
  background: rgba(8, 1, 15, .5);
}

.cosmogram-explanation-card strong { color: var(--gold-soft); font-size: 13px; }
.cosmogram-explanation-card p { color: #fff8ff; line-height: 1.48; overflow-wrap: anywhere; }
.cosmogram-explanation-card small { color: rgba(255, 248, 255, .58); line-height: 1.4; }
.cosmogram-explanation-card[data-perspective="astronomical"] { border-left: 3px solid #73c4cd; }
.cosmogram-explanation-card[data-perspective="traditional_astrological"] { border-left: 3px solid #d4af37; }
.cosmogram-explanation-card[data-perspective="symbolic_orbis"] { border-left: 3px solid #a77ad2; }
.cosmogram-explanation-card[data-perspective="reflective_practice"] { border-left: 3px solid #78bfae; }

.cosmogram-method-note {
  color: rgba(255, 248, 255, .68);
  font-size: .84rem;
}

.cosmogram-method-note p { margin: 0; padding-bottom: 8px; line-height: 1.45; }

body[data-active-section="influences"] .cosmogram-explanation-card[data-perspective="astronomical"] {
  background: linear-gradient(145deg, rgba(32, 63, 91, .78), rgba(12, 27, 48, .86));
}

body[data-active-section="influences"] .cosmogram-explanation-card[data-perspective="traditional_astrological"] {
  background: linear-gradient(145deg, rgba(73, 57, 63, .7), rgba(26, 25, 44, .88));
}

body[data-active-section="influences"] .cosmogram-explanation-card[data-perspective="symbolic_orbis"] {
  background: linear-gradient(145deg, rgba(57, 48, 105, .72), rgba(24, 25, 55, .9));
}

body[data-active-section="influences"] .cosmogram-explanation-card[data-perspective="reflective_practice"] {
  background: linear-gradient(145deg, rgba(42, 75, 91, .72), rgba(18, 38, 55, .9));
}

.personal-rhythm-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, .26);
  border-radius: 8px;
  background: rgba(8, 1, 15, .48);
}

.personal-rhythm-card > * {
  min-width: 0;
}

.personal-rhythm-card[hidden] { display: none; }

.personal-rhythm-head {
  display: grid;
  gap: 10px;
}

.personal-rhythm-head h3 {
  margin: 0;
  color: #fff8ff;
  font-size: 20px;
}

.personal-rhythm-head p {
  margin: 3px 0 0;
  color: rgba(255, 248, 255, .68);
}

.checkin-consent-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff8ff;
  font-size: 13px;
}

.checkin-consent-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

.checkin-consent-toggle span,
.personal-rhythm-note span {
  color: rgba(255, 248, 255, .82);
}

.personal-rhythm-overview,
.personal-rhythm-areas,
.personal-rhythm-influences,
.personal-rhythm-actions,
.personal-rhythm-reactions {
  display: grid;
  gap: 8px;
}

.personal-rhythm-overview p,
.personal-rhythm-area p,
.personal-rhythm-influence p {
  margin: 0;
  color: rgba(255, 248, 255, .8);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.personal-rhythm-overview strong,
.personal-rhythm-area strong,
.personal-rhythm-influence strong {
  color: var(--gold-soft);
}

.personal-rhythm-area,
.personal-rhythm-influence {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgba(255, 248, 255, .12);
  border-radius: 8px;
  background: rgba(255, 248, 255, .045);
}

.personal-rhythm-area.is-selected {
  border-color: rgba(212, 175, 55, .45);
}

.personal-rhythm-section-label {
  color: rgba(255, 248, 255, .58);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.personal-rhythm-area-action {
  color: rgba(158, 224, 194, .82) !important;
  font-size: 13px;
}

.personal-rhythm-all-influences,
.cosmogram-secondary-disclosure {
  border-top: 1px solid rgba(255, 248, 255, .12);
  padding-top: 9px;
}

.personal-rhythm-all-influences > summary,
.cosmogram-secondary-disclosure > summary {
  cursor: pointer;
  color: var(--gold-soft);
  font-weight: 700;
  min-height: 38px;
}

.personal-rhythm-all-influences > .muted {
  margin: 8px 0;
}

.personal-rhythm-influence summary {
  cursor: pointer;
  color: #fff8ff;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.personal-rhythm-influence-group {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.personal-rhythm-influence-group h4,
.personal-rhythm-influence h5 {
  margin: 0;
  color: var(--gold-soft);
  line-height: 1.35;
}

.personal-rhythm-influence h5 {
  font-size: 15px;
}

.personal-rhythm-influence-meta {
  color: rgba(255, 248, 255, .58) !important;
  font-size: 12px;
}

.personal-rhythm-influence > details {
  margin-top: 4px;
}

.personal-rhythm-influence-compact {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.personal-rhythm-influence-compact span {
  color: rgba(255, 248, 255, .58);
  font-size: 12px;
}

.personal-rhythm-influence dl {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
}

.personal-rhythm-influence dt {
  color: rgba(255, 248, 255, .56);
  font-size: 12px;
}

.personal-rhythm-influence dd {
  margin: 0 0 5px;
  color: rgba(255, 248, 255, .86);
  line-height: 1.42;
}

.personal-rhythm-actions,
.personal-rhythm-reactions {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.personal-rhythm-question-panel {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(115, 196, 205, .26);
  border-radius: 8px;
  background: rgba(115, 196, 205, .07);
}

.personal-rhythm-question-panel[hidden] { display: none; }

.personal-rhythm-question-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.personal-rhythm-question-head h4 {
  margin: 0;
  color: #fff8ff;
  font-size: 16px;
}

.personal-rhythm-field {
  display: grid;
  gap: 6px;
  color: rgba(255, 248, 255, .82);
  font-size: 13px;
}

.personal-rhythm-field select,
.personal-rhythm-field textarea {
  width: 100%;
}

.personal-rhythm-question-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.personal-rhythm-question-answer {
  display: grid;
  gap: 8px;
}

.personal-rhythm-question-answer article {
  display: grid;
  gap: 4px;
}

.personal-rhythm-question-answer strong {
  color: var(--gold-soft);
}

.personal-rhythm-question-answer p,
.personal-rhythm-question-answer small {
  margin: 0;
  color: rgba(255, 248, 255, .82);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.error-text {
  color: #ffb3bd !important;
}

.personal-rhythm-reactions button {
  min-height: 38px;
}

.personal-rhythm-actions button,
.personal-rhythm-reactions button,
.personal-rhythm-question-actions button {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkin-consent-toggle:focus-within,
.personal-rhythm-influence summary:focus-visible,
.personal-rhythm-actions button:focus-visible,
.personal-rhythm-reactions button:focus-visible,
.personal-rhythm-note textarea:focus-visible,
.personal-rhythm-field select:focus-visible,
.personal-rhythm-field textarea:focus-visible,
.personal-rhythm-question-actions button:focus-visible,
.personal-rhythm-question-head button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .58);
  outline-offset: 2px;
}

.personal-rhythm-note {
  display: grid;
  gap: 6px;
  color: rgba(255, 248, 255, .7);
}

.personal-rhythm-note textarea {
  width: 100%;
  min-height: 82px;
}

@media (max-width: 430px) {
  .location-settings-head { align-items: stretch; flex-direction: column; }
  .location-settings-head #mySkyTitle { max-width: none; text-align: left; }
  .location-settings-editor .button-row { display: grid; grid-template-columns: 1fr; }
  .sky-location-indicator { align-items: flex-start; flex-wrap: wrap; }
  .sky-location-action { margin-left: 0; }
  .sky-scope-toggle { gap: 6px; }
  .sky-scope-toggle .identity-field-button { padding-inline: 8px; font-size: .86rem; }
  .sky-human-story { padding: 12px; }
  .sky-human-essence h3 { font-size: 1.08rem; }
  .cosmogram-mode-panel,
  .explanation-mode-panel { padding: 10px; }
  .visual-mode-tab { padding-inline: 3px; font-size: 12px; }
  .cosmogram-toolbar { align-items: stretch; flex-direction: column; }
  .cosmogram-toolbar select { width: 100%; max-width: none; }
  .cosmogram-map-modes { gap: 5px; }
  .cosmogram-map-modes button { font-size: 11px; padding-inline: 4px; }
  .cosmogram-guide-toggle { width: 100%; justify-self: stretch; }
  .cosmogram-main-story { padding: 11px; }
  .cosmogram-main-story-actions button { width: 100%; justify-self: stretch; }
  .cosmogram-detail { padding: 11px; gap: 9px; }
  .planet-meaning-block { padding: 10px; }
  .planet-meaning-essence { font-size: .98rem; }
  .cosmogram-detail dl { grid-template-columns: 1fr; gap: 3px; }
  .cosmogram-detail dd { margin-bottom: 6px; }
  .personal-rhythm-actions,
  .personal-rhythm-reactions,
  .personal-rhythm-question-actions,
  .personal-rhythm-question-head { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  .cosmogram-map-modes {
    grid-template-columns: minmax(44px, 3fr) minmax(44px, 4fr) minmax(44px, 5fr);
    gap: 4px;
  }
  .cosmogram-map-modes button { padding-inline: 2px; }
}

@media (min-width: 700px) {
  .cosmogram-heading { grid-template-columns: minmax(220px, .8fr) 1fr; align-items: end; }
  .cosmogram-explanations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cosmogram-explanation-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .personal-rhythm-head { grid-template-columns: 1fr minmax(220px, auto); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .view.is-active.is-route-entering {
    animation: none;
  }

  button:active:not(:disabled) {
    transform: none;
  }
}

/* ORBIS visual refresh v1: calmer night surfaces and clearer hierarchy. */
:root {
  --bg: #08111f;
  --bg-2: #111d35;
  --card: rgba(18, 29, 52, .94);
  --card-2: rgba(28, 43, 72, .72);
  --ink: #edf3f7;
  --light: #f7f3ea;
  --muted: #a9b9ca;
  --violet: #8065c5;
  --violet-dark: #f0e9ff;
  --gold: #e4bd4b;
  --gold-soft: #f4df9c;
  --line: rgba(228, 189, 75, .26);
  --shadow: 0 22px 50px rgba(2, 8, 20, .38);
}

body {
  background:
    radial-gradient(circle at 82% 4%, rgba(228, 189, 75, .11), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(91, 70, 151, .24), transparent 32%),
    linear-gradient(180deg, #08111f 0%, #101b31 56%, #17132d 100%);
}

.app-shell { padding-top: max(18px, env(safe-area-inset-top, 0px)); }

.hero {
  min-height: 292px;
  padding: 22px;
  border-radius: 20px;
  border-color: rgba(228, 189, 75, .34);
  background:
    radial-gradient(circle at 88% 12%, rgba(228, 189, 75, .15), transparent 24%),
    linear-gradient(145deg, rgba(20, 36, 64, .98), rgba(9, 17, 32, .98));
}

.hero::after { opacity: .48; }
.brand-mark { border-color: var(--gold); }
.hero-copy { color: #dbe6f0; line-height: 1.5; }

h1, h2, h3 { letter-spacing: -.015em; }
h2 { color: var(--violet-dark); }

.gold-button, .ghost-button { border-radius: 12px; }
.gold-button { background: var(--gold); box-shadow: 0 8px 20px rgba(228, 189, 75, .16); }
.ghost-button { border-color: rgba(228, 189, 75, .38); color: var(--gold-soft); }

.card, .mini-card, .level-card {
  border-color: rgba(151, 178, 213, .16);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(2, 8, 20, .24), inset 0 1px rgba(255, 255, 255, .035);
}

.card { padding: 20px; }
.card h2, .card h3, .stats-grid strong, label span { color: var(--violet-dark); }
.muted { color: var(--muted); }

.stats-grid div, .daily-cycle article {
  border-color: rgba(151, 178, 213, .14);
  border-radius: 12px;
  background: var(--card-2);
}

.progress-line { background: rgba(169, 185, 202, .18); }

textarea, input, select {
  border-color: rgba(151, 178, 213, .22);
  border-radius: 11px;
  background: rgba(7, 16, 31, .58);
  color: var(--ink);
}

textarea::placeholder, input::placeholder { color: rgba(169, 185, 202, .72); }

.mini-card { color: var(--ink); }
.mini-card:hover, .mini-card:focus-visible, .level-card:hover, .level-card:focus-visible {
  border-color: rgba(228, 189, 75, .5);
  background: rgba(28, 43, 72, .9);
}

.visual-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 29, 52, .96), rgba(11, 20, 37, .98));
}

.visual-card .ghost-button {
  border-color: rgba(151, 178, 213, .24);
  background: rgba(255, 255, 255, .045);
  color: var(--sky-blue-soft);
  box-shadow: none;
}

.visual-card .ghost-button:hover,
.visual-card .ghost-button:focus-visible {
  border-color: rgba(228, 189, 75, .55);
  background: rgba(228, 189, 75, .12);
  color: var(--gold-soft);
}

.visual-mode-tabs { border-radius: 14px; background: rgba(255, 255, 255, .035); }
.cosmogram-mode-panel, .explanation-mode-panel { border-radius: 16px; }

/* Keep intentionally light utility surfaces readable within the dark theme. */
.message-box,
.level-detail .anchor,
.identity-progress,
.identity-flow,
.identity-field-button,
.identity-flow input {
  color: #281735;
}

.message-box strong,
.identity-progress strong,
.identity-flow h3,
.identity-field-button {
  color: #281735;
}

.cosmic-rhythm-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(228, 189, 75, .14), transparent 28%),
    linear-gradient(160deg, rgba(20, 36, 64, .98), rgba(11, 20, 37, .98));
  color: var(--ink);
}

.cosmic-rhythm-card h2,
.cosmic-rhythm-card .cosmic-bars div,
.cosmic-rhythm-card .cosmic-score {
  color: var(--violet-dark);
}

.cosmic-rhythm-card .stats-grid div {
  border-color: rgba(151, 178, 213, .14);
  background: rgba(28, 43, 72, .72);
}

.admin-entry {
  border-color: rgba(228, 189, 75, .36);
  background: rgba(28, 43, 72, .72);
  color: var(--ink);
}

.journal-empty-state {
  display: grid;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid rgba(156, 199, 235, .24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25, 42, 72, .9), rgba(16, 26, 50, .88));
  box-shadow: 0 18px 42px rgba(2, 8, 20, .2);
}

.journal-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(228, 189, 75, .56);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 22px;
}

.journal-empty-state h3,
.journal-empty-state p { margin: 0; }

.journal-empty-state h3 { color: #fff8ff; }
.journal-empty-state > p:not(.eyebrow) { color: rgba(247, 248, 255, .72); line-height: 1.5; }
.journal-empty-action { width: 100%; margin-top: 4px; }

.onboarding-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-intro {
  margin: -4px 0 2px;
  color: rgba(255, 248, 255, .76);
  line-height: 1.5;
}

.onboarding-note {
  margin: -2px 0 2px;
  color: rgba(255, 248, 255, .66);
  font-size: .82rem;
  line-height: 1.4;
}

.onboarding-card small { color: inherit; opacity: .7; font-weight: 600; }

.identity-readiness-card {
  display: grid;
  gap: 9px;
  margin: 14px 0 2px;
  padding: 13px;
  border: 1px solid rgba(156, 199, 235, .24);
  border-radius: 14px;
  background: rgba(156, 199, 235, .07);
}

.identity-readiness-card[hidden] { display: none; }
.identity-readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.identity-readiness-head h3 { margin: 0; color: #fff8ff; font-size: 1rem; }
.identity-readiness-head .eyebrow { margin: 0 0 2px; }
.identity-readiness-head > strong { color: var(--gold-soft); font-size: 1.1rem; }
.identity-readiness-card p:not(.eyebrow) { margin: 0; color: rgba(247, 248, 255, .72); line-height: 1.45; font-size: .88rem; }
.identity-readiness-card .ghost-button { width: 100%; min-height: 42px; }

.cosmogram-preview-points {
  display: grid;
  gap: 7px;
  margin: 4px 0 2px;
  color: rgba(247, 248, 255, .78);
  font-size: .9rem;
}

.cosmogram-preview-points span { display: flex; align-items: center; gap: 8px; }
.cosmogram-preview-points strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(228, 189, 75, .18);
  color: var(--gold-soft);
  font-size: .78rem;
}

@media (max-width: 420px) {
  .onboarding-identity-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Start-screen hierarchy: one human summary, one primary next step. */
.message-box.sky-human-story {
  gap: 14px;
  padding: 20px;
  border-color: rgba(228, 189, 75, .3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(228, 189, 75, .13), transparent 32%),
    linear-gradient(145deg, rgba(25, 42, 72, .94), rgba(11, 20, 37, .98));
  box-shadow: 0 18px 42px rgba(2, 8, 20, .25), inset 0 1px rgba(255, 255, 255, .05);
}

.sky-human-essence h3 {
  max-width: 25ch;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1.18;
}

.sky-human-resonance { color: #dce7f0; }
.sky-human-action { border-radius: 0 12px 12px 0; }

.message-box.sky-human-story .sky-human-resonance > strong {
  color: var(--sky-blue-light);
}

.message-box.sky-human-story .sky-human-action > strong {
  color: var(--gold-soft);
}

.message-box.sky-human-story .sky-human-question > strong {
  color: #9cc7eb;
}

.sky-primary-action {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
}

.sky-human-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sky-human-actions .sky-focus-action {
  grid-column: 1 / -1;
  min-height: 50px;
}

.sky-human-actions .sky-primary-action,
.sky-human-actions .sky-share-action {
  width: 100%;
  min-height: 46px;
  margin-top: 0;
}

body[data-active-section="influences"] .sky-primary-action { display: none; }

/* The cosmogram tab should open directly on the map, without repeating the Today story. */
body[data-active-section="influences"] #skyHumanStory { display: none; }

.visual-mode-tab { color: var(--sky-muted); }

body.has-v2-navigation .hero {
  min-height: 148px;
  align-content: center;
  gap: 12px;
  padding: 16px 18px;
  position: sticky;
  top: max(8px, env(safe-area-inset-top, 0px));
  z-index: 4;
  box-shadow: 0 18px 38px rgba(2, 8, 20, .26), inset 0 1px rgba(255, 255, 255, .05);
}

body.has-v2-navigation .hero-actions { display: none; }
body.has-v2-navigation .hero-copy { max-width: 34ch; font-size: 15px; }
body.has-v2-navigation .hero-purpose { max-width: 34ch; font-size: 13px; }
body.has-v2-navigation .hero-status { font-size: 10px; }
body.has-v2-navigation .brand-mark { width: 48px; height: 48px; font-size: 15px; }
body.has-v2-navigation .hero::before { inset: 8px; border-radius: 12px; }
body.has-v2-navigation .hero::after {
  top: 20px;
  right: 20px;
  width: 74px;
  height: 74px;
  opacity: .32;
}

details.lunar-state-context {
  display: block;
  margin: 4px 0 12px;
  padding: 0 12px;
  border-color: rgba(151, 178, 213, .16);
  border-radius: 12px;
  background: rgba(7, 16, 31, .32);
}

details.lunar-state-context > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sky-muted);
  cursor: pointer;
  list-style: none;
}

details.lunar-state-context > summary::-webkit-details-marker { display: none; }

details.lunar-state-context > summary::after {
  content: "+";
  color: var(--gold-soft);
  font-size: 18px;
}

details.lunar-state-context[open] > summary::after { content: "−"; }

details.lunar-state-context[open] > .lunar-state-toolbar { margin-top: 4px; }
details.lunar-state-context[open] > .lunar-state-panel { margin-bottom: 12px; }

.lunar-state-tab,
.lunar-refresh-button { min-height: 44px; }

.sky-location-indicator { min-height: 44px; }

details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 620px) {
  .app-shell { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .hero { min-height: 250px; padding: 18px; border-radius: 18px; }
  body.has-v2-navigation .hero { min-height: 136px; padding: 14px 16px; border-radius: 16px; }
  body.has-v2-navigation .hero-copy { font-size: 14px; }
  body.has-v2-navigation .hero-purpose { font-size: 13px; margin-top: 6px; }
  .card { padding: 16px; }
}

/* Lunar rhythm: make the daily state feel like a clear, calm focal card. */
body.has-v2-navigation .lunar-state-context {
  border-color: rgba(156, 199, 235, .2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(228, 189, 75, .14), transparent 26%),
    linear-gradient(145deg, rgba(28, 47, 78, .92), rgba(10, 20, 39, .96));
  box-shadow: 0 14px 30px rgba(2, 8, 20, .22), inset 0 1px rgba(255, 255, 255, .05);
}

body.has-v2-navigation .lunar-state-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-text);
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
}

body.has-v2-navigation .lunar-state-label::before {
  content: "☾";
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(228, 189, 75, .42);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 16px;
  box-shadow: 0 0 14px rgba(228, 189, 75, .16);
}

body.has-v2-navigation .lunar-state-panel {
  margin: 0 0 2px;
  padding: 14px;
  border-color: rgba(228, 189, 75, .28);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(18, 31, 56, .96), rgba(8, 17, 33, .98));
  color: var(--sky-text);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

body.has-v2-navigation .lunar-state-title {
  display: block;
  color: var(--gold-soft);
  font-size: 17px;
  line-height: 1.3;
}

body.has-v2-navigation .lunar-state-summary {
  margin: 6px 0 0;
  color: var(--sky-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.has-v2-navigation .lunar-technical-details {
  margin-top: 10px;
  border-top: 1px solid rgba(156, 199, 235, .14);
  padding-top: 2px;
}

body.has-v2-navigation .lunar-technical-details > summary {
  min-height: 40px;
  color: var(--sky-blue-soft);
  font-size: 12px;
}

body.has-v2-navigation .lunar-state-panel dt { color: var(--sky-muted); }
body.has-v2-navigation .lunar-state-panel dd { color: var(--sky-text); }

/* Personal identity: a distinct, high-contrast profile layer. */
body.has-v2-navigation .identity-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(156, 199, 235, .2);
  background:
    radial-gradient(circle at 94% 2%, rgba(228, 189, 75, .13), transparent 24%),
    linear-gradient(145deg, rgba(24, 42, 72, .96), rgba(9, 18, 35, .98));
  box-shadow: 0 18px 40px rgba(2, 8, 20, .28), inset 0 1px rgba(255, 255, 255, .05);
}

body.has-v2-navigation .identity-card::before {
  content: "369";
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(228, 189, 75, .12);
  font-family: Georgia, serif;
  font-size: 42px;
  letter-spacing: -.08em;
  pointer-events: none;
}

body.has-v2-navigation .identity-card > * { position: relative; z-index: 1; }
body.has-v2-navigation .identity-card > .eyebrow { color: var(--gold-soft); }
body.has-v2-navigation .identity-card > h2 { color: var(--sky-text); }
body.has-v2-navigation .identity-card > #identitySummary {
  max-width: 42ch;
  color: var(--sky-muted);
  line-height: 1.5;
}

body.has-v2-navigation .identity-progress,
body.has-v2-navigation .identity-flow {
  border-color: rgba(156, 199, 235, .2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(31, 56, 91, .78), rgba(12, 25, 47, .9));
  color: var(--sky-text);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

body.has-v2-navigation .identity-progress strong,
body.has-v2-navigation .identity-flow h3 {
  color: var(--gold-soft);
}

body.has-v2-navigation .identity-progress-bar {
  height: 9px;
  background: rgba(169, 185, 202, .18);
}

body.has-v2-navigation .identity-progress-bar span {
  background: linear-gradient(90deg, var(--sky-blue-light), var(--gold));
  box-shadow: 0 0 12px rgba(228, 189, 75, .28);
}

body.has-v2-navigation .identity-progress ul { color: var(--sky-muted); }

body.has-v2-navigation .identity-layer-card {
  border-color: rgba(156, 199, 235, .18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(28, 50, 82, .82), rgba(12, 24, 45, .9));
  color: var(--sky-text);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

body.has-v2-navigation .identity-layer-card h3 { color: var(--sky-text); }
body.has-v2-navigation .identity-layer-card p { color: var(--sky-muted); }
body.has-v2-navigation .identity-meta span {
  background: rgba(156, 199, 235, .1);
  color: var(--sky-blue-soft);
}

body.has-v2-navigation .identity-card #identityNext {
  border-color: rgba(228, 189, 75, .24);
  border-radius: 12px;
  background: rgba(228, 189, 75, .08);
  color: var(--sky-muted);
}

body.has-v2-navigation .identity-card #identityNext strong { color: var(--gold-soft); }
body.has-v2-navigation .identity-card #identitySafeNote { color: rgba(169, 185, 202, .72); }
