:root {
  --bg: #f5f5f7; --card: #fff; --text: #1d1d1f; --muted: #6e6e73;
  --accent: #0071e3; --border: #d2d2d7;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --card: #1c1c1e; --text: #f5f5f7; --muted: #98989d;
          --accent: #0a84ff; --border: #38383a; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }
h1 { font-size: 30px; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.lead, .note { color: var(--muted); }
.note { font-size: 14px; }
section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px; margin-top: 16px;
}
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px;
}
.btn {
  display: block; text-align: center; text-decoration: none; font-weight: 600;
  padding: 13px 16px; border-radius: 12px; background: var(--accent); color: #fff;
}
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
code {
  display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg);
  font: 14px ui-monospace, Menlo, monospace; word-break: break-all; user-select: all;
}
.apps { list-style: none; margin: 0 0 12px; padding: 0; }
.apps li + li { margin-top: 12px; }
.app-name { font-weight: 600; }
.app-meta { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }

/* Страница установки по кабелю (/usb/) — читается с компьютера, поэтому шире.
   Всё под .wide, чтобы не менять главную страницу. */
main.wide { max-width: 760px; }
.wide a:not(.btn), .more a { color: var(--accent); }
.back { margin: 0 0 12px; font-size: 14px; }
.back a { text-decoration: none; }
.wide section p { margin: 0 0 10px; }
.wide section ul:not(.apps) { margin: 0 0 10px; padding-left: 22px; }
.wide section ul:not(.apps) li + li { margin-top: 6px; }
.os {
  margin: 16px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.mono {
  font: .88em ui-monospace, Menlo, Consolas, monospace; background: var(--bg);
  padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere;
}
.cmd { position: relative; margin: 8px 0 12px; }
.wide pre {
  margin: 0; padding: 12px 124px 12px 14px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--border); font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.copy {
  position: absolute; top: 7px; right: 7px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); color: var(--accent);
  font-family: inherit; font-size: 13px; line-height: 1.3; cursor: pointer;
}
.warn {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px;
  border: 1px solid #ff9f0a; background: rgba(255, 159, 10, .12);
}
.wide details { border-top: 1px solid var(--border); padding: 10px 0; }
.wide details:last-child { padding-bottom: 0; }
.wide summary { cursor: pointer; font-weight: 600; }
.wide details[open] summary { margin-bottom: 10px; }
@media (max-width: 520px) {
  .wide pre { padding: 42px 14px 12px; }
}
