
.solar-app {
  color-scheme: dark;
  --panel: #252525;
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #ececec;
  --muted: #a8a8a8;
  --accent: #d4a85e;
  --horizon-y: 73%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: none;
  line-height: 1.35;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.solar-app * { box-sizing: border-box; }
.solar-app button,
.solar-app input,
.solar-app select { font: inherit; }
.solar-app .app-shell {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}
.solar-app .topbar { margin-bottom: 12px; }
.solar-app .eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.solar-app .location-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
}
.solar-app .location-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.solar-app .location-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.solar-app .location-field select,
.solar-app .location-field input {
  width: 100%;
  min-height: 41px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: #303030;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.solar-app input:focus-visible,
.solar-app select:focus-visible,
.solar-app .play-button:focus-visible,
.solar-app .sound-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.solar-app .experience {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.72fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: none;
}
.solar-app .sky-frame {
  position: relative;
  isolation: isolate;
  min-height: 510px;
  overflow: hidden;
  background: linear-gradient(to bottom, #0f2b55, #7ca8c1 var(--horizon-y), #101820 88%, #070b0e);
}
.solar-app .sky-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 8, 14, 0.15), transparent 18%, transparent 82%, rgba(3, 8, 14, 0.15));
}
.solar-app .sky-next {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.solar-app .sky-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background: radial-gradient(circle at 50% 50%, rgba(255, 211, 113, 0.68), transparent 26%);
  pointer-events: none;
  will-change: transform, opacity;
}
.solar-app .altitude-grid {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.solar-app .grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(239, 246, 252, 0.18);
}
.solar-app .grid-line span {
  position: absolute;
  top: -9px;
  left: 13px;
  z-index: 1;
  color: rgba(246, 250, 253, 0.86);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}
.solar-app .grid-line.below-horizon { border-top-color: rgba(197, 217, 234, 0.22); }
.solar-app .grid-line.below-horizon span { color: rgba(226, 239, 249, 0.82); }
.solar-app .horizon-line {
  position: absolute;
  top: var(--horizon-y);
  left: 0;
  right: 0;
  z-index: 6;
  height: 2px;
  border-top: 2px solid rgba(248, 250, 252, 0.72);
}
.solar-app .horizon-line span {
  position: absolute;
  right: 16px;
  bottom: 8px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}
.solar-app .sun-position {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 7;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.solar-app .sun-halo {
  position: absolute;
  inset: -80%;
  border-radius: 50%;
  opacity: 0.4;
  background: radial-gradient(circle, rgba(255, 223, 111, 0.86), rgba(255, 185, 62, 0.22) 43%, transparent 72%);
  filter: blur(3px);
}
.solar-app .sun-disc {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 250, 211, 0.95);
  border-radius: 50%;
  background: radial-gradient(circle at 37% 34%, #fffde1 0 12%, #ffe787 40%, #ffc83e 100%);
  box-shadow: 0 0 17px rgba(255, 203, 73, 0.8);
}
.solar-app .dashboard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 18px;
  padding: 22px;
  background: var(--panel);
}
.solar-app .day-block {
  display: grid;
  grid-template-areas: "kicker date" "count date";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 14px;
  min-height: 58px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}
.solar-app .day-kicker {
  grid-area: kicker;
  color: var(--muted);
  font-size: 12px;
}
.solar-app .day-block strong {
  grid-area: count;
  min-width: 78px;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.solar-app .day-block time {
  grid-area: date;
  min-width: 94px;
  color: #edf3f8;
  font-size: 14px;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.solar-app .motion-meter {
  display: grid;
  gap: 9px;
}
.solar-app .motion-meter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.solar-app .motion-meter-heading > span {
  color: var(--muted);
  font-size: 13px;
}
.solar-app #motionValue {
  flex: 0 0 78px;
  color: #f4f7fa;
  font-size: 14px;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.solar-app .motion-track {
  --motion-level: 0%;
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.solar-app .motion-spectrum {
  position: absolute;
  inset: 0;
  width: var(--motion-level);
  border-radius: inherit;
  background: linear-gradient(90deg, #67c989, #f0ca55 55%, #ef765f);
}
.solar-app .controls {
  display: grid;
  gap: 12px;
}
.solar-app .scrubber {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.solar-app input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.solar-app .play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  padding: 9px 15px;
  color: #1c1c1c;
  background: var(--accent);
  box-shadow: none;
  cursor: pointer;
  font-weight: 700;
}
.solar-app .play-button:hover { background: #e0bc7a; }
.solar-app .playback-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.solar-app .sound-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  padding: 9px 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.solar-app .sound-button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.solar-app .sound-button:disabled { opacity: 0.55; cursor: default; }
.solar-app .sound-description { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.solar-app .sound-volume { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.solar-app .sound-volume[hidden] { display: none; }
.solar-app .sound-volume input { min-width: 0; }
.solar-app .metric-grid {
  display: grid;
  gap: 1px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #383838;
}
.solar-app .metric-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 14px;
  background: #2c2c2c;
}
.solar-app .metric-card span {
  color: var(--muted);
  font-size: 13px;
}
.solar-app .metric-card strong {
  min-width: 88px;
  color: #f4f7fa;
  font-size: 15px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 920px) {
.solar-app .experience { display: flex; flex-direction: column; }
.solar-app .sky-frame { min-height: 390px; }
.solar-app .metric-grid { margin-top: 0; }
}
@media (max-width: 620px) {
.solar-app .location-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px;
  }
.solar-app .city-field { grid-column: 1 / -1; }
.solar-app .experience { border-radius: 18px; }
.solar-app .sky-frame { min-height: 300px; }
.solar-app .sun-position { width: 30px; height: 30px; }
.solar-app .dashboard { gap: 16px; padding: 16px; }
.solar-app .day-block { min-height: 54px; }
.solar-app .play-button { justify-self: stretch; width: 100%; }
.solar-app .metric-card { grid-template-columns: minmax(0, 1fr) minmax(92px, auto); }
}
@media (prefers-reduced-motion: reduce) {
.solar-app *,
.solar-app *::before,
.solar-app *::after { scroll-behavior: auto !important; }
}
