/* Scoped semantic tokens: Apple Design spacing/type, existing PointOS palette. */
#pointosWeather {
  --weather-bg: var(--surface, #fff); --weather-text: var(--text, #292b3c);
  --weather-muted: color-mix(in srgb, var(--weather-text) 75%, var(--weather-bg));
  --weather-line: var(--line, #e5e6ef); --weather-accent: var(--accent, #6346d9);
  --weather-tint: var(--accent-soft, #f2efff);
  box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; order: 0;
  border: 1px solid var(--weather-line); border-radius: 16px;
  background: var(--weather-bg); color: var(--weather-text); margin-block: 0 14px;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left; overflow: hidden; box-shadow: none; -webkit-text-size-adjust: 100%;
}
body.pointos-web-workspace #pointosWeather { order: 15; }
#pointosWeather *, #pointosWeather *::before, #pointosWeather *::after { box-sizing: border-box; }
body:not(.pointos-authenticated) #pointosWeather, #pointosWeather[hidden], #pointosWeather [hidden] { display: none !important; }
#pointosWeather summary { display: flex; gap: 10px; align-items: center; list-style: none; cursor: pointer; padding: 10px 14px; min-height: 66px; }
#pointosWeather summary::-webkit-details-marker { display: none; }
#pointosWeather .weather-icon { font-size: 25px; line-height: 1; flex: 0 0 30px; text-align: center; }
#pointosWeather .weather-temperature { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#pointosWeather .weather-copy { display: grid; gap: 1px; min-width: 0; flex: 1; }
#pointosWeather .weather-location { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; color: var(--weather-text); }
#pointosWeather .weather-description { font-size: 11px; font-weight: 400; color: var(--weather-muted); overflow-wrap: anywhere; }
#pointosWeather .weather-chevron { font-size: 18px; color: var(--weather-muted); flex: 0 0 14px; text-align: center; }
#pointosWeather[open] .weather-chevron { transform: rotate(180deg); }
#pointosWeather .weather-details { padding: 0 14px 12px; border-top: 1px solid var(--weather-line); }
#pointosWeather p { font-size: 12px; font-weight: 400; line-height: 1.55; margin: 10px 0; color: var(--weather-muted); }
#pointosWeather .weather-advice { color: var(--weather-text); font-size: 13px; }
#pointosWeather .weather-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body #pointosWeather button { flex: 1 1 130px; width: auto; min-width: 0; min-height: 44px; height: auto; margin: 0; padding: 10px 12px; border: 1px solid var(--weather-line); border-radius: 10px; box-shadow: none; background: var(--weather-tint); color: var(--weather-accent); font: 500 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body #pointosWeather button:disabled { opacity: .55; }
#pointosWeather .weather-source { display: flex; align-items: center; min-height: 44px; color: var(--weather-accent); font-size: 11px; }
#pointosWeather :is(summary, button, a):focus-visible { outline: 2px solid var(--weather-accent); outline-offset: -3px; }
/* Follow PointOS semantic colors, not an independent OS theme. The desktop
   workspace intentionally keeps its own palette even on a dark-mode device. */
