:root {
  color-scheme: dark;
  --hub-bg: #060b14;
  --hub-surface: rgba(8, 14, 25, 0.82);
  --hub-surface-soft: rgba(15, 23, 42, 0.78);
  --hub-border: rgba(148, 163, 184, 0.18);
  --hub-ink: #e2e8f0;
  --hub-accent: #67e8f9;
  --hub-accent-strong: #22d3ee;
  --hub-warm: #fbbf24;
  --hub-lime: #86efac;
  --hub-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--hub-ink);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(134, 239, 172, 0.14), transparent 26%),
    radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.1), transparent 20%),
    linear-gradient(180deg, #050914 0%, #07111f 54%, #02050a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at top, black 35%, transparent 100%);
  opacity: 0.55;
}

.hub-heading {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.hub-hero,
.hub-panel,
.hub-subpanel,
.hub-metric,
.hub-thread-card {
  position: relative;
  border: 1px solid var(--hub-border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.88));
  box-shadow: var(--hub-shadow);
  backdrop-filter: blur(20px);
}

.hub-hero::before,
.hub-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.08), transparent 32%, rgba(251, 191, 36, 0.05));
  pointer-events: none;
}

.hub-panel,
.hub-subpanel,
.hub-metric,
.hub-thread-card {
  border-radius: 1.5rem;
}

.hub-subpanel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 14, 25, 0.9));
  padding: 1rem;
}

.hub-metric {
  padding: 1rem;
}

.hub-pill,
.hub-status,
.hub-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
}

.hub-pill {
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-status {
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-mini-chip {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
}

.hub-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--hub-accent-strong);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.hub-thread-card {
  padding: 1rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.hub-thread-card:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.42);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 25, 0.92));
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.input {
  border-radius: 1rem;
}
