/* Fonts of RollBerry Autor (content/autor-assets.json). Every file is the unmodified original from the designer's
   repository under the SIL Open Font License 1.1; the licence texts are published under /author/licenses/. The browser
   loads only the faces the current theme uses. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-400-latin.dd9193fe2f.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-600-latin.0d94a5546f.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('../fonts/bricolage-grotesque-700-latin.c3b8902fad.woff2') format('woff2'); }

/* Klassische Chronik */
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-display: block; src: url('../fonts/eb-garamond-regular.bef2aa7386.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-display: block; src: url('../fonts/eb-garamond-medium.ee16a9f8bc.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600 700; font-display: block; src: url('../fonts/eb-garamond-semibold.f772cb765b.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: block; src: url('../fonts/eb-garamond-italic.b83f7e6b6b.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 500 700; font-display: block; src: url('../fonts/eb-garamond-mediumitalic.687c304490.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-display: block; src: url('../fonts/cinzel-variable.f4d83d34d1.ttf') format('truetype'); }

/* Kosmischer Horror der 1920er */
@font-face { font-family: 'Poiret One'; font-weight: 400; font-display: block; src: url('../fonts/poiret-one-regular.457f2d0326.ttf') format('truetype'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-display: block; src: url('../fonts/old-standard-tt-regular.42717a1280.ttf') format('truetype'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 700; font-display: block; src: url('../fonts/old-standard-tt-bold.7d831e9d79.ttf') format('truetype'); }
@font-face { font-family: 'Old Standard TT'; font-style: italic; font-weight: 400; font-display: block; src: url('../fonts/old-standard-tt-italic.4b9522f471.ttf') format('truetype'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-display: block; src: url('../fonts/courier-prime-regular.72f793376f.ttf') format('truetype'); }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-display: block; src: url('../fonts/courier-prime-bold.ff1f38786c.ttf') format('truetype'); }

/* Raumfrachter-Terminal */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 700; font-display: block; src: url('../fonts/big-shoulders-display-bold.55e4e4a664.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: block; src: url('../fonts/big-shoulders-display-extrabold.c45109c4bf.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: block; src: url('../fonts/big-shoulders-display-black.1343ffcbd0.woff2') format('woff2'); }
@font-face { font-family: 'B612'; font-weight: 400; font-display: block; src: url('../fonts/b612-regular.139dce6591.ttf') format('truetype'); }
@font-face { font-family: 'B612'; font-weight: 700; font-display: block; src: url('../fonts/b612-bold.91749541ac.ttf') format('truetype'); }
@font-face { font-family: 'B612'; font-style: italic; font-weight: 400; font-display: block; src: url('../fonts/b612-italic.57fd8a0d3c.ttf') format('truetype'); }
@font-face { font-family: 'B612 Mono'; font-weight: 400; font-display: block; src: url('../fonts/b612-mono-regular.b98cb96cc8.ttf') format('truetype'); }
@font-face { font-family: 'B612 Mono'; font-weight: 700; font-display: block; src: url('../fonts/b612-mono-bold.b467b1d19f.ttf') format('truetype'); }

/* Neon-Metropole */
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: block; src: url('../fonts/chakra-petch-medium.c5c865c73e.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: block; src: url('../fonts/chakra-petch-semibold.dbcfd662be.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: block; src: url('../fonts/chakra-petch-bold.037a2b8323.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-weight: 400; font-display: block; src: url('../fonts/saira-regular.3455098e4a.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-weight: 500; font-display: block; src: url('../fonts/saira-medium.5ec9fe4f0f.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-weight: 600 700; font-display: block; src: url('../fonts/saira-semibold.1978600350.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-weight: 400; font-display: block; src: url('../fonts/martian-mono-regular.a52fec1b85.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-weight: 600; font-display: block; src: url('../fonts/martian-mono-semibold.e4feb454f8.woff2') format('woff2'); }

/* Grenzstadt */
@font-face { font-family: 'Sancreek'; font-weight: 400; font-display: block; src: url('../fonts/sancreek-regular.ef18237133.woff2') format('woff2'); }
@font-face { font-family: 'Holtwood One SC'; font-weight: 400; font-display: block; src: url('../fonts/holtwood-one-sc-regular.6650b27801.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 400 700; font-display: block; src: url('../fonts/libre-caslon-text-variable.c11809dbfd.ttf') format('truetype'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400 700; font-display: block; src: url('../fonts/libre-caslon-text-italic-variable.60ca1a3aad.ttf') format('truetype'); }

/* Ermittlung */
@font-face { font-family: 'Public Sans'; font-weight: 500; font-display: block; src: url('../fonts/public-sans-medium.26cedea866.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: block; src: url('../fonts/public-sans-semibold.f99ffc265c.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: block; src: url('../fonts/public-sans-bold.908322301d.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 800; font-display: block; src: url('../fonts/public-sans-extrabold.3a75548c85.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 200 800; font-display: block; src: url('../fonts/newsreader-variable.1faa3380ac.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: block; src: url('../fonts/newsreader-italic-variable.d184d5e6a9.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: block; src: url('../fonts/jetbrains-mono-500-latin.b01a0b174b.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600 700; font-display: block; src: url('../fonts/jetbrains-mono-600-latin.718621e7de.woff2') format('woff2'); }


/* RollBerry Autor: application frame after the editor design in Claude Design. Warm dark desk, Inter for the interface,
   amber only for the one primary action and the current position. */
:root {
  --ui-bg: #1d1b18; --ui-bar: #221f1b; --ui-desk: #191714; --ui-line: #35312b; --ui-line-strong: #423c34;
  --ui-raised: #2a2621; --ui-hover: #36312a; --ui-text: #ece6dc; --ui-muted: #a8a094; --ui-faint: #8f877b;
  --ui-accent: #e4a94f; --ui-accent-ink: #1d1b18; --ui-focus: #f2c27a; --ui-ok: #8fb36b; --ui-danger: #f08a7a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ui-bg); color: var(--ui-text); font: 400 14px/1.45 Inter, 'Segoe UI', system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.ab-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ab-app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }

/* Header */
.ab-bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; background: var(--ui-bar); border-bottom: 1px solid var(--ui-line); }
.ab-brand { display: flex; align-items: center; gap: 9px; color: var(--ui-text); text-decoration: none; }
.ab-brand img { display: block; width: 28px; height: 28px; }
.ab-brand-name { font: 700 18px/1 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -0.01em; }
.ab-badge { padding: 2px 7px; border-radius: 999px; border: 1px solid var(--ui-line); color: var(--ui-faint); font-size: 11.5px; }
.ab-divider { width: 1px; height: 24px; background: var(--ui-line); }
.ab-doc { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; }
.ab-title-input { width: 26ch; min-width: 10ch; max-width: 40vw; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-weight: 600; text-overflow: ellipsis; }
.ab-title-input:hover { border-color: var(--ui-line); }
.ab-title-input:focus { border-color: var(--ui-line-strong); background: #191714; outline: none; }
.ab-save { display: flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--ui-muted); font-size: 12.5px; white-space: nowrap; }
.ab-save::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-ok); }
.ab-save[data-state='saving']::before { background: var(--ui-accent); }
.ab-save[data-state='failed'] { color: var(--ui-danger); }
.ab-save[data-state='failed']::before { background: var(--ui-danger); }
.ab-spacer { flex: 1; }
.ab-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ui-muted); }
.ab-icon-button:hover, .ab-icon-button[aria-expanded='true'] { background: var(--ui-raised); color: var(--ui-text); }
.ab-theme-button { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--ui-line); border-radius: 9px; background: transparent; text-align: left; }
.ab-theme-button:hover, .ab-theme-button[aria-expanded='true'] { background: var(--ui-raised); }
.ab-theme-swatch { width: 28px; height: 28px; border-radius: 5px; background: linear-gradient(to top, var(--s-accent) 0 6px, var(--s-paper) 6px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.ab-theme-button small { display: block; color: var(--ui-muted); font-size: 11px; line-height: 1.2; }
.ab-theme-button span span { font-size: 13px; font-weight: 500; }
.ab-primary { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ui-accent); color: var(--ui-accent-ink); font-weight: 600; }
.ab-primary:hover { background: #ecb963; }
.ab-secondary { min-height: 36px; padding: 0 14px; border: 1px solid var(--ui-line-strong); border-radius: 8px; background: transparent; color: var(--ui-text); font-weight: 600; }
.ab-secondary:hover { background: var(--ui-raised); }
.ab-tools { display: flex; align-items: center; gap: 2px; }
.ab-icon-button:disabled { opacity: 0.35; cursor: default; background: transparent; }
.ab-tool-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-left: 6px; padding: 0 12px 0 9px; border: 1px solid var(--ui-line); border-radius: 8px; background: transparent; color: var(--ui-text); font-weight: 600; font-size: 13px; }
.ab-tool-button:hover, .ab-tool-button[aria-expanded='true'] { background: var(--ui-raised); }
.ab-tool-button .ab-icon { color: var(--ui-accent); }

/* Body: outline and desk */
.ab-body { position: relative; display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 0; }
.ab-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; padding: 14px 10px 18px; background: var(--ui-bar); border-right: 1px solid var(--ui-line); }
.ab-side h2 { margin: 0 6px; font: 600 12px/1.2 Inter, sans-serif; color: var(--ui-muted); }
.ab-search { position: relative; margin: 0 6px; }
.ab-search .ab-icon { position: absolute; left: 10px; top: 9px; color: var(--ui-faint); }
.ab-search input { width: 100%; padding: 8px 10px 8px 34px; border: 1px solid var(--ui-line); border-radius: 8px; background: #191714; font-size: 13px; }
.ab-search input::placeholder { color: var(--ui-faint); }
.ab-outline { display: flex; flex-direction: column; gap: 1px; }
.ab-outline-item { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #ddd5c8; text-align: left; font-size: 13px; }
.ab-outline-item:hover { background: var(--ui-raised); }
.ab-outline-item[aria-current='true'] { background: var(--ui-hover); box-shadow: inset 2px 0 0 var(--ui-accent); color: var(--ui-text); }
.ab-outline-chapter { margin-top: 6px; font-weight: 600; color: var(--ui-text); }
.ab-outline-location, .ab-outline-person, .ab-outline-encounter { padding-left: 24px; }
.ab-outline-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-outline-page { flex: none; color: var(--ui-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.ab-outline-empty { margin: 4px 10px; color: var(--ui-faint); font-size: 13px; }
.ab-directories { margin: 0 6px; padding: 12px 0 0; border-top: 1px solid var(--ui-line); list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #ddd5c8; }
.ab-directories li { display: flex; justify-content: space-between; }
.ab-tips { margin: auto 6px 0; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 9px; background: #191714; color: var(--ui-muted); font-size: 12.5px; line-height: 1.5; }
.ab-tips kbd, .ab-keys kbd { padding: 0 5px; border: 1px solid var(--ui-line-strong); border-radius: 4px; color: var(--ui-text); font: 500 11.5px/1.5 Inter, sans-serif; }
.ab-side-tabs { display: flex; gap: 2px; margin: -4px 4px 0; border-bottom: 1px solid var(--ui-line); }
.ab-side-panel { display: flex; flex-direction: column; gap: 14px; }
.ab-side-panel[hidden] { display: none; }
.ab-side-note { margin: 0 6px; color: var(--ui-muted); font-size: 12.5px; line-height: 1.45; }
.ab-palette { display: flex; flex-direction: column; gap: 2px; }
.ab-palette h3 { margin: 10px 6px 4px; font: 600 11.5px/1.2 Inter, sans-serif; color: var(--ui-faint); }
.ab-palette h3:first-child { margin-top: 0; }
.ab-palette-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ui-text); text-align: left; }
.ab-palette-item:hover { background: var(--ui-raised); border-color: var(--ui-line); }
.ab-palette-item .ab-icon { width: 28px; height: 28px; padding: 5px; border-radius: 7px; background: var(--ui-bg); color: var(--ui-accent); }
.ab-palette-text { display: flex; flex-direction: column; min-width: 0; }
.ab-palette-name { font-weight: 600; font-size: 13px; }
.ab-palette-hint { color: var(--ui-muted); font-size: 12px; }

.ab-desk { position: relative; overflow: auto; padding: 28px 24px 96px; background-color: var(--ui-desk); background-image: linear-gradient(#211e1a 1px, transparent 1px), linear-gradient(90deg, #211e1a 1px, transparent 1px); background-size: 24px 24px; }
.ab-zoom {
  --page-w: 794px; --page-h: 1123px; --sheet-gap: 28px; --zoom: 1;
  --pitch: calc(var(--page-h) + var(--sheet-gap));
  position: relative; margin: 0 auto;
  width: calc(var(--page-w) * var(--zoom));
  height: calc((var(--pages, 1) * var(--pitch) - var(--sheet-gap)) * var(--zoom));
}

/* Pages. A theme sets the type area; the layout engine reads the same properties. */
.ab-canvas {
  --columns: 2; --column-gap: 30px; --body-left: 64px; --body-right: 64px; --body-top: 100px; --body-bottom: 84px;
  --body-w: calc(var(--page-w) - var(--body-left) - var(--body-right));
  --column-w: calc((var(--body-w) - var(--column-gap)) / 2);
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  width: var(--page-w); height: calc(var(--pages, 1) * var(--pitch) - var(--sheet-gap));
}
.ab-pagelayer, .ab-flow { position: absolute; inset: 0; }
/* Live previews (js/preview.js): the real theme on a detached, scaled canvas. */
.ab-mini { position: relative; display: block; flex: none; width: var(--mini-w); height: calc(var(--mini-w) * var(--mini-ratio, 0.8)); overflow: hidden; border-radius: 3px; background: #fff; }
.ab-mini-blank { display: flex; align-items: center; justify-content: center; background: #f4efe6; box-shadow: inset 0 0 0 1px rgba(60, 49, 40, 0.12); }
.ab-mini-plus { color: #8f877b; font: 300 48px/1 Inter, sans-serif; }
.ab-mini-canvas { --page-w: 794px; --page-h: 1123px; --pitch: 1151px; --sheet-gap: 0px; position: absolute; left: 0; top: 0; width: 794px; height: 1123px; transform: scale(var(--mini-scale)); transform-origin: 0 0; pointer-events: none; }
.ab-mini-canvas .ab-page { box-shadow: none; }
.ab-mini-flow { position: absolute; left: var(--body-left); right: var(--body-right); top: var(--body-top); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--column-gap); row-gap: 14px; align-items: start; }
.ab-mini-flow > .ab-chapter { grid-column: 1 / -1; grid-row: 1; }
.ab-mini-flow > .ab-block { position: relative; margin: 0; }
.ab-pagelayer { pointer-events: none; }
.ab-page { position: absolute; left: 0; top: calc(var(--p) * var(--pitch)); width: var(--page-w); height: var(--page-h); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35); }
.ab-flow { outline: none; white-space: pre-wrap; word-wrap: break-word; }
/* Owned by the layout engine; themes style blocks but never their position. */
.ab-canvas .ab-flow > .ab-block { position: absolute !important; margin: 0 !important; left: 0; top: 0; width: var(--column-w); }
.ab-canvas .ab-flow > .ab-chapter { width: var(--body-w); }
.ab-flow > .ab-overflow { outline: 2px dashed #c8372d; outline-offset: 3px; }
.ab-flow .ProseMirror-selectednode { outline: 2px solid var(--ui-accent); outline-offset: 4px; }
.ProseMirror-hideselection *::selection { background: transparent; }
.ProseMirror-hideselection { caret-color: transparent; }
.ab-placeholder { display: inline-block; width: 0; white-space: nowrap; overflow: visible; pointer-events: none; user-select: none; opacity: 0.45; font-style: italic; }

/* Block handle in the margin */
.ab-handle { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; }
.ab-handle button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 6px; background: rgba(42, 38, 33, 0.9); color: #ece6dc; opacity: 0.55; transition: opacity 120ms; }
.ab-handle:hover button, .ab-handle button:focus-visible { opacity: 1; }
.ab-handle button:hover { background: var(--ui-accent); color: var(--ui-accent-ink); }
.ab-handle-grip span { font: 700 12px/1 Inter, sans-serif; letter-spacing: -2px; }

/* Pager */
.ab-pager { position: absolute; right: 22px; bottom: 18px; z-index: 10; display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--ui-line-strong); border-radius: 12px; background: rgba(34, 31, 27, 0.96); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.ab-pager button { min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ui-text); }
.ab-pager button:hover:not(:disabled) { background: var(--ui-hover); }
.ab-pager button:disabled { opacity: 0.35; cursor: default; }
.ab-pager-label { padding: 0 8px; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.ab-pager-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--ui-line); }
.ab-zoom-label { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ui-muted); white-space: nowrap; }

/* Menus */
.ab-menu { position: fixed; z-index: 1000; min-width: 236px; max-width: 320px; max-height: calc(100vh - 16px); overflow: auto; padding: 6px; border: 1px solid var(--ui-line-strong); border-radius: 12px; background: var(--ui-raised); color: var(--ui-text); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); font-size: 13.5px; }
.ab-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.ab-menu-item .ab-icon { width: 18px; color: var(--ui-muted); }
.ab-menu-item.ab-active, .ab-menu-item:focus-visible { outline: none; background: var(--ui-hover); }
.ab-menu-item.ab-active .ab-icon { color: var(--ui-text); }
.ab-menu-item[aria-disabled='true'] { opacity: 0.4; cursor: default; }
.ab-menu-item.ab-danger { color: var(--ui-danger); }
.ab-menu-item.ab-danger .ab-icon { color: var(--ui-danger); }
.ab-menu-label { flex: 1; display: flex; flex-direction: column; }
.ab-menu-desc { color: var(--ui-muted); font-size: 12px; }
.ab-menu-hint { color: var(--ui-faint); font-size: 12px; white-space: nowrap; }
.ab-menu-section { padding: 6px 10px 4px; color: var(--ui-muted); font-size: 11.5px; font-weight: 600; }
.ab-menu-sep { height: 1px; margin: 5px 6px; background: var(--ui-line); }
.ab-menu-note { margin: 6px 4px 2px; padding: 8px 8px 2px; border-top: 1px solid var(--ui-line); color: var(--ui-faint); font-size: 11.5px; line-height: 1.4; }

/* "/" menu */
.ab-slash { position: fixed; z-index: 1000; width: 312px; max-height: 380px; overflow: auto; padding: 6px; border: 1px solid var(--ui-line-strong); border-radius: 12px; background: var(--ui-raised); color: var(--ui-text); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.ab-slash-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12.5px; }
.ab-slash-head kbd { padding: 1px 6px; border-radius: 4px; background: var(--ui-bg); color: var(--ui-text); font: 500 12px/1.4 Inter, sans-serif; }
.ab-slash-option { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.ab-slash-option[aria-selected='true'], .ab-slash-option:hover { background: var(--ui-hover); }
.ab-slash-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; background: var(--ui-bg); color: var(--ui-accent); }
.ab-slash-label { display: flex; flex-direction: column; font-weight: 600; font-size: 13.5px; }
.ab-slash-hint { color: var(--ui-muted); font-weight: 400; font-size: 12px; }
.ab-slash-foot { padding: 8px 8px 4px; border-top: 1px solid var(--ui-line); margin-top: 4px; color: var(--ui-faint); font-size: 11.5px; }
.ab-slash-section { padding: 8px 8px 3px; color: var(--ui-faint); font-size: 11.5px; font-weight: 600; }

/* Format bar */
.ab-bubble { position: fixed; z-index: 900; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: var(--ui-raised); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.ab-bubble button { display: flex; align-items: center; justify-content: center; width: 32px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--ui-text); }
.ab-bubble button:hover { background: var(--ui-hover); }
.ab-bubble button[aria-pressed='true'] { background: var(--ui-accent); color: var(--ui-accent-ink); }

/* Design panel, docked at the right: the pages stay visible and show every choice at once. */
.ab-design { position: fixed; z-index: 900; top: 56px; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(412px, 100vw); border-left: 1px solid var(--ui-line-strong); background: var(--ui-bar); box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35); }
.ab-design-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 2px 18px; }
.ab-design-head h2 { margin: 0; font: 700 17px/1.2 'Bricolage Grotesque', Inter, sans-serif; }
.ab-tabs { display: flex; gap: 4px; padding: 4px 14px 0; border-bottom: 1px solid var(--ui-line); }
.ab-tab { padding: 8px 10px 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ui-muted); font-weight: 600; }
.ab-tab:hover { color: var(--ui-text); }
.ab-tab[aria-selected='true'] { color: var(--ui-text); border-bottom-color: var(--ui-accent); }
.ab-design-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px 28px; }
.ab-design-note { margin: 0 0 12px; color: var(--ui-muted); font-size: 12.5px; line-height: 1.5; }
.ab-design-section { margin: 20px 0 10px; padding-top: 14px; border-top: 1px solid var(--ui-line); font: 600 12.5px/1.3 Inter, sans-serif; color: var(--ui-text); }
.ab-choice-group { margin: 0 0 14px; }
.ab-choice-label { margin: 0 0 6px; color: var(--ui-muted); font-size: 12px; font-weight: 600; }
.ab-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--ui-line); border-radius: 8px; background: #24211d; color: var(--ui-text); font-size: 12.5px; text-align: left; }
.ab-choice:hover { border-color: var(--ui-line-strong); background: var(--ui-raised); }
.ab-choice[aria-checked='true'], .ab-choice[aria-pressed='true'] { border-color: var(--ui-accent); background: rgba(228, 169, 79, 0.13); }
.ab-genres { margin: 0 0 14px; }
.ab-genre { min-height: 30px; padding: 3px 10px; }
.ab-link-button { padding: 0; border: 0; background: none; color: var(--ui-focus); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
/* Previews in the choices, drawn with the ornaments of the pages. A frame shows its top left corner at full size. */
.ab-pv-page { position: relative; flex: none; width: 52px; height: 40px; overflow: hidden; border-radius: 3px; background: #f4ecdb; }
.ab-pv-mask { position: absolute; left: 0; top: 0; width: 794px; height: 1123px; background: #3c3128; -webkit-mask: var(--pv) 0 0 / 794px 1123px no-repeat; mask: var(--pv) 0 0 / 794px 1123px no-repeat; }
.ab-pv-orn { flex: none; width: 44px; height: 16px; background: currentColor; -webkit-mask: var(--pv) center / contain no-repeat; mask: var(--pv) center / contain no-repeat; }
.ab-pv-rule { flex: none; width: 28px; height: 1.5px; background: currentColor; }
.ab-pv-mark { flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--pv) center / contain no-repeat; mask: var(--pv) center / contain no-repeat; }
.ab-pv-digit { flex: none; width: 20px; font-weight: 700; text-align: center; }
.ab-pv-color { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--pv-a) 0 50%, var(--pv-b) 50% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ab-pv-initial { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; font: 700 15px/1 Georgia, serif; }
.ab-pv-initial-none { font-size: 12px; font-weight: 400; }
.ab-pv-initial-plain { font-size: 20px; }
.ab-pv-initial-framed { border: 1px solid currentColor; }
.ab-pv-initial-filled { background: currentColor; color: #24211d; }
.ab-choice[aria-checked='true'] .ab-pv-initial-filled { color: #3a3024; }
body.ab-design-open .ab-desk { padding-right: 436px; }
body.ab-design-open .ab-pager { right: 434px; }
.ab-themes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ab-theme-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 2px solid var(--ui-line); border-radius: 10px; background: #24211d; text-align: left; }
.ab-theme-card:hover { border-color: var(--ui-line-strong); }
.ab-theme-card[aria-pressed='true'] { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(228, 169, 79, 0.22); }
.ab-theme-sample { display: flex; flex-direction: column; gap: 6px; height: 112px; padding: 12px; background: var(--s-paper); color: var(--s-ink); overflow: hidden; }
.ab-theme-kicker { font: 600 10px/1.2 Inter, sans-serif; color: var(--s-accent); letter-spacing: 0.04em; }
.ab-theme-title { font-family: var(--s-display); font-size: 18px; line-height: 1.12; font-weight: 700; }
.ab-theme-rule { width: 40px; height: 2px; background: var(--s-accent); box-shadow: 46px 0 0 var(--s-second); }
.ab-theme-lines { flex: 1; background: repeating-linear-gradient(var(--s-ink) 0 1px, transparent 1px 9px); opacity: 0.18; }
.ab-theme-meta { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; }
.ab-theme-name { font-weight: 600; font-size: 13px; color: var(--ui-text); }
.ab-theme-about { color: var(--ui-muted); font-size: 12px; line-height: 1.35; }

/* Info panel and toasts */
.ab-info { position: fixed; z-index: 950; top: 64px; right: 14px; width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 80px); overflow: auto; padding: 18px 18px 14px; border: 1px solid var(--ui-line-strong); border-radius: 14px; background: var(--ui-raised); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6); font-size: 13.5px; }
.ab-info h2 { margin: 0 0 10px; font: 700 17px/1.2 'Bricolage Grotesque', Inter, sans-serif; outline: none; }
.ab-info h3 { margin: 16px 0 6px; font-size: 13px; color: var(--ui-muted); }
.ab-info p, .ab-info ul { margin: 6px 0; color: #ddd5c8; line-height: 1.5; }
.ab-info ul { padding-left: 18px; }
.ab-info a { color: var(--ui-focus); }
.ab-info kbd { padding: 0 5px; border: 1px solid var(--ui-line-strong); border-radius: 4px; font: 500 12px/1.5 Inter, sans-serif; }
.ab-info-close { position: absolute; top: 10px; right: 10px; }
.ab-legal { display: flex; gap: 16px; }
.ab-toasts { position: fixed; z-index: 960; left: 50%; bottom: 22px; transform: translateX(-50%); }
.ab-toast { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border: 1px solid var(--ui-line-strong); border-radius: 10px; background: #2f2a24; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); font-size: 13.5px; }
.ab-toast button { padding: 5px 10px; border: 0; border-radius: 7px; background: var(--ui-hover); color: var(--ui-focus); font-weight: 600; }
.ab-noscript { margin: 48px auto; max-width: 40ch; text-align: center; }
.ab-keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.ab-keys th { padding: 4px 10px 4px 0; text-align: left; font-weight: 400; white-space: nowrap; color: var(--ui-muted); }
.ab-keys td { padding: 4px 0; color: #ddd5c8; }
.ab-keys tr + tr > * { border-top: 1px solid var(--ui-line); }

/* Dialogs: start (templates) and print guide. */
.ab-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 22px 24px 20px; border: 1px solid var(--ui-line-strong); border-radius: 16px; background: var(--ui-raised); color: var(--ui-text); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.ab-dialog::backdrop { background: rgba(14, 12, 10, 0.62); }
.ab-dialog h2 { margin: 0 0 8px; font: 700 21px/1.2 'Bricolage Grotesque', Inter, sans-serif; }
.ab-dialog-lead { margin: 0 0 16px; color: #ddd5c8; line-height: 1.5; }
.ab-dialog-note { margin: 14px 0 0; color: var(--ui-muted); font-size: 12.5px; line-height: 1.5; }
.ab-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ab-start-name { font-weight: 600; font-size: 14px; }
.ab-start-about { color: var(--ui-muted); font-size: 12.5px; line-height: 1.4; }
.ab-start-meta { margin-top: 4px; color: var(--ui-accent); font-size: 11.5px; font-weight: 600; }
.ab-steps { margin: 0; padding-left: 22px; line-height: 1.75; }
.ab-steps strong { color: var(--ui-text); }
.ab-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; color: #ddd5c8; }
.ab-check input { margin-top: 3px; accent-color: var(--ui-accent); }
/* Start assistant: three steps in one dialog. Every choice is a real page of its theme, without a card around it;
   the chosen one gets an amber ring with some air (Claude Design canvas, row "Start-Assistent"). */
.ab-wizard { width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; }
.ab-wizard[open] { display: flex; flex-direction: column; }
.ab-wizard-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding: 24px 32px 0; }
.ab-wizard-titles { display: flex; flex-direction: column; gap: 4px; }
.ab-wizard-head h2 { margin: 0; font-size: 26px; line-height: 1.15; }
.ab-wizard-count { display: none; color: var(--ui-muted); font-size: 13px; }
.ab-wizard-steps { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; color: var(--ui-faint); font-size: 13px; }
.ab-wizard-steps li { display: flex; align-items: center; gap: 8px; counter-increment: step; }
.ab-wizard-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--ui-line-strong); border-radius: 50%; font-size: 11.5px; }
.ab-wizard-steps .ab-current { color: var(--ui-text); font-weight: 600; }
.ab-wizard-steps .ab-current::before { border-color: var(--ui-accent); background: var(--ui-accent); color: var(--ui-accent-ink); }
.ab-wizard-steps .ab-done { color: var(--ui-muted); }
.ab-wizard-steps .ab-done::before { content: '✓'; border-color: var(--ui-ok); color: var(--ui-ok); }
.ab-wizard-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 32px 24px; }
.ab-wizard-body .ab-dialog-lead { max-width: 70ch; margin: 0 0 24px; font-size: 15px; }
.ab-wizard-actions { align-items: center; justify-content: flex-end; gap: 12px 24px; margin: 0; padding: 16px 32px 20px; border-top: 1px solid var(--ui-line); }
.ab-wizard-actions .ab-dialog-note { flex: 1 1 320px; max-width: 62ch; margin: 0; }
.ab-wizard-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-wizard .ab-primary, .ab-wizard .ab-secondary { min-height: 40px; padding: 0 16px; border-radius: 9px; }
.ab-wizard-pages { display: grid; grid-template-columns: repeat(var(--columns, 4), max-content); justify-content: start; gap: 30px; }
.ab-page-tile { display: flex; flex-direction: column; gap: 12px; width: min-content; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--ui-text); text-align: left; }
.ab-page-tile:focus-visible { outline: none; }
.ab-page-tile .ab-mini { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); outline: 2px solid transparent; outline-offset: 6px; transition: transform 140ms ease-out, box-shadow 140ms ease-out; }
.ab-page-tile:hover .ab-mini { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55); }
.ab-page-tile[aria-pressed='true'] .ab-mini, .ab-page-tile:focus-visible .ab-mini { outline-color: var(--ui-accent); }
.ab-page-caption { display: flex; flex-direction: column; gap: 3px; }
.ab-page-tile .ab-start-name { font-size: 15px; }
.ab-start-about { color: var(--ui-muted); font-size: 13px; line-height: 1.4; }
.ab-wizard-themes { gap: 22px 16px; }
.ab-wizard-themes .ab-page-tile { gap: 8px; }
.ab-wizard-themes .ab-start-name { font-size: 13px; line-height: 1.3; }
.ab-wizard-two { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 40px; align-items: start; }
.ab-wizard-two .ab-choice-label, .ab-wizard-group > .ab-choice-label { margin: 0 0 12px; font-size: 13px; }
.ab-skeleton-list { display: flex; flex-direction: column; gap: 8px; }
.ab-skeleton { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border: 1px solid var(--ui-line); border-radius: 9px; background: transparent; color: var(--ui-text); text-align: left; }
.ab-skeleton:hover, .ab-skeleton:focus-visible { border-color: var(--ui-accent); background: rgba(228, 169, 79, 0.08); }
.ab-wizard-group { margin-bottom: 24px; }
.ab-wizard-split { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 40px; align-items: start; }
.ab-wizard-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.ab-wizard-preview .ab-mini { box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5); }
.ab-wizard-preview .ab-dialog-note { max-width: 420px; margin: 0; }
.ab-radio-list { display: flex; flex-direction: column; gap: 6px; }
.ab-radio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; padding: 6px 14px 6px 40px; position: relative; border: 1px solid var(--ui-line); border-radius: 9px; background: transparent; color: var(--ui-text); text-align: left; }
.ab-radio::before { content: ''; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; box-sizing: border-box; border: 1.5px solid #6b6357; border-radius: 50%; }
.ab-radio:hover { border-color: var(--ui-line-strong); background: var(--ui-raised); }
.ab-radio[aria-checked='true'] { border-color: var(--ui-accent); background: rgba(228, 169, 79, 0.12); }
.ab-radio[aria-checked='true']::before { border: 4px solid var(--ui-accent); }
.ab-radio-name { min-width: 14em; font-weight: 600; }
.ab-radio-about { color: var(--ui-muted); font-size: 13px; }
.ab-wizard-title { display: flex; flex-direction: column; }
.ab-wizard-title .ab-choice-label { margin: 0 0 8px; font-size: 13px; }
.ab-wizard-title input { width: 100%; padding: 10px 12px; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: #191714; font-weight: 600; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .ab-page-tile .ab-mini { transition: none; } .ab-page-tile:hover .ab-mini { transform: none; } }
/* Phones: the assistant fills the screen, the buttons stay at the bottom. */
@media (max-width: 720px) {
  .ab-wizard { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .ab-wizard-head { flex-direction: column; align-items: stretch; padding: 20px 16px 12px; border-bottom: 1px solid var(--ui-line); }
  .ab-wizard-head h2 { font-size: 22px; }
  .ab-wizard-count { display: block; }
  .ab-wizard-steps { display: none; }
  .ab-wizard-body { padding: 14px 16px 18px; }
  .ab-wizard-body .ab-dialog-lead { margin-bottom: 18px; }
  .ab-wizard-pages { gap: 22px 16px; }
  .ab-wizard-two, .ab-wizard-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ab-wizard-preview { position: static; }
  .ab-radio-name { min-width: 0; }
  .ab-wizard-actions { padding: 12px 16px 16px; }
  .ab-wizard-actions .ab-dialog-note { display: none; }
  .ab-wizard-buttons, .ab-wizard-actions > .ab-secondary, .ab-wizard-actions > .ab-primary { flex: 1; }
  .ab-wizard-buttons > button { flex: 1; }
}

/* Dropping a file */
.ab-drop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; background: rgba(14, 12, 10, 0.72); pointer-events: none; }
.ab-drop p { padding: 28px 40px; border: 2px dashed var(--ui-accent); border-radius: 18px; color: var(--ui-text); font: 700 20px/1.2 'Bricolage Grotesque', Inter, sans-serif; }

/* Licence and error pages */
.ab-plain { height: auto; min-height: 100%; }
.ab-plain-main { max-width: 68ch; margin: 0 auto; padding: 56px 24px 72px; }
.ab-plain-main h1 { margin: 0 0 16px; font: 700 30px/1.15 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -0.01em; }
.ab-plain-main ul { padding-left: 20px; }
.ab-plain-main li { margin: 6px 0; }
.ab-plain-main a { color: var(--ui-accent); }

/* Labels that give way on narrow screens stay readable for screen readers. */
@media (max-width: 1180px) { .ab-tool-button span, .ab-theme-button small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .ab-tool-button { padding: 0 8px; } }
@media (max-width: 720px) {
  .ab-bar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .ab-brand-name, .ab-divider { display: none; }
  .ab-theme-button { padding: 4px; }
  .ab-theme-button > span:last-child, .ab-wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ab-doc { order: 10; flex: 1 1 100%; }
  .ab-title-input { flex: 1; width: auto; min-width: 0; max-width: none; }
  .ab-tools { gap: 0; }
  .ab-tool-button { margin-left: 2px; }
  .ab-primary { padding: 0 12px; }
  .ab-desk { padding: 16px 8px 88px; }
  .ab-pager { right: 50%; bottom: 12px; transform: translateX(50%); }
  .ab-toasts { bottom: 72px; width: calc(100vw - 24px); }
}
@media (max-width: 980px) {
  .ab-body { grid-template-columns: minmax(0, 1fr); }
  .ab-side { display: none; }
  .ab-badge, .ab-save { display: none; }
  body.ab-design-open .ab-desk { padding-right: 24px; }
  body.ab-design-open .ab-pager { right: 22px; }
}

/* Print: the pages and nothing else, exactly one sheet per page. */
@page { size: 210mm 297mm; margin: 0; }
@media print {
  html, body { height: auto; background: #fff; }
  .ab-app, .ab-body { display: block; height: auto; }
  .ab-bar, .ab-side, .ab-pager, .ab-handle, .ab-bubble, .ab-slash, .ab-menu, .ab-design, .ab-dialog, .ab-drop, .ab-info, .ab-toasts { display: none !important; }
  body.ab-design-open .ab-desk { padding: 0; }
  .ab-desk { padding: 0; overflow: visible; background: none; }
  .ab-zoom { --page-h: 297mm; --sheet-gap: 0px; --zoom: 1; margin: 0; }
  .ab-canvas { transform: none !important; }
  .ab-page { box-shadow: none; }
  .ab-flow > .ab-overflow, .ab-flow .ProseMirror-selectednode { outline: none; }
  .ab-placeholder { display: none; }
}

/* The anatomy every theme shares: each block is built once here from theme tokens. A theme sets the tokens and adds
   its signature (ornaments, chapter opener, frames); it never needs to rebuild a block from scratch. */
.ab-canvas {
  --paper: #fff; --ink: #222; --muted: #666; --accent: #a33; --accent-2: #335; --rule: #bbb; --rule-light: #ddd;
  --tint: #f3f0ea; --cell: #faf8f4; --on-accent: #fff;
  --font-text: Georgia, serif; --font-display: var(--font-text); --font-label: var(--font-text); --font-mono: ui-monospace, monospace;
  --text-size: 14px; --text-leading: 20px;
  counter-reset: ort chapter rn;
  color: var(--ink); font-family: var(--font-text); font-size: var(--text-size); line-height: var(--text-leading);
  font-kerning: normal; font-variant-ligatures: common-ligatures; hyphens: auto; -webkit-hyphens: auto;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.ab-page { background: var(--paper); }
.ab-head { position: absolute; left: var(--body-left); right: var(--body-right); top: 40px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--font-label); font-size: 12px; line-height: 18px; color: var(--muted); }
.ab-foot { position: absolute; left: var(--body-left); right: var(--body-right); bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 16px; font-family: var(--font-label); font-size: 12px; color: var(--muted); }
.ab-foot-title, .ab-foot-chapter { display: none; }
.ab-folio { color: var(--ink); font-weight: 600; }

/* Spacing between blocks: collapses like margins and vanishes at the top of a column (read by the layout engine). */
.ab-paragraph { --space-before: 10px; --space-after: 10px; }
.ab-location { --space-before: 22px; --space-after: 8px; }
.ab-read { --space-before: 8px; --space-after: 10px; }
.ab-table, .ab-stat, .ab-gm, .ab-card, .ab-clues, .ab-clock { --space-before: 18px; --space-after: 18px; }
.ab-chapter { --space-before: 0px; --space-after: 24px; }

/* Text */
.ab-paragraph { hyphens: auto; }
.ab-paragraph > strong:first-child { color: var(--accent); }
.ab-paragraph > em:only-child { color: var(--muted); }
.ab-chapter { counter-increment: chapter; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 50px; hyphens: manual; }
.ab-chapter::before { content: attr(data-kicker); display: block; margin-bottom: 2px; font-family: var(--font-label); font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: 0.06em; color: var(--accent); }
.ab-location { counter-increment: ort; display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 26px; hyphens: manual; }
.ab-location::before { content: counter(ort); flex: none; color: var(--accent); }
.ab-read { padding: 8px 6px 9px 16px; border-left: 3px solid var(--accent); font-style: italic; font-size: calc(var(--text-size) + 0.5px); line-height: calc(var(--text-leading) + 1px); hyphens: manual; }
.ab-read strong { font-weight: inherit; color: var(--accent); }
.ab-gm { padding: 8px 0 9px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.ab-gm-label { display: block; margin-bottom: 2px; font-family: var(--font-label); font-weight: 700; font-size: 12.5px; line-height: 18px; color: var(--accent); user-select: none; }
.ab-gm-text { margin: 0; }

/* Die table */
.ab-table-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 3px; border-bottom: 1.5px solid var(--accent); user-select: none; }
.ab-table-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 20px; }
.ab-table-die { font-family: var(--font-label); font-weight: 700; font-size: 13px; color: var(--accent); }
.ab-table-rows { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.ab-table-rows > li { position: relative; padding: 3px 2px 2px 26px; border-bottom: 0.75px solid var(--rule-light); font-size: calc(var(--text-size) - 0.5px); line-height: 19px; hyphens: manual; }
.ab-table-rows > li::before { counter-increment: row; content: counter(row); position: absolute; left: 2px; top: 3px; width: 16px; text-align: center; font-family: var(--font-label); font-weight: 700; color: var(--accent-2); }

/* Person and encounter */
.ab-card { padding-top: 6px; border-top: 2px solid var(--ink); }
.ab-card-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; hyphens: manual; }
.ab-card-title::before { display: block; font-family: var(--font-label); font-weight: 700; font-size: 11.5px; line-height: 16px; letter-spacing: 0.04em; color: var(--accent); }
.ab-card-person .ab-card-title::before { content: 'Person'; }
.ab-card-encounter .ab-card-title::before { content: 'Begegnung'; }
.ab-card-field { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 10px; padding: 3px 0; font-size: calc(var(--text-size) - 0.5px); line-height: 19px; }
.ab-card-label { font-family: var(--font-label); font-weight: 700; font-size: 12px; color: var(--muted); user-select: none; }

/* What the group can find out */
.ab-clues { padding: 8px 0 4px; border-top: 2px solid var(--accent); }
.ab-clues-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--font-label); font-weight: 700; font-size: 12.5px; line-height: 18px; user-select: none; }
.ab-clues-count { color: var(--accent); font-weight: 600; }
.ab-clues-conclusion { margin: 4px 0 6px; font-style: italic; }
.ab-clue { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; padding: 4px 0; border-top: 0.75px dotted var(--rule); font-size: calc(var(--text-size) - 0.5px); line-height: 18px; }
.ab-clue-box { width: 12px; height: 12px; margin-top: 3px; border: 1.3px solid var(--ink); cursor: pointer; user-select: none; }
.ab-clue[data-found='true'] .ab-clue-box { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--paper); }
.ab-clue[data-found='true'] .ab-clue-text { color: var(--muted); }

/* Progress clock */
.ab-clock { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 8px 10px; border: 1px solid var(--ink); }
.ab-clock-dial svg { display: block; cursor: pointer; }
.ab-clock-seg { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.ab-clock-seg:hover { fill: var(--tint); }
.ab-clock-on, .ab-clock-on:hover { fill: var(--accent); }
.ab-clock-ring { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.ab-clock-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 20px; }

/* Statistics */
.ab-stat { background: var(--tint); border-top: 3px double var(--accent-2); border-bottom: 3px double var(--accent-2); font-size: 13px; line-height: 17px; hyphens: manual; }
.ab-stat-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 12px; padding: 7px 0 5px; border-bottom: 1px solid var(--accent-2); color: var(--accent-2); }
.ab-stat-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 22px; }
.ab-stat-cr { font-family: var(--font-label); font-weight: 700; font-size: 13px; }
.ab-stat-body { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 10px; }
.ab-stat-type { margin: 0; font-style: italic; color: var(--muted); }
.ab-stat-core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.ab-stat-core > div { padding: 3px 6px 4px; border-left: 2px solid var(--accent-2); background: var(--cell); }
.ab-stat-core dt { font-size: 11px; line-height: 13px; font-weight: 700; color: var(--accent-2); }
.ab-stat-core dd { margin: 0; }
.ab-stat-abilities { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0; text-align: center; }
.ab-stat-abilities > div { padding: 3px 0 4px; border-top: 2px solid var(--accent); background: var(--cell); }
.ab-stat-abilities dt { font-size: 11px; line-height: 13px; font-weight: 700; color: var(--accent); }
.ab-stat-abilities dd { margin: 0; }
.ab-stat-score { font-size: 14.5px; line-height: 18px; font-weight: 700; }
.ab-stat-mod { font-size: 11.5px; line-height: 14px; color: var(--muted); }
.ab-stat-lines p, .ab-stat-section p { margin: 0 0 2px; }
.ab-stat-section h4 { margin: 0 0 3px; padding-bottom: 1px; border-bottom: 1px solid var(--rule); font-family: var(--font-label); font-size: 12.5px; font-weight: 700; color: var(--accent-2); }
.ab-stat-section strong { font-style: italic; }
.ab-stat-track { padding-top: 7px; border-top: 1px solid var(--rule); }
.ab-stat-track-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-family: var(--font-label); font-size: 12.5px; font-weight: 700; color: var(--accent-2); }
.ab-stat-source { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.ab-stat-track-rows { display: flex; justify-content: space-between; }
.ab-stat-track-row { display: flex; align-items: center; gap: 2px; }
.ab-stat-track-n { width: 13px; font-weight: 800; color: var(--accent); }
.ab-stat-box { width: 9px; height: 9px; border: 1px solid var(--accent-2); background: var(--paper); }
.ab-stat-empty { margin: 0; padding: 12px; color: var(--muted); }

/* Ornaments: generated by the build from src/autor-site/ornaments.mjs (own drawings, single colour, used as masks). */
:root {
  --o-flourish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20' viewBox='102 0 96 20'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M116 10c7-8 15-8 20-2 3 3 6 3 8 0M184 10c-7-8-15-8-20-2-3 3-6 3-8 0M116 10c7 8 15 8 20 2 3-3 6-3 8 0M184 10c-7 8-15 8-20 2-3-3-6-3-8 0'/%3E%3Ccircle cx='110' cy='10' r='1.4'/%3E%3Ccircle cx='190' cy='10' r='1.4'/%3E%3C/svg%3E");
  --o-knot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='20' viewBox='298 0 70 20'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.9' d='M304 10c8-7 16-7 22 0M362 10c-8-7-16-7-22 0M304 10c8 7 16 7 22 0M362 10c-8 7-16 7-22 0'/%3E%3Cpath d='M333 4l5 6-5 6-5-6z'/%3E%3C/svg%3E");
  --o-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Ccircle cx='12' cy='6' r='1.9'/%3E%3Ccircle cx='24' cy='6' r='1.9'/%3E%3Ccircle cx='36' cy='6' r='1.9'/%3E%3C/svg%3E");
  --o-asterism: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.3'%3E%3Cpath d='M20 2.5v7M17 4.2l6 3.6M23 4.2l-6 3.6'/%3E%3Cpath d='M12 13.5v7M9 15.2l6 3.6M15 15.2l-6 3.6'/%3E%3Cpath d='M28 13.5v7M25 15.2l6 3.6M31 15.2l-6 3.6'/%3E%3C/g%3E%3C/svg%3E");
  --o-lozenge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M22 1.5l5.5 5.5-5.5 5.5-5.5-5.5z'/%3E%3Ccircle cx='8' cy='7' r='1.5'/%3E%3Ccircle cx='36' cy='7' r='1.5'/%3E%3C/svg%3E");
  --o-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16'%3E%3Cpath d='M32 1.5l1.9 4.3 4.6.4-3.5 3 1.1 4.6L32 11.4l-4.1 2.4 1.1-4.6-3.5-3 4.6-.4z'/%3E%3Cpath d='M12 4.5l1.3 2.9 3.1.3-2.4 2 .8 3.1L12 11.2l-2.8 1.6.8-3.1-2.4-2 3.1-.3z'/%3E%3Cpath d='M52 4.5l1.3 2.9 3.1.3-2.4 2 .8 3.1L52 11.2l-2.8 1.6.8-3.1-2.4-2 3.1-.3z'/%3E%3C/svg%3E");
  --o-sunburst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='56' viewBox='0 0 300 56'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.8'%3E%3Cpath d='M150 52L78 6M150 52L100 3M150 52L124 1M150 52L150 0M150 52L176 1M150 52L200 3M150 52L222 6'/%3E%3Cpath d='M60 52V46H70V40H80M240 52V46H230V40H220'/%3E%3C/g%3E%3C/svg%3E");
  --o-dimension: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'%3E%3Cpath d='M4 7h112M4 2.5v9M116 2.5v9M60 3.5v7'/%3E%3C/g%3E%3Cpath d='M4 7l7-2.6v5.2zM116 7l-7-2.6v5.2z'/%3E%3C/svg%3E");
  --o-brackets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='14' viewBox='0 0 72 14'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'%3E%3Cpath d='M10 2.5H5.5L3 5v4l2.5 2.5H10M62 2.5h4.5L69 5v4l-2.5 2.5H62'/%3E%3C/g%3E%3Cpath d='M22 6h28v2H22z'/%3E%3C/svg%3E");
  --o-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20' viewBox='0 0 96 20'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M8 10H88'/%3E%3Cpath d='M38 10C35 5 29 3 23 4c3 4 8 6 15 6zM38 10c-3 5-9 7-15 6 3-4 8-6 15-6zM58 10c3-5 9-7 15-6-3 4-8 6-15 6zM58 10c3 5 9 7 15 6-3-4-8-6-15-6z'/%3E%3Ccircle cx='48' cy='10' r='2.6'/%3E%3C/svg%3E");
  --o-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24' viewBox='0 0 60 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.1' d='M15 22V13C15 8 21 4 30 1.5 39 4 45 8 45 13v9M22 22v-7c0-3 3-5.5 8-7.5 5 2 8 4.5 8 7.5v7M4 22h52'/%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.9'%3E%3Ccircle cx='28.2' cy='15.4' r='1.7'/%3E%3Ccircle cx='31.8' cy='15.4' r='1.7'/%3E%3Ccircle cx='30' cy='12.4' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
  --o-rope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.1'%3E%3Cpath d='M6 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M15 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M24 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M33 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M42 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M51 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M60 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M69 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M78 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M87 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M96 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M105 10.5c2-5 5-8.5 9-9'/%3E%3Cpath d='M4 10.5h112M4 1.5h112' stroke-width='0.7'/%3E%3C/g%3E%3C/svg%3E");
  --o-rivets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M4 6h88'/%3E%3Ccircle cx='12' cy='6' r='2.6'/%3E%3Ccircle cx='30' cy='6' r='2.6'/%3E%3Ccircle cx='48' cy='6' r='2.6'/%3E%3Ccircle cx='66' cy='6' r='2.6'/%3E%3Ccircle cx='84' cy='6' r='2.6'/%3E%3C/svg%3E");
  --o-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='14' viewBox='0 0 96 14'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2' d='M4 9c6-6 10-6 14 0s8 6 14 0 10-6 14 0 8 6 14 0 10-6 14 0 8 6 14 0'/%3E%3C/svg%3E");
  --o-notches: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='14' viewBox='0 0 60 14'%3E%3Cpath d='M11 3h10l-5 8zM25 3h10l-5 8zM39 3h10l-5 8z'/%3E%3C/svg%3E");
  --o-orbit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='20' viewBox='0 0 90 20'%3E%3Cellipse cx='45' cy='10' rx='38' ry='6' fill='none' stroke='%23000' stroke-width='0.9'/%3E%3Cpath d='M7 6.6L7.71 9.29L10.4 10L7.71 10.71L7 13.4L6.29 10.71L3.6 10L6.29 9.29ZM45 -0.4L45.85 3.15L49.4 4L45.85 4.85L45 8.4L44.15 4.85L40.6 4L44.15 3.15ZM80 10.1L80.71 12.79L83.4 13.5L80.71 14.21L80 16.9L79.29 14.21L76.6 13.5L79.29 12.79Z'/%3E%3C/svg%3E");
  --o-sample: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='44' height='14' fill='%23fff'/%3E%3Ccircle cx='13.5' cy='7' r='1.6' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M10 2h22l6 5-6 5H10z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.9' d='M2 7h8'/%3E%3C/svg%3E");
  --o-register: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Cpath d='M12 1v22M1 12h22'/%3E%3C/g%3E%3C/svg%3E");
  --o-zero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'%3E%3Cpath d='M3 6h10M27 6h10'/%3E%3Ccircle cx='20' cy='6' r='3.8'/%3E%3C/g%3E%3C/svg%3E");
  --o-stations: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='14' viewBox='0 0 72 14'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='72' height='14' fill='%23fff'/%3E%3Ccircle cx='14' cy='7' r='2' fill='%23000'/%3E%3Ccircle cx='36' cy='7' r='2' fill='%23000'/%3E%3Ccircle cx='58' cy='7' r='2' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url%28%23m%29'%3E%3Cpath d='M3 6h66v2H3z'/%3E%3Ccircle cx='14' cy='7' r='4.4'/%3E%3Ccircle cx='36' cy='7' r='4.4'/%3E%3Ccircle cx='58' cy='7' r='4.4'/%3E%3C/g%3E%3C/svg%3E");
  --o-chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='16' viewBox='0 0 54 16'%3E%3Cpath d='M8 2l9 6-9 6H3l9-6-9-6zM23 2l9 6-9 6h-5l9-6-9-6zM38 2l9 6-9 6h-5l9-6-9-6z'/%3E%3C/svg%3E");
  --o-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='64' height='18' fill='%23fff'/%3E%3Ccircle cx='11' cy='9' r='3.2' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M11 2.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 1 1 0-13zM17 8h40v2H17zM46 10h3v5h-3zM52 10h3v3.5h-3z'/%3E%3C/svg%3E");
  --o-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='30' height='34' fill='%23fff'/%3E%3Cpath d='M15 4.5l9.5 3.6v7.4c0 6.3-4.1 10.9-9.5 13.9-5.4-3-9.5-7.6-9.5-13.9V8.1z' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M15 1.5l12 4.5v9.5c0 7.8-5.2 13.4-12 17-6.8-3.6-12-9.2-12-17V6z'/%3E%3C/svg%3E");
  --o-rhombus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='34' height='34' fill='%23fff'/%3E%3Cpath d='M17 5l12 12-12 12L5 17z' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M17 1l16 16-16 16L1 17z'/%3E%3C/svg%3E");
  --o-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='40' height='40' fill='%23fff'/%3E%3Ccircle cx='20' cy='15.5' r='7.2' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M20 1l4.2 9.4 10.3 1-7.8 6.8 2.4 10.1L20 23l-9.1 5.3 2.4-10.1L5.5 11.4l10.3-1z'/%3E%3C/svg%3E");
  --o-roundel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='30' height='30' fill='%23fff'/%3E%3Ccircle cx='15' cy='15' r='11.6' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle mask='url%28%23m%29' cx='15' cy='15' r='14'/%3E%3C/svg%3E");
  --o-hexagon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='30' viewBox='0 0 32 30'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='32' height='30' fill='%23fff'/%3E%3Cpath d='M10.3 4.5h11.4l5.7 10.5-5.7 10.5H10.3L4.6 15z' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M8.5 1.5h15L31 15l-7.5 13.5h-15L1 15z'/%3E%3C/svg%3E");
  --o-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='26' viewBox='0 0 34 26'%3E%3Cpath d='M7 1h26v17l-7 7H1V8z'/%3E%3C/svg%3E");
  --o-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' cx='13' cy='13' r='11.6'/%3E%3C/svg%3E");
  --o-keystone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='32' height='32' fill='%23fff'/%3E%3Cpath d='M7.5 6.3h17l-3.9 19.4h-9.2z' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M3 3h26l-5.2 26H8.2z'/%3E%3C/svg%3E");
  --o-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='36' height='36' fill='%23fff'/%3E%3Ccircle cx='18' cy='18' r='7.6' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M18 0.5L20.37 12.27L26.13 9.87L23.73 15.63L35.5 18L23.73 20.37L26.13 26.13L20.37 23.73L18 35.5L15.63 23.73L9.87 26.13L12.27 20.37L0.5 18L12.27 15.63L9.87 9.87L15.63 12.27Z'/%3E%3C/svg%3E");
  --o-seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='32' height='32' fill='%23fff'/%3E%3Ccircle cx='16' cy='16' r='10.4' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M29.4 16A2.6 2.6 0 0 1 28.59 20.58A2.6 2.6 0 0 1 26.26 24.61A2.6 2.6 0 0 1 22.7 27.6A2.6 2.6 0 0 1 18.33 29.2A2.6 2.6 0 0 1 13.67 29.2A2.6 2.6 0 0 1 9.3 27.6A2.6 2.6 0 0 1 5.74 24.61A2.6 2.6 0 0 1 3.41 20.58A2.6 2.6 0 0 1 2.6 16A2.6 2.6 0 0 1 3.41 11.42A2.6 2.6 0 0 1 5.74 7.39A2.6 2.6 0 0 1 9.3 4.4A2.6 2.6 0 0 1 13.67 2.8A2.6 2.6 0 0 1 18.33 2.8A2.6 2.6 0 0 1 22.7 4.4A2.6 2.6 0 0 1 26.26 7.39A2.6 2.6 0 0 1 28.59 11.42A2.6 2.6 0 0 1 29.4 16Z'/%3E%3C/svg%3E");
  --o-oval: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='28' viewBox='0 0 38 28'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='38' height='28' fill='%23fff'/%3E%3Cellipse cx='19' cy='14' rx='14.6' ry='10' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cellipse mask='url%28%23m%29' cx='19' cy='14' rx='18' ry='13'/%3E%3C/svg%3E");
  --o-label: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='24' viewBox='0 0 38 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='38' height='24' fill='%23fff'/%3E%3Cpath d='M7 4h24l3 3v10l-3 3H7l-3-3V7z' fill='none' stroke='%23000' stroke-width='0.8'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M5.5 1h27L37 5.5v13L32.5 23h-27L1 18.5v-13z'/%3E%3C/svg%3E");
  --o-stencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12.6' fill='none' stroke='%23000' stroke-width='4.2' stroke-dasharray='16.8 3' stroke-dashoffset='8.4'/%3E%3C/svg%3E");
  --o-stamp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26' viewBox='0 0 40 26'%3E%3Cg fill='none' stroke='%23000'%3E%3Crect x='1.5' y='1.5' width='37' height='23' stroke-width='2'/%3E%3Crect x='5' y='5' width='30' height='16' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
  --o-station: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26' viewBox='0 0 40 26'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='40' height='26' fill='%23fff'/%3E%3Ccircle cx='20' cy='13' r='8.6' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M0 11.6h40v2.8H0z'/%3E%3Ccircle cx='20' cy='13' r='10.4' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E");
  --o-star5: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 .5l1.3 3 3.2.3-2.4 2.1.7 3.1L5 7.4 2.2 9l.7-3.1L.5 3.8l3.2-.3z'/%3E%3C/svg%3E");
  --o-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1l1.3 4.7L13 7l-4.7 1.3L7 13 5.7 8.3 1 7l4.7-1.3z'/%3E%3C/svg%3E");
  --o-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1.5l3.5 3.5-3.5 3.5-3.5-3.5z'/%3E%3C/svg%3E");
  --o-step-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M0.5 13V0.5H13M4 9V4H9'/%3E%3C/svg%3E");
  --o-fork: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M0 5H38M38 5V1H44M38 5V9H44'/%3E%3C/svg%3E");
  --o-swords: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M4 4l9 9M11.5 14.5l3-3M16 4l-9 9M8.5 14.5l-3-3M4 16l2.2-2.2M16 16l-2.2-2.2'/%3E%3C/svg%3E");
  --o-figure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM4.5 16c.8-2.8 2.9-4 5.5-4s4.7 1.2 5.5 4'/%3E%3C/svg%3E");
  --o-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='M1 4h6v8H1z'/%3E%3Cpath d='M7 4.2C10 3.2 12.5 3.2 14.5 4H25.5C27.2 4 27.2 6.8 25.5 6.8H16.5C17.6 7.2 17.6 8.6 16.4 8.9C17.4 9.3 17.2 10.7 16 10.9C16.8 11.4 16.4 12.6 15.2 12.6H10C8.6 12.6 7.6 12.2 7 11.8Z'/%3E%3C/svg%3E");
  --o-head-vault: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='46' viewBox='0 0 220 46'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1'%3E%3Cpath d='M70 45A40 40 0 0 1 150 45M82 45A28 28 0 0 1 138 45M2 45.5H66M154 45.5H218'/%3E%3Cpath stroke-width='0.9' d='M82 45L70 45M84.13 34.28L73.04 29.69M90.2 25.2L81.72 16.72M99.28 19.13L94.69 8.04M120.72 19.13L125.31 8.04M129.8 25.2L138.28 16.72M135.87 34.28L146.96 29.69M138 45L150 45'/%3E%3C/g%3E%3Cpath d='M112.72 19.14L116.88 1.54L103.12 1.54L107.28 19.14Z'/%3E%3Cpath d='M30 42h6v3h-6zM184 42h6v3h-6z'/%3E%3C/svg%3E");
  --o-head-fern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='40' viewBox='0 0 220 40'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M110 20C80 20 50 22 14 18M110 20C140 20 170 22 206 18'/%3E%3Cpath d='M98 20Q88.97 19.09 86.51 10.36Q95.53 11.27 98 20ZM86.5 20Q84.28 27.86 76.16 28.68Q78.38 20.82 86.5 20ZM75 20Q67.78 19.27 65.81 12.29Q73.02 13.01 75 20ZM63.5 20Q61.77 26.1 55.46 26.75Q57.19 20.64 63.5 20ZM52 20Q46.58 19.45 45.11 14.21Q50.52 14.77 52 20ZM40.5 20Q39.27 24.36 34.75 24.82Q35.99 20.46 40.5 20ZM29 20Q25.39 19.63 24.4 16.14Q28.01 16.51 29 20ZM17.5 20Q16.76 22.62 14.05 22.89Q14.8 20.28 17.5 20ZM122 20Q124.47 11.27 133.49 10.36Q131.03 19.09 122 20ZM133.5 20Q141.62 20.82 143.84 28.68Q135.72 27.86 133.5 20ZM145 20Q146.98 13.01 154.19 12.29Q152.22 19.27 145 20ZM156.5 20Q162.81 20.64 164.54 26.75Q158.23 26.1 156.5 20ZM168 20Q169.48 14.77 174.89 14.21Q173.42 19.45 168 20ZM179.5 20Q184.01 20.46 185.25 24.82Q180.73 24.36 179.5 20ZM191 20Q191.99 16.51 195.6 16.14Q194.61 19.63 191 20ZM202.5 20Q205.2 20.28 205.95 22.89Q203.24 22.62 202.5 20Z'/%3E%3Ccircle cx='110' cy='20' r='3.4'/%3E%3C/svg%3E");
  --o-head-seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='46' viewBox='0 0 220 46'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='220' height='46' fill='%23fff'/%3E%3Ccircle cx='110' cy='19' r='10.5' fill='none' stroke='%23000' stroke-width='0.9'/%3E%3Cpath d='M106 15h8v8h-8z' fill='none' stroke='%23000' stroke-width='0.9'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M125 19A2.6 2.6 0 0 1 124.1 24.13A2.6 2.6 0 0 1 121.49 28.64A2.6 2.6 0 0 1 117.5 31.99A2.6 2.6 0 0 1 112.6 33.77A2.6 2.6 0 0 1 107.4 33.77A2.6 2.6 0 0 1 102.5 31.99A2.6 2.6 0 0 1 98.51 28.64A2.6 2.6 0 0 1 95.9 24.13A2.6 2.6 0 0 1 95 19A2.6 2.6 0 0 1 95.9 13.87A2.6 2.6 0 0 1 98.51 9.36A2.6 2.6 0 0 1 102.5 6.01A2.6 2.6 0 0 1 107.4 4.23A2.6 2.6 0 0 1 112.6 4.23A2.6 2.6 0 0 1 117.5 6.01A2.6 2.6 0 0 1 121.49 9.36A2.6 2.6 0 0 1 124.1 13.87A2.6 2.6 0 0 1 125 19ZM100 31L88 45L94 41L97 46L106 33ZM120 31L132 45L126 41L123 46L114 33Z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.9' d='M8 19H84M136 19H212'/%3E%3Cpath d='M8 19l4-3 4 3-4 3zM212 19l-4-3-4 3 4 3z'/%3E%3C/svg%3E");
  --o-head-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='0.6' d='M120 24L260 24M120 24L-20 24M120 24L258.64 4.52M120 24L-18.64 4.52M120 24L254.58 -14.59M120 24L-14.58 -14.59M120 24L258.64 43.48M120 24L-18.64 43.48M120 24L254.58 62.59M120 24L-14.58 62.59'/%3E%3Ccircle cx='120' cy='24' r='15' stroke-width='1'/%3E%3C/g%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='240' height='48' fill='%23fff'/%3E%3Ccircle cx='120' cy='24' r='2.2' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M120 2L121.68 19.93L128.84 15.16L124.07 22.32L142 24L124.07 25.68L128.84 32.84L121.68 28.07L120 46L118.32 28.07L111.16 32.84L115.93 25.68L98 24L115.93 22.32L111.16 15.16L118.32 19.93Z'/%3E%3C/svg%3E");
  --o-head-window: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='54' viewBox='0 0 220 54'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='1.2' d='M80 53V31C80 15 96 5 110 1.5 124 5 140 15 140 31v22'/%3E%3Cpath stroke-width='0.9' d='M87 53V36c0-7 5-12 10.5-14 5.5 2 10.5 7 10.5 14v17M112 53V36c0-7 5-12 10.5-14 5.5 2 10.5 7 10.5 14v17'/%3E%3Cg stroke-width='0.8'%3E%3Ccircle cx='106.6' cy='15' r='3'/%3E%3Ccircle cx='113.4' cy='15' r='3'/%3E%3Ccircle cx='110' cy='11.6' r='3'/%3E%3Ccircle cx='110' cy='18.4' r='3'/%3E%3C/g%3E%3Cpath stroke-width='0.9' d='M4 53.4H76M144 53.4H216M76 53.4h68'/%3E%3C/g%3E%3C/svg%3E");
  --o-head-planet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='240' height='48' fill='%23fff'/%3E%3Cellipse cx='120' cy='26' rx='27' ry='6.5' transform='rotate%28-14 120 26%29' fill='none' stroke='%23000' stroke-width='3.4'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle mask='url%28%23m%29' cx='120' cy='26' r='11.5'/%3E%3Cellipse cx='120' cy='26' rx='27' ry='6.5' transform='rotate%28-14 120 26%29' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Cellipse cx='120' cy='26' rx='112' ry='15' fill='none' stroke='%23000' stroke-width='0.6'/%3E%3Ccircle cx='22' cy='34.8' r='2.6'/%3E%3Ccircle cx='214' cy='18' r='2'/%3E%3Cpath d='M48 5L48.78 8.22L52 9L48.78 9.78L48 13L47.22 9.78L44 9L47.22 8.22ZM186 36.6L186.71 39.29L189.4 40L186.71 40.71L186 43.4L185.29 40.71L182.6 40L185.29 39.29ZM168 4.4L168.57 6.43L170.6 7L168.57 7.57L168 9.6L167.43 7.57L165.4 7L167.43 6.43ZM66 39.4L66.57 41.43L68.6 42L66.57 42.57L66 44.6L65.43 42.57L63.4 42L65.43 41.43Z'/%3E%3C/svg%3E");
  --o-head-flask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='46' viewBox='0 0 220 46'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='220' height='46' fill='%23fff'/%3E%3Ccircle cx='106' cy='34' r='2.2' fill='%23000'/%3E%3Ccircle cx='113' cy='37' r='1.6' fill='%23000'/%3E%3Ccircle cx='110' cy='29' r='1.4' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.1' d='M104 3h12M106 3v13L95 40c-1 3 0 5 3 5h24c3 0 4-2 3-5L114 16V3'/%3E%3Cpath mask='url%28%23m%29' d='M99.5 30h21L124 40c.6 1.6 0 3-2 3H98c-2 0-2.6-1.4-2-3z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.8' d='M6 44.5H88M132 44.5H214M10 44.5v-6M210 44.5v-6M19.5 44.5v-3M200.5 44.5v-3M29 44.5v-6M191 44.5v-6M38.5 44.5v-3M181.5 44.5v-3M48 44.5v-6M172 44.5v-6M57.5 44.5v-3M162.5 44.5v-3M67 44.5v-6M153 44.5v-6M76.5 44.5v-3M143.5 44.5v-3M86 44.5v-6M134 44.5v-6'/%3E%3C/svg%3E");
  --o-head-bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='42' viewBox='0 0 200 42'%3E%3Cpath d='M58 30h8v10h-8zM71 26h8v14h-8zM84 28h8v12h-8zM97 21h8v19h-8zM110 16h8v24h-8zM123 18h8v22h-8zM136 9h8v31h-8z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.8' d='M50 40.5H150M4 40.5H44M156 40.5H196'/%3E%3C/svg%3E");
  --o-head-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='28' viewBox='0 0 240 28'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='240' height='28' fill='%23fff'/%3E%3Ccircle cx='120' cy='14' r='5' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url%28%23m%29'%3E%3Cpath d='M8 12.2h224v3.6H8z'/%3E%3Cpath d='M32.8 6h2.4v8h-2.4z'/%3E%3Cpath d='M60.8 6h2.4v8h-2.4z'/%3E%3Cpath d='M88.8 6h2.4v8h-2.4z'/%3E%3Cpath d='M148.8 6h2.4v8h-2.4z'/%3E%3Cpath d='M176.8 6h2.4v8h-2.4z'/%3E%3Cpath d='M204.8 6h2.4v8h-2.4z'/%3E%3Ccircle cx='120' cy='14' r='8.6'/%3E%3C/g%3E%3Ccircle cx='8' cy='14' r='4.4'/%3E%3Ccircle cx='232' cy='14' r='4.4'/%3E%3C/svg%3E");
  --o-head-wire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='22' viewBox='0 0 240 22'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='1.1' d='M8 11c10-4 20 4 30 0s20-4 30 0 20 4 30 0 20-4 30 0 20 4 30 0 20-4 30 0 20 4 30 0M8 11c10 4 20-4 30 0s20 4 30 0 20-4 30 0 20 4 30 0 20-4 30 0 20 4 30 0 20-4 30 0'/%3E%3Cpath stroke-width='1.2' d='M34 7l8 8M42 7l-8 8M64 7l8 8M72 7l-8 8M94 7l8 8M102 7l-8 8M124 7l8 8M132 7l-8 8M154 7l8 8M162 7l-8 8M184 7l8 8M192 7l-8 8'/%3E%3C/g%3E%3Cpath d='M3 3h5v16H3zM232 3h5v16h-5z'/%3E%3C/svg%3E");
  --o-torch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 10.5c-3-1.4-3.4-4.4-.6-8.5.2 2.4 3.4 3 3.4 5.6 0 1.8-1.2 3-2.8 2.9z'/%3E%3Cpath d='M7.6 11.6h4.8l-1.3 7.4H8.9z'/%3E%3C/svg%3E");
  --o-leaf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='%23fff'/%3E%3Cpath d='M5 16L15 5' stroke='%23000' stroke-width='1'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M4 17Q6.23 7.35 15.81 4.77Q13.57 14.43 4 17Z'/%3E%3C/svg%3E");
  --o-anchor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'%3E%3Ccircle cx='10' cy='3.6' r='1.8'/%3E%3Cpath d='M10 5.4V18M6.4 8.4h7.2M3.4 12.4c0 3.2 3 5.6 6.6 5.6s6.6-2.4 6.6-5.6'/%3E%3C/g%3E%3Cpath d='M2 13.6l1.4-3 1.9 2.6zM18 13.6l-1.4-3-1.9 2.6z'/%3E%3C/svg%3E");
  --o-signal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='4.5' cy='15.5' r='2'/%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'%3E%3Cpath d='M4.5 10a5.5 5.5 0 0 1 5.5 5.5M4.5 5.5a10 10 0 0 1 10 10M4.5 1.6a13.9 13.9 0 0 1 13.9 13.9'/%3E%3C/g%3E%3C/svg%3E");
  --o-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='%23fff'/%3E%3Cpath d='M9.1 7h1.8l-.4 5.6h-1zM9.1 14h1.8v1.8H9.1z' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cpath mask='url%28%23m%29' d='M10 1.6L19 17.6H1z'/%3E%3C/svg%3E");
  --o-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M7 2h6l-1 5 3 3H5l3-3z'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4' d='M10 10v8'/%3E%3C/svg%3E");
  --o-paperclip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='40' viewBox='0 0 14 40'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M4 12V30a3 3 0 0 0 6 0V8a5 5 0 0 0-10 0v24a7 7 0 0 0 14 0V14'/%3E%3C/svg%3E");
  --o-tape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E%3Cpath fill-opacity='0.34' d='M2 2l3 3-3 3 3 3-3 3 3 2h54l3-2-3-3 3-3-3-3 3-3-3-1H5z'/%3E%3C/svg%3E");
  --o-chevrons3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'%3E%3Cpath d='M4 6l6-3.5L16 6M4 11l6-3.5 6 3.5M4 16l6-3.5 6 3.5'/%3E%3C/g%3E%3C/svg%3E");
  --o-barcode: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E%3Cpath d='M2 1h1.6v16h-1.6zM5 1h0.8v16h-0.8zM7 1h0.8v16h-0.8zM11 1h1.6v16h-1.6zM13 1h0.8v16h-0.8zM14 1h0.8v16h-0.8zM18 1h1.6v16h-1.6zM21 1h0.8v16h-0.8zM23 1h0.8v16h-0.8zM24 1h1.6v16h-1.6zM28 1h0.8v16h-0.8zM30 1h0.8v16h-0.8zM33 1h1.6v16h-1.6zM35 1h0.8v16h-0.8zM36 1h0.8v16h-0.8zM40 1h1.6v16h-1.6zM43 1h0.8v16h-0.8zM45 1h0.8v16h-0.8zM48 1h1.6v16h-1.6zM49 1h0.8v16h-0.8zM52 1h0.8v16h-0.8zM55 1h1.6v16h-1.6zM57 1h0.8v16h-0.8zM60 1h0.8v16h-0.8zM62 1h1.6v16h-1.6z'/%3E%3C/svg%3E");
  --o-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22' viewBox='0 0 28 22'%3E%3Cpath d='M2 21v-8C2 6 5.5 2 11.5 1v3.6C8 5.6 6.6 7.8 6.4 11H11v10zM17 21v-8c0-7 3.5-11 9.5-12v3.6c-3.5 1-4.9 3.2-5.1 6.4H26v10z'/%3E%3C/svg%3E");
  --o-frame-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath stroke-width='1.4' d='M30 84V30H84M710 30H764V84M764 1039V1093H710M84 1093H30V1039'/%3E%3Cpath stroke-width='0.9' d='M37 68V37H68M726 37H757V68M757 1055V1086H726M68 1086H37V1055'/%3E%3Cpath stroke-width='0.7' d='M44 54V44H54M740 44H750V54M750 1069V1079H740M54 1079H44V1069'/%3E%3Cpath stroke-width='0.5' d='M84 30H710M764 84V1039M710 1093H84M30 1039V84'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-zones: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Crect x='24' y='24' width='746' height='1075' stroke-width='1.4'/%3E%3Crect x='36' y='36' width='722' height='1051' stroke-width='0.7'/%3E%3Cpath stroke-width='0.7' d='M148.3 24v12M272.7 24v12M397 24v12M521.3 24v12M645.7 24v12M148.3 1087v12M272.7 1087v12M397 1087v12M521.3 1087v12M645.7 1087v12M24 158.4h12M24 292.8h12M24 427.1h12M24 561.5h12M24 695.9h12M24 830.3h12M24 964.6h12M758 158.4h12M758 292.8h12M758 427.1h12M758 561.5h12M758 695.9h12M758 830.3h12M758 964.6h12'/%3E%3Cpath stroke-width='1.4' d='M397 14v22M397 1087v22M14 561.5h22M758 561.5h22'/%3E%3C/g%3E%3Cg font-family='monospace' font-size='8' text-anchor='middle'%3E%3Ctext x='86' y='33'%3E1%3C/text%3E%3Ctext x='210.4' y='33'%3E2%3C/text%3E%3Ctext x='334.8' y='33'%3E3%3C/text%3E%3Ctext x='459.20000000000005' y='33'%3E4%3C/text%3E%3Ctext x='583.6' y='33'%3E5%3C/text%3E%3Ctext x='708' y='33'%3E6%3C/text%3E%3Ctext x='30' y='94'%3EA%3C/text%3E%3Ctext x='764' y='94'%3EA%3C/text%3E%3Ctext x='30' y='228.4'%3EB%3C/text%3E%3Ctext x='764' y='228.4'%3EB%3C/text%3E%3Ctext x='30' y='362.8'%3EC%3C/text%3E%3Ctext x='764' y='362.8'%3EC%3C/text%3E%3Ctext x='30' y='497.20000000000005'%3ED%3C/text%3E%3Ctext x='764' y='497.20000000000005'%3ED%3C/text%3E%3Ctext x='30' y='631.6'%3EE%3C/text%3E%3Ctext x='764' y='631.6'%3EE%3C/text%3E%3Ctext x='30' y='766'%3EF%3C/text%3E%3Ctext x='764' y='766'%3EF%3C/text%3E%3Ctext x='30' y='900.4000000000001'%3EG%3C/text%3E%3Ctext x='764' y='900.4000000000001'%3EG%3C/text%3E%3Ctext x='30' y='1034.8000000000002'%3EH%3C/text%3E%3Ctext x='764' y='1034.8000000000002'%3EH%3C/text%3E%3C/g%3E%3C/svg%3E");
  --o-frame-bevel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' d='M24 64V36L36 24H64M730 24H758L770 36V64M770 1059V1087L758 1099H730M64 1099H36L24 1087V1059'/%3E%3C/svg%3E");
  --o-frame-double: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Crect x='28' y='28' width='738' height='1067' stroke-width='1.2'/%3E%3Crect x='33' y='33' width='728' height='1057' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-curls: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='0.6' d='M60 34H734M60 1089H734M34 60V1063M760 60V1063'/%3E%3Cg transform='translate%2834 34%29 scale%281 1%29'%3E%3Cpath stroke-width='1' d='M0 26C0 8 8 0 26 0M6 22c0-9 7-16 16-16M10 14a2.4 2.4 0 1 0 4.8 0 2.4 2.4 0 1 0-4.8 0'/%3E%3C/g%3E%3Cg transform='translate%28760 34%29 scale%28-1 1%29'%3E%3Cpath stroke-width='1' d='M0 26C0 8 8 0 26 0M6 22c0-9 7-16 16-16M10 14a2.4 2.4 0 1 0 4.8 0 2.4 2.4 0 1 0-4.8 0'/%3E%3C/g%3E%3Cg transform='translate%28760 1089%29 scale%28-1 -1%29'%3E%3Cpath stroke-width='1' d='M0 26C0 8 8 0 26 0M6 22c0-9 7-16 16-16M10 14a2.4 2.4 0 1 0 4.8 0 2.4 2.4 0 1 0-4.8 0'/%3E%3C/g%3E%3Cg transform='translate%2834 1089%29 scale%281 -1%29'%3E%3Cpath stroke-width='1' d='M0 26C0 8 8 0 26 0M6 22c0-9 7-16 16-16M10 14a2.4 2.4 0 1 0 4.8 0 2.4 2.4 0 1 0-4.8 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --o-frame-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cpath fill='none' stroke='%23000' stroke-width='0.6' d='M84 36H710M84 1087H710M36 84V1039M758 84V1039'/%3E%3Cg transform='translate%2836 36%29 scale%281 1%29'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' d='M0 0C10 10 22 16 48 18M0 0C10 10 16 22 18 48'/%3E%3Cpath d='M14 9c3-6 9-8 14-6-3 6-9 8-14 6zM9 14c-6 3-8 9-6 14 6-3 8-9 6-14zM30 15c2-5 7-8 12-7-2 5-7 8-12 7zM15 30c-5 2-8 7-7 12 5-2 8-7 7-12z'/%3E%3Ccircle cx='5' cy='5' r='3'/%3E%3C/g%3E%3Cg transform='translate%28758 36%29 scale%28-1 1%29'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' d='M0 0C10 10 22 16 48 18M0 0C10 10 16 22 18 48'/%3E%3Cpath d='M14 9c3-6 9-8 14-6-3 6-9 8-14 6zM9 14c-6 3-8 9-6 14 6-3 8-9 6-14zM30 15c2-5 7-8 12-7-2 5-7 8-12 7zM15 30c-5 2-8 7-7 12 5-2 8-7 7-12z'/%3E%3Ccircle cx='5' cy='5' r='3'/%3E%3C/g%3E%3Cg transform='translate%28758 1087%29 scale%28-1 -1%29'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' d='M0 0C10 10 22 16 48 18M0 0C10 10 16 22 18 48'/%3E%3Cpath d='M14 9c3-6 9-8 14-6-3 6-9 8-14 6zM9 14c-6 3-8 9-6 14 6-3 8-9 6-14zM30 15c2-5 7-8 12-7-2 5-7 8-12 7zM15 30c-5 2-8 7-7 12 5-2 8-7 7-12z'/%3E%3Ccircle cx='5' cy='5' r='3'/%3E%3C/g%3E%3Cg transform='translate%2836 1087%29 scale%281 -1%29'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' d='M0 0C10 10 22 16 48 18M0 0C10 10 16 22 18 48'/%3E%3Cpath d='M14 9c3-6 9-8 14-6-3 6-9 8-14 6zM9 14c-6 3-8 9-6 14 6-3 8-9 6-14zM30 15c2-5 7-8 12-7-2 5-7 8-12 7zM15 30c-5 2-8 7-7 12 5-2 8-7 7-12z'/%3E%3Ccircle cx='5' cy='5' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-arches: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cpath fill='none' stroke='%23000' stroke-width='0.6' d='M92 32H702M92 1091H702M32 92V1031M762 92V1031'/%3E%3Cg transform='translate%2832 32%29 scale%281 1%29' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath stroke-width='1.2' d='M0 60V22C0 10 10 0 22 0H60'/%3E%3Cpath stroke-width='0.8' d='M8 60V26C8 16 16 8 26 8H60'/%3E%3Cpath stroke-width='0.8' d='M16 16c8 0 14 6 14 14M16 16c0 8 6 14 14 14'/%3E%3C/g%3E%3Cg transform='translate%28762 32%29 scale%28-1 1%29' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath stroke-width='1.2' d='M0 60V22C0 10 10 0 22 0H60'/%3E%3Cpath stroke-width='0.8' d='M8 60V26C8 16 16 8 26 8H60'/%3E%3Cpath stroke-width='0.8' d='M16 16c8 0 14 6 14 14M16 16c0 8 6 14 14 14'/%3E%3C/g%3E%3Cg transform='translate%28762 1091%29 scale%28-1 -1%29' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath stroke-width='1.2' d='M0 60V22C0 10 10 0 22 0H60'/%3E%3Cpath stroke-width='0.8' d='M8 60V26C8 16 16 8 26 8H60'/%3E%3Cpath stroke-width='0.8' d='M16 16c8 0 14 6 14 14M16 16c0 8 6 14 14 14'/%3E%3C/g%3E%3Cg transform='translate%2832 1091%29 scale%281 -1%29' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath stroke-width='1.2' d='M0 60V22C0 10 10 0 22 0H60'/%3E%3Cpath stroke-width='0.8' d='M8 60V26C8 16 16 8 26 8H60'/%3E%3Cpath stroke-width='0.8' d='M16 16c8 0 14 6 14 14M16 16c0 8 6 14 14 14'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-masonry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath stroke-width='0.9' d='M40 26H754M40 36H754M40 46H754M40 1077H754M40 1087H754M40 1097H754'/%3E%3Cpath stroke-width='0.8' d='M40 26v10M40 1077v10M65.5 36v10M65.5 1087v10M91 26v10M91 1077v10M116.5 36v10M116.5 1087v10M142 26v10M142 1077v10M167.5 36v10M167.5 1087v10M193 26v10M193 1077v10M218.5 36v10M218.5 1087v10M244 26v10M244 1077v10M269.5 36v10M269.5 1087v10M295 26v10M295 1077v10M320.5 36v10M320.5 1087v10M346 26v10M346 1077v10M371.5 36v10M371.5 1087v10M397 26v10M397 1077v10M422.5 36v10M422.5 1087v10M448 26v10M448 1077v10M473.5 36v10M473.5 1087v10M499 26v10M499 1077v10M524.5 36v10M524.5 1087v10M550 26v10M550 1077v10M575.5 36v10M575.5 1087v10M601 26v10M601 1077v10M626.5 36v10M626.5 1087v10M652 26v10M652 1077v10M677.5 36v10M677.5 1087v10M703 26v10M703 1077v10M728.5 36v10M728.5 1087v10M754 26v10M754 1077v10'/%3E%3Cpath stroke-width='0.6' d='M40 46V1077M754 46V1077'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-graticule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='30' y='30' width='734' height='1063' stroke-width='0.6'/%3E%3Cpath stroke-width='0.7' d='M40 30v9M40 1093v-9M50 30v4M50 1093v-4M60 30v4M60 1093v-4M70 30v4M70 1093v-4M80 30v4M80 1093v-4M90 30v9M90 1093v-9M100 30v4M100 1093v-4M110 30v4M110 1093v-4M120 30v4M120 1093v-4M130 30v4M130 1093v-4M140 30v9M140 1093v-9M150 30v4M150 1093v-4M160 30v4M160 1093v-4M170 30v4M170 1093v-4M180 30v4M180 1093v-4M190 30v9M190 1093v-9M200 30v4M200 1093v-4M210 30v4M210 1093v-4M220 30v4M220 1093v-4M230 30v4M230 1093v-4M240 30v9M240 1093v-9M250 30v4M250 1093v-4M260 30v4M260 1093v-4M270 30v4M270 1093v-4M280 30v4M280 1093v-4M290 30v9M290 1093v-9M300 30v4M300 1093v-4M310 30v4M310 1093v-4M320 30v4M320 1093v-4M330 30v4M330 1093v-4M340 30v9M340 1093v-9M350 30v4M350 1093v-4M360 30v4M360 1093v-4M370 30v4M370 1093v-4M380 30v4M380 1093v-4M390 30v9M390 1093v-9M400 30v4M400 1093v-4M410 30v4M410 1093v-4M420 30v4M420 1093v-4M430 30v4M430 1093v-4M440 30v9M440 1093v-9M450 30v4M450 1093v-4M460 30v4M460 1093v-4M470 30v4M470 1093v-4M480 30v4M480 1093v-4M490 30v9M490 1093v-9M500 30v4M500 1093v-4M510 30v4M510 1093v-4M520 30v4M520 1093v-4M530 30v4M530 1093v-4M540 30v9M540 1093v-9M550 30v4M550 1093v-4M560 30v4M560 1093v-4M570 30v4M570 1093v-4M580 30v4M580 1093v-4M590 30v9M590 1093v-9M600 30v4M600 1093v-4M610 30v4M610 1093v-4M620 30v4M620 1093v-4M630 30v4M630 1093v-4M640 30v9M640 1093v-9M650 30v4M650 1093v-4M660 30v4M660 1093v-4M670 30v4M670 1093v-4M680 30v4M680 1093v-4M690 30v9M690 1093v-9M700 30v4M700 1093v-4M710 30v4M710 1093v-4M720 30v4M720 1093v-4M730 30v4M730 1093v-4M740 30v9M740 1093v-9M750 30v4M750 1093v-4M30 40h9M764 40h-9M30 50h4M764 50h-4M30 60h4M764 60h-4M30 70h4M764 70h-4M30 80h4M764 80h-4M30 90h9M764 90h-9M30 100h4M764 100h-4M30 110h4M764 110h-4M30 120h4M764 120h-4M30 130h4M764 130h-4M30 140h9M764 140h-9M30 150h4M764 150h-4M30 160h4M764 160h-4M30 170h4M764 170h-4M30 180h4M764 180h-4M30 190h9M764 190h-9M30 200h4M764 200h-4M30 210h4M764 210h-4M30 220h4M764 220h-4M30 230h4M764 230h-4M30 240h9M764 240h-9M30 250h4M764 250h-4M30 260h4M764 260h-4M30 270h4M764 270h-4M30 280h4M764 280h-4M30 290h9M764 290h-9M30 300h4M764 300h-4M30 310h4M764 310h-4M30 320h4M764 320h-4M30 330h4M764 330h-4M30 340h9M764 340h-9M30 350h4M764 350h-4M30 360h4M764 360h-4M30 370h4M764 370h-4M30 380h4M764 380h-4M30 390h9M764 390h-9M30 400h4M764 400h-4M30 410h4M764 410h-4M30 420h4M764 420h-4M30 430h4M764 430h-4M30 440h9M764 440h-9M30 450h4M764 450h-4M30 460h4M764 460h-4M30 470h4M764 470h-4M30 480h4M764 480h-4M30 490h9M764 490h-9M30 500h4M764 500h-4M30 510h4M764 510h-4M30 520h4M764 520h-4M30 530h4M764 530h-4M30 540h9M764 540h-9M30 550h4M764 550h-4M30 560h4M764 560h-4M30 570h4M764 570h-4M30 580h4M764 580h-4M30 590h9M764 590h-9M30 600h4M764 600h-4M30 610h4M764 610h-4M30 620h4M764 620h-4M30 630h4M764 630h-4M30 640h9M764 640h-9M30 650h4M764 650h-4M30 660h4M764 660h-4M30 670h4M764 670h-4M30 680h4M764 680h-4M30 690h9M764 690h-9M30 700h4M764 700h-4M30 710h4M764 710h-4M30 720h4M764 720h-4M30 730h4M764 730h-4M30 740h9M764 740h-9M30 750h4M764 750h-4M30 760h4M764 760h-4M30 770h4M764 770h-4M30 780h4M764 780h-4M30 790h9M764 790h-9M30 800h4M764 800h-4M30 810h4M764 810h-4M30 820h4M764 820h-4M30 830h4M764 830h-4M30 840h9M764 840h-9M30 850h4M764 850h-4M30 860h4M764 860h-4M30 870h4M764 870h-4M30 880h4M764 880h-4M30 890h9M764 890h-9M30 900h4M764 900h-4M30 910h4M764 910h-4M30 920h4M764 920h-4M30 930h4M764 930h-4M30 940h9M764 940h-9M30 950h4M764 950h-4M30 960h4M764 960h-4M30 970h4M764 970h-4M30 980h4M764 980h-4M30 990h9M764 990h-9M30 1000h4M764 1000h-4M30 1010h4M764 1010h-4M30 1020h4M764 1020h-4M30 1030h4M764 1030h-4M30 1040h9M764 1040h-9M30 1050h4M764 1050h-4M30 1060h4M764 1060h-4M30 1070h4M764 1070h-4M30 1080h4M764 1080h-4'/%3E%3Cg transform='translate%2830 30%29 scale%281 1%29'%3E%3Cpath stroke-width='0.9' d='M46 0A46 46 0 0 1 0 46M58 0A58 58 0 0 1 0 58'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23000'/%3E%3C/g%3E%3Cg transform='translate%28764 30%29 scale%28-1 1%29'%3E%3Cpath stroke-width='0.9' d='M46 0A46 46 0 0 1 0 46M58 0A58 58 0 0 1 0 58'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23000'/%3E%3C/g%3E%3Cg transform='translate%28764 1093%29 scale%28-1 -1%29'%3E%3Cpath stroke-width='0.9' d='M46 0A46 46 0 0 1 0 46M58 0A58 58 0 0 1 0 58'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23000'/%3E%3C/g%3E%3Cg transform='translate%2830 1093%29 scale%281 -1%29'%3E%3Cpath stroke-width='0.9' d='M46 0A46 46 0 0 1 0 46M58 0A58 58 0 0 1 0 58'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23000'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --o-frame-notebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath stroke-width='0.8' d='M44 0V1123M48.5 0V1123'/%3E%3Cpath stroke-width='0.6' d='M0 46H794M0 1077H794'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-crop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='0.8'%3E%3Cg transform='translate%2840 40%29 scale%281 1%29'%3E%3Cpath d='M-26 0H-8M0 -26V-8'/%3E%3C/g%3E%3Cg transform='translate%28754 40%29 scale%28-1 1%29'%3E%3Cpath d='M-26 0H-8M0 -26V-8'/%3E%3C/g%3E%3Cg transform='translate%28754 1083%29 scale%28-1 -1%29'%3E%3Cpath d='M-26 0H-8M0 -26V-8'/%3E%3C/g%3E%3Cg transform='translate%2840 1083%29 scale%281 -1%29'%3E%3Cpath d='M-26 0H-8M0 -26V-8'/%3E%3C/g%3E%3Ccircle cx='397' cy='22' r='5.5'/%3E%3Cpath d='M397 12v20M387 22h20'/%3E%3Ccircle cx='397' cy='1101' r='5.5'/%3E%3Cpath d='M397 1091v20M387 1101h20'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-mourning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Crect x='30' y='30' width='734' height='1063' stroke-width='3.2'/%3E%3Crect x='38' y='38' width='718' height='1047' stroke-width='0.6'/%3E%3Cg transform='translate%2852 52%29 scale%281 1%29'%3E%3Cg stroke-width='0.9'%3E%3Ccircle cx='-4' cy='0' r='4'/%3E%3Ccircle cx='4' cy='0' r='4'/%3E%3Ccircle cx='0' cy='-4' r='4'/%3E%3Ccircle cx='0' cy='4' r='4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28742 52%29 scale%28-1 1%29'%3E%3Cg stroke-width='0.9'%3E%3Ccircle cx='-4' cy='0' r='4'/%3E%3Ccircle cx='4' cy='0' r='4'/%3E%3Ccircle cx='0' cy='-4' r='4'/%3E%3Ccircle cx='0' cy='4' r='4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28742 1071%29 scale%28-1 -1%29'%3E%3Cg stroke-width='0.9'%3E%3Ccircle cx='-4' cy='0' r='4'/%3E%3Ccircle cx='4' cy='0' r='4'/%3E%3Ccircle cx='0' cy='-4' r='4'/%3E%3Ccircle cx='0' cy='4' r='4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%2852 1071%29 scale%281 -1%29'%3E%3Cg stroke-width='0.9'%3E%3Ccircle cx='-4' cy='0' r='4'/%3E%3Ccircle cx='4' cy='0' r='4'/%3E%3Ccircle cx='0' cy='-4' r='4'/%3E%3Ccircle cx='0' cy='4' r='4'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --o-frame-banner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='0.8' d='M96 24H292M502 24H698M96 1099H292M502 1099H698'/%3E%3Cpath stroke-width='2.4' d='M40 58l18-18M46 64l18-18'/%3E%3C/g%3E%3C/svg%3E");
  --o-frame-tape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg transform='translate%2846 46%29 scale%281 1%29'%3E%3Cg transform='rotate%28-45%29'%3E%3Crect x='-38' y='-11' width='76' height='22' fill='%23000' fill-opacity='0.32'/%3E%3Crect x='-38' y='-11' width='76' height='22' fill='none' stroke='%23000' stroke-width='0.6' stroke-opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28748 46%29 scale%28-1 1%29'%3E%3Cg transform='rotate%28-45%29'%3E%3Crect x='-38' y='-11' width='76' height='22' fill='%23000' fill-opacity='0.32'/%3E%3Crect x='-38' y='-11' width='76' height='22' fill='none' stroke='%23000' stroke-width='0.6' stroke-opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%28748 1077%29 scale%28-1 -1%29'%3E%3Cg transform='rotate%28-45%29'%3E%3Crect x='-38' y='-11' width='76' height='22' fill='%23000' fill-opacity='0.32'/%3E%3Crect x='-38' y='-11' width='76' height='22' fill='none' stroke='%23000' stroke-width='0.6' stroke-opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate%2846 1077%29 scale%281 -1%29'%3E%3Cg transform='rotate%28-45%29'%3E%3Crect x='-38' y='-11' width='76' height='22' fill='%23000' fill-opacity='0.32'/%3E%3Crect x='-38' y='-11' width='76' height='22' fill='none' stroke='%23000' stroke-width='0.6' stroke-opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M64 1098l8-10h8l-8 10zM80 1098l8-10h8l-8 10zM96 1098l8-10h8l-8 10zM112 1098l8-10h8l-8 10zM128 1098l8-10h8l-8 10zM144 1098l8-10h8l-8 10zM160 1098l8-10h8l-8 10zM176 1098l8-10h8l-8 10zM192 1098l8-10h8l-8 10zM208 1098l8-10h8l-8 10zM224 1098l8-10h8l-8 10zM240 1098l8-10h8l-8 10zM256 1098l8-10h8l-8 10zM272 1098l8-10h8l-8 10zM288 1098l8-10h8l-8 10zM304 1098l8-10h8l-8 10zM320 1098l8-10h8l-8 10zM336 1098l8-10h8l-8 10zM352 1098l8-10h8l-8 10zM368 1098l8-10h8l-8 10zM384 1098l8-10h8l-8 10zM400 1098l8-10h8l-8 10zM416 1098l8-10h8l-8 10zM432 1098l8-10h8l-8 10zM448 1098l8-10h8l-8 10zM464 1098l8-10h8l-8 10zM480 1098l8-10h8l-8 10zM496 1098l8-10h8l-8 10zM512 1098l8-10h8l-8 10zM528 1098l8-10h8l-8 10zM544 1098l8-10h8l-8 10zM560 1098l8-10h8l-8 10zM576 1098l8-10h8l-8 10zM592 1098l8-10h8l-8 10zM608 1098l8-10h8l-8 10zM624 1098l8-10h8l-8 10zM640 1098l8-10h8l-8 10zM656 1098l8-10h8l-8 10zM672 1098l8-10h8l-8 10zM688 1098l8-10h8l-8 10zM704 1098l8-10h8l-8 10zM720 1098l8-10h8l-8 10z'/%3E%3C/svg%3E");
  --o-frame-rope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='0.6' d='M84 26H710M84 34H710M84 1089H710M84 1097H710M36 72V1051M758 72V1051'/%3E%3Cpath stroke-width='1' d='M86 34c1.6-4 4-7 7-8M86 1097c1.6-4 4-7 7-8M94 34c1.6-4 4-7 7-8M94 1097c1.6-4 4-7 7-8M102 34c1.6-4 4-7 7-8M102 1097c1.6-4 4-7 7-8M110 34c1.6-4 4-7 7-8M110 1097c1.6-4 4-7 7-8M118 34c1.6-4 4-7 7-8M118 1097c1.6-4 4-7 7-8M126 34c1.6-4 4-7 7-8M126 1097c1.6-4 4-7 7-8M134 34c1.6-4 4-7 7-8M134 1097c1.6-4 4-7 7-8M142 34c1.6-4 4-7 7-8M142 1097c1.6-4 4-7 7-8M150 34c1.6-4 4-7 7-8M150 1097c1.6-4 4-7 7-8M158 34c1.6-4 4-7 7-8M158 1097c1.6-4 4-7 7-8M166 34c1.6-4 4-7 7-8M166 1097c1.6-4 4-7 7-8M174 34c1.6-4 4-7 7-8M174 1097c1.6-4 4-7 7-8M182 34c1.6-4 4-7 7-8M182 1097c1.6-4 4-7 7-8M190 34c1.6-4 4-7 7-8M190 1097c1.6-4 4-7 7-8M198 34c1.6-4 4-7 7-8M198 1097c1.6-4 4-7 7-8M206 34c1.6-4 4-7 7-8M206 1097c1.6-4 4-7 7-8M214 34c1.6-4 4-7 7-8M214 1097c1.6-4 4-7 7-8M222 34c1.6-4 4-7 7-8M222 1097c1.6-4 4-7 7-8M230 34c1.6-4 4-7 7-8M230 1097c1.6-4 4-7 7-8M238 34c1.6-4 4-7 7-8M238 1097c1.6-4 4-7 7-8M246 34c1.6-4 4-7 7-8M246 1097c1.6-4 4-7 7-8M254 34c1.6-4 4-7 7-8M254 1097c1.6-4 4-7 7-8M262 34c1.6-4 4-7 7-8M262 1097c1.6-4 4-7 7-8M270 34c1.6-4 4-7 7-8M270 1097c1.6-4 4-7 7-8M278 34c1.6-4 4-7 7-8M278 1097c1.6-4 4-7 7-8M286 34c1.6-4 4-7 7-8M286 1097c1.6-4 4-7 7-8M294 34c1.6-4 4-7 7-8M294 1097c1.6-4 4-7 7-8M302 34c1.6-4 4-7 7-8M302 1097c1.6-4 4-7 7-8M310 34c1.6-4 4-7 7-8M310 1097c1.6-4 4-7 7-8M318 34c1.6-4 4-7 7-8M318 1097c1.6-4 4-7 7-8M326 34c1.6-4 4-7 7-8M326 1097c1.6-4 4-7 7-8M334 34c1.6-4 4-7 7-8M334 1097c1.6-4 4-7 7-8M342 34c1.6-4 4-7 7-8M342 1097c1.6-4 4-7 7-8M350 34c1.6-4 4-7 7-8M350 1097c1.6-4 4-7 7-8M358 34c1.6-4 4-7 7-8M358 1097c1.6-4 4-7 7-8M366 34c1.6-4 4-7 7-8M366 1097c1.6-4 4-7 7-8M374 34c1.6-4 4-7 7-8M374 1097c1.6-4 4-7 7-8M382 34c1.6-4 4-7 7-8M382 1097c1.6-4 4-7 7-8M390 34c1.6-4 4-7 7-8M390 1097c1.6-4 4-7 7-8M398 34c1.6-4 4-7 7-8M398 1097c1.6-4 4-7 7-8M406 34c1.6-4 4-7 7-8M406 1097c1.6-4 4-7 7-8M414 34c1.6-4 4-7 7-8M414 1097c1.6-4 4-7 7-8M422 34c1.6-4 4-7 7-8M422 1097c1.6-4 4-7 7-8M430 34c1.6-4 4-7 7-8M430 1097c1.6-4 4-7 7-8M438 34c1.6-4 4-7 7-8M438 1097c1.6-4 4-7 7-8M446 34c1.6-4 4-7 7-8M446 1097c1.6-4 4-7 7-8M454 34c1.6-4 4-7 7-8M454 1097c1.6-4 4-7 7-8M462 34c1.6-4 4-7 7-8M462 1097c1.6-4 4-7 7-8M470 34c1.6-4 4-7 7-8M470 1097c1.6-4 4-7 7-8M478 34c1.6-4 4-7 7-8M478 1097c1.6-4 4-7 7-8M486 34c1.6-4 4-7 7-8M486 1097c1.6-4 4-7 7-8M494 34c1.6-4 4-7 7-8M494 1097c1.6-4 4-7 7-8M502 34c1.6-4 4-7 7-8M502 1097c1.6-4 4-7 7-8M510 34c1.6-4 4-7 7-8M510 1097c1.6-4 4-7 7-8M518 34c1.6-4 4-7 7-8M518 1097c1.6-4 4-7 7-8M526 34c1.6-4 4-7 7-8M526 1097c1.6-4 4-7 7-8M534 34c1.6-4 4-7 7-8M534 1097c1.6-4 4-7 7-8M542 34c1.6-4 4-7 7-8M542 1097c1.6-4 4-7 7-8M550 34c1.6-4 4-7 7-8M550 1097c1.6-4 4-7 7-8M558 34c1.6-4 4-7 7-8M558 1097c1.6-4 4-7 7-8M566 34c1.6-4 4-7 7-8M566 1097c1.6-4 4-7 7-8M574 34c1.6-4 4-7 7-8M574 1097c1.6-4 4-7 7-8M582 34c1.6-4 4-7 7-8M582 1097c1.6-4 4-7 7-8M590 34c1.6-4 4-7 7-8M590 1097c1.6-4 4-7 7-8M598 34c1.6-4 4-7 7-8M598 1097c1.6-4 4-7 7-8M606 34c1.6-4 4-7 7-8M606 1097c1.6-4 4-7 7-8M614 34c1.6-4 4-7 7-8M614 1097c1.6-4 4-7 7-8M622 34c1.6-4 4-7 7-8M622 1097c1.6-4 4-7 7-8M630 34c1.6-4 4-7 7-8M630 1097c1.6-4 4-7 7-8M638 34c1.6-4 4-7 7-8M638 1097c1.6-4 4-7 7-8M646 34c1.6-4 4-7 7-8M646 1097c1.6-4 4-7 7-8M654 34c1.6-4 4-7 7-8M654 1097c1.6-4 4-7 7-8M662 34c1.6-4 4-7 7-8M662 1097c1.6-4 4-7 7-8M670 34c1.6-4 4-7 7-8M670 1097c1.6-4 4-7 7-8M678 34c1.6-4 4-7 7-8M678 1097c1.6-4 4-7 7-8M686 34c1.6-4 4-7 7-8M686 1097c1.6-4 4-7 7-8M694 34c1.6-4 4-7 7-8M694 1097c1.6-4 4-7 7-8M702 34c1.6-4 4-7 7-8M702 1097c1.6-4 4-7 7-8'/%3E%3C/g%3E%3Cpath d='M46 24L47.22 37.04L51.66 34.34L48.96 38.78L62 40L48.96 41.22L51.66 45.66L47.22 42.96L46 56L44.78 42.96L40.34 45.66L43.04 41.22L30 40L43.04 38.78L40.34 34.34L44.78 37.04ZM748 24L749.22 37.04L753.66 34.34L750.96 38.78L764 40L750.96 41.22L753.66 45.66L749.22 42.96L748 56L746.78 42.96L742.34 45.66L745.04 41.22L732 40L745.04 38.78L742.34 34.34L746.78 37.04ZM748 1067L749.22 1080.04L753.66 1077.34L750.96 1081.78L764 1083L750.96 1084.22L753.66 1088.66L749.22 1085.96L748 1099L746.78 1085.96L742.34 1088.66L745.04 1084.22L732 1083L745.04 1081.78L742.34 1077.34L746.78 1080.04ZM46 1067L47.22 1080.04L51.66 1077.34L48.96 1081.78L62 1083L48.96 1084.22L51.66 1088.66L47.22 1085.96L46 1099L44.78 1085.96L40.34 1088.66L43.04 1084.22L30 1083L43.04 1081.78L40.34 1077.34L44.78 1080.04Z'/%3E%3C/svg%3E");
  --o-frame-ledger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='794' height='1123' viewBox='0 0 794 1123'%3E%3Cg fill='none' stroke='%23000'%3E%3Crect x='28' y='28' width='738' height='1067' stroke-width='1.2'/%3E%3Crect x='33' y='33' width='728' height='1057' stroke-width='0.5'/%3E%3Cpath stroke-width='0.8' d='M52 33V1090M56 33V1090'/%3E%3C/g%3E%3C/svg%3E");
}

/* Decoration options (docs/autor-site.md, "Verzierungen"). The canvas carries one data attribute per option; the
   theme chooses the defaults and which choices it offers (js/themes.js). Every ornament is a single-colour drawing from
   ornaments.mjs used as a mask, so it takes the colour tokens of the theme, and print shows it in the print colours.

   Rules followed (docs/autor.md, "Verzierungen nach Stand der Praxis"):
   - Ornaments sit at structural points only (page frame, chapter opening, scene break, place number), never behind
     or inside running text, and never inside the type area except in a block of their own.
   - Decoration never carries information: every ornament is drawn by CSS, so it is not text in the PDF and a screen
     reader skips it; the scene break is announced as a separator.
   - Ink-saving print drops page frames, paper tones and tinted panels; lines and text stay. */

.ab-canvas {
  --o-div: var(--o-dots); --div-w: 48px; --div-h: 12px; --div-color: var(--accent); --div-dot: var(--accent);
  --o-mark: var(--o-roundel); --mark-w: 30px; --mark-h: 30px; --mark-color: var(--accent); --mark-ink: var(--paper); --mark-pad: 0px;
  --o-frame: var(--o-frame-double); --frame-color: var(--rule);
}

/* Divider style: the centre piece of the chapter rule and of the scene break. */
.ab-canvas[data-divider='flourish'] { --o-div: var(--o-flourish); --div-w: 96px; --div-h: 20px; }
.ab-canvas[data-divider='knot'] { --o-div: var(--o-knot); --div-w: 70px; --div-h: 20px; }
.ab-canvas[data-divider='dots'] { --o-div: var(--o-dots); --div-w: 48px; --div-h: 12px; }
.ab-canvas[data-divider='asterism'] { --o-div: var(--o-asterism); --div-w: 34px; --div-h: 20px; }
.ab-canvas[data-divider='lozenge'] { --o-div: var(--o-lozenge); --div-w: 44px; --div-h: 14px; }
.ab-canvas[data-divider='stars'] { --o-div: var(--o-stars); --div-w: 64px; --div-h: 16px; }
.ab-canvas[data-divider='sunburst'] { --o-div: var(--o-sunburst); --div-w: 150px; --div-h: 28px; }
.ab-canvas[data-divider='dimension'] { --o-div: var(--o-dimension); --div-w: 120px; --div-h: 14px; }
.ab-canvas[data-divider='brackets'] { --o-div: var(--o-brackets); --div-w: 72px; --div-h: 14px; }
.ab-canvas[data-divider='sprig'] { --o-div: var(--o-sprig); --div-w: 96px; --div-h: 20px; }
.ab-canvas[data-divider='arch'] { --o-div: var(--o-arch); --div-w: 60px; --div-h: 24px; }
.ab-canvas[data-divider='rope'] { --o-div: var(--o-rope); --div-w: 120px; --div-h: 12px; }
.ab-canvas[data-divider='rivets'] { --o-div: var(--o-rivets); --div-w: 96px; --div-h: 12px; }
.ab-canvas[data-divider='wave'] { --o-div: var(--o-wave); --div-w: 96px; --div-h: 14px; }
.ab-canvas[data-divider='notches'] { --o-div: var(--o-notches); --div-w: 60px; --div-h: 14px; }
.ab-canvas[data-divider='orbit'] { --o-div: var(--o-orbit); --div-w: 90px; --div-h: 20px; }
.ab-canvas[data-divider='sample'] { --o-div: var(--o-sample); --div-w: 44px; --div-h: 14px; }
.ab-canvas[data-divider='register'] { --o-div: var(--o-register); --div-w: 20px; --div-h: 20px; }
.ab-canvas[data-divider='zero'] { --o-div: var(--o-zero); --div-w: 40px; --div-h: 12px; }
.ab-canvas[data-divider='stations'] { --o-div: var(--o-stations); --div-w: 72px; --div-h: 14px; }
.ab-canvas[data-divider='chevrons'] { --o-div: var(--o-chevrons); --div-w: 54px; --div-h: 16px; }
.ab-canvas[data-divider='key'] { --o-div: var(--o-key); --div-w: 64px; --div-h: 18px; }

/* Place markers behind the number of a place. */
.ab-canvas[data-marker='shield'] { --o-mark: var(--o-shield); --mark-w: 30px; --mark-h: 34px; --mark-pad: 0px 0px 3px; }
.ab-canvas[data-marker='rhombus'] { --o-mark: var(--o-rhombus); --mark-w: 34px; --mark-h: 34px; }
.ab-canvas[data-marker='star'] { --o-mark: var(--o-star); --mark-w: 36px; --mark-h: 36px; --mark-pad: 0px 0px 8px; --mark-ink: var(--ink); }
.ab-canvas[data-marker='roundel'] { --o-mark: var(--o-roundel); --mark-w: 30px; --mark-h: 30px; }
.ab-canvas[data-marker='hexagon'] { --o-mark: var(--o-hexagon); --mark-w: 32px; --mark-h: 30px; }
.ab-canvas[data-marker='tag'] { --o-mark: var(--o-tag); --mark-w: 34px; --mark-h: 26px; }
.ab-canvas[data-marker='ring'] { --o-mark: var(--o-ring); --mark-w: 26px; --mark-h: 26px; --mark-ink: var(--accent); }
.ab-canvas[data-marker='keystone'] { --o-mark: var(--o-keystone); --mark-w: 32px; --mark-h: 32px; --mark-pad: 0px 0px 3px; }
.ab-canvas[data-marker='compass'] { --o-mark: var(--o-compass); --mark-w: 36px; --mark-h: 36px; --mark-ink: var(--ink); }
.ab-canvas[data-marker='seal'] { --o-mark: var(--o-seal); --mark-w: 32px; --mark-h: 32px; }
.ab-canvas[data-marker='oval'] { --o-mark: var(--o-oval); --mark-w: 38px; --mark-h: 28px; }
.ab-canvas[data-marker='label'] { --o-mark: var(--o-label); --mark-w: 38px; --mark-h: 24px; }
.ab-canvas[data-marker='stencil'] { --o-mark: var(--o-stencil); --mark-w: 32px; --mark-h: 32px; --mark-ink: var(--ink); }
.ab-canvas[data-marker='stamp'] { --o-mark: var(--o-stamp); --mark-w: 40px; --mark-h: 26px; --mark-ink: var(--accent); }
.ab-canvas[data-marker='station'] { --o-mark: var(--o-station); --mark-w: 40px; --mark-h: 26px; --mark-ink: var(--ink); }

/* Page frames, drawn over the paper outside the type area. */
.ab-canvas[data-frame='double'] { --o-frame: var(--o-frame-double); }
.ab-canvas[data-frame='deco'] { --o-frame: var(--o-frame-deco); }
.ab-canvas[data-frame='zones'] { --o-frame: var(--o-frame-zones); }
.ab-canvas[data-frame='bevel'] { --o-frame: var(--o-frame-bevel); }
.ab-canvas[data-frame='curls'] { --o-frame: var(--o-frame-curls); }
.ab-canvas[data-frame='leaves'] { --o-frame: var(--o-frame-leaves); }
.ab-canvas[data-frame='arches'] { --o-frame: var(--o-frame-arches); }
.ab-canvas[data-frame='masonry'] { --o-frame: var(--o-frame-masonry); }
.ab-canvas[data-frame='graticule'] { --o-frame: var(--o-frame-graticule); }
.ab-canvas[data-frame='notebook'] { --o-frame: var(--o-frame-notebook); }
.ab-canvas[data-frame='crop'] { --o-frame: var(--o-frame-crop); }
.ab-canvas[data-frame='mourning'] { --o-frame: var(--o-frame-mourning); }
.ab-canvas[data-frame='banner'] { --o-frame: var(--o-frame-banner); }
.ab-canvas[data-frame='tape'] { --o-frame: var(--o-frame-tape); }
.ab-canvas[data-frame='rope'] { --o-frame: var(--o-frame-rope); }
.ab-canvas[data-frame='ledger'] { --o-frame: var(--o-frame-ledger); }
.ab-canvas:not([data-frame='none']) .ab-page::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--frame-color);
  -webkit-mask: var(--o-frame) 0 0 / 100% 100% no-repeat; mask: var(--o-frame) 0 0 / 100% 100% no-repeat; }
/* "Kapitelanfänge": the frame only on pages that open a chapter (the page layer marks them). */
.ab-canvas[data-frame-scope='openers'] .ab-page:not([data-opener])::before { display: none; }

/* Scene break: rules to both sides of the ornament; "rule" is a single line. */
.ab-scene { --space-before: 12px; --space-after: 12px; height: max(var(--div-h), 20px); user-select: none; }
.ab-scene::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, var(--div-dot, transparent) 2.6px, transparent 3px) center / 8px 8px no-repeat,
    linear-gradient(var(--rule), var(--rule)) left center / calc(50% - var(--div-w) / 2 - 10px) 0.75px no-repeat,
    linear-gradient(var(--rule), var(--rule)) right center / calc(50% - var(--div-w) / 2 - 10px) 0.75px no-repeat; }
.ab-canvas:not([data-divider='flourish']) { --div-dot: transparent; }
.ab-scene::after { content: ''; position: absolute; left: calc(50% - var(--div-w) / 2); top: calc(50% - var(--div-h) / 2); width: var(--div-w); height: var(--div-h); pointer-events: none; background: var(--div-color);
  -webkit-mask: var(--o-div) center / contain no-repeat; mask: var(--o-div) center / contain no-repeat; }
.ab-canvas[data-divider='rule'] .ab-scene::before { background: linear-gradient(var(--rule), var(--rule)) center / 40% 0.75px no-repeat; }
.ab-canvas[data-divider='rule'] .ab-scene::after { display: none; }
.ab-scene.ProseMirror-selectednode { outline-offset: 2px; }

/* Place numbers on a marker: the marker is drawn behind the number, the number stays text. */
.ab-canvas:not([data-marker='plain']) .ab-location { isolation: isolate; display: flex; align-items: center; gap: 12px; }
.ab-canvas:not([data-marker='plain']) .ab-location::before { position: static; display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: var(--mark-w); height: var(--mark-h); padding: var(--mark-pad); background: none; color: var(--mark-ink); }
.ab-canvas:not([data-marker='plain']) .ab-location::after { content: ''; position: absolute; z-index: -1; left: 0; top: calc(50% - var(--mark-h) / 2); width: var(--mark-w); height: var(--mark-h); background: var(--mark-color);
  -webkit-mask: var(--o-mark) center / contain no-repeat; mask: var(--o-mark) center / contain no-repeat; }

/* Initial of the first paragraph after a chapter opening. */
.ab-canvas[data-initial='none'] .ab-chapter + .ab-paragraph::first-letter { float: none; margin: 0; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: inherit; }
.ab-canvas[data-initial='plain'] .ab-chapter + .ab-paragraph::first-letter { float: left; margin: 2px 8px 0 0; padding: 0; border: 0; outline: 0; background: none; font-family: var(--initial-font, var(--font-display)); font-weight: var(--initial-weight, 700); font-size: var(--initial-size, 46px); line-height: var(--initial-leading, 40px); color: var(--initial-color, var(--accent)); }
.ab-canvas[data-initial='framed'] .ab-chapter + .ab-paragraph::first-letter { float: left; margin: 3px 10px 0 0; padding: 4px 9px 2px; border: 0.8px solid var(--accent); outline: 0; background: none; font-family: var(--initial-font, var(--font-display)); font-weight: var(--initial-weight, 700); font-size: var(--initial-size, 46px); line-height: var(--initial-leading, 42px); color: var(--initial-color, var(--accent-2)); }
.ab-canvas[data-initial='filled'] .ab-chapter + .ab-paragraph::first-letter { float: left; margin: 3px 9px 0 0; padding: 1px 8px 0; border: 0; outline: 0; background: var(--initial-fill, var(--ink)); font-family: var(--initial-font, var(--font-display)); font-weight: var(--initial-weight, 700); font-size: var(--initial-size, 34px); line-height: var(--initial-leading, 42px); color: var(--paper); }

/* Thumb tabs at the outer edge: each chapter one step lower, so the printed book opens at the chapter (as in many
   reference books). Outside the type area, outlined, the chapter number in the accent. */
.ab-thumb { display: none; }
.ab-canvas[data-tabs='on'] .ab-thumb:not(:empty) { position: absolute; right: 10px; top: calc(150px + mod(var(--chapter-no) - 1, 12) * 66px); display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 22px; height: 58px; border: 1px solid var(--accent); border-right-width: 5px; border-radius: 5px 0 0 5px; background: var(--paper); color: var(--accent); font: 700 12px/1 var(--font-label); }

/* Paper: "plain" shows the paper colour without textures, vignettes or grids. */
.ab-canvas[data-paper='plain'] .ab-page { background: var(--paper) !important; }

/* Easy reading (Dyslexia Scotland, Sensory Trust): 12 pt text with 1.5 line spacing, left aligned, no initial and no
   paper texture. More pages, the same blocks. Statistics keep their size, they are a table. */
.ab-canvas[data-reading='easy'] { --text-size: 16px; --text-leading: 24px; }
.ab-canvas[data-reading='easy'] :is(.ab-paragraph, .ab-read, .ab-gm, .ab-gm-text, .ab-table-rows > li, .ab-card-field, .ab-clue, .ab-clues-conclusion) { font-size: 16px !important; line-height: 24px !important; text-align: left; }
.ab-canvas[data-reading='easy'] .ab-chapter + .ab-paragraph::first-letter { float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important; background: none !important; font: inherit !important; color: inherit !important; }
.ab-canvas[data-reading='easy'] .ab-page { background: var(--paper) !important; }

/* Paper tones are a screen preview: print is on white paper (docs/autor.md, "Was jede Gestaltung erfüllen muss").
   Ink-saving print also drops frames, tinted panels and fills; rules and text stay. */
@media print {
  .ab-canvas { --paper: #fff !important; --vignette: transparent !important; }
  .ab-canvas[data-ink='eco'] { --paper: #fff !important; --tint: transparent !important; --cell: transparent !important; --card: transparent !important; --panel: transparent !important; }
  .ab-canvas[data-ink='eco'] .ab-page { background: #fff !important; }
  .ab-canvas[data-ink='eco'] .ab-page::before { display: none !important; }
  .ab-canvas[data-ink='eco'][data-initial='filled'] .ab-chapter + .ab-paragraph::first-letter { background: none; color: var(--ink); }
}

/* Colour (docs/autor-site.md, "Farben"): every theme uses one hue only. The main accent and the second accent are two
   lightnesses of the same hue, soft tones are mixed from it; paper, ink, rules and tints stay neutral and come from the
   theme. A theme sets only the lightness of its accents (--acc-l, --acc2-l, --soft-l), so every hue on offer works on
   its paper: at the default lightness 0.47 every accent reaches at least 4.5:1 on the light papers.
   The user chooses the hue (data-color); each theme offers the hues that suit its genre (js/themes.js). */
.ab-canvas {
  --hue: 33; --chroma: 0.12;
  --accent: oklch(var(--acc-l, 0.47) var(--chroma) var(--hue));
  --accent-2: oklch(var(--acc2-l, 0.33) calc(var(--chroma) * 0.72) var(--hue));
  --accent-text: oklch(min(var(--acc-l, 0.47), 0.5) var(--chroma) var(--hue));
  --accent-soft: oklch(var(--soft-l, 0.86) calc(var(--chroma) * 0.45) var(--hue));
}
.ab-canvas[data-color='zinnober'] { --hue: 33; --chroma: 0.13; }
.ab-canvas[data-color='karmin'] { --hue: 18; --chroma: 0.12; }
.ab-canvas[data-color='rost'] { --hue: 45; --chroma: 0.115; }
.ab-canvas[data-color='ocker'] { --hue: 75; --chroma: 0.095; }
.ab-canvas[data-color='oliv'] { --hue: 112; --chroma: 0.075; }
.ab-canvas[data-color='moos'] { --hue: 142; --chroma: 0.085; }
.ab-canvas[data-color='petrol'] { --hue: 195; --chroma: 0.075; }
.ab-canvas[data-color='indigo'] { --hue: 262; --chroma: 0.11; }
.ab-canvas[data-color='violett'] { --hue: 300; --chroma: 0.11; }
.ab-canvas[data-color='magenta'] { --hue: 350; --chroma: 0.15; }
.ab-canvas[data-color='tinte'] { --hue: 60; --chroma: 0.012; }

/* Boxes, mottos and handouts (docs/autor-site.md, "Bausteine"). Built from the theme tokens like every other block, so
   each theme dresses them in its own fonts and hue; a theme file may add its own touches. Handouts are in-world
   documents for the players: each kind has its own material, independent of the theme's anatomy. */

/* Box beside the running text: a title, paragraphs, a firm rule on top. */
.ab-box { --space-before: 16px; --space-after: 16px; padding: 10px 14px 12px; border: 1px solid var(--rule); border-top: 3px solid var(--accent); background: var(--tint); }
.ab-box-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 20px; color: var(--ink); hyphens: manual; }
.ab-box .ab-paragraph { font-size: calc(var(--text-size) - 0.5px); }
.ab-box .ab-paragraph + .ab-paragraph, .ab-handout .ab-paragraph + .ab-paragraph { margin-top: 6px; }

/* Motto: a quotation mark, the words in italic, the source after a dash. */
.ab-quote { --space-before: 16px; --space-after: 18px; margin: 0; padding: 26px 16px 0; text-align: center; }
.ab-quote::before { content: ''; position: absolute; left: calc(50% - 12px); top: 0; width: 24px; height: 19px; background: var(--accent); -webkit-mask: var(--o-quote) center / contain no-repeat; mask: var(--o-quote) center / contain no-repeat; }
.ab-quote-text { margin: 0; font-style: italic; font-size: calc(var(--text-size) + 1.5px); line-height: calc(var(--text-leading) + 3px); hyphens: manual; }
.ab-quote-source { margin-top: 6px; font-family: var(--font-label); font-size: 12px; line-height: 16px; color: var(--muted); }
.ab-quote-source::before { content: '– '; }

/* Handouts. */
.ab-handout { --space-before: 18px; --space-after: 18px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--cell); color: var(--ink); }
.ab-handout-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 20px; hyphens: manual; }
/* Letter: place and date at the right, the text in italic, the signature at the right. */
.ab-handout-brief { box-shadow: 2px 3px 0 color-mix(in oklab, var(--ink) 12%, transparent); }
.ab-handout-brief .ab-handout-title { text-align: right; font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: 13px; color: var(--muted); }
.ab-handout-brief .ab-paragraph { font-style: italic; }
.ab-handout-brief .ab-paragraph:last-child:not(:first-of-type) { text-align: right; }
/* Telegram: a printed head, the message on pasted strips in capitals. */
.ab-handout-telegramm { padding-top: 34px; border: 1.5px solid var(--ink); background: var(--paper); }
.ab-handout-telegramm::before { content: 'Telegramm'; position: absolute; left: 0; right: 0; top: 0; padding: 5px 16px 4px; border-bottom: 1.5px solid var(--ink); font: 700 11px/16px 'Courier Prime', 'Courier New', monospace; letter-spacing: 0.32em; text-transform: uppercase; }
.ab-handout-telegramm .ab-handout-title { font: 400 11px/16px 'Courier Prime', 'Courier New', monospace; text-transform: uppercase; color: var(--muted); }
.ab-handout-telegramm .ab-paragraph { padding: 2px 6px; background: var(--tint); font: 400 12.5px/18px 'Courier Prime', 'Courier New', monospace; text-transform: uppercase; hyphens: manual; }
.ab-handout-telegramm .ab-paragraph + .ab-paragraph { margin-top: 3px; }
/* Newspaper cutting: a headline over a double rule, two narrow justified columns, a dashed cut edge. */
.ab-handout-zeitung { padding: 12px 14px; border: 1px dashed var(--muted); background: var(--paper); column-count: 2; column-gap: 14px; }
.ab-handout-zeitung .ab-handout-title { column-span: all; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 3px double var(--ink); text-align: center; font-weight: 800; font-size: 19px; line-height: 22px; }
.ab-handout-zeitung .ab-paragraph { font-size: 11.5px; line-height: 15px; text-align: justify; hyphens: auto; }
/* Notice: a large title in capitals, centred, in a double frame. */
.ab-handout-aushang { padding: 16px 16px 14px; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; background: var(--paper); text-align: center; }
.ab-handout-aushang .ab-handout-title { font-size: 24px; line-height: 28px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
/* Radio message: channel and time as the head, the text in the monospace face, a signal in the corner. */
.ab-handout-funkspruch { padding-top: 32px; border: 0; border-left: 4px solid var(--accent); background: var(--tint); }
.ab-handout-funkspruch::before { content: 'Funkspruch'; position: absolute; left: 16px; top: 10px; font: 700 10px/14px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ab-handout-funkspruch::after { content: ''; position: absolute; right: 12px; top: 9px; width: 16px; height: 16px; background: var(--accent); -webkit-mask: var(--o-signal) center / contain no-repeat; mask: var(--o-signal) center / contain no-repeat; }
.ab-handout-funkspruch .ab-handout-title { font: 400 11px/16px var(--font-mono); color: var(--muted); }
.ab-handout-funkspruch .ab-paragraph { font: 400 12px/18px var(--font-mono); hyphens: manual; }
/* Note: a slip pinned to the page, written by hand (italic). */
.ab-handout-notiz { padding-top: 20px; border: 0; background: color-mix(in oklab, var(--accent) 7%, var(--paper)); box-shadow: 1px 2px 0 color-mix(in oklab, var(--ink) 14%, transparent); }
.ab-handout-notiz::before { content: ''; position: absolute; left: calc(50% - 8px); top: -6px; width: 16px; height: 16px; background: var(--accent); -webkit-mask: var(--o-pin) center / contain no-repeat; mask: var(--o-pin) center / contain no-repeat; }
.ab-handout-notiz .ab-handout-title { font-family: var(--font-text); font-style: italic; font-size: 15px; }
.ab-handout-notiz .ab-paragraph { font-style: italic; }

/* Ink-saving print: no panels behind boxes and handouts. */
@media print {
  .ab-canvas[data-ink='eco'] :is(.ab-box, .ab-handout) { background: none !important; box-shadow: none !important; }
}

/* Theme "Klassische Chronik" (Fantasy), after the approved design in Claude Design: iron-gall ink on parchment,
   rubrics, initials and statistics in one hue (minium red by default, css/colors.css). EB Garamond for text with its true small
   capitals, Cinzel for titles. Ornaments come from ornaments.mjs and take the theme's colours. */
.theme-chronik {
  --paper: #f4ecdb; --ink: #2c2520; --muted: #6c5a49; --rule: #bca78c;
  --rule-light: #d8c9ad; --tint: #efe3ce; --cell: #f7f0e3; --ruling: #cdb99a; --vignette: rgba(176, 138, 82, 0.13);
  --font-text: 'EB Garamond', Garamond, Georgia, serif; --font-display: 'Cinzel', 'EB Garamond', serif; --font-caps: 'Cinzel', serif; --font-label: 'EB Garamond', Georgia, serif;
  --text-size: 14.5px; --text-leading: 20px;
  --body-left: 64px; --body-right: 64px; --body-top: 104px; --body-bottom: 86px; --column-gap: 30px;
  --div-dot: var(--accent-2); --frame-color: var(--rule); --o-head: var(--o-knot); --head-w: 70px; --head-h: 20px;
  --initial-font: var(--font-caps); --initial-size: 50px; --initial-leading: 46px; --initial-color: var(--accent-2);
  font-variant-numeric: oldstyle-nums;
}
/* Ruled like a manuscript: two verticals, head and foot line, a faint darkening towards the edges. */
.theme-chronik .ab-page {
  background:
    linear-gradient(var(--ruling), var(--ruling)) 48px 0 / 0.6px 100% no-repeat,
    linear-gradient(var(--ruling), var(--ruling)) calc(100% - 48px) 0 / 0.6px 100% no-repeat,
    linear-gradient(var(--ruling), var(--ruling)) 0 98px / 100% 0.6px no-repeat,
    linear-gradient(var(--ruling), var(--ruling)) 0 calc(100% - 62px) / 100% 0.6px no-repeat,
    radial-gradient(ellipse 75% 75% at 50% 45%, transparent 72%, var(--vignette) 100%),
    var(--paper);
}
.theme-chronik .ab-head { top: 38px; font-size: 13px; letter-spacing: 0.04em; font-variant-caps: all-small-caps; }
/* Under the running head: a rule with a knot in the middle. */
.theme-chronik .ab-head::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 20px;
  background: linear-gradient(var(--rule), var(--rule)) left center / calc(50% - var(--head-w) / 2 - 5px) 0.8px no-repeat, linear-gradient(var(--rule), var(--rule)) right center / calc(50% - var(--head-w) / 2 - 5px) 0.8px no-repeat; }
.theme-chronik .ab-head::after { content: ''; position: absolute; left: calc(50% - var(--head-w) / 2); top: calc(32px - var(--head-h) / 2); width: var(--head-w); height: var(--head-h); background: var(--accent);
  -webkit-mask: var(--o-head) center / contain no-repeat; mask: var(--o-head) center / contain no-repeat; }
.theme-chronik[data-head='plain'] .ab-head::before, .theme-chronik[data-head='plain'] .ab-head::after, .theme-chronik[data-head='plain'] .ab-folio::before, .theme-chronik[data-head='plain'] .ab-folio::after { display: none; }
.theme-chronik .ab-foot { bottom: 26px; height: 24px; }
.theme-chronik .ab-folio { display: flex; align-items: center; gap: 12px; font-family: var(--font-caps); font-weight: 600; font-size: 15px; font-variant-numeric: lining-nums; }
.theme-chronik .ab-folio::before, .theme-chronik .ab-folio::after { content: ''; width: 70px; height: 10px;
  /* A rule ending in a small red lozenge, drawn from four triangles. */
  background: linear-gradient(var(--rule), var(--rule)) 0 center / 60px 0.8px no-repeat,
    linear-gradient(135deg, transparent 50%, var(--accent) 50%) 61.5px 1.5px / 3.5px 3.5px no-repeat, linear-gradient(45deg, transparent 50%, var(--accent) 50%) 61.5px 5px / 3.5px 3.5px no-repeat,
    linear-gradient(-135deg, transparent 50%, var(--accent) 50%) 65px 1.5px / 3.5px 3.5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--accent) 50%) 65px 5px / 3.5px 3.5px no-repeat; }
