/* =========================================================
   THE SOLIS ARCHIVE • THE SUNFLOWER WISH GARDEN
   CSS Stylesheet for garden.html
   Art Direction: Twilight Solarium Meadow, Fireflies, Warm Gold & Parchment Keepsakes
   ========================================================= */

:root {
  --bg-black: #060709;
  --bg-deep: #0a0b10;
  --bg-meadow: #0d0f16;
  --bg-card: rgba(18, 19, 27, 0.85);
  --bg-card-hover: rgba(26, 28, 40, 0.95);
  --bg-modal: #0d0e14;
  
  --gold-primary: #f5be38;
  --gold-light: #fde8b7;
  --gold-amber: #d9822b;
  --gold-antique: #b88628;
  --gold-dim: #7a5818;
  --gold-glow: rgba(245, 190, 56, 0.28);
  --gold-border: rgba(245, 190, 56, 0.35);

  --azure-glow: rgba(86, 178, 220, 0.22);
  --azure-border: rgba(86, 178, 220, 0.4);
  --rose-glow: rgba(245, 150, 180, 0.22);

  --text-pure: #ffffff;
  --text-ivory: #fdfbf7;
  --text-secondary: #d8d3c5;
  --text-muted: #a8a396;

  --font-serif-display: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  --font-serif-body: 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Pinyon Script', cursive;
  --font-sans: 'Montserrat', sans-serif;
  --font-kr: 'Noto Serif KR', serif;

  --ease-royal: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.45s var(--ease-royal);
}

html, body {
  background-color: #0b0d13;
  color: #f5f3ff;
}

/* =========================================================
   SEAMLESS IN-PAGE VIEW & LAYOUT
   ========================================================= */
/* Atmospheric Theme Layers for Meadow */
.garden-view,
.garden-view[data-atmosphere="night"] {
  --atmo-sky-bg: radial-gradient(circle at 50% 10%, #15121b 0%, var(--bg-deep) 60%, var(--bg-black) 100%);
  --atmo-accent: #a0c8ff;
  --atmo-pill-glow: rgba(160, 200, 255, 0.28);
}

.garden-view[data-atmosphere="dawn"] {
  --atmo-sky-bg: radial-gradient(circle at 50% 0%, #281a0e 0%, #181118 45%, #0b0910 100%);
  --atmo-accent: #f5be38;
  --atmo-pill-glow: rgba(245, 190, 56, 0.35);
}

.garden-view[data-atmosphere="sunset"] {
  --atmo-sky-bg: radial-gradient(circle at 50% 5%, #2a1222 0%, #181020 45%, #0a0812 100%);
  --atmo-accent: #f59e7b;
  --atmo-pill-glow: rgba(245, 158, 123, 0.32);
}

.garden-view {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding-top: 5.5rem;
  padding-bottom: 7rem;
  background: var(--atmo-sky-bg);
  opacity: 0;
  transform: translateY(24px);
  transition: background 2.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  z-index: 20;
}

.garden-view.is-active {
  display: block !important;
  opacity: 1;
  transform: none !important;
}

/* Elevate garden-view above global header/controls when any garden modal is open */
.garden-view:has(.garden-modal-overlay.is-active),
.garden-view:has(.modal-overlay.is-active),
body.garden-modal-open .garden-view {
  z-index: 9990 !important;
}

body.garden-modal-open {
  overflow: hidden !important;
}

body.garden-modal-open .lang-control,
body.garden-modal-open .audio-control,
body.garden-modal-open .shimeji-toggle-btn,
body.garden-modal-open #dani-companion,
body.garden-modal-open .plant-sunflower-fab,
body.garden-modal-open .archivist-status-pill,
body.garden-modal-open .garden-top-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

.archive-main.is-fading-view {
  opacity: 0 !important;
  transform: translateY(-16px) scale(0.99) !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  pointer-events: none !important;
}

.archive-main.is-hidden-view {
  display: none !important;
}

/* Canvas Background for Meadow */
#meadow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Top Return Bar for Meadow */
.garden-top-bar {
  position: fixed;
  top: 2rem;
  left: 12.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
}

/* Responsive Labels for Return button & Plant FAB */
.fab-text-short,
.back-text-short {
  display: none !important;
}

.fab-text-full,
.back-text-full {
  display: inline !important;
}

@media (max-width: 768px) {
  .fab-text-full,
  .back-text-full {
    display: none !important;
  }

  .fab-text-short,
  .back-text-short {
    display: inline !important;
  }

  /* Return to Solis Archive sits cleanly at Top-Left */
  .garden-top-bar {
    top: max(0.75rem, env(safe-area-inset-top, 0.75rem)) !important;
    left: max(0.75rem, env(safe-area-inset-left, 0.75rem)) !important;
    z-index: 100 !important;
  }

  .back-to-archive {
    height: 32px !important;
    padding: 0 0.65rem !important;
    font-size: 0.66rem !important;
    gap: 0.35rem !important;
    letter-spacing: 0.08em !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .constellation-toggle-btn {
    height: 32px !important;
    padding: 0 0.65rem !important;
    font-size: 0.66rem !important;
    gap: 0.35rem !important;
    box-sizing: border-box !important;
  }

  .constellation-btn-text {
    display: none !important;
  }

  /* Centered Language Control on mobile during Garden View: perfectly separated from Back and Audio */
  body:has(#garden-view.is-active) .lang-control,
  body.in-garden-view .lang-control {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: max(0.75rem, env(safe-area-inset-top, 0.75rem)) !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
  }

  body:has(#garden-view.is-active) .lang-pill,
  body.in-garden-view .lang-pill {
    height: 32px !important;
    box-sizing: border-box !important;
    padding: 0 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

.back-to-archive {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(18, 17, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.back-to-archive:hover {
  background: rgba(245, 190, 56, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateX(-3px);
  box-shadow: 0 0 16px var(--gold-glow);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Constellation Toggle */
.constellation-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(20, 21, 30, 0.6);
  border: 1px solid rgba(245, 190, 56, 0.25);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.constellation-toggle-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(245, 190, 56, 0.15);
  box-shadow: 0 0 14px var(--gold-glow);
}

.constellation-toggle-btn .constellation-icon {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 21, 30, 0.6);
  border: 1px solid rgba(245, 190, 56, 0.25);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(245, 190, 56, 0.15);
}

/* Audio Control */
.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(20, 21, 30, 0.6);
  border: 1px solid rgba(245, 190, 56, 0.25);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px var(--gold-glow);
}

.audio-btn.is-playing {
  border-color: var(--gold-primary);
  background: rgba(245, 190, 56, 0.12);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-bars span {
  width: 2px;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-btn.is-playing .audio-bars span:nth-child(1) { animation: barDance 1.2s infinite ease-in-out; }
.audio-btn.is-playing .audio-bars span:nth-child(2) { animation: barDance 1.2s infinite 0.2s ease-in-out; }
.audio-btn.is-playing .audio-bars span:nth-child(3) { animation: barDance 1.2s infinite 0.4s ease-in-out; }

@keyframes barDance {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

/* Main Container */
.garden-main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 8rem 1.5rem;
}

/* Garden Hero Section */
.garden-hero {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 3.5rem auto;
}

.garden-tagline,
.garden-title,
.garden-lead {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.garden-crest-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 190, 56, 0.2) 0%, rgba(13, 15, 22, 0.8) 75%);
  border: 1px solid rgba(245, 190, 56, 0.45);
  box-shadow: 0 0 25px var(--gold-glow);
  margin-bottom: 1.4rem;
  position: relative;
}

.garden-crest-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 190, 56, 0.28);
  animation: rotateSlow 40s linear infinite;
}

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

.garden-crest-flower {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 10px rgba(245, 190, 56, 0.45));
  animation: gentlePulse 3s ease-in-out infinite alternate;
}

.garden-crest-flower svg {
  width: 34px;
  height: 34px;
  display: block;
}

@keyframes gentlePulse {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.06); }
}

.garden-tagline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-antique);
  margin-bottom: 0.75rem;
  display: block;
}

.garden-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 0 24px rgba(245, 190, 56, 0.2);
}

.garden-title em {
  font-style: italic;
  font-family: var(--font-cursive);
  font-size: 1.25em;
  color: var(--gold-light);
  display: block;
  font-weight: 300;
  margin-top: -0.2rem;
}

.garden-lead {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* Stats Wrap & Atmosphere Ambient Switcher */
.garden-stats-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
}

/* Stats Ribbon */
.garden-stats-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0.56rem 1.4rem;
  border-radius: 999px;
  background: rgba(22, 24, 34, 0.7);
  border: 1px solid rgba(245, 190, 56, 0.2);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-count {
  color: var(--gold-light);
  font-weight: 600;
}

.stat-divider {
  opacity: 0.3;
}

/* Atmosphere Mood Pill */
.atmosphere-mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.54rem 1.05rem;
  border-radius: 999px;
  background: rgba(20, 18, 28, 0.75);
  border: 1px solid rgba(245, 190, 56, 0.25);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.atmosphere-mood-pill:hover {
  background: rgba(245, 190, 56, 0.15);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--atmo-pill-glow, rgba(245, 190, 56, 0.3));
}

