/* ============================================================================
   LWL Moonlight Reflections — kit-aligned chrome  (v2.0.0 — 2026-05-11)
   ----------------------------------------------------------------------------
   Source of truth: design-system/ui_kits/moonlight_reflections/index.html
   Aesthetic: indigo sky + sun-soft moon halo + ember warmth, starfield,
              shooting stars, drifting cloud wisp, constellation lines.
   Typography: Fraunces italic 500 for display, Inter for body.
   ============================================================================ */


/* ──────────────────────────────────────────────────────────────────────────
   1.  ROOT — indigo card, INTERNAL SCROLL (journey-stage clamps overflow).
   ────────────────────────────────────────────────────────────────────────── */
.lwl-moonlight-reflections {
  --moon-ink:        #F4EFE2;
  --moon-muted:      rgba(244, 239, 226, 0.74);
  --moon-faint:      rgba(244, 239, 226, 0.5);
  --moon-indigo:     #0c1a3a;
  --moon-indigo-2:   #172a55;
  --moon-panel:      rgba(11, 22, 45, 0.78);
  --moon-panel-2:    rgba(19, 35, 65, 0.86);
  --moon-border:     rgba(255, 232, 183, 0.18);
  --moon-border-2:   rgba(255, 232, 183, 0.32);
  --moon-ember:      #FC780C;
  --moon-ember-soft: rgba(252, 120, 12, 0.22);
  --moon-sun:        #FFD63B;
  --moon-sun-soft:   #FFE9B8;
  --moon-violet:     #9FA3FF;
  --moon-silver:     #DCE4FF;

  width: 100%;
  max-width: 1380px;
  height: calc(100vh - 110px);
  max-height: calc(100vh - 110px);
  margin: 28px auto;
  position: relative;
  isolation: isolate;
  color: var(--moon-ink);
  font-family: var(--font-body, "Inter", system-ui, -apple-system, sans-serif);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 70% 40% at 85% 0%, rgba(255, 214, 59, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 50% at 8% 100%, rgba(252, 120, 12, 0.14), transparent 65%),
    linear-gradient(160deg, #040b1c 0%, #0d1a3d 44%, #11254b 100%);
  box-shadow: var(--shadow-cinematic, 0 34px 90px rgba(2, 7, 17, 0.48));
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 232, 183, 0.28) transparent;
}
.lwl-moonlight-reflections *,
.lwl-moonlight-reflections *::before,
.lwl-moonlight-reflections *::after { box-sizing: border-box; }
.lwl-moonlight-reflections::-webkit-scrollbar { width: 10px; }
.lwl-moonlight-reflections::-webkit-scrollbar-track { background: transparent; }
.lwl-moonlight-reflections::-webkit-scrollbar-thumb {
  background: rgba(255, 232, 183, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.lwl-moonlight-reflections::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 232, 183, 0.5);
  background-clip: padding-box;
}

/* Starfield pseudo-layer */
.lwl-moonlight-reflections::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 76% 14%, rgba(255,255,255,0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 33%, rgba(255,255,255,0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 64% 8%,  rgba(255,255,255,0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 48% 22%, rgba(255,255,255,0.4) 0 1px, transparent 1.6px),
    radial-gradient(circle at 22% 60%, rgba(255,255,255,0.4) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 90% 70%, rgba(255,255,255,0.5) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 6% 40%, rgba(255,255,255,0.35) 0 0.6px, transparent 1.6px);
  animation: moon-twinkle 7s ease-in-out infinite alternate;
}
@keyframes moon-twinkle { 0% { opacity: 0.78 } 50% { opacity: 1 } 100% { opacity: 0.85 } }


/* ──────────────────────────────────────────────────────────────────────────
   2.  ATMOSPHERE — shooting stars + drifting cloud + constellation.
   ────────────────────────────────────────────────────────────────────────── */
.moon-shoot {
  position: absolute; top: 18%; left: -10%;
  width: 140px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.98) 60%, rgba(255, 232, 183, 0.9) 90%, transparent);
  z-index: 0; opacity: 0; pointer-events: none;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 6px rgba(255, 232, 183, 0.6));
  animation: moon-shoot 14s ease-in infinite;
}
.moon-shoot--2 { top: 56%; left: -10%; animation-duration: 22s; animation-delay: -8s; width: 90px; opacity: 0.85; }
@keyframes moon-shoot {
  0%, 70% { opacity: 0; transform: translate(0,0) rotate(-12deg); }
  72%     { opacity: 1; }
  85%     { opacity: 0; transform: translate(620px, 130px) rotate(-12deg); }
  100%    { opacity: 0; transform: translate(620px, 130px) rotate(-12deg); }
}

