/* SPDX-License-Identifier: MIT */
:root {
  --bg: #f5f5f2; --card: #ffffff; --ink: #1d1d1b; --dim: #5f625f; --accent: #ff7800; --good: #1fa96a; --bad: #c8352f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
}
body { margin: 0; line-height: 1.5; }
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
header { text-align: center; padding-top: 1.5rem; }
header h1 { margin: 0; font-size: 2rem; color: var(--accent); letter-spacing: 0.01em; }
header p { margin: 0.25rem 0 0.75rem; color: var(--dim); }
#dots { display: flex; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
#dots li { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #d4d4ce; }
#dots li.done { background: var(--good); }
#dots li.now { background: var(--accent); transform: scale(1.3); }
.step { background: var(--card); border-radius: 1.25rem; padding: 1.25rem 1.5rem 1.5rem; box-shadow: 0 2px 12px rgb(0 0 0 / 6%); }
.step img { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto 0.5rem; border-radius: 0.75rem; }
.step h2 { font-size: 1.6rem; margin: 0.5rem 0; }
.step h3 { margin: 1rem 0 0.25rem; }
.step p, .step li { font-size: 1.1rem; }
.need, .do { padding-left: 1.4rem; }
.need li, .do li { margin: 0.35rem 0; }
.note { color: var(--dim); font-size: 1rem !important; }
.buttons { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }
button { font: inherit; font-size: 1.1rem; padding: 0.7rem 1.4rem; border-radius: 0.75rem; border: 2px solid #c9c9c2; background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button:disabled { opacity: 0.5; cursor: default; }
.status { min-height: 1.5rem; margin: 0.75rem 0 0; }
.status.error { color: var(--bad); font-weight: 600; }
#progress { margin-top: 1rem; }
#progress progress { width: 100%; height: 1.2rem; accent-color: var(--good); }
#progress-text { display: block; text-align: center; color: var(--dim); }
label { display: block; margin-top: 0.75rem; }
#trouble { margin: 1.25rem 0; }
#trouble details { background: var(--card); border-radius: 1rem; padding: 0.75rem 1.25rem; }
#trouble summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; }
#trouble img { display: block; width: 50%; max-width: 14rem; margin: 0.75rem auto; border-radius: 0.75rem; }
#trouble dt { font-weight: 600; margin-top: 0.75rem; }
#trouble dd { margin: 0.2rem 0 0; color: var(--dim); }
footer { color: var(--dim); font-size: 0.85rem; text-align: center; padding-bottom: 2rem; }
a { color: #b45300; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --card: #232321; --ink: #ececea; --dim: #a5a5a0; }
  button { background: #2c2c2a; border-color: #4a4a46; }
  a { color: #ffa155; }
}
.more { margin-top: 1rem; border-top: 1px solid #d4d4ce; padding-top: 0.75rem; }
.more summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; color: #b45300; }
.more-step { margin-top: 1.25rem; }
.more-step img { max-width: 18rem; }
.more-step h3 { margin: 0.25rem 0; }
@media (prefers-color-scheme: dark) { .more summary { color: #ffa155; } }
#support { background: var(--card); border-radius: 1rem; padding: 0.75rem 1.25rem 1.25rem; margin: 1.25rem 0; }
#support h2 { font-size: 1.2rem; margin: 0.25rem 0; }
#support .buttons { justify-content: flex-start; margin-top: 0.75rem; }
a.button { display: inline-block; text-decoration: none; font-size: 1.05rem; padding: 0.6rem 1.2rem; border-radius: 0.75rem; border: 2px solid var(--accent); color: var(--ink); font-weight: 600; }
a.button:hover { background: var(--accent); color: #fff; }
.step picture { display: block; }
#trouble dd p { margin: 0.3rem 0; }
#trouble ul.tested { margin: 0.2rem 0 0.4rem; padding-left: 1.3rem; columns: 2; column-gap: 1.5rem; }
@media (max-width: 30rem) { #trouble ul.tested { columns: 1; } }
#trouble p.tested-model { font-weight: 600; color: var(--ink); margin: 0.5rem 0 0; }
header img.logo { display: block; margin: 0 auto 0.25rem; width: 88px; height: 88px; }