.atmosphere-mood-pill:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.atmosphere-mood-pill.is-cooling {
  pointer-events: none;
  opacity: 0.85;
  cursor: wait;
}

.atmo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--atmo-accent, var(--gold-primary));
}

.atmo-icon svg {
  display: block;
}

/* Garden Controls Cluster & View Toggle */
.garden-controls-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.garden-view-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(20, 18, 28, 0.75);
  border: 1px solid rgba(245, 190, 56, 0.22);
  border-radius: 999px;
  padding: 2.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  min-height: 34px;
}

.view-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(245, 190, 56, 0.1);
}

.view-mode-btn.is-active {
  background: rgba(245, 190, 56, 0.2);
  border-color: rgba(245, 190, 56, 0.5);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(245, 190, 56, 0.25);
}

.view-mode-btn svg {
  display: block;
  color: var(--gold-primary);
}

.view-mode-btn:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* Living Meadow View Container & Canvas */
.living-meadow-wrap {
  position: relative;
  width: 100%;
  min-height: 72vh;
  margin-bottom: 2rem;
  border-radius: 20px;
  background: #060a14;
  background-clip: padding-box;
  border: 1px solid rgba(245, 190, 56, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.living-meadow-stage {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 64vh;
  border-radius: inherit;
  overflow: hidden;
}

.living-meadow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: pointer;
  border-radius: inherit;
}

.meadow-flower-tooltip {
  position: absolute;
  pointer-events: none;
  max-width: min(240px, 75vw);
  white-space: normal;
  word-break: break-word;
  padding: 0.45rem 0.85rem;
  background: rgba(14, 12, 20, 0.94);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 190, 56, 0.3);
  backdrop-filter: blur(10px);
  z-index: 25;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fff;
}

.meadow-flower-tooltip.is-visible {
  opacity: 1;
  transform: scale(1);
}

.meadow-flower-tooltip .tooltip-sender {
  font-weight: 600;
  color: var(--gold-light);
}

.meadow-flower-tooltip .tooltip-meta {
  font-size: 0.62rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.meadow-guide-pill {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.meadow-guide-pill svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Panoramic Meadow Navigation & Quick Jumps */
.meadow-nav-bar {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 8;
  max-width: calc(100% - 2rem);
  pointer-events: auto;
}

.meadow-pagination-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.meadow-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.meadow-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.meadow-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.meadow-plot-badge {
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 500;
  color: #fff;
  padding: 0 0.4rem;
  white-space: nowrap;
}

.meadow-quick-jumps {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meadow-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 28, 14, 0.75);
  border: 1px solid rgba(245, 190, 56, 0.35);
  backdrop-filter: blur(10px);
  color: var(--gold-light, #ffd570);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.meadow-jump-chip:hover {
  background: rgba(245, 190, 56, 0.2);
  border-color: var(--gold-primary, #f5be38);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  /* De-clutter Canvas Sky Controls */
  .meadow-nav-bar {
    position: absolute;
    top: 0.5rem;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 0.65rem;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 10;
  }

  /* Compact Icon-Only Arrow Switcher */
  #plot-selector,
  .meadow-pagination-cluster {
    position: absolute;
    left: max(50%, calc(115px + 8px + 40px));
    top: 0.5rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 3px;
    border-radius: 999px;
    background: rgba(10, 14, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    z-index: 11;
  }

  /* Hide middle text label on mobile to form icon-only chevron pill */
  #meadow-plot-badge,
  .meadow-plot-badge {
    display: none !important;
  }

  /* Minimum 36px to 40px touch bounds for chevron buttons */
  #plot-selector .meadow-nav-btn,
  .meadow-pagination-cluster .meadow-nav-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  #plot-selector .meadow-nav-btn svg,
  .meadow-pagination-cluster .meadow-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Quick-Jump Pills stacked cleanly on top-left */
  #meadow-quick-jumps,
  .meadow-quick-jumps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    pointer-events: auto;
    z-index: 10;
    max-width: calc(50% - 49px);
  }

  .meadow-jump-chip {
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    gap: 0.3rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .meadow-jump-chip svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
  }

  /* Auto-Dismiss Instruction Pill positioned low */
  .meadow-guide-pill {
    bottom: 0.45rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    max-width: calc(100% - 1.5rem);
    white-space: nowrap;
    z-index: 8;
  }
}

/* Garden Sync Status Indicator (R-27: Empty, Loading, and Error States) */
.garden-sync-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem auto 0;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.garden-sync-indicator.is-syncing {
  background: rgba(245, 190, 56, 0.08);
  border: 1px solid rgba(245, 190, 56, 0.25);
  color: var(--gold-light);
}

.garden-sync-indicator.is-synced {
  background: rgba(86, 178, 220, 0.1);
  border: 1px solid rgba(86, 178, 220, 0.3);
  color: #a8e5ff;
}

.garden-sync-indicator.is-error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #ffbaba;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
  display: inline-block;
  animation: syncPulse 1.4s infinite ease-in-out;
}

.sync-dot-done {
  width: auto;
  height: auto;
  background: transparent;
  animation: none;
  font-weight: bold;
  font-size: 0.8rem;
}

@keyframes syncPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--gold-glow); }
}

.sync-retry-btn {
  background: rgba(220, 80, 80, 0.25);
  border: 1px solid rgba(220, 80, 80, 0.45);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sync-retry-btn:hover {
  background: rgba(220, 80, 80, 0.45);
}

.garden-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin-bottom: 2.6rem;
  width: 100%;
  max-width: 100%;
}

.garden-filter-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  background: rgba(16, 14, 22, 0.7);
  border: 1px solid rgba(245, 190, 56, 0.18);
  border-radius: 999px;
  padding: 3.5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(245, 190, 56, 0.3);
  background: rgba(245, 190, 56, 0.08);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, rgba(245, 190, 56, 0.28), rgba(217, 130, 43, 0.22));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(245, 190, 56, 0.25);
}

.sync-blooms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(20, 18, 26, 0.85);
  border: 1px solid rgba(245, 190, 56, 0.28);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.sync-blooms-btn:hover {
  background: rgba(245, 190, 56, 0.18);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 14px var(--gold-glow);
  transform: translateY(-1px);
}

.filter-text-full,
.sync-text-full {
  display: inline !important;
}

.filter-text-short,
.sync-text-short {
  display: none !important;
}

/* =========================================================
   SUNFLOWER MEADOW GRID
   ========================================================= */
.meadow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* Cards View Pagination Bar */
.cards-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.4rem auto 1.5rem auto;
  padding: 0.6rem 1.3rem;
  background: rgba(18, 15, 24, 0.82);
  border: 1px solid rgba(245, 190, 56, 0.32);
  border-radius: 999px;
  width: fit-content;
  max-width: 90%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 190, 56, 0.15);
}

.cards-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.15rem;
  border-radius: 999px;
  background: rgba(245, 190, 56, 0.14);
  border: 1px solid rgba(245, 190, 56, 0.36);
  color: var(--gold-light, #fbe8a6);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.cards-nav-btn:hover:not(:disabled) {
  background: rgba(245, 190, 56, 0.28);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 190, 56, 0.35);
}

.cards-nav-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.cards-page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light, #fbe8a6);
  letter-spacing: 0.04em;
  padding: 0 0.35rem;
  user-select: none;
}

.cards-page-label,
.cards-page-sep,
.cards-total-pages {
  color: var(--gold-light, #fbe8a6);
  font-size: 0.76rem;
  font-weight: 600;
}

.cards-page-input {
  width: 44px;
  padding: 0.18rem 0.35rem;
  background: rgba(10, 11, 16, 0.85);
  border: 1px solid rgba(245, 190, 56, 0.38);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

.cards-page-input::-webkit-outer-spin-button,
.cards-page-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cards-page-input:focus {
  border-color: var(--gold-primary);
  background: rgba(18, 20, 29, 0.98);
  box-shadow: 0 0 8px rgba(245, 190, 56, 0.35);
}

/* Sunflower Card */
.sunflower-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(245, 190, 56, 0.2);
  border-radius: 12px;
  padding: 1.6rem 1.4rem 1.4rem 1.4rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.sunflower-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.sunflower-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 190, 56, 0.55);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px var(--gold-glow);
}

.sunflower-card:hover::before {
  opacity: 1;
}

/* Swaying Flower Emblem & Card Header Bar */
.card-flower-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 0.75rem;
}

.card-header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.card-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.flower-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
  background: radial-gradient(circle, rgba(245, 190, 56, 0.18) 0%, transparent 70%);
  border: 1px solid rgba(245, 190, 56, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(245, 190, 56, 0.2);
  transition: transform 0.4s ease;
  color: var(--gold-primary);
}

.flower-icon-wrap.seed-sea {
  background: radial-gradient(circle, rgba(86, 178, 220, 0.22) 0%, transparent 70%);
  border-color: rgba(86, 178, 220, 0.4);
  box-shadow: 0 0 12px rgba(86, 178, 220, 0.25);
  color: #64c2ec;
}

