:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #202832;
  background: #f7fbff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(118deg, rgba(93, 185, 189, 0.13), rgba(93, 185, 189, 0) 38%),
    linear-gradient(242deg, rgba(209, 229, 178, 0.14), rgba(209, 229, 178, 0) 44%),
    linear-gradient(180deg, #fbfdff 0%, #f4fbfb 52%, #fffaf3 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(39, 78, 84, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 78, 84, 0.026) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 76%);
}

.page-shell {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 60px;
}

.intro {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 44px rgba(42, 72, 82, 0.09);
  backdrop-filter: blur(20px) saturate(126%);
  -webkit-backdrop-filter: blur(20px) saturate(126%);
}

.intro::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(74, 168, 170, 0.76), rgba(74, 168, 170, 0.54) 24%, rgba(74, 168, 170, 0.46) 50%, rgba(74, 168, 170, 0.54) 76%, rgba(74, 168, 170, 0.76));
  content: "";
}

.back-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(62, 126, 133, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 22px rgba(42, 72, 82, 0.065);
  color: #34767b;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: rgba(62, 126, 133, 0.32);
  background: rgba(255, 255, 255, 0.82);
}

.intro-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: #348f91;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  min-width: 0;
  margin-bottom: 0;
  color: #18212b;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.summary {
  max-width: 760px;
  margin-bottom: 0;
  color: #5f6872;
  font-size: 1rem;
  line-height: 1.72;
}

.actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 10px;
}

button,
.button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(66, 151, 153, 0.34);
  border-radius: 999px;
  background: #4aa8aa;
  box-shadow: 0 12px 24px rgba(74, 168, 170, 0.16);
  color: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  background: #3e9a9d;
  box-shadow: 0 16px 30px rgba(74, 168, 170, 0.2);
}

button:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(74, 168, 170, 0.2);
  outline-offset: 3px;
}

.button.secondary {
  border-color: rgba(62, 126, 133, 0.22);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 22px rgba(42, 72, 82, 0.065);
  color: #34767b;
}

.button.secondary:hover {
  border-color: rgba(62, 126, 133, 0.32);
  background: rgba(255, 255, 255, 0.82);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.notes article,
.code-panel {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 32px rgba(42, 72, 82, 0.075);
  backdrop-filter: blur(18px) saturate(122%);
  -webkit-backdrop-filter: blur(18px) saturate(122%);
}

.notes article {
  min-height: 120px;
  padding: 18px;
}

.notes h2 {
  margin-bottom: 9px;
  color: #202832;
  font-size: 1rem;
  line-height: 1.35;
}

.notes p {
  margin-bottom: 0;
  color: #66717c;
  font-size: 0.92rem;
  line-height: 1.65;
}

code {
  background: transparent;
  color: #347c80;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-panel {
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(45, 92, 98, 0.08);
}

.code-header h2 {
  margin: 0;
  color: #202832;
  font-size: 1rem;
}

#statusText {
  flex: 0 0 auto;
  color: #6b767f;
  font-size: 0.86rem;
}

pre {
  margin: 0;
  max-height: 68vh;
  overflow: auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.44);
  color: #26313b;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre;
}

pre code {
  background: transparent;
  color: inherit;
}

pre::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

pre::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(73, 127, 135, 0.24);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 28px;
  }

  .intro {
    padding: 20px;
    border-radius: 20px;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  .actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  button,
  .button {
    width: 100%;
    padding: 0 12px;
  }

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

  .notes article,
  .code-panel {
    border-radius: 16px;
  }

  .code-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  pre {
    max-height: 60vh;
    font-size: 0.8rem;
  }
}
