:root {
  color-scheme: dark;
  --void: #02040b;
  --void-2: #050c18;
  --void-3: #0a1728;
  --panel: rgba(8, 16, 30, 0.70);
  --panel-strong: rgba(9, 18, 34, 0.88);
  --line: rgba(220, 235, 255, 0.13);
  --line-strong: rgba(246, 200, 110, 0.44);
  --text: #fbf3e6;
  --muted: rgba(251, 243, 230, 0.68);
  --faint: rgba(251, 243, 230, 0.42);
  --gold: #e7ad45;
  --gold-soft: #f7d58e;
  --blue: #76d6ff;
  --teal: #8cefd8;
  --rose: #f5a8c7;
  --violet: #b8a8ff;
  --danger: #f09c8f;
  --shadow: rgba(0, 0, 0, 0.54);
  --display: "Iowan Old Style", "IowanOldStyle-Roman", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Avenir, "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 21% -10%, rgba(118, 214, 255, 0.19), transparent 34%),
    radial-gradient(ellipse at 80% 0%, rgba(245, 168, 199, 0.12), transparent 32%),
    radial-gradient(ellipse at 45% 110%, rgba(231, 173, 69, 0.12), transparent 42%),
    linear-gradient(145deg, #01030a 0%, #06101f 47%, #02040b 100%);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 22%, rgba(118, 214, 255, 0.10) 38%, rgba(140, 239, 216, 0.08) 47%, transparent 62%),
    linear-gradient(72deg, transparent 30%, rgba(245, 168, 199, 0.11) 49%, rgba(247, 213, 142, 0.08) 58%, transparent 74%);
  filter: blur(26px);
  opacity: 0.78;
  transform: rotate(-3deg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(118, 214, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(118, 214, 255, 0.018) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  opacity: 0.58;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(105, 199, 255, 0.82);
  outline-offset: 3px;
}

.stellar-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(247, 213, 142, 0.82) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 16%, rgba(118, 214, 255, 0.66) 0 1px, transparent 1.6px),
    radial-gradient(circle at 86% 74%, rgba(251, 243, 230, 0.48) 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 82%, rgba(140, 239, 216, 0.42) 0 1px, transparent 1.6px),
    radial-gradient(circle at 54% 36%, rgba(245, 168, 199, 0.42) 0 1px, transparent 1.5px);
  background-size: 430px 430px, 520px 520px, 620px 620px, 760px 760px, 880px 880px;
  opacity: 0.62;
}

.stellar-field::before,
.stellar-field::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
}

.stellar-field::before {
  background:
    conic-gradient(from 210deg at 50% 46%, transparent 0 26%, rgba(118, 214, 255, 0.12) 31%, rgba(140, 239, 216, 0.09) 38%, transparent 48% 100%);
  filter: blur(42px);
  opacity: 0.58;
}

.stellar-field::after {
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0 36%, rgba(247, 213, 142, 0.08) 46%, transparent 62%),
    radial-gradient(ellipse at 52% 45%, rgba(118, 214, 255, 0.08), transparent 48%);
  opacity: 0.55;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 28px 14px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 15, 29, 0.84), rgba(2, 5, 12, 0.70)),
    linear-gradient(112deg, rgba(118, 214, 255, 0.055), transparent 46%, rgba(247, 213, 142, 0.045));
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(28px) saturate(1.25);
}

.brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 164, 65, 0.52);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  box-shadow:
    inset 0 0 26px rgba(247, 213, 142, 0.14),
    0 0 30px rgba(118, 214, 255, 0.16),
    0 0 54px rgba(245, 168, 199, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.private-compass-label {
  margin: 30px 0 0 58px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 34px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: rgba(246, 240, 229, 0.68);
  background: transparent;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(251, 243, 230, 0.44);
  border-radius: 50%;
  opacity: 0.72;
}

.nav-glyph::before,
.nav-glyph::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.54;
}