.flower-icon-wrap.seed-star {
  background: radial-gradient(circle, rgba(255, 215, 104, 0.22) 0%, transparent 70%);
  border-color: rgba(255, 215, 104, 0.4);
  box-shadow: 0 0 12px rgba(255, 215, 104, 0.25);
  color: #ffd768;
}

.flower-icon-wrap.seed-danielle {
  background: radial-gradient(circle, rgba(255, 215, 60, 0.38) 0%, rgba(245, 190, 56, 0.16) 60%, transparent 75%);
  border-color: rgba(255, 215, 60, 0.7);
  box-shadow: 0 0 16px rgba(255, 215, 60, 0.55), 0 0 32px rgba(245, 190, 56, 0.25);
  color: #ffe066;
  position: relative;
}

.flower-icon-wrap.seed-danielle svg {
  filter: drop-shadow(0 0 6px rgba(255, 215, 60, 0.7));
}

.sunflower-card.is-artist-card:hover .flower-icon-wrap.seed-danielle {
  transform: rotate(20deg) scale(1.14);
  box-shadow: 0 0 22px rgba(255, 215, 60, 0.75), 0 0 38px rgba(245, 190, 56, 0.4);
}

.flower-icon-wrap svg {
  width: 22px;
  height: 22px;
  display: block;
}

.sunflower-card:hover .flower-icon-wrap {
  transform: rotate(15deg) scale(1.08);
}

.card-origin-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 190, 56, 0.12);
  border: 1px solid rgba(245, 190, 56, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 220px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.card-origin-tag.my-note-tag {
  background: rgba(86, 178, 220, 0.15);
  border-color: rgba(86, 178, 220, 0.4);
  color: #9fe2ff;
}

/* Status Pill (Reported / Flagged - Uncluttered, Single Indicator) */
.card-status-pill {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-status-pill.is-reported {
  color: #ff9999;
  background: rgba(220, 53, 69, 0.16);
  border: 1px solid rgba(220, 53, 69, 0.35);
}

.card-status-pill.is-flagged {
  color: #ffdede;
  background: rgba(230, 60, 60, 0.25);
  border: 1px solid rgba(230, 60, 60, 0.55);
  animation: pulseFlag 2s infinite ease-in-out;
}

.card-reported-tag {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9999;
  background: rgba(220, 53, 69, 0.16);
  border: 1px solid rgba(220, 53, 69, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.card-admin-flag {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff5555;
  background: rgba(255, 60, 60, 0.22);
  border: 1px solid rgba(255, 60, 60, 0.5);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  animation: pulseFlag 2s infinite ease-in-out;
}

@keyframes pulseFlag {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.97); }
}

.sunflower-card.is-reported-card {
  opacity: 0.65;
  background: rgba(18, 14, 20, 0.7);
  border-color: rgba(220, 53, 69, 0.25);
  filter: grayscale(0.2);
}

.sunflower-card.is-reported-card:hover {
  opacity: 0.85;
}

.card-message.is-reported-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* Card Letter Text */
.card-message,
.bloom-card-message,
.card-quote {
  font-family: 'Cormorant Garamond', 'Cinzel', 'Nanum Myeongjo', 'Noto Serif KR', serif !important;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-ivory);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(245, 190, 56, 0.12);
  padding-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  margin-top: auto;
}

.card-sender {
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.card-sender-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-date {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-left: auto;
}

.card-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
}

.card-sunlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: rgba(245, 190, 56, 0.06);
  border: 1px solid rgba(245, 190, 56, 0.22);
  border-radius: 9999px;
  color: #fde047;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.52rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-sunlight-btn:hover {
  background: rgba(245, 190, 56, 0.18);
  border-color: rgba(245, 190, 56, 0.55);
  color: #fffde7;
  transform: translateY(-1px);
}

.card-sunlight-btn.is-nurtured {
  background: rgba(245, 190, 56, 0.22);
  border-color: rgba(245, 190, 56, 0.65);
  color: #ffffff;
}

.card-sunlight-btn.sunlight-pulse,
.reader-sunlight-btn.sunlight-pulse {
  animation: sunlightPulseAnim 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sunlightPulseAnim {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(245, 190, 56, 0)); }
  40% { transform: scale(1.18); filter: drop-shadow(0 0 14px rgba(245, 190, 56, 0.85)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(245, 190, 56, 0)); }
}

.date-short {
  display: none !important;
}

.date-full {
  display: inline !important;
}

@media (max-width: 768px) {
  .date-full {
    display: none !important;
  }

  .date-short {
    display: inline !important;
  }

  .meadow-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .sunflower-card {
    padding: 1.15rem 1.1rem 1rem 1.1rem;
    border-radius: 11px;
  }

  .flower-icon-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .flower-icon-wrap svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .card-flower-badge {
    margin-bottom: 0.65rem;
    gap: 0.6rem;
  }

  .card-origin-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.55rem;
    max-width: 190px;
  }

  .card-message {
    font-size: 0.94rem;
    line-height: 1.56;
    margin-bottom: 0.85rem;
    -webkit-line-clamp: 4;
  }

  .card-footer {
    padding-top: 0.55rem;
    gap: 0.35rem;
  }

  .card-sender {
    font-size: 0.66rem;
  }

  .card-date {
    font-size: 0.62rem;
    color: rgba(235, 230, 220, 0.6);
  }

  .garden-stats-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
    width: 100%;
  }

  .garden-stats-ribbon {
    font-size: 0.68rem;
    padding: 0.44rem 1.15rem;
    gap: 0.9rem;
    white-space: nowrap;
  }

  .atmosphere-mood-pill {
    padding: 0.46rem 1.1rem;
    font-size: 0.68rem;
    gap: 0.38rem;
    min-height: 38px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .garden-controls-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .garden-view-toggle {
    margin: 0 auto;
  }

  .view-mode-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.68rem;
    min-height: 38px;
  }

  .living-meadow-wrap {
    min-height: 60vh;
    border-radius: 14px;
  }

  .living-meadow-stage {
    min-height: 54vh;
  }

  .meadow-guide-pill {
    bottom: 0.45rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    max-width: 90%;
    text-align: center;
  }

  .filter-text-full,
  .sync-text-full {
    display: none !important;
  }

  .filter-text-short,
  .sync-text-short {
    display: inline !important;
  }

  .garden-toolbar-wrap {
    gap: 0.38rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.5rem;
  }

  .garden-toolbar-wrap::-webkit-scrollbar {
    display: none;
  }

  .garden-filter-bar {
    padding: 3px;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .filter-btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }

  .sync-blooms-btn {
    padding: 0.48rem 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    gap: 0.32rem;
    flex-shrink: 0;
  }

  .archivist-status-pill {
    top: auto !important;
    bottom: max(4.6rem, env(safe-area-inset-bottom, 4.6rem)) !important;
    font-size: 0.62rem !important;
    padding: 0.25rem 0.65rem !important;
  }
}

/* Floating "Plant a Sunflower" Button */
.plant-sunflower-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f5be38 0%, #d9822b 100%);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(245, 190, 56, 0.4), 0 0 20px rgba(245, 190, 56, 0.3);
  transition: var(--transition-smooth);
}

.plant-sunflower-fab:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 40px rgba(245, 190, 56, 0.6), 0 0 30px rgba(245, 190, 56, 0.5);
  color: #000;
}

.plant-sunflower-fab .fab-icon {
  font-size: 1.3rem;
  animation: gentlePulse 2s infinite ease-in-out alternate;
}

/* =========================================================
   PLANTING MODAL (PARCHMENT COMPOSER)
   ========================================================= */
.garden-modal-overlay,
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.garden-modal-overlay.is-active,
.modal-overlay.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.garden-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.composer-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  background: #10121a;
  border: 1px solid rgba(245, 190, 56, 0.4);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-royal);
  max-height: 90vh;
  overflow-y: auto;
}

.garden-modal-overlay.is-active .composer-window {
  transform: translateY(0) scale(1);
}

.garden-modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(245, 190, 56, 0.25);
  background: rgba(20, 21, 30, 0.7);
  color: var(--gold-light);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.garden-modal-close-btn:hover {
  background: rgba(245, 190, 56, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
  transform: rotate(90deg);
}

.composer-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.composer-badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-antique);
  display: block;
  margin-bottom: 0.4rem;
}

.composer-title {
  font-family: var(--font-serif-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-pure);
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Daily Bloom Notice Banner (Anti-Spam 1 Bloom / 24h) */
.composer-daily-notice {
  background: rgba(18, 20, 30, 0.95);
  border: 1px solid rgba(245, 190, 56, 0.35);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.daily-notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 190, 56, 0.15);
  border: 1px solid rgba(245, 190, 56, 0.3);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.daily-notice-content {
  flex: 1;
}

.daily-notice-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin: 0 0 0.35rem 0;
  font-weight: 500;
}

