:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --link: #1a56db;
  --accent: #6d28d9;
  --card: #fafafa;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #047857;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #e8e8ea;
    --muted: #a0a0a8;
    --line: #2c2e33;
    --link: #7aa2ff;
    --accent: #b794f6;
    --card: #1d1f24;
    --warn: #fbbf24;
    --danger: #f87171;
    --ok: #34d399;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
header.site { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand .dot { color: var(--accent); }
.kicker { color: var(--muted); font-size: 0.95rem; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0.6em 0 0.2em; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2em 0 0.5em; padding-top: 0.4em; scroll-margin-top: 16px; }
h3 { font-size: 1.05rem; margin: 1.4em 0 0.3em; }
p, li { color: var(--fg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0.2em 0 1.5em; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0 1.5em; }
.muted-note { color: var(--muted); font-size: 0.9rem; }
nav.crumbs { font-size: 0.9rem; margin-bottom: 8px; }
nav.crumbs a { color: var(--muted); }
footer.site { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
code, kbd { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.4em; font-size: 0.9em; }
kbd { font-family: inherit; font-weight: 600; white-space: nowrap; }

/* table of contents */
nav.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin: 24px 0 8px;
}
nav.toc .toc-h { font-weight: 600; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
nav.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
nav.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 560px) { nav.toc ol { columns: 1; } }

/* step lists */
ol.steps { padding-left: 1.3em; }
ol.steps li { margin: 8px 0; }

/* feature path: Window → Extensions → Colordex */
.path { font-weight: 600; }

/* press-check issue cards */
.issue {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; background: var(--card);
  padding: 14px 18px; margin: 14px 0;
}
.issue .it { font-weight: 600; font-size: 1.02rem; }
.issue .iw { color: var(--fg); font-size: 0.96rem; margin: 6px 0 0; }
.issue .ifix { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.issue .ifix b { color: var(--ok); font-weight: 600; }

/* callouts */
.note {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 12px 16px; margin: 16px 0; font-size: 0.95rem;
}
.note.warn { border-left: 4px solid var(--warn); }

/* definition table for toolbar/buttons */
table.ref { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
table.ref th, table.ref td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
table.ref td:first-child { white-space: nowrap; font-weight: 600; }

/* screenshots */
figure.shot { margin: 18px 0; }
figure.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card);
  cursor: zoom-in;
}
figure.shot figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.shot-pair figure.shot { margin: 18px 0 0; }
@media (max-width: 560px) { .shot-pair { grid-template-columns: 1fr; } }

/* click-to-zoom overlay */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lb-overlay img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* PDF / print: drop the language toggle, start each section (h2) on a new page */
@media print {
  nav.crumbs { display: none; }
  h2 {
    page-break-before: always;
    break-before: page;
    padding-top: 8px;
  }
  figure.shot, .issue, table.ref, .note { page-break-inside: avoid; break-inside: avoid; }
  a { color: #1a1a1a; }
}