.nav-glyph::after {
  inset: 10px 3px;
  border-width: 1px 0;
  border-radius: 0;
  transform: rotate(-28deg);
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  border-color: rgba(247, 213, 142, 0.34);
  background:
    linear-gradient(90deg, rgba(247, 213, 142, 0.13), rgba(118, 214, 255, 0.06) 56%, rgba(245, 168, 199, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: var(--gold-soft);
  box-shadow:
    inset 2px 0 0 rgba(247, 213, 142, 0.72),
    0 0 26px rgba(118, 214, 255, 0.08);
}

.nav-item.active .nav-glyph,
.nav-item:hover .nav-glyph {
  border-color: rgba(247, 213, 142, 0.78);
  color: var(--gold-soft);
  opacity: 1;
  box-shadow: 0 0 20px rgba(247, 213, 142, 0.18);
}

.sidebar-foot {
  display: grid;
  gap: 7px;
  margin-top: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
  opacity: 0.78;
}

.workspace {
  width: min(1940px, 100%);
  margin-inline: auto;
  padding: 30px clamp(24px, 3.2vw, 64px) 60px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.source-line,
.micro-label {
  margin: 0 0 8px;
  color: rgba(243, 216, 155, 0.72);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.topbar h1,
.hero-panel h2,
.wheel-stage h2,
.selection-panel h2,
.library-head h2,
.journal-composer h2,
.journal-timeline h2,
.export-card h2,
.detail-band h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.topbar h1 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  text-shadow:
    0 0 28px rgba(118, 214, 255, 0.20),
    0 12px 34px rgba(0, 0, 0, 0.28);
}

.topbar-actions,
.panel-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.primary-button {
  border: 1px solid rgba(247, 213, 142, 0.70);
  color: #1b1207;
  background: linear-gradient(135deg, #ffe7a8, #e7ad45 58%, #a96f24);
  box-shadow:
    0 14px 34px rgba(231, 173, 69, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.ghost-button {
  border: 1px solid rgba(220, 235, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.ghost-button:hover {
  border-color: rgba(118, 214, 255, 0.34);
  background: rgba(118, 214, 255, 0.075);
}

.danger-button {
  border: 1px solid rgba(240, 156, 143, 0.34);
  color: var(--danger);
  background: rgba(240, 156, 143, 0.06);
}

.primary-button.small {
  min-height: 36px;
}

.primary-button.full {
  width: 100%;
}

.voice-guide-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(247, 213, 142, 0.24);
  border-radius: 8px;
  padding: 13px;
  background:
    radial-gradient(circle at 10% 50%, rgba(247, 213, 142, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(118, 214, 255, 0.07), rgba(247, 213, 142, 0.055)),
    rgba(2, 5, 12, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.18);
}

.voice-guide-panel::before {
  content: "";
  position: absolute;
  inset: -40% -12%;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 26%, rgba(118, 214, 255, 0.13) 48%, transparent 68%);
  filter: blur(18px);
  opacity: 0.56;
}

.voice-guide-panel > * {
  position: relative;
  z-index: 1;
}

.voice-guide-copy {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.voice-guide-copy .micro-label {
  margin-bottom: 2px;
}

.voice-guide-copy h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.05;
}

.voice-pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 213, 142, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(247, 213, 142, 0.22), transparent 62%),
    rgba(2, 5, 12, 0.28);
  box-shadow:
    0 0 22px rgba(247, 213, 142, 0.16),
    inset 0 0 20px rgba(118, 214, 255, 0.08);
}

.voice-pulse::before,
.voice-pulse::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.voice-pulse::before {
  width: 6px;
  height: 6px;
  background: var(--gold-soft);
  box-shadow: 0 0 12px rgba(247, 213, 142, 0.54);
}

.voice-pulse::after {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(118, 214, 255, 0.34);
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.voice-actions.compact-stack {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
}

.voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(220, 235, 255, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.voice-button:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 214, 255, 0.38);
  background: rgba(118, 214, 255, 0.075);
}

.voice-button.playing {
  border-color: rgba(247, 213, 142, 0.84);
  color: #1b1207;
  background: linear-gradient(135deg, #ffe7a8, #e7ad45 58%, #a96f24);
  box-shadow:
    0 12px 28px rgba(231, 173, 69, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.voice-button.compact {
  justify-self: start;
  min-height: 34px;
  margin-top: 4px;
  padding-inline: 10px;
  font-size: 0.62rem;
}

.session-step-card .voice-button.compact {
  justify-self: stretch;
  justify-content: center;
  width: 100%;
}

.first-run-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 58px);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(118, 214, 255, 0.15), transparent 44%),
    radial-gradient(ellipse at 72% 26%, rgba(247, 213, 142, 0.12), transparent 34%),
    rgba(1, 3, 9, 0.76);
  backdrop-filter: blur(18px) saturate(1.16);
}

.first-run-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(22px, 3vw, 42px);
  width: min(1120px, 100%);
  border: 1px solid rgba(247, 213, 142, 0.34);
  border-radius: 8px;
  padding: clamp(22px, 3.4vw, 44px);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(247, 213, 142, 0.17), transparent 34%),
    radial-gradient(ellipse at 88% 18%, rgba(118, 214, 255, 0.15), transparent 38%),
    linear-gradient(145deg, rgba(12, 22, 40, 0.94), rgba(3, 8, 18, 0.88));
  box-shadow:
    0 38px 130px rgba(0, 0, 0, 0.62),
    0 0 80px rgba(118, 214, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.first-run-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, rgba(118, 214, 255, 0.12), transparent 36%),
    linear-gradient(292deg, rgba(247, 213, 142, 0.10), transparent 50%);
  opacity: 0.78;
}

.first-run-card > * {
  position: relative;
  z-index: 1;
}

.first-run-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.first-run-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(3rem, 5.8vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-shadow:
    0 0 34px rgba(118, 214, 255, 0.20),
    0 16px 42px rgba(0, 0, 0, 0.34);
}

.first-run-copy p:not(.micro-label) {
  max-width: 680px;
  margin: 0;
  color: rgba(251, 243, 230, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.62;
}

.first-run-action {
  display: grid;
  align-content: center;
  gap: 14px;
}

.first-run-action .voice-guide-panel {
  grid-template-columns: 1fr;
}

.first-run-action .voice-actions {
  justify-content: stretch;
}

.first-run-action .voice-button {
  width: 100%;
  min-height: 48px;
  border-color: rgba(247, 213, 142, 0.52);
  color: #1b1207;
  background: linear-gradient(135deg, #ffe7a8, #e7ad45 58%, #a96f24);
  box-shadow:
    0 16px 36px rgba(231, 173, 69, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.voice-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.86;
}

.voice-icon::before,
.voice-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 99px;
  background: currentColor;
}

.voice-icon::before {
  left: 4px;
  box-shadow: 4px 0 0 currentColor;
}

.voice-icon::after {
  right: 3px;
  opacity: 0.42;
}

.practice-library-tools {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.view-root {
  min-height: 620px;
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.9fr) minmax(410px, 1fr) minmax(270px, 0.6fr);
  gap: clamp(16px, 1.5vw, 24px);
  align-items: stretch;
}

.observatory-today {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
  grid-template-areas:
    "ritual chamber"
    "wheel chamber"
    "cards chamber";
  gap: clamp(18px, 1.45vw, 28px);
  align-items: stretch;
}

.ritual-band {
  grid-area: ritual;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(150px, 0.17fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  border: 1px solid rgba(247, 213, 142, 0.24);
  border-radius: 8px;
  padding: 12px 16px;
  background:
    linear-gradient(112deg, rgba(247, 213, 142, 0.08), rgba(118, 214, 255, 0.07) 52%, rgba(245, 168, 199, 0.06)),
    rgba(5, 12, 24, 0.66);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
}

.ritual-band::before {
  content: "";
  position: absolute;
  inset: -30% -8%;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 30%, rgba(118, 214, 255, 0.18), transparent 66%),
    radial-gradient(ellipse at 84% 22%, rgba(247, 213, 142, 0.18), transparent 32%);
  filter: blur(22px);
  opacity: 0.72;
}

.ritual-band > * {
  position: relative;
  z-index: 1;
}

.ritual-band h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.55vw, 1.72rem);
  font-weight: 400;
  line-height: 1.05;
}

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

.ritual-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
}

.ritual-orb {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(220, 235, 255, 0.22);
  border-radius: 50%;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  box-shadow: inset 0 0 18px rgba(118, 214, 255, 0.08);
}

.ritual-step strong,
.ritual-step small {
  display: block;
}

.ritual-step strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.05;
}

.ritual-step small {
  margin-top: 3px;
  font-size: 0.70rem;
  line-height: 1.25;
}

.ritual-step.active .ritual-orb {
  border-color: rgba(247, 213, 142, 0.84);
  color: var(--gold-soft);
  background: rgba(247, 213, 142, 0.12);
  box-shadow:
    0 0 30px rgba(247, 213, 142, 0.18),
    inset 0 0 24px rgba(247, 213, 142, 0.10);
}

.cosmic-wheel-panel,
.gate-chamber,
.observatory-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 20, 38, 0.82), rgba(3, 8, 18, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 42%);
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
}

.cosmic-wheel-panel {
  grid-area: wheel;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 43vw, 760px);
  isolation: isolate;
}

.cosmic-wheel-panel::before,
.cosmic-wheel-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cosmic-wheel-panel::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 213, 142, 0.16), transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(118, 214, 255, 0.18), transparent 42%),
    radial-gradient(circle at 16% 32%, rgba(251, 243, 230, 0.58) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 18%, rgba(247, 213, 142, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 68%, rgba(118, 214, 255, 0.44) 0 1px, transparent 1.5px);
  background-size: auto, auto, 190px 190px, 260px 260px, 330px 330px;
}

.cosmic-wheel-panel::after {
  inset: 8% -12%;
  z-index: 0;
  background:
    linear-gradient(110deg, transparent 22%, rgba(118, 214, 255, 0.28) 42%, rgba(140, 239, 216, 0.18) 50%, transparent 68%),
    linear-gradient(66deg, transparent 26%, rgba(245, 168, 199, 0.16) 46%, rgba(247, 213, 142, 0.13) 60%, transparent 78%);
  filter: blur(18px);
  opacity: 0.92;
  transform: rotate(-7deg);
}

.wheel-constellation {
  position: absolute;
  inset: 11%;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(247, 213, 142, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 213, 142, 0.11), transparent 9%),
    conic-gradient(from 18deg, transparent 0 8%, rgba(118, 214, 255, 0.11) 12%, transparent 17% 29%, rgba(247, 213, 142, 0.12) 34%, transparent 40% 57%, rgba(140, 239, 216, 0.08) 63%, transparent 70% 100%);
  box-shadow:
    0 0 0 46px rgba(118, 214, 255, 0.018),
    0 0 0 96px rgba(247, 213, 142, 0.012),
    inset 0 0 90px rgba(118, 214, 255, 0.08);
}