.daily-notice-desc {
  font-family: var(--font-serif-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.daily-notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(245, 190, 56, 0.15);
}

.daily-countdown-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.daily-countdown-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.05em;
}

/* Archivist Mode Banner & Identity Switcher in Composer */
.composer-artist-banner,
.composer-archivist-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 190, 56, 0.18) 0%, rgba(26, 20, 16, 0.9) 100%);
  border: 1px solid rgba(245, 190, 56, 0.45);
  color: var(--gold-light);
  font-family: var(--font-sans);
  box-shadow: 0 4px 18px rgba(245, 190, 56, 0.16);
  flex-wrap: wrap;
}

.composer-archivist-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde047;
}

.composer-archivist-badge .verified-seal-icon,
.composer-artist-banner .verified-seal-icon {
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.archivist-identity-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 14, 10, 0.75);
  border: 1px solid rgba(245, 190, 56, 0.3);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.archivist-toggle-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: rgba(254, 240, 138, 0.75);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.68rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archivist-toggle-tab:hover:not(.is-active) {
  color: #fffde7;
  background: rgba(245, 190, 56, 0.12);
}

.archivist-toggle-tab.is-active {
  background: linear-gradient(135deg, rgba(245, 190, 56, 0.35) 0%, rgba(212, 175, 55, 0.22) 100%);
  border-color: rgba(245, 190, 56, 0.65);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(245, 190, 56, 0.25);
}

.archivist-toggle-tab:focus-visible {
  outline: 2px solid #fde047;
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .composer-archivist-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .archivist-identity-toggle {
    width: 100%;
    display: flex;
  }
  .archivist-toggle-tab {
    flex: 1;
    text-align: center;
    padding: 0.32rem 0.4rem;
  }
}

.daily-view-mine-btn {
  background: rgba(245, 190, 56, 0.12);
  border: 1px solid rgba(245, 190, 56, 0.3);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.daily-view-mine-btn:hover {
  background: rgba(245, 190, 56, 0.25);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Form Label Row with Live Character Counter */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wish-char-count {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: rgba(235, 230, 220, 0.5);
  transition: color 0.2s ease;
}

.wish-char-count.is-near-limit {
  color: var(--gold-primary);
  font-weight: 600;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.form-optional-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(245, 190, 56, 0.08);
  border: 1px solid rgba(245, 190, 56, 0.18);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.form-hint {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.form-input, .form-textarea {
  background: rgba(8, 9, 14, 0.8);
  border: 1px solid rgba(245, 190, 56, 0.25);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-ivory);
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  transition: var(--transition-smooth);
  width: 100%;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

.form-input::selection, .form-textarea::selection {
  background: rgba(245, 190, 56, 0.45) !important;
  color: #ffffff !important;
}

.form-input::-moz-selection, .form-textarea::-moz-selection {
  background: rgba(245, 190, 56, 0.45) !important;
  color: #ffffff !important;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px var(--gold-glow);
  background: rgba(14, 16, 24, 0.95);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-inline-warning {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.38rem 0.7rem;
  background: rgba(235, 87, 87, 0.12);
  border: 1px solid rgba(235, 87, 87, 0.35);
  border-radius: 8px;
  color: #ff9898;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.form-inline-warning svg {
  color: #ff6b6b;
  flex-shrink: 0;
}

/* Seed Selection */
.seed-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.seed-radio-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.6);
  border: 1px solid rgba(245, 190, 56, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.seed-radio-btn:hover {
  border-color: var(--gold-primary);
}

.seed-radio-btn.is-selected {
  background: rgba(245, 190, 56, 0.15);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.seed-radio-btn .seed-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--gold-primary);
}

.seed-radio-btn[data-seed="sea"]:hover {
  border-color: #64c2ec;
}

.seed-radio-btn[data-seed="sea"].is-selected,
.seed-radio-btn[data-seed="sea"].active {
  background: rgba(100, 194, 236, 0.14);
  border-color: #64c2ec;
  box-shadow: 0 0 12px rgba(100, 194, 236, 0.35);
}

.seed-radio-btn[data-seed="sea"] .seed-icon {
  color: #64c2ec;
}

.seed-radio-btn[data-seed="sea"] .seed-name {
  color: #e0f2fe;
}

.seed-radio-btn[data-seed="sea"] .seed-desc {
  color: rgba(224, 242, 254, 0.75);
}

.seed-radio-btn[data-seed="sea"].is-selected .seed-desc,
.seed-radio-btn[data-seed="sea"].active .seed-desc {
  color: rgba(186, 230, 253, 0.95);
}

/* Star of Hope: Celestial Luminous Violet / Lavender */
.seed-radio-btn[data-seed="star"]:hover,
.flower-option[data-flower="star"]:hover,
.flower-type-option[data-flower="star"]:hover,
#flower-type-star:hover {
  border-color: #c084fc;
}

.seed-radio-btn[data-seed="star"].is-selected,
.seed-radio-btn[data-seed="star"].active,
.flower-option[data-flower="star"].is-selected,
.flower-option[data-flower="star"].active,
.flower-type-option[data-flower="star"].is-selected,
.flower-type-option[data-flower="star"].active,
#flower-type-star.active {
  background: rgba(192, 132, 252, 0.14);
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
}

.seed-radio-btn[data-seed="star"] .seed-icon,
.seed-radio-btn[data-seed="star"] svg,
.flower-option[data-flower="star"] .flower-type-icon,
.flower-option[data-flower="star"] svg,
.flower-type-option[data-flower="star"] .flower-type-icon,
.flower-type-option[data-flower="star"] svg,
#flower-type-star .flower-type-icon,
#flower-type-star svg,
[data-flower="star"] .flower-icon {
  color: #c084fc !important;
}

.flower-option[data-flower="star"] svg,
.flower-type-option[data-flower="star"] svg,
#flower-type-star svg {
  fill: currentColor;
}

.seed-radio-btn[data-seed="star"] .seed-name,
.flower-option[data-flower="star"] .flower-title,
.flower-type-option[data-flower="star"] .flower-title {
  color: #f5f3ff;
}

.seed-radio-btn[data-seed="star"] .seed-desc,
.flower-option[data-flower="star"] .flower-subtitle,
.flower-type-option[data-flower="star"] .flower-subtitle {
  color: rgba(245, 243, 255, 0.75);
}

.seed-radio-btn[data-seed="star"].is-selected .seed-desc,
.seed-radio-btn[data-seed="star"].active .seed-desc,
.flower-option[data-flower="star"].active .flower-subtitle,
.flower-type-option[data-flower="star"].active .flower-subtitle {
  color: rgba(233, 213, 255, 0.95);
}

.seed-radio-btn .seed-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.seed-radio-btn .seed-name {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--gold-light);
  line-height: 1.2;
}

.seed-radio-btn .seed-desc {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(235, 230, 220, 0.65);
  line-height: 1.25;
}

.seed-radio-btn.is-selected .seed-desc {
  color: rgba(245, 190, 56, 0.9);
}

/* Meaning Preview Line Below Options */
.seed-meaning-preview {
  margin-top: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: rgba(18, 20, 30, 0.75);
  border: 1px dashed rgba(245, 190, 56, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif-body);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.45;
  transition: var(--transition-smooth);
}

.seed-meaning-bullet {
  color: var(--gold-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.seed-meaning-text {
  color: var(--text-pure);
  transition: opacity 0.2s ease;
}

/* Submit Button */
.plant-submit-btn {
  background: linear-gradient(135deg, #f5be38 0%, #d9822b 100%);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(245, 190, 56, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.plant-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(245, 190, 56, 0.55);
  color: #000;
}

/* =========================================================
   COMPOSER SUCCESS SCREEN
   ========================================================= */
#composer-modal.is-success #composer-close-btn,
#composer-modal.is-success #close-composer-btn,
.composer-window:has(#composer-success-view:not([style*="display: none"])) #close-composer-btn,
.composer-modal-content:has(#composer-success-view:not(.hidden)) #composer-close-btn {
  display: none !important;
}

.composer-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.2rem 1.4rem;
  animation: fadeIn 0.4s ease-out;
}

.composer-success-emblem {
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-success-title {
  font-family: var(--font-serif-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
  font-variant-ligatures: normal;
  font-feature-settings: "liga" 1, "dlig" 1;
  text-shadow: 0 0 20px rgba(245, 190, 56, 0.3);
}

.composer-success-desc {
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 0 2rem;
}

.composer-success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.action-pill-gold {
  background: linear-gradient(135deg, #f5be38 0%, #d9822b 100%);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 190, 56, 0.35);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-pill-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 190, 56, 0.55);
  color: #000;
}

.action-pill-subtle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(245, 190, 56, 0.28);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-pill-subtle:hover {
  background: rgba(245, 190, 56, 0.12);
  color: var(--gold-light);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* =========================================================
   LETTER READER MODAL
   ========================================================= */
.reader-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  background: #12131b;
  border: 1px solid rgba(245, 190, 56, 0.4);
  border-radius: 16px;
  padding: 2.4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px var(--gold-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-royal);
  max-height: min(80vh, 720px);
  overflow-y: auto;
}

#reader-modal {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.85rem;
}

.garden-modal-overlay.is-active .reader-window {
  transform: translateY(0) scale(1);
}

.reader-window.is-artist-letter {
  border-color: rgba(245, 190, 56, 0.65);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 190, 56, 0.35);
  background: linear-gradient(170deg, #18141e 0%, #100f16 100%);
}

.reader-verified-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  padding-right: 3rem;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 190, 56, 0.2) 0%, rgba(20, 16, 26, 0.85) 100%);
  border: 1px solid rgba(245, 190, 56, 0.5);
  box-shadow: 0 4px 18px rgba(245, 190, 56, 0.18);
}

.verified-seal-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(245, 190, 56, 0.5));
}

