/* The update page: Rondo's dark look, as in the dashboard and the server's admin page */
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: rgb(255 255 255 / .08);
  --text: #f5f5f7;
  --text-2: #a8a8ae;
  --text-3: #8a8a91;
  --red: #ff3b4f;
  --accent: #1c5ccc;
  --accent-hi: #6aa9f3;
  --ok: #34c759;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

a { color: var(--accent-hi); }
code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

header { text-align: center; margin-bottom: 28px; }
.mark { width: 64px; height: 64px; }
h1 { font-size: 30px; font-weight: 700; margin: 14px 0 6px; letter-spacing: -.01em; }
.lead { color: var(--text-2); margin: 0 auto; max-width: 30em; }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.note b { color: var(--text); }
#unsupported { border-color: rgb(255 59 79 / .5); }

.steps { list-style: none; padding: 0; margin: 22px 0 0; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: opacity .2s;
}
.step.waiting { opacity: .45; }
.step.waiting .step-body { display: none; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step h2 { font-size: 18px; font-weight: 700; margin: 0; flex: 1; }
.num {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 700; font-size: 14px;
}
.step.active .num { background: var(--accent); }
.tick { color: var(--ok); font-weight: 700; font-size: 18px; }
.step-body p { color: var(--text-2); margin: 10px 0; }
.step-body p b { color: var(--text); }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
}
.btn.primary { background: var(--accent); }
.btn.danger { background: rgb(255 59 79 / .18); color: #ff8492; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.btn.file { position: relative; font-weight: 500; color: var(--text-2); }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#connectBtn { margin-top: 4px; }

.status { min-height: 1.5em; font-size: 15px; }
.status.error { color: #ff8492; }
.status.ok { color: var(--ok); }

.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 14px 0 4px; }
.bar { height: 100%; width: 0; background: var(--accent-hi); transition: width .15s; }

.choice { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }

.help {
  margin-top: 22px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.help summary { cursor: pointer; color: var(--text); font-weight: 500; }
.help li { margin: 8px 0; }

footer { margin-top: 32px; text-align: center; font-size: 13px; color: var(--text-3); }
footer a { color: var(--text-2); }

@media (max-width: 480px) {
  main { padding-top: 32px; }
  h1 { font-size: 26px; }
}
