:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #171a1f;
  --muted: #5f6977;
  --panel: #ffffff;
  --line: #d9dee7;
  --accent: #2368d9;
  --accent-dark: #17458f;
  --ok: #217a52;
  --warn: #99630a;
  --soft-blue: #eef4ff;
  --soft-green: #edf8f2;
  --shadow: 0 10px 24px rgba(23, 26, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.topbar p {
  max-width: 720px;
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--accent-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.actions a:last-child {
  border-color: rgba(33, 122, 82, 0.32);
  color: var(--ok);
  background: var(--soft-green);
}

.band {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.readiness-grid,
.troubleshoot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.readiness-grid > div,
.troubleshoot > div,
.role-table > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
}

.readiness-grid strong,
.troubleshoot strong,
.role-table strong {
  font-size: 14px;
}

.readiness-grid span,
.troubleshoot span,
.role-table span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.role-table {
  display: grid;
  gap: 8px;
}

.role-table > div {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
}

.note {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(35, 104, 217, 0.22);
  border-radius: 7px;
  color: #29456f;
  background: var(--soft-blue);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.step-index {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(35, 104, 217, 0.35);
  color: var(--accent-dark);
  background: var(--soft-blue);
  font-weight: 800;
}

.workflow p {
  margin-bottom: 10px;
  font-size: 14px;
}

code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid #d7e1ef;
  border-radius: 6px;
  padding: 8px 9px;
  color: #213149;
  background: #f4f7fb;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .topbar,
  .readiness-grid,
  .workflow,
  .troubleshoot,
  .role-table > div {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }

  .actions a {
    flex: 1 1 100%;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 24px 14px 56px;
  }

  h1 {
    font-size: 30px;
  }

  .band {
    padding: 16px;
  }
}