.verified-seal-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.verified-seal-heading {
  font-family: var(--font-serif-display, Georgia, serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light, #fbe8a6);
  text-transform: uppercase;
}

.verified-seal-caption {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(245, 230, 200, 0.85);
  letter-spacing: 0.02em;
}

.reader-sender-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.reader-verified-badge,
.card-verified-seal,
.tooltip-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(245, 190, 56, 0.18);
  border: 1px solid rgba(245, 190, 56, 0.45);
  color: var(--gold-light, #fbe8a6);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
  box-shadow: 0 0 10px rgba(245, 190, 56, 0.2);
}

.reader-verified-badge svg,
.card-verified-seal svg,
.tooltip-verified-badge svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.sunflower-card.is-artist-card {
  border-color: rgba(245, 190, 56, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 190, 56, 0.28);
  background: linear-gradient(160deg, rgba(32, 24, 16, 0.85) 0%, rgba(20, 16, 26, 0.8) 100%);
}

.sunflower-card.is-artist-card:hover {
  border-color: #ffd700;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 34px rgba(245, 190, 56, 0.45);
}

/* Official Artist Card Prestige Crown Ribbon */
.card-artist-ribbon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.4rem 0.44rem 1.4rem;
  margin: -1.6rem -1.4rem 1.1rem -1.4rem;
  background: linear-gradient(90deg, rgba(245, 190, 56, 0.28) 0%, rgba(245, 190, 56, 0.1) 75%, transparent 100%);
  border-bottom: 1px solid rgba(245, 190, 56, 0.35);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light, #fbe8a6);
  user-select: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-artist-ribbon svg {
  color: var(--gold-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(245, 190, 56, 0.6));
}

.sunflower-card.is-artist-card .card-origin-tag {
  max-width: none;
  background: rgba(245, 190, 56, 0.18);
  border-color: rgba(245, 190, 56, 0.4);
}

@media (max-width: 640px) {
  .card-artist-ribbon {
    padding: 0.52rem 1.1rem 0.42rem 1.1rem;
    margin: -1.15rem -1.1rem 0.85rem -1.1rem;
    font-size: 0.62rem;
    line-height: 1.2;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
  }

  .reader-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0.75rem auto;
  }

  .reader-sunlight-btn,
  #reader-send-sunlight-btn {
    margin: 0 !important;
  }

  .reader-share-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
  }

  /* Mobile Success Modal Compacting */
  #composer-modal.is-success .composer-window,
  .composer-window:has(#composer-success-view:not([style*="display: none"])) {
    max-width: 320px;
    padding: 1.25rem 1rem;
    min-height: auto;
  }

  #composer-modal.is-success .composer-success-view,
  .composer-window:has(#composer-success-view:not([style*="display: none"])) .composer-success-view {
    padding: 0;
  }

  .composer-success-title {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
    font-variant-ligatures: normal;
    font-feature-settings: "liga" 1, "dlig" 1;
  }

  .composer-success-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
  }

  .composer-success-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .composer-success-actions .action-pill-gold,
  .composer-success-actions .action-pill-subtle {
    width: 100%;
    min-height: 40px;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .card-artist-ribbon {
    padding: 0.48rem 1rem 0.38rem 1rem;
    margin: -1.05rem -1rem 0.75rem -1rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
}

.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 190, 56, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
}

/* Sequential Letter-to-Letter Navigation (Bottom of Window, Outside Reader Card) */
.reader-nav-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0.85rem;
  margin: 0 auto;
  background: rgba(14, 15, 22, 0.94);
  border: 1px solid rgba(245, 190, 56, 0.35);
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(245, 190, 56, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reader-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 190, 56, 0.14);
  border: 1px solid rgba(245, 190, 56, 0.3);
  color: var(--gold-light, #fbe8a6);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.reader-nav-btn:hover:not(:disabled) {
  background: rgba(245, 190, 56, 0.3);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

.reader-nav-btn:disabled {
  opacity: 0.26;
  cursor: not-allowed;
  pointer-events: none;
}

.reader-counter-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-light, #fbe8a6);
  letter-spacing: 0.06em;
  user-select: none;
}

.reader-flower-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.reader-flower-info > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.reader-flower-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
  filter: drop-shadow(0 2px 8px rgba(245, 190, 56, 0.4));
  color: var(--gold-primary);
}

.reader-flower-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  display: block;
}

.reader-sender-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.reader-sender-name {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-block;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.reader-meta-loc {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.3;
}

.reader-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 2.2rem;
}

/* Dedicated Sunlight & Keepsake Action Bar (Lower Reader Section) */
.reader-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0.75rem auto;
}

.reader-action-btn,
.reader-download-card-btn,
#reader-download-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  background: rgba(245, 190, 56, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 9999px;
  color: #fde047;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 10px rgba(245, 190, 56, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reader-download-card-btn svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.reader-action-btn:hover:not(:disabled),
.reader-download-card-btn:hover:not(:disabled),
#reader-download-card-btn:hover:not(:disabled) {
  background: rgba(245, 190, 56, 0.2);
  border-color: rgba(245, 190, 56, 0.65);
  color: #fffde7;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 190, 56, 0.25);
}

.reader-action-btn:active:not(:disabled),
.reader-download-card-btn:active:not(:disabled),
#reader-download-card-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.reader-action-btn:disabled,
.reader-download-card-btn:disabled,
#reader-download-card-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.reader-action-btn:focus-visible,
.reader-download-card-btn:focus-visible,
#reader-download-card-btn:focus-visible {
  outline: 2px solid #fde047;
  outline-offset: 2px;
}

.reader-sunlight-btn,
#reader-send-sunlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  background: rgba(245, 190, 56, 0.1);
  border: 1px solid rgba(245, 190, 56, 0.38);
  border-radius: 9999px;
  color: #fde047;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 12px rgba(245, 190, 56, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reader-sunlight-btn:hover:not(.is-nurtured) {
  background: rgba(245, 190, 56, 0.22);
  border-color: rgba(245, 190, 56, 0.7);
  color: #fffde7;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 190, 56, 0.3);
}

.reader-sunlight-btn:active:not(.is-nurtured) {
  transform: translateY(1px);
}

.reader-sunlight-btn.is-nurtured {
  background: rgba(245, 190, 56, 0.22);
  border-color: rgba(245, 190, 56, 0.75);
  color: #fff;
  cursor: default;
  box-shadow: 0 0 18px rgba(245, 190, 56, 0.3);
}

.reader-sunlight-btn .sunlight-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 14, 10, 0.65);
  border: 1px solid rgba(245, 190, 56, 0.3);
  border-radius: 9999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fef08a;
  min-width: 1.35rem;
}

.reader-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 190, 56, 0.22);
  border-radius: 9999px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reader-report-btn:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  transform: translateY(-1px);
}

.reader-report-btn .report-flag-icon {
  width: 13px;
  height: 13px;
  display: block;
}

.reader-report-btn.is-reported {
  color: rgba(248, 113, 113, 0.9);
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  cursor: default;
  pointer-events: none;
}

.reader-prose,
.reader-message-body {
  font-family: 'Cormorant Garamond', 'Cinzel', 'Nanum Myeongjo', 'Noto Serif KR', serif !important;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-ivory);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  white-space: pre-line;
}

.reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(245, 190, 56, 0.15);
  padding-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.reader-seal-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-antique);
}

.reader-date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bloom Spawn Burst Animation */
@keyframes bloomPop {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.18) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.sunflower-card.is-newly-planted {
  animation: bloomPop 0.8s var(--ease-royal);
  border-color: var(--gold-primary);
  box-shadow: 0 0 35px var(--gold-glow);
}

/* =========================================================
   RESPONSIVE DESIGN (ANTI-SLOP MOBILE POLISH)
   ========================================================= */
