.clock-weather { display: inline-flex; align-items: center; justify-content: flex-end; justify-self: end; gap: 10px; width: auto; max-width: 100%; min-width: 0; min-height: 48px; padding: 6px 0; border: 0; background: transparent; color: var(--ink); text-align: right; }
.clock-weather > .ui-icon { width: 24px; height: 24px; color: #b8d8cb; flex-shrink: 0; }
.clock-weather > span { display: grid; gap: 3px; min-width: 0; }
.clock-weather strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.clock-weather small { color: var(--muted); font-size: 11px; font-weight: 400; }
.clock-weather:hover { background: transparent; color: var(--red); }
.time-engine-day { font-size: 12px; color: var(--muted); font-weight: 400; }
#weatherPage { display: block; min-width: 0; }
.time-engine-settings { grid-template-columns: minmax(180px, 1fr) 104px 160px 120px 120px auto; }
@media (max-width: 1200px) {
  .time-engine-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#weatherPage label, #weatherConditionDialog label { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.weather-current { display: flex; align-items: flex-start; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.weather-current > .ui-icon { flex-shrink: 0; width: 52px; height: 52px; color: #b8d8cb; margin-top: 10px; }
.weather-current h3 { margin: 8px 0; color: var(--ink); font-size: 28px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.weather-current span, .weather-current small { font-size: 12px; color: var(--muted); }
.weather-current p { font-size: 14px; margin: 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.weather-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 20px 24px; padding: 24px 0; }
.weather-settings { display: flex; align-items: end; flex-wrap: wrap; gap: 20px; min-width: 0; max-width: 100%; margin: 0; }
.weather-settings > label:first-child { width: 200px; }
.weather-settings > label:nth-child(2) { width: 160px; }
.weather-settings .small { min-height: 42px; }
#weatherPage .weather-toggle, #weatherConditionDialog .weather-toggle { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.weather-toggle input[type="checkbox"], .weather-table input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--red); }
.weather-override { display: flex; align-items: end; gap: 12px; flex: 1 1 320px; min-width: 0; max-width: 452px; margin: 0; }
.weather-override label { flex: 1; max-width: 320px; }
.weather-override .small { min-height: 42px; white-space: nowrap; }
.weather-conditions, .weather-history { min-width: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin-top: 8px; }
.weather-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.weather-section-head h3 { margin: 0; font-size: 16px; font-weight: 550; }
.weather-table-scroll { overflow: auto; min-width: 0; width: 100%; }
.weather-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.weather-table th { font-size: 12px; font-weight: 450; color: var(--muted); text-align: center; }
.weather-table td, .weather-table th { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.weather-table thead { border-top: 1px solid var(--line); }
.weather-table th:first-child, .weather-table td:first-child { padding-left: 0; text-align: left; }
.weather-table td:not(:first-child) { text-align: center; }
.weather-weight { width: 72px; font-variant-numeric: tabular-nums; color: var(--muted); }
.weather-weight.is-season { color: var(--red); }
.weather-condition-name { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.weather-condition-name > .ui-icon { width: 22px; height: 22px; flex-shrink: 0; color: #b8d8cb; }
.weather-condition-name strong { font-weight: 550; }
.weather-condition-name small { display: block; margin-top: 5px; max-width: 540px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.weather-row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.weather-history ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.weather-history li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.weather-history li > div { min-width: 0; }
.weather-history strong { overflow-wrap: anywhere; }
.weather-history small { display: block; color: var(--muted); margin-top: 5px; }
.weather-history time { margin-left: auto; flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.weather-error { color: #ff9a9f; font-size: 13px; }
#weatherConditionDialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
#weatherConditionForm { display: grid; gap: 18px; }
#weatherConditionForm textarea { min-height: 88px; resize: vertical; background: #191b1e; border-color: var(--line); font-size: 14px; font-weight: 400; }
.weather-weights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.weather-weights legend { color: var(--muted); font-size: 12px; padding: 0 0 12px; }
@media (max-width: 700px) {
  .time-engine-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-engine-settings > label:first-child { grid-column: 1 / -1; }
  .weather-settings { gap: 16px; }
  .weather-settings > label:first-child, .weather-settings > label:nth-child(2) { width: calc(50% - 8px); }
  .weather-override { flex: 1 1 100%; flex-wrap: wrap; }
  .weather-override label { flex: 1 1 180px; max-width: none; }
  .weather-weights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-current { gap: 14px; }
  .weather-current > .ui-icon { width: 32px; height: 32px; }
  .weather-current h3 { font-size: 22px; }
  .weather-table { min-width: 720px; }
  .weather-history li { flex-wrap: wrap; }
  .weather-history time { margin-left: 30px; width: calc(100% - 30px); }
}
