/* Living Time Sphere — living-time-sphere.css */

/* ── CSS custom properties (sphere color palette) ─────────────────── */
:root {
  --sphere-bg:          #0a0a14;
  --sphere-border:      rgba(255, 255, 255, 0.15);
  --sphere-pattern-ring: rgba(255, 255, 255, 0.2);
  --sphere-moon-fill:   rgba(255, 255, 255, 0.04);
  --sphere-moon-active: rgba(220, 160, 80, 0.25);
  --sphere-moon-stroke: rgba(255, 255, 255, 0.15);
  --sphere-passage:     rgba(251, 191, 36, 0.8);
  --sphere-equinox:     rgba(251, 191, 36, 0.9);
  --sphere-yeargate:    rgba(100, 255, 180, 0.9);
  --sphere-lunar:       rgba(180, 180, 255, 0.8);
  --sphere-lunar-ring:  rgba(180, 180, 255, 0.2);
  --sphere-solar:       rgba(255, 220, 80, 0.3);
  --sphere-annual:      rgba(255, 255, 255, 0.5);
  --sphere-selected:    rgba(251, 191, 36, 1);
  --sphere-spiral:      rgba(100, 200, 180, 0.4);
  --sphere-center:      rgba(255, 255, 255, 0.6);
  --sphere-label:       rgba(255, 255, 255, 0.5);
}

/* ── Page layout ─────────────────────────────────────────────────── */
.sphere-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem clamp(0.9rem, 2.8vw, 2.2rem);
  color: var(--color-text, #e8e4d9);
  font-family: var(--font-body, system-ui, sans-serif);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.sphere-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.sphere-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  background: linear-gradient(160deg, #fbbf24 0%, #f3f4f6 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sphere-hero-description {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.8);
  font-size: 1rem;
}

/* ── Hero sigil ───────────────────────────────────────────────────── */
.sphere-hero-sigil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0.75rem;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sphere-yeargate, rgba(100, 255, 180, 0.9));
  text-shadow: 0 0 24px rgba(100, 255, 180, 0.4), 0 0 60px rgba(100, 255, 180, 0.15);
  animation: sphereSigilBreath 7s ease-in-out infinite;
}

.sphere-hero-sigil i {
  font-style: normal;
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7em;
}

@keyframes sphereSigilBreath {
  0%, 100% { opacity: 1; text-shadow: 0 0 24px rgba(100, 255, 180, 0.4), 0 0 60px rgba(100, 255, 180, 0.15); }
  50%       { opacity: 0.8; text-shadow: 0 0 40px rgba(100, 255, 180, 0.6), 0 0 80px rgba(100, 255, 180, 0.25); }
}

/* ── Hero meta chips ──────────────────────────────────────────────── */
.sphere-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.sphere-hero-meta span {
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(232, 228, 217, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
}

.sphere-hero-meta span b {
  color: var(--sphere-yeargate, rgba(100, 255, 180, 0.9));
  font-weight: 700;
}

/* ── View mode controls ───────────────────────────────────────────── */
.sphere-mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.sphere-mode-btn {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text, #e8e4d9);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sphere-mode-btn[aria-pressed="true"],
.sphere-mode-btn.active {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.sphere-mode-btn:hover { background: rgba(255, 255, 255, 0.1); }
.sphere-mode-btn:focus-visible {
  outline: 2px solid var(--color-accent, #fbbf24);
  outline-offset: 2px;
}

/* ── Sphere container ─────────────────────────────────────────────── */
.sphere-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "canvas"
    "legend"
    "sidebar";
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

#sphere-container {
  min-width: 0;
  min-height: 400px;
  height: clamp(400px, 62vw, 640px);
  max-height: 640px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  background: var(--sphere-bg);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Allow page scroll on non-sphere areas */
.sphere-sidebar {
  grid-area: sidebar;
  min-width: 0;
}

.sphere-sidebar-section {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
}

.sphere-sidebar-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(232, 228, 217, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

/* ── SVG sphere styles ────────────────────────────────────────────── */
.living-time-sphere-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  border-radius: 50%;
  /* Scope touch-action to the SVG itself so page scroll still works
     when the user touches outside the sphere container. */
  touch-action: none;
}

.living-time-sphere-svg:active { cursor: grabbing; }

/* ── Canvas fallback ──────────────────────────────────────────────── */
.living-time-sphere-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: grab;
}

/* ── Details panel ───────────────────────────────────────────────── */
.sphere-details {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.sphere-details-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent, #fbbf24);
  margin: 0 0 0.75rem;
}

.sphere-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.2rem 0.75rem;
}

.sphere-details-section + .sphere-details-section {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sphere-details-subheading {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251, 191, 36, 0.82);
}

.sphere-details-grid dt {
  font-size: 0.8rem;
  color: rgba(232, 228, 217, 0.5);
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sphere-details-grid dd {
  font-size: 0.875rem;
  margin: 0;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sphere-details-grid-tight dt,
.sphere-details-grid-tight dd {
  border-bottom: 0;
}

.sphere-field-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.sphere-chip-btn,
.sphere-field-summary-pill,
.sphere-status-chip,
.sphere-availability-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
}

.sphere-chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text, #e8e4d9);
  cursor: pointer;
}

.sphere-chip-btn[aria-pressed="true"] {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.sphere-field-summary {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.sphere-field-summary-label,
.sphere-field-range-note,
.sphere-field-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(232, 228, 217, 0.68);
}

.sphere-field-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.sphere-field-summary-pill,
.sphere-availability-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 228, 217, 0.88);
}

.sphere-actions-compact {
  margin-top: 0;
}

.sphere-field-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.sphere-field-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.sphere-field-card.is-core {
  border-color: rgba(251, 191, 36, 0.18);
}

.sphere-field-card.is-conditional {
  border-color: rgba(122, 243, 255, 0.14);
}

.sphere-field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.sphere-field-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text, #e8e4d9);
}

.sphere-field-value {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(232, 228, 217, 0.9);
}

.sphere-field-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.sphere-status-chip {
  border: 1px solid transparent;
  color: #05070d;
  font-weight: 600;
}

.sphere-status-live { background: rgba(116, 244, 180, 0.92); }
.sphere-status-calculated { background: rgba(251, 191, 36, 0.92); }
.sphere-status-cached { background: rgba(129, 198, 255, 0.92); }
.sphere-status-user-logged { background: rgba(211, 170, 255, 0.92); }
.sphere-status-unavailable { background: rgba(255, 143, 143, 0.92); }
.sphere-status-not-checked { background: rgba(201, 201, 201, 0.92); }

.sphere-field-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
  margin-top: 0.8rem;
}

.sphere-field-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.sphere-field-meta span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(232, 228, 217, 0.52);
}

.sphere-field-meta strong {
  font-size: 0.84rem;
  color: rgba(232, 228, 217, 0.9);
  font-weight: 500;
}

.sphere-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.sphere-field-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  color: #fbbf24;
  text-decoration: none;
}

.sphere-field-details,
.sphere-field-disclosure {
  margin-top: 0.75rem;
}

.sphere-inline-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: rgba(232, 228, 217, 0.84);
}

.sphere-field-footer-actions {
  margin-top: 0.95rem;
}

/* ── Layer controls ───────────────────────────────────────────────── */
.sphere-layers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sphere-layer-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.sphere-layer-row input[type="checkbox"] {
  accent-color: var(--color-accent, #fbbf24);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* ── Year / range controls ────────────────────────────────────────── */
.sphere-year-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sphere-year-controls select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.375rem;
  color: var(--color-text, #e8e4d9);
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.sphere-year-controls label {
  font-size: 0.875rem;
  color: rgba(232, 228, 217, 0.7);
}

/* ── Accessible text model ────────────────────────────────────────── */
.sphere-text-model {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.75);
  white-space: pre-wrap;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ── Visually hidden (screen-reader only) ─────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Action buttons ───────────────────────────────────────────────── */
.sphere-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sphere-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text, #e8e4d9);
  cursor: pointer;
  transition: background 0.15s;
}

.sphere-btn:hover { background: rgba(255, 255, 255, 0.1); }
.sphere-btn:focus-visible {
  outline: 2px solid var(--color-accent, #fbbf24);
  outline-offset: 2px;
}

.sphere-btn:disabled,
.sphere-chip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .sphere-details-grid,
  .sphere-field-meta {
    grid-template-columns: 1fr;
  }

  .sphere-field-card {
    padding: 0.8rem;
  }
}

.sphere-btn-primary {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

/* ── Methods / coordinate explanation ────────────────────────────── */
.sphere-methods {
  font-size: 0.875rem;
  color: rgba(232, 228, 217, 0.65);
  line-height: 1.7;
}

.sphere-coordinate-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.sphere-coordinate-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  color: rgba(232, 228, 217, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sphere-coordinate-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Compact sphere card (used in 13 Moons) ──────────────────────── */
.sphere-compact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sphere-compact-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent, #fbbf24);
  margin: 0;
}

.sphere-compact-preview {
  width: 100%;
  aspect-ratio: 1;
  max-width: 160px;
  background: var(--sphere-bg);
  border-radius: 50%;
  margin: 0 auto;
  overflow: visible;
}

.sphere-compact-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-accent, #fbbf24);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  align-self: flex-start;
}

.sphere-compact-open:hover { border-bottom-color: rgba(251, 191, 36, 0.7); }

/* ── Error state ──────────────────────────────────────────────────── */
.sphere-error {
  color: rgba(248, 113, 113, 0.9);
  font-size: 0.875rem;
  padding: 0.5rem;
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .living-time-sphere-svg,
  .living-time-sphere-canvas { cursor: default; }
}

/* ── High contrast ───────────────────────────────────────────────── */
@media (forced-colors: active) {
  .sphere-btn, .sphere-mode-btn { border: 2px solid ButtonText; }
  .sphere-hero-title { color: Highlight; }
  .sphere-details-heading { color: Highlight; }
}

/* ── Narrow viewport (mobile-first overrides) ─────────────────────── */
@media (max-width: 480px) {
  .sphere-details-grid { grid-template-columns: 1fr; }
  #sphere-container { max-width: 100%; border-radius: 0.5rem; }
  .sphere-mode-controls { gap: 0.35rem; }
  .sphere-mode-btn { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}

/* ── Phase 03: 3D canvas and controls ───────────────────────────── */

.sphere-controls-bar {
  display: grid;
  gap: 0.8rem;
  align-items: start;
  margin: 0 auto 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: linear-gradient(160deg, rgba(12, 16, 30, 0.9) 0%, rgba(10, 10, 20, 0.74) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  width: min(100%, 1120px);
}

.sphere-renderer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.5rem;
  align-items: center;
}

.sphere-control-label {
  font-size: 0.8rem;
  color: rgba(232, 228, 217, 0.6);
  white-space: nowrap;
}

.sphere-control-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.375rem;
  color: var(--color-text, #e8e4d9);
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}

.sphere-3d-preview-note {
  font-size: 0.72rem;
  color: rgba(251, 191, 36, 0.6);
  margin: 0;
  align-self: center;
}

.sphere-environment-bridge {
  margin: 0.5rem 0 0.7rem;
  width: min(100%, 760px);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(100, 255, 180, 0.22);
  background: rgba(10, 20, 20, 0.56);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.sphere-environment-bridge-text {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(222, 248, 236, 0.9);
}

.sphere-environment-bridge.is-off .sphere-environment-bridge-text {
  color: rgba(232, 228, 217, 0.72);
}

/* Canvas wrapper with mobile interact overlay */
.sphere-canvas-wrap {
  grid-area: canvas;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  order: 1;
}

.sphere-interact-bar {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
  text-align: center;
}

@media (max-width: 480px) {
  .sphere-interact-bar { display: flex; }
}

.sphere-interact-toggle {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  cursor: pointer;
}

.sphere-interact-end {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: rgba(248, 113, 113, 0.9);
}

/* 3D canvas */
.living-time-sphere-3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0.5rem;
  cursor: grab;
  touch-action: pan-y; /* default: vertical scroll preserved */
}

.living-time-sphere-3d-canvas:active { cursor: grabbing; }

/* Camera control buttons (shown in 3D mode) */
.sphere-camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.sphere-cam-label {
  font-size: 0.68rem;
  color: var(--fg-3, #8892a8);
  align-self: center;
  white-space: nowrap;
}

.sphere-cam-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 228, 217, 0.7);
  cursor: pointer;
  transition: background 0.15s;
}

.sphere-cam-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Alternate views (table / text) */
.sphere-alt-view {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 1rem;
  flex: 1 1 300px;
}

/* ── SVG view-mode emphasis ───────────────────────────────────────── */
/* Each mode highlights its primary layer; secondary layers are dimmed. */

/* Passage mode: brighten the arc; dim other astronomical overlays. */
.sphere-mode-passage .sphere-passage-arc {
  stroke: rgba(251, 191, 36, 1);
  stroke-width: 5;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}
.sphere-mode-passage .sphere-lunar-orbit-ring,
.sphere-mode-passage .sphere-lunar-marker,
.sphere-mode-passage .sphere-solar-axis,
.sphere-mode-passage .sphere-spiral-path,
.sphere-mode-passage .sphere-annual-marker { opacity: 0.25; }

/* Years mode: highlight the spiral and annual markers. */
.sphere-mode-years .sphere-spiral-path {
  stroke: rgba(100, 200, 180, 0.9);
  stroke-width: 2.5;
}
.sphere-mode-years .sphere-annual-marker {
  opacity: 1;
}
.sphere-mode-years .sphere-annual-selected {
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.7));
}
.sphere-mode-years .sphere-lunar-orbit-ring,
.sphere-mode-years .sphere-lunar-marker,
.sphere-mode-years .sphere-solar-axis,
.sphere-mode-years .sphere-passage-arc { opacity: 0.2; }

