:root {
  color-scheme: dark;
  --bg: #06121a;
  --bg-elevated: #0a1822;
  --bg-soft: #0d1f2c;
  --line: rgba(104, 201, 255, 0.2);
  --line-strong: rgba(104, 201, 255, 0.4);
  --text: #eef9ff;
  --muted: #a3c1cf;
  --accent: #52d7ff;
  --accent-strong: #09bfff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(32, 110, 156, 0.22), transparent 32%),
    linear-gradient(180deg, #081722 0%, var(--bg) 50%, #07151f 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, #a4edff 100%);
  box-shadow: 0 0 0 8px rgba(82, 215, 255, 0.08);
}
.brand-name { font-size: 1.1rem; font-weight: 700; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 22px; color: var(--muted); font-weight: 500; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }

.hub-shell { padding: 30px 0 70px; display: grid; gap: 18px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 27, 38, 0.92), rgba(8, 19, 28, 0.96));
  padding: 20px;
}
.hero { display: grid; gap: 18px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.hero-text { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #02131c;
}
.button.secondary {
  border-color: var(--line-strong);
  background: rgba(9, 25, 36, 0.7);
  color: var(--text);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0;
}
label { display: block; margin-bottom: 6px; font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 23, 33, 0.85);
  color: var(--text);
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 120px; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.status-line { color: var(--muted); min-height: 22px; }

.grid.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel-head h2 { margin: 0; font-size: 1.25rem; }
.muted { margin: 6px 0 0; color: var(--muted); }
.stack { display: grid; gap: 10px; margin-top: 12px; }
.claim-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 28, 0.75);
}
.claim-form label { margin-bottom: 6px; }
.claim-form input { margin-bottom: 8px; }
.item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(8, 20, 28, 0.75);
}
.item h3 { margin: 0; font-size: 1rem; }
.item p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.pill.warn { border-color: #f0a500; color: #ffd776; }
.pill.ok { border-color: #2fbc7f; color: #96ffd2; }

.status-pills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.status-pills .pill { margin-right: 0; }

.ai-response {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 80px;
  padding: 12px;
  background: rgba(8, 20, 28, 0.75);
  color: var(--muted);
  white-space: pre-wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 14px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); }

@media (max-width: 900px) {
  .grid.two-col, .auth-grid { grid-template-columns: 1fr; }
}
