:root {
  color-scheme: dark;
  --page: #171b2a;
  --page-deep: #111625;
  --shell: #202a3b;
  --panel: #141c2d;
  --line: #3a465b;
  --text: #f7f8fb;
  --muted: #aeb8cb;
  --orange: #ff8426;
  --orange-soft: rgba(255, 132, 38, 0.15);
  --cyan: #80e7ff;
  --cyan-soft: rgba(128, 231, 255, 0.12);
  --green: #88d3a4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(128, 231, 255, 0.13), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(255, 132, 38, 0.10), transparent 40%),
    linear-gradient(135deg, var(--page-deep), #211b2b 62%, #111827);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.shell {
  min-height: calc(100vh - 48px);
  padding: clamp(28px, 5vw, 62px);
  background: rgba(32, 42, 59, 0.92);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 850;
}

.nav-link {
  color: var(--muted);
  background: rgba(20, 28, 45, 0.72);
  border: 1px solid rgba(174, 184, 203, 0.24);
}

.nav-link:hover,
.nav-link:focus-visible { border-color: var(--orange); color: var(--text); outline: none; }

.button {
  color: #101827;
  background: var(--orange);
  border: 0;
}

.button.secondary {
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(128, 231, 255, 0.38);
}

header { margin-bottom: 42px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0 0 18px;
  max-width: 900px;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  font-weight: 900;
  color: #e4e9f3;
}

.lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  line-height: 1.5;
  font-weight: 650;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.dashboard-grid,
.newsletter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.issue-card,
.panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(17, 24, 39, 0.80);
  border: 1px solid rgba(174, 184, 203, 0.24);
  border-radius: 18px;
}

.card.primary {
  border-color: rgba(128, 231, 255, 0.44);
  border-left: 7px solid var(--cyan);
  background:
    linear-gradient(120deg, rgba(128, 231, 255, 0.12), transparent 48%),
    rgba(17, 24, 39, 0.82);
}

.card.disabled { opacity: 0.68; }

.card:hover,
.card:focus-visible,
.issue-card:hover,
.issue-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
  outline: none;
}

.card,
.issue-card { transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 2px solid var(--cyan);
  border-radius: 15px;
  font-weight: 900;
}

.status {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2, h3 { margin: 0; line-height: 1.1; }

h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

h3 { font-size: clamp(1.35rem, 3vw, 1.85rem); }

p { margin: 0; color: var(--muted); line-height: 1.55; font-weight: 600; }

.path,
.meta {
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

section { margin-top: 28px; }

.issue-content {
  display: grid;
  gap: 22px;
  max-width: 860px;
}

.issue-content ul { margin: 0; padding-left: 1.3rem; color: var(--muted); line-height: 1.6; font-weight: 600; }

.issue-content li + li { margin-top: 8px; }

.notice {
  padding: 18px;
  color: #ffe0c2;
  background: rgba(255, 132, 38, 0.10);
  border: 1px solid rgba(255, 132, 38, 0.28);
  border-radius: 14px;
}

footer {
  margin-top: 36px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .dashboard-grid,
  .newsletter-list { grid-template-columns: 1fr; }
  .shell { border-radius: 24px; }
}