.theme-chronik .ab-folio::before { transform: scaleX(-1); }

/* Chapter opener: rubric in small capitals, title in Cinzel, the divider ornament between two rules. */
.theme-chronik .ab-chapter { font-weight: 600; font-size: 44px; line-height: 50px; letter-spacing: 0.02em; color: var(--ink);
  background: linear-gradient(var(--rule), var(--rule)) left bottom 10px / calc(50% - var(--div-w) / 2 - 8px) 0.8px no-repeat, linear-gradient(var(--rule), var(--rule)) right bottom 10px / calc(50% - var(--div-w) / 2 - 8px) 0.8px no-repeat,
    radial-gradient(circle, var(--div-dot) 2.6px, transparent 3px) center bottom 6px / 8px 8px no-repeat; }
.theme-chronik .ab-chapter::before { font-size: 15px; letter-spacing: 0.08em; font-variant-caps: all-small-caps; }
.theme-chronik .ab-chapter::after { content: ''; display: block; width: var(--div-w); height: var(--div-h); margin: calc(4px + (20px - var(--div-h)) / 2) auto calc((20px - var(--div-h)) / 2); background: var(--div-color);
  -webkit-mask: var(--o-div) center / contain no-repeat; mask: var(--o-div) center / contain no-repeat; }
.theme-chronik[data-divider='rule'] .ab-chapter { background: linear-gradient(var(--rule), var(--rule)) center bottom 10px / 40% 0.8px no-repeat; }
.theme-chronik[data-divider='rule'] .ab-chapter::after { background: none; }

