@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,600;1,600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #030305;
  --bg-soft: #080910;
  --panel: rgba(6, 7, 16, 0.45);
  --panel-border: rgba(105, 213, 255, 0.18);
  --panel-glow: rgba(105, 213, 255, 0.04);
  --text: #e2e8f0;
  --text-soft: #8a9bb3;
  --gold: #f5d061;
  --gold-glow: rgba(245, 208, 97, 0.3);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --violet: #b6a6ff;
  --mint: #66ffc8;
  --danger: #ff2a6d;
  --daylight-wash-alpha: 0.18;
  --night-wash-alpha: 0.45;
  --twilight-alpha: 0.08;
  --sun-opacity: 0.35;
  --moon-opacity: 0.22;
  --sun-x: 50%;
  --sun-y: 42%;
  --moon-x: 80%;
  --moon-y: 30%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Outfit", "Noto Sans SC", "Noto Sans TC", "Segoe UI", sans-serif;
  background: var(--bg);
  /* Cyberpunk grid background */
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center top;
  overflow-x: hidden;
}

/* A large blurred glowing orb in the background */
body::before {
  content: "";
  position: fixed;
  top: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 166, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -20vw;
  left: -10vw;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

#daylightFx {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.daylight-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.daylight-layer.base {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 238, 173, calc(var(--daylight-wash-alpha) * 0.58)) 0 24%, transparent 60%),
    linear-gradient(
      to bottom,
      rgba(90, 149, 212, var(--daylight-wash-alpha)) 0%,
      rgba(33, 65, 105, calc(var(--daylight-wash-alpha) * 0.7)) 38%,
      rgba(7, 11, 21, var(--night-wash-alpha)) 100%
    );
  mix-blend-mode: screen;
}

.daylight-layer.twilight {
  background: linear-gradient(
    to bottom,
    rgba(255, 166, 95, calc(var(--twilight-alpha) * 0.8)) 0%,
    rgba(255, 126, 110, var(--twilight-alpha)) 35%,
    rgba(142, 87, 204, calc(var(--twilight-alpha) * 0.8)) 100%
  );
  mix-blend-mode: screen;
}

.daylight-layer.sun {
  background: radial-gradient(
    circle at var(--sun-x) var(--sun-y),
    rgba(255, 228, 146, calc(var(--sun-opacity) * 0.95)) 0 8%,
    rgba(255, 195, 94, calc(var(--sun-opacity) * 0.52)) 9%,
    rgba(255, 173, 83, calc(var(--sun-opacity) * 0.2)) 22%,
    transparent 48%
  );
  filter: blur(10px);
  mix-blend-mode: screen;
}

.daylight-layer.moon {
  background: radial-gradient(
    circle at var(--moon-x) var(--moon-y),
    rgba(211, 229, 255, calc(var(--moon-opacity) * 0.9)) 0 6%,
    rgba(188, 214, 248, calc(var(--moon-opacity) * 0.48)) 8%,
    rgba(158, 192, 243, calc(var(--moon-opacity) * 0.18)) 20%,
    transparent 44%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
}

#weatherFx {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.weather-layer {
  position: absolute;
  inset: -20%;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.weather-layer.clouds {
  background:
    radial-gradient(circle at 20% 30%, rgba(210, 218, 238, 0.18) 0 18%, transparent 19%),
    radial-gradient(circle at 62% 38%, rgba(198, 210, 236, 0.2) 0 20%, transparent 21%),
    radial-gradient(circle at 84% 28%, rgba(188, 204, 232, 0.14) 0 16%, transparent 17%);
  filter: blur(18px);
  transform: translateX(-6%);
  animation: cloudDrift 42s linear infinite;
}

.weather-layer.rain {
  background-image: repeating-linear-gradient(
    112deg,
    rgba(140, 220, 255, 0) 0 12px,
    rgba(140, 220, 255, 0.2) 12px 14px,
    rgba(140, 220, 255, 0) 14px 22px
  );
  background-size: 260px 260px;
  animation: rainFall 0.55s linear infinite;
}

.weather-layer.snow {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8) 0 2px, transparent 2.5px),
    radial-gradient(circle at 36% 42%, rgba(244, 250, 255, 0.75) 0 2.3px, transparent 3px),
    radial-gradient(circle at 66% 30%, rgba(255, 255, 255, 0.65) 0 1.9px, transparent 2.5px),
    radial-gradient(circle at 88% 52%, rgba(240, 248, 255, 0.7) 0 2.1px, transparent 2.8px);
  background-size: 320px 320px;
  animation: snowFall 14s linear infinite;
}