.wheel-constellation::before,
.wheel-constellation::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-constellation::before {
  border: 1px solid rgba(118, 214, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 213, 142, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 52%, rgba(118, 214, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 68%, rgba(140, 239, 216, 0.34) 0 1px, transparent 2px);
  box-shadow:
    inset 0 0 48px rgba(118, 214, 255, 0.055),
    0 0 68px rgba(118, 214, 255, 0.055);
  opacity: 0.78;
}

.wheel-constellation::after {
  inset: 16%;
  border: 1px solid rgba(247, 213, 142, 0.12);
  background:
    conic-gradient(from 0deg, transparent 0 16%, rgba(247, 213, 142, 0.22) 18%, transparent 22% 48%, rgba(118, 214, 255, 0.18) 51%, transparent 55% 100%);
  filter: blur(0.3px);
  opacity: 0.56;
}

.cosmic-wheel-panel .harmonic-wheel {
  width: min(82%, 720px);
}

.gate-chamber {
  grid-area: chamber;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
}

.gate-chamber::before,
.observatory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(118, 214, 255, 0.09), transparent 38%),
    linear-gradient(292deg, rgba(247, 213, 142, 0.08), transparent 48%);
}

.gate-chamber > *,
.observatory-card > * {
  position: relative;
  z-index: 1;
}

.chamber-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.gate-chamber h2,
.gate-chamber h3 {
  margin: 0;
}

.gate-chamber h2 {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gate-chamber h3 {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.1rem, 2.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1;
}

.gate-chamber > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.gate-chamber .voice-guide-panel,
.selection-panel .voice-guide-panel,
.practice-session-hero .voice-guide-panel,
.journal-composer .voice-guide-panel {
  grid-template-columns: 1fr;
}

.gate-chamber .voice-actions,
.selection-panel .voice-actions,
.practice-session-hero .voice-actions,
.journal-composer .voice-actions {
  justify-content: flex-start;
}

.gate-chamber .voice-guide-copy h3,
.selection-panel .voice-guide-copy h3,
.gate-detail-hero .voice-guide-copy h3,
.practice-session-hero .voice-guide-copy h3,
.journal-composer .voice-guide-copy h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: none;
}

.gate-chamber .voice-button,
.selection-panel .voice-button,
.practice-session-hero .voice-button,
.journal-composer .voice-button {
  flex: 1 1 134px;
}

.gate-tags,
.chamber-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gate-tags span,
.chamber-map span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(118, 214, 255, 0.22);
  border-radius: 999px;
  padding: 0 11px;
  color: rgba(251, 243, 230, 0.76);
  background: rgba(118, 214, 255, 0.055);
  font-size: 0.72rem;
}

.practice-orbit-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(247, 213, 142, 0.24);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 50%, rgba(118, 214, 255, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(247, 213, 142, 0.08), rgba(2, 5, 12, 0.20));
}

.practice-orbit-card h3 {
  font-size: 1.45rem;
}

.practice-orbit-card span {
  color: var(--faint);
  font-size: 0.78rem;
}

.practice-orbit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.reflection-prompt {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.reflection-prompt blockquote {
  margin: 0;
  border-left: 1px solid rgba(247, 213, 142, 0.40);
  padding-left: 14px;
  color: rgba(251, 243, 230, 0.78);
  font-family: var(--body);
  font-size: 0.98rem;
  line-height: 1.58;
}

.privacy-row {
  margin: 0;
  border-top: 1px solid rgba(220, 235, 255, 0.10);
  padding-top: 12px;
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.45;
}

.observatory-card-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 18px);
}

.observatory-card {
  display: grid;
  grid-template-rows: 72px auto auto 1fr auto;
  gap: 9px;
  min-height: 212px;
  padding: 16px;
}

.observatory-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.4vw, 1.42rem);
  font-weight: 400;
  line-height: 1.08;
}

.observatory-card p:not(.micro-label) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.card-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 66%, rgba(247, 213, 142, 0.34), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(118, 214, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(4, 11, 22, 0.20), rgba(2, 5, 12, 0.72));
  box-shadow: inset 0 0 60px rgba(118, 214, 255, 0.08);
}

.card-visual::before,
.card-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.card-visual::before {
  inset: 24px 38%;
  border: 1px solid rgba(247, 213, 142, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(247, 213, 142, 0.22);
}

.card-visual::after {
  inset: 48% 12%;
  border-top: 1px solid rgba(118, 214, 255, 0.34);
  transform: rotate(-12deg);
}

.rhythm-visual {
  background:
    radial-gradient(circle at 50% 72%, rgba(140, 239, 216, 0.35), transparent 14%),
    radial-gradient(ellipse at 50% 70%, rgba(118, 214, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(4, 11, 22, 0.20), rgba(2, 5, 12, 0.72));
}

.journal-visual {
  background:
    radial-gradient(ellipse at 50% 76%, rgba(247, 213, 142, 0.30), transparent 18%),
    radial-gradient(ellipse at 50% 55%, rgba(245, 168, 199, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(4, 11, 22, 0.20), rgba(2, 5, 12, 0.72));
}

.hero-panel,
.wheel-panel,
.state-panel,
.detail-band,
.wheel-stage,
.selection-panel,
.journal-composer,
.journal-timeline,
.export-card,
.precept-card,
.codex-article,
.data-table-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 20, 38, 0.82), rgba(3, 8, 18, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 42%);
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
}

.hero-panel::before,
.wheel-panel::before,
.state-panel::before,
.detail-band::before,
.wheel-stage::before,
.selection-panel::before,
.journal-composer::before,
.journal-timeline::before,
.export-card::before,
.precept-card::before,
.codex-article::before,
.data-table-card::before,
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, rgba(118, 214, 255, 0.10), transparent 32%),
    linear-gradient(292deg, rgba(247, 213, 142, 0.09), transparent 42%);
  opacity: 0.72;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  min-height: 650px;
}