/* Pattern mode: show only the calendar structure; hide astronomical data. */
.sphere-mode-pattern .sphere-passage-arc,
.sphere-mode-pattern .sphere-lunar-orbit-ring,
.sphere-mode-pattern .sphere-lunar-marker,
.sphere-mode-pattern .sphere-solar-axis,
.sphere-mode-pattern .sphere-annual-marker,
.sphere-mode-pattern .sphere-spiral-path { display: none; }
.sphere-mode-pattern .sphere-moon-sector { opacity: 0.6; }
.sphere-mode-pattern .sphere-pattern-ring { stroke: rgba(255, 255, 255, 0.4); stroke-width: 3; }

/* ── Guided introduction ──────────────────────────────────────────── */

.sphere-intro {
  position: absolute;
  top: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(calc(100% - 1rem), 29rem);
  background: rgba(10, 12, 25, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.5rem;
  padding: 1.25rem 1.25rem 1rem;
  margin: 0;
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.sphere-intro-step {
  font-size: 0.72rem;
  color: rgba(251, 191, 36, 0.6);
  margin: 0 0 0.35rem;
}

.sphere-intro-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fbbf24;
  margin: 0 0 0.5rem;
}

.sphere-intro-body {
  font-size: 0.875rem;
  color: rgba(232, 228, 217, 0.85);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.sphere-intro-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ── Today card (moons.html Today tab) ──────────────────────────── */

.sphere-today-card {
  background: rgba(10, 10, 20, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.sphere-today-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.sphere-today-preview {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: var(--sphere-bg, #0a0a14);
  border-radius: 50%;
  overflow: hidden;
}

@media (max-width: 480px) {
  .sphere-today-layout { flex-direction: column; }
  .sphere-today-preview { width: 80px; height: 80px; }
}

.sphere-today-data { flex: 1; min-width: 0; }

.sphere-today-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

.sphere-today-grid dt {
  color: rgba(232, 228, 217, 0.5);
  white-space: nowrap;
}

.sphere-today-grid dd {
  color: var(--color-text, #e8e4d9);
  margin: 0;
  font-weight: 500;
}

.sphere-today-orientation {
  font-size: 0.82rem;
  color: rgba(232, 228, 217, 0.6);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.sphere-today-accessible-wrap {
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

.sphere-today-accessible-toggle {
  color: rgba(232, 228, 217, 0.45);
  cursor: pointer;
}

.sphere-today-accessible {
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: rgba(232, 228, 217, 0.5);
  margin: 0.4rem 0 0;
}

/* ── Homepage observatory section ────────────────────────────────── */

.sphere-observatory-section {
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.8) 0%, rgba(10, 10, 20, 0.6) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.sphere-observatory-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sphere-observatory-header {
  margin-bottom: 1.25rem;
}

.sphere-observatory-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sphere-observatory-mode-group,
.sphere-observatory-layer-group,
.sphere-observatory-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sphere-chip-btn {
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(17, 24, 39, 0.72);
  color: rgba(245, 238, 224, 0.92);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sphere-chip-btn[aria-pressed="true"] {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.55);
}

.sphere-chip-btn:hover,
.sphere-chip-btn:focus-visible {
  border-color: rgba(251, 191, 36, 0.7);
  transform: translateY(-1px);
}

.sphere-chip-btn--year {
  min-width: 2.5rem;
  padding-inline: 0;
}

.sphere-observatory-year-label {
  min-width: 4rem;
  text-align: center;
  color: rgba(232, 228, 217, 0.68);
  font-size: 0.88rem;
}

.sphere-observatory-desc {
  font-size: 0.9rem;
  color: rgba(232, 228, 217, 0.55);
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.sphere-observatory-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sphere-observatory-preview-wrap {
  flex-shrink: 0;
  width: min(320px, 100%);
}

.sphere-observatory-preview {
  width: min(320px, 100%);
  aspect-ratio: 1;
  background: var(--sphere-bg, #0a0a14);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sphere-observatory-preview--interactive {
  min-height: 260px;
}

.sphere-observatory-mode-summary {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: rgba(232, 228, 217, 0.68);
}

@media (max-width: 600px) {
  .sphere-observatory-layout { flex-direction: column; align-items: center; }
  .sphere-observatory-preview-wrap { width: 100%; }
  .sphere-observatory-preview { width: 100%; }
  .sphere-observatory-preview--interactive { min-height: 220px; }
}

.sphere-observatory-data {
  flex: 1;
  min-width: 0;
}

.sphere-observatory-notes {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sphere-observatory-notes li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 20, 0.42);
  color: rgba(232, 228, 217, 0.74);
  font-size: 0.82rem;
}

.sphere-observatory-notes strong {
  color: rgba(251, 191, 36, 0.85);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sphere-observatory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Prevent 3D from loading on homepage (guard class; set by JS if 3D attempted) */
.sphere-no-3d .living-time-sphere-3d-canvas { display: none !important; }

/* ── Phase 03 bug-fix additions ──────────────────────────────────── */

/* Sphere Settings collapsible group */
.sphere-settings-group {
  margin-top: 0.5rem;
}

.sphere-settings-summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(232, 228, 217, 0.55);
  padding: 0.25rem 0;
  user-select: none;
  list-style: none;
}
.sphere-settings-summary::-webkit-details-marker { display: none; }
.sphere-settings-summary::before { content: "▸ "; }
details[open] > .sphere-settings-summary::before { content: "▾ "; }

.sphere-settings-body {
  padding: 0.5rem 0 0;
}

/* Advanced controls stay explicitly collapsible at every viewport width. */
.sphere-settings-group[open] .sphere-settings-summary {
  color: rgba(251, 191, 36, 0.9);
}

/* Fallback warning banner */
.sphere-fallback-warning {
  background: rgba(180, 60, 20, 0.14);
  border: 1px solid rgba(220, 100, 40, 0.36);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 200, 160, 0.92);
  overflow-x: hidden;
}

.sphere-fallback-summary {
  font-weight: 600;
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
}

.sphere-fallback-reason {
  display: block;
  margin-bottom: 0.28rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sphere-fallback-details {
  margin: 0.28rem 0 0;
  font-size: 0.76rem;
}

.sphere-fallback-details summary {
  cursor: pointer;
  color: rgba(255, 200, 160, 0.7);
  padding: 0.15rem 0;
  list-style: none;
}
.sphere-fallback-details summary::-webkit-details-marker { display: none; }

.sphere-fallback-detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 0.55rem;
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
}

.sphere-fallback-detail-list dt {
  font-weight: 600;
  white-space: nowrap;
}

.sphere-fallback-wrap {
  overflow-wrap: break-word;
  word-break: break-word;
}

.sphere-fallback-details .sphere-btn {
  margin-top: 0.5rem;
}

.sphere-fallback-actions {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.sphere-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
}

.sphere-fallback-warning.is-minimized {
  padding: 0.3rem 0.5rem;
}

.sphere-fallback-warning.is-minimized .sphere-fallback-reason,
.sphere-fallback-warning.is-minimized .sphere-fallback-actions,
.sphere-fallback-warning.is-minimized .sphere-fallback-details {
  display: none;
}

.sphere-fallback-pill {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: rgba(232, 228, 217, 0.78);
}

.sphere-current-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(244, 239, 223, 0.92);
  text-align: center;
  margin: 0.2rem auto 0.65rem;
  padding: 0.7rem 0.95rem;
  max-width: 560px;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.88), rgba(8, 12, 24, 0.74));
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

/* Diagnostics sections */
.sphere-diagnostics-section {
  margin: 1.5rem 0;
}

.sphere-diag-summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232, 228, 217, 0.5);
  padding: 0.3rem 0;
  list-style: none;
  user-select: none;
}
.sphere-diag-summary::-webkit-details-marker { display: none; }
.sphere-diag-summary::before { content: "▸ "; }
details[open] > .sphere-diag-summary::before { content: "▾ "; }

.sphere-diag-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1rem;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

.sphere-diag-grid dt {
  color: rgba(232, 228, 217, 0.45);
  white-space: nowrap;
  margin: 0;
}

.sphere-diag-grid dd {
  color: rgba(232, 228, 217, 0.8);
  margin: 0;
  font-family: monospace;
  word-break: break-word;
}

/* ── Mode summary ─────────────────────────────────────────────── */
.sphere-mode-summary {
  font-size: 0.875rem;
  color: var(--fg-2, #b0b8cc);
  padding: 0.25rem 0.5rem;
  text-align: center;
  min-height: 1.5em;
}

/* ── "What am I seeing?" ──────────────────────────────────────── */
.sphere-what-am-i-seeing {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  margin: 0.5rem 0;
  padding: 0 0.75rem;
}
.sphere-what-summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--fg-2, #b0b8cc);
  padding: 0.5rem 0;
  list-style: none;
}
.sphere-what-summary::marker,
.sphere-what-summary::-webkit-details-marker { display: none; }
.sphere-what-summary::before { content: "▶ "; }
details[open] .sphere-what-summary::before { content: "▼ "; }
.sphere-what-body {
  font-size: 0.82rem;
  color: var(--fg-3, #8892a8);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

/* ── Interaction hint ─────────────────────────────────────────── */
.sphere-interact-hint {
  font-size: 0.72rem;
  color: var(--fg-3, #8892a8);
  margin: 0.1rem 0 0;
  text-align: center;
  line-height: 1.3;
}

/* ── Compact legend ───────────────────────────────────────────── */
.sphere-legend {
  grid-area: legend;
  background: rgba(5,7,13,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.8rem;
}
.sphere-legend-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-1, #d0d8e8);
  margin: 0 0 0.4rem;
}
.sphere-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}
.sphere-legend-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fg-2, #b0b8cc);
  white-space: nowrap;
}
.sphere-legend-rows {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sphere-legend-row-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
}
.sphere-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--fg-2, #b0b8cc);
  white-space: nowrap;
  font-size: 0.78rem;
}
.sphere-legend-symbol {
  font-size: 0.9rem;
  line-height: 1;
  width: 1.2em;
  text-align: center;
}
.legend-today    { color: #ffd700; }
.legend-equinox  { color: #fbbf24; }
.legend-yeargate { color: #64ffb4; }
.legend-lunar    { color: #b4b4ff; }
.legend-passage  { color: #ffd060; letter-spacing: -0.05em; }
.legend-year     { color: #88aacc; }
.legend-pattern  { color: #334466; }
.legend-spiral   { color: #64c8b4; }
.legend-solar    { color: #ffdc50; }
.sphere-legend-expand > summary {
  font-size: 0.78rem;
  color: var(--fg-3, #8892a8);
  cursor: pointer;
  padding: 0.35rem 0 0.1rem;
}

/* ── Current-state strip ─────────────────────────────────────── */
.sphere-state-strip {
  width: min(100%, 560px);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 238, 244, 0.9);
  text-align: center;
  padding: 0.42rem 0.8rem;
  margin: 0 0 0.45rem;
  letter-spacing: 0.03em;
  min-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, rgba(14, 18, 34, 0.84), rgba(8, 12, 24, 0.62));
  border: 1px solid rgba(100, 200, 180, 0.16);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sphere-detail-nav,
.sphere-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.sphere-detail-nav {
  margin: 0 0 0.8rem;
}

.sphere-detail-actions {
  margin-top: 0.9rem;
}

.sphere-detail-nav .sphere-btn,
.sphere-detail-actions .sphere-btn {
  justify-content: center;
}

/* ── Temporal Lens: authoritative Today + high-resolution navigation ── */
.sphere-temporal-lens {
  position: relative;
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(100, 220, 190, 0.24);
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 226, 184, 0.12), transparent 42%),
    linear-gradient(155deg, rgba(8, 22, 29, 0.96), rgba(8, 11, 21, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.sphere-temporal-lens::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, #64e3bd, rgba(251, 191, 36, 0.72), transparent);
}

.sphere-temporal-lens-head,
.sphere-temporal-scrubber-labels,
.sphere-temporal-playback-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.sphere-temporal-kicker {
  margin: 0 0 0.12rem;
  color: rgba(100, 227, 189, 0.86);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sphere-temporal-lens h3 {
  margin: 0;
  color: #eef8f5;
  font-size: 0.96rem;
  line-height: 1.25;
}

.sphere-temporal-status {
  flex: 0 0 auto;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(100, 227, 189, 0.36);
  border-radius: 999px;
  background: rgba(35, 143, 111, 0.18);
  color: #88f0cf;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sphere-temporal-status[data-state="exploring"] {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(146, 95, 13, 0.18);
  color: #ffd77a;
}

.sphere-temporal-status[data-state="playing"] {
  border-color: rgba(125, 211, 252, 0.46);
  background: rgba(14, 116, 144, 0.2);
  color: #a5e8ff;
}

.sphere-return-today {
  width: 100%;
  min-height: 2.55rem;
  justify-content: center;
}

.sphere-return-today[disabled] {
  border-color: rgba(100, 227, 189, 0.18);
  background: rgba(100, 227, 189, 0.08);
  color: rgba(167, 240, 218, 0.66);
  cursor: default;
}

.sphere-temporal-scrubber {
  display: grid;
  gap: 0.35rem;
}

.sphere-temporal-scrubber-labels {
  color: rgba(227, 239, 240, 0.78);
  font-size: 0.74rem;
}

.sphere-temporal-scrubber output {
  color: #fff0bd;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

#sphere-day-scrubber {
  width: 100%;
  min-height: 1.8rem;
  margin: 0;
  accent-color: #64e3bd;
  cursor: ew-resize;
}

.sphere-temporal-scale {
  display: flex;
  justify-content: space-between;
  color: rgba(206, 222, 226, 0.45);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

.sphere-temporal-step-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.32rem;
}

.sphere-temporal-step-grid .sphere-chip-btn {
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.55rem;
  font-size: 0.65rem;
  white-space: nowrap;
}

.sphere-temporal-play {
  border-color: rgba(100, 227, 189, 0.36);
  color: #a7f0da;
}

.sphere-temporal-play[aria-pressed="true"] {
  border-color: rgba(125, 211, 252, 0.56);
  background: rgba(14, 116, 144, 0.25);
  color: #c8f2ff;
}

.sphere-temporal-playback-settings {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.sphere-temporal-playback-settings label {
  color: rgba(221, 234, 237, 0.58);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sphere-temporal-playback-settings .sphere-control-select {
  min-width: 0;
  padding-block: 0.42rem;
  font-size: 0.72rem;
}

.sphere-temporal-comparison {
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.6rem;
  background: rgba(2, 8, 14, 0.5);
}

.sphere-temporal-comparison-lead {
  margin: 0;
  color: rgba(240, 246, 246, 0.86);
  font-size: 0.78rem;
  line-height: 1.45;
}

.sphere-temporal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.58rem;
}

.sphere-temporal-metric {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.42rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.035);
}

.sphere-temporal-metric span {
  color: rgba(213, 228, 231, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sphere-temporal-metric strong {
  overflow: hidden;
  color: #eff8f5;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sphere-temporal-step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sphere-temporal-play {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .sphere-temporal-playback-settings {
    grid-template-columns: auto minmax(0, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  .sphere-temporal-lens::before {
    background: #64e3bd;
  }
}

.sphere-field-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(232, 228, 217, 0.62);
  margin: 0.5rem 0 0;
}

.sphere-inline-note {
  display: inline-block;
  font-size: 0.72rem;
  color: rgba(232, 228, 217, 0.54);
}

/* ── Floating tap label ──────────────────────────────────────── */
.sphere-floating-label {
  background: rgba(5,7,13,0.92);
  border: 1px solid rgba(255,215,0,0.5);
  border-radius: 6px;
  color: #e8eaf0;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.35rem 0.6rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 200px;
  white-space: pre-wrap;
}

.sphere-day-guide,
.sphere-connection-line {
  pointer-events: none;
}

.sphere-active-day-number.is-selected,
.sphere-day-label {
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.sphere-connection-line.is-selected {
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.36));
}

/* ── Moon labels overlay (sphere-anchored via JS projection) ─── */
.sphere-moon-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.sphere-moon-label-connector {
  position: absolute;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.68), rgba(251, 191, 36, 0));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sphere-moon-label {
  position: absolute;
  font-size: 0.65rem;
  color: rgba(186, 225, 216, 0.92);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.62);
  border: 1px solid rgba(100, 200, 180, 0.18);
  backdrop-filter: blur(4px);
}
.sphere-moon-label.is-quiet {
  background: rgba(6, 10, 20, 0.48);
  border-color: rgba(100, 200, 180, 0.12);
}
.sphere-moon-label.is-selected {
  color: #fff1c2;
  background: rgba(52, 36, 10, 0.82);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12), 0 8px 16px rgba(0, 0, 0, 0.24);
}
.sphere-moon-label.is-front {
  text-shadow: 0 1px 4px rgba(0,0,0,0.96), 0 0 12px rgba(100,200,180,0.12);
}

.sphere-semantic-leader-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.sphere-semantic-leader {
  fill: none;
  stroke: rgba(246, 213, 106, .78);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(246, 213, 106, .28));
}
.sphere-semantic-leader[data-semantic-kind="living-plan"] {
  stroke-dasharray: 2 2;
}

.sphere-semantic-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.sphere-semantic-label {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  max-width: min(15rem, 58vw);
  padding: .38rem .42rem .38rem .55rem;
  border: 1px solid rgba(122, 215, 199, .34);
  border-radius: .62rem;
  background: rgba(5, 12, 20, .88);
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  backdrop-filter: blur(7px);
  color: rgba(226, 244, 241, .96);
  pointer-events: auto;
  line-height: 1.18;
  transform: translateZ(0);
}
/* B7.61: expanded semantic cards (selected day, strata year, today, planets)
   are readouts that float over the stage. As full click targets they sat on
   top of the day-numeral clusters — worst in Top View on phone, where the
   selected-year card covered the whole cluster and every real tap landed on
   the card instead of the sphere (synthetic canvas dispatches masked this).
   Cards are now click-through; only their real controls (buttons, links)
   and the living-plan body (whose click dispatches plan selection) take
   pointer events. Sphere taps reach the canvas pick path everywhere. */
.sphere-semantic-label {
  pointer-events: none;
}
.sphere-semantic-label[data-semantic-kind="living-plan"] .sphere-semantic-label-body,
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] .sphere-semantic-label-body {
  pointer-events: auto;
}
/* Buttons on readout cards (Moon, year, today, planet cards) stay
   click-through too: the expanded Moon card's "+ Schedule" button landed
   exactly on the day-numeral cluster in Top View on phone and opened the
   planner over the sphere on a stray tap. Only the selected-day card and
   living-plan cards — where scheduling/editing is the point — keep live
   buttons. */
.sphere-semantic-label[data-semantic-id="selected-day"] button,
.sphere-semantic-label[data-semantic-kind="living-plan"] button,
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] button {
  pointer-events: auto;
}
.sphere-semantic-label.is-selected,
.sphere-semantic-label.is-pinned {
  border-color: rgba(251, 191, 36, .58);
  background: rgba(44, 31, 8, .9);
  color: #fff3ca;
}
.sphere-semantic-label-body { display: grid; gap: .12rem; min-width: 0; }
.sphere-semantic-label.is-interactive .sphere-semantic-label-body { cursor: pointer; touch-action: manipulation; }
.sphere-semantic-label[data-semantic-kind="living-plan"] {
  border-color: rgba(246, 213, 106, .52);
  background: linear-gradient(135deg, rgba(48, 34, 8, .94), rgba(5, 12, 20, .92));
  box-shadow: 0 8px 24px rgba(0,0,0,.34), 0 0 0 1px rgba(246,213,106,.08);
}
.sphere-semantic-label[data-semantic-kind="living-plan"]::before {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: 0 0 .42rem;
  margin-top: .22rem;
  border-radius: 999px;
  background: #f6d56a;
  box-shadow: 0 0 8px rgba(246,213,106,.7);
}
.sphere-semantic-label[data-planner-category="task"]::before { background: #7fd7ff; box-shadow: 0 0 8px rgba(127,215,255,.68); }
.sphere-semantic-label[data-planner-category="reminder"]::before { background: #ff9f80; box-shadow: 0 0 8px rgba(255,159,128,.68); }
.sphere-semantic-label[data-planner-category="project"]::before,
.sphere-semantic-label[data-planner-category="growing"]::before { background: #65d7c5; box-shadow: 0 0 8px rgba(101,215,197,.68); }
.sphere-semantic-label-title { font-size: .72rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sphere-semantic-label-detail { font-size: .62rem; color: rgba(211, 231, 228, .72); white-space: normal; }
.sphere-semantic-label-close {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: currentColor;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.sphere-semantic-label-close:focus-visible { outline: 2px solid #7be0c8; outline-offset: 2px; }
@media (max-width: 620px) {
  .sphere-semantic-label { max-width: min(12.5rem, 54vw); padding: .32rem .36rem .32rem .46rem; }
  .sphere-semantic-label-title { font-size: .68rem; }
  .sphere-semantic-label-detail { font-size: .58rem; }
}

.sphere-instrument-footer {
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem 0.45rem;
}

.sphere-instrument-topline {
  display: grid;
  gap: 0.2rem;
}

.sphere-instrument-topline-primary,
.sphere-live-dot {
  display: block;
  margin: 0;
  line-height: 1.2;
}

.sphere-instrument-footer-line {
  display: block;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.sphere-location-command {
  border: 1px solid rgba(124, 195, 214, 0.25);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(7, 14, 23, 0.72);
}

.sphere-location-state {
  margin: 0 0 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sphere-location-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.sphere-location-inputs {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.sphere-location-coords {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.sphere-location-results {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.sphere-location-result {
  text-align: left;
  border: 1px solid rgba(145, 207, 222, 0.35);
  background: rgba(4, 8, 13, 0.82);
  color: #d8edf4;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
}

.sphere-sensor-matrix {
  display: grid;
  gap: 0.42rem;
  margin: 0.55rem 0 0.75rem;
}

.sphere-sensor-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) 1fr;
  gap: 0.5rem;
  align-items: baseline;
  border: 1px solid rgba(120, 195, 214, 0.24);
  background: rgba(8, 13, 20, 0.7);
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
}

.sphere-sensor-label {
  font-size: 0.78rem;
  color: rgba(212, 229, 236, 0.84);
  letter-spacing: 0.02em;
}

.sphere-sensor-value {
  font-size: 0.9rem;
  color: #eef7fb;
}

.obs-console-head > div > p,
.obs-console-head > div > h2,
.obs-console-head > div > .eyebrow {
  display: block;
  margin-block: 0;
}

@media (max-width: 640px) {
  .sphere-location-actions {
    grid-template-columns: 1fr;
  }
  .sphere-location-coords {
    grid-template-columns: 1fr;
  }
}

/* ── Pattern Core note ───────────────────────────────────────── */
.sphere-core-note {
  font-size: 0.78rem;
  color: var(--fg-3, #8892a8);
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.4rem;
}

@media (min-width: 1024px) {
  .sphere-wrapper {
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
    grid-template-areas:
      "canvas sidebar"
      "legend sidebar";
    gap: 1rem 1.4rem;
  }
  #sphere-container {
    min-height: 520px;
    height: min(72vh, 780px);
    max-height: 780px;
  }
  .sphere-sidebar {
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    padding-right: 0.2rem;
  }
}

/* Broken-resource classes are shared with site.js and intentionally exact so
   failed media can never leave an invisible fixed/sticky obstruction. */
.sphere-broken-resource-hidden { display:none !important; }
.sphere-broken-resource-shell-hidden { display:none !important; }

@media (min-width: 1360px) {
  #sphere-container {
    min-height: 560px;
    height: min(74vh, 860px);
    max-height: 860px;
  }
}

@media (max-width: 640px) {
  .sphere-page {
    padding-inline: 0.8rem;
  }

  .sphere-mode-controls {
    justify-content: center;
  }

  .sphere-controls-bar {
    padding: 0.7rem 0.75rem;
    width: 100%;
  }

  .sphere-environment-bridge {
    width: 100%;
  }

  .sphere-current-status,
  .sphere-state-strip {
    white-space: normal;
    line-height: 1.45;
    border-radius: 1rem;
  }

  .sphere-camera-controls {
    width: 100%;
  }

  .sphere-camera-controls .sphere-cam-label {
    width: 100%;
    text-align: center;
  }

  .sphere-camera-controls .sphere-cam-btn {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
  }

  .sphere-details-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .sphere-detail-nav,
  .sphere-detail-actions {
    grid-template-columns: 1fr;
  }

  .sphere-legend {
    margin-top: 0.1rem;
  }
}


/* 2026-07-30 shared app-state refinements */
.sphere-location-command.has-active-place:not(.is-editing-place) .sphere-location-actions,
.sphere-location-command.has-active-place:not(.is-editing-place) .sphere-location-inputs,
.sphere-location-command.has-active-place:not(.is-editing-place) .sphere-location-results { display:none; }
.sphere-location-change { margin:.35rem 0 .15rem; }
.sphere-location-command.has-active-place { border-color:rgba(80,210,170,.34); }
.sphere-location-command-focus-pulse {
  outline: 2px solid rgba(120, 210, 255, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(120, 210, 255, 0.18);
  transition: outline-color 160ms ease, box-shadow 200ms ease;
}
.sphere-moon-labels { contain:layout paint; }
@media (max-width:620px){
  .sphere-moon-label{font-size:.68rem!important;max-width:7.5rem;overflow:hidden;text-overflow:ellipsis;}
  .sphere-location-actions{grid-template-columns:1fr 1fr;}
  .sphere-location-coords{grid-template-columns:1fr;}
}

/* Temporal Strata — multi-year sphere comparison */
.sphere-temporal-strata-panel{margin-top:1rem;padding:1rem;border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:1rem;background:color-mix(in srgb,var(--surface,#101722) 88%,transparent)}
.sphere-strata-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:.75rem 0}
.sphere-strata-grid label{display:grid;gap:.35rem;font-size:.78rem;letter-spacing:.03em}
.sphere-strata-grid label:last-child{grid-column:1/-1}
#sphere-strata-spacing{width:100%}
@media(max-width:620px){.sphere-strata-grid{grid-template-columns:1fr}.sphere-strata-grid label:last-child{grid-column:auto}}

/* Temporal Strata v1.1 — visual hierarchy + mobile-safe deep time */
.sphere-temporal-strata-panel{
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.sphere-strata-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.45rem .7rem;
  margin:.45rem 0 .65rem;
}
.sphere-strata-detail{
  margin:.2rem 0 .65rem;
  padding:.55rem .65rem;
  border:1px solid rgba(143,183,216,.16);
  border-radius:.7rem;
  background:rgba(143,183,216,.055);
  color:rgba(220,230,240,.72);
  font-size:.76rem;
  line-height:1.45;
}
#sphere-strata-spacing{
  accent-color:#d9ad55;
}
@media(max-width:620px){
  .sphere-strata-options{grid-template-columns:1fr;}
  .sphere-temporal-strata-panel{padding:.85rem;}
}

/* Living Strata v2 — nested temporal onion around the unchanged 13-Moon core */
.sphere-living-onion-panel{
  background:
    radial-gradient(circle at 12% 0%, rgba(78,205,170,.08), transparent 34%),
    color-mix(in srgb,var(--surface,#101722) 90%,transparent);
}
.sphere-strata-intro{
  margin:.35rem 0 .8rem;
  color:rgba(220,230,240,.76);
  font-size:.79rem;
  line-height:1.5;
}
.sphere-strata-master{
  margin:.25rem 0 .7rem;
  padding:.65rem .7rem;
  border:1px solid rgba(84,211,173,.2);
  border-radius:.75rem;
  background:rgba(84,211,173,.045);
}
.sphere-strata-options-3{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#sphere-strata-depth{width:100%;accent-color:#6ad7bd}
.sphere-strata-key{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem .8rem;
  margin:.55rem 0 .7rem;
  color:rgba(220,230,240,.68);
  font-size:.7rem;
}
.sphere-strata-key span{display:inline-flex;align-items:center;gap:.35rem}
.sphere-strata-swatch{
  width:.7rem;
  height:.7rem;
  border-radius:999px;
  display:inline-block;
  border:1px solid rgba(255,255,255,.22);
}
.sphere-strata-swatch.shell{background:#7191aa}
.sphere-strata-swatch.selected{background:#f2c45d}
.sphere-strata-swatch.chronology{background:#65d6bd}
.sphere-strata-swatch.evidence{background:#e8b759}
@media(max-width:620px){
  .sphere-strata-options-3{grid-template-columns:1fr}
  .sphere-strata-key{gap:.35rem .65rem}
}

/* Reality State — past / present / future are distinct epistemic states. */
.sphere-reality-state{
  margin-top:.75rem;
  padding:.8rem;
  border:1px solid color-mix(in srgb,currentColor 13%,transparent);
  border-radius:.9rem;
  background:color-mix(in srgb,var(--surface,#101722) 86%,transparent);
}
.sphere-reality-state-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  margin-bottom:.65rem;
  font-size:.76rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sphere-reality-state-head span{opacity:.65}
.sphere-reality-state-head strong{font-size:.74rem;color:#f1ca72}
.sphere-reality-axis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.45rem;
}
.sphere-reality-axis>span{
  min-width:0;
  padding:.58rem .55rem;
  border:1px solid color-mix(in srgb,currentColor 11%,transparent);
  border-radius:.7rem;
  opacity:.48;
  transition:opacity .18s ease,border-color .18s ease,transform .18s ease,background .18s ease;
}
.sphere-reality-axis>span b,.sphere-reality-axis>span small{display:block}
.sphere-reality-axis>span b{font-size:.78rem;letter-spacing:.04em}
.sphere-reality-axis>span small{margin-top:.18rem;font-size:.62rem;line-height:1.35;opacity:.7}
.sphere-reality-axis>span.is-active{
  opacity:1;
  transform:translateY(-1px);
  border-color:color-mix(in srgb,#f1ca72 48%,transparent);
  background:color-mix(in srgb,#f1ca72 7%,transparent);
}
.sphere-reality-state[data-phase="past"] .sphere-reality-axis>[data-reality-phase="past"]{border-color:color-mix(in srgb,#7191aa 58%,transparent);background:color-mix(in srgb,#7191aa 8%,transparent)}
.sphere-reality-state[data-phase="future"] .sphere-reality-axis>[data-reality-phase="future"]{border-color:color-mix(in srgb,#58b9ac 58%,transparent);background:color-mix(in srgb,#58b9ac 8%,transparent)}
.sphere-reality-note{margin:.65rem 0 0;font-size:.7rem;line-height:1.55;opacity:.72}
.sphere-strata-swatch.future{background:#58b9ac}
.sphere-strata-swatch.corridor{background:#f3cf72;box-shadow:0 0 .4rem color-mix(in srgb,#f3cf72 50%,transparent)}
@media(max-width:620px){
  .sphere-reality-axis{gap:.3rem}
  .sphere-reality-axis>span{padding:.5rem .42rem}
  .sphere-reality-axis>span small{font-size:.58rem}
}

/* Life Atlas Import Center — local-first personal history ingestion */
.life-atlas-import-panel{position:relative;overflow:hidden}.life-atlas-import-panel::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 88% 10%,rgba(93,219,196,.08),transparent 36%)}
.life-atlas-import-safety{margin:.75rem 0;padding:.8rem .9rem;border:1px solid rgba(103,208,191,.22);border-radius:12px;background:rgba(18,58,60,.22);font-size:.78rem;line-height:1.55;color:rgba(226,240,238,.78)}
.life-atlas-import-safety strong{color:#8be0d0}.life-atlas-file-picker{display:flex;flex-direction:column;gap:.45rem;margin:.8rem 0;padding:.9rem;border:1px dashed rgba(122,180,190,.3);border-radius:12px;background:rgba(6,18,27,.45);cursor:pointer}
.life-atlas-file-picker>span{font-weight:700;color:rgba(244,230,187,.92)}.life-atlas-file-picker input{width:100%;font-size:.78rem}.life-atlas-file-picker small{color:rgba(206,218,223,.6);line-height:1.45}
.life-atlas-import-preview{min-height:3rem;margin:.6rem 0}.life-atlas-import-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.life-atlas-import-metrics span,.life-atlas-source-chips span{padding:.58rem .65rem;border:1px solid rgba(109,153,166,.18);border-radius:9px;background:rgba(5,16,24,.52);font-size:.72rem;color:rgba(214,226,230,.72)}
.life-atlas-import-metrics b{display:block;font-size:1rem;color:#e8d393}.life-atlas-source-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem}.life-atlas-import-status{min-height:1.2rem;margin:.55rem 0;font-size:.74rem;color:rgba(215,226,230,.7)}.life-atlas-import-status[data-tone="success"]{color:#80dfc4}.life-atlas-import-status[data-tone="error"]{color:#f0a6a6}.life-atlas-import-status[data-tone="warning"]{color:#e4c982}.life-atlas-import-status[data-tone="working"]{color:#9dcfe0}.life-atlas-import-methods{margin-top:.75rem;font-size:.74rem;color:rgba(208,220,224,.68)}.life-atlas-import-methods summary{cursor:pointer;color:rgba(231,217,177,.85)}
@media (min-width:760px){.life-atlas-import-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
.life-atlas-file-picker.is-dragging{border-color:rgba(126,229,205,.72);background:rgba(20,75,72,.3);box-shadow:0 0 0 2px rgba(126,229,205,.08) inset}
.life-atlas-import-quickkey{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.35rem;margin:.55rem 0 .75rem;color:rgba(206,221,224,.58);font-size:.65rem;letter-spacing:.03em}.life-atlas-import-quickkey span{display:inline-flex;align-items:center;gap:.28rem}.life-atlas-import-quickkey b{display:grid;place-items:center;width:1.2rem;height:1.2rem;border-radius:50%;border:1px solid rgba(116,206,190,.3);color:#89ddcb;font-size:.62rem}.life-atlas-import-quickkey i{font-style:normal;color:rgba(228,204,133,.38)}
.life-atlas-archive-note{margin:.55rem 0 0;padding:.55rem .65rem;border-left:2px solid rgba(108,209,190,.34);background:rgba(6,20,27,.38);font-size:.69rem;line-height:1.45;color:rgba(203,220,222,.66)}
.life-atlas-stage-samples{margin-top:.55rem;padding:.65rem;border:1px solid rgba(109,153,166,.14);border-radius:10px;background:rgba(5,15,23,.42)}.life-atlas-stage-samples p{margin:0 0 .35rem;color:#dccb94;font-size:.67rem;text-transform:uppercase;letter-spacing:.08em}.life-atlas-stage-samples ul{list-style:none;padding:0;margin:0;display:grid;gap:.28rem}.life-atlas-stage-samples li{display:flex;justify-content:space-between;gap:.6rem;padding:.34rem 0;border-top:1px solid rgba(100,135,145,.1);font-size:.69rem;color:rgba(224,231,232,.78)}.life-atlas-stage-samples li:first-child{border-top:0}.life-atlas-stage-samples small{flex:0 0 auto;color:rgba(176,197,201,.54)}

/* ============================================================
   Living Strata Phase IIID — selected temporal membrane
   ============================================================ */

.sphere-strata-year-inspector {
  margin: .8rem 0;
  padding: .8rem;
  border: 1px solid rgba(242, 196, 93, .22);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(242, 196, 93, .055),
      rgba(5, 15, 23, .64) 58%
    );
  box-shadow:
    inset 0 0 22px rgba(242, 196, 93, .025);
}

.sphere-strata-year-inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}

.sphere-strata-year-inspector-head h4 {
  margin: .08rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: rgba(250, 237, 196, .96);
}

.sphere-strata-year-evidence {
  flex: 0 0 auto;
  padding: .24rem .46rem;
  border: 1px solid rgba(113, 229, 197, .22);
  border-radius: 999px;
  color: rgba(178, 229, 214, .88);
  background: rgba(31, 92, 81, .16);
  font-size: .62rem;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.sphere-strata-year-evidence.is-unavailable {
  border-color: rgba(150, 164, 170, .16);
  color: rgba(184, 194, 197, .68);
  background: rgba(85, 94, 98, .1);
}

.sphere-strata-year-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: .48rem .7rem;
  margin: 0;
}

.sphere-strata-year-grid > div {
  min-width: 0;
  padding: .48rem .52rem;
  border: 1px solid rgba(112, 145, 154, .10);
  border-radius: 9px;
  background: rgba(4, 12, 18, .34);
}

.sphere-strata-year-grid dt {
  margin: 0 0 .18rem;
  color: rgba(169, 193, 198, .60);
  font-size: .61rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.sphere-strata-year-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(230, 235, 232, .91);
  font-size: .74rem;
  line-height: 1.35;
}

.sphere-strata-year-note {
  margin: .65rem 0 0;
  color: rgba(188, 204, 205, .65);
  font-size: .68rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .sphere-strata-year-grid {
    grid-template-columns: 1fr;
  }
}



/* B6 — definitive Living Agenda cards + progressive day-number labels. */
.sphere-semantic-label-status {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: .08rem .28rem;
  border-radius: 999px;
  background: rgba(246, 213, 106, .14);
  border: 1px solid rgba(246, 213, 106, .34);
  color: #f6d56a;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .085em;
  line-height: 1.2;
  text-transform: uppercase;
}
.sphere-semantic-label[data-planner-category="task"] .sphere-semantic-label-status { color: #9ee4ff; border-color: rgba(127,215,255,.48); background: rgba(127,215,255,.12); }
.sphere-semantic-label[data-planner-category="reminder"] .sphere-semantic-label-status { color: #ffb39d; border-color: rgba(255,159,128,.48); background: rgba(255,159,128,.12); }
.sphere-semantic-label[data-planner-category="project"] .sphere-semantic-label-status,
.sphere-semantic-label[data-planner-category="growing"] .sphere-semantic-label-status { color: #89e9dc; border-color: rgba(101,215,197,.48); background: rgba(101,215,197,.11); }
.sphere-semantic-label[data-semantic-kind="living-plan"] {
  border-width: 1.5px;
  box-shadow: 0 7px 22px rgba(0,0,0,.42), 0 0 0 1px rgba(246,213,106,.08);
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"] {
  min-width: 1.55rem;
  max-width: 4.8rem;
  padding: .16rem .28rem;
  border-radius: 999px;
  background: rgba(5, 12, 19, .76);
  border-color: rgba(137, 190, 201, .26);
  text-align: center;
  box-shadow: none;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"] .sphere-semantic-label-title {
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
}
/* B7.10 — make the 7-day skeleton of every 28-day Moon read as one
   organized calendar rather than a cloud of equal-weight numerals. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-gate-day="true"] {
  border-color: rgba(154, 215, 226, .5);
  background: rgba(5, 15, 23, .92);
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-gate-day="true"] .sphere-semantic-label-title {
  font-weight: 850;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"] .sphere-semantic-label-detail,
.sphere-semantic-label[data-semantic-kind="pattern-day-number"] .sphere-semantic-label-close {
  display: none !important;
}
.sphere-semantic-leader[data-semantic-kind="living-plan"] {
  stroke-width: 1.65;
  opacity: .92;
}


/* B7 — outer calendar halo: keep human calendar information outside dense sphere geometry. */
.sphere-semantic-label[data-halo-lane="day"] {
  z-index: 4;
  min-width: 1.45rem;
  background: rgba(4, 13, 20, .90);
  border-color: rgba(134, 194, 207, .42);
  box-shadow: 0 0 0 1px rgba(81, 150, 165, .08), 0 4px 12px rgba(0,0,0,.28);
}
.sphere-semantic-label[data-halo-lane="day"].is-selected {
  border-color: rgba(255, 218, 102, .88);
  box-shadow: 0 0 0 2px rgba(255,218,102,.16), 0 0 18px rgba(255,218,102,.16);
}
.sphere-semantic-label[data-halo-lane="agenda"] {
  z-index: 7;
  min-width: 8.75rem;
  max-width: min(14rem, 48vw);
  background: rgba(11, 13, 18, .95);
  border-color: rgba(246, 213, 106, .52);
  box-shadow: 0 8px 24px rgba(0,0,0,.48), 0 0 0 1px rgba(246,213,106,.08);
}
.sphere-semantic-label[data-halo-lane="agenda"] .sphere-semantic-label-status {
  letter-spacing: .11em;
}
.sphere-semantic-leader[data-semantic-kind="living-plan"] {
  stroke-dasharray: 2.2 2.2;
  stroke-linecap: round;
}
@media (max-width: 720px) {
  .sphere-semantic-label[data-halo-lane="agenda"] {
    min-width: 7.25rem;
    max-width: min(11.5rem, 43vw);
  }
  .sphere-semantic-label[data-halo-lane="day"] {
    min-width: 1.35rem;
    padding: .13rem .22rem;
  }
}


/* B7.2 — fixed day rail + quiet agenda annotations. */
.sphere-semantic-label[data-halo-lane="day"] {
  min-width: 1.16rem;
  width: 1.16rem;
  height: 1.16rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(4, 12, 18, .82);
  border-color: rgba(132, 190, 202, .34);
  box-shadow: none;
  pointer-events: none;
}
.sphere-semantic-label[data-halo-lane="day"] .sphere-semantic-label-body { display: block; }
.sphere-semantic-label[data-halo-lane="day"] .sphere-semantic-label-title {
  font-size: .56rem;
  line-height: 1;
  font-weight: 760;
}
.sphere-semantic-label[data-halo-lane="day"].is-selected,
.sphere-semantic-label[data-halo-lane="day"].is-pinned {
  width: 1.32rem;
  height: 1.32rem;
  border-color: rgba(255, 218, 102, .9);
  background: rgba(35, 27, 8, .92);
  box-shadow: 0 0 0 1px rgba(255,218,102,.18), 0 0 10px rgba(255,218,102,.16);
}
.sphere-semantic-label[data-halo-lane="agenda"] {
  min-width: 0;
  max-width: min(9.2rem, 36vw);
  padding: .24rem .32rem .24rem .42rem;
  gap: .24rem;
  border-radius: .5rem;
  background: rgba(8, 11, 16, .91);
  box-shadow: 0 4px 12px rgba(0,0,0,.34);
}
.sphere-semantic-label[data-halo-lane="agenda"]::before {
  width: .3rem; height: .3rem; flex-basis: .3rem; margin-top: .2rem; box-shadow: none;
}
.sphere-semantic-label[data-halo-lane="agenda"] .sphere-semantic-label-title { font-size: .63rem; }
.sphere-semantic-label[data-halo-lane="agenda"] .sphere-semantic-label-status {
  padding: .04rem .2rem;
  font-size: .42rem;
  letter-spacing: .06em;
}
.sphere-semantic-label[data-halo-lane="agenda"]:not(.is-selected):not(.is-pinned) .sphere-semantic-label-detail { display: none !important; }
.sphere-semantic-label[data-halo-lane="agenda"]:not(.is-selected):not(.is-pinned) .sphere-semantic-label-close { display: none; }
@media (max-width: 720px) {
  .sphere-semantic-label[data-halo-lane="agenda"] { max-width: min(8.2rem, 34vw); }
  .sphere-semantic-label[data-halo-lane="day"] { min-width: 1.08rem; width: 1.08rem; height: 1.08rem; }
  .sphere-semantic-label[data-halo-lane="day"] .sphere-semantic-label-title { font-size: .52rem; }
}


/* B7.6 — canonical fixed day rail. Numbers are labels, never pills/cards. */
.sphere-semantic-label[data-quiet-rail="true"] {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: rgba(218, 236, 240, .76);
  pointer-events: none !important;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.98), 0 0 3px rgba(7,17,24,.88);
  will-change: left, top;
}
.sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-body { display: block !important; }
.sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-status,
.sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-detail,
.sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-close { display: none !important; }
.sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-title {
  display: block !important;
  font-size: .50rem !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  letter-spacing: -.015em;
  overflow: visible !important;
  text-overflow: clip !important;
}
.sphere-semantic-label[data-quiet-rail="true"][data-gate-day="true"] { color: rgba(237, 247, 249, .92); }
.sphere-semantic-label[data-quiet-rail="true"].is-selected,
.sphere-semantic-label[data-quiet-rail="true"].is-pinned {
  color: #ffe38a !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.98), 0 0 7px rgba(255,218,102,.58);
}
.sphere-semantic-label[data-intercalary="true"] {
  color: #ffd080 !important;
}
.sphere-semantic-label[data-intercalary="true"] .sphere-semantic-label-title {
  font-size: .52rem !important;
  font-weight: 850 !important;
  letter-spacing: .01em;
}
.sphere-semantic-label[data-leap-intercalary="true"] { color: #c9b8ff !important; }
@media (max-width: 720px) {
  .sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-title { font-size: .46rem !important; }
  .sphere-semantic-label[data-intercalary="true"] .sphere-semantic-label-title { font-size: .49rem !important; }
}


/* B7.7 — definitive Moon sectors + responsive rail numerals. */
.sphere-moon-label {
  font-weight: 650;
  border-color: rgba(122, 211, 196, .28);
  background: rgba(4, 11, 18, .72);
}
.sphere-moon-label::before {
  content: "";
  display: inline-block;
  width: .28rem;
  height: .28rem;
  margin-right: .28rem;
  border-radius: 50%;
  background: rgba(125, 220, 201, .72);
  box-shadow: 0 0 6px rgba(125, 220, 201, .30);
  vertical-align: .06rem;
}
.sphere-moon-label.is-selected::before {
  background: #ffe27a;
  box-shadow: 0 0 8px rgba(255, 226, 122, .56);
}
.sphere-semantic-label[data-quiet-rail="true"] {
  z-index: 6;
}
@media (max-width: 720px) {
  .sphere-moon-label {
    font-size: .60rem !important;
    padding: .13rem .34rem;
  }
  .sphere-semantic-label[data-quiet-rail="true"] .sphere-semantic-label-title {
    font-size: .54rem !important;
  }
}


/* B7.8 — readable day numerals + compact astronomy annotations on phones. */
@media (max-width: 720px) {
  .sphere-semantic-label[data-semantic-kind="lunar"],
  .sphere-semantic-label[data-semantic-kind="solar"] {
    max-width: min(7.4rem, 31vw);
    padding: .20rem .28rem;
    border-radius: .46rem;
  }
  .sphere-semantic-label[data-semantic-kind="lunar"] .sphere-semantic-label-title,
  .sphere-semantic-label[data-semantic-kind="solar"] .sphere-semantic-label-title {
    font-size: .60rem;
  }
  .sphere-semantic-label[data-semantic-kind="lunar"] .sphere-semantic-label-detail,
  .sphere-semantic-label[data-semantic-kind="solar"] .sphere-semantic-label-detail {
    display: none !important;
  }
  .sphere-semantic-label[data-semantic-kind="lunar"] .sphere-semantic-label-close,
  .sphere-semantic-label[data-semantic-kind="solar"] .sphere-semantic-label-close {
    width: 1.15rem;
    height: 1.15rem;
    font-size: .70rem;
  }
}


/* B7.11 — 4-week × 7-day Moon calendar faces. */
.sphere-semantic-label[data-calendar-face="true"] {
  z-index: 8;
  font-variant-numeric: tabular-nums;
}
.sphere-semantic-label[data-calendar-face="true"] .sphere-semantic-label-title {
  min-width: .72rem;
  text-align: center;
}
.sphere-semantic-label[data-calendar-face="true"].is-selected,
.sphere-semantic-label[data-calendar-face="true"].is-pinned {
  z-index: 12;
}
@media (max-width: 720px) {
  .sphere-semantic-label[data-calendar-face="true"] .sphere-semantic-label-title {
    font-size: .50rem !important;
    min-width: .62rem;
  }
}

/* B7.13 — structural calendar rail. Day numerals are annotations on top of
   permanent 13 × 28 × 4-week geometry; Year Gate days are named, not numbered
   as ordinary Pattern days. */
.sphere-semantic-label[data-semantic-kind="intercalary-day-number"] {
  color: #ffd56f !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.98), 0 0 8px rgba(255,208,96,.42);
}
.sphere-semantic-label[data-semantic-kind="intercalary-day-number"] .sphere-semantic-label-title {
  font-size: .56rem !important;
  white-space: nowrap;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
  font-size: .58rem !important;
  font-weight: 760 !important;
}
@media (max-width: 720px) {
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"] .sphere-semantic-label-title {
    font-size: .47rem !important;
  }
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
    font-size: .52rem !important;
  }
  .sphere-semantic-label[data-semantic-kind="intercalary-day-number"] .sphere-semantic-label-title {
    font-size: .50rem !important;
  }
}

/* B7.14 explicit planner action: inspecting a plan never opens the editor. */
.sphere-semantic-label-action {
  appearance: none;
  border: 1px solid rgba(236, 194, 91, .58);
  border-radius: 999px;
  background: rgba(35, 28, 12, .92);
  color: #f2ce72;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  padding: .38rem .58rem;
  margin-inline-start: .3rem;
  cursor: pointer;
}


/* B7.15 — 13 × 4 × 7 polar calendar matrix. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 8;
  min-width: 1.15rem !important;
  min-height: 1.15rem !important;
  display: grid !important;
  place-items: center;
  border-radius: 999px !important;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-body {
  width: 100%;
  height: 100%;
  display: grid !important;
  place-items: center;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
  font-size: .50rem !important;
  font-weight: 720 !important;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"]:active,
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"]:focus-visible {
  color: #ffe38a !important;
  text-shadow: 0 0 7px rgba(255,218,102,.72);
  outline: 1px solid rgba(255,218,102,.72);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
    min-width: 1.02rem !important;
    min-height: 1.02rem !important;
  }
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
    font-size: .46rem !important;
  }
}

/* B7.16 — every visible day is a robust touch target, and scheduled days
   advertise occupancy without replacing the day numeral. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
  min-width: 1.20rem !important;
  min-height: 1.20rem !important;
  isolation: isolate;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"][data-has-schedule="true"]::after {
  content: attr(data-schedule-count);
  position: absolute;
  inset-inline-end: -.26rem;
  inset-block-start: -.28rem;
  min-width: .72rem;
  height: .72rem;
  padding: 0 .12rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 20, 28, .96);
  border: 1px solid rgba(247, 205, 91, .88);
  color: #ffe08a;
  font-size: .43rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,.65), 0 0 7px rgba(247,205,91,.34);
  pointer-events: none;
  z-index: 2;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"][data-has-schedule="true"] {
  box-shadow: inset 0 0 0 1px rgba(247,205,91,.30), 0 0 5px rgba(247,205,91,.16);
}
@media (max-width: 720px) {
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
    min-width: 1.10rem !important;
    min-height: 1.10rem !important;
  }
}


/* B7.17 — semantic occlusion + calendar label hierarchy.
   Calendar numerals are the lowest DOM annotation layer. Moon names, selected
   cards and scheduled-item cards are opaque enough to occlude numerals below
   them, so dates never print through information panels. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
  z-index: 3 !important;
  background: rgba(3, 10, 16, .84) !important;
  border: 1px solid rgba(112, 170, 181, .20) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.38) !important;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"][data-depth-side="far"] {
  filter: saturate(.72);
}
.sphere-moon-label {
  z-index: 9 !important;
  background: rgba(3, 11, 17, .96) !important;
  border-color: rgba(119, 208, 194, .42) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.36), 0 0 0 1px rgba(68,130,124,.10);
  backdrop-filter: blur(3px);
}
.sphere-semantic-label:not([data-semantic-kind="pattern-day-number"]):not([data-semantic-kind="intercalary-day-number"]) {
  z-index: 12 !important;
  background-color: rgba(7, 10, 15, .975) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.56), 0 0 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(5px);
}
.sphere-semantic-label.is-selected:not([data-semantic-kind="pattern-day-number"]),
.sphere-semantic-label.is-pinned:not([data-semantic-kind="pattern-day-number"]) {
  z-index: 15 !important;
  background-color: rgba(12, 13, 17, .99) !important;
}
.sphere-semantic-label[data-semantic-kind="living-plan"] {
  z-index: 16 !important;
  background: rgba(12, 13, 17, .99) !important;
}
.sphere-semantic-leader-layer { z-index: 10 !important; }
.sphere-semantic-label-layer { z-index: 11 !important; }

/* Selected/scheduled calendar cells remain obvious without making all 364
   numerals equally loud. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"].is-selected,
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"].is-pinned {
  z-index: 6 !important;
  background: rgba(41, 31, 8, .96) !important;
  border-color: rgba(255, 222, 116, .86) !important;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"][data-has-schedule="true"] {
  z-index: 5 !important;
  background: rgba(16, 18, 23, .94) !important;
  border-color: rgba(247, 205, 91, .58) !important;
}
@media (max-width: 720px) {
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
    min-width: 1.14rem !important;
    min-height: 1.14rem !important;
  }
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
    font-size: .49rem !important;
  }
}


/* B7.19 — strict visual layer order. Calendar numerals are part of the
   instrument face, never foreground cards. Moon labels and semantic cards must
   occlude day text completely instead of allowing digits to print through. */
.sphere-semantic-label[data-quiet-rail="true"] {
  z-index: 2 !important;
}
.sphere-moon-label {
  z-index: 5 !important;
  background: rgba(4, 11, 18, .94) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.42);
}
.sphere-semantic-label:not([data-quiet-rail="true"]) {
  z-index: 6;
}
.sphere-semantic-label[data-halo-lane="agenda"],
.sphere-semantic-label.is-selected,
.sphere-semantic-label.is-pinned {
  z-index: 8 !important;
  background-color: rgba(7, 10, 15, .975);
}

/* B7.20 — camera-local numeral reveal. Day labels are ephemeral instrument
   annotations: they fade as their Moon leaves the camera focus cone instead of
   remaining as stale touch pills. The selected day may remain as one anchor. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"],
.sphere-semantic-label[data-semantic-kind="intercalary-day-number"] {
  transition: opacity 150ms ease-out, filter 150ms ease-out !important;
  will-change: opacity;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"].is-dissipating,
.sphere-semantic-label[data-semantic-kind="intercalary-day-number"].is-dissipating {
  opacity: 0 !important;
  pointer-events: none !important;
  filter: saturate(.55) brightness(.74);
}

/* B7.22 — persistent Pattern Moon identities + progressive disclosure.
   Every Moon sector keeps one small numbered lunar disc visible. Labels expand
   only as their sector approaches the camera, preserving the clean day reveal. */
.sphere-moon-label {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  min-width: 0;
  max-width: 11.5rem;
  padding: .24rem .46rem .24rem .28rem;
  border-radius: .72rem;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 160ms ease, transform 160ms ease, max-width 180ms ease, background-color 160ms ease;
}
.sphere-moon-label::before { display: none !important; }
.sphere-moon-label .sphere-moon-icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.26rem;
  height: 1.26rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(224, 248, 241, .96);
  background:
    radial-gradient(circle at 34% 34%, rgba(231,255,248,.36), transparent 36%),
    rgba(88, 170, 158, .24);
  border: 1px solid rgba(143, 231, 216, .62);
  box-shadow: inset -.28rem 0 .3rem rgba(2,8,13,.62), 0 0 .48rem rgba(102,211,193,.18);
}
.sphere-moon-label .sphere-moon-icon-number {
  position: relative;
  z-index: 1;
  font-size: .54rem;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.95);
}
.sphere-moon-label .sphere-moon-copy {
  min-width: 0;
  display: grid;
  gap: .02rem;
}
.sphere-moon-label .sphere-moon-title {
  font-size: .62rem;
  line-height: 1.05;
  font-weight: 760;
  white-space: nowrap;
}
.sphere-moon-label .sphere-moon-name {
  color: rgba(230, 244, 239, .94);
  font-size: .56rem;
  line-height: 1.08;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sphere-moon-label .sphere-moon-meta {
  color: rgba(164, 196, 190, .9);
  font-size: .47rem;
  line-height: 1.05;
  white-space: nowrap;
}
.sphere-moon-label.is-compact {
  width: 1.58rem;
  height: 1.58rem;
  min-width: 1.58rem;
  max-width: 1.58rem;
  padding: .15rem;
  border-radius: 50%;
  justify-content: center;
  background: rgba(4, 11, 18, .82) !important;
  border-color: rgba(119, 208, 194, .32) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.44) !important;
}
.sphere-moon-label.is-compact .sphere-moon-icon {
  width: 1.16rem;
  height: 1.16rem;
}
.sphere-moon-label.is-compact .sphere-moon-copy { display: none; }
.sphere-moon-label.is-expanded {
  background: rgba(3, 11, 17, .975) !important;
  border-color: rgba(119, 208, 194, .5) !important;
}
.sphere-moon-label.is-selected .sphere-moon-icon {
  color: #fff2b8;
  border-color: rgba(255, 224, 112, .92);
  background: rgba(151, 111, 23, .34);
  box-shadow: inset -.28rem 0 .3rem rgba(20,12,0,.48), 0 0 .64rem rgba(255,220,101,.42);
}
.sphere-moon-label.is-selected .sphere-moon-name { color: #fff0ba; }
@media (max-width: 720px) {
  .sphere-moon-label.is-expanded {
    max-width: 9.6rem;
    padding: .22rem .38rem .22rem .24rem;
  }
  .sphere-moon-label .sphere-moon-title { font-size: .58rem; }
  .sphere-moon-label .sphere-moon-name { font-size: .52rem; }
  .sphere-moon-label .sphere-moon-meta { font-size: .44rem; }
}


/* B7.23 — calmer label surface. Keep labels crisp without letting every
   annotation compete at full visual weight. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"] {
  box-shadow: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.92);
}
.sphere-moon-label.is-compact:not(.is-selected):not(.is-front) {
  opacity: .72 !important;
  transform: translateZ(0) scale(.92) !important;
}
.sphere-moon-label.is-expanded {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sphere-semantic-label:not([data-quiet-rail="true"]):not(.is-selected):not(.is-pinned) {
  max-width: min(12.5rem, 42vw);
}
@media (max-width: 720px) {
  .sphere-semantic-label:not([data-quiet-rail="true"]):not(.is-selected):not(.is-pinned) {
    max-width: 9.75rem;
  }
}

/* B7.31 — release-candidate everyday calendar controls + data safety */
.sphere-everyday-toolbar,
.sphere-data-safety {
  margin: .7rem 0;
  border: 1px solid rgba(126, 220, 191, .2);
  border-radius: 16px;
  background: rgba(8, 18, 24, .72);
}
.sphere-everyday-toolbar { padding: .7rem; }
.sphere-step-nav,
.sphere-emphasis-modes,
.sphere-data-safety-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.sphere-step-nav button,
.sphere-emphasis-modes button,
.sphere-data-safety button {
  min-height: 40px;
  border: 1px solid rgba(154, 211, 222, .24);
  border-radius: 11px;
  background: rgba(16, 31, 39, .88);
  color: inherit;
  padding: .48rem .72rem;
  font: inherit;
}
.sphere-step-nav button { flex: 1 1 auto; }
.sphere-emphasis-modes { margin-top: .55rem; }
.sphere-emphasis-label {
  color: rgba(220, 235, 238, .68);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sphere-emphasis-modes button.is-active,
.sphere-emphasis-modes button[aria-pressed="true"] {
  border-color: rgba(244, 215, 112, .62);
  background: rgba(80, 63, 22, .42);
  color: #fff0b2;
}
.sphere-emphasis-status {
  margin: .5rem 0 0;
  color: rgba(220, 235, 238, .68);
  font-size: .83rem;
}
.sphere-data-safety > summary {
  cursor: pointer;
  padding: .72rem .85rem;
  font-weight: 700;
}
.sphere-data-safety-body { padding: 0 .85rem .85rem; }
.sphere-data-safety-body p { margin: .45rem 0; }
.sphere-backup-reminder { color: #ffd98c; }
.sphere-backup-mode { display: grid; gap: .3rem; margin-top: .65rem; }
.sphere-backup-mode select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(154, 211, 222, .24);
  background: rgba(6, 13, 18, .95);
  color: inherit;
  padding: .45rem .55rem;
}
.sphere-data-safety-note {
  color: rgba(220, 235, 238, .64);
  font-size: .8rem;
}
@media (max-width: 560px) {
  .sphere-step-nav button { flex-basis: calc(33.333% - .45rem); }
  .sphere-emphasis-modes button { flex: 1 1 calc(50% - .45rem); }
  .sphere-emphasis-label { flex-basis: 100%; }
}


/* B7.33 — schedule navigator + explicit inspect/edit hierarchy */
.sphere-schedule-navigator {
  margin: .7rem 0;
  padding: .7rem;
  border: 1px solid rgba(102, 213, 185, .2);
  border-radius: 16px;
  background: rgba(7, 17, 23, .78);
}
.sphere-schedule-nav-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: stretch;
}
.sphere-schedule-nav-row > button,
.sphere-schedule-nav-actions > button {
  min-height: 42px;
  border: 1px solid rgba(154, 211, 222, .24);
  border-radius: 11px;
  background: rgba(16, 31, 39, .9);
  color: inherit;
  padding: .48rem .7rem;
  font: inherit;
}
.sphere-schedule-nav-row > button:disabled { opacity: .42; }
.sphere-schedule-summary {
  min-width: 0;
  display: grid;
  gap: .12rem;
  text-align: left;
}
.sphere-schedule-summary-kicker {
  color: rgba(120, 226, 196, .8);
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sphere-schedule-summary strong,
.sphere-schedule-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sphere-schedule-summary small { color: rgba(220,235,238,.66); }
.sphere-schedule-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .5rem;
}
.sphere-schedule-nav-actions span {
  color: rgba(220,235,238,.66);
  font-size: .78rem;
  text-align: right;
}
.sphere-semantic-label-edit {
  align-self: center;
  min-height: 30px;
  border: 1px solid rgba(244, 215, 112, .42);
  border-radius: 9px;
  background: rgba(65, 49, 17, .78);
  color: #ffe9a6;
  padding: .25rem .55rem;
  font: inherit;
  font-size: .74rem;
  cursor: pointer;
}
@media (max-width: 560px) {
  .sphere-schedule-nav-row { grid-template-columns: 1fr 1fr; }
  .sphere-schedule-summary { grid-column: 1 / -1; grid-row: 1; }
  #sphere-schedule-prev { grid-column: 1; }
  #sphere-schedule-next { grid-column: 2; }
  .sphere-schedule-nav-actions { align-items: flex-start; }
}


/* B7.36 — gesture fast path: preserve geometry but remove costly DOM
   compositing while the camera is actively moving. Labels return after the
   90ms settle pass. */
.is-camera-gesture-active .sphere-semantic-label,
.is-camera-gesture-active .living-time-sphere-moon-label {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}



/* B7.38 — camera-local schedule summaries. These are intentionally lighter
   than full planner cards so they can follow Moon-to-Moon rotation smoothly. */
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] {
  max-width: min(9.5rem, 38vw);
  padding: .24rem .32rem;
  border-color: rgba(101, 215, 197, .30);
  background: rgba(7, 15, 22, .90);
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
}
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] .sphere-semantic-label-title {
  font-size: .62rem;
}
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] .sphere-semantic-label-status {
  font-size: .54rem;
  padding: .08rem .24rem;
}
.sphere-semantic-label[data-semantic-kind="living-plan-summary"]:not(.is-selected) .sphere-semantic-label-detail,
.sphere-semantic-label[data-semantic-kind="living-plan-summary"]:not(.is-selected) .sphere-semantic-label-close,
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] .sphere-semantic-label-edit {
  display: none !important;
}
.sphere-instrument-shell.is-camera-gesture-active .sphere-semantic-label[data-semantic-kind="living-plan-summary"] {
  transition: opacity 70ms linear, transform 70ms linear;
}

/* === B7.41 INSTRUMENT POLISH START === */

/*
 * Keep projected calendar information physically inside the instrument.
 * We hide at the viewport edge rather than moving canonical calendar cells.
 */
.sphere-semantic-label-layer {
  overflow: hidden;
  contain: paint;
}

/*
 * Pattern days become engraved instrument numerals.
 * Geometry remains authoritative; this is presentation only.
 */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-quiet-rail="true"] {
  color: rgba(218, 237, 240, .84) !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .98),
    0 0 4px rgba(67, 157, 169, .22) !important;
}

.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-quiet-rail="true"]
.sphere-semantic-label-title {
  min-width: 1.02rem;
  padding: .075rem .11rem;
  border: 1px solid rgba(125, 189, 197, .16);
  border-radius: .28rem;
  background:
    linear-gradient(
      180deg,
      rgba(13, 28, 35, .56),
      rgba(5, 12, 18, .24)
    );
  color: inherit;
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  font-size: .52rem !important;
  font-weight: 790 !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow:
    inset 0 1px 0 rgba(221, 247, 247, .045),
    0 1px 2px rgba(0, 0, 0, .32);
}

/* 1 · 7 · 14 · 21 · 28 establish the four-week skeleton. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-gate-day="true"]
.sphere-semantic-label-title {
  color: rgba(226, 250, 247, .97);
  border-color: rgba(116, 220, 207, .34);
  background:
    linear-gradient(
      180deg,
      rgba(14, 43, 45, .76),
      rgba(5, 17, 22, .45)
    );
  font-weight: 900 !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,.96),
    0 0 5px rgba(96,216,201,.24);
}

/* Scheduled days receive a quiet warm trace. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-schedule-count]
.sphere-semantic-label-title {
  border-color: rgba(244, 202, 93, .38);
  box-shadow:
    inset 0 -2px 0 rgba(244, 202, 93, .34),
    0 1px 2px rgba(0,0,0,.34);
}

/* Selected day remains the strongest calendar numeral. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"].is-selected
.sphere-semantic-label-title,
.sphere-semantic-label[data-semantic-kind="pattern-day-number"].is-pinned
.sphere-semantic-label-title {
  color: #ffe792 !important;
  border-color: rgba(255, 220, 105, .74);
  background:
    linear-gradient(
      180deg,
      rgba(67, 50, 12, .88),
      rgba(26, 19, 4, .62)
    );
  text-shadow:
    0 1px 2px rgba(0,0,0,.98),
    0 0 7px rgba(255,218,102,.46) !important;
}

/*
 * Astronomy text annotations stay secondary to the calendar.
 * The actual 3D glyph/halo size is reduced in the renderer above.
 */
.sphere-semantic-label[data-semantic-kind="planet"],
.sphere-semantic-label[data-semantic-kind="astronomy"],
.sphere-semantic-label[data-semantic-kind="lunar"],
.sphere-semantic-label[data-semantic-kind="solar"] {
  max-width: min(7.2rem, 32vw);
  padding: .18rem .28rem;
  border-radius: .48rem;
}

.sphere-semantic-label[data-semantic-kind="planet"] .sphere-semantic-label-title,
.sphere-semantic-label[data-semantic-kind="astronomy"] .sphere-semantic-label-title,
.sphere-semantic-label[data-semantic-kind="lunar"] .sphere-semantic-label-title,
.sphere-semantic-label[data-semantic-kind="solar"] .sphere-semantic-label-title {
  font-size: .60rem;
}

.sphere-semantic-label[data-semantic-kind="planet"] .sphere-semantic-label-close,
.sphere-semantic-label[data-semantic-kind="astronomy"] .sphere-semantic-label-close,
.sphere-semantic-label[data-semantic-kind="lunar"] .sphere-semantic-label-close,
.sphere-semantic-label[data-semantic-kind="solar"] .sphere-semantic-label-close {
  width: 1.08rem;
  height: 1.08rem;
  flex-basis: 1.08rem;
  font-size: .66rem;
}

/*
 * Gesture mode: preserve information but remove expensive paint effects
 * while the finger is actively moving the instrument.
 */
.is-camera-gesture-active .sphere-moon-label,
.is-camera-gesture-active .sphere-semantic-label {
  transition: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.is-camera-gesture-active .sphere-semantic-leader-layer {
  opacity: 0 !important;
}

/* Slightly tighter phone typography without making days unreadable. */
@media (max-width: 720px) {
  .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-quiet-rail="true"]
  .sphere-semantic-label-title {
    min-width: .92rem;
    padding: .06rem .085rem;
    font-size: .48rem !important;
  }

  .sphere-semantic-label[data-semantic-kind="planet"],
  .sphere-semantic-label[data-semantic-kind="astronomy"],
  .sphere-semantic-label[data-semantic-kind="lunar"],
  .sphere-semantic-label[data-semantic-kind="solar"] {
    max-width: min(6.7rem, 29vw);
  }
}

/* === B7.41 INSTRUMENT POLISH END === */

/* === B7.42 TEMPORAL GLIDE START === */

/*
 * Calendar numerals are luminous instrument markings.
 * Keep the glow light enough that 30–50 visible numbers do not turn
 * the calendar into a neon cloud.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-quiet-rail="true"] {
  color: rgba(224, 244, 245, .91) !important;

  text-shadow:
    0 0 3px rgba(128, 226, 226, .42),
    0 1px 2px rgba(0, 0, 0, .98) !important;

  transition:
    opacity 260ms cubic-bezier(.2,.72,.2,1),
    color 220ms ease,
    text-shadow 220ms ease !important;
}

/*
 * Small etched/glass dial around each numeral.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-quiet-rail="true"]
.sphere-semantic-label-title {
  border-color:
    rgba(132, 215, 213, .22) !important;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(85, 196, 195, .12),
      rgba(5, 14, 20, .54) 72%
    ) !important;

  box-shadow:
    inset 0 0 4px rgba(112, 222, 218, .08),
    0 0 3px rgba(90, 192, 193, .10) !important;
}

/*
 * The 7-day skeleton glows just a little brighter.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-gate-day="true"]
.sphere-semantic-label-title {
  color: rgba(239, 255, 251, .98) !important;

  border-color:
    rgba(111, 232, 216, .44) !important;

  text-shadow:
    0 0 4px rgba(108, 236, 218, .48),
    0 1px 2px rgba(0,0,0,.98) !important;

  box-shadow:
    inset 0 0 5px rgba(93, 225, 209, .12),
    0 0 4px rgba(91, 210, 202, .14) !important;
}

/*
 * Scheduled days get a restrained amber underside rather than
 * another floating bubble.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-schedule-count]
.sphere-semantic-label-title {
  color: rgba(255, 238, 180, .98) !important;

  border-color:
    rgba(247, 205, 91, .48) !important;

  text-shadow:
    0 0 4px rgba(247,205,91,.36),
    0 1px 2px rgba(0,0,0,.98) !important;
}

/*
 * Selected day is unmistakable but still part of the same dial.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-selected
.sphere-semantic-label-title,

.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-pinned
.sphere-semantic-label-title {
  color: #fff0a8 !important;

  border-color:
    rgba(255, 224, 118, .88) !important;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 219, 93, .25),
      rgba(38, 27, 5, .76) 72%
    ) !important;

  text-shadow:
    0 0 5px rgba(255,221,108,.72),
    0 1px 2px rgba(0,0,0,.99) !important;

  box-shadow:
    inset 0 0 6px rgba(255,224,116,.16),
    0 0 5px rgba(255,214,81,.22) !important;
}

/*
 * A disappearing Moon should dissolve rather than blink.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-dissipating,

.sphere-semantic-label[
  data-semantic-kind="intercalary-day-number"
].is-dissipating {
  opacity: 0 !important;

  filter:
    saturate(.72)
    brightness(.80);

  pointer-events: none !important;
}

/*
 * Inspection cards are foreground surfaces.
 * Their background must be opaque enough that calendar numbers never
 * visually print through a selected-day/event card.
 */
.sphere-semantic-label:not(
  [data-semantic-kind="pattern-day-number"]
):not(
  [data-semantic-kind="intercalary-day-number"]
) {
  background-color:
    rgba(5, 9, 14, .985) !important;

  isolation: isolate;

  box-shadow:
    0 9px 28px rgba(0,0,0,.68),
    0 0 0 1px rgba(255,255,255,.04) !important;
}

/*
 * Interaction is intentionally cheaper:
 * retain the luminous numerals, but don't animate expensive card shadows.
 */
.is-camera-gesture-active
.sphere-semantic-label:not(
  [data-semantic-kind="pattern-day-number"]
) {
  box-shadow: none !important;
}

/* === B7.42 TEMPORAL GLIDE END === */

/* === B7.43 GLIDE HIERARCHY START === */

/*
 * One visual field, three-Moon aperture.
 * Center is the readable calendar.
 * Neighbors are temporal context.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-glide-role="center"] {
  opacity: .98 !important;
}

.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-glide-role="neighbor"] {
  opacity: .61 !important;
  filter: saturate(.82) brightness(.90);
}

/*
 * Neighbor dates remain luminous, but with a smaller halo.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-glide-role="neighbor"]
.sphere-semantic-label-title {
  border-color:
    rgba(120, 197, 198, .14) !important;

  text-shadow:
    0 0 2px rgba(113, 213, 211, .24),
    0 1px 2px rgba(0,0,0,.98) !important;

  box-shadow:
    inset 0 0 3px rgba(99, 205, 201, .045)
    !important;
}

/*
 * Center calendar gets the soft instrument glow.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-glide-role="center"]
.sphere-semantic-label-title {
  color: rgba(229, 249, 248, .96) !important;

  text-shadow:
    0 0 4px rgba(117, 229, 222, .46),
    0 1px 2px rgba(0,0,0,.99) !important;

  box-shadow:
    inset 0 0 5px rgba(110, 222, 216, .09),
    0 0 3px rgba(83, 197, 194, .10)
    !important;
}

/*
 * Selected and scheduled states override aperture dimming.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-selected,

.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-pinned,

.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-schedule-count] {
  opacity: 1 !important;
  filter: none !important;
}

/*
 * Glide, don't blink.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
] {
  transition:
    opacity 280ms cubic-bezier(.22,.72,.18,1),
    filter 280ms ease,
    color 220ms ease !important;
}

/*
 * A Moon identity should always outrank its underlying day coordinates.
 */
.sphere-moon-label {
  z-index: 14 !important;
}

/*
 * Selected-day/plan cards are foreground glass, never translucent overlays.
 */
.sphere-semantic-label:not(
  [data-semantic-kind="pattern-day-number"]
):not(
  [data-semantic-kind="intercalary-day-number"]
) {
  background:
    linear-gradient(
      150deg,
      rgba(7, 11, 16, .995),
      rgba(4, 8, 13, .992)
    ) !important;

  backdrop-filter: none !important;

  box-shadow:
    0 10px 28px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.045)
    !important;
}

/* === B7.43 GLIDE HIERARCHY END === */




/* === B7.48 HIGH-PERFORMANCE SYMBOL FIELD START === */
/* The large scheduled glyph is now drawn by one GPU atlas field. Day numerals
   retain schedule metadata for accessibility but never draw a duplicate glyph. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-plan-symbol]::after {
  content: none !important;
  display: none !important;
}

/* Gesture fast path: keep the calendar readable while stripping paint work that
   adds no information during motion. Full visual polish returns on settle. */
.is-camera-gesture-active
.sphere-semantic-label[data-semantic-kind="pattern-day-number"] {
  filter: none !important;
  transition: none !important;
}
.is-camera-gesture-active
.sphere-semantic-label[data-semantic-kind="pattern-day-number"]
.sphere-semantic-label-title {
  background: rgba(4, 12, 18, .66) !important;
  box-shadow: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.98) !important;
  transition: none !important;
}
/* === B7.48 HIGH-PERFORMANCE SYMBOL FIELD END === */

/* === B7.52 WHOLE-INSTRUMENT PERFORMANCE + CONTAINMENT START === */
/*
 * The projected label field now lives inside .sphere-instrument-shell. Keep it
 * paint-contained so calendar/date cards cannot spill into Camera controls or
 * the Legend, and so label repaints do not invalidate the surrounding page.
 */
.sphere-instrument-shell > .sphere-moon-labels {
  inset: 0;
  overflow: hidden;
  contain: layout paint style;
  isolation: isolate;
}

/* Phone GPUs pay heavily for backdrop-filter on several moving pills. The
 * opaque instrument backgrounds already provide enough separation, so coarse
 * pointers use a zero-blur paint path without changing hierarchy or content. */
@media (pointer: coarse), (max-width: 720px) {
  .sphere-moon-label,
  .sphere-semantic-label,
  .sphere-semantic-label:not([data-semantic-kind="pattern-day-number"]) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .sphere-moon-label {
    box-shadow: none;
  }

  .sphere-moon-label.is-selected {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .10) !important;
  }

  /* Below-fold Observatory panels should not participate in the first layout
     pass on phones. Browser intrinsic sizing preserves scroll geometry. */
  .sphere-sidebar-section,
  .sphere-temporal-strata-panel,
  .life-atlas-import-panel {
    content-visibility: auto;
    contain-intrinsic-size: auto 240px;
  }
}
/* === B7.52 WHOLE-INSTRUMENT PERFORMANCE + CONTAINMENT END === */

/* === B7.53 LUNAR REFINEMENT START === */
@media (pointer: coarse), (max-width: 720px) {
  .living-time-sphere-page .sphere-moon-label {
    padding: .18rem .34rem .18rem .22rem;
    gap: .26rem;
    border-radius: .62rem;
  }

  .living-time-sphere-page .sphere-moon-label.is-expanded {
    max-width: 8.35rem;
  }

  .living-time-sphere-page .sphere-moon-label .sphere-moon-title { font-size: .54rem; }
  .living-time-sphere-page .sphere-moon-label .sphere-moon-name { font-size: .49rem; }
  .living-time-sphere-page .sphere-moon-label .sphere-moon-meta { font-size: .41rem; }

  .living-time-sphere-page .sphere-moon-label.is-compact {
    width: 1.34rem;
    height: 1.34rem;
    min-width: 1.34rem;
    max-width: 1.34rem;
    padding: .10rem;
    opacity: .66 !important;
  }

  .living-time-sphere-page .sphere-moon-label.is-compact .sphere-moon-icon {
    width: 1.02rem;
    height: 1.02rem;
  }
}
/* === B7.53 LUNAR REFINEMENT END === */


/* === B7.54 CLEAN CALENDAR RAIL START === */
/*
 * Ordinary Pattern dates are engraved numerals, not 28 separate pills.
 * Week anchors, scheduled dates and the selected date retain instrument dials.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-quiet-rail="true"]
.sphere-semantic-label-title {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: .025rem .035rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(218, 239, 239, .86) !important;
  font-size: .46rem !important;
  font-weight: 720 !important;
  letter-spacing: -.025em !important;
  line-height: 1 !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,.98),
    0 0 2px rgba(91,193,190,.20) !important;
}

.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-glide-role="center"]
.sphere-semantic-label-title {
  color: rgba(232,249,247,.96) !important;
  font-size: .49rem !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,.99),
    0 0 3px rgba(104,214,207,.28) !important;
}

.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-glide-role="neighbor"]
.sphere-semantic-label-title {
  color: rgba(190,215,217,.68) !important;
  font-size: .42rem !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,.98) !important;
}

/* Week skeleton. */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-gate-day="true"]
.sphere-semantic-label-title {
  display: inline-grid !important;
  place-items: center;
  min-width: .92rem !important;
  width: .92rem !important;
  height: .92rem !important;
  padding: 0 !important;
  border:
    1px solid rgba(111,220,207,.42)
    !important;
  border-radius: 50% !important;
  background: rgba(4,15,19,.72) !important;
  color: rgba(235,252,248,.98) !important;
  font-size: .45rem !important;
  box-shadow:
    inset 0 0 4px rgba(92,210,201,.08)
    !important;
}

/* Scheduled date. */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-schedule-count]
.sphere-semantic-label-title {
  display: inline-grid !important;
  place-items: center;
  min-width: .92rem !important;
  width: .92rem !important;
  height: .92rem !important;
  padding: 0 !important;
  border:
    1px solid rgba(242,202,94,.55)
    !important;
  border-radius: 50% !important;
  background: rgba(27,20,5,.68) !important;
  color: rgba(255,238,183,.98) !important;
  box-shadow:
    inset 0 -1px 0 rgba(244,204,92,.30)
    !important;
}

/* Selected date remains the strongest number. */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-selected
.sphere-semantic-label-title,
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-pinned
.sphere-semantic-label-title {
  display: inline-grid !important;
  place-items: center;
  min-width: 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
  padding: 0 !important;
  border:
    1px solid rgba(255,223,112,.86)
    !important;
  border-radius: 50% !important;
  background: rgba(40,30,7,.78) !important;
  color: #fff0a8 !important;
  box-shadow:
    inset 0 0 5px rgba(255,224,116,.12),
    0 0 4px rgba(255,214,81,.18)
    !important;
}

/* Moving dates stay lightweight instead of becoming dark rectangles. */
.is-camera-gesture-active
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
]
.sphere-semantic-label-title {
  background: transparent !important;
}

.is-camera-gesture-active
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-gate-day="true"]
.sphere-semantic-label-title,
.is-camera-gesture-active
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-schedule-count]
.sphere-semantic-label-title,
.is-camera-gesture-active
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
].is-selected
.sphere-semantic-label-title {
  background: rgba(4,15,19,.78) !important;
}

@media (pointer: coarse), (max-width: 720px) {
  .sphere-semantic-label[
    data-semantic-kind="pattern-day-number"
  ][data-quiet-rail="true"]
  .sphere-semantic-label-title {
    font-size: .44rem !important;
  }

  .sphere-semantic-label[
    data-semantic-kind="pattern-day-number"
  ][data-glide-role="neighbor"]
  .sphere-semantic-label-title {
    font-size: .40rem !important;
  }
}
/* === B7.54 CLEAN CALENDAR RAIL END === */


/* === B7.55 CALENDAR APERTURE + MOON LABELS START === */

/*
 * All physically visible Pattern Moons retain a compact identity label.
 * The selected Moon can still be stronger, but ordinary Moon labels no longer
 * appear/disappear merely because selection changed.
 */
.living-time-sphere-page
.sphere-moon-label {
  padding:
    .16rem
    .34rem !important;

  border-radius:
    .58rem !important;

  font-size:
    .58rem !important;

  font-weight:
    650 !important;

  letter-spacing:
    .01em !important;

  background:
    rgba(3,14,18,.78) !important;

  border:
    1px solid
    rgba(101,210,199,.28) !important;

  box-shadow:
    0 1px 4px
    rgba(0,0,0,.34) !important;

  backdrop-filter:
    blur(2px);

  white-space:
    nowrap;
}

.living-time-sphere-page
.sphere-moon-label.is-quiet {
  color:
    rgba(199,231,227,.82) !important;

  border-color:
    rgba(91,184,178,.22) !important;
}

.living-time-sphere-page
.sphere-moon-label.is-selected {
  color:
    rgba(255,239,183,.98) !important;

  border-color:
    rgba(239,194,76,.54) !important;

  background:
    rgba(24,18,5,.84) !important;
}

/*
 * Camera movement updates actual projected positions continuously. A very short
 * opacity/scale easing makes dates dissipate instead of blinking at the edge.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
],
.sphere-semantic-label[
  data-semantic-kind="intercalary-day-number"
] {
  transition:
    opacity 72ms linear,
    transform 72ms linear;
}

/*
 * Keep normal calendar dates light. B7.54's week/scheduled/selected dials remain
 * stronger; this rule simply improves readability of the populated aperture.
 */
.sphere-semantic-label[
  data-semantic-kind="pattern-day-number"
][data-quiet-rail="true"]
.sphere-semantic-label-title {
  color:
    rgba(225,244,242,.90) !important;

  font-size:
    .47rem !important;
}

@media (pointer: coarse), (max-width: 720px) {
  .living-time-sphere-page
  .sphere-moon-label {
    font-size:
      .55rem !important;

    padding:
      .14rem
      .29rem !important;
  }

  .sphere-semantic-label[
    data-semantic-kind="pattern-day-number"
  ][data-quiet-rail="true"]
  .sphere-semantic-label-title {
    font-size:
      .46rem !important;
  }
}

/* === B7.55 CALENDAR APERTURE + MOON LABELS END === */


/* === B7.56 ENVIRONMENT FIELD START === */

.sphere-environment-bridge {
  position: relative;
  overflow: hidden;
  gap: .55rem .7rem;
  padding: .72rem .78rem;
  border-color: rgba(111, 211, 193, .26);
  background:
    linear-gradient(
      135deg,
      rgba(7, 23, 25, .82),
      rgba(7, 15, 20, .68)
    );
  box-shadow:
    inset 0 1px 0 rgba(214, 255, 245, .025);
}

.sphere-environment-bridge::before {
  content: "ENV";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  min-height: 1.25rem;
  padding: .12rem .30rem;
  border: 1px solid rgba(105, 218, 197, .30);
  border-radius: 999px;
  color: rgba(150, 232, 215, .88);
  background: rgba(6, 29, 29, .62);
  font-size: .54rem;
  font-weight: 820;
  letter-spacing: .09em;
  line-height: 1;
}

.sphere-environment-bridge[data-layer-state="on"] {
  border-color: rgba(96, 230, 188, .42);
  box-shadow:
    inset 0 1px 0 rgba(214, 255, 245, .035),
    0 0 18px rgba(58, 175, 148, .045);
}

.sphere-environment-bridge[data-layer-state="on"]::before {
  color: rgba(201, 255, 229, .98);
  border-color: rgba(91, 230, 181, .52);
  background: rgba(6, 47, 37, .72);
}

.sphere-environment-bridge-text {
  flex: 1 1 19rem;
  min-width: 0;
  line-height: 1.48;
  font-size: .77rem;
  color: rgba(220, 244, 238, .92);
}

.sphere-environment-bridge.is-off
.sphere-environment-bridge-text {
  color: rgba(207, 222, 217, .78);
}

#sphere-environment-focus {
  flex: 0 0 auto;
  min-height: 2.1rem;
}

@media (pointer: coarse), (max-width: 720px) {
  .sphere-environment-bridge {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: .68rem .72rem;
  }

  .sphere-environment-bridge-text {
    font-size: .72rem;
    line-height: 1.48;
  }

  #sphere-environment-focus {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: .08rem;
  }
}

/* === B7.56 ENVIRONMENT FIELD END === */


/* === B7.57 LIVE ENVIRONMENT TELEMETRY START === */
/* B7.61: the telemetry bar is an OVERLAY on the stage (pointer-events: none,
   translucent, backdrop blur). It must be position:absolute — as an in-flow
   box it inserted itself above the WebGL canvas inside #sphere-container
   and pushed the canvas down by its own height, while the label manager
   kept projecting day chips against the container's unmoved rect. Every
   pick after the bar appeared was offset by the bar height (the wrong-day
   picking warp). Absolute positioning restores the invariant the picking
   path assumes: canvas rect === container rect. */
.sphere-live-environment-telemetry {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  gap: .12rem;
  margin: .08rem .58rem .24rem;
  padding: .32rem .48rem .36rem;
  border: 1px solid rgba(104, 218, 199, .18);
  border-radius: .62rem;
  background:
    linear-gradient(
      90deg,
      rgba(4, 17, 20, .78),
      rgba(5, 13, 18, .62)
    );
  box-shadow:
    inset 0 1px 0 rgba(220,255,247,.025);
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.sphere-live-environment-primary {
  color: rgba(235, 251, 245, .96);
  font-size: .64rem;
  font-weight: 760;
  letter-spacing: .018em;
  line-height: 1.25;
}

.sphere-live-environment-secondary {
  color: rgba(180, 220, 213, .78);
  font-size: .50rem;
  font-weight: 620;
  line-height: 1.25;
}

.sphere-live-environment-selected {
  margin-top: .08rem;
  padding-top: .16rem;
  border-top: 1px solid rgba(123, 211, 198, .12);
  color: rgba(242, 213, 133, .90);
  font-size: .48rem;
  font-weight: 650;
  line-height: 1.25;
}

.sphere-live-environment-selected[hidden] {
  display: none !important;
}

@media (pointer: coarse), (max-width: 720px) {
  .sphere-live-environment-telemetry {
    margin: .06rem .44rem .18rem;
    padding: .28rem .40rem .31rem;
  }

  .sphere-live-environment-primary {
    font-size: .59rem;
  }

  .sphere-live-environment-secondary,
  .sphere-live-environment-selected {
    font-size: .46rem;
  }
}
/* === B7.57 LIVE ENVIRONMENT TELEMETRY END === */


/* === B7.58 SELECTED DAY SCHEDULE START === */

.sphere-semantic-label-schedule {
  align-self: center;
  min-height: 1.72rem;
  margin: 0 .08rem 0 .20rem;
  padding: .25rem .48rem;
  border: 1px solid rgba(244, 202, 83, .58);
  border-radius: 999px;
  background: rgba(38, 28, 7, .90);
  color: rgba(255, 232, 150, .99);
  font: inherit;
  font-size: .58rem;
  font-weight: 760;
  letter-spacing: .012em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow:
    inset 0 0 5px rgba(255, 219, 103, .07);
}

.sphere-semantic-label-schedule:hover,
.sphere-semantic-label-schedule:focus-visible {
  border-color: rgba(255, 220, 112, .92);
  background: rgba(55, 40, 8, .97);
  color: #fff0ad;
  outline: none;
}

.sphere-semantic-label-schedule:active {
  transform: translateY(1px);
}

.sphere-semantic-label-schedule[hidden] {
  display: none !important;
}

/* B7.61: the base rule above grants every schedule button pointer-events:
   auto, which made readout cards' buttons (notably the expanded Moon
   card's) swallow sphere taps in dense clusters. Readout cards are
   click-through (see the B7.61 card rule); only the selected-day card and
   living-plan cards keep a live schedule button. */
.sphere-semantic-label .sphere-semantic-label-schedule {
  pointer-events: none;
}
.sphere-semantic-label[data-semantic-id="selected-day"] .sphere-semantic-label-schedule,
.sphere-semantic-label[data-semantic-kind="living-plan"] .sphere-semantic-label-schedule,
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] .sphere-semantic-label-schedule {
  pointer-events: auto;
}

@media (pointer: coarse), (max-width: 720px) {
  .sphere-semantic-label-schedule {
    min-height: 1.82rem;
    padding: .28rem .46rem;
    font-size: .57rem;
  }
}

/* === B7.58 SELECTED DAY SCHEDULE END === */


/* === B7.58.1 LABEL GLASS + OCCLUSION START === */

/*
 * Final presentation polish:
 * - Moon identity pills live below semantic inspection cards.
 * - Floating cards are only barely transparent, so labels behind them cannot
 *   visually print through.
 * - Calendar day numerals keep their existing transparent etched treatment.
 * - No geometry, temporal mapping, scheduling, or camera behavior changes.
 */

/* Explicit stacking contexts: Moon identities below semantic cards. */
.living-time-sphere-page .sphere-moon-labels {
  z-index: 12 !important;
  isolation: isolate;
}

.living-time-sphere-page .sphere-semantic-leader-layer {
  z-index: 18 !important;
}

.living-time-sphere-page .sphere-semantic-label-layer {
  z-index: 20 !important;
  isolation: isolate;
}

/*
 * Moon identity labels remain glass-like, but only about 3–4.5% transparent.
 * This preserves the field behind them without letting nearby text compete.
 */
.living-time-sphere-page .sphere-moon-label {
  background: rgba(3, 12, 16, .965) !important;
  border-color: rgba(101, 210, 199, .32) !important;
  box-shadow:
    0 2px 7px rgba(0, 0, 0, .48) !important;
  mix-blend-mode: normal !important;
}

.living-time-sphere-page .sphere-moon-label.is-quiet {
  background: rgba(3, 12, 16, .955) !important;
  border-color: rgba(91, 184, 178, .25) !important;
}

.living-time-sphere-page .sphere-moon-label.is-selected {
  background: rgba(25, 19, 6, .982) !important;
  border-color: rgba(239, 194, 76, .62) !important;
}

/*
 * Semantic information cards (Selected Moon, Today, Selected Year, plans, etc.)
 * are the foreground authority. Keep a hint of the Sphere, but make the card
 * body visually solid enough to occlude Moon pills beneath it.
 */
.living-time-sphere-page
.sphere-semantic-label:not(
  [data-semantic-kind="pattern-day-number"]
):not(
  [data-semantic-kind="intercalary-day-number"]
) {
  background: rgba(7, 10, 15, .985) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(255, 255, 255, .035) !important;
  mix-blend-mode: normal !important;
}

.living-time-sphere-page
.sphere-semantic-label.is-selected:not(
  [data-semantic-kind="pattern-day-number"]
),
.living-time-sphere-page
.sphere-semantic-label.is-pinned:not(
  [data-semantic-kind="pattern-day-number"]
) {
  background: rgba(24, 19, 7, .993) !important;
}

.living-time-sphere-page
.sphere-semantic-label[data-semantic-kind="living-plan"] {
  background: rgba(10, 12, 16, .992) !important;
}

/* The B7.58 Schedule action gets the same nearly-solid glass treatment. */
.living-time-sphere-page .sphere-semantic-label-schedule {
  background: rgba(38, 28, 7, .975) !important;
}

/* Legacy tap/floating callouts use the same visual language. */
.living-time-sphere-page .sphere-floating-label {
  background: rgba(5, 7, 13, .97) !important;
  mix-blend-mode: normal !important;
}

/*
 * Do not force element opacity here. The label manager still owns proximity
 * fading and camera disclosure; only the panel fill becomes near-opaque.
 */

/* === B7.58.1 LABEL GLASS + OCCLUSION END === */


/* === B7.58.2 SCHEDULE COMPACTNESS START === */

.living-time-sphere-page
.sphere-semantic-label[data-semantic-kind="living-plan-summary"] {
  max-width: min(9rem, 36vw) !important;
  padding: .21rem .29rem !important;
}

.living-time-sphere-page
.sphere-semantic-label[data-semantic-kind="living-plan-summary"]
.sphere-semantic-label-title {
  font-size: .59rem !important;
}

.living-time-sphere-page
.sphere-semantic-label[data-semantic-kind="living-plan-summary"]
.sphere-semantic-label-status {
  font-size: .51rem !important;
  padding: .07rem .21rem !important;
}

/* === B7.58.2 SCHEDULE COMPACTNESS END === */


/* B7.59.2A — readable far-day calendar skeleton
   Keep the DOM hit area, but make distant structural dates read like engraved
   instrument marks rather than a row of heavy bubbles. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-far-skeleton="true"] {
  background: rgba(3, 10, 16, .42) !important;
  border-color: rgba(150, 209, 211, .24) !important;
  box-shadow: 0 1px 1px rgba(0,0,0,.26) !important;
  backdrop-filter: none !important;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-far-skeleton="true"] .sphere-semantic-label-title {
  color: rgba(233, 247, 244, .92) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.82);
  font-weight: 650 !important;
}
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-far-skeleton="true"][data-has-schedule="true"] {
  border-color: rgba(246, 213, 106, .42) !important;
}

/* === B7.59.2D UNIFIED DAY + SCHEDULE PACKET START === */
/*
 * Occupied dates remain unmistakable without becoming giant bubbles. The GPU
 * schedule glyph sits immediately inward of the same derived display cell.
 */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-has-schedule="true"] .sphere-semantic-label-title,
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-schedule-count] .sphere-semantic-label-title {
  position: relative;
  border-color: rgba(246, 213, 106, .62) !important;
  color: rgba(255, 240, 190, .99) !important;
  box-shadow:
    inset 0 0 4px rgba(246, 213, 106, .10),
    0 0 3px rgba(246, 213, 106, .12) !important;
}

/* Tiny notch: day number and inward schedule glyph read as one calendar packet. */
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-has-schedule="true"] .sphere-semantic-label-title::after,
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-schedule-count] .sphere-semantic-label-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.22rem;
  width: 1px;
  height: .20rem;
  transform: translateX(-50%);
  background: rgba(246, 213, 106, .58);
  box-shadow: 0 0 2px rgba(246, 213, 106, .22);
  pointer-events: none;
}

.is-camera-gesture-active
.sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-has-schedule="true"] .sphere-semantic-label-title::after {
  box-shadow: none;
}
/* === B7.59.2D UNIFIED DAY + SCHEDULE PACKET END === */

/* Day Zoom — Living Strata day-depth panel (living-time-sphere-day-zoom.js) */
.sphere-day-zoom-date {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.sphere-day-zoom-coords {
  margin: 0.2rem 0 0.6rem;
  opacity: 0.85;
}

.sphere-day-zoom-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.sphere-day-zoom-jump {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
}

.sphere-day-zoom-jump input {
  width: 4.5rem;
  padding: 0.3rem 0.4rem;
}

.sphere-day-zoom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sphere-day-zoom-item {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 0.5rem;
}

.sphere-day-zoom-item.is-completed {
  opacity: 0.65;
}

/* Manifest practice sessions carry a special placement marker:
   a gold glyph rail distinguishing them from ordinary schedule entries. */
.sphere-day-zoom-item.is-practice {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.06);
}

.sphere-day-zoom-marker {
  flex: 0 0 auto;
  align-self: center;
  color: #e8c766;
  font-size: 1.05rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(232, 199, 102, 0.55);
}

.sphere-day-zoom-time {
  flex: 0 0 5.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.sphere-day-zoom-body {
  display: grid;
  gap: 0.1rem;
}

.sphere-day-zoom-body small {
  opacity: 0.75;
  text-transform: capitalize;
}

.sphere-day-zoom-summary {
  opacity: 0.85;
}

.sphere-day-zoom-empty {
  margin: 0.4rem 0;
  opacity: 0.85;
}

.sphere-day-zoom-status {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* R2 rework preview options */
.sphere-r2-options {
  margin-top: 0.75rem;
}

.sphere-r2-options-note {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  opacity: 0.85;
}