/* An entry starts with its keyword as a red rubric after a pilcrow. */
.theme-chronik .ab-paragraph > strong:first-child { font-weight: 600; }
.theme-chronik .ab-paragraph > strong:first-child::before { content: '¶\00a0'; }

/* Numbered place; the number sits on the marker (a shield by default). */
.theme-chronik .ab-location { min-height: 34px; padding: 2px 0; font-weight: 600; font-size: 21px; line-height: 30px; letter-spacing: 0.02em; }
.theme-chronik .ab-location::before { font-family: var(--font-caps); font-weight: 700; font-size: 14px; line-height: 30px; text-align: center; }
.theme-chronik[data-marker='plain'] .ab-location::before { font-size: 21px; }

/* Read-aloud text behind a double red rule. */
.theme-chronik .ab-read { padding: 8px 4px 9px 18px; border-left: 3px double var(--accent); font-size: 15px; line-height: 21px; }

.theme-chronik .ab-table-title { font-size: 15px; letter-spacing: 0.01em; }
.theme-chronik .ab-table-head { border-bottom-width: 1px; }
.theme-chronik .ab-table-rows > li::before { font-family: var(--font-caps); font-variant-numeric: lining-nums; }

/* Statistics in the second colour; labels in small capitals. */
.theme-chronik .ab-stat { font-size: 13.5px; }
.theme-chronik .ab-stat-name { font-size: 19px; }
.theme-chronik .ab-stat-section h4, .theme-chronik .ab-stat-track-head { font-variant-caps: all-small-caps; letter-spacing: 0.05em; font-size: 14px; }

