/* Native graphite / warm gold, scoped to the night forecast. */
#plannerWeatherPanel{min-width:0;contain:inline-size}
#plannerWeatherPanel>summary{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}
#plannerWeatherPanel>summary>.weatherSummaryTitle{display:flex;align-items:center;gap:9px;grid-column:1;grid-row:1}
#plannerWeatherPanel>summary>.weatherSummaryText{display:block;grid-column:1;grid-row:2;text-align:left;padding-left:28px;color:var(--ui-muted);font-size:11px;line-height:1.5}
#plannerWeatherPanel>summary::after{grid-column:2;grid-row:1 / span 2}
.weatherSummaryTitle svg{width:19px;height:19px;color:var(--ui-gold);flex:none}
.weatherBody{padding:18px;min-width:0}
.weatherTopline{display:flex;justify-content:space-between;align-items:center;gap:14px}
.weatherEyebrow{font-size:11px;letter-spacing:.15em;font-weight:750;color:var(--ui-gold)}
.weatherTopline h3{font-size:22px;font-weight:600;letter-spacing:-.035em;color:var(--ui-text);margin:4px 0 2px;line-height:1.3}
.weatherPlace{margin:0;font-size:11px;line-height:1.5;color:var(--ui-muted);overflow-wrap:anywhere}
.weatherRefresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;flex:none;padding:8px 11px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface-2);color:var(--ui-gold-bright);font:inherit;font-size:11px;font-weight:650;cursor:pointer}
.weatherRefresh svg{width:15px;height:15px}
.weatherRefresh:disabled{opacity:.45;cursor:wait}
.weatherRefresh:hover:not(:disabled){border-color:var(--ui-border-strong);background:#211f18}
.weatherOverview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:17px 0 21px;padding:15px 0;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border)}
.weatherMetric{min-width:0}
.weatherOverview .weatherMetric{padding:0 15px;border-right:1px solid var(--ui-border)}
.weatherOverview .weatherMetric:first-child{padding-left:0}
.weatherOverview .weatherMetric:last-child{padding-right:0;border-right:0}
.weatherMetricLabel{display:flex;align-items:center;gap:5px;color:var(--ui-muted);font-size:11px;font-weight:500;line-height:1.4}
.weatherMetricLabel svg{height:13px;width:13px;flex:none;color:#b39b64}
.weatherMetric>strong{display:block;color:var(--ui-text);font-size:23px;font-weight:550;letter-spacing:-.035em;line-height:1.35;margin-top:5px;font-variant-numeric:tabular-nums}
.weatherMetric>strong>span{font-size:11px;font-weight:450;color:var(--ui-muted);letter-spacing:0}
.weatherMetric>small{display:block;font-size:11px;color:var(--ui-muted);line-height:1.5;margin-top:3px}
.weatherOverview .weatherMetric:first-child>strong{color:var(--ui-gold-bright)}
.weatherTimelineHead{margin-bottom:9px;font-size:11px;font-weight:650;color:#ddd6c8}

.weatherTimeline{display:flex;align-items:stretch;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 1px 9px;scrollbar-color:#665631 #131311;scrollbar-width:thin;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.weatherHour{display:flex;flex-direction:column;align-items:center;flex:1 0 57px;min-width:57px;max-width:86px;scroll-snap-align:start;padding:10px 5px;border:1px solid transparent;border-radius:9px;background:#171715;color:#c4bdaf;font:inherit;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .12s,border-color .12s}
.weatherHour:hover{background:#211f19}
.weatherHour[aria-pressed="true"]{border-color:var(--ui-gold-dark);background:linear-gradient(180deg,rgba(201,168,90,.12),rgba(201,168,90,.025));color:var(--ui-gold-bright)}
.weatherHourTime{font-size:11px;font-weight:700}
.weatherHourOffset{font-size:11px;line-height:1.5;color:var(--ui-muted);white-space:nowrap}
.weatherCloudBar{display:block;height:42px;width:21px;margin:7px 0 6px;border-radius:4px;position:relative;overflow:hidden;background:#292722;border:1px solid rgba(232,220,188,.055)}
.weatherCloudBar i{display:block;position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,#8a7954,#bba572);border-radius:3px 3px 0 0;min-height:0}
.weatherHour[aria-pressed="true"] .weatherCloudBar i{background:linear-gradient(0deg,#a48640,#e2c878)}
.weatherHour strong{font-size:12px;font-weight:650}
.weatherHourTemp{font-size:11px;margin-top:7px;color:var(--ui-muted)}
.weatherPast{opacity:.64}
.weatherUnknown .weatherCloudBar,.weatherMissing{background:repeating-linear-gradient(135deg,#24221d,#24221d 3px,#181815 3px,#181815 7px)}
.weatherHourDetails{margin-top:12px;padding:15px;background:rgba(201,168,90,.025);border:1px solid var(--ui-border);border-radius:10px}
.weatherHourHeading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-bottom:13px;border-bottom:1px solid var(--ui-border)}
.weatherHourHeading strong{font-size:15px;font-weight:650;color:var(--ui-gold-bright);font-variant-numeric:tabular-nums}
.weatherHourHeading strong span{font-size:11px;font-weight:400;color:var(--ui-muted)}
.weatherHourHeading>small{font-size:11px;color:var(--ui-muted)}
.weatherHourGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:15px 0}
.weatherHourGrid .weatherMetric>strong{font-size:21px}
.weatherLayers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding-top:12px;border-top:1px solid var(--ui-border)}
.weatherLayer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 9px;font-size:11px;color:var(--ui-muted)}
.weatherLayer>span::before{content:'Chmury ';color:inherit}
.weatherLayer strong{font-size:11px;font-weight:600;color:#d5cbbb;grid-column:2;grid-row:1;font-variant-numeric:tabular-nums}
.weatherLayer i{grid-column:1 / -1;grid-row:2;display:block;height:4px;border-radius:4px;background-color:#2c2922;overflow:hidden}
.weatherLayer i b{display:block;height:100%;background:#aa9258;border-radius:4px}
.weatherCaution{color:#d5ac7d;font-size:11px;line-height:1.6;margin:13px 0 0;padding-top:10px;border-top:1px solid var(--ui-border)}
.weatherCaution::before{content:'• ';color:#c79568}
.weatherDataNotice{padding:10px 12px;background:rgba(182,135,75,.08);border-left:2px solid #a7854c;color:#d5b683;font-size:11px;line-height:1.5;margin:14px 0 0}
.weatherMissingNote{font-size:11px;color:var(--ui-muted);line-height:1.6;margin:10px 0}
.weatherFooter{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;border-top:1px solid var(--ui-border);padding-top:11px;margin-top:16px;font-size:11px;color:var(--ui-muted);line-height:1.6}
.weatherFooter a{color:#c1ad7a;text-underline-offset:3px;text-decoration-color:#665a3b}
.weatherEmpty{min-height:167px;padding:20px 10px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center}
.weatherEmpty>svg{height:31px;width:31px;color:var(--ui-gold-dark);margin-bottom:14px}
.weatherEmpty>strong{font-size:14px;font-weight:600;color:var(--ui-text)}
.weatherEmpty>p{max-width:360px;font-size:11px;line-height:1.65;color:var(--ui-muted);margin:8px 0 0}
.weatherEmpty>.weatherRefresh{margin-top:15px}
#plannerWeatherPanel :is(button,summary,a,.weatherTimeline):focus-visible{outline:2px solid var(--ui-gold-bright);outline-offset:3px}
@media(max-width:650px){
  .weatherBody{padding:14px 12px}
  .weatherTopline h3{font-size:20px}
  .weatherOverview{margin:15px 0 18px;padding:13px 0}
  .weatherOverview .weatherMetric{padding:0 9px}
  .weatherOverview .weatherMetric>strong{font-size:19px}
  .weatherOverview .weatherMetric>small{display:none}
  .weatherMetricLabel{font-size:11px;gap:4px}
  .weatherMetricLabel svg{width:12px;height:12px}
  .weatherHourGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 15px}
  .weatherHourDetails{padding:13px}
  .weatherLayers{gap:9px}
  .weatherLayer>span::before{content:''}


}
@media(max-width:360px){
  .weatherOverview .weatherMetric>strong{font-size:16px}
  .weatherOverview .weatherMetric{padding:0 6px}
  .weatherOverview .weatherMetricLabel svg{display:none}
  .weatherRefresh{padding:8px}
  .weatherTopline .weatherRefresh span{display:none}
  .weatherTopline h3{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.weatherHour{transition:none}.weatherTimeline{scroll-behavior:auto}}

/* Date navigation shares the Planner's context strip and keeps a full mobile tap area. */
#plannerNightContextCard{background:var(--ui-surface-3)}
#plannerNightContextCard .plannerContextStrip{grid-template-columns:minmax(290px,1.2fr) minmax(0,1fr)}
#plannerNightContextCard .plannerContextChip{background:#11110f}
#plannerNightContextCard .plannerContextDate{gap:3px;padding:3px}
#plannerNightContextCard [data-planner-date-slot]{flex:1;min-width:0;padding:0 3px}
#plannerNightContextCard #dateInput{height:40px;min-height:40px;text-align:center;font-variant-numeric:tabular-nums}
.plannerDayArrow,.plannerDateToday{flex:none;min-width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ui-gold-bright);padding:7px;cursor:pointer;font:inherit}
.plannerDateToday{font-size:11px;font-weight:700;border-left-color:var(--ui-border);border-radius:0 8px 8px 0}
.plannerDayArrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.plannerDayArrow:hover:not(:disabled),.plannerDateToday:hover:not(:disabled){background:rgba(201,168,90,.10)}
.plannerDayArrow:disabled,.plannerDateToday:disabled{opacity:.3;cursor:default}
.plannerDayArrow:focus-visible,.plannerDateToday:focus-visible{outline:2px solid var(--ui-gold);outline-offset:1px}
.plannerForecastAvailability{color:var(--ui-muted);font-size:11px;line-height:1.5;padding:8px 3px 0}
.plannerForecastAvailability::before{content:'•';color:#b8955a;padding-right:6px}
.plannerForecastAvailability[data-weather-status="ready"]{color:#bcb399}
.plannerForecastAvailability[data-weather-status="out-of-range"],.plannerForecastAvailability[data-weather-status="stale"]{color:#d4b279}
@media(max-width:650px){
  #plannerNightContextCard .plannerContextStrip{grid-template-columns:minmax(0,1fr);gap:6px}
  #plannerNightContextCard .plannerContextLocation{min-height:39px;padding:6px 10px}
}

/* Small solar row in Weather; the Planner date controls remain uncluttered. */
#plannerWeatherPanel .weatherSolarTimes{display:flex;align-items:center;flex-wrap:wrap;gap:6px 20px;margin-top:10px;color:var(--ui-muted);font-size:11px;line-height:1.5}
#plannerWeatherPanel .weatherSolarEvent{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#plannerWeatherPanel .weatherSolarEvent>svg{display:block;flex:none;width:16px;height:16px;color:var(--ui-gold-dark);fill:none}
#plannerWeatherPanel .weatherSolarEvent>time{color:var(--ui-text);font-size:inherit;font-weight:500;font-variant-numeric:tabular-nums}
#plannerWeatherPanel .weatherSolarNote{flex-basis:100%;font-size:11px;line-height:1.5;color:var(--ui-muted)}
