.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero-copy,
.hero-panel,
.panel {
  background: rgba(20, 34, 50, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.hero-copy {
  padding: 28px;
}

.hero-panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 26, 40, 0.98), rgba(13, 29, 43, 0.98));
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-metrics {
  display: grid;
  gap: 14px;
}

.hero-metrics span,
.legend span,
.fuel-notes span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-kpi {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.grid-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.kpi-card {
  padding: 20px;
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}


.section-anchor {
  scroll-margin-top: 94px;
}

.appbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 17, 26, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.appbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.appbar-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.appbar-brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appbar-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06131c;
  font-size: 12px;
  font-weight: 900;
}

.appnav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.appnav a,
.footer-links a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.appnav a:hover,
.footer-links a:hover {
  background: rgba(75, 214, 255, 0.08);
  color: var(--cyan);
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c9d7df;
  font-size: 11px;
}

.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(115, 242, 141, 0.1);
}

.hero-copy,
.hero-panel,
.panel,
.filters-panel,
.report-toolbar,
.kpi-card {
  border-color: rgba(255, 255, 255, 0.075);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
}

.app-footer > div:first-child {
  display: grid;
  gap: 5px;
}

.app-footer span {
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 6px;
}