/* Encounter and person: a red rule, the kind in small capitals, crossed swords or a figure. */
.theme-chronik .ab-card { border-top: 1.5px solid var(--accent); padding-top: 4px; }
.theme-chronik .ab-card-title { position: relative; padding-left: 28px; font-size: 19px; line-height: 26px; }
.theme-chronik .ab-card-title::before { position: absolute; right: 0; top: 4px; font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: 0.06em; }
.theme-chronik .ab-card-title::after { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--o-swords) 0 0 / 20px 20px no-repeat; mask: var(--o-swords) 0 0 / 20px 20px no-repeat; }
.theme-chronik .ab-card-person .ab-card-title::after { -webkit-mask-image: var(--o-figure); mask-image: var(--o-figure); }
.theme-chronik .ab-card-field { grid-template-columns: 74px minmax(0, 1fr); font-size: 14px; }
.theme-chronik .ab-card-label { font-style: italic; font-weight: 600; font-size: 14px; color: var(--muted); }

.theme-chronik .ab-clues { border-top-width: 1.5px; }
.theme-chronik .ab-clues-head { font-variant-caps: all-small-caps; letter-spacing: 0.05em; font-size: 14px; color: var(--accent); }
.theme-chronik .ab-clue-box { border-color: var(--accent-2); }
.theme-chronik .ab-clock { border: 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); padding: 8px 0; }
.theme-chronik .ab-clock-title { font-family: var(--font-caps); font-weight: 600; font-size: 16px; }