@media (max-width: 768px) {
  .garden-header {
    padding: 1rem 1.2rem;
  }

  .garden-main {
    padding: 6.5rem 0.85rem 7rem 0.85rem;
  }

  .meadow-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .garden-modal-overlay,
  .modal-overlay {
    padding: 0.75rem 0.5rem !important;
  }

  /* Compact Floating Action Button: Never crowds bottom controls or mascot */
  .plant-sunflower-fab {
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
    padding: 0.45rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    gap: 0.38rem;
    box-shadow: 0 6px 18px rgba(245, 190, 56, 0.38), 0 0 14px rgba(245, 190, 56, 0.22);
  }

  .plant-sunflower-fab .fab-icon svg {
    width: 15px;
    height: 15px;
  }

  /* Refined, Spacious Letter Making Modal (Composer) & Sync Modal */
  .composer-window,
  .sync-blooms-window {
    width: 95%;
    max-width: 450px;
    padding: 1.2rem 1rem 1.3rem 1rem;
    border-radius: 14px;
    max-height: 88vh;
    max-height: 88dvh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(245, 190, 56, 0.2);
  }

  .garden-modal-close-btn {
    top: 0.65rem;
    right: 0.65rem;
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
  }

  .composer-header {
    margin-bottom: 0.7rem;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .composer-badge {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.2rem;
  }

  .composer-title {
    font-size: 1.15rem;
    line-height: 1.24;
  }

  /* Cooldown Notice in Composer */
  .composer-daily-notice {
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.75rem;
    gap: 0.65rem;
    border-radius: 10px;
  }

  .daily-notice-icon {
    width: 32px;
    height: 32px;
  }

  .daily-notice-icon svg {
    width: 16px;
    height: 16px;
  }

  .daily-notice-title {
    font-size: 0.96rem;
    margin-bottom: 0.2rem;
  }

  .daily-notice-desc {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
  }

  .daily-countdown-tag {
    font-size: 0.68rem;
  }

  .daily-view-mine-btn {
    font-size: 0.64rem;
    padding: 0.35rem 0.75rem;
  }

  .composer-form {
    gap: 0.65rem;
  }

  .form-group {
    gap: 0.22rem;
  }

  .form-label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .wish-char-count {
    font-size: 0.62rem;
  }

  .form-textarea {
    min-height: 75px;
    height: 80px;
    font-size: 0.88rem;
    padding: 0.48rem 0.7rem;
    line-height: 1.45;
    border-radius: 6px;
  }

  .form-input {
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
    border-radius: 6px;
  }

  /* Flower Seed Options: 3 compact buttons side-by-side in 1 neat row instead of 3 huge stacked boxes! */
  .seed-options {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem;
  }

  .seed-radio-btn {
    padding: 0.4rem 0.2rem;
    gap: 0.2rem;
    border-radius: 6px;
  }

  .seed-radio-btn .seed-icon svg {
    width: 17px;
    height: 17px;
  }

  .seed-name {
    font-size: 0.62rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .seed-desc {
    display: none !important;
  }

  .seed-meaning-preview {
    font-size: 0.68rem;
    line-height: 1.35;
    padding: 0.35rem 0.6rem;
    margin-top: 0.35rem;
    border-radius: 6px;
  }

  .plant-submit-btn {
    padding: 0.68rem 1.1rem;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    border-radius: 8px;
    margin-top: 0.2rem;
  }

  /* Report Community Violation Window */
  .report-window {
    width: 95%;
    max-width: 450px;
    padding: 1.2rem 1rem 1.3rem 1rem;
    border-radius: 14px;
    max-height: 88vh;
    max-height: 88dvh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(220, 53, 69, 0.15);
  }

  .report-header {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    padding-right: 1.8rem;
  }

  .report-badge {
    font-size: 0.56rem;
    padding: 0.16rem 0.5rem;
    margin-bottom: 0.25rem;
  }

  .report-title {
    font-size: 1.12rem;
    line-height: 1.22;
    margin: 0 0 0.25rem 0;
  }

  .report-desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .report-target-preview {
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.65rem;
    border-radius: 8px;
  }

  .report-target-meta {
    font-size: 0.66rem;
    margin-bottom: 0.2rem;
  }

  .report-target-snippet {
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .report-reasons-group {
    margin-bottom: 0.75rem;
  }

  .report-reasons-label {
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }

  .report-reasons-list {
    gap: 0.35rem;
  }

  .report-reason-item {
    padding: 0.42rem 0.6rem;
    gap: 0.5rem;
    min-height: 38px;
    border-radius: 6px;
  }

  .report-reason-item input[type="radio"] {
    width: 14px;
    height: 14px;
  }

  .report-reason-item span {
    font-size: 0.71rem;
    line-height: 1.3;
  }

  .report-actions {
    padding-top: 0.75rem;
    gap: 0.5rem;
  }

  .report-cancel-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  .report-submit-btn {
    padding: 0.52rem 1.1rem;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  /* Reader Modal */
  .reader-window {
    width: 92%;
    max-width: 440px;
    padding: 1.45rem 1.3rem 1.25rem 1.3rem;
    border-radius: 16px;
    max-height: 88vh;
    max-height: 88dvh;
    box-sizing: border-box;
  }

  .reader-header {
    margin-bottom: 0.95rem;
    padding-bottom: 0.8rem;
  }

  .reader-flower-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .reader-flower-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .reader-sender-name {
    font-size: 0.94rem;
    line-height: 1.3;
    white-space: normal;
    word-break: keep-all;
  }

  .reader-meta-loc {
    font-size: 0.65rem;
    margin-top: 0.12rem;
  }

  .reader-header-actions {
    margin-right: 1.8rem;
  }

  .reader-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0.75rem auto;
  }

  .reader-sunlight-btn,
  #reader-send-sunlight-btn {
    width: auto;
    max-width: fit-content;
    margin: 0;
    justify-content: center;
    padding: 0.32rem 0.75rem;
    font-size: 0.7rem;
    gap: 0.38rem;
  }

  .reader-sunlight-btn .sunlight-icon {
    width: 13px;
    height: 13px;
  }

  .reader-sunlight-btn .sunlight-count-badge {
    padding: 0.05rem 0.42rem;
    font-size: 0.65rem;
    min-width: 1.15rem;
  }

  .reader-report-btn {
    padding: 0.28rem 0.65rem;
    font-size: 0.64rem;
    gap: 0.25rem;
  }

  .reader-report-btn .report-flag-icon {
    width: 12px;
    height: 12px;
  }

  .reader-prose {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
  }

  .reader-footer {
    padding-top: 0.75rem;
    gap: 0.6rem;
  }

  .reader-seal-wrap {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .reader-date {
    font-size: 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Compact Cards Pagination for Mobile */
  .cards-pagination-wrap {
    gap: 0.45rem;
    padding: 0.3rem 0.6rem;
    margin: 1.3rem auto 0.8rem auto;
    max-width: 95%;
  }

  .cards-nav-btn {
    padding: 0.26rem 0.62rem;
    font-size: 0.66rem;
    gap: 0.22rem;
  }

  .cards-page-indicator {
    font-size: 0.68rem;
    gap: 0.25rem;
    padding: 0 0.15rem;
  }

  .cards-page-input {
    width: 36px;
    padding: 0.12rem 0.2rem;
    font-size: 0.74rem;
  }

  .reader-nav-cluster {
    padding: 0.3rem 0.6rem;
    margin: 0.6rem 0 0.5rem 0;
    gap: 0.4rem;
  }

  .reader-nav-btn {
    padding: 0.24rem 0.55rem;
    font-size: 0.64rem;
    gap: 0.2rem;
  }

  .reader-counter-badge {
    font-size: 0.66rem;
  }

  /* System Notice Modal */
  .system-notice-window {
    width: 92%;
    max-width: 360px;
    padding: 1.4rem 1.1rem;
    border-radius: 14px;
  }

  .system-notice-icon-wrap {
    width: 42px;
    height: 42px;
    margin-bottom: 0.75rem;
  }

  .system-notice-title {
    font-size: 1.12rem;
    margin-bottom: 0.35rem;
  }

  .system-notice-message {
    font-size: 0.82rem;
    line-height: 1.48;
    margin-bottom: 1.1rem;
  }

  .system-notice-actions {
    gap: 0.55rem;
  }

  .system-notice-confirm-btn,
  .system-notice-cancel-btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.74rem;
  }

  /* Admin Passkey Auth Modal */
  .admin-auth-window {
    width: 95%;
    max-width: 420px;
    padding: 1.25rem 1rem 1.35rem 1rem;
    border-radius: 14px;
    max-height: 88vh;
    max-height: 88dvh;
  }

  .admin-auth-header {
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .admin-auth-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }

  .admin-auth-desc {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .admin-auth-form {
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .plant-sunflower-fab {
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
    right: max(0.85rem, env(safe-area-inset-right, 0.85rem));
    padding: 0.38rem 0.72rem;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    gap: 0.32rem;
    box-shadow: 0 5px 15px rgba(245, 190, 56, 0.35);
  }

  .plant-sunflower-fab .fab-icon svg {
    width: 13px;
    height: 13px;
  }

  .composer-window,
  .report-window,
  .admin-auth-window,
  .sync-blooms-window {
    width: calc(100vw - 1.25rem);
    padding: 1.05rem 0.85rem 1.2rem 0.85rem;
  }

  .composer-title,
  .report-title,
  .admin-auth-title,
  .sync-blooms-title {
    font-size: 1.05rem;
  }

  .sync-blooms-desc {
    font-size: 0.78rem;
  }

  .meadow-grid {
    gap: 0.72rem;
  }

  .sunflower-card {
    padding: 1.05rem 1rem 0.9rem 1rem;
    border-radius: 10px;
  }

  .flower-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .flower-icon-wrap svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .card-flower-badge {
    margin-bottom: 0.55rem;
    gap: 0.5rem;
  }

  .card-origin-tag {
    font-size: 0.56rem;
    padding: 0.16rem 0.48rem;
    max-width: 140px;
  }

  .card-message {
    font-size: 0.88rem;
    line-height: 1.52;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 4;
  }

  .reader-window {
    width: calc(100vw - 1.5rem);
    max-width: 420px;
    padding: 1.35rem 1.15rem 1.15rem 1.15rem;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .reader-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.7rem;
    gap: 0.65rem;
  }

  .reader-flower-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .reader-flower-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .reader-sender-name {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .reader-meta-loc {
    font-size: 0.62rem;
    margin-top: 0.1rem;
  }

  .reader-header-actions {
    margin-right: 1.5rem;
  }

  .reader-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0.75rem auto;
  }

  .reader-sunlight-btn,
  #reader-send-sunlight-btn {
    width: auto;
    max-width: fit-content;
    margin: 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.68rem;
    gap: 0.35rem;
  }

  .reader-sunlight-btn .sunlight-icon {
    width: 12px;
    height: 12px;
  }

  .reader-sunlight-btn .sunlight-count-badge {
    padding: 0.04rem 0.38rem;
    font-size: 0.62rem;
    min-width: 1.1rem;
  }

  .reader-report-btn {
    padding: 0.22rem 0.52rem;
    font-size: 0.58rem;
    gap: 0.2rem;
  }

  .reader-report-btn .report-flag-icon {
    width: 11px;
    height: 11px;
  }

  .reader-prose {
    font-size: 0.98rem;
    line-height: 1.66;
    margin: 1.1rem 0 1.2rem 0;
  }

  .reader-footer {
    padding-top: 0.7rem;
    gap: 0.55rem;
  }

  .reader-seal-wrap {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .reader-date {
    font-size: 0.62rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .card-footer {
    padding-top: 0.45rem;
    gap: 0.3rem;
  }

  .card-sender {
    font-size: 0.64rem;
  }

  .card-date {
    font-size: 0.6rem;
  }

  .garden-stats-wrap {
    gap: 0.75rem;
  }

  .garden-stats-ribbon {
    font-size: 0.64rem;
    padding: 0.4rem 1.05rem;
    gap: 0.7rem;
  }

  .atmosphere-mood-pill {
    padding: 0.42rem 1rem;
    font-size: 0.64rem;
    gap: 0.32rem;
  }

  .atmosphere-mood-pill svg {
    width: 12px;
    height: 12px;
  }

  .garden-controls-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.68rem;
    width: 100%;
  }

  .view-mode-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.62rem;
    gap: 0.22rem;
  }

  .view-mode-btn svg {
    width: 11px;
    height: 11px;
  }

  .living-meadow-wrap {
    min-height: 54vh;
  }

  .living-meadow-stage {
    min-height: 48vh;
  }

  .meadow-guide-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    bottom: 0.45rem;
  }

  .garden-toolbar-wrap {
    gap: 0.28rem;
    margin-bottom: 1.6rem;
    padding: 0.2rem 0.35rem;
  }

  .garden-filter-bar {
    padding: 2.5px;
    gap: 0.18rem;
  }

  .filter-btn {
    padding: 0.38rem 0.62rem;
    font-size: 0.64rem;
  }

  .sync-blooms-btn {
    padding: 0.44rem 0.65rem;
    font-size: 0.64rem;
    gap: 0.25rem;
  }

  .sync-blooms-btn svg {
    width: 12px;
    height: 12px;
  }
}

/* =========================================================
   ARCHIVIST MODERATION MODE
   ========================================================= */

/* Floating persistent status pill (Top-Center HUD: Completely clear of Dani and bottom controls) */
.archivist-status-pill {
  position: fixed !important;
  top: 1.25rem !important;
  left: 50% !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  background: rgba(20, 10, 14, 0.94);
  border: 1px solid rgba(235, 75, 75, 0.6);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 14px rgba(220, 53, 69, 0.35);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: #ffcccc;
  letter-spacing: 0.03em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: pillSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.archivist-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 8px #ff4757;
  animation: syncPulse 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

.archivist-shield-icon {
  width: 12px;
  height: 12px;
  color: #ff7d7d;
  flex-shrink: 0;
  display: block;
}

.archivist-label {
  font-weight: 600;
  white-space: nowrap;
}

.archivist-exit-btn {
  background: rgba(220, 53, 69, 0.25);
  border: 1px solid rgba(220, 53, 69, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: 0.25rem;
}

.archivist-exit-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
}

@keyframes pillSlideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 640px) {
  .archivist-status-pill {
    top: 3.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0.22rem 0.62rem !important;
    font-size: 0.62rem !important;
    gap: 0.35rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 0 10px rgba(220, 53, 69, 0.4) !important;
  }

  .archivist-shield-icon {
    width: 11px !important;
    height: 11px !important;
  }

  .archivist-indicator-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .archivist-exit-btn {
    padding: 0.1rem 0.45rem !important;
    font-size: 0.58rem !important;
  }
}

/* Card Admin Delete Button & Moderation Styling */
.card-admin-delete-btn {
  background: rgba(30, 15, 20, 0.85);
  border: 1px solid rgba(235, 75, 75, 0.4);
  color: #ff9999;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.card-admin-delete-btn:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
}

.card-admin-delete-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.sunflower-card.is-admin-moderated {
  border-color: rgba(245, 190, 56, 0.35);
}

.sunflower-card.is-admin-moderated:hover {
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(220, 53, 69, 0.2);
}

/* Card Disintegration Animation */
@keyframes cardVanish {
  0% { transform: scale(1); opacity: 1; filter: blur(0); }
  50% { transform: scale(0.92) translateY(-10px); opacity: 0.5; filter: blur(2px); }
  100% { transform: scale(0.7) translateY(-25px); opacity: 0; filter: blur(8px); max-height: 0; margin: 0; padding: 0; }
}

.sunflower-card.is-vanishing {
  animation: cardVanish 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

/* Sync Blooms Window */
.sync-blooms-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #141219;
  border: 1px solid rgba(245, 190, 56, 0.35);
  border-radius: 14px;
  padding: 2.2rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--gold-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-royal);
}

.garden-modal-overlay.is-active .sync-blooms-window,
.modal-overlay.is-active .sync-blooms-window {
  transform: translateY(0) scale(1);
}

.sync-blooms-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.sync-blooms-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 190, 56, 0.12);
  border: 1px solid rgba(245, 190, 56, 0.28);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.sync-blooms-title {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  color: var(--text-pure);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.sync-blooms-desc {
  font-family: var(--font-serif-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.sync-blooms-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sync-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.sync-submit-btn {
  background: linear-gradient(135deg, #f5be38 0%, #d9822b 100%);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(245, 190, 56, 0.35);
}

.sync-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 190, 56, 0.5);
}

.sync-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sync-cancel-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-pure);
}

/* Admin Auth Window */
.admin-auth-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #141219;
  border: 1px solid rgba(245, 190, 56, 0.4);
  border-radius: 14px;
  padding: 2.2rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--gold-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-royal);
}

