:root {
  --bg: #11111b;
  --surface: #181825;
  --surface-2: #1e1e2e;
  --surface-3: #24273a;
  --text: #cdd6f4;
  --muted: #a6adc8;
  --accent: #89b4fa;
  --accent-2: #cba6f7;
  --green: #a6e3a1;
  --yellow: #f9e2af;
  --orange: #fab387;
  --red: #f38ba8;
  --teal: #94e2d5;
  --border: rgba(205, 214, 244, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(137, 180, 250, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(203, 166, 247, 0.12), transparent 28%),
    linear-gradient(180deg, #0b0b14 0%, var(--bg) 35%, #0a1018 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.background-glow {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.background-glow-a {
  top: -8rem;
  left: -8rem;
  background: var(--accent);
}

.background-glow-b {
  right: -10rem;
  bottom: -10rem;
  background: var(--accent-2);
}

.shell {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.site-header,
.section-header,
.week-card-header,
.conference-card-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-header {
  margin-bottom: 2rem;
}

.nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.link-button,
.primary-button,
.copy-button {
  border: 1px solid var(--border);
  background: rgba(24, 24, 37, 0.78);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.nav a:hover,
.link-button:hover,
.primary-button:hover,
.copy-button:hover {
  border-color: rgba(137, 180, 250, 0.5);
  transform: translateY(-1px);
}

.nav .is-active {
  background: linear-gradient(135deg, rgba(137, 180, 250, 0.18), rgba(148, 226, 213, 0.08));
  border-color: rgba(137, 180, 250, 0.5);
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.03em;
}

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

.mono,
.deadline-line,
.code-block,
.code-textarea {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.card {
  background: linear-gradient(180deg, rgba(30, 30, 46, 0.92), rgba(24, 24, 37, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero-display .hero-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.accent-card {
  border-color: rgba(137, 180, 250, 0.32);
}

.section-header {
  margin: 2rem 0 1rem;
}

.section-header.compact {
  margin: 0 0 1rem;
}

.week-grid,
.conference-grid,
.collision-grid {
  display: grid;
  gap: 1rem;
}

.week-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.conference-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.collision-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.week-card h4,
.conference-card h3,
.collision-card h3 {
  margin-bottom: 0.2rem;
}

.pressure-meter {
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 0.8rem 0 0.4rem;
}

.pressure-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--accent), var(--accent-2));
}

.pressure-text,
.warning-text {
  margin-bottom: 0.8rem;
}

.warning-text {
  color: var(--yellow);
}

.mini-list,
.cluster-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.chip-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}

.status-confirmed {
  background: rgba(166, 227, 161, 0.14);
  color: var(--green);
  border-color: rgba(166, 227, 161, 0.24);
}

.status-tentative {
  background: rgba(249, 226, 175, 0.14);
  color: var(--yellow);
  border-color: rgba(249, 226, 175, 0.24);
}

.status-estimated {
  background: rgba(250, 179, 135, 0.14);
  color: var(--orange);
  border-color: rgba(250, 179, 135, 0.24);
}

.status-past {
  background: rgba(166, 173, 200, 0.12);
  color: var(--muted);
  border-color: rgba(166, 173, 200, 0.2);
}

.severity-low,
.pressure-calm {
  background: rgba(148, 226, 213, 0.14);
  color: var(--teal);
  border-color: rgba(148, 226, 213, 0.24);
}

.severity-medium,
.pressure-manageable {
  background: rgba(166, 227, 161, 0.14);
  color: var(--green);
  border-color: rgba(166, 227, 161, 0.24);
}

.severity-high,
.pressure-busy {
  background: rgba(249, 226, 175, 0.14);
  color: var(--yellow);
  border-color: rgba(249, 226, 175, 0.24);
}

.severity-severe,
.pressure-spicy,
.pressure-academic-weather-warning {
  background: rgba(243, 139, 168, 0.14);
  color: var(--red);
  border-color: rgba(243, 139, 168, 0.24);
}

.filter-card,
.data-card,
.prompt-form,
.prompt-output-card {
  margin-bottom: 1rem;
}

.filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 27, 0.82);
  color: var(--text);
  padding: 0.8rem 0.9rem;
}

textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.8rem;
}

.checkbox-label input {
  width: auto;
}

.alert.warning {
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(249, 226, 175, 0.24);
  background: rgba(249, 226, 175, 0.08);
  color: var(--yellow);
  padding: 0.9rem 1rem;
}

.code-block,
.code-textarea {
  background: rgba(12, 12, 20, 0.92);
  border: 1px solid rgba(137, 180, 250, 0.12);
  border-radius: 14px;
  padding: 1rem;
  white-space: pre-wrap;
  overflow-x: auto;
}

.code-textarea {
  min-height: 18rem;
}

.code-textarea.tall {
  min-height: 34rem;
}

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1rem;
}

.empty-card {
  text-align: center;
  padding: 2.5rem 1.2rem;
}

.display-mode .shell {
  max-width: 1600px;
  padding-top: 1.2rem;
}

.display-mode .summary-card h3 {
  font-size: 2rem;
}

@media (max-width: 980px) {
  .hero,
  .prompt-layout {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-header,
  .week-card-header,
  .conference-card-header {
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }
}
