:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #111214;
  --surface: #1c1e21;
  --input: #141517;
  --ink: #f3f4f5;
  --muted: #c0c3c8;
  --subtle: #9da2a9;
  --line: #3a3d42;
  --mint: #b5ddce;
  --warning: #e6d69c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #d5eade; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #d3e8dc; outline-offset: 4px; }
.topbar { max-width: 1160px; min-height: 72px; margin: auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #303238; }
.wordmark { font-size: 15px; font-weight: 550; text-decoration: none; letter-spacing: .1px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
main { max-width: 760px; margin: auto; padding: 43px 24px 0; }
.hero { text-align: center; padding: 4px 0 28px; }
h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 48px); line-height: 1.16; letter-spacing: -1.5px; font-weight: 500; }
.tagline { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.firmware-line { color: var(--subtle); margin: 8px 0 0; font-size: 14px; }
.conditions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 20px 0 14px; }
.conditions span { padding: 6px 11px; border-radius: 5px; font: 600 13px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; color: #202427; }
.label-ratio { background: #bce1d4; }.label-pre { background: #e9c9d7; }.label-ne { background: #cbd6ef; }.label-first { background: #eadbb3; }.label-fill { background: #d6d2e8; }
.condition-help { max-width: 560px; margin: 0 auto 13px; text-align: left; }
.condition-help summary { width: fit-content; margin: auto; padding: 3px 5px; cursor: pointer; color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.condition-help summary:hover { color: var(--ink); }
.condition-help dl { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 7px 12px; margin: 12px 0 8px; padding: 13px 15px; border: 1px solid #383b40; border-radius: 7px; background: #181a1d; }
.condition-help dt { color: var(--ink); font: 600 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.condition-help dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.condition-help > a { display: block; width: fit-content; margin: 0 0 0 auto; color: #c9dacf; font-size: 14px; }
.privacy-line { margin: 0; color: var(--muted); font-size: 14px; }
.privacy-line span { color: #71767d; padding: 0 4px; }
.patch-card { padding: 29px; border: 1px solid #42454b; border-radius: 12px; background: var(--surface); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 550; letter-spacing: -.35px; }
.version { flex: none; padding: 4px 9px; border: 1px solid #4a4d52; border-radius: 4px; color: var(--muted); font-size: 13px; }
.intro-copy { color: var(--muted); margin: 9px 0 19px; font-size: 15px; }
.dropzone { padding: 26px 20px 20px; text-align: center; background: var(--input); border: 1px dashed #666b73; border-radius: 8px; transition: border-color .15s, background-color .15s; }
.dropzone.dragging { background: #202622; border-color: var(--mint); }
.dropzone h3 { max-width: 520px; margin: 0 auto 18px; font-size: 17px; line-height: 1.45; font-weight: 500; }
.choose { min-height: 48px; padding: 11px 24px; border: 1px solid #fff; border-radius: 6px; background: #fff; color: #111214; font-weight: 650; font-size: 16px; }
.choose:hover:enabled { background: #e6e8e9; }
.choose:disabled { color: #65686c; background: #b7b9bb; border-color: #b7b9bb; }
.drop-help { margin: 14px 0 2px; color: var(--muted); font-size: 14px; }
.file-warning { margin: 7px 0 0; color: var(--subtle); font-size: 13px; }
.workflow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 24px 0 18px; }
.workflow::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 1px; background: #45484e; }
.workflow li { z-index: 1; display: flex; gap: 8px; align-items: center; color: var(--subtle); font-size: 14px; }
.workflow li span { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border: 1px solid #555960; border-radius: 50%; background: var(--surface); color: #d1d4d8; font: 600 13px/1 system-ui, sans-serif; }
.workflow li.done { color: var(--ink); }.workflow li.done span { color: #111714; background: var(--mint); border-color: var(--mint); }
.workflow li.current { color: #fff; font-weight: 600; }.workflow li.current span { border: 2px solid var(--mint); color: var(--mint); }
.progress-status { min-height: 46px; margin: 0 0 15px; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #373a40; border-radius: 6px; background: #191b1e; }
.status-icon { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border: 1px solid #62676e; border-radius: 50%; color: var(--muted); font-size: 20px; line-height: 1; }
.progress-status #step-label { color: var(--subtle); font-size: 12px; font-weight: 600; letter-spacing: .6px; }
.progress-status p { color: var(--muted); margin: 1px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.hash { margin: 0 0 14px; color: var(--mint); font-size: 13px; }
.hash summary { width: fit-content; cursor: pointer; }.hash span { display: block; margin-top: 9px; color: var(--muted); }.hash code { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.download { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 12px 17px; border: 1px solid var(--mint); border-radius: 6px; background: var(--mint); color: #17231e; font-size: 16px; font-weight: 650; text-align: left; }
.download:hover:enabled { background: #c8e9dc; }
.download:disabled { border-color: #383b40; background: #303338; color: #b6bac0; }
.download-note { margin: 8px 0 0; text-align: center; color: var(--subtle); font-size: 13px; }
.compatibility { display: flex; gap: 14px; margin: 18px 0 0; padding: 17px 19px; border: 1px solid #4b4b42; border-radius: 8px; background: #1b1b19; }
.compat-mark { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border: 1px solid #a89b70; border-radius: 50%; color: #e6d69c; font-size: 14px; font-weight: 600; }
.compatibility h2 { font-size: 18px; }.compatibility p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }.compatibility a,.warning a { color: #e5d9ad; }
.warning { display: flex; gap: 14px; margin: 19px 0 0; padding: 18px 19px; border: 1px solid #514b3b; border-radius: 8px; background: #1c1b18; }
.warning-icon { display: grid; place-items: center; flex: none; margin-top: 2px; width: 24px; height: 24px; border: 1px solid #9d8b5e; border-radius: 50%; color: var(--warning); font-size: 14px; }
.warning h2 { color: var(--warning); font-size: 16px; letter-spacing: .35px; }.warning p { margin: 7px 0; color: var(--muted); font-size: 15px; line-height: 1.6; }.warning .hardware-note { color: #e7dba8; }.full-disclaimer { display: inline-block; margin-top: 3px; font-size: 14px; font-weight: 550; }
.support { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 17px 0 32px; padding: 15px 18px; border: 1px solid #35383d; border-radius: 8px; background: #181a1d; }
.support h2 { font-size: 18px; }.support p { max-width: 510px; margin: 4px 0 0; color: var(--muted); font-size: 14px; }.support-link { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #555960; border-radius: 5px; text-decoration: none; font-size: 14px; }
footer { max-width: 1104px; margin: 0 auto; padding: 20px 24px 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #303238; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }footer a { color: var(--ink); }footer span { flex: none; color: var(--subtle); font-size: 13px; }
.docs { max-width: 980px; padding-bottom: 40px; overflow-wrap: anywhere; min-width: 0; }
.docs section { margin: 36px 0; }.docs h2 { margin: 24px 0 16px; }.docs h3 { margin-top: 24px; }
.docs p,.docs li { color: var(--muted); }.docs code,.docs pre { overflow-wrap: anywhere; }.docs pre { white-space: pre-wrap; }
.docs table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.docs th,.docs td { padding: 9px; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.docs nav { justify-content: flex-start; flex-wrap: wrap; }.docs nav a { overflow-wrap: anywhere; }
body[data-state="success"] .status-icon { color: var(--mint); border-color: var(--mint); }.status-icon { font-size: 0; }.status-icon::after { content: "✓"; font-size: 13px; }
body[data-state="waiting"] .status-icon::after { content: "•"; font-size: 19px; }
body[data-state="validating"] .status-icon::after,body[data-state="patching"] .status-icon::after { content: "…"; font-size: 17px; }
body[data-state="error"] .status-icon { color: #f0a99d; border-color: #b76b60; }.noscript { color: var(--warning); font-size: 14px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 700px) {
  .topbar { min-height: 64px; padding: 12px 20px; }.wordmark { font-size: 14px; }nav { gap: 18px; }nav a { font-size: 14px; }
  main { padding: 34px 18px 0; }.hero { padding-bottom: 24px; }h1 { letter-spacing: -1px; }.patch-card { padding: 22px; }.workflow { gap: 4px; }.workflow li { flex-direction: column; gap: 5px; font-size: 13px; }
  .workflow::before { top: 14px; left: 14%; right: 14%; }.compatibility,.warning { padding: 16px; }footer { margin: 0 18px; padding: 18px 0 24px; align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .topbar { padding: 10px 16px; align-items: flex-start; flex-wrap: wrap; gap: 5px 12px; }.wordmark { flex: 1 1 100%; font-size: 13px; white-space: nowrap; }nav { width: 100%; justify-content: flex-start; gap: 19px; }nav a { font-size: 13px; white-space: nowrap; }
  main { padding-inline: 14px; }.tagline { font-size: 16px; }.firmware-line,.privacy-line { font-size: 13px; }.conditions { gap: 7px; }.conditions span { padding: 6px 8px; font-size: 12px; }
  .patch-card { padding: 18px 15px; }.card-heading { align-items: flex-start; }.card-heading h2 { font-size: 21px; }.version { font-size: 12px; }.dropzone { padding: 21px 12px 17px; }.dropzone h3 { font-size: 16px; }
  .condition-help dl { grid-template-columns: 1fr; gap: 2px; padding: 12px; }.condition-help dd { margin: 0 0 8px; }.condition-help dd:last-child { margin-bottom: 0; }
  .workflow { margin-top: 20px; }.workflow li { font-size: 12px; }.workflow li span { width: 27px; height: 27px; }.workflow::before { top: 13px; }.support { align-items: flex-start; flex-direction: column; gap: 12px; }.warning p,.compatibility p { font-size: 14px; }
}
