.overview-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.overview-publication-note { margin: 0; color: #61796e; font-size: 12px; line-height: 1.6; }
.overview-station-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; }
.overview-station-info[hidden] { display: none; }
.overview-station-info h2 { margin: 0; font-size: 19px; }
.overview-station-info p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.overview-station-info a, .overview-log-link { color: var(--green); font-size: 13px; font-weight: 700; }
.overview-station-info a { padding: 10px 14px; border: 1px solid #c5dcd3; border-radius: 8px; background: #f1f7f4; }
.overview-log-link { display: inline-block; margin-top: 12px; }

.workspace.overview-workspace-shell { padding-top: 118px; }
.topbar.overview-topbar {
  height: 118px;
  min-height: 118px;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1.2fr) minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
}
.overview-topbar-title { min-width: 0; grid-column: 1; grid-row: 1; }
.overview-topbar .top-actions { display: contents; }
.overview-topbar .avatar { grid-column: 4; grid-row: 1; }
.overview-top-summary {
  width: 100%;
  min-width: 0;
  height: 90px;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.overview-signal-card {
  position: relative;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #fff;
}
.overview-signal-card:hover { background: #f1f7f4; border-color: #97bdb0; }
.overview-signal-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.overview-section:focus,
.overview-section [tabindex="-1"]:focus { outline: 2px solid var(--green); outline-offset: 4px; }
.overview-signal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}
.overview-signal-card.warning::before { background: #e2a82e; }
.overview-signal-card.danger::before { background: #d45547; }
.overview-signal-card.ok::before { background: #43a47f; }
.overview-signal-card > span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.overview-signal-card > strong { display: block; margin: 8px 0 0; font-size: 24px; line-height: 1; }
.overview-signal-card > small { display: none; }

.overview-calendar {
  width: 100%;
  min-width: 0;
  height: 90px;
  min-height: 90px;
  grid-column: 3;
  grid-row: 1;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.8fr);
  align-items: stretch;
  gap: 9px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(120deg, #f8fbfa 0%, #eef7f3 100%);
}
.overview-calendar[hidden] { display: none; }
.overview-calendar > header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}
.overview-calendar > header > div:first-child { align-self: stretch; display: flex; flex-direction: column; }
.overview-calendar-heading-row { display: flex; align-items: baseline; gap: 7px; }
.overview-calendar h2 { margin: 1px 0 0; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.overview-calendar-month { color: var(--green); font-size: 17px; font-weight: 900; line-height: 1; white-space: nowrap; }
.overview-calendar header small { display: block; margin-top: auto; margin-bottom: 8px; overflow: hidden; color: var(--green); font-size: 15px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.overview-calendar-header-actions { align-self: stretch; display: grid; grid-template-rows: auto 1fr; gap: 4px; justify-items: center; }
.overview-calendar-nav { width: auto; flex: 0 0 auto; align-self: end; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.overview-calendar-nav button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c6d9d2;
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.overview-calendar-nav button:hover:not(:disabled) { border-color: #6aa997; background: var(--mint); }
.overview-calendar-nav button:disabled { cursor: not-allowed; opacity: .35; }
.overview-calendar-grid { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.overview-calendar-day {
  min-width: 0;
  min-height: 74px;
  padding: 5px 2px;
  display: grid;
  grid-template-rows: auto 1fr;
  place-items: center;
  border: 1px solid #dce7e3;
  border-radius: 9px;
  color: var(--ink);
  background: #f8faf9;
  font: inherit;
}
.overview-calendar-day small { color: #71837d; font-size: 8px; font-weight: 800; }
.overview-calendar-day > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 800; }
.overview-calendar-day.has-log { border-color: #bdd8cf; background: #f0f7f4; cursor: pointer; }
.overview-calendar-day.has-log > span { color: #fff; background: #173c34; box-shadow: 0 5px 13px rgba(23, 60, 52, .18); }
.overview-calendar-day.has-log:hover > span { transform: translateY(-1px); background: #176b5b; }
.overview-calendar-day.has-log:focus-visible { outline: 2px solid #c99b25; outline-offset: 2px; }
.overview-calendar-day.selected { border-color: #d5ac3f; background: #fff7df; box-shadow: inset 0 -3px #e6ba49; }
.overview-calendar-day.selected > span { color: #173c34; background: #f2cc63; box-shadow: 0 5px 13px rgba(191, 139, 20, .2); }
.overview-calendar-day.no-log { color: #a2ada9; background: #f5f7f6; cursor: not-allowed; }
.overview-calendar-day.no-log small { color: #a5afab; }
.overview-calendar-day.no-log > span { color: #a4aea9; background: #e8eeeb; }

.overview-station-map { padding: 20px 22px 18px; overflow: hidden; }
.overview-station-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 14px 20px; scroll-margin-top: 140px; }
.overview-station-tools p { flex: 1 1 260px; margin: 0; color: #61796e; font-size: 12px; }
.overview-map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-map-filters button, .overview-map-back { padding: 9px 12px; border: 1px solid #cbdcd4; border-radius: 9px; background: #fff; color: #315f4d; font: inherit; font-size: 12px; cursor: pointer; }
.overview-map-filters b { margin-left: 7px; font-variant-numeric: tabular-nums; }
.overview-map-filters button[aria-pressed="true"] { border-color: #216951; background: #216951; color: #fff; }
.overview-map-filters button:focus-visible, .overview-map-back:focus-visible { outline: 2px solid #216951; outline-offset: 3px; }
.overview-station-tools button:disabled { opacity: .55; cursor: wait; }
.overview-map-back[hidden] { display: none; }
.overview-map-empty { padding: 12px; border-radius: 9px; background: #f1f7f4; color: #456d5d; text-align: center; }
.overview-map-station [role="button"] { cursor: pointer; outline: none; }
.overview-map-station [role="button"]:hover rect, .overview-map-station [role="button"]:focus-visible rect { stroke: #216951; stroke-width: 2.2; filter: drop-shadow(0 3px 5px rgba(23, 60, 52, .18)); }
.overview-station-map-canvas[aria-busy="true"] { opacity: .6; pointer-events: none; }
.overview-station-map[hidden] { display: none; }
.overview-station-map .overview-panel-head { margin-bottom: 8px; }
.overview-station-map-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe8e3;
  border-radius: 16px;
  background: radial-gradient(circle at 18% 24%, rgba(164, 189, 179, .13), transparent 34%), linear-gradient(145deg, #fafcfb, #f1f5f3);
}
.overview-station-map-canvas svg { width: 100%; height: auto; display: block; }
.overview-station-map-canvas .overview-map-background { position: absolute; inset: 0; height: 100%; pointer-events: none; }
.overview-map-diagram { position: relative; height: 100%; }
.overview-map-photo { opacity: .09; filter: saturate(.45); pointer-events: none; }
.overview-map-land { display: none; }
.overview-map-terrain path { fill: none; stroke: #d7dfdc; stroke-width: 1.2; stroke-dasharray: 3 7; opacity: .72; }
.overview-map-admin-lines path { fill: none; stroke: #aabdb5; stroke-width: .7; opacity: .8; }
.overview-map-region-labels text { fill: #a4aeaa; font-size: 12px; font-weight: 700; letter-spacing: .16em; paint-order: stroke; stroke: #f3f7f5; stroke-width: 3px; stroke-linejoin: round; }
.overview-map-region-labels .overview-map-city-label { fill: #98a39f; font-size: 10px; letter-spacing: .08em; }
.overview-map-river-shadow { fill: none; stroke: rgba(57, 127, 153, .18); stroke-width: 7; stroke-linecap: round; filter: url(#overviewMapRiverShadow); }
.overview-map-river { fill: none; stroke: url(#overviewMapRiver); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: url(#overviewMapRiverShadow); }
.overview-map-river-label text { fill: #3d829a; font-size: 11px; font-weight: 800; letter-spacing: .12em; paint-order: stroke; stroke: #f3f7f5; stroke-width: 3px; }
.overview-map-water-label { fill: #9aa8a3; font-size: 9px; letter-spacing: .14em; }
.overview-map-elevation-legend { transform: translate(28px, 486px); }
.overview-map-elevation-legend circle { fill: rgba(47, 138, 112, .08); stroke: #78a696; stroke-width: 1.3; }
.overview-map-elevation-legend text { fill: #81908b; font-size: 8px; font-weight: 600; }
.overview-map-station path { fill: none; stroke: #78968c; stroke-width: 1.1; stroke-dasharray: 3 3; }
.overview-map-station .overview-map-elevation-ring { fill: rgba(47, 138, 112, .09); stroke: #79aa99; stroke-width: 1.2; }
.overview-map-station .overview-map-station-dot { fill: #2f8a70; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 4px rgba(23, 60, 52, .22)); }
.overview-map-station rect { fill: rgba(255, 255, 255, .96); stroke: #b8d3ca; stroke-width: 1.2; filter: drop-shadow(0 2px 4px rgba(23, 60, 52, .08)); }
.overview-map-station text { pointer-events: none; }
.overview-map-station-name { fill: #173c34; font-size: 10px; font-weight: 800; }
.overview-map-station-value { fill: #47675d; font-size: 8px; font-weight: 500; }
.overview-map-station-elevation { fill: #87958f; font-size: 7px; font-weight: 600; }
.overview-map-station.danger path { stroke: #cf6a5d; }
.overview-map-station.danger .overview-map-station-dot { fill: #d45547; }
.overview-map-station.danger .overview-map-elevation-ring { fill: rgba(212, 85, 71, .08); stroke: #d8867d; }
.overview-map-station.danger rect { fill: #fff4f1; stroke: #df8f84; }
.overview-map-station.danger .overview-map-station-value { fill: #a53c31; font-weight: 800; }
.overview-map-station.missing path { stroke: #aebbb7; }
.overview-map-station.missing .overview-map-station-dot { fill: #98a9a3; }
.overview-map-station.missing .overview-map-elevation-ring { fill: rgba(152, 169, 163, .08); stroke: #aab8b3; }
.overview-map-station.missing rect { fill: #f4f7f6; stroke: #cbd6d2; }
.overview-map-station.missing .overview-map-station-value { fill: #81918c; }

.overview-section-tabs {
  position: sticky;
  top: 118px;
  z-index: 9;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: #fff;
}
.overview-section-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #536a62;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.overview-section-tabs button:hover { color: var(--green); background: #f1f7f4; }
.overview-section-tabs button.active { border-color: #bcdacf; color: #155f50; background: #e7f3ef; box-shadow: inset 0 -2px #21806b; }

.overview-panel,
.overview-section { padding: 22px; }
.overview-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.overview-panel-head h3 { margin: 3px 0 0; }
.overview-panel-head p:last-child { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.overview-panel-head > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf4f1;
  font-size: 9px;
  font-weight: 800;
}
.overview-panel-head > span.warning { color: #86600d; background: #fff1ca; }
.overview-panel-head > span.danger { padding: 9px 13px; color: #a53c31; background: #fae4df; font-size: 13px; line-height: 1.2; }
.overview-panel-head > span.ok { color: #176b5b; background: #e4f2ed; }
.overview-panel-head > a { color: var(--green); font-size: 10px; font-weight: 800; text-decoration: none; }

.overview-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.overview-log-card {
  min-width: 0;
  padding: 10px;
  line-height: 1.35;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background: #fbfdfc;
}
.overview-log-card.missing { border-style: dashed; background: #fffaf0; }
.overview-log-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e4ebe8;
}
.overview-log-card header b { color: var(--green); font-size: 11px; }
.overview-log-card h4 { margin: 1px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.overview-log-card time { color: var(--muted); font-size: 11px; white-space: nowrap; }

.overview-personnel-fields,
.overview-hse-card dl { margin: 6px 0 0; }
.overview-personnel-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.overview-personnel-fields > div {
  min-width: 0;
  padding: 5px 8px;
  border-radius: 10px;
  background: #f0f5f3;
}
.overview-personnel-fields dt,
.overview-hse-field dt { color: var(--muted); font-size: 11px; }
.overview-personnel-fields dd,
.overview-hse-field dd { margin: 2px 0 0; color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.overview-personnel-fields dt,
.overview-personnel-fields dd { font-weight: 400; }
.overview-personnel-fields .is-deputy-duty dt,
.overview-personnel-fields .is-deputy-duty dd { font-weight: 800; }
.overview-personnel-fields dd.empty,
.overview-hse-field dd.empty { color: #99a8a3; }

.overview-hse-card.has-danger { border-color: #e8b0a7; box-shadow: inset 4px 0 #d45547; }
.overview-hse-field { padding: 5px 0; }
.overview-hse-field + .overview-hse-field { border-top: 1px solid #e5ece9; }
.overview-hse-field dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-hse-field dt b {
  padding: 2px 6px;
  border-radius: 999px;
  color: #a53c31;
  background: #fae4df;
  font-size: 10px;
}
.overview-hse-field.normal dt b { color: #176b5b; background: #e3f2eb; }
.overview-hse-field.unchecked dt b { color: #88651d; background: #fff2d5; }
.overview-hse-field.not-applicable dt b { color: #667a73; background: #edf1ef; }
.overview-hse-field.danger {
  margin-inline: -8px;
  padding-inline: 8px;
  border-color: transparent;
  border-radius: 9px;
  background: #fff3f0;
}
.overview-hse-field.danger dd { color: #832f27; font-weight: 700; }

.overview-equipment-card.has-danger { border-color: #e8b0a7; box-shadow: inset 4px 0 #d45547; }
.overview-equipment-card dl { margin: 6px 0 0; }
.overview-equipment-field { padding: 5px 0; }
.overview-equipment-field + .overview-equipment-field { border-top: 1px solid #e5ece9; }
.overview-equipment-field dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.overview-equipment-field dt b { padding: 2px 6px; border-radius: 999px; color: #a53c31; background: #fae4df; font-size: 10px; }
.overview-equipment-field dd { margin: 2px 0 0; color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.overview-equipment-field.danger { margin-inline: -8px; padding-inline: 8px; border-color: transparent; border-radius: 9px; background: #fff3f0; }
.overview-equipment-field.danger dd { color: #832f27; font-weight: 700; }
.overview-equipment-field.normal dd { color: #176b5b; }

.overview-empty { grid-column: 1 / -1; padding: 28px; color: var(--muted); text-align: center; }

.overview-status-badge { padding: 5px 8px; border-radius: 999px; background: #e4f2ed; color: #176b5b; }
.overview-status-badge.warning { background: #fff1cf; color: #8a6414; }
.overview-status-badge.danger { background: #fae4df; color: #a4483b; }

.overview-filters { display: flex; align-items: flex-end; gap: 9px; }
.overview-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.overview-filters input { height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); color-scheme: light; }
.overview-chart { width: 100%; height: 320px; border: 1px solid #e1eae6; border-radius: 14px; background: #fbfdfc; }
.overview-chart canvas { display: block; width: 100%; height: 100%; }

.medical-risk-panel { margin-top: 16px; padding: 20px; }
.medical-risk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.medical-risk-item { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #e4eae8; border-radius: 11px; background: #fff; }
.medical-risk-item strong { font-size: 10px; }
.medical-risk-item small { color: var(--muted); }
.medical-risk-item.danger { border-color: #efc1b8; background: #fff7f5; }
.medical-risk-item.warning { border-color: #ecd9a9; background: #fffaf0; }
.medical-risk-item strong,
.medical-risk-item small { display: block; }
.medical-risk-item small { margin-top: 4px; line-height: 1.5; }

.charity-analytics { margin-bottom: 16px; }
.charity-analytics-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 14px; }
.charity-ranking { display: grid; gap: 8px; }
.charity-ranking article { padding: 10px 12px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; border: 1px solid #e1e9e6; border-radius: 11px; background: #fff; }
.charity-ranking b { color: var(--green); }
.charity-ranking span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.charity-ranking strong { font-size: 10px; }
.charity-analytics .charity-sale-metrics { margin: 0 0 14px; }

.work-log-analytics { margin-bottom: 18px; }
.work-log-analytics-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.work-log-analytics-grid article { min-height: 86px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #e2ebe7; border-radius: 14px; background: #fff; }
.work-log-analytics-grid span,
.work-log-analytics-grid small { color: var(--muted); font-size: 9px; }
.work-log-analytics-grid strong { font-size: 20px; }
.work-log-analytics-chart { height: 250px; margin-top: 14px; border: 1px solid #e1eae6; border-radius: 14px; background: #fff; }
.work-log-analytics-chart canvas { display: block; width: 100%; height: 100%; }

@media (max-width: 1100px) {
  .workspace.overview-workspace-shell { padding-top: 204px; }
  .topbar.overview-topbar { height: 204px; min-height: 204px; padding: 12px 24px; grid-template-columns: 124px minmax(0, 1fr) 40px; grid-template-rows: 90px 90px; gap: 8px 12px; }
  .overview-topbar-title { grid-column: 1; grid-row: 1; }
  .overview-topbar .overview-calendar { height: 90px; min-height: 90px; grid-column: 1 / -1; grid-row: 2; }
  .overview-top-summary { width: 100%; height: 90px; grid-column: 2; grid-row: 1; }
  .overview-topbar .avatar { grid-column: 3; grid-row: 1; }
  .overview-section-tabs { top: 204px; }
  .overview-station-map { padding: 16px; }
  .overview-card-grid { grid-template-columns: 1fr; }
  .work-log-analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .workspace.overview-workspace-shell { padding-top: 256px; }
  .topbar.overview-topbar { height: 256px; min-height: 256px; padding: 10px 16px; grid-template-columns: minmax(0, 1fr) 38px; grid-template-rows: 38px 92px 92px; gap: 7px; }
  .overview-topbar-title { grid-column: 1; grid-row: 1; }
  .overview-topbar-title .eyebrow { display: none; }
  .overview-topbar .avatar { width: 38px; height: 38px; grid-column: 2; grid-row: 1; }
  .overview-top-summary { width: 100%; height: 92px; min-width: 0; grid-column: 1 / -1; grid-row: 2; }
  .overview-topbar .overview-calendar { height: 92px; min-height: 92px; grid-column: 1 / -1; grid-row: 3; grid-template-columns: 118px minmax(0, 1fr); }
  .overview-calendar > header > div { width: 100%; }
  .overview-calendar > header .eyebrow,
  .overview-calendar > header #overviewCalendarStatus { display: none; }
  .overview-top-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-signal-card { min-height: 0; padding: 4px 7px; }
  .overview-signal-card > span { font-size: 8px; }
  .overview-signal-card > strong { display: inline-block; margin: 3px 0 0; font-size: 16px; }
  .overview-section-tabs { top: 256px; }
  .overview-calendar { padding: 7px; gap: 6px; }
  .overview-calendar > header { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; }
  .overview-calendar-heading-row { gap: 5px; }
  .overview-calendar h2 { font-size: 10px; }
  .overview-calendar-month { font-size: 14px; }
  .overview-calendar-grid { gap: 3px; }
  .overview-calendar-day { min-height: 80px; padding: 5px 1px; border-radius: 8px; }
  .overview-calendar-day > span { width: 24px; height: 24px; font-size: 8px; }
  .overview-station-map { padding: 12px; }
  .overview-station-map-canvas { overflow-x: auto; }
  .overview-station-map-canvas svg { width: 920px; max-width: none; }
  .overview-panel-head { align-items: stretch; flex-direction: column; }
  .overview-range-pill { align-self: flex-start; }
  .medical-risk-list,
  .charity-analytics-layout { grid-template-columns: 1fr; }
  .overview-personnel-fields { grid-template-columns: 1fr; }
  .overview-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .overview-chart { height: 280px; }
  .work-log-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the map and its controls within the first viewport. */
.workspace.overview-workspace-shell { --overview-header-height: 118px; }
.overview-workspace-shell > .content { padding-top: 0; }
.overview-map-area { min-width: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.overview-map-area:has(.overview-station-map:not([hidden])) { height: calc(100dvh - var(--overview-header-height, 118px) - var(--overview-bottom-height, 0px) - 12px); min-height: 200px; }
.overview-map-area .overview-station-tools { flex: 0 0 auto; padding: 0; gap: 8px 14px; scroll-margin-top: calc(var(--overview-header-height, 118px) + 10px); }
.overview-map-area .overview-station-tools p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-map-area .overview-map-filters button, .overview-map-area .overview-map-back { padding: 7px 10px; }
.overview-map-area .overview-station-map { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.overview-map-area .overview-station-map[hidden] { display: none; }
.overview-map-area .overview-map-empty { flex: 0 0 auto; margin: 0; padding: 6px; }
.overview-map-area .overview-station-map-canvas { flex: 1; min-height: 0; overflow: hidden; }
.overview-map-area .overview-station-map-canvas svg { width: 100%; height: 100%; max-width: 100%; }
@media (max-width: 1100px) { .workspace.overview-workspace-shell { --overview-header-height: 204px; } }
@media (max-width: 680px) {
  .workspace.overview-workspace-shell { --overview-header-height: 256px; --overview-bottom-height: 64px; }
  .overview-map-area { padding: 8px; }
  .overview-map-area .overview-station-tools p { flex-basis: 100%; font-size: 11px; }
}

.overview-station-tools > #overviewStationMapStatus {
  flex: 0 1 auto;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  color: #61796e;
  background: #edf4f1;
}
.overview-station-tools > #overviewStationMapStatus.danger { color: #a53c31; background: #fae4df; }
.overview-station-tools > #overviewStationMapStatus.ok { color: #176b5b; background: #e4f2ed; }

/* Single-station details start close to the header, with all controls visible. */
.overview-workspace:has(.overview-station-map[hidden]) { gap: 6px; }
.overview-map-area:has(.overview-station-map[hidden]) { padding: 4px 10px; }
.overview-map-area:has(.overview-station-map[hidden]) .overview-map-filters button,
.overview-map-area:has(.overview-station-map[hidden]) .overview-map-back { padding-block: 6px; }
.overview-workspace:has(.overview-station-map[hidden]) .overview-section-tabs { padding: 4px; }
.overview-workspace:has(.overview-station-map[hidden]) .overview-section-tabs button { min-height: 34px; }
.overview-workspace:has(.overview-station-map[hidden]) .overview-section { padding: 12px 14px; }
.overview-workspace:has(.overview-station-map[hidden]) .overview-section > .overview-panel-head { margin-bottom: 10px; }

/* Multi-station status table and map toggle. */
.overview-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.overview-view-toggle { display: flex; padding: 3px; border: 1px solid #cbdcd4; border-radius: 10px; background: #f4f8f6; }
.overview-view-toggle[hidden] { display: none; }
.overview-view-toggle button { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: #315f4d; font: inherit; font-size: 12px; cursor: pointer; }
.overview-view-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 1px 2px rgba(23, 53, 47, .14); }
.overview-view-toggle button:focus-visible { outline: 2px solid #216951; outline-offset: 2px; }
.overview-station-map[data-view="table"] .overview-station-map-canvas,
.overview-station-map[data-view="map"] .overview-station-table { display: none; }
.overview-map-area:has(.overview-station-map[data-view="table"]:not([hidden])) { height: auto; }
.overview-station-table { overflow-x: auto; }
.overview-station-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.overview-station-table th, .overview-station-table td { padding: 9px 10px; border-bottom: 1px solid #e4ebe8; text-align: left; vertical-align: middle; white-space: nowrap; }
.overview-station-table thead th { color: var(--muted); font-size: 11px; font-weight: 700; background: #f6f9f7; }
.overview-station-table tbody tr[data-overview-station] { cursor: pointer; }
.overview-station-table tbody tr[data-overview-station]:hover { background: #f1f7f4; }
.overview-station-table tbody th { font-weight: 400; }
.overview-station-table tbody th button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.overview-station-table tbody th button b { margin-right: 8px; color: var(--green); font-size: 11px; }
.overview-station-table tbody th button:focus-visible { outline: 2px solid #216951; outline-offset: 3px; }
.overview-station-table tr.danger > th { box-shadow: inset 3px 0 #c9483b; }
.overview-station-table tr.missing > th { box-shadow: inset 3px 0 #d9a326; }
.overview-station-table td.ok { color: #176b5b; }
.overview-station-table td.danger { color: #a53c31; white-space: normal; min-width: 120px; }
.overview-station-table td.danger small { display: block; margin-top: 2px; color: #832f27; font-size: 11px; }
.overview-station-table td.missing { color: #86600d; }
.overview-station-table td.unchecked, .overview-station-table td.muted { color: var(--muted); }
.overview-station-table td.go { width: 24px; color: #97bdb0; font-size: 18px; text-align: center; }
.overview-normal-toggle td { padding: 6px 10px; background: #f5fbf8; }
.overview-normal-toggle button { width: 100%; padding: 6px; border: 0; background: none; color: #176b5b; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.overview-normal-toggle button:focus-visible { outline: 2px solid #216951; outline-offset: 2px; }

/* 30-day log completeness heatmap. */
.overview-workspace > * { min-width: 0; }
.overview-missing-logs { overflow-x: auto; }
.overview-heatmap { min-width: 640px; display: grid; gap: 3px; }
.overview-heatmap-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 10px; }
.overview-heatmap-label { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.overview-heatmap-label button, .overview-heatmap-label span { min-width: 0; overflow: hidden; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.overview-heatmap-label button { cursor: pointer; }
.overview-heatmap-label button:hover { color: var(--green); text-decoration: underline; }
.overview-heatmap-label b { margin-right: 6px; color: var(--green); font-size: 11px; }
.overview-heatmap-label strong { flex: 0 0 auto; color: #86600d; font-size: 11px; }
.overview-heatmap-row.complete .overview-heatmap-label strong { color: #176b5b; }
.overview-heatmap-cells { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; }
.overview-heatmap-cells > i { height: 18px; border-radius: 3px; background: #cfe6dc; }
.overview-heatmap-cells > i.missing, .overview-heatmap-legend i.missing { background: #e3a21a; }
.overview-heatmap-cells > i.selected { outline: 2px solid var(--ink); outline-offset: -1px; }
.overview-heatmap-head .overview-heatmap-label { color: var(--muted); font-size: 11px; }
.overview-heatmap-head .overview-heatmap-cells > * { padding: 2px 0; border: 0; border-radius: 3px; background: none; color: var(--muted); font: inherit; font-size: 10px; text-align: center; white-space: nowrap; }
.overview-heatmap-head .overview-heatmap-cells > button { cursor: pointer; }
.overview-heatmap-head .overview-heatmap-cells > button:hover { background: #e4f2ed; color: var(--ink); }
.overview-heatmap-head .overview-heatmap-cells > .selected { background: var(--ink); color: #fff; font-weight: 800; }
.overview-heatmap-head .overview-heatmap-cells > .month-start { font-weight: 800; }
.overview-heatmap-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.overview-heatmap-legend span { display: inline-flex; align-items: center; gap: 5px; }
.overview-heatmap-legend i { width: 12px; height: 12px; border-radius: 3px; background: #cfe6dc; }
@media (max-width: 680px) {
  .overview-heatmap-row { grid-template-columns: 120px minmax(0, 1fr); }
  .overview-station-table th, .overview-station-table td { padding: 8px 6px; }
}

/* Redesigned all-station overview: status, to-do list, this month's outcomes. */
.overview-top-summary[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.overview-top-summary[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.overview-signal-card { display: block; text-decoration: none; }
/* Leave room for this month's outcomes on the first screen. */
.overview-main-row .overview-map-area:has(.overview-station-map[data-view="map"]:not([hidden])) { height: max(380px, calc(100dvh - var(--overview-header-height, 118px) - var(--overview-bottom-height, 0px) - 196px)); }
.overview-main-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 14px; align-items: stretch; }
.overview-main-row:has(.overview-todo[hidden]) { grid-template-columns: minmax(0, 1fr); }
.overview-todo { min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.overview-todo[hidden] { display: none; }
.overview-todo > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.overview-todo h3 { margin: 0; font-size: 15px; }
.overview-todo > header span { color: var(--muted); font-size: 11px; }
.overview-todo-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.overview-todo-list li { border-bottom: 1px solid #e4ebe8; }
.overview-todo-list a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 8px; padding: 8px 2px; color: var(--ink); text-decoration: none; }
.overview-todo-list a:hover { background: #f1f7f4; }
.overview-todo-list a:focus-visible { outline: 2px solid #216951; outline-offset: -2px; }
.overview-todo-list b { grid-row: span 2; align-self: start; padding: 2px 0; border-radius: 6px; font-size: 11px; text-align: center; }
.overview-todo-list .critical b { color: #a53c31; background: #fae4df; }
.overview-todo-list .warning b { color: #86600d; background: #fff1ca; }
.overview-todo-list .info b { color: #476a5e; background: #edf4f1; }
.overview-todo-list span { min-width: 0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.overview-todo-list span strong { margin-right: 6px; color: var(--green); }
.overview-todo-list small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.overview-todo-empty { padding: 18px 4px; color: var(--muted); font-size: 12px; text-align: center; }
.overview-todo-more { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.overview-todo-more[hidden] { display: none; }

.overview-outcomes { padding: 14px 16px; }
.overview-outcomes[hidden] { display: none; }
.overview-outcomes > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.overview-outcomes h3 { display: inline; margin: 0 10px 0 0; font-size: 15px; }
.overview-outcomes header p { display: inline; margin: 0; color: var(--muted); font-size: 12px; }
.overview-outcomes header > span { color: var(--muted); font-size: 11px; }
.overview-outcome-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.overview-outcome { min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; border: 1px solid #e2ebe7; border-radius: 12px; background: #fbfdfc; color: var(--ink); text-decoration: none; }
.overview-outcome:hover { border-color: #97bdb0; background: #f1f7f4; }
.overview-outcome:focus-visible { outline: 2px solid #216951; outline-offset: 2px; }
.overview-outcome > span { color: var(--muted); font-size: 11px; }
.overview-outcome strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.overview-outcome strong small { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.overview-outcome em { color: var(--muted); font-size: 11px; font-style: normal; }
.overview-outcome em.up { color: #176b5b; }
.overview-outcome em.down { color: #a53c31; }

.overview-station-table tr.flagged > th { box-shadow: inset 3px 0 #d9a326; }
.overview-station-table td.week { white-space: nowrap; }
.overview-station-table td.week small { margin-left: 6px; color: #86600d; font-size: 11px; }
.overview-week-strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.overview-week-strip i { width: 9px; height: 14px; border-radius: 2px; background: #cfe6dc; }
.overview-week-strip i.missing { background: #e3a21a; }

.overview-heatmap-toggle { padding: 7px 12px; border: 1px solid #cbdcd4; border-radius: 9px; background: #fff; color: #315f4d; font: inherit; font-size: 12px; cursor: pointer; }
.overview-heatmap-toggle[hidden], .overview-missing-summary[hidden], .overview-missing-logs[hidden] { display: none; }
.overview-heatmap-toggle:focus-visible { outline: 2px solid #216951; outline-offset: 2px; }
.overview-missing-summary { margin: 0 0 10px; color: #86600d; font-size: 12px; }
.overview-section[data-overview-panel="missing"] .overview-panel-head { gap: 10px; }

@media (max-width: 1100px) {
  .overview-main-row { grid-template-columns: minmax(0, 1fr); }
  .overview-outcome-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .overview-top-summary[data-count="5"], .overview-top-summary[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.overview-top-summary[data-count="5"] .overview-signal-card > strong { font-size: 21px; white-space: nowrap; }
.overview-signal-card > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-station-table td.events { white-space: normal; min-width: 120px; }
.overview-station-table td.events small { display: block; margin-top: 2px; font-size: 11px; }
.overview-signal-card > small { margin-top: 2px; color: var(--muted); font-size: 11px; }
@media (max-width: 680px) { .overview-signal-card > small { display: none; } }
