* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f5f5f7;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

.site-header {
  background: radial-gradient(circle at top, #2d5bff, #090b13 55%);
  padding: 3rem 0 2rem;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 2.4rem;
}

.tagline {
  margin-top: 0.6rem;
  color: #c2c7ff;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: #93e7d4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  padding: 2.5rem 0 3rem;
}

.page-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-nav a {
  color: #e9edff;
  text-decoration: none;
  border-bottom: 1px solid #93e7d4;
}

.page-nav a:hover {
  color: #93e7d4;
}

.hero {
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 0.75rem;
  background: rgba(22, 30, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero h2 {
  margin-top: 0;
}

.section {
  margin-bottom: 2.5rem;
}

.section h3 {
  margin-bottom: 0.75rem;
}

.section ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.column {
  flex: 1 1 220px;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(18, 25, 50, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.column h4 {
  margin-top: 0;
}

.contact ul {
  list-style: none;
  padding-left: 0;
}

.contact li::before {
  content: "•";
  color: #ffb347;
  display: inline-block;
  width: 1em;
  margin-left: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.5rem;
  text-align: center;
  color: #a0a4c2;
  font-size: 0.9rem;
}

.lab-header {
  text-align: left;
}

.lab-shell {
  max-width: 1120px;
}

.lab-intro,
.final-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: rgba(16, 24, 48, 0.9);
}

.lab-intro h2,
.final-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.lab-intro p,
.final-panel p {
  max-width: 720px;
  margin: 0;
  color: #d7dcff;
}

.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 760px;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(147, 231, 212, 0.24);
  border-radius: 0.5rem;
  background: rgba(9, 13, 24, 0.72);
}

.resource-card strong {
  display: block;
  margin: 0.2rem 0 0.35rem;
}

.resource-card p {
  font-size: 0.95rem;
}

.download-link {
  flex: 0 0 auto;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0.55rem 0.85rem;
  color: #081020;
  background: #ffcf72;
  font-weight: 800;
  text-decoration: none;
}

.download-link:hover {
  background: #93e7d4;
}

.progress-panel {
  min-width: 210px;
}

.progress-label,
.step-label,
.notes-label {
  display: block;
  color: #aeb6df;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.progress-panel strong {
  display: block;
  margin: 0.35rem 0 0.65rem;
}

.progress-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #202945;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93e7d4, #ffcf72);
  transition: width 180ms ease;
}

.prompt-list {
  display: grid;
  gap: 1rem;
}

.prompt-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: rgba(18, 25, 50, 0.92);
}

.prompt-card.is-complete {
  border-color: rgba(147, 231, 212, 0.45);
}

.prompt-card.is-locked {
  opacity: 0.62;
}

.prompt-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.prompt-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f6f7ff;
  background: #26304f;
  font-size: 0.78rem;
  font-weight: 700;
}

.level-beginner {
  color: #082f25;
  background: #93e7d4;
}

.level-intermediate {
  color: #2f2100;
  background: #ffcf72;
}

.level-advanced {
  color: #fff4f4;
  background: #b94b63;
}

.prompt-body {
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: #090d18;
}

.prompt-body pre {
  max-height: 16rem;
  margin: 0;
  overflow: auto;
  padding: 1rem;
  color: #f2f5ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

button,
.complete-control {
  min-height: 2.5rem;
  border-radius: 0.45rem;
  font: inherit;
}

button {
  border: 0;
  padding: 0.55rem 0.85rem;
  color: #081020;
  background: #93e7d4;
  font-weight: 800;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #ffcf72;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary-action {
  min-width: 9rem;
}

.complete-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #eef1ff;
  font-weight: 700;
}

.complete-control input {
  width: 1.05rem;
  height: 1.05rem;
}

.notes-label {
  margin-bottom: 0.4rem;
}

textarea {
  width: 100%;
  min-height: 7.5rem;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.85rem;
  color: #f8f9ff;
  background: #0d1324;
  font: inherit;
  line-height: 1.45;
}

textarea:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ffcf72;
  outline-offset: 2px;
}

.locked-message {
  margin: 0.65rem 0 0;
  color: #ffcf72;
  font-size: 0.92rem;
}

.final-panel.locked {
  opacity: 0.68;
}

@media (max-width: 640px) {
  .site-header h1 {
    font-size: 1.9rem;
  }

  .hero {
    padding: 1.25rem 1.4rem;
  }

  .lab-intro,
  .final-panel,
  .resource-card,
  .prompt-card-header,
  .prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tag-row {
    justify-content: flex-start;
  }

  .progress-panel,
  .primary-action {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .page-nav,
  .resource-card,
  .lab-intro,
  .prompt-body,
  .prompt-actions,
  .locked-message,
  .final-panel {
    display: none;
  }

  main,
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .prompt-list {
    display: block;
  }

  .prompt-card,
  .prompt-card.is-locked {
    break-inside: avoid;
    margin-bottom: 1rem;
    padding: 0 0 0.8rem;
    border: 0;
    border-bottom: 1px solid #ccc;
    opacity: 1;
    background: transparent;
  }

  .prompt-card-header {
    display: block;
  }

  .tag {
    border: 1px solid #777;
    color: #111;
    background: #fff;
  }

  textarea {
    min-height: 0;
    border: 0;
    padding: 0;
    color: #111;
    background: #fff;
  }
}
