/* Vyoolo guide. Day and night follow the device unless the reader picks one. */
  :root {
    --bg: #f4f1ea;
    --surface: #fffdf9;
    --ink: #221b15;
    --muted: #5c534a;
    --line: #e2dcd2;
    --accent: #0d625e;
    --accent-soft: #e2efed;
    --kbd: #efe9df;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
      --bg: #1f1d1b;
      --surface: #2a2725;
      --ink: #f2ede5;
      --muted: #c2b9ad;
      --line: #423d38;
      --accent: #8fd6cd;
      --accent-soft: #24393a;
      --kbd: #38332f;
      color-scheme: dark;
    }
  }
  :root[data-theme='dark'] {
    --bg: #1f1d1b;
    --surface: #2a2725;
    --ink: #f2ede5;
    --muted: #c2b9ad;
    --line: #423d38;
    --accent: #8fd6cd;
    --accent-soft: #24393a;
    --kbd: #38332f;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 18px/1.65 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Inter, Roboto, sans-serif;
  }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

  .skip {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
  }
  .skip:focus { top: 12px; }

  /* Always on screen, so the installed app (which has no browser back button) can leave the guide. */
  .backbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 14px 0 8px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }
  .backbar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .bar-end { display: flex; align-items: center; gap: 4px; }
  .to-contents {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }
  .to-contents[hidden] { display: none; }
  .to-contents:hover { background: var(--accent-soft); color: var(--ink); }
  .to-contents:focus-visible,
  .theme-cycle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* The theme: one quiet icon that steps Auto, Day, Night. */
  .theme-cycle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    opacity: 0.75;
    cursor: pointer;
  }
  .theme-cycle:hover { opacity: 1; background: var(--accent-soft); color: var(--ink); }
  .theme-cycle svg { display: none; }
  .theme-cycle[data-choice='auto'] .i-auto,
  .theme-cycle[data-choice='light'] .i-light,
  .theme-cycle[data-choice='dark'] .i-dark { display: block; }
  nav.toc:focus { outline: none; }
  h2[tabindex='-1']:focus { outline: none; }
  .back:hover { background: var(--accent-soft); }
  .back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  html { scroll-padding-top: 76px; }

  header.top {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  h1 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
  .lead { margin: 10px 0 0; color: var(--muted); font-size: 19px; }

  main { max-width: 760px; margin: 0 auto; padding: 0 16px 64px; }

  nav.toc {
    margin: 24px 0 8px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  nav.toc h2 { margin: 0 0 6px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  nav.toc ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 24px; }
  nav.toc li { margin: 2px 0; break-inside: avoid; }

  section { padding-top: 28px; }
  h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; }
  h3 { margin: 20px 0 4px; font-size: 19px; }
  p { margin: 8px 0; }
  ul, ol { padding-left: 24px; }
  li { margin: 6px 0; }
  strong { font-weight: 650; }

  a { color: var(--accent); text-underline-offset: 3px; }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

  .tip {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--accent-soft);
  }
  .tip p { margin: 0; }

  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
  @media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
  .card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  .card h3 { margin-top: 0; }
  .card ul { margin: 6px 0 0; padding-left: 20px; }

  kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--kbd);
    font: 600 0.85em/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-align: center;
  }

  table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 17px; }
  th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  th { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

  footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; color: var(--muted); font-size: 16px; border-top: 1px solid var(--line); }

  @media (max-width: 520px) {
    body { font-size: 17px; }
    h1 { font-size: 28px; }
    header.top { flex-direction: column; }
  }
