:root {
  --ink: #17222d;
  --muted: #607080;
  --line: #d7dee5;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --blue: #1769e0;
  --blue-hover: #0d56c4;
  --green: #117a65;
  --coral: #d45d48;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 42px 0 36px;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1;
}

.eyebrow,
.kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 31px;
  line-height: 1.1;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
}

.server-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.server-band > div {
  min-width: 0;
}

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

.server-band strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.icon-button {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--blue);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.copy-icon,
.copy-icon::after {
  position: absolute;
  width: 13px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.copy-icon {
  top: 11px;
  left: 14px;
}

.copy-icon::after {
  top: 3px;
  left: 4px;
  content: "";
  background: white;
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
}

.tab:hover,
.tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.tab.is-active {
  border-bottom-color: var(--coral);
  color: var(--ink);
}

.platform-panel {
  padding: 28px 0 8px;
}

.panel-heading {
  margin-bottom: 20px;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 22px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--blue-hover);
  outline: 3px solid rgba(23, 105, 224, 0.2);
}

.steps {
  margin: 25px 0 0;
  padding: 0;
  counter-reset: setup-step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 7px 0 7px 50px;
  line-height: 1.45;
}

.steps li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #efb5aa;
  border-radius: 50%;
  background: #fff7f5;
  color: var(--coral);
  content: counter(setup-step);
  counter-increment: setup-step;
  font-weight: 800;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e9edf1;
  color: #243646;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  line-height: 1.45;
}

footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 11px 15px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .masthead {
    margin-bottom: 20px;
  }

  .platform-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(88px, 1fr));
  }

  .platform-panel {
    padding-top: 24px;
  }

  .primary-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
