.weather-card {
      --vb-surface: light-dark(#fff,#182230); --vb-ink: light-dark(#18202c,#e5edf6);
      --vb-muted: light-dark(#64748b,#a8b4c6); --vb-line: light-dark(#dbe3ed,#354255);
      --vb-accent: light-dark(#1f7668,#7bd8c8); --vb-hover: light-dark(#f3faf8,#203647);
      width: 100%; min-width: 0;
      font: 13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif; color: var(--vb-ink);
    }
    .weather-card * { box-sizing: border-box; }
    .weather-card { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: 8px; padding: 10px 12px; }
    .weather-card h2 { margin: 0; color: var(--vb-ink); font-size: 16px; font-weight: 700; }
    .weather-card .vb-weather-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
    .weather-card .vb-weather-head h2 { font-size: 15px; }
    .weather-card .vb-current { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
    .weather-card .vb-temperature { font-size: 34px; line-height: 1.15; font-weight: 400; letter-spacing: -.04em; color: var(--vb-ink); }
    .weather-card .vb-now { margin-top: 4px; font-size: 11px; color: var(--vb-muted); font-variant-numeric: tabular-nums; }
    .weather-card .vb-current-condition { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--vb-muted); font-size: 12px; padding-top: 3px; }
    .weather-card .vb-current-condition svg { width: 31px; height: 31px; stroke-width: 1.4; }
    .weather-card .vb-hour-head { margin: 12px 0 7px; padding-top: 10px; border-top: 1px solid var(--vb-line); color: var(--vb-muted); font-size: 11px; }
    .weather-card .vb-hours { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
    .weather-card .vb-hour { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
    .weather-card .vb-hour time { font-size: 11px; color: var(--vb-muted); }
    .weather-card .vb-hour svg { width: 19px; height: 19px; stroke-width: 1.7; }
    .weather-card .vb-day-list { display: grid; gap: 1px; margin-top: 10px; padding-top: 7px; border-top: 1px solid var(--vb-line); }
    .weather-card .vb-day { display: grid; grid-template-columns: 66px 22px 34px minmax(0,1fr) 34px; align-items: center; gap: 7px; width: 100%; min-height: 33px; padding: 6px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--vb-ink); font: inherit; text-align: left; }
    .weather-card .vb-day:hover,
    .weather-card .vb-day[aria-pressed="true"] { background: var(--vb-hover); color: var(--vb-ink); }
    .weather-card .vb-day-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
    .weather-card .vb-day svg { width: 17px; height: 17px; stroke-width: 1.7; }
    .weather-card .vb-min { color: var(--vb-muted); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
    .weather-card .vb-max { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
    .weather-card .vb-track { display: block; position: relative; height: 4px; background: light-dark(#edf1f4,#2c3b4e); border-radius: 8px; }
    .weather-card .vb-bar { position: absolute; height: 4px; left: var(--vb-start); width: var(--vb-length); border-radius: 8px; background: light-dark(#5baeb4,#65bac1); }
    .weather-card .weather-icon--sun,
    .weather-card .weather-icon--cloud-sun { color: light-dark(#956813,#e6b861); }
    .weather-card .weather-icon--cloud-rain { color: light-dark(#3378ad,#86bde7); }
    .weather-card .weather-icon--cloud { color: var(--vb-muted); }
    .weather-card .vb-hour-summary { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    @media (pointer:coarse) { .weather-card .vb-day { min-height: 44px; } }
    @media (max-width:339px) {
      .weather-card .vb-day { grid-template-columns: 58px 20px 29px minmax(0,1fr) 29px; gap: 5px; }
    }

.weather-card { box-sizing: border-box; }
.weather-card [hidden] { display: none !important; }
.weather-card .vb-day { cursor: pointer; }
.weather-card .vb-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.weather-card .vb-bar { min-width: 2px; max-width: calc(100% - var(--vb-start)); }
.weather-card .vb-day-condition { display: inline-flex; position: relative; align-items: center; width: 22px; }
.weather-hazard { display: inline-block; width: 13px; height: 13px; flex: none; fill: none; stroke: light-dark(#976015,#efc36c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.weather-card .vb-day .weather-hazard { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; stroke-width: 2; background: var(--vb-surface); border-radius: 2px; }
.weather-card .vb-day[aria-pressed="true"] .weather-hazard,
.weather-card .vb-day:hover .weather-hazard { background: var(--vb-hover); }
.weather-card .vb-details { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--vb-line); }
.weather-card .vb-details > summary { color: var(--vb-muted); font-size: 11px; font-weight: 500; cursor: pointer; }
.weather-card .vb-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.weather-card .vb-details-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 8px 0 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.weather-card .vb-details-table th,
.weather-card .vb-details-table td { padding: 5px 2px; border: 0; border-bottom: 1px solid var(--vb-line); background: transparent; color: var(--vb-ink); text-align: right; white-space: nowrap; font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: normal; text-transform: none; }
.weather-card .vb-details-table thead th { color: var(--vb-muted); font-size: 10px; font-weight: 500; }
.weather-card .vb-details-table th:first-child { text-align: left; }
.weather-card .vb-details-table th:last-child,
.weather-card .vb-details-table td:last-child { text-align: center; }
.weather-card .vb-details-table tbody tr:last-child th,
.weather-card .vb-details-table tbody tr:last-child td { border-bottom: 0; }
.weather-card .vb-details-table .weather-icon { width: 15px; height: 15px; vertical-align: middle; }
.weather-card .vb-details-note { margin: 8px 0 0; font-size: 11px; color: var(--vb-muted); }
.weather-card .vb-hazard-detail { display: flex; align-items: flex-start; gap: 5px; margin: 8px 0 0; font-size: 11px; color: var(--vb-ink); }
.weather-card .vb-hazard-detail .weather-hazard { margin-top: 1px; }
.weather-card[data-weather-stale] .weather-icon,
.weather-card[data-weather-stale] .weather-hazard,
.weather-card[data-weather-stale] .vb-bar,
.weather-card[data-weather-stale] .vb-hazard-detail { visibility: hidden; }
.weather-icon { display: inline-block; width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme] .weather-icon,
:root[data-theme] .weather-hazard { color-scheme: inherit; }
.weather-icon--sun, .weather-icon--cloud-sun { color: light-dark(#956813,#e6b861); }
.weather-icon--cloud-rain, .weather-icon--snowflake { color: light-dark(#3378ad,#86bde7); }
.weather-icon--cloud, .weather-icon--cloud-fog, .weather-icon--wind { color: light-dark(#64748b,#a8b4c6); }
.weather-icon--cloud-lightning { color: light-dark(#956813,#e6b861); }
.installation-weather { display: inline-flex; max-width: 100%; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink); font-size: 11.5px; line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; }
.installation-weather .weather-icon { width: 14px; height: 14px; stroke-width: 1.8; }
.installation-weather--unavailable { color: var(--muted); }
.installation-weather--partial { flex-wrap: wrap; }
.installation-weather-partial { flex-basis: 100%; font-size: 10px; line-height: 1.3; color: var(--muted); white-space: normal; }
.installation-weather-line { display: block; margin-top: 5px; }
.installation-weather-line .installation-weather { color: var(--muted); font-size: 12px; gap: 5px; }
.installation-weather-line .weather-icon { width: 15px; height: 15px; }
.installation-weather-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px 3px; flex-wrap: wrap; min-width: 0; }
.installation-weather-day-values { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; gap: 2px; }
.installation-calendar-day .installation-weather { position: relative; z-index: 1; }

/* The same measurements serve empty days and the compact trip layout. */
.installation-calendar .installation-calendar-day--weather { min-height: 109px; padding: 7px; gap: 5px; }
:root[data-theme] .installation-calendar .installation-weather-wind { --wind-ink: light-dark(#1b2732,#e1e8f2); --wind-muted: light-dark(#64748b,#a8b4c6); --wind-warning: light-dark(#a34410,#ffb88d); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 7px; min-width: 0; font: 13px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-variant-numeric: tabular-nums; color: var(--wind-ink); }
.installation-weather-wind__column { min-width: 0; }
:root[data-theme] .installation-calendar .installation-weather-wind__label { display: block; margin-bottom: 1px; font-size: 11px; font-weight: 400; color: var(--wind-muted); }
:root[data-theme] .installation-calendar .installation-weather-wind strong { display: block; font-size: 13px; font-weight: 400; line-height: 1.4; white-space: nowrap; color: var(--wind-ink); opacity: 1; }
:root[data-theme] .installation-calendar .installation-weather-wind__unit { display: block; font-size: 10px; font-weight: 400; color: var(--wind-muted); }
.installation-weather-wind--inline .installation-weather-wind__measure { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
:root[data-theme] .installation-calendar .installation-weather-wind .is-wind-medium strong { font-weight: 600; }
:root[data-theme] .installation-calendar .installation-weather-wind .is-wind-strong strong { font-weight: 700; color: var(--wind-warning); }
:root[data-theme] .installation-calendar .installation-weather-wind .is-unavailable strong { font-weight: 400; color: var(--wind-muted); }

.installation-calendar .installation-calendar-day--trip { --trip-ink: light-dark(#1b2732,#e1e8f2); --trip-muted: light-dark(#64748b,#a8b4c6); --trip-status: var(--trip-muted); display: flex; flex-direction: column; min-height: 162px; padding: 7px; gap: 5px; }
.installation-calendar-day--trip.is-warning { --trip-status: light-dark(#995300,#e7b56f); }
.installation-calendar-day--trip.is-danger { --trip-status: light-dark(#b42318,#f2aaa3); }
.installation-calendar-day--trip.is-ok { --trip-status: light-dark(#0f766e,#8dd8c9); }
.installation-calendar-day--trip.is-completed { --trip-status: light-dark(#0f766e,#a7e7d5); }
.installation-calendar-day--trip.is-postponed { --trip-status: light-dark(#9a3412,#f6d6a1); }
.installation-calendar-day--trip .installation-weather-day-head { margin-bottom: 2px; align-items: center; }
.installation-calendar-day--trip .installation-weather { font-weight: 400; }
.installation-weather-trip-groups { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.installation-weather-trip-group { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
:root[data-theme] .installation-calendar .installation-calendar-day.installation-calendar-day--trip .employee-worktime-month-day__project { color: var(--trip-ink); font-size: 11.5px; font-weight: 600; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
.installation-weather-location-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 5px; min-width: 0; }
.installation-weather-location { min-width: 0; color: var(--trip-muted); font-size: 11px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.installation-weather-location-row > .installation-weather { margin-left: auto; }
.installation-weather-trip-group > .installation-weather-wind { margin-top: auto; padding-top: 3px; padding-bottom: 2px; }
.installation-weather-trip-group + .installation-weather-trip-group { border-top: 1px solid light-dark(#e7eef6,#344256); padding-top: 7px; }
.installation-weather-trip-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 3px; padding-bottom: 3px; }
:root[data-theme] .installation-calendar .installation-calendar-day.installation-calendar-day--trip .employee-worktime-month-day__total { color: var(--trip-muted); font-size: 10.5px; font-weight: 400; line-height: 1.4; }
:root[data-theme] .installation-calendar .installation-calendar-day.installation-calendar-day--trip .employee-worktime-month-day__status { min-height: 0; color: var(--trip-status); font-size: 10.5px; font-weight: 600; line-height: 1.4; white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 760px) {
  .installation-calendar-panel { overflow-x: auto; }
  .installation-calendar-panel > .installation-calendar { min-width: 760px; }
}
