/* The pages of the site: the top page, the documentation (site/docs.mjs) and
   the thumbnail and search text pages. The viewer has a style of its own. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --subtle: #f6f8fa;
  --link: #0969da;
  --focus: #1a73e8;
  --accent: #1d6b40;
  --on-accent: #ffffff;
  --danger: #b00020;
  --shadow: 0 1px 3px rgba(31, 35, 40, .12), 0 8px 24px rgba(66, 74, 83, .12);
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* the width of a page */
  --page: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --border: #3d444d;
    --subtle: #161b22;
    --link: #4493f8;
    --focus: #58a6ff;
    --accent: #3fb27f;
    --on-accent: #04130b;
    --danger: #ff7b89;
    --shadow: 0 0 0 1px #3d444d;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.7 var(--sans); overflow-wrap: break-word; }
html:lang(ja) body { line-height: 1.8; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.3; }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .875em; padding: .1em .35em; background: var(--subtle); border-radius: 4px; }
pre { overflow-x: auto; margin: 0 0 1rem; padding: .75rem 1rem; font: .875rem/1.5 var(--mono); background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; }
pre code { padding: 0; font-size: inherit; background: none; }
button, select, input, textarea { font: inherit; }

.skip { position: absolute; top: 8px; left: 16px; z-index: 3; padding: .5rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* the header of every page */
.bar { background: var(--subtle); border-bottom: 1px solid var(--border); }
.bar nav, .layout, .wrap { max-width: calc(var(--page) + 32px); margin: 0 auto; padding-inline: 16px; }
.bar nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.5rem; padding-block: .6rem; }
/* the links wrap beside the home link on narrow screens */
.bar ul { display: flex; flex: 1 1 0; flex-wrap: wrap; gap: .25rem 1.1rem; min-width: 0; margin: 0; padding: 0; list-style: none; }
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; }
.bar .home { color: var(--fg); font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.bar a[aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: underline 2px; text-underline-offset: .35em; }
.bar .lang { padding: 0 .6rem; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; }

.button { display: inline-block; padding: .5rem 1.1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--muted); }
.button.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.1); }