.moon-cloud {
  position: absolute; top: 28%; right: -10%;
  width: 240px; height: 60px;
  z-index: 0; pointer-events: none; opacity: 0.18;
  color: var(--moon-silver);
  animation: moon-cloud 60s linear infinite;
}
@keyframes moon-cloud {
  from { transform: translateX(0); }
  to   { transform: translateX(-180%); }
}
.moon-cloud svg { width: 100%; height: 100%; }

.moon-constellation {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.5; mix-blend-mode: screen;
}
.moon-constellation line {
  stroke: rgba(255, 214, 59, 0.55); stroke-width: 1; stroke-dasharray: 2 4;
  filter: drop-shadow(0 0 3px rgba(255, 214, 59, 0.4));
  animation: moon-cons 5s ease-in-out infinite alternate;
}
@keyframes moon-cons { from { opacity: 0.5; } to { opacity: 1; } }


/* ──────────────────────────────────────────────────────────────────────────
   3.  SHELL.
   ────────────────────────────────────────────────────────────────────────── */
.moon-shell {
  position: relative; z-index: 1;
  padding: 30px 36px 36px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  min-height: 100%;
}


/* ──────────────────────────────────────────────────────────────────────────
   4.  TOPBAR — moon crest with halo + wordmark + date + month arrows.
   ────────────────────────────────────────────────────────────────────────── */
.moon-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--moon-border);
}
.moon-brand { display: flex; gap: 14px; align-items: center; }

.moon-halo {
  position: relative; flex-shrink: 0;
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
}
.moon-halo::before, .moon-halo::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 214, 59, 0.22);
  animation: moon-halo 5s ease-in-out infinite alternate;
}
.moon-halo::before { width: 68px; height: 68px; }
.moon-halo::after  { width: 86px; height: 86px; border-color: rgba(255, 214, 59, 0.12); animation-delay: -2.5s; }
@keyframes moon-halo {
  from { transform: scale(0.94); opacity: 0.5; }
  to   { transform: scale(1.08); opacity: 1; }
}
.moon-brand__crest {
  width: 50px; height: 50px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: radial-gradient(circle at 36% 32%, #fff8dc, var(--moon-sun-soft) 50%, var(--moon-sun) 80%);
  box-shadow: 0 0 28px rgba(255, 214, 59, 0.42), 0 0 60px rgba(255, 214, 59, 0.18);
  animation: moon-breathe 6s ease-in-out infinite alternate;
}
.moon-brand__crest::after {
  content: ""; position: absolute; top: 4px; right: 6px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--moon-indigo-2);
}
.moon-brand__crest::before {
  content: ""; position: absolute; left: 12px; top: 28px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(180, 144, 60, 0.35);
}
@keyframes moon-breathe {
  from { box-shadow: 0 0 22px rgba(255, 214, 59, 0.32), 0 0 50px rgba(255, 214, 59, 0.14); }
  to   { box-shadow: 0 0 36px rgba(255, 214, 59, 0.55), 0 0 80px rgba(255, 214, 59, 0.22); }
}
.moon-brand__name {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-weight: 500;
  font-size: 25px; color: var(--moon-sun-soft);
  letter-spacing: 0.005em; line-height: 1;
  margin: 0;
}
.moon-brand__sub {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moon-faint); margin-top: 5px;
  font-family: var(--font-body, "Inter", sans-serif);
}

.moon-top__date { display: flex; align-items: center; gap: 16px; }
.moon-top__date-now { text-align: right; }
.moon-top__date-now b {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-weight: 500;
  font-size: 18px; color: var(--moon-sun-soft); display: block;
}
.moon-top__date-now span {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moon-muted);
}
.moon-arrows {
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--moon-border); border-radius: 999px;
  background: var(--moon-panel);
  backdrop-filter: blur(8px);
}
.moon-arrows button {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: transparent; color: var(--moon-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.moon-arrows button:hover { color: var(--moon-sun-soft); background: rgba(255, 232, 183, 0.10); }
.moon-arrows svg { width: 14px; height: 14px; }

.moon-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--moon-panel); border: 1px solid var(--moon-border-2);
  color: var(--moon-muted); font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 10px;
  transition: all var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
  text-decoration: none; line-height: 1;
}
.moon-close:hover { background: var(--moon-sun-soft); color: var(--moon-indigo); border-color: var(--moon-sun-soft); }


