:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f7faff;
  --panel-strong: #edf4ff;
  --ink: #172033;
  --muted: #657086;
  --line: #d7e2f2;
  --accent: #1f6feb;
  --accent-strong: #1557c0;
  --accent-soft: #e8f1ff;
  --shadow: 0 18px 50px rgba(24, 46, 82, 0.1);
  --radius: 8px;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.9) 0, rgba(255, 255, 255, 0) 260px),
    var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(31, 111, 235, 0.24);
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.route-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.hero-panel,
.object-panel,
.loading-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px 20px 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-size: clamp(2.15rem, 13vw, 4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.subtitle {
  max-width: 34rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.object-panel {
  overflow: hidden;
}

.object-header {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(255, 255, 255, 0) 54%),
    #fff;
}

.object-title {
  overflow-wrap: anywhere;
}

.object-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 14px;
  border: 1px solid rgba(31, 111, 235, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.panel-body {
  padding: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.metric {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 13px;
}

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

.metric-value {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

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

.notice {
  margin-top: 14px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  padding: 13px 14px;
  color: #24466f;
  font-weight: 700;
  line-height: 1.42;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.thumbnail {
  aspect-ratio: 2.5 / 3.5;
  border: 1px dashed #a9bdd9;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(31, 111, 235, 0.12), rgba(255, 255, 255, 0.5)),
    var(--panel-strong);
}

.quick-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 14px;
  text-decoration: none;
  font-weight: 800;
}

.quick-link span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-link:hover,
.quick-link:focus-visible {
  border-color: rgba(31, 111, 235, 0.45);
  outline: 3px solid rgba(31, 111, 235, 0.14);
}

.loading-panel {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.loading-panel p,
.empty-route p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.empty-route {
  display: grid;
  gap: 10px;
}

@media (min-width: 620px) {
  .app-shell {
    padding: 28px 24px 48px;
  }

  .hero-panel {
    padding: 34px 30px 28px;
  }

  .object-header {
    padding: 30px 28px 24px;
  }

  .panel-body {
    padding: 22px;
  }

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