:root {
  color-scheme: dark;
  --bg: #061827;
  --panel: #0b2435;
  --panel-strong: #10324a;
  --text: #ecf7fb;
  --muted: #a9bfcc;
  --cyan: #32d6e8;
  --green: #62d991;
  --amber: #f4c65b;
  --red: #ff7b7b;
  --border: rgba(147, 205, 222, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(50, 214, 232, 0.16), transparent 32rem),
    linear-gradient(145deg, #061827 0%, #081f31 52%, #061827 100%);
  color: var(--text);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.notice,
.toolbar,
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 36, 53, 0.82);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.notice {
  max-width: 320px;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 700;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: #052333;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

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

.card {
  padding: 18px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-current {
  color: var(--green);
}

.status-service_update_available,
.status-content_update_available {
  color: var(--amber);
}

.status-unavailable,
.status-error {
  color: var(--red);
}

.versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 5px;
}

.metric strong {
  color: var(--text);
  font-size: 0.95rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.loading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 28px 0;
  }

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

  .notice {
    max-width: none;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