.garden-modal-overlay.is-active .admin-auth-window,
.modal-overlay.is-active .admin-auth-window {
  transform: translateY(0) scale(1);
}

.admin-auth-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.admin-auth-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff9999;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.admin-auth-title {
  font-family: var(--font-serif-display);
  font-size: 1.4rem;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.admin-auth-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Admin Auth Form & Generous Spacing */
.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.admin-auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.admin-auth-error {
  background: rgba(220, 53, 69, 0.18);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ffc9c9;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.admin-submit-btn {
  width: 100%;
  margin-top: 0.85rem;
  background: linear-gradient(135deg, #f5be38 0%, #d9822b 100%);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 190, 56, 0.45);
}

/* Archivist Toast Notification */
#archivist-toast,
.archivist-toast,
.solis-toast {
  position: fixed;
  top: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  z-index: 10005;
  z-index: 10005 !important;
  background: rgba(24, 12, 16, 0.96);
  border: 1.5px solid rgba(230, 85, 85, 0.7);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(220, 53, 69, 0.4);
  color: #ffdede;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#archivist-toast.is-visible,
.archivist-toast.is-visible,
.solis-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* =========================================================
   REPORT MODAL (SANCTUARY VIOLATION REPORTING)
   ========================================================= */
.report-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: #14131a;
  border: 1px solid rgba(245, 190, 56, 0.35);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 30px rgba(220, 53, 69, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-royal);
  max-height: 90vh;
  overflow-y: auto;
}

.garden-modal-overlay.is-active .report-window,
.modal-overlay.is-active .report-window {
  transform: translateY(0) scale(1);
}

.report-header {
  text-align: left;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(245, 190, 56, 0.15);
  padding-bottom: 1rem;
}

.report-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9999;
  background: rgba(220, 53, 69, 0.14);
  border: 1px solid rgba(220, 53, 69, 0.32);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.report-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  color: var(--text-pure);
  margin: 0 0 0.4rem 0;
  font-weight: 500;
}

.report-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Note Preview inside Report Dialog */
.report-target-preview {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(245, 190, 56, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
}

.report-target-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.report-target-sender {
  font-weight: 600;
}

.report-target-snippet {
  font-family: var(--font-serif-body);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Reasons List */
.report-reasons-group {
  margin-bottom: 1.5rem;
}

.report-reasons-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.report-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-reason-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-reason-item:hover {
  background: rgba(245, 190, 56, 0.06);
  border-color: rgba(245, 190, 56, 0.28);
}

.report-reason-item input[type="radio"] {
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.report-reason-item span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  user-select: none;
}

.report-reason-item:has(input[type="radio"]:checked) {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.35);
}

.report-reason-item:has(input[type="radio"]:checked) span {
  color: #ffdede;
}

/* Report Action Buttons */
.report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(245, 190, 56, 0.15);
  padding-top: 1.2rem;
}

.report-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.report-cancel-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-pure);
}

