/* Setup walkthrough — leans on admin.css for buttons, chips, pills, toast. */

.setup {
  max-width: 760px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) 16px
    calc(48px + env(safe-area-inset-bottom, 0px));
}

.setup__head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.setup__brand {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.setup h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.setup__lead {
  margin: 0 0 12px;
  max-width: 62ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.setup__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.setup a {
  color: #9fc0ff;
}

.os-switch,
.width-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.width-switch {
  margin: 10px 0 16px;
}

.width-switch .chip span {
  color: inherit;
  opacity: 0.7;
  font-weight: 600;
}

.callout {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(127, 220, 175, 0.4);
  border-radius: var(--radius);
  background: rgba(47, 158, 111, 0.1);
}

.callout h2 {
  margin: 0 0 8px;
  color: #7fdcaf;
  font-size: 1rem;
}

.callout p {
  margin: 0 0 10px;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.55;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout__caveat {
  color: var(--text-muted);
  font-size: 0.85rem !important;
}

.steps__heading {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

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

.step {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.step__no {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #10192e;
  background: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.step__body {
  padding-left: 42px;
}

.step__body p {
  margin: 0 0 12px;
  max-width: 62ch;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step__body b {
  color: #ffffff;
}

.step__aside {
  color: var(--text-muted) !important;
  font-size: 0.86rem !important;
}

.step__body code,
.trouble code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-sunken);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88em;
  white-space: nowrap;
}

.btn--download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cmd {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.cmd code {
  flex: 1 1 auto;
  overflow-x: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-sunken);
  font-size: 0.9rem;
  white-space: nowrap;
}

.status {
  margin-bottom: 14px;
}

.agent-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.agent-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(47, 158, 111, 0.35);
  border-radius: 10px;
  background: rgba(47, 158, 111, 0.1);
  font-size: 0.88rem;
}

.agent-list b {
  font-family: "Courier New", Courier, monospace;
}

.agent-list span {
  color: var(--text-muted);
}

.trouble {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.trouble h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.trouble dl {
  margin: 0;
}

.trouble dt {
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.trouble dd {
  margin: 0 0 14px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.trouble dd:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .step__body {
    padding-left: 0;
  }

  .cmd {
    flex-direction: column;
  }
}
