/* Three small instruments share one quiet surface language. */
sky-date-dial.date-wheel {
  display: block;
  border: 1px solid #c7dfeb;
  background: #f8fcfe;
  box-shadow: 0 14px 32px rgba(24, 85, 118, .09), inset 0 0 0 6px rgba(255, 255, 255, .8);
}

sky-date-dial .wheel-track {
  inset: 8px;
  border: 1px solid rgba(70, 151, 189, .2);
  box-shadow: none;
}

sky-date-dial .wheel-track::after {
  inset: 7px;
  border: 1px solid rgba(70, 151, 189, .13);
}

sky-date-dial .wheel-sector,
sky-date-dial .wheel-sector:nth-of-type(even) {
  background: #eaf4f8;
  color: #315d75;
  transition: background-color 200ms ease, color 200ms ease;
}

sky-date-dial .wheel-sector:nth-of-type(even) { background: #eaf4f8; }

sky-date-dial .wheel-sector:hover,
sky-date-dial .wheel-sector:nth-of-type(even):hover {
  background: #dceef6;
  color: #173d59;
}

sky-date-dial .wheel-sector.is-selected,
sky-date-dial .wheel-sector.is-selected:hover {
  background: #b8e2f4;
  color: #0e496a;
  box-shadow: none;
}

sky-date-dial .wheel-sector-label { gap: 2px; padding: 3px 5px; }

sky-date-dial .wheel-sector-label .wheel-sector-weekday,
sky-date-dial .wheel-sector-label .wheel-sector-month {
  color: #5d8296;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .025em;
}

sky-date-dial .wheel-sector-label .wheel-sector-day {
  color: #214b65;
  font-family: "Avenir Next", "Segoe UI Variable", sans-serif;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.045em;
}

sky-date-dial .wheel-sector.is-selected .wheel-sector-label :is(.wheel-sector-weekday, .wheel-sector-month) { color: #356c89; }
sky-date-dial .wheel-sector.is-selected .wheel-sector-label .wheel-sector-day { color: #0d4b70; }

sky-date-dial .wheel-center {
  border: 1px solid rgba(108, 171, 199, .3);
  background: conic-gradient(from 180deg, #58b6e2 0 var(--progress, 0%), #d4e6ee var(--progress, 0%) 100%);
  box-shadow: 0 5px 20px rgba(26, 93, 129, .1), 0 0 0 5px rgba(255, 255, 255, .72);
}

sky-date-dial .wheel-center::before { background: #fbfdfe; }
sky-date-dial .wheel-center h1 { color: #173d59; font-weight: 670; letter-spacing: -.055em; }
sky-date-dial .wheel-center .date-subheading { color: #7592a3; }
sky-date-dial .wheel-mode { color: #318fc5; font-weight: 700; }

sky-date-dial .wheel-marker { top: -12px; width: 28px; height: 28px; }
sky-date-dial .wheel-marker span {
  width: 2px;
  height: 15px;
  background: #318fc5;
  box-shadow: 0 3px 8px rgba(32, 115, 157, .22);
}
sky-date-dial .wheel-marker::after {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #318fc5;
  content: "";
  transform: translateX(-50%);
}
sky-date-dial .wheel-marker:focus-visible { outline: 2px solid #318fc5; outline-offset: 2px; }

sky-solar-strip.solar-status {
  display: flex;
  width: min(100%, 270px);
  min-height: 29px;
  margin: 1px auto 0;
  color: #6e8b9e;
}
sky-solar-strip.solar-status[hidden] { display: none; }
sky-solar-strip .solar-times { gap: 11px; justify-content: center; }
sky-solar-strip .solar-time { align-items: center; gap: 4px; font-size: 10px; }
sky-solar-strip .solar-time strong { color: #254e68; font-size: 11px; font-weight: 650; }
sky-solar-strip .solar-time i { width: 6px; height: 6px; }
sky-solar-strip .solar-time-divider { height: 11px; background: #c9dce6; }
sky-solar-strip .solar-place {
  height: 22px;
  max-width: 82px;
  padding: 0 7px;
  border-color: #d2e5ee;
  border-radius: 999px;
  background: #fff;
  color: #38799c;
  font-size: 10px;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}
sky-solar-strip .solar-place:hover { border-color: #8ac6e1; background: #f4fbfe; }

sky-day-panel.wheel-time-detail {
  display: block;
  width: 100%;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d1e5ee;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 92, 126, .09);
  animation: day-panel-enter 220ms cubic-bezier(.2, .75, .3, 1) both;
}
sky-day-panel.wheel-time-detail[hidden] { display: none; }
.hero-grid > .recent-panel[hidden] { display: none; }

sky-day-panel .wheel-time-detail-head {
  min-height: 53px;
  margin: 0;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #e3eef3;
}
sky-day-panel .wheel-time-detail-head strong {
  color: #173d59;
  font-family: "Avenir Next", "Segoe UI Variable", "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 680;
}
sky-day-panel .wheel-time-detail-head [data-wheel-detail-close] {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8ca6b5;
  font-size: 19px;
  transition: background-color 160ms ease, color 160ms ease;
}
sky-day-panel .wheel-time-detail-head [data-wheel-detail-close]:hover { background: #eaf5fa; color: #275f7d; }

sky-day-panel .wheel-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  overflow-x: auto;
  gap: 2px;
  padding: 3px 12px 4px;
  border-bottom: 1px solid #e3eef3;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
sky-day-panel .wheel-date-strip::-webkit-scrollbar { display: none; }
sky-day-panel .wheel-date-chip {
  position: relative;
  display: grid;
  min-height: 61px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 4px 2px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #688ba0;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background-color 170ms ease, color 170ms ease;
}
sky-day-panel .wheel-date-chip:hover { background: #edf7fb; color: #245f7d; }
sky-day-panel .wheel-date-chip.is-selected { color: #156a9b; }
sky-day-panel .wheel-date-chip.is-selected::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: #42aee0;
  content: "";
}
sky-day-panel .wheel-date-weekday,
sky-day-panel .wheel-date-month { font-size: 9px; font-weight: 600; line-height: 1.1; }
sky-day-panel .wheel-date-day {
  color: #2d5a73;
  font-family: "Avenir Next", "Segoe UI Variable", sans-serif;
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
}
sky-day-panel .wheel-date-chip.is-selected .wheel-date-day { color: #156a9b; }
sky-day-panel .wheel-time-detail-list { display: block; padding: 4px 16px 9px; }
sky-day-panel .wheel-time-detail-row {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 9px 12px 9px 17px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  transition: background-color 170ms ease, transform 170ms ease;
}
sky-day-panel .wheel-time-detail-row + .wheel-time-detail-row { border-top: 1px solid #e9f1f5; border-radius: 0; }
sky-day-panel .wheel-time-detail-row::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 3px;
  width: 3px;
  border-radius: 4px;
  background: var(--task-color, #54b8ec);
  content: "";
}
sky-day-panel .wheel-time-detail-row:hover { background: #f3f9fc; transform: translateX(2px); }
sky-day-panel .wheel-time-detail-row:focus-visible,
sky-day-panel .wheel-time-detail-head button:focus-visible,
sky-day-panel .wheel-date-chip:focus-visible,
sky-solar-strip button:focus-visible { outline: 2px solid #318fc5; outline-offset: -2px; }
sky-day-panel .wheel-time-detail-row time { color: #6e93a7; font-size: 11px; letter-spacing: .015em; }
sky-day-panel .wheel-time-detail-row :is(strong, span:last-child) {
  color: #1c435a;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.25;
}
sky-day-panel .wheel-time-detail-empty { margin: 0; padding: 14px 5px 17px; color: #7893a2; font-size: 11px; }

@keyframes day-panel-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  sky-solar-strip.solar-status { width: min(100%, 248px); }
  sky-solar-strip .solar-times { gap: 7px; }
  sky-solar-strip .solar-time { gap: 3px; }
}

@media (max-width: 760px) {
  sky-day-panel.wheel-time-detail { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  sky-date-dial .wheel-sector, sky-day-panel.wheel-time-detail,
  sky-day-panel .wheel-time-detail-row, sky-day-panel .wheel-date-chip,
  sky-solar-strip .solar-place { animation: none; transition: none; }
}