.weather-layer.fog {
  background:
    radial-gradient(circle at 15% 45%, rgba(200, 214, 232, 0.18) 0 24%, transparent 25%),
    radial-gradient(circle at 52% 58%, rgba(193, 208, 228, 0.2) 0 30%, transparent 31%),
    radial-gradient(circle at 86% 48%, rgba(178, 198, 221, 0.16) 0 22%, transparent 23%);
  filter: blur(26px);
  animation: fogSweep 24s ease-in-out infinite;
}

.weather-layer.lightning {
  background: radial-gradient(circle at 55% 20%, rgba(255, 255, 255, 0.5) 0 20%, rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  animation: lightningFlash 8s linear infinite;
}

body[data-weather-mode="cloudy"] .weather-layer.clouds {
  opacity: 0.68;
}

body[data-weather-mode="rain"] .weather-layer.clouds {
  opacity: 0.5;
}

body[data-weather-mode="rain"] .weather-layer.rain {
  opacity: 0.5;
}

body[data-weather-mode="snow"] .weather-layer.clouds {
  opacity: 0.55;
}

body[data-weather-mode="snow"] .weather-layer.snow {
  opacity: 0.6;
}

body[data-weather-mode="fog"] .weather-layer.fog {
  opacity: 0.7;
}

body[data-weather-mode="storm"] .weather-layer.clouds {
  opacity: 0.75;
}

body[data-weather-mode="storm"] .weather-layer.rain {
  opacity: 0.7;
}

body[data-weather-mode="storm"] .weather-layer.lightning {
  opacity: 1;
}

@keyframes cloudDrift {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

@keyframes rainFall {
  from { background-position: 0 -240px; }
  to { background-position: 160px 220px; }
}

@keyframes snowFall {
  from { background-position: 0 -220px, 80px -280px, 170px -230px, 250px -310px; }
  to { background-position: 10px 230px, 65px 270px, 180px 250px, 240px 290px; }
}

@keyframes fogSweep {
  0%, 100% { transform: translateX(-3%); }
  50% { transform: translateX(4%); }
}

@keyframes lightningFlash {
  0%, 4%, 7%, 100% { opacity: 0; }
  4.3%, 4.8% { opacity: 0.7; }
  7.2%, 7.4% { opacity: 0.45; }
}

.shell {
  position: relative;
  z-index: 12;
  width: min(1300px, 94vw);
  margin: 40px auto 60px;
  display: grid;
  gap: 20px;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  opacity: 0.5;
}

.panel:hover {
  box-shadow: 0 15px 50px rgba(0, 240, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  align-items: center;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 10px var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.engine-local {
  color: var(--gold);
  background: rgba(245, 208, 97, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.engine-api {
  color: var(--mint);
  background: rgba(102, 255, 200, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  text-shadow: 0 0 10px rgba(102, 255, 200, 0.4);
}

.topbar h1 {
  margin: 8px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  background: linear-gradient(to right, #fff, var(--text-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.subtitle {
  margin: 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.links {
  display: flex;
  gap: 12px;
}

.links a {
  text-decoration: none;
  color: var(--cyan);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--cyan-glow);
  background: rgba(0, 240, 255, 0.05);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.links a.github-star-btn {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.15), rgba(245, 208, 97, 0.05));
  border-color: var(--gold-glow);
  color: var(--gold);
}

.links a.github-star-btn:hover {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.3), rgba(245, 208, 97, 0.1));
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.links a:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-2px);
}

.controls {
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.control-item {
  display: grid;
  gap: 8px;
}

.control-item.wide {
  grid-column: span 2;
}

label {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

select,
input[type="text"],
input[type="datetime-local"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  appearance: none;
}

select:focus,
input[type="text"]:focus,
input[type="datetime-local"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.context-panel {
  padding: 24px 28px;
}

.calendar-panel,
.side-panel {
  padding: 28px 32px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
}

.calendar-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-selectors {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ym-selectors {
  display: flex;
  gap: 12px;
}

.title-select {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--gold);
  font-size: clamp(24px, 3.5vw, 36px);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  text-shadow: 0 0 10px var(--gold-glow);
  outline: none;
}

.title-select:focus {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(245, 208, 97, 0.2);
}

.title-select option {
  background: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
  font-family: "Outfit", sans-serif;
  font-style: normal;
}


.calendar-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.solid-btn,
.ghost-btn {
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
}

.solid-btn {
  border: none;
  color: #000;
  background: linear-gradient(135deg, var(--cyan), #0099ff);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.solid-btn:hover {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.solid-btn:active {
  transform: translateY(0);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.weekday {
  text-align: center;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.day-cell {
  min-height: 100px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.day-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.day-cell:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.1);
  z-index: 2;
}

.day-cell.other-month {
  opacity: 0.3;
}

.solar-term-label {
  color: var(--gold) !important;
  font-weight: 500;
  text-shadow: 0 0 6px var(--gold-glow);
}

.day-cell.today {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.day-cell.selected {
  border-color: var(--gold);
  background: rgba(245, 208, 97, 0.1);
  box-shadow: 0 0 20px rgba(245, 208, 97, 0.3), inset 0 0 10px rgba(245, 208, 97, 0.2);
  transform: scale(1.05);
  z-index: 3;
}

.day-cell.selected .day-primary {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-glow);
}

.day-primary {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  transition: color 0.2s;
}

.day-secondary {
  font-size: 11px;
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard Top Panel */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-date {
  display: flex;
  align-items: center;
  gap: 16px;
}

#mainDatePrimary {
  font-size: 64px;
  font-weight: 700;
  line-height: 0.8;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  font-family: "JetBrains Mono", monospace;
}

.dashboard-date-sub {
  display: flex;
  flex-direction: column;
}

#mainWeekday {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
}

#mainDateFull {
  font-size: 13px;
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
}

.dashboard-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.moon-phase-badge {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(204, 221, 255, 0.25);
}

.time-controls-minimal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hour-display {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.huangli-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.huangli-blocks .meta-item {
  width: 100%;
}

.huangli-blocks .meta-item b {
  color: var(--gold);
}

.panel-title {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

.meta-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.life-context-panel {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.life-context-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.life-context-controls .control-item {
  gap: 6px;
}

.life-context-controls .control-item.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.life-context-controls .control-item.wide {
  grid-column: span 2;
}

.life-context-controls label {
  font-size: 10px;
}

.life-context-controls input {
  padding: 10px 12px;
  font-size: 13px;
}

.life-context-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.life-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.life-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cyan);
}

.life-context-cards {
  grid-template-columns: 1fr;
}

.weather-panel {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.weather-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.scene-snapshot-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scene-snapshot-header {
  margin-bottom: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}

.scene-snapshot-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: end;
  margin-bottom: 10px;
}

.scene-snapshot-controls label {
  grid-column: span 2;
  font-size: 10px;
}

.scene-snapshot-controls input[type="datetime-local"] {
  min-height: 40px;
}

.sidebar-filters {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sidebar-filters p {
  width: 100%;
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.sidebar-filters input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.meta-item {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s, background 0.2s;
}

.meta-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
  border-color: rgba(0, 240, 255, 0.3);
}

.meta-item b {
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.time-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-controls label {
  display: none;
}

input[type="range"] {
  padding: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.hour-label {
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  min-width: 65px;
  text-align: right;
}

.astro-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.status-text {
  font-size: 12px;
  color: var(--text-soft);
  font-style: italic;
  font-family: 'JetBrains Mono', monospace;
}

.status-text.error {
  color: var(--danger);
  text-shadow: 0 0 8px rgba(255, 42, 109, 0.4);
}

.zodiac-wheel {
  min-height: 400px;
  border-radius: 20px;
  border: 1px solid rgba(105, 213, 255, 0.2);
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 70%);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.05);
  position: relative;
}

.zodiac-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 29.5deg, rgba(255, 255, 255, 0.03) 29.5deg 30deg);
  pointer-events: none;
}

.zodiac-wheel svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.2));
  transform-origin: center;
}

/* Add subtle floating effect instead of crazy spinning */
.static-wheel svg {
  animation: floatOrb 6s ease-in-out infinite;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0px);
  }
}

.json-output {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-height: 150px;
  max-height: 280px;
  overflow: auto;
  background: #020306;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mint);
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) #020306;
}

.json-output::-webkit-scrollbar {
  width: 8px;
}

.json-output::-webkit-scrollbar-track {
  background: #020306;
}

.json-output::-webkit-scrollbar-thumb {
  background: rgba(105, 213, 255, 0.3);
  border-radius: 4px;
}

.explain {
  padding: 24px 32px;
}

.explain h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.explain ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-item.wide {
    grid-column: span 2;
  }

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

  .context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .control-item.wide {
    grid-column: span 1;
  }

  .day-cell {
    min-height: 80px;
    padding: 8px;
  }

  .day-primary {
    font-size: 18px;
  }

  .life-context-controls {
    grid-template-columns: 1fr;
  }

  .life-context-controls .control-item.wide {
    grid-column: span 1;
  }

  .life-context-controls .control-item.split {
    grid-template-columns: 1fr;
  }

  .life-context-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .scene-snapshot-controls {
    grid-template-columns: 1fr;
  }

  .scene-snapshot-controls label {
    grid-column: span 1;
  }
}
