:root {
  --bg: #edf2f6;
  --ink: #132338;
  --muted: #5b697a;
  --panel: #ffffff;
  --line: #d4dde7;
  --chip: #edf4fb;
  --chip-line: #c6d3e1;
  --chip-active: #dbeaff;
  --accent: #0d4a88;
  --accent-strong: #083767;
  --surface: #f8fbff;
  --error: #b62d2d;
  --event-open: #e6f6ea;
  --event-open-line: #a8d4b2;
  --event-close: #fff0e6;
  --event-close-line: #efc4a8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(13, 74, 136, 0.09), transparent 28%),
    linear-gradient(145deg, #eef3f8, #f9fbfd 50%, #eef5f0);
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

h2,
h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-button {
  appearance: none;
  border: 1px solid var(--chip-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tab-button:hover {
  border-color: var(--accent);
}

.tab-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.status {
  min-height: 24px;
  color: var(--muted);
}

.status.error {
  color: var(--error);
}

.panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(17, 35, 56, 0.04);
}

.panel {
  padding: 14px;
  margin: 14px 0;
}

.panel h2 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.schedule-grid p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.schedule-grid .label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.countdown-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.countdown-readout {
  display: block;
  min-height: 1.2em;
}

.countdown-track {
  position: relative;
  display: block;
  width: 100%;
  height: 22px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(13, 74, 136, 0.12), rgba(13, 74, 136, 0.02)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      rgba(19, 35, 56, 0.06) 24px,
      rgba(19, 35, 56, 0.06) 25px
    );
  overflow: hidden;
}

.countdown-track::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, rgba(13, 74, 136, 0.22), rgba(13, 74, 136, 0.1));
}

.countdown-car {
  position: absolute;
  top: 50%;
  right: calc(var(--progress, 0) * (100% - 28px));
  transform: translateY(-50%) scaleX(-1);
  z-index: 1;
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(19, 35, 56, 0.15));
}

.filter-block + .filter-block {
  margin-top: 12px;
}

.filter-block h3 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.84rem;
  padding: 5px 10px;
  user-select: none;
}

.chip:has(input:checked) {
  background: var(--chip-active);
  border-color: #9ebde0;
}

.chip input {
  margin: 0;
}

.event-list {
  min-height: 42px;
}

.event-table-wrap {
  margin-top: 8px;
}

