/* Public onboarding page (#216). Deliberately independent of the panel's
   stylesheet: this page is read once, by someone who has never seen the
   product, on whatever machine they were told to set up. */

:root {
  color-scheme: light dark;
  --fg: #16191d;
  --muted: #5b6470;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #d9dee5;
  --accent: #1f6feb;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8eaed;
    --muted: #a2abb8;
    --bg: #14171a;
    --card: #1c2024;
    --line: #2e343b;
    --accent: #5a9bff;
    --error: #ff8a7a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; }

h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.lede { color: var(--muted); margin: 0 0 1.5rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
}

ul.plain { margin: 0; padding-left: 1.1rem; }
ul.plain li { margin-bottom: .45rem; }

.fine { color: var(--muted); font-size: .875rem; margin: .5rem 0 0; }

label { display: block; font-weight: 600; margin-bottom: .35rem; }

input, select, textarea {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

input#code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  resize: vertical;
  margin-top: .6rem;
  word-break: break-all;
}

button {
  margin-top: .8rem;
  padding: .6rem 1.1rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled { opacity: .6; cursor: progress; }

.error { color: var(--error); font-weight: 600; margin: .8rem 0 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