.panel-top,
.wheel-stage-head,
.timeline-head,
.library-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.panel-top span:last-child,
.cycle-chip {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.precept-hero {
  margin: 30px 0 24px;
}

.precept-number {
  color: var(--gold);
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.4vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

blockquote {
  margin: 12px 0 0;
  color: rgba(246, 240, 229, 0.94);
  font-family: var(--display);
  font-size: clamp(1.85rem, 2.7vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.harmonic-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.harmonic-strip span,
.theme-row span,
.entry-meta span,
.scaffold-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(118, 214, 255, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(246, 240, 229, 0.76);
  background: rgba(118, 214, 255, 0.055);
  font-size: 0.74rem;
}

.prompt-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.prompt-row p,
.detail-band p,
.selection-panel p,
.library-head p,
.export-card p,
.codex-article p,
.precept-card p,
.entry-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.wheel-panel,
.state-panel {
  padding: 18px;
}

.compact-wheel {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.wheel-panel::after,
.wheel-stage::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    linear-gradient(126deg, transparent 12%, rgba(118, 214, 255, 0.18) 38%, rgba(140, 239, 216, 0.10) 50%, transparent 68%),
    linear-gradient(62deg, transparent 22%, rgba(245, 168, 199, 0.13) 44%, rgba(247, 213, 142, 0.10) 60%, transparent 78%);
  filter: blur(22px);
  opacity: 0.78;
}

.wheel-stage-head {
  position: relative;
  z-index: 1;
}

.harmonic-wheel {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 34px 70px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 32px rgba(118, 214, 255, 0.10))
    drop-shadow(0 0 64px rgba(247, 213, 142, 0.07));
}

.wheel-stars,
.spectral-ring,
.wheel-grid,
.gold-ring,
.orbit,
.segment-ring,
.center-seal {
  transform-box: fill-box;
  transform-origin: center;
}

.wheel-star {
  fill: rgba(251, 243, 230, 0.62);
  opacity: 0.58;
  filter: drop-shadow(0 0 8px rgba(251, 243, 230, 0.28));
}

.wheel-star.gold {
  fill: rgba(247, 213, 142, 0.88);
  filter: drop-shadow(0 0 10px rgba(247, 213, 142, 0.48));
}

.wheel-star.blue {
  fill: rgba(118, 214, 255, 0.76);
  filter: drop-shadow(0 0 9px rgba(118, 214, 255, 0.34));
}

.wheel-star.teal {
  fill: rgba(140, 239, 216, 0.72);
  filter: drop-shadow(0 0 9px rgba(140, 239, 216, 0.30));
}

.spectral-ring {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.62;
  filter: drop-shadow(0 0 13px rgba(118, 214, 255, 0.13));
}

.spectral-ring-outer {
  stroke: rgba(118, 214, 255, 0.20);
  stroke-dasharray: 1 18 58 26;
}

.spectral-ring-inner {
  stroke: rgba(247, 213, 142, 0.22);
  stroke-dasharray: 70 18 1 22;
}

.wheel-grid {
  fill: none;
  stroke: rgba(118, 214, 255, 0.22);
  stroke-width: 1;
}

.wheel-grid.inner {
  stroke: rgba(247, 213, 142, 0.22);
}

.gold-ring {
  fill: none;
  stroke: rgba(247, 213, 142, 0.82);
  stroke-width: 2;
  stroke-dasharray: 3 8;
  filter: drop-shadow(0 0 10px rgba(247, 213, 142, 0.22));
}

.orbit {
  fill: none;
  stroke: rgba(118, 214, 255, 0.62);
  stroke-width: 2;
  stroke-dasharray: 420 190 80 360;
  stroke-linecap: round;
  opacity: 0.76;
  transform-origin: 360px 360px;
  filter: drop-shadow(0 0 12px rgba(118, 214, 255, 0.20));
}

.orbit-one {
  stroke-dashoffset: 90;
}

.orbit-two {
  stroke: rgba(140, 239, 216, 0.34);
  stroke-dasharray: 360 260 110 300;
  stroke-dashoffset: 280;
}

.wheel-segment path {
  fill: rgba(10, 29, 48, 0.62);
  stroke: rgba(220, 235, 255, 0.18);
  stroke-width: 1;
  transition: fill 170ms ease, stroke 170ms ease, filter 170ms ease, opacity 170ms ease;
}

.wheel-segment text {
  pointer-events: none;
  fill: rgba(246, 240, 229, 0.72);
  font-family: var(--mono);
  font-size: 14px;
}

.wheel-segment:hover path,
.wheel-segment.selected path {
  fill: rgba(231, 173, 69, 0.34);
  stroke: rgba(247, 213, 142, 0.88);
  filter: drop-shadow(0 0 13px rgba(231, 173, 69, 0.42));
}

.wheel-segment.selected text {
  fill: var(--gold-soft);
}

.wheel-segment.today path {
  stroke: rgba(118, 214, 255, 0.92);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(118, 214, 255, 0.22));
}

.corridor-mark {
  stroke: rgba(247, 213, 142, 0.82);
  stroke-width: 2;
}

.corridor-label {
  fill: var(--gold-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.center-seal circle {
  fill: rgba(2, 5, 12, 0.88);
  stroke: rgba(247, 213, 142, 0.50);
  stroke-width: 1.5;
  filter:
    drop-shadow(0 0 24px rgba(247, 213, 142, 0.18))
    drop-shadow(0 0 38px rgba(118, 214, 255, 0.12));
}

.center-seal text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.center-seal text:last-child {
  fill: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.center-seal .center-label {
  fill: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.center-seal .center-number {
  fill: var(--gold-soft);
  font-family: var(--display);
  font-size: 58px;
  letter-spacing: 0;
}

.center-seal .center-title {
  fill: var(--text);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0;
}

.center-seal .center-subtitle {
  fill: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.state-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.range-stack {
  display: grid;
  gap: 18px;
}

.range-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.range-control span {
  display: flex;
  justify-content: space-between;
}

.range-control strong {
  color: var(--gold-soft);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.toggle-row {
  display: grid;
  gap: 10px;
}

.toggle-row label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid rgba(199, 220, 244, 0.09);
  color: var(--muted);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.focus-card {
  margin-top: auto;
  border: 1px solid rgba(247, 213, 142, 0.16);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(247, 213, 142, 0.07), rgba(118, 214, 255, 0.045)),
    rgba(2, 5, 12, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

code {
  display: block;
  overflow-x: auto;
  color: #f1c879;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 20px;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  min-height: 170px;
}

.mini-matrix,
.selection-grid {
  display: grid;
  gap: 10px;
}

.mini-matrix span,
.selection-grid div {
  display: grid;
  gap: 5px;
  border-left: 1px solid rgba(247, 213, 142, 0.38);
  padding: 8px 0 8px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mini-matrix strong,
.selection-grid strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.wheel-stage,
.selection-panel {
  padding: clamp(20px, 3vw, 30px);
}

.wheel-stage {
  display: grid;
  justify-items: center;
  min-height: 740px;
}

.wheel-stage-head {
  width: 100%;
  margin-bottom: 16px;
}

.selection-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.library-head {
  margin-bottom: 18px;
  border: 1px solid rgba(247, 213, 142, 0.18);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(112deg, rgba(247, 213, 142, 0.08), rgba(118, 214, 255, 0.055) 48%, transparent),
    rgba(5, 12, 24, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.library-head h2,
.journal-composer h2,
.journal-timeline h2,
.export-card h2,
.wheel-stage h2,
.selection-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
}

.search-input,
select,
input,
textarea {
  border: 1px solid rgba(220, 235, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 5, 12, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.search-input:focus,
select:focus,
input:focus,
textarea:focus {
  border-color: rgba(118, 214, 255, 0.44);
  background: rgba(4, 10, 20, 0.78);
  box-shadow: 0 0 0 3px rgba(118, 214, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.search-input {
  width: min(360px, 100%);
  min-height: 46px;
  padding: 0 14px;
}

.precept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.precept-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.precept-card:hover,
.precept-card.selected {
  transform: translateY(-2px);
  border-color: rgba(247, 213, 142, 0.46);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 38px rgba(118, 214, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-row,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card-actions {
  margin-top: auto;
  padding-top: 16px;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.journal-composer,
.journal-timeline {
  padding: clamp(18px, 3vw, 26px);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(246, 240, 229, 0.72);
  font-size: 0.82rem;
}

select,
input,
textarea {
  width: 100%;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
  min-height: 170px;
}

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

.timeline-head {
  align-items: center;
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  gap: 10px;
}

.filter-row select {
  min-width: 132px;
}

.entry-card {
  border-top: 1px solid rgba(220, 235, 255, 0.11);
  padding: 20px 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.entry-head h3,
.codex-article h3,
.data-table-card h3,
.empty-state h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
}

.entry-head time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.entry-card blockquote {
  margin: 14px 0;
  border-left: 1px solid rgba(247, 213, 142, 0.38);
  padding-left: 14px;
  color: rgba(246, 240, 229, 0.74);
  font-size: 1.05rem;
  line-height: 1.45;
}

.empty-state {
  display: grid;
  gap: 12px;
  border: 1px dashed rgba(247, 213, 142, 0.30);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(247, 213, 142, 0.07), rgba(118, 214, 255, 0.045)),
    rgba(2, 5, 12, 0.28);
}

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

.codex-article {
  padding: 20px;
}

.codex-article code {
  margin-top: 16px;
  border-top: 1px solid rgba(247, 213, 142, 0.22);
  padding-top: 14px;
}

.codex-tables {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.data-table-card {
  padding: 20px;
}

.data-table {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  overflow-x: auto;
}

.data-table div {
  display: grid;
  grid-template-columns: 220px 120px 150px minmax(260px, 1fr);
  gap: 16px;
  min-width: 760px;
  border-bottom: 1px solid rgba(220, 235, 255, 0.10);
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.data-table strong {
  color: var(--blue);
  font-weight: 500;
}

.export-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.export-card {
  min-height: 300px;
  padding: clamp(20px, 3vw, 28px);
}

.date-setting {
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 44px));
  border: 1px solid rgba(247, 213, 142, 0.34);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(8, 17, 31, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: auroraSweep 24s ease-in-out infinite alternate;
  }

  .stellar-field {
    animation: starBreath 18s ease-in-out infinite alternate;
  }

  .stellar-field::before {
    animation: auroraTurn 32s ease-in-out infinite alternate;
  }

  .cosmic-wheel-panel::before {
    animation: starMapDrift 34s linear infinite;
  }

  .cosmic-wheel-panel::after {
    animation: auroraSweep 22s ease-in-out infinite alternate;
  }

  .wheel-panel::after,
  .wheel-stage::after {
    animation: auroraTurn 26s ease-in-out infinite alternate;
  }

  .wheel-constellation {
    animation: constellationTurn 96s linear infinite;
  }

  .wheel-constellation::before {
    animation: constellationTurnReverse 116s linear infinite;
  }

  .wheel-constellation::after {
    animation: prismSweep 18s ease-in-out infinite alternate;
  }

  .harmonic-wheel {
    animation: wheelFloat 9s ease-in-out infinite;
  }

  .wheel-stars {
    animation: starFieldTurn 78s linear infinite;
  }

  .wheel-star {
    animation: starTwinkle 5.8s ease-in-out infinite;
    animation-delay: var(--star-delay);
  }

  .spectral-ring-outer {
    animation: ringTrace 21s linear infinite;
  }

  .spectral-ring-inner {
    animation: ringTraceReverse 28s linear infinite;
  }

  .wheel-grid {
    animation: gridBreath 12s ease-in-out infinite alternate;
  }

  .gold-ring {
    animation: goldPulse 7s ease-in-out infinite alternate;
  }

  .orbit-one {
    animation: orbitTrace 18s ease-in-out infinite alternate;
  }

  .orbit-two {
    animation: orbitTraceSoft 24s ease-in-out infinite alternate;
  }

  .center-seal {
    animation: sealBreath 8s ease-in-out infinite;
  }

  .wheel-segment.selected path {
    animation: selectedGateShimmer 3.6s ease-in-out infinite alternate;
  }

  .harmonic-wheel.is-spinning {
    animation: wheelFloat 9s ease-in-out infinite, wheelIgnite 1280ms ease-out both;
  }

  .harmonic-wheel.is-spinning .segment-ring,
  .harmonic-wheel.is-spinning .spectral-ring,
  .harmonic-wheel.is-spinning .gold-ring,
  .harmonic-wheel.is-spinning .wheel-grid {
    animation: wheelSpinSweep 1280ms cubic-bezier(0.16, 0.84, 0.18, 1) both;
  }

  .harmonic-wheel.is-spinning .wheel-stars {
    animation: wheelSpinSweep 1280ms cubic-bezier(0.16, 0.84, 0.18, 1) both;
  }

  .harmonic-wheel.is-spinning .orbit {
    animation: orbitIgnition 1280ms cubic-bezier(0.16, 0.84, 0.18, 1) both;
  }

  .harmonic-wheel.is-spinning .center-seal {
    animation: sealIgnition 1280ms ease-out both;
  }

  @keyframes starMapDrift {
    0% {
      background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
      opacity: 0.72;
    }

    50% {
      opacity: 0.96;
    }

    100% {
      background-position: 0 0, 0 0, 190px -95px, -130px 260px, 165px 330px;
      opacity: 0.78;
    }
  }

  @keyframes constellationTurn {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes constellationTurnReverse {
    to {
      transform: rotate(-360deg);
    }
  }

  @keyframes prismSweep {
    0% {
      opacity: 0.30;
      transform: rotate(-18deg) scale(0.96);
    }

    100% {
      opacity: 0.68;
      transform: rotate(22deg) scale(1.06);
    }
  }

  @keyframes wheelFloat {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
      transform: translate3d(0, -8px, 0) scale(1.006);
    }
  }

  @keyframes starFieldTurn {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes starTwinkle {
    0%,
    100% {
      opacity: 0.28;
      transform: translate3d(0, 0, 0) scale(0.88);
    }

    45% {
      opacity: 0.94;
      transform: translate3d(var(--star-x), var(--star-y), 0) scale(1.42);
    }

    72% {
      opacity: 0.54;
      transform: translate3d(var(--star-x2), var(--star-y2), 0) scale(1.06);
    }
  }

  @keyframes ringTrace {
    to {
      stroke-dashoffset: -440;
      transform: rotate(360deg);
    }
  }

  @keyframes ringTraceReverse {
    to {
      stroke-dashoffset: 360;
      transform: rotate(-360deg);
    }
  }

  @keyframes gridBreath {
    0% {
      opacity: 0.58;
      transform: scale(0.992);
    }

    100% {
      opacity: 1;
      transform: scale(1.006);
    }
  }

  @keyframes goldPulse {
    0% {
      opacity: 0.58;
      stroke-dashoffset: 0;
      filter: drop-shadow(0 0 8px rgba(247, 213, 142, 0.18));
    }

    100% {
      opacity: 0.98;
      stroke-dashoffset: -34;
      filter: drop-shadow(0 0 22px rgba(247, 213, 142, 0.42));
    }
  }

  @keyframes orbitTrace {
    to {
      stroke-dashoffset: -80;
      opacity: 0.58;
    }
  }

  @keyframes orbitTraceSoft {
    to {
      stroke-dashoffset: 80;
      opacity: 0.46;
    }
  }

  @keyframes sealBreath {
    0%,
    100% {
      transform: scale(1);
      filter: drop-shadow(0 0 0 rgba(247, 213, 142, 0));
    }

    50% {
      transform: scale(1.018);
      filter: drop-shadow(0 0 18px rgba(247, 213, 142, 0.22));
    }
  }

  @keyframes selectedGateShimmer {
    0% {
      fill: rgba(231, 173, 69, 0.30);
      filter: drop-shadow(0 0 12px rgba(231, 173, 69, 0.34));
    }

    100% {
      fill: rgba(247, 213, 142, 0.46);
      filter:
        drop-shadow(0 0 18px rgba(231, 173, 69, 0.54))
        drop-shadow(0 0 30px rgba(118, 214, 255, 0.18));
    }
  }

  @keyframes wheelIgnite {
    0% {
      filter:
        drop-shadow(0 34px 70px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 32px rgba(118, 214, 255, 0.10));
    }

    58% {
      filter:
        drop-shadow(0 36px 78px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 70px rgba(118, 214, 255, 0.32))
        drop-shadow(0 0 88px rgba(247, 213, 142, 0.24));
    }

    100% {
      filter:
        drop-shadow(0 34px 70px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 38px rgba(118, 214, 255, 0.14))
        drop-shadow(0 0 64px rgba(247, 213, 142, 0.09));
    }
  }

  @keyframes wheelSpinSweep {
    0% {
      transform: rotate(0deg) scale(1);
    }

    62% {
      transform: rotate(660deg) scale(1.034);
    }

    100% {
      transform: rotate(735deg) scale(1);
    }
  }

  @keyframes orbitIgnition {
    0% {
      stroke-dashoffset: 0;
      opacity: 0.50;
      transform: rotate(0deg) scale(1);
    }

    58% {
      stroke-dashoffset: -420;
      opacity: 1;
      transform: rotate(390deg) scale(1.05);
    }

    100% {
      stroke-dashoffset: -520;
      opacity: 0.72;
      transform: rotate(540deg) scale(1);
    }
  }

  @keyframes sealIgnition {
    0% {
      transform: scale(1);
    }

    48% {
      transform: scale(1.08);
      filter: drop-shadow(0 0 34px rgba(247, 213, 142, 0.44));
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes auroraSweep {
    0% {
      transform: translate3d(-1.5%, -0.5%, 0) rotate(-4deg);
      opacity: 0.60;
    }

    100% {
      transform: translate3d(1.5%, 0.75%, 0) rotate(2deg);
      opacity: 0.88;
    }
  }

  @keyframes auroraTurn {
    0% {
      transform: rotate(-8deg) scale(1);
    }

    100% {
      transform: rotate(7deg) scale(1.045);
    }
  }

  @keyframes starBreath {
    0% {
      opacity: 0.50;
    }

    100% {
      opacity: 0.70;
    }
  }
}

@media (min-width: 1800px) {
  .workspace {
    padding-inline: clamp(48px, 3.8vw, 76px);
  }

  .observatory-today {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  }

  .ritual-band {
    grid-template-columns: minmax(180px, 0.16fr) minmax(0, 1fr);
  }

  .cosmic-wheel-panel {
    min-height: min(72vh, 780px);
  }

  .cosmic-wheel-panel .harmonic-wheel {
    width: min(76%, 760px);
  }
}

@media (max-width: 1560px) {
  .app-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: clamp(18px, 2.4vw, 34px);
  }

  .today-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  }

  .state-panel {
    grid-column: 1 / -1;
  }

  .wheel-stage {
    min-height: 660px;
  }

  .observatory-today {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 350px);
  }

  .ritual-band {
    grid-template-columns: 1fr;
  }

  .cosmic-wheel-panel {
    min-height: clamp(500px, 42vw, 640px);
  }

  .cosmic-wheel-panel .harmonic-wheel {
    width: min(84%, 640px);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .journal-layout,
  .wheel-layout,
  .export-layout {
    grid-template-columns: 1fr 1fr;
  }

  .state-panel,
  .wheel-stage,
  .selection-panel,
  .export-card:last-child {
    grid-column: 1 / -1;
  }

  .observatory-today {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ritual"
      "wheel"
      "chamber"
      "cards";
  }

  .gate-chamber {
    min-height: auto;
  }

  .practice-bank-shell {
    grid-template-columns: 1fr;
  }

  .precept-grid,
  .codex-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .first-run-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 18px 14px;
  }

  .first-run-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .first-run-copy h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  body {
    background:
      radial-gradient(ellipse at 20% -10%, rgba(118, 214, 255, 0.17), transparent 36%),
      radial-gradient(ellipse at 76% 6%, rgba(245, 168, 199, 0.10), transparent 34%),
      linear-gradient(145deg, #01030a 0%, #06101f 48%, #02040b 100%);
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    z-index: 10;
    min-height: 0;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-right));
    border-bottom: 1px solid var(--line);
    border-right: 0;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  }

  .brand,
  .private-compass-label,
  .sidebar-foot {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 70px;
    min-height: 50px;
    padding: 0 10px;
    text-align: center;
    font-size: 0.68rem;
    border-radius: 8px;
  }

  .workspace {
    padding: 18px 14px 24px;
  }

  .topbar {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions button {
    flex: 1;
  }

  .today-grid,
  .practice-bank-shell,
  .observatory-card-grid,
  .journal-layout,
  .wheel-layout,
  .export-layout,
  .detail-band,
  .prompt-row,
  .precept-grid,
  .codex-stack,
  .harmonic-strip {
    grid-template-columns: 1fr;
  }

  .ritual-flow {
    grid-template-columns: 1fr;
  }

  .ritual-step {
    min-height: auto;
  }

  .cosmic-wheel-panel {
    min-height: 410px;
  }

  .state-panel,
  .selection-panel,
  .export-card:last-child {
    grid-column: auto;
  }

  blockquote {
    font-size: clamp(1.46rem, 7vw, 2.45rem);
  }

  .panel-top,
  .wheel-stage-head,
  .timeline-head,
  .library-head,
  .entry-head {
    display: grid;
  }

  .search-input {
    width: 100%;
  }

  .filter-row,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .voice-guide-panel,
  .practice-library-tools {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .practice-spotlight {
    min-height: auto;
  }

  .practice-list-head,
  .spotlight-meta {
    display: grid;
  }

  .voice-actions {
    justify-content: flex-start;
  }

  .hero-panel,
  .wheel-panel,
  .state-panel,
  .detail-band,
  .wheel-stage,
  .selection-panel,
  .journal-composer,
  .journal-timeline,
  .export-card,
  .library-head {
    border-radius: 8px;
  }

  .precept-card {
    min-height: auto;
  }

  .harmonic-wheel {
    width: min(100%, 520px);
  }

  .cosmic-wheel-panel .harmonic-wheel {
    width: min(94%, 480px);
  }

  .center-seal text {
    font-size: 11px;
  }

  .toast {
    right: 14px;
    bottom: 18px;
  }
}

@media (max-width: 430px) {
  .source-line {
    font-size: 0.58rem;
  }

  .topbar h1 {
    font-size: 2.35rem;
  }

  .primary-button,
  .ghost-button,
  .danger-button,
  .voice-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.64rem;
  }

  .voice-guide-copy h3 {
    font-size: 1.05rem;
  }

  .nav-item {
    font-size: 0.6rem;
  }

  .nav-glyph {
    display: none;
  }

  .ritual-band,
  .gate-chamber,
  .observatory-card,
  .practice-spotlight,
  .practice-list-panel {
    padding: 16px;
  }

  .practice-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cosmic-wheel-panel {
    min-height: 330px;
  }

  .center-seal .center-number {
    font-size: 50px;
  }

  .hero-panel,
  .wheel-panel,
  .state-panel,
  .detail-band,
  .wheel-stage,
  .selection-panel,
  .journal-composer,
  .journal-timeline,
  .export-card,
  .precept-card,
  .codex-article,
  .data-table-card {
    padding: 16px;
  }

  .wheel-segment text {
    font-size: 12px;
  }
}

.gate-title {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.35rem, 4.6vw, 5.3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-shadow: 0 0 30px rgba(118, 214, 255, 0.14);
}

.prompt-row strong,
.practice-focus h3,
.precept-card h3,
.practice-card h3 {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.08;
}

.prompt-row strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-strip,
.pattern-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat-strip span,
.pattern-panel span {
  display: grid;
  gap: 5px;
  min-height: 66px;
  border: 1px solid rgba(220, 235, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(118, 214, 255, 0.06), rgba(247, 213, 142, 0.035)),
    rgba(2, 5, 12, 0.22);
  font-size: 0.78rem;
  line-height: 1.35;
}

.stat-strip strong,
.pattern-panel strong {
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-strip.stacked {
  grid-template-columns: 1fr;
  margin: 18px 0;
}

.practice-switcher {
  display: grid;
  gap: 9px;
}

.practice-choice {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(220, 235, 255, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(118, 214, 255, 0.035)),
    rgba(2, 5, 12, 0.18);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.practice-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 214, 255, 0.32);
}

.practice-choice span {
  font-family: var(--display);
  font-size: 1.05rem;
}

.practice-choice small {
  color: var(--muted);
  font-size: 0.73rem;
}

.practice-choice.selected,
.ghost-button.selected {
  border-color: rgba(247, 213, 142, 0.50);
  color: var(--gold-soft);
  background: linear-gradient(90deg, rgba(247, 213, 142, 0.15), rgba(118, 214, 255, 0.08));
  box-shadow: 0 0 24px rgba(247, 213, 142, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.practice-focus {
  display: grid;
  gap: 11px;
  margin-top: 0;
}

.practice-focus h3 {
  margin: 0;
}

.practice-focus p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.soft-disclosure {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(220, 235, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(118, 214, 255, 0.045), rgba(247, 213, 142, 0.03)),
    rgba(2, 5, 12, 0.18);
}

.soft-disclosure + .soft-disclosure {
  margin-top: 10px;
}

.soft-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 13px;
  color: rgba(251, 243, 230, 0.76);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  list-style: none;
}

.soft-disclosure summary::-webkit-details-marker {
  display: none;
}

.soft-disclosure summary::after {
  content: "+";
  color: var(--gold-soft);
  font-size: 0.9rem;
  line-height: 1;
}

.soft-disclosure[open] summary::after {
  content: "-";
}

.disclosure-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(220, 235, 255, 0.10);
  padding: 13px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.disclosure-body p,
.disclosure-body h3,
.disclosure-body blockquote {
  margin: 0;
}

.disclosure-body blockquote {
  color: rgba(251, 243, 230, 0.88);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  line-height: 1.15;
}

.disclosure-stack {
  display: grid;
  gap: 14px;
}

.rhythm-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.rhythm-step {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(220, 235, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(118, 214, 255, 0.04), rgba(247, 213, 142, 0.03)),
    rgba(3, 8, 16, 0.28);
}

.rhythm-step::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.rhythm-step span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.rhythm-step strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 400;
}

.rhythm-step small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.rhythm-step.active {
  border-color: rgba(247, 213, 142, 0.54);
  background:
    linear-gradient(145deg, rgba(247, 213, 142, 0.14), rgba(118, 214, 255, 0.08)),
    rgba(3, 8, 16, 0.32);
  box-shadow:
    0 0 28px rgba(247, 213, 142, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.rhythm-step.active::before {
  opacity: 1;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.practice-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 20, 38, 0.82), rgba(3, 8, 18, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 42%);
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.practice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 214, 255, 0.32);
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.54),
    0 0 34px rgba(118, 214, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.practice-card.completed {
  border-color: rgba(140, 239, 216, 0.36);
  background:
    linear-gradient(145deg, rgba(11, 42, 44, 0.70), rgba(7, 14, 25, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.practice-card h3,
.precept-card h3 {
  margin: 0 0 10px;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.practice-card code {
  border-top: 0;
  padding-top: 0;
  font-size: 0.78rem;
}

.practice-card .soft-disclosure {
  margin-top: 14px;
}

.practice-bank-shell {
  display: grid;
  grid-template-columns: minmax(330px, 0.52fr) minmax(520px, 1fr);
  gap: clamp(18px, 1.6vw, 26px);
  align-items: start;
}

.practice-spotlight,
.practice-list-panel,
.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 20, 38, 0.82), rgba(3, 8, 18, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 42%);
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
}

.practice-spotlight {
  display: grid;
  gap: 16px;
  min-height: 520px;
  padding: clamp(22px, 2.8vw, 34px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(247, 213, 142, 0.16), transparent 42%),
    linear-gradient(150deg, rgba(18, 31, 52, 0.90), rgba(3, 8, 18, 0.72) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
}

.practice-spotlight::before,
.practice-list-panel::before,
.empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, rgba(118, 214, 255, 0.10), transparent 34%),
    linear-gradient(292deg, rgba(247, 213, 142, 0.08), transparent 48%);
  opacity: 0.72;
}

.practice-spotlight > *,
.practice-list-panel > *,
.empty-state > * {
  position: relative;
  z-index: 1;
}

.spotlight-meta,
.practice-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.practice-spotlight h3 {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.8rem, 4.1vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.practice-spotlight p:not(.micro-label) {
  max-width: 620px;
  margin: 0;
  color: rgba(251, 243, 230, 0.76);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.practice-spotlight.completed {
  border-color: rgba(140, 239, 216, 0.36);
}

.practice-list-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
}

.practice-list-head {
  align-items: center;
}

.practice-list-head h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.practice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  border: 1px solid rgba(220, 235, 255, 0.11);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(118, 214, 255, 0.04), rgba(255, 255, 255, 0.025)),
    rgba(2, 5, 12, 0.18);
  text-align: left;
  transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.practice-row:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 214, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(118, 214, 255, 0.08), rgba(247, 213, 142, 0.04)),
    rgba(2, 5, 12, 0.24);
}

.practice-row.selected {
  border-color: rgba(247, 213, 142, 0.56);
  background:
    linear-gradient(90deg, rgba(247, 213, 142, 0.16), rgba(118, 214, 255, 0.06)),
    rgba(4, 9, 17, 0.30);
  box-shadow:
    0 0 28px rgba(247, 213, 142, 0.08),
    inset 2px 0 0 rgba(247, 213, 142, 0.70);
}

.practice-row.completed {
  border-color: rgba(140, 239, 216, 0.24);
}

.practice-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.practice-row strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practice-row small,
.practice-row em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.practice-row em {
  color: var(--gold-soft);
}

.empty-state {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
}

.empty-state h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.2rem, 3vw, 3.7rem);
  font-weight: 400;
  line-height: 0.98;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.gate-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.gate-detail-hero,
.gate-detail-side,
.gate-practice-suite,
.practice-session-hero,
.session-steps-panel,
.session-side-panel,
.session-step-card,
.gate-question-card,
.detail-rhythm-panel,
.session-prompt-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 20, 38, 0.84), rgba(3, 8, 18, 0.68)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 42%);
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
}

.gate-detail-hero::before,
.gate-detail-side::before,
.gate-practice-suite::before,
.practice-session-hero::before,
.session-steps-panel::before,
.session-side-panel::before,
.session-step-card::before,
.gate-question-card::before,
.detail-rhythm-panel::before,
.session-prompt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, rgba(118, 214, 255, 0.11), transparent 32%),
    linear-gradient(292deg, rgba(247, 213, 142, 0.09), transparent 42%);
  opacity: 0.72;
}

.gate-detail-hero > *,
.gate-detail-side > *,
.gate-practice-suite > *,
.practice-session-hero > *,
.session-steps-panel > *,
.session-side-panel > *,
.session-step-card > *,
.gate-question-card > *,
.detail-rhythm-panel > *,
.session-prompt-card > * {
  position: relative;
  z-index: 1;
}

.gate-detail-hero,
.practice-session-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 610px;
  padding: clamp(22px, 3vw, 34px);
  isolation: isolate;
}

.gate-detail-hero::after,
.practice-session-hero::after,
.session-steps-panel::after {
  content: "";
  position: absolute;
  inset: 6% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(108deg, transparent 16%, rgba(118, 214, 255, 0.22) 42%, rgba(140, 239, 216, 0.13) 52%, transparent 70%),
    linear-gradient(64deg, transparent 24%, rgba(245, 168, 199, 0.12) 46%, rgba(247, 213, 142, 0.12) 60%, transparent 78%);
  filter: blur(20px);
  opacity: 0.82;
  transform: rotate(-5deg);
}

.detail-action-row,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.gate-detail-hero h2,
.practice-session-hero h2,
.session-steps-panel h2,
.gate-practice-suite h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.94;
  text-shadow:
    0 0 32px rgba(118, 214, 255, 0.16),
    0 16px 36px rgba(0, 0, 0, 0.26);
}

.session-steps-panel h2,
.gate-practice-suite h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.practice-session-hero h2 {
  font-size: clamp(2.25rem, 3.7vw, 4.3rem);
}

.session-steps-panel h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.75rem);
  line-height: 1.02;
}

.detail-essence {
  max-width: 820px;
  margin: 0;
  color: rgba(251, 243, 230, 0.82);
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.7vw, 3.2rem);
  line-height: 1.05;
}

.session-action-line {
  max-width: 680px;
  margin: 0;
  color: rgba(251, 243, 230, 0.84);
  font-family: var(--display);
  font-size: clamp(1.28rem, 1.7vw, 2rem);
  line-height: 1.16;
}

.detail-tags {
  margin-top: 2px;
}

.gate-question-card,
.session-prompt-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: clamp(18px, 2.2vw, 24px);
  background:
    radial-gradient(circle at 18% 42%, rgba(247, 213, 142, 0.15), transparent 30%),
    linear-gradient(145deg, rgba(247, 213, 142, 0.08), rgba(118, 214, 255, 0.045)),
    rgba(2, 5, 12, 0.32);
}

.gate-question-card blockquote,
.session-prompt-card blockquote {
  margin: 0;
  color: rgba(251, 243, 230, 0.90);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.15;
}

.detail-rhythm-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: clamp(18px, 2.2vw, 24px);
}

.detail-rhythm-panel h3,
.session-step-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
}

.detail-rhythm-panel p,
.session-step-card p,
.session-step-card small,
.session-side-panel p,
.gate-detail-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.gate-detail-side,
.session-side-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.3vw, 24px);
}

.gate-practice-suite {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.gate-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.practice-session-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr) minmax(260px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.session-steps-panel {
  display: grid;
  gap: 18px;
  min-height: 610px;
  padding: clamp(22px, 3vw, 30px);
}

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

.session-step-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  align-content: start;
}

.session-step-card > .step-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(247, 213, 142, 0.34);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  box-shadow: inset 0 0 20px rgba(247, 213, 142, 0.08);
}

