/* The installer page. The same colours as the kit's setup page. System fonts, nothing loaded from elsewhere. */
:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1d1c19; --muted: #5d5a53; --line: #dedad1;
  --accent: #2f5d50; --accent-ink: #ffffff; --accent-soft: #e4efe9;
  --good: #1f7a45; --good-soft: #e3f4e9; --bad: #b3261e; --bad-soft: #fbe9e7; --warn-soft: #fff4d6; --code: #f1efe8;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 18, 14, 0.06), 0 6px 24px rgba(20, 18, 14, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412; --card: #1e1e1b; --ink: #f0eee8; --muted: #b3afa5; --line: #36352f;
    --accent: #8cc7b2; --accent-ink: #10201b; --accent-soft: #1f3530;
    --good: #7fd6a2; --good-soft: #17301f; --bad: #ff9b90; --bad-soft: #3a1c18; --warn-soft: #3a3115; --code: #262622;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
p { margin: 0 0 12px; }
.app { max-width: 720px; margin: 0 auto; padding: 24px 16px 96px; }
.hero { margin-bottom: 18px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 14px; margin: 2px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 0 0 16px; }
.card.done { border-color: var(--good); }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; flex: none; }
.tick { color: var(--good); font-size: 22px; margin-left: auto; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
label.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
input[type="text"], input:not([type]), input[type="password"], select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input { flex: 1 1 220px; }
button, .button {
  min-height: 44px; padding: 10px 16px; font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button.ghost, button.copy { background: transparent; color: var(--accent); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.big { font-size: 18px; padding: 14px 24px; width: 100%; }
.msg { min-height: 1.5em; margin: 8px 0 0; }
.msg.good { color: var(--good); }
.msg.bad { color: var(--bad); }
.steps { padding-left: 22px; }
.steps > li { margin: 0 0 12px; }
.steps .button { margin-top: 8px; }
.perms { list-style: none; padding: 0; margin: 10px 0 0; }
.perms li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: var(--code); flex-wrap: wrap; }
.perms li span:first-child { font-weight: 600; flex: 1 1 160px; }
.perms .lvl { color: var(--accent); font-weight: 700; min-width: 40px; }
.picture { margin: 14px 0; }
.picture img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.picture figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
.safe { background: var(--good-soft); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.progress { list-style: none; padding: 0; margin: 14px 0; }
.progress li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.progress .mark { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex: none; background: var(--code); }
.progress li.ok .mark { background: var(--good-soft); color: var(--good); }
.progress li.fail { color: var(--bad); }
.progress li.fail .mark { background: var(--bad-soft); color: var(--bad); }
.progress li.warn .mark { background: var(--warn-soft); }
.progress li span:last-of-type { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
#finish { margin-top: 12px; }
#finish .button { margin-bottom: 10px; }
code { background: var(--code); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
