* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  background: #f7f7f8;
  color: #1f2329;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

.routes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 0.85rem 1rem 0;
}

.routes-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #1f2329;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.routes-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.routes-signin {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.routes-signin:hover { text-decoration: underline; }

.routes-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.routes-doc h1 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.routes-help {
  margin: 0 0 1.5rem;
  color: #6b7280;
  max-width: 56ch;
}

.routes-loading {
  padding: 2rem 0;
  text-align: center;
  color: #6b7280;
}

.routes-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
}

.routes-empty a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.routes-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.routes-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e1e3e7;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.routes-list li a:hover {
  border-color: #c7d2fe;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}

.routes-list .route-info { min-width: 0; flex: 1; }

.routes-list .route-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  word-break: break-word;
}

.routes-list .route-meta {
  color: #6b7280;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.routes-list .route-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 1.1rem;
}

.routes-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  padding-top: 1.5rem;
}

.routes-footer a {
  color: #2563eb;
  text-decoration: none;
}
