:root {
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-soft: rgba(30, 41, 59, 0.78);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.22), transparent 30%),
    linear-gradient(145deg, #07111f 0%, #111827 52%, #0f172a 100%);
  color: var(--text);
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.router-panel,
.route-output {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.router-panel {
  border-radius: 8px;
  padding: 28px;
}

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

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  margin: 18px 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.route-menu {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.route-menu a::after {
  content: "#";
  color: var(--accent);
  font-weight: 900;
}

.route-menu a:hover,
.route-menu a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(14, 165, 233, 0.16);
  outline: none;
}

.route-output {
  min-height: 480px;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

data-route-view {
  display: block;
}

.placeholder,
data-route-view h2,
data-route-view h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.placeholder {
  color: var(--text);
}

.hint,
data-route-view p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

data-route-view ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

data-route-view li {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.36);
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

input:focus {
  border-color: var(--accent-strong);
  outline: none;
}

@media (max-width: 780px) {
  .app-shell {
    min-height: auto;
    padding: 24px 0;
    grid-template-columns: 1fr;
  }

  .route-output {
    min-height: 360px;
  }
}