.event-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.event-item {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.event-opened {
  background: var(--event-open);
  border-color: var(--event-open-line);
}

.event-closed {
  background: var(--event-close);
  border-color: var(--event-close-line);
}

.event-badge {
  min-width: 68px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 800;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-pill-opened {
  background: var(--event-open);
  border-color: var(--event-open-line);
}

.event-pill-closed {
  background: var(--event-close);
  border-color: var(--event-close-line);
}

.event-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.table-wrap {
  padding: 10px;
  overflow: auto;
}

.contact-panel {
  margin-top: 20px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.field span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-button {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.danger-button {
  border-color: #b42318;
  background: #b42318;
}

.danger-button:hover:not(:disabled) {
  background: #7a1b12;
  border-color: #7a1b12;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.admin-metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.admin-metric .eyebrow {
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.metric-sub {
  color: var(--muted);
  margin: 0 0 6px;
}

.metric-path {
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

table.dataTable thead th,
table.dataTable tbody td {
  white-space: nowrap;
}

table.dataTable thead tr.filters th {
  padding: 6px 8px;
}

table.dataTable thead tr.filters input {
  width: 100%;
  min-width: 84px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.83rem;
  background: #fff;
}

table.dataTable td.col-image {
  width: 72px;
}

.thumb {
  display: block;
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #eef3f7;
}

div.dataTables_wrapper div.dataTables_info {
  padding-top: 10px;
  color: var(--muted);
}

div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_paginate {
  display: none;
}

.site-body {
  background:
    radial-gradient(circle at top left, rgba(13, 74, 136, 0.14), transparent 24%),
    linear-gradient(155deg, #eef4fb 0%, #f8fbfe 52%, #eef8f0 100%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 254, 0.88);
  border-bottom: 1px solid rgba(198, 211, 225, 0.72);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand small {
  color: var(--muted);
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0f6cb8);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav-links a {
  text-decoration: none;
  font-weight: 700;
}

.site-main {
  padding: 28px 0 40px;
}

.site-footer {
  padding: 18px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

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

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

.page-hero-compact {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
}

.hero-copy,
.hero-panel,
.monitor-shell,
.content-panel,
.stat-card,
.location-card,
.list-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(17, 35, 56, 0.05);
}

.hero-copy {
  padding: 24px;
}

.hero-panel,
.content-panel {
  padding: 18px;
}

.monitor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

.monitor-shell-healthy {
  box-shadow: 0 18px 42px rgba(17, 35, 56, 0.05), inset 0 0 0 1px rgba(46, 141, 74, 0.16);
}

.monitor-shell-warning {
  box-shadow: 0 18px 42px rgba(17, 35, 56, 0.05), inset 0 0 0 1px rgba(196, 146, 31, 0.2);
}

.monitor-shell-critical {
  box-shadow: 0 18px 42px rgba(17, 35, 56, 0.05), inset 0 0 0 1px rgba(182, 45, 45, 0.16);
}

.hero-text,
.empty-copy {
  color: var(--muted);
  max-width: 68ch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.monitor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ghost-button {
  appearance: none;
  border: 1px solid var(--chip-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.ghost-button:hover {
  border-color: var(--accent);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.monitor-glance {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
}

.status-chip-healthy {
  background: var(--event-open);
  border: 1px solid var(--event-open-line);
  color: #19633a;
}

.status-chip-warning {
  background: #fff7dd;
  border: 1px solid #e5cf8d;
  color: #815d00;
}

.status-chip-critical {
  background: #fdebea;
  border: 1px solid #efc1bf;
  color: #8f2323;
}

.metric-block {
  display: grid;
  gap: 4px;
}

.metric-label,
.mini-metric-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-value {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 0.95;
  font-weight: 900;
}

.metric-support,
.monitor-freshness-detail {
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-metrics div {
  padding: 12px;
  border: 1px solid rgba(212, 221, 231, 0.9);
  border-radius: 14px;
  background: var(--surface);
}

.mini-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.monitor-freshness {
  margin: 0;
  font-weight: 800;
}

.monitor-freshness-detail {
  margin: -8px 0 0;
}

.hero-meta {
  margin: 0;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 221, 231, 0.85);
}

.mini-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.mini-list dt {
  color: var(--muted);
  font-weight: 700;
}

.mini-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.stats-grid,
.content-grid,
.feature-grid,
.location-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

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

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

.content-grid-manage {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

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

.feature-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.location-grid-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.panel-headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.analytics-grid {
  align-items: stretch;
}

.chart-panel {
  display: flex;
  flex-direction: column;
}

.chart-panel-headline {
  align-items: flex-start;
}

.chart-summary {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  align-items: flex-end;
}

.chart-summary strong {
  color: var(--accent);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 0.95;
}

.chart-canvas-frame {
  position: relative;
  min-height: 320px;
  margin-top: 14px;
  padding: 16px 16px 10px;
  border: 1px solid rgba(191, 210, 234, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(13, 74, 136, 0.08), rgba(13, 74, 136, 0.01) 48%, rgba(255, 255, 255, 0.96)),
    #f7fbff;
}

.chart-canvas-frame canvas {
  width: 100%;
  height: 100% !important;
}

.chart-note {
  margin: 12px 0 0;
}

.chart-empty-state {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px dashed rgba(191, 210, 234, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), #f4f9ff);
}

.chart-empty-state strong {
  color: var(--accent);
}

.trend-panel {
  --trend-accent: var(--accent);
  --trend-accent-soft: #eaf3ff;
  --trend-accent-frame: #bfd2ea;
  --trend-accent-glow: rgba(13, 74, 136, 0.12);
  margin-bottom: 18px;
  width: 100%;
}

.trend-panel .eyebrow,
.trend-summary strong {
  color: var(--trend-accent);
}

.trend-headline {
  align-items: end;
}

.trend-summary {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  align-items: flex-end;
}

.trend-summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trend-summary strong {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 0.95;
}

.trend-chart-frame {
  margin-top: 14px;
  padding: 18px 16px 12px;
  border: 1px solid var(--trend-accent-frame);
  border-radius: 16px;
  background:
    linear-gradient(180deg, var(--trend-accent-glow), transparent 72%),
    var(--trend-accent-soft);
}

.trend-chart-frame.is-sparse,
.trend-panel-sparse .trend-chart-frame {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.trend-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-chart line {
  stroke: rgba(91, 105, 122, 0.25);
  stroke-width: 1;
}

.trend-chart polyline {
  fill: none;
  stroke: var(--trend-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart circle {
  fill: var(--trend-accent);
  stroke: #fff;
  stroke-width: 2;
}

.trend-chart .trend-point-latest {
  fill: #fff;
  stroke: var(--trend-accent);
  stroke-width: 4;
}

.trend-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trend-chart .x-label {
  text-anchor: middle;
}

.trend-latest-guide {
  stroke: var(--trend-accent);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.28;
}

.trend-latest-label {
  text-anchor: middle;
  fill: var(--trend-accent);
  font-size: 12px;
  font-weight: 800;
}

.trend-note {
  margin: 12px 0 0;
}

.trend-empty-state {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px dashed var(--trend-accent-frame);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), var(--trend-accent-soft));
}

.trend-empty-state strong {
  color: var(--trend-accent);
}

.stack-list {
  display: grid;
  gap: 12px;
}

.scan-list,
.summary-rows {
  display: grid;
  gap: 0;
}

.scan-row,
.summary-row {
  padding: 14px 16px;
}

.scan-row + .scan-row,
.summary-row + .summary-row {
  border-top: 1px solid rgba(212, 221, 231, 0.9);
}

.scan-row:nth-child(odd),
.summary-row:nth-child(odd) {
  background: rgba(248, 251, 255, 0.88);
}

.scan-row:hover,
.summary-row:hover {
  background: rgba(219, 234, 255, 0.42);
}

.scan-row-main {
  display: grid;
  gap: 8px;
}

.scan-row-top,
.scan-row-meta,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.scan-row-meta {
  color: var(--ink);
  font-weight: 700;
}

.scan-row-secondary {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.location-pill,
.event-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.location-pill {
  border: 1px solid #b9cde3;
  background: #e9f2fd;
  color: var(--accent-strong);
}

.event-chip {
  border: 1px solid var(--event-open-line);
  background: var(--event-open);
  color: #19633a;
}

.summary-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-card,
.location-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}

.list-card strong,
.location-card strong {
  font-size: 1rem;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--chip-line);
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.plain-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.plain-steps li + li {
  margin-top: 10px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

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

.toggle-field {
  justify-content: end;
}

.manage-actions {
  justify-content: space-between;
  flex-wrap: wrap;
}

.location-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.location-choice {
  display: flex;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}

.location-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.location-choice-copy small {
  color: var(--muted);
}

@media (max-width: 980px) {
  .wrap {
    padding: 16px;
  }

  .hero {
    flex-direction: column;
    align-items: start;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .page-hero,
  .page-hero-compact,
  .monitor-shell,
  .content-grid,
  .content-grid-manage,
  .stats-grid,
  .feature-grid,
  .feature-grid-wide,
  .location-grid,
  .location-grid-full,
  .location-choice-grid {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .panel-head {
    flex-direction: column;
  }

  .panel-headline,
  .trend-headline {
    flex-direction: column;
  }

  .trend-summary {
    min-width: 0;
    text-align: left;
    align-items: start;
  }

  .chart-summary {
    min-width: 0;
    text-align: left;
    align-items: start;
  }

  .panel,
  .table-wrap {
    padding: 10px;
  }

  .chip {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    flex-direction: column;
    align-items: start;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .monitor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .scan-row,
  .summary-row {
    padding: 12px;
  }

  table.dataTable thead tr.filters input {
    min-width: 72px;
  }
}

@media (max-width: 560px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .tab-button {
    width: 100%;
    justify-content: center;
  }
}
