/* ============================================================
   TSSHCo Chronos â€” widget & illustrated weather details
   ============================================================ */

.wx-icon { width: 100%; height: 100%; overflow: visible; }
.wx-icon path[fill], .wx-icon circle[fill] { stroke: none; }
.wx-icon [fill="#e9f1fb"] { filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .18)); }
.weather-art .wx-icon { width: 100%; height: 100%; }
.weather-temp em, .weather-stats span { unicode-bidi: plaintext; }

.weather-hero-art .wx-icon { width: 200px; height: 190px; margin: 0 auto; }
.weather-hero-art .scene-stage { position: absolute; inset: 8px -10px 8px -10px; min-height: 0; border-radius: 22px; box-shadow: 0 20px 44px rgba(0, 0, 0, .22); }
.weather-hero-art .scene-label { display: none; }
.weather-hero-art { overflow: visible; }

.weather-widget-stage > div { flex: 1; display: flex; min-width: 0; }
.weather-widget-stage .scene-stage { flex: 1; }
.weather-widget-stage .classic-weather-widget .wx-icon { width: 50px; height: 50px; }

.calendar-widget-demo .mini-widget { margin: 0 auto; }
.mini-widget .mini-day { cursor: default; }
.mini-widget .mini-day .ev-dots { margin-top: 0; }

/* The 3D scene gets a subtle floating depth on hover. */
.scene-stage { isolation: isolate; }
.scene-stage .scene-sky { will-change: transform; }
.scene-stage:hover .scene-sun { filter: brightness(1.06); }
.scene-stage .scene-label { direction: ltr; }
[dir="rtl"] .scene-stage .scene-label { direction: ltr; text-align: left; }

/* Compact 4-day strip keeps the dashboard weather card balanced. */
.weather-mini-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0 22px 20px; margin-top: auto; }
.wmd { padding: 9px 6px 8px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wmd span { color: var(--faint); font-size: 8px; }
.wmd div { width: 25px; height: 25px; }
.wmd b { font-size: 10.5px; font-weight: 500; }
.wmd em { font-style: normal; color: var(--faint); font-size: 8px; }
.wmd.active { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
@media (max-width: 760px) { .weather-mini-days { padding: 0 16px 16px; } }

/* Smaller hero weather scene inside the dashboard card. */
.span-5 .weather-art { overflow: visible; }
.weather-mini-body .wx-icon { filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .25)); }

/* Clock micro-animations */
.clock-card:hover .clock-halo { opacity: 1; transform: scale(1.05); }
.clock-halo { transition: .6s var(--ease); }

/* Calendar day hover glow */
.full-day::after { content: ""; position: absolute; inset: auto 20% -30px; height: 40px; background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.full-day:hover::after { opacity: 1; }

/* Toggle rows in settings */
.setting-toggles .switch-line > span:first-child { order: 0; }
[dir="rtl"] .switch { transform: scaleX(-1); }
[dir="rtl"] .switch::after { transform: translateX(14px); }
[dir="rtl"] .switch-line input:not(:checked) + .switch::after { transform: translateX(-0px); }
[dir="rtl"] .switch-line input:checked + .switch::after { transform: translateX(-14px); }

/* Form controls on dark glass */
input[type="date"], input[type="time"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { opacity: .55; filter: invert(1); cursor: pointer; }
select option { background: #111827; color: #f0f4fc; }

/* Platform icon tints */
.platform.accent svg { color: var(--accent-2); }

/* Sparkle accents on the ready screen */
.ready-orb::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 25%, transparent); animation: spinSlow 28s linear infinite; }
.ready-orb { position: relative; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Connection provider status */
.provider-card [data-provider-foot] { flex-wrap: wrap; }
.provider-card [data-provider-foot] .text-link { font-size: 8.5px; }

/* Toast icons */
.toast span { line-height: 1.45; }

/* Scrollable event lists */
.peek-events::-webkit-scrollbar, .agenda-full::-webkit-scrollbar, .hourly-strip::-webkit-scrollbar { height: 4px; width: 4px; }
.peek-events::-webkit-scrollbar-thumb, .agenda-full::-webkit-scrollbar-thumb, .hourly-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); }

/* Watch responsive preview inside install card */
@media (max-width: 1120px) {
  .weather-hero-art { width: 170px; flex-basis: 170px; }
  .weather-hero-art .wx-icon { width: 160px; height: 160px; }
}
@media (max-width: 760px) {
  .weather-hero-art .scene-stage { inset: 0; border-radius: 18px; }
  .weather-hero-art .scene-stage { min-height: 130px; }
  .weather-widget-stage { min-height: 190px; }
}