/* Note for the game master with a pointing hand. */
.theme-chronik .ab-gm { padding: 8px 0 9px 36px; font-size: 14px; line-height: 19px; }
.theme-chronik .ab-gm::before { content: ''; position: absolute; left: 0; top: 11px; width: 28px; height: 16px; background: var(--accent); -webkit-mask: var(--o-hand) 0 0 / 28px 16px no-repeat; mask: var(--o-hand) 0 0 / 28px 16px no-repeat; }
.theme-chronik .ab-gm-label { font-size: 14px; letter-spacing: 0.05em; font-variant-caps: all-small-caps; }

/* Small capitals without ligatures (no lower-case "fi" among capitals) and with lining figures. */
.theme-chronik .ab-head, .theme-chronik .ab-chapter::before, .theme-chronik .ab-clues-head, .theme-chronik .ab-gm-label,
.theme-chronik .ab-card-title::before, .theme-chronik .ab-stat-section h4, .theme-chronik .ab-stat-track-head, .theme-chronik .ab-table-title,
.theme-chronik .ab-location, .theme-chronik .ab-stat-name { font-variant-ligatures: none; font-variant-numeric: lining-nums; }

/* Print on white: the ruling stays, the darkening at the edges does not. */
@media print { .theme-chronik { --paper: #fff; --vignette: transparent; } }

/* Sub-theme "Gewölbe und Grüfte" (Fantasy) on the chronicle: Roman inscriptional capitals cut in stone. Bone paper,
   lamp-black ink, one hue (oxide red by default). Its own anatomy: stone pillars along the page edges, the chapter
   title cut into a tablet under a vaulted arch, read-aloud text on a tablet with cut corners, places on keystones,
   notes for the game master by torchlight, encounters as engraved plaques. Cinzel and EB Garamond as in the chronicle. */
.theme-gewoelbe {
  --paper: #ede9e1; --ink: #221e1c; --muted: #605a53; --rule: #aba498;
  --rule-light: #cfcac1; --tint: #e3dfd7; --cell: #f3f0ea; --ruling: transparent; --vignette: rgba(70, 64, 56, 0.1);
  --stone: color-mix(in oklab, var(--rule) 34%, var(--paper)); --mortar: var(--paper);
  --frame-color: var(--rule); --div-dot: var(--accent);
  --o-head: var(--o-notches); --head-w: 60px; --head-h: 14px;
  --initial-color: var(--ink);
}
/* Stone pillars at both page edges: courses of blocks, outside the type area (5 % of the page). */
.theme-gewoelbe .ab-page {
  background:
    repeating-linear-gradient(180deg, var(--mortar) 0 1.2px, transparent 1.2px 28px) 0 0 / 20px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--mortar) 0 1.2px, transparent 1.2px 28px) 100% 14px / 20px 100% no-repeat,
    linear-gradient(var(--stone), var(--stone)) 0 0 / 20px 100% no-repeat,
    linear-gradient(var(--stone), var(--stone)) 100% 0 / 20px 100% no-repeat,
    radial-gradient(ellipse 75% 75% at 50% 45%, transparent 72%, var(--vignette) 100%),
    var(--paper);
}
/* Running head and folio clear of the masonry courses at head and foot. */
.theme-gewoelbe .ab-head { top: 56px; }
.theme-gewoelbe .ab-foot { bottom: 52px; }