.session-step-card strong {
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-step-card small {
  display: block;
  border-left: 1px solid rgba(247, 213, 142, 0.30);
  padding-left: 12px;
  font-size: 0.8rem;
}

.session-step-card.active {
  min-height: 230px;
  border-color: rgba(247, 213, 142, 0.54);
  background:
    linear-gradient(145deg, rgba(247, 213, 142, 0.13), rgba(118, 214, 255, 0.08)),
    rgba(3, 8, 16, 0.34);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(247, 213, 142, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.session-step-card.is-compact {
  gap: 8px;
  color: rgba(251, 243, 230, 0.74);
}

.session-step-card.is-compact h3 {
  font-size: 1.35rem;
}

.journal-prompt {
  margin: 0;
}

.pattern-panel {
  margin-bottom: 12px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.guide-stack {
  display: grid;
  gap: 18px;
}

.guide-intro-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  border: 1px solid rgba(247, 213, 142, 0.22);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(247, 213, 142, 0.15), transparent 34%),
    radial-gradient(ellipse at 86% 18%, rgba(118, 214, 255, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(10, 20, 38, 0.86), rgba(3, 8, 18, 0.70));
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.22);
}

.guide-intro-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, rgba(118, 214, 255, 0.10), transparent 34%),
    linear-gradient(292deg, rgba(247, 213, 142, 0.08), transparent 48%);
  opacity: 0.72;
}

