* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, sans-serif; }
html, body {width: 100%; height: 100%;}

.page {
  background: linear-gradient(155deg, #0d3d2e 0%, #1a4a6b 45%, #0d2a4a 100%);
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  position: relative;
}
.glass {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  box-shadow: inset 0 0 8px rgba(255,255,255,0.07);
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.back-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  padding: 7px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  cursor: pointer;
}
.status-badge {
  font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 500;
}
.status-crit { background: rgba(255,80,80,0.25); color: #ffb0b0; border: 1px solid rgba(255,80,80,0.4); }
.header-card {
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.loc-title { color: white; font-size: 20px; font-weight: 500; }
.loc-meta { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 4px; }
.meta-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 11px; color: rgba(255,255,255,0.45); }
.meta-val { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.section-label {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.chart-wrap {
  padding: 16px 20px 12px;
  position: relative;
}
.table-wrap {
  padding: 14px 18px;
}
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 11px; color: rgba(255,255,255,0.45);
  text-align: left; padding: 0 8px 8px 0;
  font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
}
td { font-size: 13px; color: rgba(255,255,255,0.82); padding: 6px 8px 6px 0; border-top: 1px solid rgba(255,255,255,0.08); }
td:last-child { text-align: right; }
.exceed { color: #ff9090; font-weight: 500; }
.bar-cell { width: 90px; }
.bar-bg { background: rgba(255,255,255,0.1); border-radius: 3px; height: 6px; overflow: hidden; }
.bar-fill { height: 6px; border-radius: 3px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}
.tab.active { background: rgba(255,255,255,0.22); color: white; border-color: rgba(255,255,255,0.45); }

.time-control {
  margin-bottom: 14px;
  padding: 14px 20px 10px;
}
.time-control-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-label-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.time-icon {
  font-size: 18px;
  opacity: 0.7;
}
.time-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}
.time-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
  margin-top: 1px;
}
.time-slider-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.time-day-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.time-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.1s;
}
.time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.time-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
}
.time-day-val {
  font-size: 14px;
  font-weight: 500;
  color: white;
  min-width: 52px;
  white-space: nowrap;
}
.time-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}
.canvas-container { position: relative; height: 220px; width: 100%; }