/* ──────────────────────────────────────────────────────────────────────────
   5.  BODY — calendar + tonight panel.
   ────────────────────────────────────────────────────────────────────────── */
.moon-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  min-height: 0;
}


/* ──────────────────────────────────────────────────────────────────────────
   6.  CALENDAR PANEL.
   ────────────────────────────────────────────────────────────────────────── */
.moon-month {
  padding: 26px;
  border: 1px solid var(--moon-border);
  border-radius: 24px;
  background: var(--moon-panel);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.moon-month::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(159, 163, 255, 0.10), transparent 60%);
}
.moon-month__head {
  display: flex; justify-content: space-between; align-items: baseline;
  position: relative;
}
.moon-month__head h2 {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-weight: 500;
  font-size: 25px; color: var(--moon-sun-soft);
  margin: 0; letter-spacing: 0.005em;
}
.moon-month__sub {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moon-faint);
}

.moon-cal-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moon-faint); text-align: center;
  padding: 0 2px;
}
.moon-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  position: relative;
}
.moon-day {
  aspect-ratio: 1 / 1; border-radius: 12px;
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 13px; color: var(--moon-muted); cursor: pointer;
  background: rgba(8, 18, 43, 0.42);
  transition: all var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
  font-family: var(--font-body, "Inter", sans-serif);
}
.moon-day:hover { border-color: var(--moon-border-2); color: var(--moon-ink); transform: translateY(-1px); }
.moon-day.is-off { color: var(--moon-faint); opacity: 0.5; background: transparent; cursor: default; }
.moon-day.is-off:hover { transform: none; border-color: transparent; color: var(--moon-faint); }
.moon-day.is-reflected {
  color: var(--moon-sun-soft);
  background: rgba(255, 214, 59, 0.12);
  border-color: rgba(255, 214, 59, 0.34);
}
.moon-day.is-reflected::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--moon-ember);
  box-shadow: 0 0 6px var(--moon-ember-soft);
  animation: moon-ember-pulse 3.6s ease-in-out infinite alternate;
}
@keyframes moon-ember-pulse {
  from { opacity: 0.7; box-shadow: 0 0 4px rgba(252, 120, 12, 0.4); }
  to   { opacity: 1; box-shadow: 0 0 10px rgba(252, 120, 12, 0.85); }
}
.moon-day.is-today {
  background: var(--moon-sun); color: var(--moon-indigo);
  font-weight: 700; border-color: var(--moon-sun);
  box-shadow: 0 0 22px rgba(255, 214, 59, 0.5);
  animation: moon-today-glow 3s ease-in-out infinite alternate;
}
@keyframes moon-today-glow {
  from { box-shadow: 0 0 14px rgba(255, 214, 59, 0.4); }
  to   { box-shadow: 0 0 28px rgba(255, 214, 59, 0.7); }
}
.moon-day.is-streak {
  background: rgba(252, 120, 12, 0.16);
  border-color: rgba(252, 120, 12, 0.32);
  color: var(--moon-sun-soft);
}

.moon-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--moon-muted);
  padding-top: 10px; border-top: 1px solid var(--moon-border);
  font-family: var(--font-body, "Inter", sans-serif);
}
.moon-legend span { display: inline-flex; align-items: center; gap: 6px; }
.moon-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.moon-legend i.r { background: var(--moon-ember); }
.moon-legend i.s { background: var(--moon-sun); }
.moon-legend i.k { background: rgba(252, 120, 12, 0.28); }


/* ──────────────────────────────────────────────────────────────────────────
   7.  TONIGHT PANEL.
   ────────────────────────────────────────────────────────────────────────── */
.moon-tonight {
  padding: 28px;
  border: 1px solid var(--moon-border-2);
  border-radius: 24px;
  background: var(--moon-panel-2);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.moon-tonight::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%;
  height: 80%; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(159, 163, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 40%, rgba(252, 120, 12, 0.10), transparent 70%);
  filter: blur(28px);
  animation: moon-nebula 18s ease-in-out infinite alternate;
}
@keyframes moon-nebula {
  from { transform: translate(0, 0); }
  to   { transform: translate(-12px, 14px); }
}
.moon-tonight > * { position: relative; z-index: 1; }