/* Chapter: the title cut into a stone tablet, under a vaulted arch with its keystone. */
.ab-canvas.theme-gewoelbe .ab-chapter { padding: 16px 24px 18px; border: 3px double var(--rule); background: var(--cell); letter-spacing: 0.08em; }
.ab-canvas.theme-gewoelbe[data-headpiece='on'] .ab-chapter { padding-top: 62px; }
.ab-canvas.theme-gewoelbe .ab-chapter::after { position: absolute; left: calc(50% - 110px); top: 10px; width: 220px; height: 46px; margin: 0; background: var(--accent);
  -webkit-mask: var(--o-head-vault) center / contain no-repeat; mask: var(--o-head-vault) center / contain no-repeat; }
.ab-canvas.theme-gewoelbe[data-headpiece='off'] .ab-chapter::after { display: none; }
.theme-gewoelbe .ab-chapter::before { color: var(--accent-2); }
.theme-gewoelbe .ab-location { letter-spacing: 0.05em; padding-bottom: 4px; border-bottom: 3px double var(--rule-light); }
/* Keywords as cut capitals instead of a pilcrow. */
.theme-gewoelbe .ab-paragraph > strong:first-child { font-variant-caps: all-small-caps; letter-spacing: 0.05em; }
.theme-gewoelbe .ab-paragraph > strong:first-child::before { content: none; }
/* Read-aloud on a tablet with cut corners and an incised line. */
.theme-gewoelbe .ab-read { padding: 12px 16px 13px; border: 0; background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule), inset 0 0 0 4px var(--tint), inset 0 0 0 4.8px var(--rule-light);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
/* Notes for the game master by torchlight. */
.theme-gewoelbe .ab-gm { padding-left: 30px; border-top-color: var(--rule); border-bottom-color: var(--rule); }
.theme-gewoelbe .ab-gm::before { top: 10px; width: 20px; height: 20px; -webkit-mask: var(--o-torch) 0 0 / 20px 20px no-repeat; mask: var(--o-torch) 0 0 / 20px 20px no-repeat; }
/* Persons and encounters as engraved plaques. */
.theme-gewoelbe .ab-card { padding: 8px 12px 8px; border: 1px solid var(--rule); border-top: 3px double var(--rule); background: var(--cell); }
.theme-gewoelbe .ab-card-title::after { background: var(--accent-2); }
.theme-gewoelbe .ab-table-head { padding-bottom: 5px; border-bottom: 3px double var(--rule); }

/* Sub-theme "Wildnis und Wälder" (Fantasy) on the chronicle: an herbal and a field journal. Cream paper, sepia ink,
   one hue (moss green by default). Its own anatomy: contour lines of a map in two page corners, fronds over the chapter
   title, read-aloud text on a pinned journal card, places in hexagons as on a hex map, notes for the game master as
   field notes with a leaf, persons on specimen cards. EB Garamond for everything: small capitals for chapters, italic
   for places. */
.theme-wildnis {
  --paper: #f4f1df; --ink: #312317; --muted: #655948; --rule: #b0ac8f;
  --rule-light: #d5d2bc; --tint: color-mix(in oklab, var(--accent) 9%, var(--paper)); --cell: #f6f4e6; --ruling: transparent; --vignette: rgba(110, 120, 70, 0.12);
  --contour: color-mix(in oklab, var(--accent) 28%, var(--paper));
  --font-display: 'EB Garamond', Garamond, Georgia, serif; --font-caps: 'EB Garamond', Garamond, Georgia, serif;
  --o-head: var(--o-sprig); --head-w: 96px; --head-h: 20px; --frame-color: var(--accent); --div-dot: var(--accent-2);
  --initial-color: var(--accent); --initial-weight: 500; --initial-size: 52px;
}
/* Contour lines of a map in the top left and bottom right corners, outside the type area. */
.theme-wildnis .ab-page {
  background:
    radial-gradient(circle at 0 0, transparent 22px, var(--contour) 22px 23px, transparent 23px 38px, var(--contour) 38px 39px, transparent 39px 56px, var(--contour) 56px 57px, transparent 57px 76px, var(--contour) 76px 77px, transparent 77px),
    radial-gradient(circle at 100% 100%, transparent 18px, var(--contour) 18px 19px, transparent 19px 34px, var(--contour) 34px 35px, transparent 35px 52px, var(--contour) 52px 53px, transparent 53px 72px, var(--contour) 72px 73px, transparent 73px),
    radial-gradient(ellipse 75% 75% at 50% 45%, transparent 72%, var(--vignette) 100%),
    var(--paper);
}

/* Chapter: two fronds over the title in small capitals, no rules. */
.ab-canvas.theme-wildnis .ab-chapter { padding-bottom: 6px; background: none; font-weight: 500; font-size: 46px; font-variant-caps: small-caps; letter-spacing: 0.03em; }
.ab-canvas.theme-wildnis[data-headpiece='on'] .ab-chapter { padding-top: 46px; }
.ab-canvas.theme-wildnis .ab-chapter::after { position: absolute; left: calc(50% - 110px); top: 0; width: 220px; height: 40px; margin: 0; background: var(--accent);
  -webkit-mask: var(--o-head-fern) center / contain no-repeat; mask: var(--o-head-fern) center / contain no-repeat; }
.ab-canvas.theme-wildnis[data-headpiece='off'] .ab-chapter::after { display: none; }
.theme-wildnis .ab-chapter::before { font-style: italic; font-variant-caps: normal; letter-spacing: 0.02em; }
.theme-wildnis .ab-location { font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: 0; }
.theme-wildnis .ab-location::before { font-style: normal; font-weight: 600; }
.theme-wildnis .ab-folio { font-weight: 500; font-size: 16px; }
.theme-wildnis .ab-card-title, .theme-wildnis .ab-table-title, .theme-wildnis .ab-stat-name, .theme-wildnis .ab-clock-title { font-weight: 600; }
/* Read-aloud on a journal card held by a pin. */
.theme-wildnis .ab-read { padding: 16px 16px 12px; border: 1px solid var(--rule-light); background: var(--cell); box-shadow: 2px 3px 0 color-mix(in oklab, var(--rule) 30%, transparent); }
.theme-wildnis .ab-read::before { content: ''; position: absolute; left: calc(50% - 8px); top: -7px; width: 16px; height: 16px; background: var(--accent-2);
  -webkit-mask: var(--o-pin) center / contain no-repeat; mask: var(--o-pin) center / contain no-repeat; }
/* Field notes: italic with a leaf, a dotted rule at the side. */
.theme-wildnis .ab-gm { padding: 6px 0 6px 30px; border: 0; border-left: 1.5px dotted var(--accent); font-style: italic; }
.theme-wildnis .ab-gm::before { left: 6px; top: 8px; width: 18px; height: 18px; -webkit-mask: var(--o-leaf-icon) 0 0 / 18px 18px no-repeat; mask: var(--o-leaf-icon) 0 0 / 18px 18px no-repeat; }
.theme-wildnis .ab-gm-label { font-style: normal; }
/* Persons and encounters on specimen cards. */
.theme-wildnis .ab-card { padding: 8px 12px 8px; border: 1px solid var(--rule-light); border-top: 3px solid var(--accent); background: var(--cell); }
.theme-wildnis .ab-card-title { font-style: italic; }
.theme-wildnis .ab-card-title::after { background: var(--accent-2); }
.theme-wildnis .ab-table-rows > li::before { font-style: italic; }

/* Sub-theme "Hohe See" (other genres) on the chronicle: portolan charts and ship's logs. Sailcloth paper, iron-gall
   ink, one hue (vermilion by default). Its own anatomy: rope and compass roses frame the chapter openings, a compass
   rose with rhumb lines over the chapter title, read-aloud text as a logbook entry, places on a compass rose with
   italic numbers like soundings, notes for the game master under an anchor, the crew on muster cards. Libre Caslon Text
   for everything. */
.theme-seefahrt {
  --paper: #f5efe7; --ink: #1c2530; --muted: #555f69; --rule: #b2a99d;
  --rule-light: #d6d0c7; --tint: #ede7df; --cell: #f7f3ee; --ruling: transparent; --vignette: rgba(120, 100, 70, 0.1);
  --font-text: 'Libre Caslon Text', Georgia, serif; --font-display: 'Libre Caslon Text', Georgia, serif; --font-caps: 'Libre Caslon Text', Georgia, serif; --font-label: 'Libre Caslon Text', Georgia, serif;
  --text-size: 13.5px; --text-leading: 20px;
  --o-head: var(--o-wave); --head-w: 96px; --head-h: 14px; --frame-color: var(--accent-2); --div-dot: var(--accent); --div-color: var(--accent-2);
  --initial-color: var(--accent-2); --initial-size: 44px; --initial-leading: 42px; --mark-color: var(--accent);
}
/* Running head and folio clear of the rope at head and foot; no historical "st" ligature in the italic. */
.theme-seefahrt { font-variant-ligatures: no-common-ligatures; }
.theme-seefahrt .ab-head { top: 54px; }
.theme-seefahrt .ab-foot { bottom: 50px; }
/* Caslon has no small capitals: labels in spaced capitals instead. */
.theme-seefahrt .ab-head, .theme-seefahrt .ab-clues-head, .theme-seefahrt .ab-gm-label, .theme-seefahrt .ab-stat-section h4, .theme-seefahrt .ab-stat-track-head { font-variant-caps: normal; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; }
.theme-seefahrt .ab-chapter::before, .theme-seefahrt .ab-card-title::before { font-variant-caps: normal; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; }

/* Chapter: a compass rose with rhumb lines over the title, a wave under it. */
.ab-canvas.theme-seefahrt .ab-chapter { padding-bottom: 4px; background: none; font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: 0; }
.ab-canvas.theme-seefahrt[data-headpiece='on'] .ab-chapter { padding-top: 56px; }
.ab-canvas.theme-seefahrt .ab-chapter::after { position: absolute; left: calc(50% - 120px); top: 0; width: 240px; height: 48px; margin: 0; background: var(--accent-2);
  -webkit-mask: var(--o-head-compass) center / contain no-repeat; mask: var(--o-head-compass) center / contain no-repeat; }
.ab-canvas.theme-seefahrt[data-headpiece='off'] .ab-chapter::after { display: none; }
.theme-seefahrt .ab-location { font-style: italic; font-weight: 400; font-size: 20px; letter-spacing: 0; }
.theme-seefahrt .ab-location::before { font-family: var(--font-text); font-style: italic; font-weight: 700; font-size: 13px; }
.theme-seefahrt .ab-folio { font-weight: 700; font-size: 14px; }
/* Read-aloud as a logbook entry between double rules. */
.theme-seefahrt .ab-read { padding: 8px 4px 10px; border: 0; border-top: 3px double var(--accent-2); border-bottom: 1px solid var(--accent-2); font-size: 14px; line-height: 20px; }
.theme-seefahrt .ab-read::before { content: 'Logbuch'; display: block; margin-bottom: 4px; font-style: normal; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
/* Notes for the game master under an anchor. */
.theme-seefahrt .ab-gm { padding-left: 30px; }
.theme-seefahrt .ab-gm::before { top: 10px; width: 20px; height: 20px; -webkit-mask: var(--o-anchor) 0 0 / 20px 20px no-repeat; mask: var(--o-anchor) 0 0 / 20px 20px no-repeat; }
/* The crew on muster cards with dotted lines. */
.theme-seefahrt .ab-card { padding: 6px 0 4px; border-top: 1px solid var(--accent-2); border-bottom: 1px solid var(--accent-2); }
.theme-seefahrt .ab-card-title { font-style: italic; }
.theme-seefahrt .ab-card-title::after { -webkit-mask-image: var(--o-anchor); mask-image: var(--o-anchor); }
.theme-seefahrt .ab-card-person .ab-card-title::after { -webkit-mask-image: var(--o-figure); mask-image: var(--o-figure); }
.theme-seefahrt .ab-card-field { border-bottom: 1px dotted var(--rule); }
.theme-seefahrt .ab-card-field, .theme-seefahrt .ab-card-label, .theme-seefahrt .ab-gm { font-size: 13.5px; }

/* Theme "Kosmischer Horror der 1920er": Art déco frame, one hue on aged paper (verdigris by default), brass lines. Old Standard
   TT for text, Poiret One for large titles only (its hairlines vanish below 24px), Courier Prime for documents.
   Ornaments come from ornaments.mjs and take the theme's colours. */
.theme-horror {
  --paper: #f1e9d8; --ink: #211f1c; --muted: #615a4e; --rule: #a48756;
  --rule-light: #cfc2a6; --tint: #e7ddc8; --cell: #f6f0e2; --card: #f8f3e6; --card-line: color-mix(in oklab, var(--accent) 22%, var(--paper));
  --font-text: 'Old Standard TT', 'Times New Roman', serif; --font-display: 'Poiret One', sans-serif; --font-deco: 'Poiret One', sans-serif; --font-label: 'Old Standard TT', serif; --font-mono: 'Courier Prime', 'Courier New', monospace;
  --text-size: 14px; --text-leading: 20px;
  --body-left: 70px; --body-right: 70px; --body-top: 108px; --body-bottom: 104px; --column-gap: 30px;
  --frame-color: var(--accent); --chap-w: var(--div-w); --chap-h: var(--div-h);
  --initial-font: var(--font-deco); --initial-weight: 400; --initial-size: 34px; --initial-leading: 40px; --initial-color: var(--accent);
}
.theme-horror[data-divider='sunburst'] { --chap-w: 300px; --chap-h: 56px; }
.theme-horror .ab-head { top: 54px; font-weight: 700; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.theme-horror .ab-foot { bottom: 50px; }
.theme-horror .ab-folio { display: flex; align-items: center; gap: 10px; font-family: var(--font-deco); font-weight: 400; font-size: 18px; letter-spacing: 0.2em; color: var(--accent); }
.theme-horror .ab-folio::before, .theme-horror .ab-folio::after { content: ''; width: 48px; height: 10px; background: var(--rule); -webkit-mask: var(--o-fork) 0 0 / 48px 10px no-repeat; mask: var(--o-fork) 0 0 / 48px 10px no-repeat; }
.theme-horror .ab-folio::after { transform: scaleX(-1); }
.theme-horror[data-head='plain'] .ab-folio::before, .theme-horror[data-head='plain'] .ab-folio::after { display: none; }

/* Chapter: the divider ornament above (a sunburst by default, on a brass line with an oxblood half disc), italic act,
   title in Poiret One. */
.theme-horror .ab-chapter { padding-top: calc(var(--chap-h) + 10px); font-weight: 400; font-size: 50px; line-height: 56px; letter-spacing: 0.04em; }
.theme-horror .ab-chapter::after { content: ''; position: absolute; left: calc(50% - var(--chap-w) / 2); top: 0; width: var(--chap-w); height: var(--chap-h); background: var(--div-color);
  -webkit-mask: var(--o-div) center / contain no-repeat; mask: var(--o-div) center / contain no-repeat; }
.theme-horror[data-divider='sunburst'] .ab-chapter { background: linear-gradient(var(--rule), var(--rule)) center 52px / 300px 1px no-repeat, radial-gradient(circle at 50% 100%, var(--accent-2) 10px, transparent 10.5px) center 42px / 22px 10px no-repeat; }
.theme-horror[data-divider='rule'] .ab-chapter { padding-top: 24px; background: linear-gradient(var(--rule), var(--rule)) center 8px / 300px 1px no-repeat; }
.theme-horror[data-divider='rule'] .ab-chapter::after { display: none; }
.theme-horror .ab-chapter::before { margin-bottom: 0; font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--accent-2); }

/* The framed initial is doubled: a line and a hairline around it. */
.theme-horror[data-initial='framed'] .ab-chapter + .ab-paragraph::first-letter { margin: 4px 10px 0 0; padding: 0 8px; border: 1.5px solid var(--accent); outline: 0.75px solid var(--accent); outline-offset: 2px; }
.theme-horror .ab-paragraph > strong:first-child { color: var(--ink); }

/* Place number on a lozenge by default. */
.theme-horror .ab-location { align-items: center; gap: 12px; font-weight: 400; font-size: 26px; line-height: 30px; letter-spacing: 0.03em; }
.theme-horror .ab-location::before { font-family: var(--font-text); font-weight: 700; font-size: 14px; }

/* Read-aloud: tinted box with stepped brass corners. */
.theme-horror .ab-read { padding: 12px 16px 13px; border: 1px solid var(--accent); background: var(--tint); font-size: 14.5px; line-height: 21px; }
.theme-horror .ab-read::before, .theme-horror .ab-read::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; background: var(--rule);
  -webkit-mask: var(--o-step-corner) 0 0 / 14px 14px no-repeat; mask: var(--o-step-corner) 0 0 / 14px 14px no-repeat; }
.theme-horror .ab-read::after { left: auto; top: auto; right: 3px; bottom: 3px; transform: rotate(180deg); }
.theme-horror .ab-read strong { color: var(--ink); font-weight: 700; }

/* Note for the game master as a scholarly footnote. */
.theme-horror .ab-gm { padding: 8px 0 0; border: 0; border-top: 0.75px solid var(--ink); font-size: 12.5px; line-height: 18px; }
.theme-horror .ab-gm-label { display: inline; margin-right: 4px; font-style: italic; font-weight: 400; font-size: 12.5px; color: var(--accent-2); }
.theme-horror .ab-gm-label::before { content: '† '; }
.theme-horror .ab-gm-label::after { content: ':'; }
.theme-horror .ab-gm-text { display: inline; }

/* Person as an index card with ruled lines. */
.theme-horror .ab-card { padding: 8px 12px 6px; border: 0.75px solid var(--rule); background: repeating-linear-gradient(180deg, transparent 0 19px, var(--card-line) 19px 20px) 0 47px / 100% 100% no-repeat, var(--card); box-shadow: 1px 2px 0 rgba(60, 45, 20, 0.1); }
.theme-horror .ab-card-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0; padding-bottom: 6px; border-bottom: 1.5px solid var(--accent-2); font-family: var(--font-text); font-weight: 700; font-size: 17px; line-height: 22px; }
.theme-horror .ab-card-title::before { order: 2; font-style: italic; font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--muted); }
.theme-horror .ab-card-field { padding: 0; line-height: 20px; }
.theme-horror .ab-card-label { font-style: italic; font-weight: 400; font-size: 13px; color: var(--accent); }

.theme-horror .ab-clues { border-top-color: var(--accent-2); }
.theme-horror .ab-clues-head { font-size: 14.5px; }
.theme-horror .ab-clues-count { font-style: italic; color: var(--accent-2); }
.theme-horror .ab-clue-box { border-width: 1.2px; }
.theme-horror .ab-clue[data-found='true'] .ab-clue-box { background: var(--accent-2); border-color: var(--accent-2); }
.theme-horror .ab-table-head { border-bottom-color: var(--ink); }
.theme-horror .ab-table-title { font-family: var(--font-text); font-size: 15px; }
.theme-horror .ab-table-die { font-style: italic; font-weight: 400; color: var(--accent-2); }
.theme-horror .ab-table-rows > li::before { font-family: var(--font-mono); color: var(--accent); }
.theme-horror .ab-clock { border-color: var(--accent); }
.theme-horror .ab-clock-on { fill: var(--accent-2); }
.theme-horror .ab-clock-title { font-family: var(--font-text); }
.theme-horror .ab-stat-name { font-family: var(--font-text); }

@media print { .theme-horror { --paper: #fff; --tint: #f3efe6; --card: #fff; } }

/* Sub-theme "Gotisches Grauen" (Horror) on the 1920s theme: Victorian mourning stationery and penny dreadfuls. Ivory
   paper, sepia black and one hue (oxblood by default). Its own anatomy: a mourning border, a pointed window with two
   lancets over the chapter title, an arched initial, read-aloud text on a black-edged memorial card, places on oval
   plates, persons on mourning cards with a black band, lancet arches between scenes. Libre Caslon Text for text,
   Old Standard TT (italic) for titles; no art deco. */
.theme-gotik {
  --paper: #f4f0e7; --ink: #211815; --muted: #625550; --rule: #a89c92;
  --rule-light: #d3cdc6; --tint: #ede5de; --cell: #f6f3ee; --card: #f8f5f0; --card-line: transparent;
  --font-text: 'Libre Caslon Text', Georgia, serif; --font-display: 'Old Standard TT', 'Times New Roman', serif; --font-deco: 'Old Standard TT', 'Times New Roman', serif; --font-label: 'Old Standard TT', serif;
  --text-size: 13.5px; --text-leading: 20px;
  --frame-color: var(--ink); --initial-color: var(--accent); --initial-weight: 700; --initial-size: 38px; --initial-leading: 40px;
}
.theme-gotik { font-variant-ligatures: no-common-ligatures; }
.theme-gotik .ab-head { color: var(--accent); letter-spacing: 0.22em; }
.theme-gotik .ab-folio { font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--ink); }
/* The folio between two small lozenges instead of the deco forks. */
.theme-gotik .ab-folio::before, .theme-gotik .ab-folio::after { width: 10px; background: var(--accent); -webkit-mask: var(--o-diamond) center / 10px 10px no-repeat; mask: var(--o-diamond) center / 10px 10px no-repeat; }

/* Chapter: a pointed window over the title in italic, the act between two daggers. */
.ab-canvas.theme-gotik .ab-chapter { padding-top: 10px; background: none; font-style: italic; font-size: 46px; line-height: 52px; letter-spacing: 0.01em; }
.ab-canvas.theme-gotik[data-headpiece='on'] .ab-chapter { padding-top: 68px; }
.ab-canvas.theme-gotik .ab-chapter::after { display: block; left: calc(50% - 110px); top: 0; width: 220px; height: 54px; background: var(--accent);
  -webkit-mask: var(--o-head-window) center / contain no-repeat; mask: var(--o-head-window) center / contain no-repeat; }
.ab-canvas.theme-gotik[data-headpiece='off'] .ab-chapter::after { display: none; }
.theme-gotik .ab-chapter::before { content: '† ' attr(data-kicker) ' †'; font-style: normal; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--accent); }
/* The framed initial under an arch. */
.theme-gotik[data-initial='framed'] .ab-chapter + .ab-paragraph::first-letter { padding: 7px 8px 0; border: 1.4px solid var(--accent); border-radius: 20px 20px 0 0; outline: 0; }
.theme-gotik .ab-location { font-weight: 700; font-size: 19px; line-height: 26px; letter-spacing: 0.01em; }
.theme-gotik .ab-location::before { font-size: 13px; }
/* Read-aloud on a black-edged memorial card with a hairline inside and a lozenge on the edge. */
.theme-gotik .ab-read { padding: 14px 17px 14px; border: 1px solid var(--ink); outline: 0.6px solid var(--ink); outline-offset: -5px; background: var(--cell); font-size: 14px; }
.theme-gotik .ab-read::before { left: calc(50% - 6px); top: -6.5px; width: 12px; height: 12px; background: var(--accent); -webkit-mask: var(--o-diamond) center / contain no-repeat; mask: var(--o-diamond) center / contain no-repeat; }
.theme-gotik .ab-read::after { display: none; }
.theme-gotik .ab-gm-label::before { content: '‡ '; }
/* Persons on mourning cards: a black band at the top, centred names. */
.theme-gotik .ab-card { padding: 10px 14px 8px; border: 1px solid var(--ink); border-top: 5px solid var(--ink); background: var(--card); box-shadow: none; }
.theme-gotik .ab-card-title { display: block; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 18px; border-bottom: 1px solid var(--rule); }
.theme-gotik .ab-card-title::before { display: block; margin-bottom: 2px; font-style: normal; text-transform: uppercase; letter-spacing: 0.14em; font-size: 9.5px; }

/* Theme "Raumfrachter-Terminal" (Science-Fiction) as a technical drawing: zone frame after ISO 5457, title block after
   ISO 7200, position numbers and data fields. Ink and one signal hue (orange by default) on drawing paper; no black-and-
   yellow warning look (docs/autor.md, Abgrenzung). B612 for text, Big Shoulders Display for titles. */