.guide-intro-panel > * {
  position: relative;
  z-index: 1;
}

.guide-intro-panel h2 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.guide-intro-panel > div > p:not(.micro-label) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.guide-intro-panel .voice-guide-panel,
.guide-intro-panel .soft-disclosure {
  grid-column: 2;
}

.transcript-disclosure {
  align-self: start;
}

.transcript-copy {
  display: grid;
  gap: 10px;
}

.transcript-copy p {
  margin: 0;
  color: rgba(251, 243, 230, 0.76);
  line-height: 1.64;
}

.guide-output p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-note {
  margin: 4px 0 0;
  border-left: 1px solid rgba(217, 164, 65, 0.36);
  padding-left: 12px;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.55;
}

.vertical {
  display: grid;
  gap: 10px;
}

.file-button {
  display: block;
  margin-top: 18px;
}

.file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.library-head.inset {
  margin: 0;
  border-color: rgba(220, 235, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(118, 214, 255, 0.045), rgba(247, 213, 142, 0.035)),
    rgba(3, 8, 16, 0.28);
}

.mapping-card {
  margin-top: 14px;
}

.mapping-table div {
  grid-template-columns: 210px 190px 150px 140px minmax(280px, 1fr);
  min-width: 1020px;
}

.table-head {
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wheel-segment.has-journal path {
  fill: rgba(118, 214, 255, 0.26);
}

.wheel-segment.has-practice path {
  fill: rgba(140, 239, 216, 0.23);
}

.wheel-segment.depth-d0 path {
  fill: rgba(247, 213, 142, 0.18);
}

.wheel-segment.depth-d1 path {
  fill: rgba(118, 214, 255, 0.16);
}

.wheel-segment.depth-d2 path {
  fill: rgba(140, 239, 216, 0.15);
}

.wheel-segment.depth-d3 path {
  fill: rgba(231, 173, 69, 0.17);
}

.wheel-segment.depth-d4 path {
  fill: rgba(246, 240, 229, 0.12);
}

@media (max-width: 1180px) {
  .practice-bank-shell {
    grid-template-columns: 1fr;
  }

  .guide-intro-panel {
    grid-template-columns: 1fr;
  }

  .guide-intro-panel .voice-guide-panel,
  .guide-intro-panel .soft-disclosure {
    grid-column: auto;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: 1fr 1fr;
  }

  .gate-detail-layout {
    grid-template-columns: 1fr;
  }

  .practice-session-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  }

  .session-side-panel {
    grid-column: 1 / -1;
  }

  .gate-practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .practice-bank-shell,
  .practice-grid,
  .guide-layout,
  .gate-practice-grid,
  .practice-session-layout,
  .session-step-grid,
  .rhythm-ladder,
  .stat-strip,
  .pattern-panel {
    grid-template-columns: 1fr;
  }

  .detail-rhythm-panel {
    grid-template-columns: 1fr;
  }

  .gate-detail-hero,
  .practice-session-hero,
  .session-steps-panel {
    min-height: auto;
  }

  .detail-action-row,
  .section-heading {
    display: grid;
  }

  .practice-card {
    min-height: auto;
  }

  .practice-spotlight {
    min-height: auto;
  }

  .practice-list-head,
  .spotlight-meta {
    display: grid;
  }

  .gate-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (max-width: 430px) {
  .practice-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .practice-row strong {
    white-space: normal;
  }

  .practice-choice,
  .rhythm-step,
  .stat-strip span,
  .pattern-panel span {
    padding: 9px;
  }
}