.moon-tonight__kicker {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--moon-ember); margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.moon-tonight__kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--moon-ember);
  box-shadow: 0 0 12px var(--moon-ember);
  animation: moon-ember-pulse 2.4s ease-in-out infinite alternate;
}
.moon-tonight__title {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-weight: 500;
  font-size: 32px; color: var(--moon-sun-soft);
  margin: 0; line-height: 1.15; letter-spacing: 0.005em;
}
.moon-tonight__deck {
  font-size: 15.5px; line-height: 1.7;
  color: var(--moon-ink); margin: 0; max-width: 50ch;
}

.moon-mood { display: flex; gap: 10px; flex-wrap: wrap; }
.moon-pebble {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--moon-border);
  background: rgba(11, 22, 45, 0.5);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 13.5px; color: var(--moon-ink); cursor: pointer;
  transition: all var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.moon-pebble:hover { border-color: var(--moon-sun); transform: translateY(-1px); }
.moon-pebble.is-on {
  background: rgba(255, 214, 59, 0.18);
  border-color: var(--moon-sun);
  color: var(--moon-sun-soft);
  box-shadow: 0 0 0 1px rgba(255, 214, 59, 0.18), 0 0 22px rgba(255, 214, 59, 0.18);
}
.moon-pebble__glyph { font-size: 16px; }

.moon-input {
  width: 100%; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--moon-border);
  background: rgba(5, 12, 31, 0.5);
  color: var(--moon-ink);
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-size: 17px;
  line-height: 1.55; min-height: 110px; resize: vertical;
  transition: border-color var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1)),
              box-shadow var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.moon-input:focus {
  outline: none; border-color: var(--moon-sun);
  box-shadow: 0 0 0 3px rgba(255, 214, 59, 0.14);
}
.moon-input::placeholder { color: var(--moon-faint); font-style: italic; }

.moon-vocab {
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--moon-border);
  background: rgba(8, 18, 43, 0.55);
}
.moon-vocab__head {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--moon-violet); margin: 0 0 8px;
  font-family: var(--font-body, "Inter", sans-serif);
}
.moon-vocab__list { display: flex; gap: 8px; flex-wrap: wrap; }
.moon-vocab__chip {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-size: 14.5px;
  color: var(--moon-silver);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(159, 163, 255, 0.10);
  border: 1px solid rgba(159, 163, 255, 0.24);
}

.moon-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px;
  border-top: 1px dashed var(--moon-border);
}
.moon-foot__meta {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moon-faint);
  font-family: var(--font-body, "Inter", sans-serif);
}
.moon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  background: var(--moon-ember); color: #150a02;
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 600; font-size: 14px;
  border: 0; cursor: pointer;
  box-shadow: 0 10px 30px var(--moon-ember-soft), 0 0 0 0 var(--moon-ember-soft);
  transition: transform var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1)),
              box-shadow var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.moon-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 36px rgba(252, 120, 12, 0.36), 0 0 28px rgba(252, 120, 12, 0.32);
}


/* ──────────────────────────────────────────────────────────────────────────
   8.  RESPONSIVE.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .moon-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lwl-moonlight-reflections { border-radius: 18px; margin: 14px auto; }
  .moon-shell { padding: 20px 18px 24px; }
  .moon-month, .moon-tonight { padding: 20px; }
  .moon-cloud, .moon-shoot { display: none; }
  .moon-halo { width: 64px; height: 64px; }
  .moon-halo::before { width: 50px; height: 50px; }
  .moon-halo::after  { width: 64px; height: 64px; }
  .moon-brand__crest { width: 38px; height: 38px; }
  .moon-brand__crest::after { width: 24px; height: 24px; top: 3px; right: 5px; }
}


/* ──────────────────────────────────────────────────────────────────────────
   9.  REDUCED MOTION.
   ────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lwl-moonlight-reflections::before,
  .moon-shoot,
  .moon-cloud,
  .moon-constellation line,
  .moon-halo::before,
  .moon-halo::after,
  .moon-brand__crest,
  .moon-day.is-today,
  .moon-day.is-reflected::after,
  .moon-tonight::before,
  .moon-tonight__kicker::before { animation: none !important; }
}


/* ──────────────────────────────────────────────────────────────────────────
   10.  LEGACY BRIDGE — when the 40KB JS module overwrites the tonight panel's
   innerHTML with legacy BEM markup (renderEmptyState / renderReadState /
   renderFormState), bridge classes inherit the kit tone so the UI doesn't
   degrade to unstyled HTML.
   ────────────────────────────────────────────────────────────────────────── */