.theme-terminal {
  --paper: #f0f4f6; --ink: #191d22; --muted: #565f68;
  --acc-l: 0.58; --rule: #b2b8bf; --rule-light: #cdd3d9; --tint: color-mix(in oklab, var(--accent) 7%, var(--paper)); --cell: #f7f9fa; --grid: #dbe4eb;
  --font-text: 'B612', 'Segoe UI', sans-serif; --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; --font-label: 'B612 Mono', ui-monospace, monospace; --font-mono: 'B612 Mono', ui-monospace, monospace;
  --text-size: 13px; --text-leading: 19px;
  --body-left: 60px; --body-right: 56px; --body-top: 96px; --body-bottom: 112px; --column-gap: 28px;
  --frame-color: var(--ink); --mark-color: var(--ink); --div-color: var(--accent-2);
  --initial-font: 'Big Shoulders Display', sans-serif; --initial-weight: 900; --initial-size: 40px;
}
.theme-terminal[data-marker='ring'] { --mark-w: 24px; --mark-h: 24px; --mark-ink: var(--ink); }
/* Drawing paper with a fine grid; the zone frame is a decoration option (data-frame="zones"). */
.theme-terminal .ab-page {
  background:
    linear-gradient(var(--grid) 0.6px, transparent 0.6px) 36px 36px / 16px 16px,
    linear-gradient(90deg, var(--grid) 0.6px, transparent 0.6px) 36px 36px / 16px 16px,
    var(--paper);
}
@media print { .theme-terminal { --paper: #fff; --grid: #e6ecf1; } }
.theme-terminal .ab-head { top: 50px; left: 60px; right: 56px; padding-bottom: 7px; border-bottom: 1.5px solid var(--ink); font-size: 11px; color: var(--muted); }
.theme-terminal .ab-head-chapter::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
/* Title block (Schriftfeld) bottom right. */
.theme-terminal .ab-foot { left: auto; right: 36px; bottom: 36px; width: 326px; display: grid; grid-template-columns: 1.6fr 0.7fr; grid-template-rows: auto auto; gap: 0; align-items: stretch; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); background: var(--paper); font-family: var(--font-text); font-size: 12px; color: var(--ink); }
.theme-terminal .ab-foot > span { display: block; padding: 3px 8px 4px; }
.theme-terminal .ab-foot-title { grid-column: 1; grid-row: 2; border-right: 0.75px solid var(--ink); }
.theme-terminal .ab-foot-chapter { grid-column: 1; grid-row: 1; border-right: 0.75px solid var(--ink); border-bottom: 0.75px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-terminal .ab-folio { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 30px; }
.theme-terminal .ab-foot-title::before, .theme-terminal .ab-foot-chapter::before, .theme-terminal .ab-folio::before { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9px; line-height: 12px; color: var(--accent-2); letter-spacing: 0; }
.theme-terminal .ab-foot-chapter::before { content: 'Benennung'; }
.theme-terminal .ab-foot-title::before { content: 'Abenteuer'; }
.theme-terminal .ab-folio::before { content: 'Blatt'; }
.theme-terminal .ab-folio::after { content: ' / ' attr(data-total); font-family: var(--font-text); font-weight: 400; font-size: 12px; color: var(--muted); }

/* Chapter: section number in a box, title in Big Shoulders. */
.theme-terminal .ab-chapter { display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 16px; align-items: end; min-height: 66px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); text-align: left; font-weight: 800; font-size: 52px; line-height: 50px; }
.theme-terminal .ab-chapter::before { content: counter(chapter); grid-row: 1 / span 2; align-self: start; display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin: 0; border: 2px solid var(--ink); box-sizing: border-box; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 44px; letter-spacing: 0; color: var(--ink); }
.theme-terminal .ab-chapter::after { content: attr(data-kicker); grid-column: 2; grid-row: 1; order: -1; font-family: var(--font-mono); font-weight: 700; font-size: 11px; line-height: 14px; color: var(--accent-2); }

/* Place: position number in a circle (the marker), a rule below. */
.theme-terminal .ab-location { align-items: center; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); font-weight: 800; font-size: 27px; line-height: 28px; }
.theme-terminal .ab-location::before { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--ink); }
.theme-terminal:not([data-marker='plain']) .ab-location::after { top: calc(50% - 3px - var(--mark-h) / 2); }
.theme-terminal .ab-paragraph > strong:first-child { color: var(--ink); }

/* Read-aloud as a log excerpt. */
.theme-terminal .ab-read { padding: 6px 10px 10px; border: 0; border-top: 2px solid var(--ink); border-bottom: 0.75px solid var(--ink); background: var(--tint); font-family: var(--font-mono); font-style: normal; font-size: 12px; line-height: 18px; }
.theme-terminal .ab-read::before { content: 'Vorlesen'; display: block; margin-bottom: 4px; font-weight: 700; font-size: 10.5px; color: var(--accent-2); }
.theme-terminal .ab-read strong { color: var(--ink); font-weight: 700; }
.theme-terminal .ab-gm { padding: 9px 12px 11px; border: 0; border-left: 3px solid var(--accent-2); background: var(--tint); font-size: 12.5px; line-height: 18px; }
.theme-terminal .ab-gm-label { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); }

.theme-terminal .ab-table-head { border-bottom: 1.5px solid var(--ink); }
.theme-terminal .ab-table-title { font-weight: 800; font-size: 19px; }
.theme-terminal .ab-table-die { padding: 0 6px; border: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
.theme-terminal .ab-table-rows > li::before { font-family: var(--font-mono); color: var(--accent-text); }

/* Data fields for persons, encounters and statistics. */
.theme-terminal .ab-card, .theme-terminal .ab-stat { border-top: 3px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: none; padding-top: 0; }
.theme-terminal .ab-card-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 6px 0 5px; border-bottom: 1.5px solid var(--ink); font-weight: 800; font-size: 22px; line-height: 24px; }
.theme-terminal .ab-card-title::before { order: 2; font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-text); letter-spacing: 0; }
.theme-terminal .ab-card-field { grid-template-columns: 92px minmax(0, 1fr); padding: 5px 0; border-bottom: 0.75px solid var(--rule); font-size: 12.5px; line-height: 18px; }
.theme-terminal .ab-card-field:last-child { border-bottom: 0; }
.theme-terminal .ab-card-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-2); }
.theme-terminal .ab-stat-head { margin: 0; padding: 6px 0 5px; border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.theme-terminal .ab-stat-name { font-weight: 800; font-size: 22px; }
.theme-terminal .ab-stat-body { padding: 8px 0 10px; }
.theme-terminal .ab-stat-core > div, .theme-terminal .ab-stat-abilities > div { background: var(--cell); }

.theme-terminal .ab-clues { border-top: 2px solid var(--ink); }
.theme-terminal .ab-clues-head { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 22px; }
.theme-terminal .ab-clues-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-text); }
.theme-terminal .ab-clock { border: 1.5px solid var(--ink); }
.theme-terminal .ab-clock-on { fill: var(--accent); }
.theme-terminal .ab-clock-title { font-weight: 800; font-size: 19px; }

/* Sub-theme "Forschungsstation" (Science-Fiction) on the freighter terminal: a lab notebook. White, blue black and one
   signal hue (red by default). Its own anatomy: a double margin rule like a notebook, the chapter as a protocol header
   on a tinted band with a sample label for its number, read-aloud text as an observation with rounded corners, places on
   module labels, notes for the game master under a warning triangle, persons and specimens on tag cards with a clipped
   corner, sample tags between scenes. B612 family as in the terminal; no warning-sign look of any film or game
   (docs/autor.md, Abgrenzung). */
.theme-station {
  --paper: #f7fbfc; --ink: #121e2b; --muted: #51606b; --acc-l: 0.5;
  --rule: #b4c0c6; --rule-light: #d8dfe3; --tint: color-mix(in oklab, var(--accent) 6%, var(--paper)); --cell: #f3f8fa; --grid: transparent;
  --frame-color: var(--accent); --div-color: var(--accent-2); --mark-color: var(--ink); --mark-ink: var(--paper);
}
.theme-station .ab-location::before { content: counter(ort, decimal-leading-zero); font-size: 11px; }
.theme-station[data-marker='ring'] .ab-location::before { color: var(--ink); }
.theme-station .ab-foot-chapter::before { content: 'Protokoll'; }
.theme-station .ab-foot-title::before { content: 'Station'; }
.theme-station .ab-folio::before { content: 'Seite'; }
/* Chapter: a protocol header on a tinted band, the number on a sample label. */
.theme-station .ab-chapter { padding: 12px 14px 12px 12px; border-bottom: 0; border-left: 4px solid var(--accent); background: var(--tint); }
.theme-station .ab-chapter::before { border: 0; background: var(--paper); color: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px)); box-shadow: inset 0 0 0 2px var(--accent); }
.theme-station .ab-location { border-bottom: 1px solid var(--rule); }
/* Read-aloud as an observation in a rounded box with a tab. */
.theme-station .ab-read { padding: 8px 12px 10px; border: 1px solid var(--accent-2); border-radius: 6px; background: var(--paper); font-family: var(--font-text); font-size: 12.5px; line-height: 18.5px; }
.theme-station .ab-read::before { display: table; margin: -8px 0 6px -12px; font-family: var(--font-mono); padding: 2px 10px 3px; border-right: 1px solid var(--accent-2); border-bottom: 1px solid var(--accent-2); border-radius: 6px 0 6px 0; color: var(--accent-2); font-size: 10.5px; }
/* Notes for the game master under a warning triangle. */
.theme-station .ab-gm { padding-left: 38px; border-left: 3px solid var(--accent); background: var(--tint); }
.theme-station .ab-gm::before { content: ''; position: absolute; left: 11px; top: 10px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: var(--o-warn) center / contain no-repeat; mask: var(--o-warn) center / contain no-repeat; }
.theme-station .ab-gm-label { color: var(--accent); }
/* Persons and specimens on tag cards with a clipped corner. */
.theme-station .ab-card { padding: 0 10px 6px; border: 1px solid var(--rule); border-top: 3px solid var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); background: var(--cell); }
.theme-station .ab-clues { padding: 8px 10px 6px; border: 1px solid var(--rule); border-top: 3px solid var(--accent-2); border-radius: 0 0 6px 6px; }

/* Theme "Postapokalypse" (other genres) on the freighter terminal: civil-defence booklets, stencils and tape. Kraft
   grey, carbon and one hue (rust by default); no yellow-and-black warning look and nothing from known games or films
   (docs/autor.md, Abgrenzung). Its own anatomy: taped corners and a striped foot on the chapter openings, a ring stain
   in the bottom margin, barbed wire over the chapter title and a stencilled number, read-aloud text on a scrap of paper
   with a torn edge under a strip of tape, places in a stencil ring, radio notes for the game master, persons and
   encounters as check lists, chevrons between scenes. Big Shoulders Display for titles, Public Sans for text, Martian
   Mono for labels. */
.theme-postapo {
  --paper: #eae3db; --ink: #211c18; --muted: #5b544d; --acc-l: 0.48;
  --rule: #a79d91; --rule-light: #cac3b9; --tint: #dfd8ce; --cell: #efeae4; --grid: transparent;
  --stain: color-mix(in oklab, var(--rule) 45%, var(--paper));
  --font-text: 'Public Sans', 'Segoe UI', sans-serif; --font-label: 'Martian Mono', ui-monospace, monospace; --font-mono: 'Martian Mono', ui-monospace, monospace;
  --frame-color: var(--accent); --div-color: var(--accent); --mark-color: var(--ink); --mark-ink: var(--ink);
  --initial-fill: var(--accent); --initial-font: 'Big Shoulders Display', sans-serif; --initial-weight: 900; --initial-size: 40px;
}
/* A ring stain in the bottom margin. */
.theme-postapo .ab-page { background: radial-gradient(circle at 92px 1080px, transparent 15px, var(--stain) 15.5px, var(--stain) 17px, transparent 18.5px), var(--paper); }
/* Chapter: barbed wire over the title, the number stencilled. */
.theme-postapo .ab-chapter { letter-spacing: 0.02em; text-transform: uppercase; }
.theme-postapo[data-headpiece='on'] .ab-chapter { padding-top: 26px; background: linear-gradient(var(--accent), var(--accent)) 0 9px / 100% 1.5px no-repeat, repeating-linear-gradient(90deg, transparent 0 14px, var(--accent) 14px 16px, transparent 16px 30px) 0 3px / 100% 13px no-repeat; }
.theme-postapo .ab-chapter::before { border: 3px dashed var(--accent); color: var(--accent); }
.theme-postapo .ab-foot-chapter::before { content: 'Abschnitt'; }
.theme-postapo .ab-foot-title::before { content: 'Lager'; }
.theme-postapo .ab-location { text-transform: uppercase; letter-spacing: 0.02em; }
.theme-postapo .ab-location::before { font-size: 11px; }
/* Read-aloud on a scrap of paper: a strip of tape, a torn lower edge, the text face (monospace reads harder). */
.theme-postapo .ab-read { padding: 14px 12px 16px; border: 0; background: var(--cell); font-family: var(--font-text); font-size: 13px; line-height: 19.5px;
  clip-path: polygon(0 -12px, 100% -12px, 100% calc(100% - 4px), 94% 100%, 86% calc(100% - 5px), 78% 100%, 69% calc(100% - 4px), 60% 100%, 51% calc(100% - 6px), 42% 100%, 33% calc(100% - 4px), 24% 100%, 15% calc(100% - 5px), 7% 100%, 0 calc(100% - 4px)); }
.theme-postapo .ab-read::after { content: ''; position: absolute; left: calc(50% - 32px); top: -8px; width: 64px; height: 18px; background: var(--rule); -webkit-mask: var(--o-tape) center / contain no-repeat; mask: var(--o-tape) center / contain no-repeat; }
/* Radio notes for the game master. */
.theme-postapo .ab-gm { padding-left: 38px; border-left-color: var(--accent-2); }
.theme-postapo .ab-gm::before { content: ''; position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; background: var(--accent-2); -webkit-mask: var(--o-signal) center / contain no-repeat; mask: var(--o-signal) center / contain no-repeat; }
.theme-postapo .ab-gm-label { color: var(--accent-2); }
/* Persons and encounters as check lists. */
.theme-postapo .ab-card-label { position: relative; padding-left: 14px; }
.theme-postapo .ab-card-label::before { content: ''; position: absolute; left: 0; top: 3px; width: 8px; height: 8px; border: 1.2px solid var(--ink); }

/* Theme "Space Opera" (Science-Fiction): an engraved star atlas. White, navy black and one hue (signal orange by
   default); no film or game interface (docs/autor.md, "Marken und Aufmachung"). Its own anatomy: a graticule frame,
   stars in the head band, a ringed planet on its orbit at the chapter opening, read-aloud text as a transmission with a
   bevelled corner, places as sector numbers in hexagons, orders for the game master under rank chevrons, the crew on
   dossier cards. Saira for titles, Public Sans for text, Martian Mono for labels. */