.report-submit-btn {
  background: linear-gradient(135deg, #e65555 0%, #b82d2d 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
}

.report-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
  filter: brightness(1.1);
}

/* =========================================================
   SOLIS SYSTEM NOTICE MODAL (BESPOKE IN-APP NOTICES & ALERTS)
   ========================================================= */
.system-notice-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #14131b;
  border: 1px solid rgba(245, 190, 56, 0.4);
  border-radius: 16px;
  padding: 2.4rem 2rem 2rem 2rem;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.92), 0 0 35px var(--gold-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-royal);
  text-align: center;
}

.garden-modal-overlay.is-active .system-notice-window,
.modal-overlay.is-active .system-notice-window {
  transform: translateY(0) scale(1);
}

.system-notice-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 1.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.system-notice-icon-wrap svg {
  width: 26px;
  height: 26px;
  display: block;
}

.system-notice-icon-wrap.emblem-success {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, transparent 70%);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
}

.system-notice-icon-wrap.emblem-info {
  background: radial-gradient(circle, rgba(245, 190, 56, 0.22) 0%, transparent 70%);
  border: 1px solid rgba(245, 190, 56, 0.4);
  color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(245, 190, 56, 0.25);
}

.system-notice-icon-wrap.emblem-warning {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.system-notice-icon-wrap.emblem-danger {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

.system-notice-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 190, 56, 0.12);
  border: 1px solid rgba(245, 190, 56, 0.28);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.system-notice-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  color: var(--text-pure);
  margin: 0 0 0.65rem 0;
  font-weight: 500;
}

.system-notice-message {
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.6rem 0;
  white-space: pre-line;
}

.system-notice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.system-notice-confirm-btn {
  background: linear-gradient(135deg, #f5be38 0%, #d9822b 100%);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(245, 190, 56, 0.35);
}

.system-notice-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 190, 56, 0.55);
}

.system-notice-confirm-btn.is-danger {
  background: linear-gradient(135deg, #e65555 0%, #b82d2d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.35);
}

.system-notice-confirm-btn.is-danger:hover {
  box-shadow: 0 8px 24px rgba(220, 53, 69, 0.55);
}

.system-notice-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.system-notice-cancel-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-pure);
}

/* =========================================================
   CONSTELLATION & GARDEN OVERVIEW MODAL
   ========================================================= */
.constellation-modal-overlay .garden-modal-backdrop {
  background: rgba(6, 9, 20, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.constellation-window {
  position: relative;
  width: 100%;
  max-width: min(92vw, 520px);
  max-height: min(90vh, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.97) 0%, rgba(6, 9, 20, 0.99) 100%);
  border: 1px solid rgba(245, 190, 56, 0.32);
  border-radius: 20px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 190, 56, 0.12);
  color: #e2e8f0;
  box-sizing: border-box;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.constellation-modal-overlay.is-active .constellation-window {
  transform: translateY(0) scale(1);
}

.constellation-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.constellation-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 190, 56, 0.12);
  border: 1px solid rgba(245, 190, 56, 0.28);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.constellation-title {
  font-family: var(--font-cinzel), serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff9e6;
  text-shadow: 0 0 16px rgba(245, 190, 56, 0.3);
  margin: 0 0 0.3rem 0;
  line-height: 1.25;
}

.constellation-subtitle {
  font-family: var(--font-serif), serif;
  font-size: 0.88rem;
  font-style: italic;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Stat Summary Row: 3 compact pill cards */
.constellation-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

.constellation-stat-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(245, 190, 56, 0.2);
  border-radius: 14px;
  padding: 0.75rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.constellation-stat-value {
  font-family: var(--font-cinzel), serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fcd34d;
  line-height: 1.2;
}

.constellation-stat-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-top: 0.25rem;
  line-height: 1.25;
}

/* Astrological Graphic: Star Chart Node Network */
.constellation-graphic-wrap {
  width: 100%;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(26, 36, 62, 0.5) 0%, rgba(10, 14, 26, 0.8) 100%);
  border: 1px solid rgba(245, 190, 56, 0.16);
  padding: 0.5rem 0.25rem;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 1rem;
}

.constellation-svg {
  width: 100%;
  height: auto;
  display: block;
}

.constellation-star-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
  fill: #cbd5e1;
}

.constellation-center-label {
  font-family: var(--font-cinzel), serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: #fde68a;
}

/* Regional Distribution */
.constellation-regions-section {
  margin-top: 0.8rem;
}

.constellation-section-header {
  margin-bottom: 0.5rem;
}

.constellation-section-title {
  font-family: var(--font-cinzel), serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
}

.constellation-regions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.constellation-region-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.constellation-region-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
}

.constellation-region-name {
  color: #cbd5e1;
  font-weight: 500;
}

.constellation-region-count {
  color: #fbbf24;
  font-weight: 600;
}

.constellation-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.constellation-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Footer: Minimal Return to Meadow button */
.constellation-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.constellation-return-btn {
  background: rgba(245, 190, 56, 0.12);
  border: 1px solid rgba(245, 190, 56, 0.35);
  color: #fef08a;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.constellation-return-btn:hover {
  background: rgba(245, 190, 56, 0.24);
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(245, 190, 56, 0.3);
}

@media (max-width: 640px) {
  .constellation-window {
    padding: 1.2rem 0.9rem 1rem;
    max-height: min(92vh, 620px);
    border-radius: 16px;
  }

  .constellation-title {
    font-size: 1.15rem;
  }

  .constellation-stats-row {
    gap: 0.4rem;
    margin: 0.75rem 0;
  }

  .constellation-stat-pill {
    padding: 0.55rem 0.25rem;
  }

  .constellation-stat-value {
    font-size: 1.1rem;
  }

  .constellation-stat-label {
    font-size: 0.58rem;
  }
}

/* =========================================================
   ACCESSIBILITY & FOCUS VISIBLE (ANTI-SLOP R-32 COMPLIANT)
   ========================================================= */
.back-to-archive:focus-visible,
.filter-btn:focus-visible,
.sunflower-card:focus-visible,
.plant-sunflower-fab:focus-visible,
.garden-modal-close-btn:focus-visible,
.modal-close-btn:focus-visible,
.seed-radio-btn:focus-visible,
.plant-submit-btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.sync-retry-btn:focus-visible,
.card-admin-delete-btn:focus-visible,
.archivist-exit-btn:focus-visible,
.admin-submit-btn:focus-visible,
.reader-report-btn:focus-visible,
.report-cancel-btn:focus-visible,
.report-submit-btn:focus-visible,
.report-reason-item:focus-within,
.system-notice-confirm-btn:focus-visible,
.system-notice-cancel-btn:focus-visible,
.sync-blooms-btn:focus-visible,
.sync-submit-btn:focus-visible,
.sync-cancel-btn:focus-visible,
.constellation-toggle-btn:focus-visible,
.constellation-return-btn:focus-visible {
  outline: 2px solid var(--gold-primary) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 14px var(--gold-glow) !important;
}

/* =========================================================
   MULTI-SCRIPT GLYPH-AWARE TYPOGRAPHY DECOUPLING
   ========================================================= */
html[lang="ko"] .card-message,
html[lang="ko"] .reader-prose,
html[lang="ko"] .bloom-card-message,
html[lang="ko"] .reader-message-body,
html[lang="ko"] .card-quote,
body.lang-ko .card-message,
body.lang-ko .reader-prose,
body.lang-ko .bloom-card-message,
body.lang-ko .reader-message-body,
body.lang-ko .card-quote,
.lang-ko .card-message,
.lang-ko .reader-prose,
.lang-ko .bloom-card-message,
.lang-ko .reader-message-body,
.lang-ko .card-quote {
  font-family: 'Cormorant Garamond', 'Cinzel', 'Nanum Myeongjo', 'Noto Serif KR', serif !important;
  font-style: italic;
}