.lwl-moonlight-reflections__notice {
  padding: 24px; border-radius: 16px;
  background: var(--moon-panel); border: 1px solid var(--moon-border);
  color: var(--moon-ink); text-align: center;
  font-family: var(--font-body, "Inter", sans-serif);
  margin: 28px auto; max-width: 600px;
}
.lwl-moonlight-reflections__notice a {
  color: var(--moon-sun-soft); text-decoration: underline;
}

.lwl-moonlight-reflections__detail-loading,
.lwl-moonlight-reflections__detail-form,
.lwl-moonlight-reflections__detail-read,
.lwl-moonlight-reflections__detail-locked,
.lwl-moonlight-reflections__detail-empty {
  font-family: var(--font-body, "Inter", sans-serif);
  color: var(--moon-ink);
  line-height: 1.6;
}
.lwl-moonlight-reflections__detail-loading {
  padding: 24px 18px; text-align: center;
  color: var(--moon-faint);
  border: 1px dashed var(--moon-border);
  border-radius: 14px; margin-top: 8px;
}
.lwl-moonlight-reflections__detail-form,
.lwl-moonlight-reflections__detail-read {
  display: flex; flex-direction: column; gap: 16px;
}
.lwl-moonlight-reflections h2,
.lwl-moonlight-reflections h3,
.lwl-moonlight-reflections h4 {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-weight: 500;
  color: var(--moon-sun-soft); margin: 0 0 8px;
  letter-spacing: 0.005em;
}
.lwl-moonlight-reflections h2 { font-size: 26px; line-height: 1.2; }
.lwl-moonlight-reflections h3 { font-size: 20px; }
.lwl-moonlight-reflections h4 { font-size: 16px; }
.lwl-moonlight-reflections__primary,
.lwl-moonlight-reflections__ghost,
.lwl-moonlight-reflections__prompt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 600; font-size: 13.5px;
  cursor: pointer;
  transition: all var(--dur-base, 320ms) var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.lwl-moonlight-reflections__primary {
  background: var(--moon-ember); color: #150a02; border: 1px solid var(--moon-ember);
  box-shadow: 0 10px 30px var(--moon-ember-soft);
}
.lwl-moonlight-reflections__primary:hover { transform: translateY(-1px) scale(1.02); }
.lwl-moonlight-reflections__primary[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.lwl-moonlight-reflections__ghost {
  background: transparent; color: var(--moon-ink-soft, var(--moon-ink));
  border: 1px solid var(--moon-border);
}
.lwl-moonlight-reflections__ghost:hover { background: rgba(255, 214, 59, 0.08); color: var(--moon-sun-soft); border-color: var(--moon-sun); }
.lwl-moonlight-reflections__prompt {
  background: rgba(159, 163, 255, 0.10); color: var(--moon-silver);
  border: 1px solid rgba(159, 163, 255, 0.24);
}
.lwl-moonlight-reflections__prompt.is-active { background: rgba(255, 214, 59, 0.18); color: var(--moon-sun-soft); border-color: var(--moon-sun); }

.lwl-moonlight-reflections input[type="range"],
.lwl-moonlight-reflections textarea,
.lwl-moonlight-reflections input[type="text"] {
  width: 100%; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--moon-border);
  background: rgba(5, 12, 31, 0.5); color: var(--moon-ink);
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic; font-size: 16px; line-height: 1.55;
  resize: vertical;
}
.lwl-moonlight-reflections input[type="range"] {
  font-family: inherit; padding: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
  height: 8px;
}
.lwl-moonlight-reflections input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moon-sun); border: 2px solid var(--moon-sun-soft);
  cursor: pointer;
  box-shadow: 0 0 12px var(--moon-sun);
}
.lwl-moonlight-reflections textarea:focus,
.lwl-moonlight-reflections input:focus {
  outline: none; border-color: var(--moon-sun);
  box-shadow: 0 0 0 3px rgba(255, 214, 59, 0.14);
}
.lwl-moonlight-reflections label {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moon-faint); font-family: var(--font-body, "Inter", sans-serif);
  display: block; margin-bottom: 6px;
}
