  /* light: the coral and the dim brown darkened just enough for 4.5:1 on the cream (and white on the coral) */
  :root { --bg: #faf4e8; --fg: #48392f; --dim: #6e5c4b; --accent: #b84a1e; --on-accent: #fff; --bad: #a3271b; --focus: #1f6fd1; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #1c1814; --fg: #f2e8d8; --dim: #b3a28e; --accent: #f28a5a; --on-accent: #2a140a; --bad: #ff8a73; --focus: #79adff; }
  }
  :root[data-theme="dark"] { --bg: #1c1814; --fg: #f2e8d8; --dim: #b3a28e; --accent: #f28a5a; --on-accent: #2a140a; --bad: #ff8a73; --focus: #79adff; }
  body { margin: 0; background: var(--bg); color: var(--fg);
         font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
  main { max-width: 520px; margin: 0 auto; padding: 48px 16px 0; }
  footer { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
  h1 { font-size: 24px; font-weight: 600; margin: 0 0 24px; }
  .lang { float: right; font-size: 13px; color: var(--dim); cursor: pointer; text-decoration: underline; background: none; padding: 4px 0; }
  p { margin: 0 0 16px; }
  button { font: inherit; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 8px 22px; cursor: pointer; }
  button:disabled { opacity: .45; cursor: default; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  a { color: inherit; }
  #alert { color: var(--bad); font-weight: 600; margin: 0; }
  #alert:empty { display: none; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #status { margin-top: 16px; min-height: 1.6em; }
  .small { color: var(--dim); font-size: 13px; }
  progress { width: 100%; height: 8px; margin-top: 16px; accent-color: var(--accent); }
  pre { color: var(--dim); font-size: 12px; white-space: pre-wrap; margin-top: 16px; }
  /* the log: its own scrolling box (an install is a few thousand lines), hidden until it has some */
  #log { max-height: 15em; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px; border-radius: 6px;
         border: 1px solid color-mix(in srgb, var(--dim) 35%, transparent); }
  #log:empty { display: none; }
  h2 { font-size: 18px; font-weight: 600; margin: 40px 0 12px; }
  ol { margin: 0 0 16px; padding-left: 20px; }
  textarea { width: 100%; box-sizing: border-box; font: 12px/1.4 ui-monospace, Menlo, monospace; color: var(--fg);
             background: transparent; border: 1px solid var(--dim); border-radius: 6px; padding: 8px; }
  input[type=file] { font: inherit; font-size: 13px; color: var(--fg); max-width: 100%; }
  .opt { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; }
  .opt input { margin-top: 6px; accent-color: var(--accent); }
  .backup { border: 2px solid var(--accent); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
  .backup strong { color: var(--accent); }
  dialog { max-width: 440px; border: 0; border-radius: 12px; padding: 24px; background: var(--bg); color: var(--fg);
           box-shadow: 0 8px 40px rgba(0, 0, 0, .35); }
  dialog::backdrop { background: rgba(0, 0, 0, .45); }
  dialog h2 { margin: 0 0 12px; }
  dialog .row { display: flex; gap: 12px; justify-content: flex-end; margin: 24px 0 0; }
  button.plain { background: none; color: var(--fg); border: 1px solid var(--dim); }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* OG Synth: zawsze ciemno (logo jest białe), jeden akcent: pomarańcz OG Deck. Zmienne wszystkich szablonów fm1-base:
   instalator (--bg ...), strona główna i instrukcja (--paper ...), kopia zapasowa i symulator (--ground ...) */
html:root:root, html:root:root[data-theme], html:root:root:not([data-theme="light"]) {
  --ogs-bg: #0a0a0b; --ogs-card: #16171a; --ogs-rule: #2b2d33; --ogs-ink: #f3f3f5; --ogs-dim: #9b9ea6; --ogs-acc: #ff9a1f;
  --bg: var(--ogs-bg) !important; --fg: var(--ogs-ink) !important; --dim: var(--ogs-dim) !important;
  --accent: var(--ogs-acc) !important; --on-accent: #120a00 !important; --bad: #ff6b5e !important; --focus: #ffc27a !important;
  --paper: var(--ogs-bg) !important; --sheet: var(--ogs-card) !important; --rule: var(--ogs-rule) !important;
  --ink: var(--ogs-ink) !important; --muted: var(--ogs-dim) !important; --hot: var(--ogs-acc) !important;
  --hot-t: rgba(255, 154, 31, .16) !important; --hot-ink: var(--ogs-acc) !important; --cool: #c9cbd1 !important;
  --cool-t: rgba(255, 255, 255, .08) !important; --ground: var(--ogs-bg) !important; --card: var(--ogs-card) !important; --acc: var(--ogs-acc) !important;
  --teal: #c9cbd1 !important;
  color-scheme: dark;
}
html body { background: var(--ogs-bg); color: var(--ogs-ink); }
h1, h2, h3, button, .bar, .lang { font-family: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif; }
h1 { letter-spacing: .01em; }
h2 { letter-spacing: .02em; text-transform: uppercase; }
a { text-decoration-color: var(--ogs-acc); }
.ogs-logo { display: block; margin: 8px auto 28px; text-align: center; }
.ogs-logo img { width: min(100%, 460px); height: auto; display: inline-block; }
.ogs-home .ogs-logo img { width: min(100%, 620px); }
.ogs-home main > h1:first-of-type, .ogs-emu h1 { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
button:not(.lang):not(.plain) { font-weight: 600; letter-spacing: .03em; }
progress { accent-color: var(--ogs-acc); }
.backup { background: rgba(255, 154, 31, .06); }