.theme-spaceopera {
  --paper: #f8fafd; --ink: #131f35; --muted: #545e6f; --rule: #b5bfcb;
  --rule-light: #d9dfe6; --tint: color-mix(in oklab, var(--accent) 6%, var(--paper)); --cell: #f4f7fb;
  --star: color-mix(in oklab, var(--ink) 45%, var(--paper));
  --font-text: 'Public Sans', 'Segoe UI', sans-serif; --font-display: 'Saira', 'Segoe UI', sans-serif; --font-label: 'Martian Mono', ui-monospace, monospace; --font-mono: 'Martian Mono', ui-monospace, monospace;
  --text-size: 13px; --text-leading: 19.5px;
  --body-left: 62px; --body-right: 62px; --body-top: 100px; --body-bottom: 88px; --column-gap: 28px;
  --frame-color: var(--ink); --div-color: var(--accent-2); --mark-color: var(--ink);
  --initial-font: 'Saira', sans-serif; --initial-weight: 600; --initial-color: var(--accent);
}
/* A few stars in the head and foot bands, never behind text. */
.theme-spaceopera .ab-page {
  background:
    radial-gradient(circle, var(--star) 0.9px, transparent 1.4px) 120px 22px / 4px 4px no-repeat,
    radial-gradient(circle, var(--star) 0.7px, transparent 1.2px) 236px 62px / 4px 4px no-repeat,
    radial-gradient(circle, var(--star) 1.1px, transparent 1.6px) 388px 30px / 4px 4px no-repeat,
    radial-gradient(circle, var(--star) 0.7px, transparent 1.2px) 512px 70px / 4px 4px no-repeat,
    radial-gradient(circle, var(--star) 0.9px, transparent 1.4px) 650px 18px / 4px 4px no-repeat,
    radial-gradient(circle, var(--star) 0.7px, transparent 1.2px) 300px 1080px / 4px 4px no-repeat,
    radial-gradient(circle, var(--star) 0.9px, transparent 1.4px) 548px 1098px / 4px 4px no-repeat,
    var(--paper);
}
.theme-spaceopera .ab-head { top: 46px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.theme-spaceopera .ab-head-chapter { color: var(--accent-2); }
.theme-spaceopera .ab-foot { bottom: 40px; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.theme-spaceopera .ab-foot-title { display: inline; }
.theme-spaceopera .ab-folio { font-weight: 600; }

/* Chapter: kicker as a code, the title in Saira, a ringed planet on its orbit at the right, a rule below. */
.theme-spaceopera .ab-chapter { padding-bottom: 12px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 600; font-size: 44px; line-height: 48px; }
.theme-spaceopera[data-headpiece='on'] .ab-chapter { padding-right: 230px; min-height: 96px; }
.theme-spaceopera .ab-chapter::before { font-family: var(--font-mono); font-weight: 600; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.theme-spaceopera .ab-chapter::after { content: ''; position: absolute; right: -8px; top: 6px; width: 240px; height: 48px; background: var(--accent-2);
  -webkit-mask: var(--o-head-planet) center / contain no-repeat; mask: var(--o-head-planet) center / contain no-repeat; }
.theme-spaceopera[data-headpiece='off'] .ab-chapter::after { display: none; }

/* Places as sector numbers on a rule. */
.theme-spaceopera .ab-location { padding-bottom: 4px; border-bottom: 1px solid var(--rule-light); font-weight: 600; font-size: 20px; line-height: 26px; }
.theme-spaceopera .ab-location::before { content: counter(ort, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; font-size: 10px; color: var(--accent-2); }
.theme-spaceopera:not([data-marker='plain']) .ab-location::after { top: calc(50% - 2px - var(--mark-h) / 2); }
.theme-spaceopera .ab-paragraph > strong:first-child { color: var(--ink); }

/* Read-aloud as an incoming transmission: label, signal, a bevelled corner. */
.theme-spaceopera .ab-read { padding: 9px 30px 10px 14px; border-left: 3px solid var(--accent-2); background: var(--tint); font-style: normal; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.theme-spaceopera .ab-read::before { content: 'Funkspruch'; display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.theme-spaceopera .ab-read::after { content: ''; position: absolute; right: 18px; top: 10px; width: 14px; height: 14px; background: var(--accent-2); -webkit-mask: var(--o-signal) center / contain no-repeat; mask: var(--o-signal) center / contain no-repeat; }
.theme-spaceopera .ab-read strong { color: var(--accent-2); font-weight: 700; }
/* Orders for the game master under rank chevrons. */
.theme-spaceopera .ab-gm { padding-left: 30px; border-color: var(--rule); }
.theme-spaceopera .ab-gm::before { content: ''; position: absolute; left: 2px; top: 10px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: var(--o-chevrons3) center / contain no-repeat; mask: var(--o-chevrons3) center / contain no-repeat; }
.theme-spaceopera .ab-gm-label, .theme-spaceopera .ab-card-title::before, .theme-spaceopera .ab-clues-head, .theme-spaceopera .ab-table-die { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
/* The crew on dossier cards with a header band. */
.theme-spaceopera .ab-card { padding: 0 0 6px; border: 1px solid var(--rule); border-top: 0; }
.theme-spaceopera .ab-card-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; padding: 6px 10px 5px; border-top: 3px solid var(--ink); background: var(--tint); font-weight: 600; }
.theme-spaceopera .ab-card-title::before { order: 2; color: var(--accent-2); }
.theme-spaceopera .ab-card-field { padding: 3px 10px; }
.theme-spaceopera .ab-table-title, .theme-spaceopera .ab-clock-title, .theme-spaceopera .ab-stat-name { font-weight: 600; }
.theme-spaceopera .ab-card-label { font-family: var(--font-mono); font-weight: 400; font-size: 10px; }
.theme-spaceopera .ab-table-head { padding: 4px 8px; border-bottom: 0; background: var(--tint); }
.theme-spaceopera .ab-table-rows > li::before { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-2); }
.theme-spaceopera .ab-clock { border-color: var(--rule); }

/* Theme "Neon-Metropole" (Cyberpunk). On screen: night blue and one neon hue (magenta by default) in two lightnesses:
   the bright one for the scene and the read-aloud text, the pale one for structure; bevelled frames. In print: the same
   hue, darker, on white paper. No glitch effects, no pseudo-Japanese
   (docs/autor.md, Abgrenzung). Saira for text, Chakra Petch for titles, Martian Mono for labels. */
.theme-neon {
  --paper: #0d0f17; --ink: #e5e8ef; --muted: #9ea4b8;
  --rule: #2d3242; --rule-light: #232838; --tint: #151823; --cell: #121520;
  --acc-l: 0.72; --acc2-l: 0.84; --soft-l: 0.9; --accent-text: var(--accent); --panel: color-mix(in oklab, var(--accent) 12%, var(--paper)); --well: color-mix(in oklab, var(--accent-2) 7%, var(--paper));
  --font-text: 'Saira', 'Segoe UI', sans-serif; --font-display: 'Chakra Petch', sans-serif; --font-label: 'Martian Mono', ui-monospace, monospace; --font-mono: 'Martian Mono', ui-monospace, monospace;
  --text-size: 13.5px; --text-leading: 20px;
  --body-left: 60px; --body-right: 60px; --body-top: 92px; --body-bottom: 90px; --column-gap: 28px;
  --frame-color: var(--accent-2); --div-color: var(--accent-2); --mark-color: var(--accent); --mark-ink: #fff;
  --glow-a: color-mix(in oklab, var(--accent) 16%, transparent); --glow-b: color-mix(in oklab, var(--accent-2) 9%, transparent); --dots: rgba(255, 255, 255, 0.05);
  --initial-font: 'Chakra Petch', sans-serif; --initial-color: var(--accent-2);
}
/* Night with two distant glows and a faint dot grid (paper texture); the bevelled corners are the frame option. */
.theme-neon .ab-page {
  background:
    radial-gradient(circle at 92% 4%, var(--glow-a), transparent 46%),
    radial-gradient(circle at 4% 98%, var(--glow-b), transparent 44%),
    radial-gradient(var(--dots) 0.7px, transparent 0.8px) 0 0 / 12px 12px,
    var(--paper);
}
.theme-neon .ab-head { top: 40px; font-size: 10px; color: var(--muted); }
.theme-neon .ab-head-chapter { color: var(--accent-2); }
.theme-neon .ab-foot { justify-content: space-between; bottom: 40px; font-size: 10px; }
.theme-neon .ab-foot-title { display: inline; }
.theme-neon .ab-folio { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* Chapter: the scene number as a lit sign, the title beside it. */
.theme-neon .ab-chapter { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; align-items: center; min-height: 104px; text-align: left; font-weight: 700; font-size: 42px; line-height: 46px; color: #f4f5fa; }
.theme-neon .ab-chapter::before { content: counter(chapter); display: flex; align-items: center; justify-content: center; width: 84px; height: 100px; margin: 0; box-sizing: border-box; border: 1.5px solid var(--accent); background: var(--panel); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); font-family: var(--font-display); font-weight: 700; font-size: 58px; line-height: 60px; letter-spacing: 0; color: var(--accent-soft); text-shadow: 0 0 6px color-mix(in oklab, var(--accent) 90%, transparent), 0 0 18px color-mix(in oklab, var(--accent) 50%, transparent); }

/* Place: the number in the pale accent, title in Chakra Petch. */
.theme-neon .ab-location { font-weight: 700; font-size: 21px; line-height: 26px; color: #f4f5fa; }
.theme-neon .ab-location::before { content: counter(ort, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--accent-2); }
.theme-neon .ab-paragraph > strong:first-child { color: var(--accent-2); font-weight: 600; }

/* Read-aloud in a frame of the bright accent with a bevelled corner. */
.theme-neon .ab-read { padding: 10px 14px 12px; border: 1px solid var(--accent); background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 12%, transparent), color-mix(in oklab, var(--accent) 4%, transparent)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); font-style: normal; color: #f4f5fa; }
.theme-neon .ab-read::before { content: 'Vorlesen'; display: block; margin-bottom: 5px; font-family: var(--font-mono); font-weight: 600; font-size: 10px; line-height: 14px; color: var(--accent-soft); }
.theme-neon .ab-read strong { color: #fff; font-weight: 600; }
.theme-neon .ab-gm { padding: 10px 12px 12px; border: 0; border-left: 3px solid var(--accent-2); background: var(--tint); font-size: 13px; line-height: 18.5px; }
.theme-neon .ab-gm-label { font-family: var(--font-mono); font-weight: 600; font-size: 10px; color: var(--accent-2); }

.theme-neon .ab-table-head { border-bottom: 1px solid var(--accent-2); }
.theme-neon .ab-table-title { font-size: 18px; }
.theme-neon .ab-table-die { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); }
.theme-neon .ab-table-rows > li { border-bottom-color: var(--rule-light); }
.theme-neon .ab-table-rows > li::before { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); }

/* Cards and statistics in bevelled panels. */
.theme-neon .ab-card, .theme-neon .ab-stat, .theme-neon .ab-clues { padding: 12px 14px 12px; border: 1px solid var(--accent-2); background: var(--well); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.theme-neon .ab-card-title { font-size: 20px; color: #f4f5fa; }
.theme-neon .ab-card-title::before { font-family: var(--font-mono); font-weight: 600; font-size: 10px; color: var(--accent-2); letter-spacing: 0; }
.theme-neon .ab-card-label { font-family: var(--font-text); font-weight: 400; font-size: 13px; color: var(--muted); }
.theme-neon .ab-stat { padding: 0; border-top: 1px solid var(--accent-2); border-bottom: 1px solid var(--accent-2); }
.theme-neon .ab-stat-core > div, .theme-neon .ab-stat-abilities > div { background: var(--cell); }
.theme-neon .ab-clues { border-color: var(--rule); background: var(--tint); }
.theme-neon .ab-clues-head { font-family: var(--font-display); font-size: 16px; }
.theme-neon .ab-clue { border-top-color: var(--rule-light); }
.theme-neon .ab-clue-box { border-color: var(--accent-2); }
.theme-neon .ab-clock { border: 1px solid var(--rule); background: var(--tint); }
.theme-neon .ab-clock-seg { stroke: var(--muted); }
.theme-neon .ab-clock-ring { stroke: var(--accent-2); }

/* Print: white paper, the same accents, nothing glowing. */
@media print {
  .theme-neon { --paper: #fff; --ink: #16181f; --muted: #555b6b; --rule: #cfd3de; --rule-light: #e3e6ee; --tint: #f3f4f8; --cell: #f7f8fb; --acc-l: 0.5; --acc2-l: 0.38; --panel: #fff; --well: #fff; }
  .theme-neon .ab-page { background: #fff; }
  .theme-neon .ab-chapter, .theme-neon .ab-location, .theme-neon .ab-card-title, .theme-neon .ab-read { color: var(--ink); }
  .theme-neon .ab-chapter::before { color: var(--accent); text-shadow: none; }
  .theme-neon .ab-read { background: color-mix(in oklab, var(--accent) 6%, #fff); }
  .theme-neon .ab-card, .theme-neon .ab-stat, .theme-neon .ab-clues { background: #fff; }
}

/* Sub-theme "Konzern-Dossier" (Cyberpunk) on the neon city, in daylight: a glossy corporate report. Cool white,
   graphite and one hue (magenta by default). Its own anatomy: crop and registration marks as the frame and a thin
   colour stripe at the page edge, the chapter number as a large figure next to the title with a bar chart, read-aloud
   text as a memo under a colour bar, places on asset labels, persons on ID cards with rounded corners and a bar code,
   tables with alternating rows. No real or fictional corporation, nothing like banknotes or security documents.
   Chakra Petch for titles, Public Sans for text, JetBrains Mono for labels. */
.theme-konzern {
  --paper: #f9fafc; --ink: #1f2227; --muted: #5a5e65; --acc-l: 0.5; --acc2-l: 0.36; --accent-soft: var(--accent);
  --rule: #bbbec3; --rule-light: #dcdee1; --tint: color-mix(in oklab, var(--accent) 6%, var(--paper)); --cell: #f5f7f9; --panel: var(--tint); --well: var(--cell);
  --glow-a: transparent; --glow-b: transparent; --dots: transparent;
  --font-text: 'Public Sans', 'Segoe UI', sans-serif; --font-label: 'JetBrains Mono', ui-monospace, monospace; --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --frame-color: var(--ink); --div-color: var(--accent); --mark-color: var(--ink); --mark-ink: var(--paper);
}
/* A thin stripe in the accent along the left page edge (under 1 % of the page). */
.theme-konzern .ab-page { background: linear-gradient(var(--accent), var(--accent)) 0 0 / 6px 100% no-repeat, var(--paper); }
.theme-konzern .ab-chapter, .theme-konzern .ab-location, .theme-konzern .ab-card-title, .theme-konzern .ab-read { color: var(--ink); }
/* Chapter: the number as a large figure, the title beside it, a bar chart at the right, a firm rule below. */
.theme-konzern .ab-chapter { grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; min-height: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 40px; line-height: 44px; }
.theme-konzern[data-headpiece='on'] .ab-chapter { padding-right: 200px; }
.theme-konzern .ab-chapter::before { content: counter(chapter, decimal-leading-zero); width: auto; height: auto; border: 0; background: none; clip-path: none; font-size: 104px; line-height: 0.84; letter-spacing: -0.04em; color: var(--accent); text-shadow: none; }
.theme-konzern .ab-chapter::after { content: ''; position: absolute; right: 0; bottom: 14px; width: 190px; height: 40px; background: var(--accent);
  -webkit-mask: var(--o-head-bars) center / contain no-repeat; mask: var(--o-head-bars) center / contain no-repeat; }
.theme-konzern[data-headpiece='off'] .ab-chapter::after { display: none; }
/* Read-aloud as a memo under a colour bar. */
.theme-konzern .ab-read { padding: 10px 14px 12px; border: 0; border-top: 4px solid var(--accent); background: var(--tint); clip-path: none; }
.theme-konzern .ab-read strong { color: var(--ink); }
/* Persons and encounters on ID cards: rounded corners, a colour line, a bar code. */
.theme-konzern .ab-card { padding: 10px 14px 30px; border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 10px; background: var(--cell); clip-path: none; }
.theme-konzern .ab-card::after { content: ''; position: absolute; right: 14px; bottom: 8px; width: 64px; height: 16px; background: var(--ink); -webkit-mask: var(--o-barcode) center / contain no-repeat; mask: var(--o-barcode) center / contain no-repeat; }
.theme-konzern .ab-stat, .theme-konzern .ab-clues { background: var(--cell); clip-path: none; border-radius: 8px; }
.theme-konzern .ab-paragraph > strong:first-child { color: var(--accent-2); }
.theme-konzern .ab-head-chapter { color: var(--accent); }
.theme-konzern .ab-location::before { font-size: 11px; }
/* Tables with alternating rows. */
.theme-konzern .ab-table-rows > li:nth-child(odd) { background: var(--cell); }
.theme-konzern .ab-table-head { border-bottom: 2px solid var(--ink); }

/* Theme "Grenzstadt" (Western): wood-type playbill, brass rules, ledger. Libre Caslon Text for text, Sancreek for one
   or two words, Holtwood One SC for headings. No playing-card motifs, no clichés about indigenous cultures. */
.theme-grenzstadt {
  --paper: #f5e8d1; --ink: #2d1e14; --muted: #6d523b; --ledger: #8aaabd; --ledger-red: #b86654;
  --rule: #aa8c6a; --rule-light: #d3bf9f; --tint: #faf3e3; --cell: #fbf6ea;
  --font-text: 'Libre Caslon Text', Georgia, serif; --font-display: 'Holtwood One SC', serif; --font-label: 'Holtwood One SC', serif; --font-poster: 'Sancreek', serif;
  --text-size: 13px; --text-leading: 20px;
  --body-left: 58px; --body-right: 58px; --body-top: 70px; --body-bottom: 84px; --column-gap: 28px;
  --vignette: rgba(170, 140, 106, 0.22); --frame-color: var(--ink);
  --initial-font: 'Holtwood One SC', serif; --initial-weight: 400; --initial-size: 32px; --initial-fill: var(--ink);
}
.theme-grenzstadt .ab-page { background: radial-gradient(ellipse 72% 72% at 50% 50%, transparent 74%, var(--vignette) 100%), var(--paper); }
.theme-grenzstadt .ab-head { top: 36px; font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.theme-grenzstadt .ab-foot { bottom: 30px; }
.theme-grenzstadt .ab-folio { display: flex; align-items: center; gap: 12px; font-family: var(--font-label); font-weight: 400; font-size: 14px; }
.theme-grenzstadt .ab-folio::before, .theme-grenzstadt .ab-folio::after { content: ''; width: 90px; height: 8px; background: linear-gradient(var(--ink), var(--ink)) 0 1.5px / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 6px / 100% 0.8px no-repeat; }

/* Chapter as a playbill: thick and thin rules, the part in red, the title in Sancreek, the divider ornament below. */
.theme-grenzstadt .ab-chapter { padding: 14px 0 14px; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 3px / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 3px) / 100% 1px no-repeat; font-family: var(--font-poster); font-weight: 400; font-size: 58px; line-height: 64px; color: var(--ink); }
.theme-grenzstadt .ab-chapter::before { margin-bottom: 4px; font-weight: 400; font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.theme-grenzstadt .ab-chapter::after { content: ''; display: block; width: var(--div-w); height: var(--div-h); margin: 6px auto 0; background: var(--div-color);
  -webkit-mask: var(--o-div) center / contain no-repeat; mask: var(--o-div) center / contain no-repeat; }
.theme-grenzstadt[data-divider='rule'] .ab-chapter::after { display: none; }

/* Place: the number on a star by default. */
.theme-grenzstadt .ab-location { align-items: center; font-weight: 400; font-size: 17px; line-height: 22px; }
.theme-grenzstadt .ab-location::before { font-family: var(--font-label); font-size: 10px; line-height: 12px; color: var(--ink); }
.theme-grenzstadt .ab-paragraph > strong:first-child { color: var(--ink); font-weight: 700; }

/* Read-aloud as a notice with a double frame and sparks in the corners. */
.theme-grenzstadt .ab-read { padding: 12px 16px 13px; border: 1px solid var(--ink); outline: 3px double var(--ink); outline-offset: 3px; font-size: 13.5px; line-height: 20px; }
.theme-grenzstadt .ab-read::before, .theme-grenzstadt .ab-read::after { content: ''; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; background: var(--accent);
  -webkit-mask: var(--o-sparkle) center / contain no-repeat; mask: var(--o-sparkle) center / contain no-repeat; }
.theme-grenzstadt .ab-read::after { left: auto; top: auto; right: 3px; bottom: 3px; }
.theme-grenzstadt .ab-read strong { color: var(--ink); font-weight: 700; }

.theme-grenzstadt .ab-gm { padding: 9px 0 10px; border-top: 2px solid var(--ink); border-bottom: 0.8px solid var(--ink); }
.theme-grenzstadt .ab-gm-label { font-weight: 400; font-size: 12px; color: var(--accent); }
.theme-grenzstadt .ab-table-head { padding-bottom: 4px; border-bottom: 3px double var(--ink); }
.theme-grenzstadt .ab-table-title { font-weight: 400; font-size: 14px; }
.theme-grenzstadt .ab-table-die { font-weight: 400; font-size: 12px; }
.theme-grenzstadt .ab-table-rows > li { border-bottom: 1px dotted var(--rule); font-size: 12.5px; line-height: 18px; }
.theme-grenzstadt .ab-table-rows > li::before { font-family: var(--font-label); font-weight: 400; color: var(--accent); }

/* Cards and statistics with a firm frame, like a printed form. */
.theme-grenzstadt .ab-card, .theme-grenzstadt .ab-stat { padding: 10px 12px 10px; border: 2px solid var(--ink); background: var(--tint); }
.theme-grenzstadt .ab-card-title { font-weight: 400; font-size: 16px; line-height: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.theme-grenzstadt .ab-card-title::before { font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.theme-grenzstadt .ab-card-field { border-bottom: 1px dotted var(--rule); }
.theme-grenzstadt .ab-card-label { font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.theme-grenzstadt .ab-stat { --accent-2: var(--ink); padding: 0; }
.theme-grenzstadt .ab-stat-name { font-weight: 400; font-size: 17px; }
.theme-grenzstadt .ab-clues { border-top: 3px double var(--ink); }
.theme-grenzstadt .ab-clues-head { font-weight: 400; font-size: 13px; }
.theme-grenzstadt .ab-clue { border-top: 1px dotted var(--rule); }
.theme-grenzstadt .ab-clock { border: 2px solid var(--ink); background: var(--tint); }
.theme-grenzstadt .ab-clock-title { font-weight: 400; font-size: 14px; }

@media print { .theme-grenzstadt { --paper: #fff; --tint: #fbf7ef; --vignette: transparent; } }
/* Libre Caslon's italic carries a historical st ligature: common ligatures off. */
.theme-grenzstadt { font-variant-ligatures: no-common-ligatures; }

/* Sub-theme "Gilden und Gaunerstücke" (Fantasy) on the frontier town: guild charters, ledgers and sealed orders for
   city adventures and heists. Ledger cream, black and one hue (sealing-wax red by default). Its own anatomy: a ledger
   frame on the chapter openings, the chapter as a charter heading with a ribbon and a wax seal, read-aloud text as a
   sealed letter, places on a seal, persons and encounters as ledger accounts with a margin rule, a key between scenes.
   Old Standard TT for text and titles, Holtwood One SC only for short notices and numbers. */
.theme-gilden {
  --paper: #f5f0e0; --ink: #1e1a16; --muted: #5f564c; --rule: #afa793;
  --rule-light: #d7d1bf; --tint: #eee8d6; --cell: #f7f3e8; --vignette: transparent;
  --font-text: 'Old Standard TT', 'Times New Roman', serif; --font-poster: 'Old Standard TT', 'Times New Roman', serif;
  --text-size: 13.5px; --text-leading: 20px;
  --frame-color: var(--accent-2); --initial-fill: var(--accent);
}
/* Chapter as a charter heading: hairline double rules, the part on a ribbon, the seal under the title. */
.ab-canvas.theme-gilden .ab-chapter { padding: 12px 0 10px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); background: none; font-weight: 700; font-size: 42px; line-height: 50px; }
.theme-gilden .ab-chapter::before { display: table; margin: 0 auto 8px; padding: 2px 16px 3px; border: 1px solid var(--accent); border-left-width: 6px; border-right-width: 6px; background: none; font-family: var(--font-text); font-style: italic; font-size: 13px; letter-spacing: 0.04em; color: var(--accent); }
.ab-canvas.theme-gilden[data-headpiece='on'] .ab-chapter::after { display: block; width: 220px; height: 46px; margin: 4px auto 0; -webkit-mask-image: var(--o-head-seal); mask-image: var(--o-head-seal); background: var(--accent); }
/* Read-aloud as a sealed letter: a fold line at the top, the seal at the lower right. */
.theme-gilden .ab-read { padding: 12px 16px 16px; border: 1px solid var(--rule); outline: 0; background: linear-gradient(var(--rule-light), var(--rule-light)) 0 6px / 100% 1px no-repeat, var(--cell); font-size: 13.5px; }
.theme-gilden .ab-read::before { display: none; }
.theme-gilden .ab-read::after { right: 8px; bottom: -10px; width: 26px; height: 26px; background: var(--accent); -webkit-mask-image: var(--o-seal); mask-image: var(--o-seal); }
.theme-gilden .ab-location { font-family: var(--font-text); font-weight: 700; font-size: 18px; font-variant-caps: small-caps; letter-spacing: 0.04em; }
/* Ledger: ruled rows with numbers in the second tone, accounts with a margin rule. */
.theme-gilden .ab-table-rows > li { border-bottom: 1px solid var(--rule-light); }
.theme-gilden .ab-table-rows > li::before { color: var(--accent-2); }
.theme-gilden .ab-card, .theme-gilden .ab-stat { border-width: 1px; border-color: var(--rule); border-top: 3px double var(--ink); background: var(--cell); }
.theme-gilden .ab-card-title { font-family: var(--font-text); font-weight: 700; font-size: 17px; font-variant-caps: small-caps; }
.theme-gilden .ab-card-field { border-bottom: 1px solid var(--rule-light); }
.theme-gilden .ab-card-text { padding-left: 8px; border-left: 1px solid var(--accent); }
.theme-gilden .ab-card-label, .theme-gilden .ab-card-title::before { color: var(--accent-2); }
.theme-gilden .ab-gm { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-style: italic; }

/* Theme "Ermittlung" (Gegenwart) as a case file: form header, margin numbers, plain grey panels, one red. Newsreader for
   text, Public Sans for headings, JetBrains Mono for numbers and times. No real authorities, no messenger look. */
.theme-ermittlung {
  --paper: #f6f6f3; --ink: #16191c; --muted: #5b6167; --manila: #e6d2a8;
  --rule: #c8c7c2; --rule-light: #e1e0dc; --tint: #eaeae6; --cell: #fff;
  --font-text: 'Newsreader', Georgia, serif; --font-display: 'Public Sans', 'Segoe UI', sans-serif; --font-label: 'Public Sans', 'Segoe UI', sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-size: 14px; --text-leading: 20px;
  --body-left: 56px; --body-right: 56px; --body-top: 112px; --body-bottom: 84px; --column-gap: 32px;
  --frame-color: var(--ink); --div-color: var(--ink); --mark-color: var(--accent);
  --initial-font: 'Public Sans', sans-serif; --initial-weight: 800; --initial-size: 40px; --initial-leading: 36px;
}
/* Punch holes at the left edge (paper texture). */
.theme-ermittlung .ab-page { background: radial-gradient(circle at 13px 410px, transparent 5.5px, var(--rule) 5.6px, var(--rule) 6.6px, transparent 6.7px), radial-gradient(circle at 13px 712px, transparent 5.5px, var(--rule) 5.6px, var(--rule) 6.6px, transparent 6.7px), var(--paper); }
/* File header as a form band. */
.theme-ermittlung .ab-head { top: 36px; display: grid; grid-template-columns: 1.8fr 1.6fr; gap: 0; padding: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 13px; color: var(--ink); }
.theme-ermittlung .ab-head > span { padding: 6px 10px 7px 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-ermittlung .ab-head-chapter { padding-left: 10px !important; border-left: 1px solid var(--rule); }
.theme-ermittlung .ab-head > span::before { display: block; font-weight: 600; font-size: 10px; line-height: 13px; color: var(--muted); }
.theme-ermittlung .ab-head-title::before { content: 'Fall'; }
.theme-ermittlung .ab-head-chapter::before { content: 'Abschnitt'; }
.theme-ermittlung .ab-foot { justify-content: space-between; bottom: 30px; padding-top: 8px; border-top: 1px solid var(--ink); font-size: 11px; }
.theme-ermittlung .ab-foot-title { display: inline; }
.theme-ermittlung .ab-folio { font-weight: 700; }

/* Chapter: red kicker, bold sans title, left aligned. */
.theme-ermittlung .ab-chapter { text-align: left; font-weight: 800; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.theme-ermittlung .ab-chapter::before { font-size: 12px; letter-spacing: 0; color: var(--accent); }

/* Margin numbers for every paragraph: entries can be cited ("Rn. 22"). */
.theme-ermittlung .ab-flow > .ab-paragraph::before { counter-increment: rn; content: counter(rn); position: absolute; left: -30px; top: 2px; width: 22px; text-align: right; font-family: var(--font-mono); font-size: 9.5px; line-height: 16px; color: var(--muted); }
.theme-ermittlung .ab-paragraph > strong:first-child { font-family: var(--font-label); font-size: 13px; color: var(--ink); }

/* Place: red number, a heavy rule above. */
.theme-ermittlung .ab-location { padding-top: 8px; border-top: 2px solid var(--ink); font-weight: 700; font-size: 20px; line-height: 24px; }
.theme-ermittlung .ab-location::before { font-weight: 800; font-size: 24px; color: var(--accent); }
.theme-ermittlung .ab-read { padding: 10px 14px 12px; border-left: 3px solid var(--ink); background: var(--tint); font-size: 15px; line-height: 21px; }
.theme-ermittlung .ab-read::before { content: 'Vorlesen'; display: block; margin-bottom: 4px; font-family: var(--font-label); font-style: normal; font-weight: 600; font-size: 10.5px; line-height: 14px; color: var(--muted); }
.theme-ermittlung .ab-read strong { color: var(--ink); font-weight: 600; }
.theme-ermittlung .ab-gm { padding: 9px 12px 11px; border: 0; border-left: 3px solid var(--ink); background: var(--tint); font-size: 13.5px; line-height: 19px; }
.theme-ermittlung .ab-gm-label { font-size: 11.5px; color: var(--ink); }

.theme-ermittlung .ab-table-head { border-bottom: 2px solid var(--ink); }
.theme-ermittlung .ab-table-die { color: var(--accent); }
.theme-ermittlung .ab-table-rows > li::before { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.theme-ermittlung .ab-card { padding-top: 8px; border-top: 2px solid var(--ink); }
.theme-ermittlung .ab-card-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.theme-ermittlung .ab-card-title::before { order: 2; font-weight: 500; font-size: 11.5px; letter-spacing: 0; color: var(--muted); }
.theme-ermittlung .ab-card-label { font-weight: 600; font-size: 11px; }
/* Evidence: what the group can find out, in a white box under a red rule. */
.theme-ermittlung .ab-clues { padding: 10px 12px 8px; border: 1px solid var(--rule); border-top: 2px solid var(--accent); background: var(--cell); }
.theme-ermittlung .ab-clues-head { font-size: 14px; }
.theme-ermittlung .ab-clue { border-top: 1px solid var(--tint); }
.theme-ermittlung .ab-clock { border: 1px solid var(--ink); }
.theme-ermittlung .ab-clock-on { fill: var(--accent); }
.theme-ermittlung .ab-stat { --accent-2: var(--ink); background: var(--cell); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }

@media print { .theme-ermittlung { --paper: #fff; } }

/* Sub-theme "Verschwörung" (Gegenwart) on the case file: a Cold War file. Manila white, carbon and one stamp hue
   (red by default). Its own anatomy: a banner at head and foot says what the pages are, "Nur für die Spielleitung";
   a file tab on chapter openings, the chapter part as a tilted stamp, read-aloud text as a transcript between dashed
   rules, places in a stamp, persons on index cards held by a paper clip, notes for the game master on a pinned slip,
   a ring between scenes. No real authority, seal or classification. Courier Prime only for documents. */
.theme-verschwoerung {
  --paper: #f9f3e5; --ink: #191b1d; --muted: #55585e; --manila: color-mix(in oklab, var(--rule) 40%, var(--paper));
  --rule: #b7b0a3; --rule-light: #d9d4c7; --tint: #f0e9d9; --cell: #faf6ee;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --frame-color: var(--ink); --div-color: var(--accent); --mark-color: var(--accent); --mark-ink: var(--accent);
}
/* Punch holes as in the case file, and a file tab at the top of a chapter opening. */
.theme-verschwoerung .ab-page { background: radial-gradient(circle at 13px 410px, transparent 5.5px, var(--rule) 5.6px, var(--rule) 6.6px, transparent 6.7px), radial-gradient(circle at 13px 712px, transparent 5.5px, var(--rule) 5.6px, var(--rule) 6.6px, transparent 6.7px), var(--paper); }
.theme-verschwoerung .ab-page[data-opener] { background: linear-gradient(var(--manila), var(--manila)) 56px 0 / 190px 14px no-repeat, radial-gradient(circle at 13px 410px, transparent 5.5px, var(--rule) 5.6px, var(--rule) 6.6px, transparent 6.7px), radial-gradient(circle at 13px 712px, transparent 5.5px, var(--rule) 5.6px, var(--rule) 6.6px, transparent 6.7px), var(--paper); }
/* The banner at head and foot, centred between the frame's rules. */
.theme-verschwoerung[data-frame='banner'] .ab-page::after, .theme-verschwoerung[data-frame='banner'] .ab-foot::after { content: 'Nur für die Spielleitung'; position: absolute; left: 0; right: 0; top: 17px; text-align: center; font: 700 9.5px/14px var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.theme-verschwoerung[data-frame='banner'] .ab-foot::after { top: auto; bottom: -13px; }
/* Chapter: the part as a tilted rubber stamp above the title. */
.theme-verschwoerung .ab-chapter::before { display: table; margin-bottom: 10px; padding: 3px 10px 2px; border: 2px solid var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-3deg); transform-origin: left center; }
.theme-verschwoerung .ab-location::before { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.theme-verschwoerung:not([data-marker='plain']) .ab-location::after { top: calc(50% + 4px - var(--mark-h) / 2); }
/* Read-aloud as a transcript between dashed rules. */
.theme-verschwoerung .ab-read { padding: 8px 2px 10px; border: 0; border-top: 1.5px dashed var(--ink); border-bottom: 1.5px dashed var(--ink); background: none; }
.theme-verschwoerung .ab-read::before { content: 'Abschrift zum Vorlesen'; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
/* Notes for the game master on a pinned slip. */
.theme-verschwoerung .ab-gm { padding: 14px 12px 10px; border: 0; background: color-mix(in oklab, var(--accent) 7%, var(--paper)); box-shadow: 1px 2px 0 color-mix(in oklab, var(--ink) 12%, transparent); }
.theme-verschwoerung .ab-gm::before { content: ''; position: absolute; left: calc(50% - 7px); top: -6px; width: 14px; height: 14px; background: var(--accent); -webkit-mask: var(--o-pin) center / contain no-repeat; mask: var(--o-pin) center / contain no-repeat; }
/* Persons on index cards held by a paper clip. */
.theme-verschwoerung .ab-card { padding: 10px 12px 8px; border: 1px solid var(--rule); border-top: 1px solid var(--rule); background: var(--cell); }
.theme-verschwoerung .ab-card::after { content: ''; position: absolute; right: 16px; top: -12px; width: 12px; height: 34px; background: var(--muted); -webkit-mask: var(--o-paperclip) center / contain no-repeat; mask: var(--o-paperclip) center / contain no-repeat; }
.theme-verschwoerung .ab-clues { border-top-color: var(--accent-2); }

/* Sub-theme "Urban Fantasy" (Gegenwart) on the case file: transit diagrams and street signs with notes in the margin.
   White, black and one hue (night violet by default). Its own anatomy: the running head as a coloured line, a transit
   line with stations over the chapter title in tall capitals, read-aloud text as a poster with a heavy side bar and a
   quotation mark, places as stations, notes for the game master as handwritten margin notes, persons on ticket stubs.
   No real transport network or its signs. Big Shoulders Display for titles, Newsreader for text. */
.theme-urban {
  --paper: #fafafc; --ink: #16151b; --muted: #5a5a63;
  --rule: #bdbdc4; --rule-light: #dedde2; --tint: color-mix(in oklab, var(--accent) 6%, var(--paper)); --cell: #f6f6fa;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --frame-color: var(--accent); --div-color: var(--accent); --mark-color: var(--accent); --mark-ink: var(--ink);
  --initial-font: 'Big Shoulders Display', sans-serif; --initial-weight: 800; --initial-size: 52px; --initial-leading: 44px; --initial-color: var(--accent);
}
.theme-urban .ab-page { background: var(--paper); }
/* Running head as a line: a coloured bar with the title and the chapter as its stops. */
.theme-urban .ab-head { border-top: 4px solid var(--accent); border-bottom: 0; }
.theme-urban .ab-head > span::before { content: none; }
.theme-urban .ab-head-chapter { border-left: 0 !important; color: var(--accent); text-align: right; }
/* No margin numbers: the margin is for notes. */
.theme-urban .ab-paragraph::before { content: none; }
/* Chapter: a transit line with stations over the title in tall capitals. */
.theme-urban .ab-chapter { padding-bottom: 0; border-bottom: 0; font-weight: 800; font-size: 54px; line-height: 52px; letter-spacing: 0.01em; text-transform: uppercase; }
.theme-urban[data-headpiece='on'] .ab-chapter { padding-top: 40px; }
.theme-urban .ab-chapter::after { content: ''; position: absolute; left: -8px; top: 0; width: 240px; height: 28px; background: var(--accent);
  -webkit-mask: var(--o-head-line) center / contain no-repeat; mask: var(--o-head-line) center / contain no-repeat; }
.theme-urban[data-headpiece='off'] .ab-chapter::after { display: none; }
.theme-urban .ab-location { padding-top: 0; border-top: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 26px; }
.theme-urban .ab-location::before { font-family: var(--font-label); font-weight: 700; font-size: 12px; }
/* Read-aloud as a poster: a heavy side bar, a quotation mark, large text. */
.theme-urban .ab-read { padding: 12px 40px 12px 16px; border-left: 6px solid var(--accent); background: var(--tint); font-size: 15px; line-height: 21px; }
.theme-urban .ab-read::before { display: none; }
.theme-urban .ab-read::after { content: ''; position: absolute; right: 10px; top: 10px; width: 24px; height: 19px; background: var(--accent); -webkit-mask: var(--o-quote) center / contain no-repeat; mask: var(--o-quote) center / contain no-repeat; }
/* Notes for the game master as margin notes: italic, a dotted rule, no panel. */
.theme-urban .ab-gm { padding: 4px 0 4px 12px; border: 0; border-left: 2px dotted var(--accent); background: none; font-style: italic; }
.theme-urban .ab-gm-label { font-style: normal; color: var(--accent); }
/* Persons on ticket stubs: dashed edge and two punched notches. */
.theme-urban .ab-card { padding: 8px 16px 8px; border: 1px dashed var(--rule); border-top: 1px dashed var(--rule);
  background: radial-gradient(circle at 0 50%, var(--paper) 7px, transparent 7.5px), radial-gradient(circle at 100% 50%, var(--paper) 7px, transparent 7.5px), var(--cell); }
.theme-urban .ab-card-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.theme-urban .ab-chapter + .ab-paragraph::first-letter { text-transform: uppercase; }