/* --- the documentation --- */
.layout { display: block; }
.sidebar { margin-top: 1rem; font-size: .9375rem; line-height: 1.5; }
.sidebar details { padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 6px; }
.sidebar summary { cursor: pointer; font-weight: 600; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar details > ul > li { margin-top: .9rem; }
.sidebar span { display: block; padding: .2rem .5rem; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.sidebar a { display: block; padding: .25rem .5rem; color: var(--fg); border-radius: 6px; text-decoration: none; }
.sidebar a:hover { background: var(--subtle); }
.sidebar a[aria-current="page"] { background: var(--subtle); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.toc { display: none; }
@media (min-width: 60rem) {
  .layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; }
  .sidebar { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; margin: 0; padding: 1.25rem 0 2rem; }
  .sidebar details { padding: 0; border: 0; }
  .sidebar summary { display: none; }
  .sidebar details > ul > li:first-child { margin-top: 0; }
}
@media (min-width: 80rem) {
  .layout:not(.no-toc) { grid-template-columns: 14rem minmax(0, 1fr) 13rem; }
  .toc { display: block; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 1.5rem 0 2rem; font-size: .875rem; line-height: 1.5; }
  .toc h2 { margin: 0 0 .5rem; color: var(--muted); font-size: .8125rem; letter-spacing: .04em; }
  .toc ul { margin: 0; padding: 0; list-style: none; }
  .toc ul ul { padding-left: .9rem; }
  .toc a { display: block; padding: .2rem 0; color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--link); text-decoration: underline; }
}

.doc main { max-width: 50rem; padding: 1rem 0 3rem; }
.doc main h1, .doc main h2, .doc main h3, .doc main h4 { scroll-margin-top: 1rem; }
.doc main h1 { font-size: clamp(1.625rem, 1rem + 3vw, 2rem); margin: .5rem 0 1rem; }
.doc main h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
.doc main h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.doc main h4 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.doc main p, .doc main ul, .doc main ol, .doc main blockquote, .table-wrap { margin: 0 0 1rem; }
.doc main li > ul, .doc main li > ol { margin: 0; }
.doc main ul, .doc main ol { padding-left: 1.75rem; }
.doc main li + li { margin-top: .25rem; }
.doc main hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
/* pictures of documents: on a frame, as they are mostly white */
.doc main p > img, .doc main p > a > img { display: block; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.doc main blockquote { padding: 0 1rem; color: var(--muted); border-left: .25rem solid var(--border); }
pre.mermaid[data-processed] { padding: 0; font: inherit; text-align: center; background: none; border: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: .9375rem; line-height: 1.6; }
th, td { padding: .4rem .75rem; vertical-align: top; border: 1px solid var(--border); }
th { background: var(--subtle); }
th:not([align]) { text-align: start; }
.foot { margin-top: 3rem; padding-block: 1rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--border); }

/* --- the top page --- */
.home main { padding-bottom: 3rem; }
.home section { padding-block: 2rem; }
.home h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.home h2 + ul { margin-top: 1rem; }
.home .lead { margin: 0 0 1.25rem; color: var(--muted); }
.hero { padding-block: 2.5rem 1rem; }
.hero h1 { margin: 0 0 .75rem; font-size: clamp(1.75rem, 1rem + 3.2vw, 2.75rem); letter-spacing: -.01em; text-wrap: balance; }
.hero p { max-width: 46rem; margin: 0 0 1.25rem; font-size: 1.125rem; color: var(--muted); }
.hero .format-note { max-width: 56rem; font-size: 1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* the document shown on the top page */
.demo { border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.demo .tools { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; padding: .4rem .75rem; background: var(--subtle); border-bottom: 1px solid var(--border); font-size: .875rem; }
.demo .tools .name { flex: 1 1 8rem; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.demo .tools input { width: 11rem; max-width: 100%; padding: .15rem .5rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.demo .tools select { padding: .15rem .3rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.demo .tools button { min-width: 2rem; padding: .15rem .5rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.demo .tools [role="status"] { min-width: 4.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo .tools button:disabled { opacity: .4; cursor: default; }
.demo .tools .pager { display: inline-flex; gap: .25rem; align-items: center; }
.demo .tools #pageNum { min-width: 4.5rem; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo .view { position: relative; overflow: auto; height: min(72vh, 46rem); min-height: 20rem; background: #e9ecef; color: #222; }
.demo .view:focus-visible { outline: 2px solid var(--link, #1a73e8); outline-offset: -2px; }
.demo .page { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.demo .page canvas { display: block; }
.demo .page:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
/* pages to scroll through (the room of the scroll bar is kept, so that the width they fit does not change as it comes) */
.demo .view:has(> .scroll) { scrollbar-gutter: stable; }
.demo .scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; width: fit-content; min-width: 100%; padding: 12px; box-sizing: border-box; }
/* the pages, one or two at a time (examples/viewer/book.ts): a canvas takes their place while one turns */
.demo .book { position: relative; overflow: hidden; }
.demo .book .leaves { position: absolute; inset: 0; }
.demo .book .page { position: absolute; }
.demo .book > canvas { position: absolute; left: 0; top: 0; display: none; pointer-events: none; }
.demo .book.turning > canvas { display: block; }
.demo .book.turning .leaves { opacity: 0; pointer-events: none; }
.demo .book .zones > div { position: absolute; z-index: 2; touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.demo .book .zones > div.grabbing { cursor: grabbing; }
.demo .book.selecting .zones > div { pointer-events: none; }
.demo .hits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; forced-color-adjust: none; }
.demo .hit { position: absolute; background: rgba(255, 210, 0, .45); outline: 1px solid rgba(200, 140, 0, .8); border-radius: 2px; }
.demo .hit.current { background: rgba(255, 120, 0, .5); outline-color: #c04000; }
.demo .view > p { margin: 0; padding: 24px; color: #555; text-align: center; }
.demo + .note { margin: .6rem 0 0; color: var(--muted); font-size: .875rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.card .shot { display: block; aspect-ratio: 16 / 10; background: #e9ecef; border-bottom: 1px solid var(--border); overflow: hidden; }
.card .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card .body { display: flex; flex: 1; flex-direction: column; gap: .25rem; padding: .75rem 1rem 1rem; }
.card h3 { margin: 0; font-size: 1.0625rem; }
.card p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.card .links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: auto; padding-top: .5rem; font-size: .9375rem; }
.cards.plain .card .body { padding-top: 1rem; }
.more { margin: 1rem 0 0; color: var(--muted); font-size: .9375rem; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2rem; margin: 0; padding: 0; list-style: none; }
.points h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.points p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

.benchmark-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.benchmark-highlight { display: flex; flex-direction: column; gap: .15rem; padding: .75rem 1rem; background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; }
.benchmark-highlight strong { color: var(--accent); font-size: 1.5rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.benchmark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); gap: 1rem; align-items: start; }
.benchmark-card { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.benchmark-card h3 { margin: 0 0 .75rem; font-size: 1.125rem; }
.benchmark-cases { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.benchmark-case { padding-top: .6rem; border-top: 1px solid var(--border); }
.benchmark-case:first-child { padding-top: 0; border-top: 0; }
.benchmark-case h4 { margin: 0 0 .4rem; font-size: .875rem; }
.benchmark-measure { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(1.5rem, 1fr) minmax(5rem, auto); gap: .5rem; align-items: center; }
.benchmark-measure + .benchmark-measure { margin-top: .25rem; }
.benchmark-series { font-size: .8rem; line-height: 1.35; }
.benchmark-track { display: block; height: .6rem; overflow: hidden; border-radius: 999px; background: var(--subtle); }
.benchmark-track span { display: block; min-width: 2px; height: 100%; border-radius: inherit; }
.benchmark-measure.office .benchmark-track span { background: var(--muted); }
.benchmark-measure.bdf .benchmark-track span { background: var(--accent); }
.benchmark-value { font-size: .875rem; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.benchmark-card figcaption { margin-top: .75rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.benchmark-method { max-width: 72rem; margin: 1rem 0 0; color: var(--muted); font-size: .875rem; }

.home footer { padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--border); }

/* --- the thumbnail and search text pages --- */
.tool main { padding-block: 1.5rem 3rem; }
.tool h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 1rem + 2.4vw, 2rem); }
.tool .lead { max-width: 50rem; margin: 0 0 1.25rem; color: var(--muted); }
.drop { padding: 1.25rem; border: 2px dashed var(--border); border-radius: 10px; }
.drop p { margin: 0 0 .75rem; }
.drop p:last-child { margin-bottom: 0; }
.drop .samples { display: flex; flex-wrap: wrap; gap: .35rem; }
.drop .samples button { padding: .1rem .6rem; color: var(--fg); background: var(--subtle); border: 1px solid var(--border); border-radius: 999px; font-size: .8125rem; cursor: pointer; }
.drop .samples button:hover { border-color: var(--muted); }
body.dragging .drop { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 10%, transparent); }
.options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin: 1.25rem 0 .5rem; }
.options label { display: inline-flex; gap: .4rem; align-items: center; }
.options select, .options input[type="number"] { padding: .15rem .4rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.options input[type="number"] { width: 5rem; }
.options .hint { color: var(--muted); font-size: .875rem; }
.status { min-height: 1.7em; margin: 0 0 1rem; color: var(--muted); font-size: .9375rem; }
.status[data-error] { color: var(--danger); }
.note { color: var(--muted); font-size: .875rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-end; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.thumbs figure { margin: 0; }
/* thumbnails are shown at their size: one image pixel a CSS pixel */
.thumbs img { display: block; max-width: none; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 1px 4px rgba(0, 0, 0, .25); }
.thumbs figcaption { margin-top: .4rem; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.thumbs figcaption strong { display: block; color: var(--fg); }
.output { display: block; width: 100%; height: min(60vh, 40rem); min-height: 14rem; padding: .75rem 1rem; color: var(--fg); background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; font: .875rem/1.5 var(--mono); resize: vertical; }
.how h2 { margin: 2rem 0 .5rem; font-size: 1.125rem; }
dialog.password { padding: 1rem 1.25rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
dialog.password h2 { margin: 0 0 .5rem; font-size: 1.0625rem; }
dialog.password p[data-error] { color: var(--danger); }
dialog.password .buttons { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .75rem; }

/* --- the form page --- */
.presets { width: 100%; margin: 1rem 0 0; border-collapse: collapse; font-size: .9375rem; }
.presets caption { margin-bottom: .4rem; text-align: left; }
.presets th, .presets td { padding: .35rem .6rem .35rem 0; background: none; border: 0; border-top: 1px solid var(--border); text-align: left; vertical-align: baseline; }
.presets th { white-space: nowrap; }
.presets td { color: var(--muted); }
.presets td.samples { min-width: 20rem; padding-right: 0; }
.sample-template { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin: .25rem .65rem .25rem 0; vertical-align: top; white-space: nowrap; }
.sample-template a { font-size: .75rem; }
@media (max-width: 48rem) {
  .presets, .presets caption, .presets tbody, .presets tr, .presets th, .presets td { display: block; }
  .presets th, .presets td { padding: .1rem 0; border: 0; }
  .presets tr { padding: .5rem 0; border-top: 1px solid var(--border); }
  .presets td.samples { min-width: 0; }
}
.pane { min-width: 0; }
.panehead { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin: 0 0 .6rem; min-height: 2.6rem; }
.panehead h2 { margin: 0; font-size: 1.125rem; }
.panehead .actions { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.panehead .button { padding: .3rem .9rem; font-size: .9375rem; }
.panehead .button:disabled { opacity: .5; cursor: default; }
.panehead select { font: inherit; font-size: .9375rem; padding: .3rem .4rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--fg); max-width: 11rem; }
.tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.tabs button { padding: .2rem .8rem; color: var(--fg); background: var(--bg); border: 0; border-left: 1px solid var(--border); font: inherit; font-size: .875rem; cursor: pointer; }
.tabs button:first-child { border-left: 0; }
.tabs button[aria-selected="true"] { background: var(--subtle); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.tabs button:disabled { color: var(--muted); opacity: .6; cursor: default; }
.formtabs { display: flex; margin-bottom: .75rem; }
.formtabs button { flex: 1; padding: .55rem .8rem; font-size: 1rem; }
.sample-style { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 1rem 0; }
.sample-style[hidden] { display: none; }
.sample-style label { font-size: .875rem; font-weight: 600; }
.sample-style select { max-width: 100%; padding: .3rem .5rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.sample-style .note { flex-basis: 100%; }
#dataPanel { max-width: 56rem; }
.tool details.how { margin-top: 1.25rem; }
.tool details.how summary { cursor: pointer; font-weight: 600; }
.tool details.how pre:first-of-type { margin-top: .75rem; }
.fields .props { display: grid; gap: .6rem; }
.fields label.field { display: grid; gap: .15rem; }
.fields label.field > span, .fields label.check > span { font-size: .875rem; font-weight: 600; }
.fields label.check { display: flex; gap: .5rem; align-items: center; }
.fields small { color: var(--muted); font-weight: 400; }
.fields input:not([type="checkbox"]), .fields textarea, .fields select { width: 100%; min-width: 0; padding: .3rem .5rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .9375rem; line-height: 1.4; }
.fields textarea { display: block; resize: vertical; }
.fields input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.fields fieldset { min-width: 0; margin: 0; padding: .6rem .75rem .75rem; border: 1px solid var(--border); border-radius: 8px; }
.fields legend { padding: 0 .35rem; font-size: .875rem; font-weight: 600; }
.fields fieldset.item { margin-bottom: .6rem; background: var(--subtle); }
.fields .rows { overflow-x: auto; margin-bottom: .5rem; }
.fields table { width: 100%; border-collapse: collapse; }
.fields th, .fields td { padding: .15rem .25rem .15rem 0; background: none; border: 0; text-align: left; vertical-align: middle; }
.fields th { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.fields td input:not([type="checkbox"]) { min-width: 4.5rem; padding: .2rem .4rem; }
.fields td:last-child { width: 1.75rem; padding-right: 0; }
.fields .picture { display: flex; gap: .4rem; }
.fields button { padding: .2rem .7rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .875rem; cursor: pointer; white-space: nowrap; }
.fields button:hover:not(:disabled) { border-color: var(--muted); }
.fields button:disabled { opacity: .5; cursor: default; }
.fields button.remove { width: 1.6rem; height: 1.6rem; padding: 0; color: var(--muted); line-height: 1; }
.fields button.remove:hover { color: var(--danger); border-color: var(--danger); }
#json[aria-invalid="true"] { border-color: var(--danger); }
.schema { max-height: min(60vh, 40rem); }
.preview { height: 75vh; min-height: 16rem; overflow: auto; scrollbar-gutter: stable; padding: clamp(16px, 3vw, 32px); background: #d5d8dc; border: 1px solid var(--border); border-radius: 8px; }
.preview .page { margin: 0 auto 28px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 12px 28px rgba(0, 0, 0, .18); color-scheme: light; }
.preview .page:last-child { margin-bottom: 0; }
.preview canvas { display: block; width: 100%; height: 100%; }
.warnings { margin: .6rem 0 0; color: var(--muted); font-size: .875rem; }
.warnings summary { cursor: pointer; }
.warnings ul { margin: .3rem 0 0; padding-left: 1.2rem; }
@media (prefers-color-scheme: dark) {
  .preview { background: #30363d; }
}
