/*! clio.css 2.0.2 | MIT | https://surfine.github.io/clio.css/
 * clio.css draws five eras: System 6, System 7, Mac OS 8.5 Drawing Board, Mac OS 9 Platinum and NeXTSTEP 3.3.
 * This file: the four Classic eras, System 6 by default (NeXTSTEP is clio.nextstep.css).
 * Measured values traced to AI System 6; see EVIDENCE.md.
 * Includes art from system.css (MIT) and pixel reconstructions of Apple control art; see THIRD-PARTY.md. */
/* Clio Sans '84: Chicago 12 rebuilt pixel for pixel from System 6.0.8
   (fonts-src/clio-sans-84.txt). Every pixel is a square on a 1200-unit em, so
   at 12px and its multiples it draws exactly the original bitmap. */
@font-face {
  font-family: "Clio Sans '84";
  src: url("fonts/ClioSans84.woff2") format("woff2");
  font-display: swap;
}

/* Clio Text '84: Geneva 12, and Clio Text '84 9: Geneva 9, rebuilt the same
   way (fonts-src/clio-text-84*.txt). */
@font-face {
  font-family: "Clio Text '84";
  src: url("fonts/ClioText84.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Clio Text '84 9";
  src: url("fonts/ClioText84-9.woff2") format("woff2");
  font-display: swap;
}

/* Clio Sans '97: Charcoal 12 rebuilt the same way from Mac OS 9.0's Key Caps
   (fonts-src/clio-sans-97.txt). Charcoal has one weight, so the face covers
   every weight and the browser never thickens it. */
/* Each colour face is declared twice: the Plain file alone first, then both. An
   engine that cannot parse tech() (Safari before 17) drops the second rule and
   keeps the first instead of losing the face. */
@font-face {
  font-family: "Clio Sans '97";
  src: url("fonts/ClioSans97Plain.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Clio Sans '97";
  src: url("fonts/ClioSans97.woff2") format("woff2") tech(color-COLRv1),
    url("fonts/ClioSans97Plain.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Clio Sans '97's antialiasing is COLRv1 colour layers. A browser without
   COLRv1 (Safari) would paint every layer solid, so it gets the Plain file:
   the same levels as COLRv0 layers, which Safari draws (fully covered pixels
   in the text colour, the others black at their alpha unless a palette below
   recolours them), over outlines for browsers with no colour fonts. */
/* Clio Sans '97 Title: the same face as window titles draw it (a few faint
   pixels fewer than menus and buttons), for title bars only. */
@font-face {
  font-family: "Clio Sans '97 Title";
  src: url("fonts/ClioSans97TitlePlain.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Clio Sans '97 Title";
  src: url("fonts/ClioSans97Title.woff2") format("woff2") tech(color-COLRv1),
    url("fonts/ClioSans97TitlePlain.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Clio Sans '97 Exact and Clio Sans '97 Title Exact: the same glyphs with
   each antialiasing level painted from a palette entry, so the palettes below
   give, for clio.css's own title and button colours, the very pixels Mac OS
   blends ((fg * a + bg * (255 - a)) >> 8). They ignore the text colour: a
   page that recolours a title or a button label also sets --clio-font-window-title
   or --clio-font-button back to a stack without "Exact", and gets Clio Sans
   '97 in its colour, within one level of the real screen. */
@font-face {
  font-family: "Clio Sans '97 Exact";
  src: url("fonts/ClioSans97PlainExact.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Clio Sans '97 Exact";
  src: url("fonts/ClioSans97Exact.woff2") format("woff2") tech(color-COLRv1),
    url("fonts/ClioSans97PlainExact.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Clio Sans '97 Title Exact";
  src: url("fonts/ClioSans97TitlePlainExact.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Clio Sans '97 Title Exact";
  src: url("fonts/ClioSans97TitleExact.woff2") format("woff2") tech(color-COLRv1),
    url("fonts/ClioSans97TitlePlainExact.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Written by tooling/aa-palettes.py. */
@font-palette-values --clio-aa-p9-title {
  font-family: "Clio Sans '97 Title Exact";
  override-colors:
    0 #bebebe,
    1 #b0b0b0,
    2 #a2a2a2,
    3 #959595,
    4 #878787,
    5 #7a7a7a,
    6 #6c6c6c,
    7 #5f5f5f,
    8 #515151,
    9 #444444,
    10 #363636,
    11 #282828,
    12 #1b1b1b,
    13 #0d0d0d,
    14 #000000;
}

@font-palette-values --clio-aa-p9-title-inactive {
  font-family: "Clio Sans '97 Title Exact";
  override-colors:
    0 #c5c5c5,
    1 #bfbfbf,
    2 #bababa,
    3 #b4b4b4,
    4 #aeaeae,
    5 #a9a9a9,
    6 #a3a3a3,
    7 #9e9e9e,
    8 #989898,
    9 #929292,
    10 #8d8d8d,
    11 #878787,
    12 #818181,
    13 #7c7c7c,
    14 #777777;
}

@font-palette-values --clio-aa-p9-button {
  font-family: "Clio Sans '97 Exact";
  override-colors:
    0 #cecece,
    1 #bfbfbf,
    2 #b0b0b0,
    3 #a2a2a2,
    4 #939393,
    5 #848484,
    6 #757575,
    7 #676767,
    8 #585858,
    9 #494949,
    10 #3a3a3a,
    11 #2c2c2c,
    12 #1d1d1d,
    13 #0e0e0e,
    14 #000000;
}

@font-palette-values --clio-aa-p9-button-held {
  font-family: "Clio Sans '97 Exact";
  override-colors:
    0 #707070,
    1 #7a7a7a,
    2 #848484,
    3 #8e8e8e,
    4 #999999,
    5 #a3a3a3,
    6 #adadad,
    7 #b7b7b7,
    8 #c1c1c1,
    9 #cbcbcb,
    10 #d6d6d6,
    11 #e0e0e0,
    12 #eaeaea,
    13 #f4f4f4,
    14 #ffffff;
}

@font-palette-values --clio-aa-p9-button-disabled {
  font-family: "Clio Sans '97 Exact";
  override-colors:
    0 #d5d5d5,
    1 #cecece,
    2 #c7c7c7,
    3 #c1c1c1,
    4 #bababa,
    5 #b3b3b3,
    6 #acacac,
    7 #a5a5a5,
    8 #9f9f9f,
    9 #989898,
    10 #919191,
    11 #8a8a8a,
    12 #848484,
    13 #7d7d7d,
    14 #777777;
}

@font-palette-values --clio-aa-db-button {
  font-family: "Clio Sans '97 Exact";
  override-colors:
    0 #c3bcac,
    1 #b9b2a3,
    2 #aea89a,
    3 #a49e91,
    4 #999488,
    5 #8f8a80,
    6 #848077,
    7 #7a766e,
    8 #6f6c65,
    9 #65625d,
    10 #5a5854,
    11 #504e4b,
    12 #454442,
    13 #3b3a39,
    14 #313131;
}

@font-palette-values --clio-aa-db-button-disabled {
  font-family: "Clio Sans '97 Exact";
  override-colors:
    0 #cac2b2,
    1 #c6bfaf,
    2 #c3bcad,
    3 #c0b9ab,
    4 #bdb6a9,
    5 #bab3a7,
    6 #b7b0a4,
    7 #b4ada2,
    8 #b1aaa0,
    9 #ada89e,
    10 #aaa59c,
    11 #a7a299,
    12 #a49f97,
    13 #a19c95,
    14 #9c9c94;
}

@font-palette-values --clio-aa-rdoc-title {
  font-family: "Clio Sans '97 Title Exact";
  override-colors:
    0 #101010,
    1 #212121,
    2 #323232,
    3 #444444,
    4 #555555,
    5 #666666,
    6 #777777,
    7 #878787,
    8 #989898,
    9 #a9a9a9,
    10 #bababa,
    11 #cccccc,
    12 #dddddd,
    13 #eeeeee,
    14 #ffffff;
}

@font-palette-values --clio-aa-rdoc-title-inactive {
  font-family: "Clio Sans '97 Title Exact";
  override-colors:
    0 #eeeeee,
    1 #dddddd,
    2 #cccccc,
    3 #bababa,
    4 #a9a9a9,
    5 #989898,
    6 #878787,
    7 #777777,
    8 #666666,
    9 #555555,
    10 #444444,
    11 #323232,
    12 #212121,
    13 #101010,
    14 #000000;
}

/* COLRv0 edge levels in other text colours (Safari; Chrome's COLRv1 file
   follows the text colour by itself and ignores these): white for chosen
   menu titles, items and icon labels, #6f6f6f for dimmed items. */
@font-palette-values --clio-aa-white {
  font-family: "Clio Sans '97";
  override-colors:
    0 rgb(255 255 255 / 0.0667),
    1 rgb(255 255 255 / 0.1333),
    2 rgb(255 255 255 / 0.2000),
    3 rgb(255 255 255 / 0.2667),
    4 rgb(255 255 255 / 0.3333),
    5 rgb(255 255 255 / 0.4000),
    6 rgb(255 255 255 / 0.4667),
    7 rgb(255 255 255 / 0.5333),
    8 rgb(255 255 255 / 0.6000),
    9 rgb(255 255 255 / 0.6667),
    10 rgb(255 255 255 / 0.7333),
    11 rgb(255 255 255 / 0.8000),
    12 rgb(255 255 255 / 0.8667),
    13 rgb(255 255 255 / 0.9333);
}

@font-palette-values --clio-aa-6f6f6f {
  font-family: "Clio Sans '97";
  override-colors:
    0 rgb(111 111 111 / 0.0667),
    1 rgb(111 111 111 / 0.1333),
    2 rgb(111 111 111 / 0.2000),
    3 rgb(111 111 111 / 0.2667),
    4 rgb(111 111 111 / 0.3333),
    5 rgb(111 111 111 / 0.4000),
    6 rgb(111 111 111 / 0.4667),
    7 rgb(111 111 111 / 0.5333),
    8 rgb(111 111 111 / 0.6000),
    9 rgb(111 111 111 / 0.6667),
    10 rgb(111 111 111 / 0.7333),
    11 rgb(111 111 111 / 0.8000),
    12 rgb(111 111 111 / 0.8667),
    13 rgb(111 111 111 / 0.9333);
}

/* Drawing Board's menu text (#313131) and dimmed text (#8c8c8c), for Safari's COLRv0 file. */
@font-palette-values --clio-aa-313131 {
  font-family: "Clio Sans '97";
  override-colors:
    0 rgb(49 49 49 / 0.0667),
    1 rgb(49 49 49 / 0.1333),
    2 rgb(49 49 49 / 0.2000),
    3 rgb(49 49 49 / 0.2667),
    4 rgb(49 49 49 / 0.3333),
    5 rgb(49 49 49 / 0.4000),
    6 rgb(49 49 49 / 0.4667),
    7 rgb(49 49 49 / 0.5333),
    8 rgb(49 49 49 / 0.6000),
    9 rgb(49 49 49 / 0.6667),
    10 rgb(49 49 49 / 0.7333),
    11 rgb(49 49 49 / 0.8000),
    12 rgb(49 49 49 / 0.8667),
    13 rgb(49 49 49 / 0.9333);
}

@font-palette-values --clio-aa-8c8c8c {
  font-family: "Clio Sans '97";
  override-colors:
    0 rgb(140 140 140 / 0.0667),
    1 rgb(140 140 140 / 0.1333),
    2 rgb(140 140 140 / 0.2000),
    3 rgb(140 140 140 / 0.2667),
    4 rgb(140 140 140 / 0.3333),
    5 rgb(140 140 140 / 0.4000),
    6 rgb(140 140 140 / 0.4667),
    7 rgb(140 140 140 / 0.5333),
    8 rgb(140 140 140 / 0.6000),
    9 rgb(140 140 140 / 0.6667),
    10 rgb(140 140 140 / 0.7333),
    11 rgb(140 140 140 / 0.8000),
    12 rgb(140 140 140 / 0.8667),
    13 rgb(140 140 140 / 0.9333);
}

/* Clio Sans '97 Display: Charcoal's outlines, traced from Mac OS 9.0 drawing it
   at 72 points (fonts/ClioSans97Display.woff2, tooling/trace-outline.py), for
   every size that is not 12px or a multiple of it. */
@font-face {
  font-family: "Clio Sans '97 Display";
  src: url("fonts/ClioSans97Display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Other fonts, each with a licence that allows it:
   - ChicagoFLF: a public-domain outline revival of Chicago (Robin Casady).
   - Asap (variable, wdth + wght): SIL OFL 1.1, Omnibus-Type. The legal
     stand-in for Charcoal that AI System 6 measured its Platinum title bar
     against (width axis 113 for text, 123 for titles); now the fallback
     behind Clio Sans '97.
   Apple's own faces (Chicago, Geneva, Charcoal, Monaco) are never shipped;
   the stacks below reach them only when the visitor already has them. */
@font-face {
  font-family: "ChicagoFLF";
  src: url("fonts/ChicagoFLF.woff2") format("woff2"),
       url("fonts/ChicagoFLF.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Clio Asap";
  src: url("fonts/Asap-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* Tokens: Macintosh System 6 is the default era. Measured values come from
   System 6.0.8 running in Infinite Mac, read from the emulator canvas 1:1
   (tooling/capture-system6.ts).
   Every value below is traceable in EVIDENCE.md. A value marked [M] there was
   measured from real pixels; [I] is inferred; [A] is a deliberate web
   adaptation (contrast, focus, touch). Platinum re-declares these tokens in
   90-platinum.css under [data-era="platinum"]. */
:root,
[data-era="system6"],
[data-era="system7"] {
  /* 1-bit palette. System 6 on a compact Mac had two colours. */
  --clio-ink: #000000;
  --clio-paper: #ffffff;
  --clio-face: #ffffff;
  /* [A] Disabled text: System 6 drew it through a 50% grey pattern; a solid
     grey keeps 5.6:1 on white instead of a dither the browser would blur. */
  --clio-disabled: #696969;
  /* Dimmed text is drawn through QuickDraw's 50% gray pattern, aligned to the
     screen: the ink where x + y is odd survives (measured, File menu). The
     pattern is fixed to the viewport the same way; #696969 is only the
     fallback colour where background-clip: text is missing. */
  --clio-disabled-dither: var(--clio-art-s6-gray50);
  --clio-disabled-fill: transparent;
  /* A dimmed pop-up menu: the whole control (frame, shadow, title, arrow) drawn
     through the 50% gray, the ink where x + y is odd surviving (System 7.5.3,
     Memory's Select Hard Disk with virtual memory off, measured). The pattern
     starts at the control's corner, not the screen's. */
  --clio-popup-disabled-mask: var(--clio-art-s6-gray50) 0 0 / 2px 2px;   /* a crisp 2x2 picture: a gradient blurs at 2x in Firefox */
  --clio-popup-disabled-fg: var(--clio-ink);
  --clio-selection-bg: #000000;
  --clio-selection-fg: #ffffff;

  /* Type. Chicago 12 is the system font; Geneva is the application font. */
  --clio-font-chrome: "Clio Sans '84", Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-text: "Clio Text '84", Geneva, "Helvetica Neue", Arial, sans-serif;
  /* Geneva 9: the Finder info line, icon names, status lines. */
  --clio-font-small: "Clio Text '84 9", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-text-smoothing: none;
  --clio-text-smoothing-moz: grayscale;   /* Firefox's nearest to none */
  --clio-font-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
  /* Chrome type at sizes other than 12px and its multiples (.display): an
     outline face, smoothed. */
  --clio-font-display: Chicago, "ChicagoFLF", Charcoal, "Helvetica Neue", Arial, sans-serif;
  --clio-font-size: 12px;
  /* A bitmap face: no antialiasing, so a glyph on a half pixel stays 1-bit. */
  --clio-font-smoothing: none;
  /* Geneva 9: the Finder info line and icon names. */
  --clio-font-size-small: 9px;
  --clio-chrome-weight: 400;
  --clio-font-stretch-text: normal;
  --clio-font-stretch-title: normal;

  /* Geometry */
  --clio-line: 1px;
  --clio-border: 1px solid var(--clio-ink);
  --clio-radius: 0;
  --clio-control-height: 20px;
  --clio-field-height: 20px;
  /* clio.js's insertion point: the font's line height, 16px for 12pt (System
     7.5.3, Find File's 20px field: rows 2-17), whatever the field's line-height. */
  --clio-caret-height: 16px;
  /* ...and its blink: CaretTime, 32 ticks lit and 32 dark (System 6.0.8 and 7.5.3 Find File;
     PRAM's factory value in the Mac IIx and Quadra 650 ROMs). */
  --clio-caret-ticks: 32;
  --clio-row-height: 16px;
  --clio-gap: 8px;

  /* Focus: [A] the era had no keyboard focus ring for buttons. A dotted frame
     is how System 6 drew a dragged outline, so it reads as native and cannot
     be confused with the default button's solid ring. */
  --clio-focus-outline: 1px dotted var(--clio-ink);
  --clio-focus-offset: 2px;

  /* Desktop */
  --clio-desktop: var(--clio-art-s6-desktop) 0 0 / 2px 2px repeat, #808080;

  /* Window frame and title bar [M: measured at the emulator's exact 2x] */
  --clio-window-bg: var(--clio-paper);
  --clio-pane-bg: var(--clio-paper);
  --clio-window-border: 1px solid var(--clio-ink);
  --clio-window-shadow: 1px 1px 0 var(--clio-ink);
  --clio-window-padding: 0;
  --clio-titlebar-height: 17px;
  --clio-titlebar-margin: 1px 0 0;
  --clio-titlebar-padding: 2px 1px;
  --clio-titlebar-border: 1px solid var(--clio-ink);
  --clio-titlebar-row: 12px;
  --clio-titlebar-stripe: 2px;
  --clio-titlebar-bg:
    linear-gradient(to bottom, var(--clio-ink) 0 1px, transparent 1px 2px)
      0 0 / 100% var(--clio-titlebar-stripe) repeat-y content-box content-box,
    var(--clio-paper);
  --clio-titlebar-inactive-bg: var(--clio-paper);
  --clio-title-font-size: 12px;
  --clio-title-bg: var(--clio-paper);
  --clio-title-fg: var(--clio-ink);
  --clio-title-inactive-fg: var(--clio-ink);
  --clio-title-padding: 0 0.5em;
  --clio-titlebar-slot: 18px;
  --clio-titlebar-shade-slot: 0px;
  --clio-shade-display: none;
  --clio-box-size: 11px;
  --clio-box-inset: 7px;
  /* 1px of paper between a box and the stripes (HD window, 6.0.8). */
  --clio-box-isolation: 1px;

  /* Menus */
  --clio-menubar-height: 20px;
  --clio-menubar-bg: var(--clio-paper);
  --clio-menubar-border: 1px solid var(--clio-ink);
  --clio-menubar-shadow: none;
  --clio-menubar-padding: 0 8px;
  /* "File" highlight is 41px wide: about 9px each side of the word. */
  --clio-menu-title-padding: 0 9px;
  /* The open title's highlight leaves the bar's top row white. */
  --clio-menu-title-inset: 1px;
  --clio-menu-title-active-bg: var(--clio-ink);
  --clio-menu-title-active-fg: var(--clio-paper);
  --clio-menu-title-active-shadow: none;
  --clio-menu-bg: var(--clio-paper);
  --clio-menu-border: 1px solid var(--clio-ink);
  /* A menu hangs from the bar's own rule; it draws no top line. */
  --clio-menu-border-top-width: 0;
  --clio-menu-shadow: 1px 1px 0 var(--clio-ink);
  --clio-menu-item-height: 16px;
  --clio-menu-item-padding: 0 12px 0 13px;
  --clio-menu-item-weight: 400;
  --clio-menu-item-active-bg: var(--clio-ink);
  --clio-menu-item-active-fg: var(--clio-paper);
  --clio-menu-item-active-shadow: none;
  /* A full 16px row with a 1-on 1-off dotted rule on its ninth line. */
  --clio-menu-separator:
    repeating-linear-gradient(to right, var(--clio-ink) 0 1px, transparent 1px 2px) 0 8px / 100% 1px no-repeat;
  --clio-menu-separator-height: 16px;

  /* Push buttons */
  --clio-button-bg: var(--clio-paper);
  --clio-button-fg: var(--clio-ink);
  --clio-button-border: 1px solid var(--clio-ink);
  /* 20px tall; the corner steps in 3, 1, 1 pixels on its first three rows
     (OK and Cancel, 6.0.8), which a 4.5px radius reproduces exactly. */
  /* The frame and the default ring are the real pixel staircases, cut from
     System 6.0.8's Alert and Save dialog (tooling/frame-art.py) and drawn with
     border-image; border-radius would antialias an arc. */
  --clio-button-radius: 0;
  --clio-button-frame: var(--clio-art-frame-s6-button);
  --clio-button-frame-held: var(--clio-art-frame-s6-button-held);
  --clio-button-frame-slice: 4;
  --clio-ring-frame: var(--clio-art-frame-s6-ring);
  --clio-ring-frame-slice: 7;
  --clio-popup-frame: none;
  --clio-popup-frame-slice: 3;
  --clio-button-shadow: 0 0 0 0 transparent;
  --clio-button-padding: 0 12px;
  --clio-button-min-width: 59px;
  --clio-button-weight: 400;
  --clio-button-active-bg: transparent;   /* the held frame carries the ink face */
  --clio-button-active-fg: var(--clio-paper);
  --clio-button-active-shadow: 0 0 0 0 transparent;
  /* Default button: Inside Macintosh's recipe is PenSize(3,3) around the
     button inset by -4, so a 1px gap then a 3px ring. */
  --clio-button-default-gap: 1px;
  --clio-button-default-width: 3px;
  --clio-button-default-radius: 8px;
  --clio-button-disabled-fg: var(--clio-disabled);
  --clio-button-disabled-border: 1px solid var(--clio-ink);

  /* Check boxes and radio buttons */
  --clio-check-size: 12px;
  --clio-check-bg: var(--clio-paper);
  --clio-check-border: 1px solid var(--clio-ink);
  --clio-check-shadow: none;
  --clio-check-mark: var(--clio-art-s6-check) 0 0 / 12px 12px no-repeat;
  --clio-check-mark-origin: border-box;
  --clio-check-pressed-border-width: 2px;
  --clio-radio-size: 12px;
  --clio-radio-off: var(--clio-art-s6-radio) 0 0 / 12px 12px no-repeat;
  --clio-radio-on: var(--clio-art-s6-radio-dot) 3px 3px / 6px 6px no-repeat, var(--clio-art-s6-radio) 0 0 / 12px 12px no-repeat;
  --clio-radio-pressed: var(--clio-art-s6-radio-focus) 0 0 / 12px 12px no-repeat;
  --clio-radio-pressed-on: var(--clio-art-s6-radio-dot) 3px 3px / 6px 6px no-repeat, var(--clio-art-s6-radio-focus) 0 0 / 12px 12px no-repeat;

  /* Text fields */
  --clio-field-bg: var(--clio-paper);
  --clio-field-border: 1px solid var(--clio-ink);
  --clio-field-shadow: none;
  /* Edit text: 1px frame, text inset 3px (Control Panel RAM cache field). */
  --clio-field-padding: 3px;
  --clio-field-focus-shadow: none;
  --clio-field-focus-outline: var(--clio-focus-outline);

  /* Pop-up menus */
  --clio-popup-bg: var(--clio-paper);
  --clio-popup-border: 1px solid var(--clio-ink);
  --clio-popup-radius: 0;
  --clio-popup-shadow: 1px 1px 0 var(--clio-ink);
  /* System 6 pop-up (Standard File folder menu, 6.0.8): an 18px box, 1px
     frame, 1px shadow, no arrow; held, it inverts. */
  --clio-popup-height: 18px;
  --clio-popup-padding: 0 8px;
  --clio-popup-arrow: none;
  --clio-popup-weight: 400;

  /* Scroll bars */
  /* The lane line plus 14px; the window frame is the 16th line. The lane is
     QuickDraw's ltGray, one dot in four. */
  --clio-scrollbar-size: 15px;
  --clio-scrollbar-track: var(--clio-art-s6-ltgray) 0 0 / 4px 2px repeat, #ffffff;
  /* clio.js scroll bars: System 6 and 7 drag an outline of the box and scroll
     on release; the box keeps one length, whatever the document's. */
  --clio-scrollbar-thumb-length: 16px;
  --clio-scrollbar-thumb-tracking: outline;
  --clio-scrollbar-thumb-overlap: 0px;
  --clio-scrollbar-thumb-after: none;
  /* clio.js: a held arrow or lane repeats at once (System 6 and 7's TrackControl
     calls the action on every pass while the button is down) */
  --clio-scrollbar-repeat-delay: 0ms;
  /* clio.js menus: System 6 and 7 menus stay open only while the button is held */
  --clio-menu-sticky: 0;
  /* clio.js: the grey outline of a dragged window (System 6.0.8 and 7.5.3: 1px) */
  --clio-drag-outline-width: 1px;
  /* ... around the window and its 1px shadow (both measured) */
  --clio-drag-outline-extra: 1px;
  /* clio.zoomRects() (System 7.5.3, measured): 8 outlines at (1.6^k - 1) / (1.6^8 - 1)
     of the way, 4 on screen at once */
  --clio-zoom-count: 8;
  --clio-zoom-steps: 8;
  --clio-zoom-ratio: 1.6;
  --clio-zoom-offset: 1;
  --clio-zoom-keep: 4;
  --clio-drag-outline-shadow-inset: 0px;   /* System 6: the region is the whole rectangle, though the shadow is drawn from a pixel in */
  /* clio.js: a dragged scroll box leaves its frame XORed with dkGray (System
     6.0.8, measured): white where dkGray is set, in step with the lane's ltGray,
     inverting what is under it, so over the lane it comes out solid black. */
  --clio-scrollbar-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 0h3v1H1zM0 1h2v1H0zM3 1h1v1H3z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat;
  --clio-scrollbar-ghost-blend: difference;
  /* clio.js: the box sits inside the bar's line, 14px wide (System 6.0.8, System Folder list) */
  --clio-scrollbar-thumb-inset: 1px;
  --clio-scrollbar-track-shadow: none;
  --clio-scrollbar-thumb-bg: var(--clio-paper);
  --clio-scrollbar-thumb-border: 1px solid var(--clio-ink);
  --clio-scrollbar-thumb-shadow: none;
  --clio-scrollbar-button-bg: var(--clio-paper);
  --clio-scrollbar-button-shadow: none;
  --clio-scrollbar-button-bevel: none;
  --clio-scrollbar-up: var(--clio-art-s6-up);
  --clio-scrollbar-up-on: var(--clio-art-s6-up-on);
  --clio-scrollbar-down: var(--clio-art-s6-down);
  --clio-scrollbar-down-on: var(--clio-art-s6-down-on);
  --clio-scrollbar-left: var(--clio-art-s6-left);
  --clio-scrollbar-left-on: var(--clio-art-s6-left-on);
  --clio-scrollbar-right: var(--clio-art-s6-right);
  --clio-scrollbar-right-on: var(--clio-art-s6-right-on);

  /* Dialogs */
  --clio-dialog-bg: var(--clio-paper);
  /* Modal frame (stop alert, 6.0.8): 1px ink, 2px paper, 2px ink; no shadow. */
  --clio-modal-border: 1px solid var(--clio-ink);
  --clio-modal-frame: inset 0 0 0 2px var(--clio-paper), inset 0 0 0 4px var(--clio-ink);
  --clio-modal-padding: 18px 20px;
  --clio-plain-dialog-border: 1px solid var(--clio-ink);
  --clio-plain-dialog-shadow: 2px 2px 0 var(--clio-ink);

  /* Bars, lists, groups, progress, tabs */
  --clio-details-bg: var(--clio-paper);
  /* Finder's info line: 17 rows of Geneva 9, closed by 1px ink, 1px paper,
     1px ink. */
  --clio-details-border: 3px double var(--clio-ink);
  --clio-details-font-size: 9px;
  --clio-details-height: 17px;
  --clio-details-padding: 0 15px;
  --clio-scrollbar-corner: var(--clio-art-s6-grow) 0 0 / 14px 14px no-repeat, var(--clio-paper);
  --clio-list-bg: var(--clio-paper);
  --clio-list-border: 1px solid var(--clio-ink);
  --clio-list-shadow: none;
  --clio-list-row: 16px;
  --clio-group-border: 1px solid var(--clio-ink);
  --clio-group-shadow: none;
  --clio-group-bg: transparent;
  --clio-progress-height: 12px;
  --clio-progress-bg: var(--clio-paper);
  --clio-progress-border: 1px solid var(--clio-ink);
  --clio-progress-shadow: none;
  /* Finder copy progress (6.0.8): 12px, 1px frame, dkGray fill. */
  --clio-progress-fill: var(--clio-art-s6-dkgray) 0 0 / 4px 2px repeat, var(--clio-ink);
  --clio-tab-height: 20px;
  --clio-tab-bg: var(--clio-paper);
  --clio-tab-active-bg: var(--clio-paper);
  --clio-tab-panel-bg: var(--clio-paper);
  --clio-tab-panel-border: 1px solid var(--clio-ink);
  --clio-label-bg: var(--clio-paper);
  --clio-label-fg: var(--clio-ink);
  --clio-label-selected-bg: var(--clio-ink);
  --clio-label-selected-fg: var(--clio-paper);

  /* Control Strip: System 6 had none; drawn here in its ink and paper, at the
     Mac OS 9 geometry (adapted). */
  --clio-strip-height: 24px;
  --clio-strip-bg: var(--clio-paper);
  --clio-strip-line: 1px solid var(--clio-ink);
  --clio-strip-cell-shadow: none;
  --clio-strip-sunken-shadow: none;
  --clio-strip-sunken-lines: linear-gradient(transparent, transparent);
  --clio-strip-pressed-bg: var(--clio-ink);
  --clio-strip-pressed-shadow: inset 0 0 0 2px var(--clio-paper);
  --clio-strip-cap-width: 13px;
  --clio-strip-scroll-width: 13px;
  --clio-strip-module-width: 30px;
  --clio-strip-icon-inset: 2px;
  --clio-strip-menu-top: 7px;
  --clio-strip-menu-inset: 4px;
  --clio-strip-handle-width: 18px;
  --clio-strip-tab-width: 18px;
  --clio-strip-cap: var(--clio-art-s6-strip-cap);
  --clio-strip-back: var(--clio-art-s6-strip-back);
  --clio-strip-forward: var(--clio-art-s6-strip-forward);
  --clio-strip-menu: var(--clio-art-s6-strip-menu);
  --clio-strip-handle: var(--clio-art-s6-strip-handle);
  --clio-strip-tab: var(--clio-art-s6-strip-tab);
}

/* Inline art. Pixel-grid SVGs, never Apple bitmaps: the System 6 check, radio
   ring and dot come from system.css (MIT, Sakun Acharige); Platinum's art lives
   in 90-platinum.css; everything here is drawn for clio.css. See
   THIRD-PARTY.md. */
:root {
  --clio-art-s6-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1h-1zM1 1h1v1h-1zM2 2h1v1h-1zM3 3h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1zM7 7h1v1h-1zM8 8h1v1h-1zM9 9h1v1h-1zM10 10h1v1h-1zM11 11h1v1h-1zM11 0h1v1h-1zM10 1h1v1h-1zM9 2h1v1h-1zM8 3h1v1h-1zM7 4h1v1h-1zM6 5h1v1h-1zM5 6h1v1h-1zM4 7h1v1h-1zM3 8h1v1h-1zM2 9h1v1h-1zM1 10h1v1h-1zM0 11h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v1H4zM0 4h1v4H0zM11 4h1v4h-1zM2 1h2v1H2zM8 1h2v1H8zM10 2h1v2h-1zM1 2h1v2H1zM4 11h4v1H4zM2 10h2v1H2zM8 10h2v1H8zM10 8h1v2h-1zM1 8h1v2H1z'/%3E%3C/svg%3E");
  --clio-art-s6-radio-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v2H4zM0 4h2v4H0zM10 4h2v4h-2zM2 1h2v2H2zM8 1h2v2H8zM9 2h2v2H9zM1 2h2v2H1zM4 10h4v2H4zM2 9h2v2H2zM8 9h2v2H8zM9 8h2v2H9zM1 8h2v2H1z'/%3E%3C/svg%3E");
  --clio-art-s6-radio-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h4v1H1zM1 5h4v1H1zM0 1h6v4H0z'/%3E%3C/svg%3E");
  --clio-art-s6-submenu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E");
  --clio-art-s6-submenu-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath fill='%23fff' d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E");
  --clio-art-s6-desktop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3Cpath fill='%23fff' d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E");
  /* Measured from System 6.0.8 (tooling/s6-art.py). */
  --clio-art-s6-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 2h1v1h-1zM5 3h3v1h-3zM4 4h5v1h-5zM3 5h7v1h-7zM2 6h9v1h-9zM4 7h5v1h-5zM4 8h5v1h-5zM4 9h5v1h-5zM4 10h5v1h-5z'/%3E%3Cpath fill='%23000' d='M6 1h1v1h-1zM5 2h1v1h-1zM7 2h1v1h-1zM4 3h1v1h-1zM8 3h1v1h-1zM3 4h1v1h-1zM9 4h1v1h-1zM2 5h1v1h-1zM10 5h1v1h-1zM1 6h1v1h-1zM11 6h1v1h-1zM0 7h4v1h-4zM9 7h4v1h-4zM3 8h1v1h-1zM9 8h1v1h-1zM3 9h1v1h-1zM9 9h1v1h-1zM3 10h1v1h-1zM9 10h1v1h-1zM3 11h7v1h-7z'/%3E%3C/svg%3E");
  --clio-art-s6-up-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 2h3v1h-3zM4 3h5v1h-5zM3 4h7v1h-7zM2 5h9v1h-9zM1 6h11v1h-11zM0 7h13v1h-13zM3 8h7v1h-7zM3 9h7v1h-7zM3 10h7v1h-7zM3 11h7v1h-7z'/%3E%3C/svg%3E");
  --clio-art-s6-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M4 3h5v1h-5zM4 4h5v1h-5zM4 5h5v1h-5zM4 6h5v1h-5zM2 7h9v1h-9zM3 8h7v1h-7zM4 9h5v1h-5zM5 10h3v1h-3zM6 11h1v1h-1z'/%3E%3Cpath fill='%23000' d='M3 2h7v1h-7zM3 3h1v1h-1zM9 3h1v1h-1zM3 4h1v1h-1zM9 4h1v1h-1zM3 5h1v1h-1zM9 5h1v1h-1zM0 6h4v1h-4zM9 6h4v1h-4zM1 7h1v1h-1zM11 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM9 9h1v1h-1zM4 10h1v1h-1zM8 10h1v1h-1zM5 11h1v1h-1zM7 11h1v1h-1zM6 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-down-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 2h7v1h-7zM3 3h7v1h-7zM3 4h7v1h-7zM3 5h7v1h-7zM0 6h13v1h-13zM1 7h11v1h-11zM2 8h9v1h-9zM3 9h7v1h-7zM4 10h5v1h-5zM5 11h3v1h-3z'/%3E%3C/svg%3E");
  --clio-art-s6-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M5 2h1v1h-1zM4 3h2v1h-2zM3 4h7v1h-7zM2 5h8v1h-8zM1 6h9v1h-9zM2 7h8v1h-8zM3 8h7v1h-7zM4 9h2v1h-2zM5 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M6 0h1v1h-1zM5 1h2v1h-2zM4 2h1v1h-1zM6 2h1v1h-1zM3 3h1v1h-1zM6 3h5v1h-5zM2 4h1v1h-1zM10 4h1v1h-1zM1 5h1v1h-1zM10 5h1v1h-1zM0 6h1v1h-1zM10 6h1v1h-1zM1 7h1v1h-1zM10 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM6 9h5v1h-5zM4 10h1v1h-1zM6 10h1v1h-1zM5 11h2v1h-2zM6 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-left-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M6 0h1v1h-1zM5 1h2v1h-2zM4 2h3v1h-3zM3 3h8v1h-8zM2 4h9v1h-9zM1 5h10v1h-10zM1 6h10v1h-10zM1 7h10v1h-10zM2 8h9v1h-9zM3 9h8v1h-8zM4 10h3v1h-3zM5 11h2v1h-2zM6 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 2h1v1h-1zM8 3h2v1h-2zM4 4h7v1h-7zM4 5h8v1h-8zM4 6h9v1h-9zM4 7h8v1h-8zM4 8h7v1h-7zM8 9h2v1h-2zM8 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM7 1h2v1h-2zM7 2h1v1h-1zM9 2h1v1h-1zM3 3h5v1h-5zM10 3h1v1h-1zM3 4h1v1h-1zM11 4h1v1h-1zM3 5h1v1h-1zM12 5h1v1h-1zM3 6h1v1h-1zM13 6h1v1h-1zM3 7h1v1h-1zM12 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM3 9h5v1h-5zM10 9h1v1h-1zM7 10h1v1h-1zM9 10h1v1h-1zM7 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-right-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM7 1h2v1h-2zM7 2h3v1h-3zM3 3h8v1h-8zM3 4h9v1h-9zM3 5h10v1h-10zM3 6h10v1h-10zM3 7h10v1h-10zM3 8h9v1h-9zM3 9h8v1h-8zM7 10h3v1h-3zM7 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-burst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 1h1v1h-1zM2 2h1v1h-1zM5 2h1v1h-1zM8 2h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM1 5h3v1h-3zM5 5h1v1h-1zM7 5h3v1h-3zM3 7h1v1h-1zM5 7h1v1h-1zM7 7h1v1h-1zM2 8h1v1h-1zM5 8h1v1h-1zM8 8h1v1h-1zM5 9h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-ltgray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM2 1h1v1h-1z'/%3E%3Cpath fill='%23fff' d='M1 0h3v1h-3zM0 1h2v1h-2zM3 1h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-grow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M2 2h7v1h-7zM2 3h1v1h-1zM8 3h1v1h-1zM2 4h1v1h-1zM8 4h5v1h-5zM2 5h1v1h-1zM8 5h1v1h-1zM12 5h1v1h-1zM2 6h1v1h-1zM8 6h1v1h-1zM12 6h1v1h-1zM2 7h1v1h-1zM8 7h1v1h-1zM12 7h1v1h-1zM2 8h7v1h-7zM12 8h1v1h-1zM4 9h1v1h-1zM12 9h1v1h-1zM4 10h1v1h-1zM12 10h1v1h-1zM4 11h1v1h-1zM12 11h1v1h-1zM4 12h9v1h-9z'/%3E%3C/svg%3E");
  --clio-art-s6-dkgray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM2 0h2v1h-2zM0 1h3v1h-3z'/%3E%3Cpath fill='%23fff' d='M1 0h1v1h-1zM3 1h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-menucheck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M8 0h1v1h-1zM7 1h2v1h-2zM6 2h2v1h-2zM5 3h2v1h-2zM0 4h1v1h-1zM4 4h2v1h-2zM0 5h2v1h-2zM3 5h2v1h-2zM1 6h3v1h-3zM2 7h1v1h-1z'/%3E%3C/svg%3E");
  /* Disclosure triangle: System 6 had none; it takes System 7's (Finder list
     view, 11px, black with a blue and white checker). */
  --clio-disclosure-size: 11px;
  --clio-disclosure-gap: 4px;
  --clio-art-disclosure: url("art/system7/disclosure.png");
  --clio-art-disclosure-open: url("art/system7/disclosure-open.png");

  /* List view (Finder, View by Name; System 7.5.3): headers on the window's
     white, the sorted one underlined, a double rule (black, white, black) below. */
  --clio-list-view-bg: var(--clio-paper);
  --clio-list-view-row: 16px;
  --clio-list-view-header-height: 20px;
  --clio-list-view-header-padding: 0 4px 3px;
  --clio-list-view-header-bg: linear-gradient(var(--clio-ink), var(--clio-ink)) 0 calc(100% - 2px) / 100% 1px no-repeat, linear-gradient(var(--clio-ink), var(--clio-ink)) 0 100% / 100% 1px no-repeat;
  --clio-list-view-sorted-header-bg: var(--clio-list-view-header-bg);
  --clio-list-view-sorted-decoration: underline;
  --clio-list-view-sorted-bg: transparent;
  --clio-list-view-sort-width: 0;

  /* Slider: System 6 had none; it takes Platinum's (Mouse control panel,
     Mac OS 9.0) until an era draws its own. */
  --clio-slider-height: 16px;
  --clio-slider-track-height: 7px;
  --clio-slider-track-top: 3px;
  --clio-slider-track-slice: 3px;
  --clio-slider-track-slice-n: 3;
  --clio-slider-thumb-width: 15px;
  --clio-slider-thumb-height: 16px;
  --clio-art-slider-track: url("art/platinum/slider-track.png");
  --clio-art-slider-thumb: url("art/platinum/slider-thumb.png");
  --clio-slider-tick-gap: 0px;
  --clio-slider-tick-count: 5;
  --clio-slider-tick-offset: 9px;
  --clio-slider-tick-run: 18px;
  --clio-slider-tick-light: #ffffff;
  --clio-slider-tick-ink: #000000;
  --clio-slider-tick-shade: #888888;

  /* Little arrows: System 6 had none; it takes System 7's (Memory control
     panel, Cache Size: 15x25). Held and dimmed states are not on System 7's
     screens and keep the normal picture. */
  --clio-little-arrows-width: 15px;
  --clio-little-arrows-height: 25px;
  --clio-art-little-arrows: url("art/system7/little-arrows.png");
  --clio-art-little-arrows-up: var(--clio-art-little-arrows);
  --clio-art-little-arrows-down: var(--clio-art-little-arrows);
  --clio-art-little-arrows-disabled: var(--clio-art-little-arrows);

  /* Bevel button: System 6 and 7 had none; they take Platinum's
     (Navigation Services, Mac OS 9.0). */
  --clio-bevel-min: 20px;
  --clio-bevel-padding: 0 2px;
  --clio-bevel-slice: 3px;
  --clio-bevel-slice-n: 3;
  --clio-art-bevel: url("art/platinum/bevel.png");
  --clio-art-bevel-held: url("art/platinum/bevel-held.png");
  --clio-art-bevel-menu-arrow: url("art/platinum/bevel-menu-arrow.png");
  --clio-bevel-arrow-right: 5px;
  --clio-bevel-arrow-bottom: 4px;
  --clio-bevel-arrow-width: 3px;
  --clio-bevel-arrow-height: 2px;

  /* Chasing arrows: Platinum's three frames (Network Browser, Mac OS 9.0). */
  --clio-art-chasing-arrows: url("art/platinum/chasing-arrows.png");
  --clio-chasing-arrows-frames: 3;

  /* Separator: a 1px ink line. */
  --clio-separator-height: 1px;
  --clio-separator-margin: 8px 0;
  --clio-separator-bg: var(--clio-ink);

  /* Help button: Platinum's (Keyboard control panel, Mac OS 9.0). */
  --clio-art-help-button: url("art/platinum/help-button.png");
  --clio-image-well-bg: #ffffff;

  /* Utility window: the document window's parts at the size of System 7's
     floating windows (inferred: none was on the captured screens). */
  --clio-utility-titlebar-height: 13px;
  --clio-utility-titlebar-row: 11px;
  --clio-utility-box-size: 9px;
  --clio-utility-slot: 13px;
  --clio-utility-title-size: 9px;

  /* Help balloon: Mac OS 9.0's (Balloon Help), the same in every era. */
  --clio-art-balloon: url("art/platinum/balloon.png");
  --clio-art-balloon-tail: url("art/platinum/balloon-tail.png");

  /* Scrolling menu arrows: System 6 and 7 (Control Panels submenu, System
     7.5.3), black, 5px in from the item's left (up arrow inferred, mirrored). */
  --clio-art-menu-scroll-down: url("art/system7/menu-scroll-down.png");
  --clio-art-menu-scroll-up: url("art/system7/menu-scroll-up.png");
  --clio-menu-scroll-left: 5px;

  /* Frames cut from captures by tooling/frame-art.py. */
  --clio-art-frame-s6-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAACpJREFUeJxjYAxgYBINZWBiYWFgCmB0YGJgYABhBqmVDEx//jAwMAYwAAA66QRtNyAoFwAAAABJRU5ErkJggg==");
  --clio-art-frame-s6-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjkGFgSmZgYmBg/N/IxABiMNSDSRkGACm1Aqb7EOVpAAAAAElFTkSuQmCC");
  --clio-art-frame-s6-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAADRJREFUeJxjYD/AIP+BSYGDsYaB5csahg9yTB8+MDEwgJCAAFPDPyaeBAb7H0wPfjCwHwAAEpMM/gNXK+MAAAAASUVORK5CYII=");
  --clio-art-frame-p9-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAADxJREFUeJxjYEgUTGBgYnyk9JCBMUWYYa8O03qGPXIbmBj+MDAwMIERY8pFhbN2jIyOD/7fZ/ov/96eAQBghg8JraaOFgAAAABJRU5ErkJggg==");
  --clio-art-frame-p9-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAGFBMVEUAAAAAAAB3d3dVVVVmZmYiIiKIiIhEREQ39d/AAAAAAXRSTlMAQObYZgAAAD9JREFUeJxjYAgUDGBgYVRT+8XAGC5zgJ+PUVxG8NErJgZGBgYGJgaGfwwMLA6vH7i8YmRUdfg9n+m/9ur3DAAxwg5nPuolSwAAAABJRU5ErkJggg==");
  --clio-art-frame-p9-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANBAMAAACAxflPAAAAG1BMVEUAAAAAAAB3d3fd3d3MzMy7u7uqqqoiIiKIiIhznn7oAAAAAXRSTlMAQObYZgAAAFpJREFUeJxjZGDnYmB7ycDCwKPAwPjzAwujgjEDg+x6xuLDrx6oOXEwCCcxMDAlCTAx/GMAISYGCEDQTGAOUyKLAoOKQgIjY6gAA9PO+4wMElwMDO8+MELNBwCaGBDQEM8mggAAAABJRU5ErkJggg==");
  --clio-art-frame-p9-button-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAACFJREFUeJxjYA1hYBINZWAKYHRgYmBgQMYMUisZGFhDGAAtsQJ9dgAT/gAAAABJRU5ErkJggg==");
  --clio-art-frame-p9-popup: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAACtJREFUeJxjYEhMYGBi5H/IwJh+klWbQYCBQYAl/OQnOwbGAEUGpv+C9gwAea0HTcaLsPwAAAAASUVORK5CYII=");
  --clio-art-frame-p9-popup-open: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAADd3d1mZmZEREQiIiKIiIj///+MKsksAAAAAXRSTlMAQObYZgAAACtJREFUeJxjEBQMYGBii//IwCjOKSbFIMDAIMAozun2iomB4fcGJgbG9wwAWK0GLJJZmp8AAAAASUVORK5CYII="); /* 7x7, slice 3 */
  --clio-art-frame-p9-popup-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAgMAAAC5PL9AAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjZLVmEg5gChBhcGBh0ljAtOENI6s1ACDmA/qjrWTUAAAAAElFTkSuQmCC");
  --clio-art-s6-gray50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E");
  --clio-art-s6-menucheck-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 0h1v1h-1zM7 1h2v1h-2zM6 2h2v1h-2zM5 3h2v1h-2zM0 4h1v1h-1zM4 4h2v1h-2zM0 5h2v1h-2zM3 5h2v1h-2zM1 6h3v1h-3zM2 7h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-strip-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 1h13v22H1z'/%3E%3Cpath d='M0 0h15v1H0zM0 23h15v1H0zM0 1h1v22H0zM14 1h1v22h-1zM3 8h8v1H3zM3 15h8v1H3zM3 9h1v6H3zM10 9h1v6h-1z'/%3E%3C/svg%3E");
  --clio-art-s6-strip-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M4 1h1v8H4zM3 2h1v6H3zM2 3h1v4H2zM1 4h1v2H1z'/%3E%3C/svg%3E");
  --clio-art-s6-strip-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h1v8H5zM6 2h1v6H6zM7 3h1v4H7zM8 4h1v2H8z'/%3E%3C/svg%3E");
  --clio-art-s6-strip-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E");
  --clio-art-s6-strip-handle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 1h9l8 8v6l-8 8H0z'/%3E%3Cpath d='M0 0h10v1H0zM10 1h1v1h-1zM11 2h1v1h-1zM12 3h1v1h-1zM13 4h1v1h-1zM14 5h1v1h-1zM15 6h1v1h-1zM16 7h1v1h-1zM17 8h1v8h-1zM16 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM13 19h1v1h-1zM12 20h1v1h-1zM11 21h1v1h-1zM10 22h1v1h-1zM0 23h10v1H0zM5 6h1v1H5zM5 9h1v1H5zM5 12h1v1H5zM5 15h1v1H5zM5 18h1v1H5z'/%3E%3C/svg%3E");
  --clio-art-s6-strip-tab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 1h9l8 8v6l-8 8H0z'/%3E%3Cpath d='M0 0h10v1H0zM10 1h1v1h-1zM11 2h1v1h-1zM12 3h1v1h-1zM13 4h1v1h-1zM14 5h1v1h-1zM15 6h1v1h-1zM16 7h1v1h-1zM17 8h1v8h-1zM16 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM13 19h1v1h-1zM12 20h1v1h-1zM11 21h1v1h-1zM10 22h1v1h-1zM0 23h10v1H0zM5 6h1v1H5zM5 9h1v1H5zM5 12h1v1H5zM5 15h1v1H5zM5 18h1v1H5z'/%3E%3C/svg%3E");
  /* Rounded-corner window (rDocProc): corner masks and frame curves, tooling/rare-art.py. */
  --clio-art-rdoc-mask-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 0h1v1h-1zM3 1h3v1h-3zM2 2h4v1h-4zM1 3h5v1h-5zM1 4h5v1h-5zM0 5h6v1h-6z'/%3E%3C/svg%3E");
  --clio-art-rdoc-frame-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 0h1v1h-1zM3 1h3v1h-3zM2 2h2v1h-2zM1 3h2v1h-2zM1 4h1v1h-1zM0 5h2v1h-2z'/%3E%3C/svg%3E");
  --clio-art-rdoc-mask-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h3v1h-3zM0 2h4v1h-4zM0 3h5v1h-5zM0 4h5v1h-5zM0 5h6v1h-6z'/%3E%3C/svg%3E");
  --clio-art-rdoc-frame-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h3v1h-3zM2 2h2v1h-2zM3 3h2v1h-2zM4 4h1v1h-1zM4 5h2v1h-2z'/%3E%3C/svg%3E");
  --clio-art-rdoc-mask-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h6v1h-6zM1 1h5v1h-5zM1 2h5v1h-5zM2 3h4v1h-4zM3 4h3v1h-3zM5 5h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-rdoc-frame-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h2v1h-2zM1 1h1v1h-1zM1 2h2v1h-2zM2 3h2v1h-2zM3 4h3v1h-3zM5 5h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-rdoc-mask-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h6v1h-6zM0 1h5v1h-5zM0 2h5v1h-5zM0 3h4v1h-4zM0 4h3v1h-3zM0 5h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-rdoc-frame-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M4 0h2v1h-2zM4 1h1v1h-1zM3 2h2v1h-2zM2 3h2v1h-2zM0 4h3v1h-3zM0 5h1v1h-1z'/%3E%3C/svg%3E");
}

/* Base. clio.css styles elements only inside its own components, plus bare
   form controls through :where(), so every rule here has zero specificity and
   your own CSS always wins. It never restyles <body> unless you ask with
   .desktop. */
:where(.desktop) {
  margin: 0;
  min-height: 100vh;
  background: var(--clio-desktop);
  color: var(--clio-ink);
}

:where(.window, .menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"],
  .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .rounded-window, .clio) {
  box-sizing: border-box;
  color: var(--clio-ink);
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
  font-weight: var(--clio-chrome-weight);
  font-stretch: var(--clio-font-stretch-text);
  font-synthesis: none;
  line-height: 16px;
  -webkit-font-smoothing: var(--clio-font-smoothing);
  -moz-osx-font-smoothing: grayscale;   /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *,
:where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *::before,
:where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *::after {
  box-sizing: border-box;
}

/* Application text (Geneva role) for content areas. */
:where(.window-pane, .modal-contents, .alert-contents, .text, .details-bar, .listbox, [role="listbox"], .status-bar, .icon, input, textarea) {
  font-family: var(--clio-font-text);
  font-stretch: var(--clio-font-stretch-text);
  -webkit-font-smoothing: var(--clio-text-smoothing);
  -moz-osx-font-smoothing: var(--clio-text-smoothing-moz);
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(h1, h2, h3, h4, .heading) {
  margin: 0 0 8px;
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
  font-weight: var(--clio-chrome-weight);
  line-height: 16px;
}

:where(.display) {
  font-family: var(--clio-font-display);
  -webkit-font-smoothing: auto;
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(p) {
  margin: 0 0 8px;
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(a) {
  color: inherit;
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(code, kbd, pre, samp) {
  font-family: var(--clio-font-mono);
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(hr) {
  height: 0;
  margin: 8px 0;
  border: 0;
  border-top: var(--clio-border);
}

:where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) ::selection {
  background: var(--clio-selection-bg);
  color: var(--clio-selection-fg);
}

/* A row of controls with their label (system.css name kept). */
:where(.field-row, .field-row-stacked) {
  display: flex;
  align-items: center;
  gap: 6px;
}

:where(.field-row-stacked) {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

:where(.field-row, .field-row-stacked) + :where(.field-row, .field-row-stacked) {
  margin-top: 6px;
}

/* Hidden, still read aloud. */
:where(.visually-hidden, .title-bar button > span) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Cursors: the arrow, the I-beam and the watch redrawn pixel for pixel from System 7.5.3
   and Mac OS 9.0 (tooling/cursor-art.py; the arrow is the same in both), at
   1x, 2x and 3x. On by default; class="clio-system-cursors" on <html> gives
   the system's own back. The Mac had no pointing hand: links and buttons
   inside clio.css's windows keep the arrow. aria-busy="true" shows the watch
   (hot spot 8,8); clio.js spins its seven frames four ticks a frame, as the
   System's 'acur' resource -6078 does. */
:where(:root) {
  --clio-cursor-arrow: image-set(url("art/cursors/arrow.png") 1x, url("art/cursors/arrow-2x.png") 2x, url("art/cursors/arrow-3x.png") 3x) 1 1, default;
  --clio-cursor-text: image-set(url("art/cursors/ibeam.png") 1x, url("art/cursors/ibeam-2x.png") 2x, url("art/cursors/ibeam-3x.png") 3x) 3 4, text;
  --clio-cursor-wait: image-set(url("art/cursors/watch.png") 1x, url("art/cursors/watch-2x.png") 2x, url("art/cursors/watch-3x.png") 3x) 8 8, wait;
  --clio-cursor-watch-count: 7;
  cursor: var(--clio-cursor-arrow);
}

/* System 6.0.8's watch is a different drawing: a square face on a band, six
   frames in the System file's 'CURS' 258-263 (tooling/s6-watch-art.py), not the
   round watch of System 7.5.3 and Mac OS 9.0 ('CURS' -20721..-20715). */
:where([data-era="system6"]) {
  --clio-cursor-wait: image-set(url("art/cursors/watch6.png") 1x, url("art/cursors/watch6-2x.png") 2x, url("art/cursors/watch6-3x.png") 3x) 8 8, wait;
  --clio-cursor-watch-count: 6;
}

:where(:root.clio-system-cursors) {
  --clio-cursor-arrow: default;
  --clio-cursor-text: text;
  --clio-cursor-wait: wait;
}

:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="button"], [type="submit"], [type="reset"], [type="color"], [type="file"], [type="image"]), textarea, [contenteditable]:not([contenteditable="false"])) {
  cursor: var(--clio-cursor-text);
}

:where(.window, .menu-bar, [role="menubar"], .menu, [role="menu"], .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .control-strip, .clio, .desktop) :where(a:any-link, button, label, summary, select, [role="button"], [role="tab"]) {
  cursor: var(--clio-cursor-arrow);
}

:where([aria-busy="true"]), :where([aria-busy="true"]) * {
  cursor: var(--clio-cursor-wait);
}

/* Windows.
   Markup: .window > .title-bar (> .close, .title, .resize [, .shade]) >
   optional .details-bar > .window-pane. system.css markup (.title-bar
   button.close / button.resize, .inactive-title-bar) and AI System 6 markup
   (.close-box, .resize-box, .shade-box, h1/h2 as the title) also work. */
:where(.window) {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: var(--clio-window-padding);
  border: var(--clio-window-border);
  background: var(--clio-window-bg);
  box-shadow: var(--clio-window-shadow);
}

/* ---- Title bar ---------------------------------------------------------
   System 6: a 17px box under a 1px inset: 2px of paper, six 1px ink stripes
   on a 2px period across a 12px row, 2px of paper, then the 1px rule. */
.title-bar,
.inactive-title-bar {
  --clio-tb-close: var(--clio-titlebar-slot);
  --clio-tb-zoom: var(--clio-titlebar-slot);
  --clio-tb-shade: var(--clio-titlebar-shade-slot);
  --clio-tb-gutter: max(var(--clio-tb-close), calc(var(--clio-tb-zoom) + var(--clio-tb-shade)));
  position: relative;
  display: grid;
  flex: none;
  grid-template-columns:
    var(--clio-tb-gutter)
    minmax(0, 1fr)
    var(--clio-tb-zoom)
    calc(var(--clio-tb-gutter) - var(--clio-tb-zoom));
  grid-template-rows: var(--clio-titlebar-row);
  align-items: start;
  box-sizing: border-box;
  height: var(--clio-titlebar-height);
  margin: var(--clio-titlebar-margin);
  padding: var(--clio-titlebar-padding);
  border-bottom: var(--clio-titlebar-border);
  background: var(--clio-titlebar-bg);
  font-family: var(--clio-font-chrome);
  user-select: none;
  -webkit-user-select: none;
}

/* A slot is reserved only for a control that is really there, so the title
   stays centred on the whole bar. */
.title-bar:not(:has(> :is(.resize, .resize-box, .zoom))) { --clio-tb-zoom: 0px; }
.title-bar:not(:has(> :is(.shade, .shade-box, .collapse))) { --clio-tb-shade: 0px; }

.title-bar > :is(.title, h1, h2, h3),
.inactive-title-bar > :is(.title, h1, h2, h3) {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  max-width: 100%;
  height: var(--clio-titlebar-row);
  margin: 0;
  padding: var(--clio-title-padding);
  overflow: hidden;
  background: var(--clio-title-bg);
  color: var(--clio-title-fg);
  font-family: var(--clio-font-window-title, var(--clio-font-chrome));
  font-size: var(--clio-title-font-size);
  font-stretch: var(--clio-font-stretch-title);
  font-weight: var(--clio-chrome-weight);
  line-height: var(--clio-titlebar-row);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Close, zoom and collapse boxes ------------------------------------ */
.title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
  position: relative;
  grid-row: 1;
  width: var(--clio-box-size);
  min-width: 0;
  height: var(--clio-box-size);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--clio-ink);
  border-radius: 0;
  background: var(--clio-paper);
  box-shadow: 0 0 0 var(--clio-box-isolation) var(--clio-paper);
  color: transparent;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
  touch-action: manipulation;
}

.title-bar > :is(.close, .close-box) {
  grid-column: 1;
  justify-self: start;
  margin-left: var(--clio-box-inset);
}

.title-bar > :is(.resize, .resize-box, .zoom) {
  grid-column: 3;
  justify-self: end;
  margin-right: var(--clio-box-inset);
}

/* System 6 had no WindowShade box; only an era that opens the slot shows it. */
.title-bar > :is(.shade, .shade-box, .collapse) {
  display: var(--clio-shade-display);
  grid-column: 4;
  justify-self: end;
}

/* Held close or zoom box: System 6 draws the same starburst in both
   (measured, 6.0.8); the zoom box's inner square goes while it is held. */
.title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active) {
  background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, var(--clio-paper);
}

/* Zoom box: an inner square sharing the outer frame's top-left corner,
   7 of the frame's 11 pixels (System 6's 7:11 ratio). */
.title-bar > :is(.resize, .resize-box, .zoom)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--clio-ink);
  border-bottom: 1px solid var(--clio-ink);
  box-sizing: border-box;
}

.title-bar > :is(.resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active)::before {
  opacity: 0;
}

.title-bar > button:focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: calc(var(--clio-box-isolation) - 1px);
}

/* ---- Inactive windows ----------------------------------------------------
   System 6 draws a background window's title bar as a plain strip with its
   name: no stripes, no close box, no zoom box. */
.window.inactive > .title-bar,
.inactive-title-bar {
  background: var(--clio-titlebar-inactive-bg);
}

.window.inactive > .title-bar > :is(.title, h1, h2, h3),
.inactive-title-bar > :is(.title, h1, h2, h3) {
  color: var(--clio-title-inactive-fg);
}

.window.inactive > .title-bar > :not(.title, h1, h2, h3),
.inactive-title-bar > :not(.title, h1, h2, h3) {
  visibility: hidden;
}

/* ---- Window body ------------------------------------------------------- */
:where(.window-pane) {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  overflow: auto;
  background: var(--clio-pane-bg);
  font-size: var(--clio-font-size);
  line-height: 16px;
}

/* Finder's info line ("3 items  1,234K in disk"), ruled twice below. */
:where(.details-bar) {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--clio-details-height);
  padding: var(--clio-details-padding);
  border-bottom: var(--clio-details-border);
  background: var(--clio-details-bg);
  box-shadow: var(--clio-details-shadow, none);
  font-family: var(--clio-font-small);
  font-size: var(--clio-details-font-size);
  line-height: var(--clio-details-height);
  white-space: nowrap;
}

/* A separator line between groups in a window or dialog (Mac OS 8 HIG:
   "Separator Lines"): <hr class="separator"> or <div class="separator">. */
:where(.separator) {
  flex: none;
  box-sizing: border-box;
  height: var(--clio-separator-height);
  margin: var(--clio-separator-margin);
  border: 0;
  background: var(--clio-separator-bg);
}

/* A status line under the pane. */
:where(.status-bar) {
  display: flex;
  flex: none;
  gap: 12px;
  padding: 1px 8px;
  border-top: var(--clio-border);
  background: var(--clio-details-bg);
  font-family: var(--clio-font-small);
  font-size: var(--clio-font-size-small);
  line-height: 14px;
}

/* Collapsed (WindowShade; clio.js toggles .collapsed from the collapse box):
   only the title bar stays. */
:where(.window.collapsed) {
  height: auto !important;
  min-height: 0 !important;
}

:where(.window.collapsed) > :not(.title-bar) {
  display: none !important;
}

/* Menu bar and menus.
   Markup: <ul role="menubar" class="menu-bar"> <li role="none"><button
   role="menuitem" aria-haspopup="true" aria-expanded="false">File</button>
   <ul role="menu" class="menu">…</ul></li></ul>. A menu opens while its title
   has aria-expanded="true" or the class .open (your script toggles either), or
   while focus is inside it, so it works with the keyboard and no script.
   system.css's role="menu-bar" / role="menu-item" markup is accepted too. */
:where(.menu-bar, ul[role="menubar"], ul[role="menu-bar"]) {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  height: var(--clio-menubar-height);
  margin: 0;
  padding: var(--clio-menubar-padding);
  list-style: none;
  border-bottom: var(--clio-menubar-border);
  background: var(--clio-menubar-bg);
  box-shadow: var(--clio-menubar-shadow);
  user-select: none;
  -webkit-user-select: none;
  /* A press dragged from a title to an item is the Mac's MenuDrag, not a scroll or
     a long-press callout: the bar and its menus keep the gesture (touch). */
  touch-action: none;
  -webkit-touch-callout: none;
}

:where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Menu titles: a <button>, an <a>, or the <li> itself (system.css). */
:where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span),
:where([role="menu-bar"]) > [role="menu-item"] {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: var(--clio-menu-title-padding);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span):is([aria-expanded="true"], .active),
:where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li.open > :is(button, a, span),
:where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a):active:where(:not([data-clio-off])),
:where([role="menu-bar"]) > [role="menu-item"]:is(:focus, :focus-within) {
  background: var(--clio-menu-title-active-bg);
  box-shadow: var(--clio-menu-title-active-shadow);
  color: var(--clio-menu-title-active-fg);
  outline: none;
}

:where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a):focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: -3px;
}

/* ---- Menu panel ----------------------------------------------------------
   System 6: paper, a 1px ink frame and a 1px ink drop shadow. */
:where(.menu, ul[role="menu"]) {
  z-index: 10;
  touch-action: none;
  -webkit-touch-callout: none;
  display: block;
  box-sizing: border-box;
  min-width: 140px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  border: var(--clio-menu-border);
  border-top-width: var(--clio-menu-border-top-width);
  background: var(--clio-menu-bg);
  box-shadow: var(--clio-menu-shadow);
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
}

/* Inside a menu bar or a parent item, a menu is a drop-down. */
:where(.menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"]) li > :is(.menu, ul[role="menu"]) {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  display: none;
}

:where(.menu, [role="menu"]) li > :is(.menu, ul[role="menu"]) {
  top: -1px;
  left: 100%;
}

:where(.menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"]) li:is(.open, :focus-within) > :is(.menu, ul[role="menu"]),
:where(.menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"]) li > [aria-expanded="true"] + :is(.menu, ul[role="menu"]) {
  display: block;
}

/* With clio.js (data-clio-menus) a menu opens from the pointer or the arrow
   keys, not merely because focus sits on its title. */
:where([data-clio-menus]) li:focus-within:not(.open) > :is(.menu, ul[role="menu"]) {
  display: none;
}

/* ---- Menu items ---------------------------------------------------------- */
:where(.menu, [role="menu"]) > li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--clio-menu-item-height);
  padding: var(--clio-menu-item-padding);
  font-weight: var(--clio-menu-item-weight);
  line-height: var(--clio-menu-item-height);
  white-space: nowrap;
  cursor: var(--clio-cursor-arrow);
}

:where(.menu, [role="menu"]) > li:has(> :is(a, button)) {
  padding: 0;
}

:where(.menu, [role="menu"]) > li > :is(a, button) {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: var(--clio-menu-item-height);
  margin: 0;
  padding: var(--clio-menu-item-padding);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(.menu, [role="menu"]) > li:not(.disabled, [aria-disabled="true"], .separator, [role="separator"], :has(> :is(:disabled, [aria-disabled="true"]))):is(:hover, :focus-within, .active):where(:not([data-clio-blink])),
:where(.menu, [role="menu"]) > li > :is(a, button):not([aria-disabled="true"], :disabled):is(:hover, :focus-visible, .active):where(:not([data-clio-blink])) {
  background: var(--clio-menu-item-active-bg);
  box-shadow: var(--clio-menu-item-active-shadow);
  color: var(--clio-menu-item-active-fg);
  outline: none;
}

:where(.menu, [role="menu"]) > li:is(.disabled, [aria-disabled="true"]),
:where(.menu, [role="menu"]) > li > :is(a, button):is(:disabled, [aria-disabled="true"]) {
  color: var(--clio-disabled);
  background-image: var(--clio-disabled-dither);
  background-size: 2px 2px;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--clio-disabled-fill);
}

/* Keyboard shortcut column, right-aligned. */
:where(.menu, [role="menu"]) :is(kbd, .shortcut) {
  margin-left: auto;
  padding-left: 24px;
  font: inherit;
}

/* Check mark column. */
:where(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"])::before,
:where(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 9px;
  height: 8px;
  margin-top: -4px;
  background: var(--clio-art-s6-menucheck) 0 0 / 9px 8px no-repeat;
}

:where(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::before,
:where(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active):where(:not([data-clio-blink]))::before {
  background-image: var(--clio-art-s6-menucheck-on);
}

/* Submenu arrow. */
:where(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
:where(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 6px;
  height: 11px;
  margin-top: -5.5px;
  background: var(--clio-art-s6-submenu) 0 0 / 6px 11px no-repeat;
}

:where(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::after {
  background-image: var(--clio-art-s6-submenu-on);
}

/* Separator: System 6 draws a dotted grey rule through a full-height row. */
:where(.menu, [role="menu"]) > :is(li.separator, li[role="separator"], hr) {
  display: block;
  height: var(--clio-menu-separator-height);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--clio-menu-separator);
}

/* system.css divider items keep their label row and add the rule below. */
:where(.menu, [role="menu"]) > li.divider {
  border-bottom: 1px dotted var(--clio-ink);
}

/* ---- Scrolling menus, menu bar extras, item icons ------------------------------
   A menu longer than the screen ends in a scroll arrow row: <li class="scroll-down"
   aria-hidden="true"> (or "scroll-up" at the top). Menu bar items pushed to
   the right (the Help and Application menus) take class "menu-extras"; an
   icon in a title or an item is an <img> 16px square. */
:where(.menu, [role="menu"]) > :where(li.scroll-down, li.scroll-up) {
  min-height: var(--clio-menu-item-height);
  padding: 0;
  background: var(--clio-art-menu-scroll-down) var(--clio-menu-scroll-left) 50% / auto no-repeat;
}

:where(.menu, [role="menu"]) > :where(li.scroll-up) {
  background-image: var(--clio-art-menu-scroll-up);
}

:where(.menu-bar, [role="menubar"]) > :where(li.menu-extras) {
  margin-left: auto;
}

:where(.menu-bar, [role="menubar"], .menu, [role="menu"]) :where(img) {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
  image-rendering: pixelated;
}

/* Controls. Bare elements are styled through :where(), so the rules carry no
   specificity. State model (from AI System 6's fidelity contract): hover never
   changes a push button; pressed comes only from pointer-down, Space or
   Enter (:active) or from the .active class; disabled keeps full geometry. */

/* ---- Push buttons -------------------------------------------------------- */
:where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: var(--clio-button-min-width);
  min-height: var(--clio-control-height);
  margin: 0;
  padding: var(--clio-button-padding);
  border: var(--clio-button-border);
  border-radius: var(--clio-button-radius);
  background: var(--clio-button-bg);
  box-shadow: var(--clio-button-shadow);
  border-image: var(--clio-button-frame) var(--clio-button-frame-slice) fill / calc(var(--clio-button-frame-slice) * 1px) stretch;
  color: var(--clio-button-fg);
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
  font-stretch: var(--clio-font-stretch-text);
  font-weight: var(--clio-button-weight);
  -webkit-font-smoothing: var(--clio-font-smoothing);
  -moz-osx-font-smoothing: grayscale;   /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */
  line-height: 14px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled, .disabled):is(:active:where(:not([data-clio-off])), .active) {
  background: var(--clio-button-active-bg);
  box-shadow: var(--clio-button-active-shadow);
  border-image-source: var(--clio-button-frame-held);
  color: var(--clio-button-active-fg);
}

/* Default button: the ring that says Return will press it. Drawn as its own
   rounded rectangle (Inside Macintosh: PenSize(3,3), InsetRect(-4,-4),
   FrameRoundRect(16,16)), so its corners do not follow the button's. */
:where(.default, .btn-default, button[type="submit"].default) {
  position: relative;
  border-radius: var(--clio-button-radius);
}

:where(.default, .btn-default)::before {
  content: "";
  position: absolute;
  inset: calc(-1px - var(--clio-button-default-gap) - var(--clio-button-default-width));
  border: var(--clio-button-default-width) solid var(--clio-ink);
  border-radius: var(--clio-button-default-radius);
  border-image: var(--clio-ring-frame) var(--clio-ring-frame-slice) / calc(var(--clio-ring-frame-slice) * 1px) stretch;
  pointer-events: none;
}

:where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):is(:disabled, .disabled) {
  border: var(--clio-button-disabled-border);
  color: var(--clio-button-disabled-fg);
  /* System 6: the label through the 50% pattern, the frame left solid. */
  background-image: var(--clio-disabled-dither), linear-gradient(var(--clio-button-bg), var(--clio-button-bg));
  background-size: 2px 2px, auto;
  background-attachment: fixed, scroll;
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
  -webkit-text-fill-color: var(--clio-disabled-fill);
  /* The frame without its face, so the dimmed label shows through. */
  border-image-source: var(--clio-button-frame-disabled, var(--clio-button-frame));
  border-image-slice: var(--clio-button-frame-slice);
}

:where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: var(--clio-focus-offset);
}

:where(.default, .btn-default):focus-visible {
  outline-offset: calc(var(--clio-focus-offset) + 4px);
}

/* ---- Check boxes ---------------------------------------------------------- */
:where(input[type="checkbox"]) {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: var(--clio-check-size);
  height: var(--clio-check-size);
  margin: 0;
  border: var(--clio-check-border);
  border-radius: 0;
  background: var(--clio-check-bg);
  box-shadow: var(--clio-check-shadow);
  vertical-align: -2px;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(input[type="checkbox"]):checked {
  background: var(--clio-check-mark), var(--clio-check-bg);
  background-origin: var(--clio-check-mark-origin);
}

:where(input[type="checkbox"]):not(:disabled):active:where(:not([data-clio-off])) {
  border-width: var(--clio-check-pressed-border-width);
}

:where(input[type="checkbox"]):disabled {
  border-color: var(--clio-disabled);
  opacity: 0.6;
}

/* ---- Radio buttons -------------------------------------------------------- */
:where(input[type="radio"]) {
  flex: none;
  box-sizing: border-box;
  width: var(--clio-radio-size);
  height: var(--clio-radio-size);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--clio-radio-off);
  vertical-align: -2px;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(input[type="radio"]):checked {
  background: var(--clio-radio-on);
}

:where(input[type="radio"]):not(:disabled):active:where(:not([data-clio-off])) {
  background: var(--clio-radio-pressed);
}

:where(input[type="radio"]):checked:not(:disabled):active:where(:not([data-clio-off])) {
  background: var(--clio-radio-pressed-on);
}

:where(input[type="radio"]):disabled {
  opacity: 0.45;
}

:where(input[type="checkbox"], input[type="radio"]):focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: var(--clio-focus-offset);
}

:where(input[type="checkbox"], input[type="radio"]) + label,
:where(label):has(> :is(input[type="checkbox"], input[type="radio"])) {
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
}

:where(label):has(> :is(input[type="checkbox"], input[type="radio"])) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

:where(input[type="checkbox"], input[type="radio"]):disabled + label,
:where(label):has(> :is(input[type="checkbox"], input[type="radio"]):disabled) {
  color: var(--clio-disabled);
  background-image: var(--clio-disabled-dither);
  background-size: 2px 2px;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--clio-disabled-fill);
}

/* ---- Text fields ---------------------------------------------------------- */
:where(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"],
  input[type="number"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"],
  input[type="datetime-local"], input[type="month"], input[type="week"], textarea) {
  box-sizing: border-box;
  min-height: var(--clio-field-height);
  margin: 0;
  padding: var(--clio-field-padding);
  border: var(--clio-field-border);
  border-radius: 0;
  background: var(--clio-field-bg);
  box-shadow: var(--clio-field-shadow);
  color: var(--clio-ink);
  font-family: var(--clio-font-text);
  font-size: var(--clio-font-size);
  font-stretch: var(--clio-font-stretch-text);
  line-height: 14px;
  appearance: none;
  -webkit-appearance: none;
}

:where(textarea) {
  display: block;
  line-height: 16px;
  resize: vertical;
}

:where(input, textarea):focus-visible {
  outline: var(--clio-field-focus-outline, var(--clio-focus-outline));
  outline-offset: var(--clio-focus-offset);
  box-shadow: var(--clio-field-focus-shadow);
}

:where(input, textarea):disabled {
  color: var(--clio-disabled);
}

:where(input, textarea)::placeholder {
  color: var(--clio-disabled);
  opacity: 1;
}

:where(label) {
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
}

/* ---- Pop-up menus (select) ------------------------------------------------ */
:where(select) {
  box-sizing: border-box;
  min-height: var(--clio-popup-height, var(--clio-control-height));
  margin: 0;
  padding: var(--clio-popup-padding);
  border: var(--clio-popup-border);
  border-radius: var(--clio-popup-radius);
  background: var(--clio-popup-arrow), var(--clio-popup-bg);
  box-shadow: var(--clio-popup-shadow);
  border-image: var(--clio-popup-frame) var(--clio-popup-frame-slice) / calc(var(--clio-popup-frame-slice) * 1px) stretch;
  color: var(--clio-ink);
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
  font-stretch: var(--clio-font-stretch-text);
  font-weight: var(--clio-popup-weight);
  -webkit-font-smoothing: var(--clio-font-smoothing);
  -moz-osx-font-smoothing: grayscale;   /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */
  line-height: 16px;
  white-space: nowrap;   /* one line, cut short with an ellipsis, as the Mac truncated a pop-up's title */
  overflow: hidden;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(select):focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: var(--clio-focus-offset);
}

:where(select):disabled {
  color: var(--clio-popup-disabled-fg, var(--clio-disabled));
  opacity: 1;   /* Chrome fades a disabled select it draws itself; the Mac did not */
  mask: var(--clio-popup-disabled-mask, none);
  mask-clip: no-clip;   /* the shadow outside the frame is dimmed too */
}

/* The open pop-up menu. Where the browser lets CSS draw it (appearance:
   base-select: Chrome 135, Safari 27), it is the era's menu, laid over the
   button with the current item on the button's row (clio.js sets
   --clio-picker-shift; without it the first item sits there). clio.js draws
   the same menu as elements elsewhere. */
@supports (appearance: base-select) {
  /* a mouse or trackpad only: on touch screens the system's own picker
     (the iOS wheel, Android's sheet) stays, as it is the better tool there */
  @media (pointer: fine) {
    :where(select:not([multiple], [size]:not([size="1"]))),
    :where(select:not([multiple], [size]:not([size="1"])))::picker(select) {
      appearance: base-select;
    }

    /* keep the closed button laid out as before (the base-select default is a
       centred inline-flex box, a pixel off the measured text) */
    :where(select:not([multiple], [size]:not([size="1"]))) {
      display: inline-block;
      align-items: normal;
      gap: normal;
      text-align: start;
    }

    :where(select)::picker-icon {
      display: none;   /* the era's arrow is the button's own art */
    }

    :where(select)::picker(select) {
      position-area: span-block-end span-inline-end;   /* top and left on the button's */
      position-try-fallbacks: none;
      inset: auto;
      min-width: anchor-size(width);
      margin: 0;
      padding: 0;
      translate: 0 var(--clio-picker-shift, 0px);
      border: var(--clio-menu-border);
      border-top-width: var(--clio-menu-border-top-width, 1px);
      border-radius: 0;   /* Safari rounds its picker */
      background: var(--clio-menu-bg);
      box-shadow: var(--clio-menu-shadow);
      color: var(--clio-ink);
    }

    :where(select) option {
      position: relative;
      display: flex;
      align-items: center;
      min-height: var(--clio-menu-item-height);
      padding: var(--clio-menu-item-padding);
      font: inherit;
      font-weight: var(--clio-menu-item-weight, inherit);
      line-height: var(--clio-menu-item-height);
      white-space: nowrap;
      outline: none;
    }

    :where(select) option:is(:hover, :focus-visible):not(:disabled) {
      background: var(--clio-menu-item-active-bg);
      box-shadow: var(--clio-menu-item-active-shadow);
      color: var(--clio-menu-item-active-fg);
    }

    :where(select) option:disabled {
      color: var(--clio-disabled);
    }

    :where(select) option::checkmark {
      content: "";
      position: absolute;
      top: 50%;
      left: 3px;
      width: 9px;
      height: 8px;
      margin-top: -4px;
      background: var(--clio-art-s6-menucheck) 0 0 / 9px 8px no-repeat;
    }

    :where(select) option:is(:hover, :focus-visible)::checkmark {
      background-image: var(--clio-art-s6-menucheck-on);
    }
  }
}

/* A list box: <select multiple> or <select size="n">. */
:where(select[multiple], select[size]:not([size="1"])) {
  min-height: 0;
  padding: 0;
  border: var(--clio-list-border);
  border-radius: 0;
  background: var(--clio-list-bg);
  box-shadow: var(--clio-list-shadow);
  font-family: var(--clio-font-text);
}

:where(select[multiple], select[size]:not([size="1"])) option {
  min-height: var(--clio-list-row);
  padding: 0 4px;
}

:where(select[multiple], select[size]:not([size="1"])) option:checked {
  background: var(--clio-selection-bg) linear-gradient(var(--clio-selection-bg), var(--clio-selection-bg));
  color: var(--clio-selection-fg);
}

/* ---- List boxes ------------------------------------------------------------ */
:where(.listbox, ul[role="listbox"], ol[role="listbox"], div[role="listbox"]) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  border: var(--clio-list-border);
  background: var(--clio-list-bg);
  box-shadow: var(--clio-list-shadow);
  font-family: var(--clio-font-text);
  font-size: var(--clio-font-size);
}

:where(.listbox, [role="listbox"]) > :is(li, [role="option"]) {
  min-height: var(--clio-list-row);
  padding: 0 4px;
  line-height: var(--clio-list-row);
  white-space: nowrap;
  cursor: var(--clio-cursor-arrow);
}

:where(.listbox, [role="listbox"]) > :is(li, [role="option"]):is([aria-selected="true"], .selected) {
  background: var(--clio-selection-bg);
  color: var(--clio-selection-fg);
}

:where(.listbox, [role="listbox"]) > :is(li, [role="option"]):focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: -2px;
}

/* ---- Group boxes (fieldset) ---------------------------------------------- */
:where(fieldset) {
  margin: 0;
  padding: 8px 10px 10px;
  border: var(--clio-group-border);
  background: var(--clio-group-bg);
  box-shadow: var(--clio-group-shadow);
}

:where(fieldset) > :where(legend) {
  padding: 0 4px;
  background: var(--clio-pane-bg);
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
  font-weight: var(--clio-chrome-weight);
}

/* ---- Progress -------------------------------------------------------------- */
:where(progress) {
  box-sizing: border-box;
  width: 100%;
  height: var(--clio-progress-height);
  margin: 0;
  border: var(--clio-progress-border);
  border-radius: 0;
  background: var(--clio-progress-bg);
  box-shadow: var(--clio-progress-shadow);
  color: var(--clio-ink);
  appearance: none;
  -webkit-appearance: none;
}

:where(progress)::-webkit-progress-bar {
  background: var(--clio-progress-bg);
}

:where(progress)::-webkit-progress-value {
  background: var(--clio-progress-fill);
}

:where(progress)::-moz-progress-bar {
  background: var(--clio-progress-fill);
}

/* ---- Tabs -------------------------------------------------------------------
   System 6 had no tab control; the System 6 tab here is an adaptation (a
   boxed label that joins its panel). Platinum draws the real Mac OS 9 tab. */
:where([role="tablist"], .tabs) {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

:where([role="tablist"], .tabs) > :is([role="tab"], li, button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--clio-tab-height);
  margin: 0 -1px -1px 0;
  padding: 0 12px;
  border: 1px solid var(--clio-ink);
  border-radius: 0;
  background: var(--clio-tab-bg);
  box-shadow: none;
  color: var(--clio-ink);
  font-family: var(--clio-font-chrome);
  font-size: var(--clio-font-size);
  font-weight: var(--clio-chrome-weight);
  cursor: var(--clio-cursor-arrow);
}

:where([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
  z-index: 1;
  border-bottom-color: var(--clio-tab-active-bg);
  background: var(--clio-tab-active-bg);
  color: var(--clio-ink);
}

:where([role="tabpanel"], .tab-panel) {
  padding: 10px;
  border: var(--clio-tab-panel-border);
  background: var(--clio-tab-panel-bg);
}

/* ---- Desktop icons ---------------------------------------------------------- */
:where(.icon) {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: 80px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--clio-ink);
  font-family: var(--clio-font-small);
  font-size: var(--clio-font-size-small);
  text-align: center;
  cursor: var(--clio-cursor-arrow);
}

:where(.icon) > :is(img, svg, .icon-image) {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

:where(.icon) > :is(figcaption, span, .icon-label) {
  max-width: 100%;
  padding: 0 2px;
  background: var(--clio-label-bg);
  color: var(--clio-label-fg);
  line-height: 13px;
}

:where(.icon):is(.selected, [aria-selected="true"], [aria-pressed="true"]) > :is(img, svg, .icon-image) {
  filter: var(--clio-icon-selected-filter, invert(1));
}

:where(.icon):is(.selected, [aria-selected="true"], [aria-pressed="true"]) > :is(figcaption, span, .icon-label) {
  background: var(--clio-label-selected-bg);
  color: var(--clio-label-selected-fg);
}

/* Controls the classic guidelines add to the first set (Macintosh Human
   Interface Guidelines 1992, ch. 7; Mac OS 8 Human Interface Guidelines,
   ch. 2), each drawn per era from tokens. dev/COVERAGE.md lists them all. */

/* ---- Disclosure triangle ---------------------------------------------------
   Markup: <button class="disclosure" aria-expanded="false" aria-label="Show">
   or <details><summary>…</summary>…</details>. System 7 brought it to the
   Finder's list views; System 6 had none (it uses System 7's). */
:where(.disclosure) {
  display: inline-block;
  box-sizing: border-box;
  width: var(--clio-disclosure-size);
  height: var(--clio-disclosure-size);
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--clio-art-disclosure) 0 0 / var(--clio-disclosure-size) var(--clio-disclosure-size) no-repeat;
  box-shadow: none;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(.disclosure):is([aria-expanded="true"], .open) {
  background-image: var(--clio-art-disclosure-open);
}

:where(details) > :where(summary) {
  display: flex;
  align-items: center;
  gap: var(--clio-disclosure-gap);
  list-style: none;
  cursor: var(--clio-cursor-arrow);
}

:where(details) > :where(summary)::-webkit-details-marker {
  display: none;
}

:where(details) > :where(summary)::before {
  content: "";
  flex: none;
  width: var(--clio-disclosure-size);
  height: var(--clio-disclosure-size);
  background: var(--clio-art-disclosure) 0 0 / var(--clio-disclosure-size) var(--clio-disclosure-size) no-repeat;
}

:where(details[open]) > :where(summary)::before {
  background-image: var(--clio-art-disclosure-open);
}

/* ---- List view --------------------------------------------------------------
   The Finder's list view: column headers, the sorted column marked, rows of
   name and details. Markup: <table class="list-view"> with <th aria-sort> on
   the sorted column and an optional empty <th class="sort-direction">.
   System 7: plain headers in the small font, the sorted one underlined, a
   double rule below (Finder, View by Name). */
:where(.list-view) {
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--clio-list-view-bg);
  font-family: var(--clio-font-small);
  font-size: var(--clio-font-size-small);
  line-height: var(--clio-list-view-row);
}

:where(.list-view) :where(th, td) {
  box-sizing: border-box;
}

:where(.list-view) :where(th) {
  height: var(--clio-list-view-header-height);
  padding: var(--clio-list-view-header-padding);
  background: var(--clio-list-view-header-bg);
  font-weight: normal;
  line-height: 14px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

:where(.list-view) :where(th[aria-sort]:not([aria-sort="none"])) {
  background: var(--clio-list-view-sorted-header-bg);
  text-decoration: var(--clio-list-view-sorted-decoration);
  text-underline-offset: 2px;
}

:where(.list-view) :where(td) {
  height: var(--clio-list-view-row);
  padding: 0 4px;
  vertical-align: middle;
  white-space: nowrap;
}

:where(.list-view) :where(td.sorted) {
  background: var(--clio-list-view-sorted-bg);
}

:where(.list-view) :where(.sort-direction) {
  width: var(--clio-list-view-sort-width);
  padding: 0;
}

/* ---- Slider ------------------------------------------------------------------
   <input type="range">, the Appearance slider (Mac OS 8 HIG: "Sliders and Tick
   Marks"). Add class "ticks" and --clio-slider-tick-count for tick marks under
   the track. System 6 and System 7 had no slider in the Toolbox; System 7.5's
   control panels drew their own (see the System 7 layer). */
:where(input[type="range"]) {
  box-sizing: border-box;
  height: var(--clio-slider-height);
  margin: 0;
  /* Chrome centres the track in the content box: the padding puts it
     --clio-slider-track-top below the thumb's top. */
  padding: 0 0 calc(var(--clio-slider-height) - var(--clio-slider-track-height) - 2 * var(--clio-slider-track-top));
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(input[type="range"].ticks) {
  /* A whole number of pixels: each engine rounds a fractional period its own way. */
  --clio-slider-tick-spacing: round((100% - var(--clio-slider-tick-run)) / (var(--clio-slider-tick-count) - 1), 1px);
  height: calc(var(--clio-slider-height) + var(--clio-slider-tick-gap) + 4px);
  background:
    repeating-linear-gradient(to right, var(--clio-slider-tick-light) 0 1px, var(--clio-slider-tick-ink) 1px 2px, var(--clio-slider-tick-shade) 2px 3px, transparent 3px var(--clio-slider-tick-spacing)) var(--clio-slider-tick-offset) 100% / 100% 3px no-repeat,
    repeating-linear-gradient(to right, var(--clio-slider-tick-light) 0 2px, transparent 2px var(--clio-slider-tick-spacing)) var(--clio-slider-tick-offset) calc(100% - 3px) / 100% 1px no-repeat;
}

:where(input[type="range"])::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: var(--clio-slider-track-height);
  border-style: solid;
  border-width: var(--clio-slider-track-slice);
  border-color: transparent;
  border-image: var(--clio-art-slider-track) var(--clio-slider-track-slice-n) fill / var(--clio-slider-track-slice) stretch;
}

:where(input[type="range"])::-webkit-slider-thumb {
  width: var(--clio-slider-thumb-width);
  height: var(--clio-slider-thumb-height);
  /* the thumb sits in the track's content box, inside the border-image slice */
  margin-top: calc(-1 * (var(--clio-slider-track-top) + var(--clio-slider-track-slice)));
  border: 0;
  background: var(--clio-art-slider-thumb) 0 0 / 100% 100% no-repeat;
  appearance: none;
  -webkit-appearance: none;
}

/* Firefox: the same track and thumb through its own parts. Its thumb travels
   the whole content box: the padding keeps it inside the track's ends, as
   Chrome's and the Mac's (Mouse control panel at both ends), and the track
   reaches back over the padding. */
@supports selector(::-moz-range-thumb) {
  :where(input[type="range"]) {
    padding-inline: var(--clio-slider-track-slice);
  }
}

:where(input[type="range"])::-moz-range-track {
  margin-inline: calc(-1 * var(--clio-slider-track-slice));
}

:where(input[type="range"])::-moz-range-track {
  box-sizing: border-box;
  height: var(--clio-slider-track-height);
  border-style: solid;
  border-width: var(--clio-slider-track-slice);
  border-color: transparent;
  border-image: var(--clio-art-slider-track) var(--clio-slider-track-slice-n) fill / var(--clio-slider-track-slice) stretch;
}

:where(input[type="range"])::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--clio-slider-thumb-width);
  height: var(--clio-slider-thumb-height);
  border: 0;
  border-radius: 0;
  background: var(--clio-art-slider-thumb) 0 0 / 100% 100% no-repeat;
  /* Firefox centres the thumb in the content box (its top lands half a pixel
     above, then on the pixel below); this brings its top to the content box's. */
  translate: 0 round(down, (var(--clio-slider-thumb-height) - var(--clio-slider-track-height) - 2 * var(--clio-slider-track-top)) / 2, 1px);
}

/* ---- Little arrows -----------------------------------------------------------
   The up/down pair beside a number or clock field (Mac OS 8 HIG: "Little
   Arrows"; System 7's control panels drew them too). Markup:
   <span class="little-arrows" role="group" aria-label="Cache size">
     <button class="up" aria-label="Increase"></button>
     <button class="down" aria-label="Decrease"></button></span>
   Add aria-disabled="true" (or disabled buttons) for the dimmed pair. */
:where(.little-arrows) {
  display: inline-flex;
  flex-direction: column;
  width: var(--clio-little-arrows-width);
  height: var(--clio-little-arrows-height);
  background: var(--clio-art-little-arrows) 0 0 / 100% 100% no-repeat;
  vertical-align: middle;
}

:where(.little-arrows) > :where(button) {
  flex: 1 1 50%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-image: none;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

:where(.little-arrows) > :where(button)::before,
:where(.little-arrows) > :where(button)::after {
  content: none;
}

:where(.little-arrows):has(> .up:active:where(:not([data-clio-off]))) {
  background-image: var(--clio-art-little-arrows-up, var(--clio-art-little-arrows));
}

:where(.little-arrows):has(> .down:active:where(:not([data-clio-off]))) {
  background-image: var(--clio-art-little-arrows-down, var(--clio-art-little-arrows));
}

:where(.little-arrows):is([aria-disabled="true"], :has(> button:disabled)) {
  background-image: var(--clio-art-little-arrows-disabled, var(--clio-art-little-arrows));
}

/* ---- Bevel button ------------------------------------------------------------
   A square bevelled button for an icon or a short label, which can act as a
   push button, a toggle (aria-pressed) or a menu (class "menu", aria-haspopup)
   (Mac OS 8 HIG: "Bevel Buttons"). Earlier eras had none and use push buttons'
   square cousin from Platinum. */
:where(.bevel) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: var(--clio-bevel-min);
  min-height: var(--clio-bevel-min);
  margin: 0;
  padding: var(--clio-bevel-padding);
  border: var(--clio-bevel-slice) solid transparent;
  border-radius: 0;
  border-image: var(--clio-art-bevel) var(--clio-bevel-slice-n) fill / var(--clio-bevel-slice) stretch;
  background: transparent;
  box-shadow: none;
  color: var(--clio-ink);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(.bevel):is(:active:where(:not([data-clio-off])), .active, [aria-pressed="true"]):not(:disabled) {
  border-image-source: var(--clio-art-bevel-held);
}

:where(.bevel) {
  position: relative;
}

:where(.bevel)::before,
:where(.bevel)::after {
  content: none;
}

/* The menu arrow, over the face (border-image fill paints over backgrounds). */
:where(.bevel.menu, .bevel[aria-haspopup])::after {
  content: "";
  position: absolute;
  right: calc(var(--clio-bevel-arrow-right) - var(--clio-bevel-slice));
  bottom: calc(var(--clio-bevel-arrow-bottom) - var(--clio-bevel-slice));
  width: var(--clio-bevel-arrow-width);
  height: var(--clio-bevel-arrow-height);
  background: var(--clio-art-bevel-menu-arrow) 0 0 / 100% 100% no-repeat;
}

/* ---- Keyboard focus on lists ---------------------------------------------------
   Mac OS 8 draws the same ring round a list box that has the keyboard focus
   (Appearance, Desktop tab, the pattern list); text fields take it from
   --clio-field-focus-shadow. */
:where(.listbox, [role="listbox"], select[multiple]):is(:focus-visible, :focus-within) {
  box-shadow: var(--clio-list-focus-shadow, var(--clio-list-shadow));
}

/* ---- Chasing arrows ------------------------------------------------------------
   The asynchronous progress indicator (Mac OS 8 HIG: "Asynchronous Arrows").
   Markup: <span class="chasing-arrows" role="status" aria-label="Looking…">.
   It turns by stepping through the era's frames; with reduced motion it
   stands still on the first. Earlier eras had a spinning watch cursor
   instead, and use Platinum's arrows. */
:where(.chasing-arrows) {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  overflow: hidden;
  vertical-align: middle;
}

/* The frames side by side on a strip that moves a frame at a time (transform
   only, so the turning stays off the main thread). */
:where(.chasing-arrows)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(16px * var(--clio-chasing-arrows-frames));
  height: 16px;
  background: var(--clio-art-chasing-arrows) 0 0 / 100% 100% no-repeat;
  animation: clio-chase calc(var(--clio-chasing-arrows-frames) * 0.12s) steps(var(--clio-chasing-arrows-frames)) infinite;
}

@keyframes clio-chase {
  to { transform: translateX(calc(-16px * var(--clio-chasing-arrows-frames))); }
}

@media (prefers-reduced-motion: reduce) {
  :where(.chasing-arrows)::before { animation: none; }
}

/* ---- Help button -----------------------------------------------------------------
   The square button with the help icon in a dialog's lower left (Mac OS 8 HIG:
   "Help Button Layout"). <button class="help-button" aria-label="Help">.
   Earlier eras put a "Help" push button there instead, and use Platinum's. */
:where(.help-button) {
  box-sizing: border-box;
  width: 21px;
  min-width: 0;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  border-image: none;
  background: var(--clio-art-help-button) 0 0 / 21px 20px no-repeat;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(.help-button)::before,
:where(.help-button)::after {
  content: none;
}

/* ---- Image well ---------------------------------------------------------------------
   A sunken well that holds a picture or an icon (Mac OS 8 HIG: "Image Wells"),
   drawn like the era's field frame round a white face (inferred: no image
   well was on the captured screens). <div class="image-well"><img …></div> */
:where(.image-well) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: var(--clio-field-border);
  background: var(--clio-image-well-bg);
  box-shadow: var(--clio-field-shadow);
}

/* ---- Group boxes: secondary, and titled by a check box ---------------------------
   <fieldset class="secondary"> is the lighter group for a subordinate set
   (Mac OS 8 HIG: "Group Boxes"). A check box or pop-up menu as the title goes
   in the legend: <legend><label><input type="checkbox"> Use a server</label></legend>.
   Before Mac OS 8 every group box is the one kind. */
:where(fieldset > legend) > :where(label) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- Utility window ------------------------------------------------------------------
   A floating palette (Mac OS 8 HIG: "Utility Windows"; HIG 1992: floating
   windows): <div class="window utility"> with the usual .title-bar. Its title
   bar is thinner, its boxes smaller and its title in the small font. Before
   Mac OS 8 the eras draw it from the document window's parts (inferred). */
:where(.window.utility) {
  --clio-titlebar-height: var(--clio-utility-titlebar-height);
  --clio-titlebar-row: var(--clio-utility-titlebar-row);
  --clio-box-size: var(--clio-utility-box-size);
  --clio-titlebar-slot: var(--clio-utility-slot);
  min-width: 80px;
}

:where(.window.utility) > :where(.title-bar) > :is(.title, h1, h2, h3) {
  font-size: var(--clio-utility-title-size, var(--clio-title-font-size));
}

/* ---- Help balloon ------------------------------------------------------------------
   Balloon Help (HIG 1992, ch. 11; Mac OS 8 and 9 kept it): a white balloon
   with a rounded outline, a 2px drop on the right and below, and a tail rising
   from its top edge near the right towards the object it describes.
   <div class="balloon" role="tooltip">…</div>. The tail's tip, under the
   pointer in the capture, is inferred. */
:where(.balloon) {
  position: relative;
  box-sizing: border-box;
  width: max-content;
  max-width: 260px;
  margin-top: 14px;
  padding: 8px 12px 10px 10px;
  border: 10px solid transparent;
  border-image: var(--clio-art-balloon) 10 fill / 10px stretch;
  font-family: var(--clio-font-small);
  font-size: var(--clio-font-size-small);
  line-height: 13px;
}

:where(.balloon) {
  padding: 0 2px 0 0;
}

:where(.balloon)::before {
  content: "";
  position: absolute;
  top: -23px;
  right: -5px;
  width: 12px;
  height: 14px;
  background: var(--clio-art-balloon-tail) 0 0 / 12px 14px no-repeat;
}

/* The rare controls (ROADMAP "Can wait" 10): the rounded-corner window, placards,
   split bars and the side-title utility window (its Platinum drawing is in
   90-platinum.css). Measured in Infinite Mac; see EVIDENCE.md. */

/* ---- Rounded-corner window (rDocProc, desk accessories) ----------------------
   <div class="rounded-window"> > <div class="rounded-title"> (> .close, h2) and
   any content. The Calculator draws the same window in System 6.0.8, 7.5.3,
   Mac OS 8.5 (Drawing Board) and 9.0: a 1px black frame whose corners step in
   5, 3, 2, 1, 1 pixels; a 17-row black title bar ruled below, the title in
   white centred in the space right of an 11px white close box at (9,4). In the
   background the bar turns white, the title black, and the close box goes. */
:where(.rounded-window) {
  --clio-rounded-bg: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 60px;
  border: 1px solid #000000;
  background: var(--clio-rounded-bg);
  -webkit-mask:
    var(--clio-art-rdoc-mask-tl) left top / 6px 6px no-repeat,
    var(--clio-art-rdoc-mask-tr) right top / 6px 6px no-repeat,
    var(--clio-art-rdoc-mask-bl) left bottom / 6px 6px no-repeat,
    var(--clio-art-rdoc-mask-br) right bottom / 6px 6px no-repeat,
    linear-gradient(#000000, #000000) 0 6px / 100% calc(100% - 12px) no-repeat,
    linear-gradient(#000000, #000000) 6px 0 / calc(100% - 12px) 100% no-repeat;
  mask:
    var(--clio-art-rdoc-mask-tl) left top / 6px 6px no-repeat,
    var(--clio-art-rdoc-mask-tr) right top / 6px 6px no-repeat,
    var(--clio-art-rdoc-mask-bl) left bottom / 6px 6px no-repeat,
    var(--clio-art-rdoc-mask-br) right bottom / 6px 6px no-repeat,
    linear-gradient(#000000, #000000) 0 6px / 100% calc(100% - 12px) no-repeat,
    linear-gradient(#000000, #000000) 6px 0 / calc(100% - 12px) 100% no-repeat;
}

/* The frame's curve inside each corner, over the title bar and the content. */
.rounded-window::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  background:
    var(--clio-art-rdoc-frame-tl) left top / 6px 6px no-repeat,
    var(--clio-art-rdoc-frame-tr) right top / 6px 6px no-repeat,
    var(--clio-art-rdoc-frame-bl) left bottom / 6px 6px no-repeat,
    var(--clio-art-rdoc-frame-br) right bottom / 6px 6px no-repeat;
  pointer-events: none;
}

.rounded-window > .rounded-title {
  position: relative;
  display: flex;
  flex: none;
  justify-content: center;
  box-sizing: border-box;
  height: 18px;
  padding: 1px 1px 0 18px;
  border-bottom: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  font-family: var(--clio-font-window-title, var(--clio-font-chrome));
  user-select: none;
  -webkit-user-select: none;
}

.rounded-window > .rounded-title > :is(.title, h1, h2, h3) {
  margin: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  font-size: var(--clio-title-font-size);
  font-stretch: var(--clio-font-stretch-title);
  font-weight: var(--clio-chrome-weight);
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded-window > .rounded-title > :is(button.close, .close) {
  position: absolute;
  top: 3px;
  left: 8px;
  box-sizing: border-box;
  width: 11px;
  min-width: 0;
  height: 11px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff;
  border-image: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

.rounded-window > .rounded-title > :is(button.close, .close)::before,
.rounded-window > .rounded-title > :is(button.close, .close)::after {
  content: none;
}

.rounded-window > .rounded-title > :is(button.close, .close):focus-visible {
  outline: 1px dotted #ffffff;
  outline-offset: 1px;
}

.rounded-window.inactive > .rounded-title {
  background: #ffffff;
  color: #000000;
}

.rounded-window.inactive > .rounded-title > :is(button.close, .close) {
  visibility: hidden;
}

/* ---- Placard ------------------------------------------------------------------
   A framed strip for status at the foot of a window, beside the horizontal scroll
   bar (Mac OS 8 HIG: "Placards"). The control came with the Appearance Manager;
   before it, the eras draw a 1px frame on the paper (adapted). */
:where(.placard) {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 16px;
  margin: 0;
  padding: 0 4px;
  border: 1px solid var(--clio-ink);
  border-radius: 0;
  background: var(--clio-paper);
  box-shadow: none;
  color: var(--clio-ink);
  font-family: var(--clio-font-small);
  font-size: var(--clio-font-size-small, 9px);
  line-height: 12px;
  white-space: nowrap;
}

/* While a split bar is dragged the split line's place shows as a 3-row grey band
   across the view (Inside Macintosh: Windows — the split line follows the pointer
   as an outline; HIG 1992, "Splitting a Window"). Drawn by clio.js. */
:where(.clio-split-outline) {
  position: fixed;
  z-index: 2147483000;
  height: 3px;
  background: repeating-conic-gradient(#ffffff 0 25%, transparent 0 50%) 0 0 / 2px 2px;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* ---- Split bar and split line ---------------------------------------------------
   <div class="split-view"> > .split-bar (above the vertical scroll bar), panes,
   and a .split-line between two panes. Apple's guidelines (1992) give the split
   bar as a control 5 pixels high by the width of the scroll bar, at its top, and
   the split line as two lines with a one-pixel space; BBEdit 5.1 in Mac OS 9 draws
   it 7 rows high (90-platinum.css). Moving it is the application's: clio.css only
   draws it. */
:where(.split-view) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--clio-split-bg, var(--clio-pane-bg));
}

:where(.split-view) > :where(.split-bar) {
  align-self: flex-end;
}

:where(.split-bar) {
  flex: none;
  box-sizing: border-box;
  width: var(--clio-scrollbar-size);
  height: var(--clio-split-bar-height, 5px);
  background: var(--clio-split-ink, var(--clio-ink));
  cursor: row-resize;
}

:where(.split-line) {
  --clio-split-line-1: 1px;
  flex: none;
  box-sizing: border-box;
  height: var(--clio-split-bar-height, 5px);
  margin: 0;
  border: 0;
  background:
    linear-gradient(var(--clio-split-ink, var(--clio-ink)), var(--clio-split-ink, var(--clio-ink))) right top / var(--clio-scrollbar-size) 100% no-repeat,
    linear-gradient(var(--clio-split-ink, var(--clio-ink)), var(--clio-split-ink, var(--clio-ink))) 0 var(--clio-split-line-1) / 100% 1px no-repeat,
    linear-gradient(var(--clio-split-ink, var(--clio-ink)), var(--clio-split-ink, var(--clio-ink))) 0 calc(var(--clio-split-line-1) + 2px) / 100% 1px no-repeat,
    var(--clio-split-bg, var(--clio-pane-bg));
  cursor: row-resize;
}

/* Dialogs and alerts.
   .modal-dialog / .alert-box: the double-framed modal box (dBoxProc).
   .standard-dialog: the plain box with a drop shadow (altDBoxProc).
   .modeless-dialog: a movable dialog, which is a .window.
   Use them on <dialog> or on a <div role="dialog">. system.css's
   .outer-border / .inner-border wrappers are accepted and draw nothing extra. */
:where(.modal-dialog, .alert-box, dialog.modal) {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: var(--clio-modal-padding);
  border: var(--clio-modal-border);
  background: var(--clio-dialog-bg);
  box-shadow: var(--clio-modal-frame);
  color: var(--clio-ink);
}

:where(.standard-dialog) {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: var(--clio-plain-dialog-border);
  background: var(--clio-dialog-bg);
  box-shadow: var(--clio-plain-dialog-shadow);
  color: var(--clio-ink);
}

:where(dialog):is(.modal-dialog, .alert-box, .standard-dialog, .modal)::backdrop {
  background: transparent;
}

:where(.modal-dialog, .alert-box, .standard-dialog) :where(.outer-border, .inner-border) {
  padding: 0;
  border: 0;
}

/* Alert layout: icon on the left, message, buttons bottom-right. */
:where(.alert-box) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
}

:where(.alert-box) > :where(.alert-icon) {
  grid-row: 1;
  width: 32px;
  height: 32px;
}

:where(.alert-box) > :where(.alert-contents, .modal-contents, p) {
  grid-column: 2;
  margin: 0;
}

:where(.alert-box) > :where(.alert-buttons, .dialog-buttons) {
  grid-column: 1 / -1;
}

:where(.dialog-buttons, .alert-buttons) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

/* An alert icon drawn here, not Apple's: a rounded speech box with "!". */
:where(.alert-icon.caution, .alert-icon.note, .alert-icon.stop) {
  display: block;
  box-sizing: border-box;
  border: 2px solid var(--clio-ink);
  border-radius: 6px;
  background: var(--clio-paper);
  color: var(--clio-ink);
  font: 700 22px/28px var(--clio-font-display);
  text-align: center;
}

:where(.alert-icon.caution)::before { content: "!"; }
:where(.alert-icon.note)::before { content: "i"; }
:where(.alert-icon.stop) { border-radius: 50%; }
:where(.alert-icon.stop)::before { content: "\00D7"; }

/* Scroll bars, for scroll areas clio.css owns (.window-pane, .listbox,
   textarea, list-box selects) and for anything you mark with .clio-scroll.
   Add class="clio-scrollbars" to <html> to give every scroll area the era's
   scroll bar.

   WebKit/Blink draw the full bar: two arrow boxes, the patterned lane and the
   scroll box. The scroll box is proportional to the content here (a browser
   limit), where System 6 drew a fixed 16px square. Firefox has no scroll bar
   parts, so it gets the era's colours through scrollbar-color. */
:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar,
:where(html.clio-scrollbars)::-webkit-scrollbar {
  width: var(--clio-scrollbar-size);
  height: var(--clio-scrollbar-size);
  background: var(--clio-paper);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb {
  width: var(--clio-scrollbar-size);
  height: var(--clio-scrollbar-size);
  background: var(--clio-paper);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
:where(html.clio-scrollbars)::-webkit-scrollbar-track {
  background: var(--clio-scrollbar-track);
  box-shadow: var(--clio-scrollbar-track-shadow);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-track {
  background: var(--clio-scrollbar-track);
  box-shadow: var(--clio-scrollbar-track-shadow);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:vertical,
:where(html.clio-scrollbars)::-webkit-scrollbar-track:vertical {
  border-left: 1px solid var(--clio-ink);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-track {
  border-left: 1px solid var(--clio-ink);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:horizontal,
:where(html.clio-scrollbars)::-webkit-scrollbar-track:horizontal {
  border-top: 1px solid var(--clio-ink);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-track {
  border-top: 1px solid var(--clio-ink);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb,
:where(html.clio-scrollbars)::-webkit-scrollbar-thumb {
  min-width: var(--clio-scrollbar-size);
  min-height: var(--clio-scrollbar-size);
  border: var(--clio-scrollbar-thumb-border);
  background: var(--clio-scrollbar-thumb-bg);
  box-shadow: var(--clio-scrollbar-thumb-shadow);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-thumb {
  min-width: var(--clio-scrollbar-size);
  min-height: var(--clio-scrollbar-size);
  border: var(--clio-scrollbar-thumb-border);
  background: var(--clio-scrollbar-thumb-bg);
  box-shadow: var(--clio-scrollbar-thumb-shadow);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
:where(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
  background: var(--clio-scrollbar-thumb-bg-horizontal, var(--clio-scrollbar-thumb-bg));
  box-shadow: var(--clio-scrollbar-thumb-shadow-horizontal, var(--clio-scrollbar-thumb-shadow));
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-thumb {
  background: var(--clio-scrollbar-thumb-bg-horizontal, var(--clio-scrollbar-thumb-bg));
  box-shadow: var(--clio-scrollbar-thumb-shadow-horizontal, var(--clio-scrollbar-thumb-shadow));
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:start:decrement,
:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:end:increment,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:start:decrement,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:end:increment {
  display: block;
  width: var(--clio-scrollbar-size);
  height: var(--clio-scrollbar-size);
  background-color: var(--clio-scrollbar-button-bg);
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--clio-scrollbar-button-shadow);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button:not(.clio-sb-never).clio-sb-dec,
:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button:not(.clio-sb-never).clio-sb-inc {
  display: block;
  width: var(--clio-scrollbar-size);
  height: var(--clio-scrollbar-size);
  background-color: var(--clio-scrollbar-button-bg);
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--clio-scrollbar-button-shadow);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement {
  border-left: 1px solid var(--clio-ink);
  border-bottom: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-up), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-dec {
  border-left: 1px solid var(--clio-ink);
  border-bottom: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-up), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment {
  border-left: 1px solid var(--clio-ink);
  border-top: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-down), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-inc {
  border-left: 1px solid var(--clio-ink);
  border-top: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-down), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement {
  border-top: 1px solid var(--clio-ink);
  border-right: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-left), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-dec {
  border-top: 1px solid var(--clio-ink);
  border-right: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-left), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment {
  border-top: 1px solid var(--clio-ink);
  border-left: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-right), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-inc {
  border-top: 1px solid var(--clio-ink);
  border-left: 1px solid var(--clio-ink);
  background-image: var(--clio-scrollbar-right), var(--clio-scrollbar-button-bevel);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement:active,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement:active {
  background-image: var(--clio-scrollbar-up-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-dec.clio-held {
  background-image: var(--clio-scrollbar-up-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment:active,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment:active {
  background-image: var(--clio-scrollbar-down-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-button.clio-sb-inc.clio-held {
  background-image: var(--clio-scrollbar-down-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement:active,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement:active {
  background-image: var(--clio-scrollbar-left-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-dec.clio-held {
  background-image: var(--clio-scrollbar-left-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment:active,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment:active {
  background-image: var(--clio-scrollbar-right-on), var(--clio-scrollbar-button-bevel-on, none);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button.clio-sb-inc.clio-held {
  background-image: var(--clio-scrollbar-right-on), var(--clio-scrollbar-button-bevel-on, none);
}

/* Only the single arrow box at each end, as on the Mac. */
:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:start:increment,
:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:end:decrement,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:start:increment,
:where(html.clio-scrollbars)::-webkit-scrollbar-button:end:decrement {
  display: none;
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-corner,
:where(html.clio-scrollbars)::-webkit-scrollbar-corner {
  border-top: 1px solid var(--clio-ink);
  border-left: 1px solid var(--clio-ink);
  background: var(--clio-scrollbar-corner);
}

:where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb-corner {
  border-top: 1px solid var(--clio-ink);
  border-left: 1px solid var(--clio-ink);
  background: var(--clio-scrollbar-corner);
}

@supports not selector(::-webkit-scrollbar) {
  :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, html.clio-scrollbars, .clio-scrollbars *) {
    scrollbar-color: var(--clio-scrollbar-thumb-color, var(--clio-ink)) var(--clio-scrollbar-track-color, #c0c0c0);
  }
}

/* Scroll bars drawn by clio.js (optional): the same parts as the browser's
   scroll bar, as elements, so the scroll box keeps its era's fixed length, an
   arrow repeats while held and a dragged box can leave an outline behind.
   The parts take every ::-webkit-scrollbar rule (the build copies each one onto
   .clio-sb-*); this file only places them. clio.js sets each bar's geometry. */
.clio-sb-host {
  box-sizing: border-box;   /* the bar comes out of the box, as the browser's does (everything in a clio.css window already is) */
  scrollbar-width: none;
}

.clio-sb-host::-webkit-scrollbar {
  display: none;
}

/* The bar sits in the scroller's padding, which grows by the bar's width. */
.clio-sb-host.clio-sb-y {
  padding-right: calc(var(--clio-sb-pr, 0px) + var(--clio-scrollbar-size));
}

.clio-sb-host.clio-sb-x {
  padding-bottom: calc(var(--clio-sb-pb, 0px) + var(--clio-scrollbar-size));
}

/* A zero-size first child that sticks to the scroller's corner, so the bars
   inside it stay put while the content moves. At rest it sits at the content
   box's corner, the scroller's padding in from the padding box; clio.js steps
   the bars back by that padding, so the lanes land inside the frame. Inset 0
   keeps it there once scrolled: the sticky view rectangle is the scrollport
   less its padding in Chromium, WebKit and Firefox alike (measured 2026-11-22),
   so any other inset moves the bars during the first padding's worth of scroll. */
.clio-sb-anchor {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  float: none;
}

.clio-sb-anchor > :is(.clio-sb, .clio-sb-corner) {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.clio-sb-anchor > .clio-sb > * {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
}

.clio-sb-anchor > .clio-sb-v > .clio-sb-dec { top: 0; left: 0; }
.clio-sb-anchor > .clio-sb-v > .clio-sb-inc { bottom: 0; left: 0; }
.clio-sb-anchor > .clio-sb-v > .clio-sb-track { top: var(--clio-scrollbar-size); bottom: var(--clio-scrollbar-size); left: 0; right: 0; }
.clio-sb-anchor > .clio-sb-v > .clio-sb-thumb { top: var(--clio-scrollbar-size); left: var(--clio-scrollbar-thumb-inset, 0px); right: 0; min-width: 0; }   /* the bar's min-width is the box's length */
.clio-sb-anchor > .clio-sb-h > .clio-sb-dec { left: 0; top: 0; }
.clio-sb-anchor > .clio-sb-h > .clio-sb-inc { right: 0; top: 0; }
.clio-sb-anchor > .clio-sb-h > .clio-sb-track { left: var(--clio-scrollbar-size); right: var(--clio-scrollbar-size); top: 0; bottom: 0; }
.clio-sb-anchor > .clio-sb-h > .clio-sb-thumb { left: var(--clio-scrollbar-size); top: var(--clio-scrollbar-thumb-inset, 0px); bottom: 0; min-height: 0; }

/* Smart Scrolling (Mac OS 8/9, Appearance > Options): both arrows at the far
   end, the up or left arrow first. */
.clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-dec { top: auto; bottom: var(--clio-scrollbar-size); }
.clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-track { top: 0; bottom: calc(2 * var(--clio-scrollbar-size)); }
.clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-thumb { top: 0; }
.clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-dec { left: auto; right: var(--clio-scrollbar-size); }
.clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-track { left: 0; right: calc(2 * var(--clio-scrollbar-size)); }
.clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-thumb { left: 0; }

/* QuickDraw kept a lane's pattern in step with the screen (System 6.0.8, System
   7.5.3): clio.js sets --clio-sb-px/-py on each bar to keep it in step with the
   page. A rule, not a token: the offsets belong to each bar. Eras whose tracks
   have their own rules (Drawing Board) place their layers themselves. */
.clio-sb-anchor > .clio-sb > .clio-sb-track {
  background-position: var(--clio-sb-px, 0px) var(--clio-sb-py, 0px);
}

/* The arrows lie over the box's ends and its shadow. */
.clio-sb-anchor > .clio-sb > .clio-sb-button { z-index: 1; }

/* Mac OS 8/9: the lane's top shading also falls just past the box's far end
   (--clio-scrollbar-thumb-after, drawn only by clio.js's bars). */
.clio-sb-anchor > .clio-sb > .clio-sb-thumb::after {
  content: "";
  position: absolute;
  background: var(--clio-scrollbar-thumb-after, none);
}

.clio-sb-anchor > .clio-sb-v > .clio-sb-thumb::after { top: calc(100% + 1px); left: 0; right: 0; height: 2px; }   /* past the box's end line */
.clio-sb-anchor > .clio-sb-h > .clio-sb-thumb::after { left: calc(100% + 1px); top: 0; bottom: 0; width: 2px; }

/* Nothing to scroll: the lane stays, the box goes (as on the Mac). */
.clio-sb-anchor > .clio-sb.clio-sb-off > .clio-sb-thumb {
  display: none;
}

/* The outline a dragged scroll box leaves in System 6 and 7: the box's frame,
   drawn over the lane, until the button comes up. */
.clio-sb-anchor > .clio-sb > .clio-sb-ghost {
  z-index: 1;
  padding: 1px;
  background: var(--clio-scrollbar-ghost, #000000);
  background-position: calc(var(--clio-sb-px, 0px) + var(--clio-sb-gx, 0px)) calc(var(--clio-sb-py, 0px) + var(--clio-sb-gy, 0px));   /* in step with the lane's pattern */
  mix-blend-mode: var(--clio-scrollbar-ghost-blend, normal);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* clio.js outlines (a dragged window, zoom rects): QuickDraw's grey pattern,
   inverting what lies under it, in step with the screen. */
.clio-outline {
  /* The outline is the frame of the window's structure region (QuickDraw's
     InsetRgn, rows and columns apart): the frame and its 1px shadow, which starts
     --clio-drag-outline-shadow-inset in from the top-right and bottom-left corners,
     so the region and the band step in there (all measured). e, k, w below. */
  --e: var(--clio-drag-outline-extra, 0px);
  --k: var(--clio-drag-outline-shadow-inset, 1px);
  --w: var(--clio-drag-outline-width, 1px);
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  margin: 0;
  /* gray inverts the pixels whose x + y is odd on the screen (System 6.0.8, 7.5.3
     and Mac OS 9.0, measured); clio.js sets the position that keeps it to the page */
  background: repeating-conic-gradient(#ffffff 0 25%, transparent 0 50%) 0 0 / 2px 2px;
  mix-blend-mode: difference;
  /* the band (box less content box), the region's two notches taken out and the
     two pieces of the inset region they remove put back: every piece lies wholly
     in or out of what is below it, so xor does each */
  mask:
    linear-gradient(#000 0 0) left 0 bottom 0 / var(--k) var(--e) no-repeat border-box exclude,
    linear-gradient(#000 0 0) right 0 top 0 / var(--e) var(--k) no-repeat border-box exclude,
    linear-gradient(#000 0 0) left var(--w) bottom var(--w) / var(--k) var(--e) no-repeat border-box exclude,
    linear-gradient(#000 0 0) right var(--w) top var(--w) / var(--e) var(--k) no-repeat border-box exclude,
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0) border-box;
  pointer-events: none;
  image-rendering: pixelated;
}

/* clio.js: the move button of a movable window and the live region. Out of
   sight but in reach; with keyboard focus the title bar shows the ring. */
:is(.clio-move, .clio-live) {
  /* !important: the title bar's own button rules (the close box's art and
     place) must not reach it */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.title-bar:has(> .clio-move:focus-visible) {
  outline: var(--clio-focus-outline);
  outline-offset: -1px;
}


/* clio.js: a movable window's title bar takes a finger's drag itself (on a
   touch screen the browser would otherwise pan the page and cancel the drag). */
.clio-drag-bar {
  touch-action: none;
}

/* ---- clio.js: the insertion point --------------------------------------------
   TextEdit inverted a 1px line for its caret, as tall as the line: white in a
   difference blend inverts what is under it the same way. The field's own caret
   is hidden only while clio.js draws this one. */
.clio-caret {
  position: absolute;
  z-index: 2147483646;
  width: 1px;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.clio-caret-off,
.clio-caret[hidden] {
  visibility: hidden;
}

.clio-caret-field {
  caret-color: transparent;
}

/* Forced colours repaint the line and may drop the blend: the system's caret instead. */
@media (forced-colors: active) {
  .clio-caret {
    display: none;
  }

  .clio-caret-field {
    caret-color: auto;
  }
}

/* Control Strip (System 7.5 to Mac OS 9): a row of module buttons with scroll
   arrows and a tab that folds the strip away. Markup follows AI System 6:
   .control-strip > button.control-strip-scroll.control-strip-scroll-back,
   .control-strip-modules[role=toolbar] > .control-strip-module-track >
   button.control-strip-module (an icon inside; aria-haspopup="menu" draws the
   menu triangle), button.control-strip-scroll.control-strip-scroll-forward,
   button.control-strip-handle. Add .is-collapsed to fold it to the tab, and
   data-edge="right" for a strip on the right edge. Placement is yours
   (AI System 6 fixes it to the screen's lower left). */
/* The strip's art is the same in System 7.5.3, Mac OS 8.5 and Mac OS 9.0
   (compared pixel for pixel with the backdrop removed); only the cell colours
   differ, so it lives here for every era. Redrawn by tooling/p9-art.py. */
:root {
  --clio-art-p9-strip-cap: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAYBAMAAADXK7paAAAAHlBMVEUAAAAAAABERERVVVWAgICIiIigoKDAwMDMzP/////+VYXkAAAAAXRSTlMAQObYZgAAAGlJREFUeJxjFGQAg/8sbAlgxkwWBiUQfZuBheHfAwYGhg8MTBAlDPgYLAx/9jAwsOgysDAwhDIw/L8LYvy98NcVry4mBoa/Zy+AtTOwlzP8AzFY3r0jYBfC0l/3P4AZjILMBiD6DCPMOwBKOxgiile5lQAAAABJRU5ErkJggg==");
  --clio-art-s7-strip-cap: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAYBAMAAADXK7paAAAAG1BMVEUAAAAAAABERERVVVWIiIiqqqrMzMzMzP/////JRvoVAAAAAXRSTlMAQObYZgAAAGVJREFUeJxjFGQAg/8srAFgxioWBiUQfYeBheHfAwYGhg8MTBAlDPgYLAx/zzIwMMsxsDAwuDAw/L8HYvy98M+FgC6Gf/egDLY0hn8gBvO7dwTsQmj/ff8DmMEoyGwAos8wwrwDAP+1F0dci98qAAAAAElFTkSuQmCC");
  --clio-art-p9-strip-back: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKAgMAAADwXCcuAAAACVBMVEUAAABVVVXd3d2apXz3AAAAAXRSTlMAQObYZgAAACxJREFUeJwFwaERwCAABLD0j3oE7IPBs/8KrcBjSKhiKM/cebs0gvzkfFioLlg9BPcTGNP4AAAAAElFTkSuQmCC");
  --clio-art-p9-strip-forward: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKAgMAAADwXCcuAAAACVBMVEUAAABVVVXd3d2apXz3AAAAAXRSTlMAQObYZgAAAC1JREFUeJwFwSESABAUQMHnzegC9/nFqRX3IegCuxBIwVYxdySFgLzpHbg2cvhWkAdTrBZiqwAAAABJRU5ErkJggg==");
  --clio-art-p9-strip-menu: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHAQMAAAAVq36TAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAABZJREFUeJxjaGA4wPCA4QMTA9MHpgcAIQYE58W2/JQAAAAASUVORK5CYII=");
  --clio-art-p9-strip-handle: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAYBAMAAAAFe7ACAAAAFVBMVEUAAAAAAABERERVVVWIiIjMzMz///8V67gPAAAAAXRSTlMAQObYZgAAAINJREFUeJxVz7ENAjEMheE/IbQokRiAUVJQUjAs5RXZhJvgkp6LjGwfBU309PzFkkMBZAApVVgAIqWUZ9bORsE6fWvWJCukoIlbtjICG0sK5iLnVrM7Hqefsy3qPKnzZM6n/+41D/epbbi772IOaOPYsIv/sIrEG6YA4XqB3vWO2UErvmVcJ4BylohjAAAAAElFTkSuQmCC");
  --clio-art-p9-strip-tab: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAYBAMAAAAFe7ACAAAAFVBMVEUAAAAAAABERERVVVWIiIjMzMz///8V67gPAAAAAXRSTlMAQObYZgAAAIFJREFUeJxVz7ENAjEMQNHvKPS+DRiBEVJQMi49WeAkRrgJSHoijOyEgipf1pPlyAbQgMwVxqN7iYIACVprRaMUskS9gKJeSWKYADtGLRruzC3Lcqd6WW7uw45V7ma5m/Xv3uW53H3YdLnU7g4YFg9Q+6phfv2nw95BNlGsRf1++QW6eCj9rQPMHAAAAABJRU5ErkJggg==");
}

:where(.control-strip) {
  display: inline-flex;
  align-items: stretch;
  height: var(--clio-strip-height);
  max-width: 100%;
  vertical-align: bottom;
  user-select: none;
  -webkit-user-select: none;
}

/* The end cap, then every cell: one bevelled box between 1px lines. */
:where(.control-strip)::before,
:where(.control-strip) > :is(.control-strip-scroll, .control-strip-modules),
:where(.control-strip-module) {
  box-sizing: border-box;
  border: var(--clio-strip-line);
  border-left: 0;
  background: var(--clio-strip-bg);
  box-shadow: var(--clio-strip-cell-shadow);
}

/* The end cap is one picture: frame, bevel, icon and the rounded lower-left corner. */
:where(.control-strip)::before {
  content: "";
  flex: none;
  width: calc(var(--clio-strip-cap-width) + 2px);
  border: 0;
  background: var(--clio-strip-cap) 0 0 / 100% 100% no-repeat;
  box-shadow: none;
}

:where(.control-strip) > :is(.control-strip-scroll, .control-strip-handle) {
  flex: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

/* Scroll arrows: 13px cells, sunken and hollow while there is nothing to scroll. */
:where(.control-strip) > .control-strip-scroll {
  width: calc(var(--clio-strip-scroll-width) + 1px);
  min-width: 0;
  height: auto;
  min-height: 0;
  background: var(--clio-strip-back) 1px 6px / 10px 10px no-repeat, var(--clio-strip-bg);
  box-shadow: var(--clio-strip-cell-shadow);
}

:where(.control-strip) > .control-strip-scroll-forward {
  background-image: var(--clio-strip-forward);
}

:where(.control-strip) > .control-strip-scroll:disabled {
  background:
    var(--clio-strip-back) 1px 6px / 10px 10px no-repeat,
    var(--clio-strip-sunken-lines),
    var(--clio-strip-bg);
  box-shadow: var(--clio-strip-sunken-shadow);
}

:where(.control-strip) > .control-strip-scroll-forward:disabled {
  background-image: var(--clio-strip-forward);
}

:where(.control-strip) > .control-strip-scroll:not(:disabled):active:where(:not([data-clio-off])),
:where(.control-strip-module):not(:disabled):is(:active:where(:not([data-clio-off])), [aria-expanded="true"]) {
  background-color: var(--clio-strip-pressed-bg);
  box-shadow: var(--clio-strip-pressed-shadow);
}

:where(.control-strip-modules) {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: none;
  box-shadow: none;
}

:where(.control-strip-module-track) {
  display: flex;
}

/* A module: the 16px icon 2px in, the menu triangle 3px from the right. */
:where(.control-strip-module) {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  width: calc(var(--clio-strip-module-width) + 1px);
  min-width: 0;
  height: var(--clio-strip-height);
  min-height: 0;
  margin: 0;
  padding: 0 0 0 var(--clio-strip-icon-inset);
  border-radius: 0;
  color: var(--clio-ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: var(--clio-cursor-arrow);
}

:where(.control-strip-module) > :is(svg, img, .sys-icon) {
  width: 16px;
  height: 16px;
}

:where(.control-strip-module)[aria-haspopup]::after {
  content: "";
  position: absolute;
  top: var(--clio-strip-menu-top);
  right: calc(var(--clio-strip-menu-inset) + 1px);
  width: 4px;
  height: 7px;
  background: var(--clio-strip-menu) 0 0 / 4px 7px no-repeat;
}

:where(.control-strip-module):disabled {
  color: var(--clio-disabled);
  opacity: 0.5;
}

/* The tab: open, a slanted end with a grip; folded, the strip shrinks to it. */
:where(.control-strip) > .control-strip-handle {
  width: var(--clio-strip-handle-width);
  min-width: 0;
  height: var(--clio-strip-height);
  min-height: 0;
  border: 0;
  background: var(--clio-strip-handle) 0 0 / 100% 100% no-repeat;
  box-shadow: none;
}

:where(.control-strip.is-collapsed)::before,
:where(.control-strip.is-collapsed) > :not(.control-strip-handle) {
  display: none;
}

:where(.control-strip.is-collapsed) > .control-strip-handle {
  width: var(--clio-strip-tab-width);
  background-image: var(--clio-strip-tab);
}

:where(.control-strip)[data-edge="right"] {
  flex-direction: row-reverse;
}

:where(.control-strip)[data-edge="right"]::before,
:where(.control-strip)[data-edge="right"] > .control-strip-handle {
  transform: scaleX(-1);
}

:where(.control-strip) > :focus-visible,
:where(.control-strip-module):focus-visible {
  outline: var(--clio-focus-outline);
  outline-offset: -3px;
}

/* Macintosh System 7 in colour (7.5.3). System 7 keeps System 6's geometry,
   fonts and black-and-white controls; colour reaches the window frame, the
   title bar, the scroll bars and alerts. Applies inside data-era="system7";
   clio.system7.css is a build with System 7 as the page default.
   Every value: System 7.5.3 in Infinite Mac, the 800x600 canvas read 1:1
   (npm run capture:system7); see EVIDENCE.md. */
[data-era="system7"] {
  /* Separator (Memory control panel, System 7.5.3): a 3px band of QuickDraw's
     50% grey, aligned to the screen. */
  --clio-separator-height: 3px;
  --clio-separator-bg: var(--clio-art-s6-gray50) 0 0 / 2px 2px fixed;

  /* 1px #666/#aaa checker desktop. */
  --clio-desktop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23aaa' d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3Cpath fill='%23666' d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E") 0 0 / 2px 2px repeat, #888888;

  /* Title bar: S6 rows, #eee ground, six #777 stripes, #ccf light on the
     top and left inside edges, #99c shade on the bottom and right. */
  --clio-titlebar-height: 18px;
  --clio-titlebar-margin: 0;
  --clio-titlebar-padding: 3px 1px;
  --clio-titlebar-bg:
    linear-gradient(to bottom, #777777 0 1px, transparent 1px 2px)
      0 0 / 100% 2px repeat-y content-box content-box,
    #eeeeee;
  --clio-title-bg: #eeeeee;
  --clio-title-inactive-fg: #888888;
  --clio-titlebar-inactive-bg: #ffffff;

  /* Scroll bars */
  --clio-scrollbar-track: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23ddd' d='M0 0h4v2H0z'/%3E%3Cpath fill='%23777' d='M2 0h1v1H2zM0 1h1v1H0z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat, #dddddd;
  /* System 7.5.3 Finder, scroll box dragged (frame hig/system7/finder-thumb-drag):
     a 14x16 frame in which the lane's #ddd turns black and its #777 dots stay. */
  --clio-scrollbar-thumb-length: 16px;   /* the #555 line and 15 rows (frame finder-scroll) */
  --clio-scrollbar-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h4v2H0z'/%3E%3Cpath fill='%23777' d='M2 0h1v1H2zM0 1h1v1H0z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat;
  --clio-scrollbar-thumb-inset: 0px;   /* its #555 line is drawn over the bar's */
  --clio-scrollbar-ghost-blend: normal;   /* painted: the lane's #ddd black, its #777 dots kept (measured) */
  /* The grip sits where System 7's fixed 16px scroll box has it: 3px from the
     leading edge, whatever length the browser gives the box. */
  --clio-scrollbar-thumb-bg: var(--clio-art-s7-grip-v) 50% 3px / 6px 10px no-repeat, #aaaaaa;
  --clio-scrollbar-thumb-bg-horizontal: var(--clio-art-s7-grip-h) 3px 50% / 10px 6px no-repeat, #aaaaaa;
  --clio-scrollbar-thumb-border: 0;
  --clio-scrollbar-thumb-shadow: inset -1px -1px 0 #333366, inset 1px 1px 0 #ccccff;   /* the shade owns the corners */
  --clio-scrollbar-button-bg: #dddddd;
  --clio-scrollbar-up: var(--clio-art-s7-up);
  --clio-scrollbar-up-on: var(--clio-art-s7-up);
  --clio-scrollbar-down: var(--clio-art-s7-down);
  --clio-scrollbar-down-on: var(--clio-art-s7-down);
  --clio-scrollbar-left: var(--clio-art-s7-left);
  --clio-scrollbar-left-on: var(--clio-art-s7-left);
  --clio-scrollbar-right: var(--clio-art-s7-right);
  --clio-scrollbar-right-on: var(--clio-art-s7-right);
  --clio-scrollbar-corner: var(--clio-art-s7-grow) 0 0 / 14px 14px no-repeat, #eeeeee;
  --clio-scrollbar-thumb-color: #aaaaaa;
  --clio-scrollbar-track-color: #dddddd;

  /* Menus: disabled items and the separator are solid #888 (System 6 used a
     50% dither); the separator is still a full 16px row, ruled on its ninth line. */
  --clio-disabled: #888888;
  --clio-disabled-dither: none;

  /* Control Strip, measured from System 7.5.3 (frame folder-window): the
     Mac OS 9 geometry and art in System 7 greys, #ccc cells with a #aaa then
     #888 shade; the held module is inferred from Mac OS 9's in these greys. */
  --clio-strip-bg: #cccccc;
  --clio-strip-line: 1px solid #000000;
  --clio-strip-cell-shadow: inset -1px -1px 0 #888888, inset -2px -2px 0 #aaaaaa, inset 1px 1px 0 #cccccc, inset 2px 2px 0 #ffffff;
  --clio-strip-sunken-shadow: none;
  /* Idle scroll cells: #888 along the top and left, white along the bottom and
     right, the two odd corners left in the face. */
  --clio-strip-sunken-lines:
    linear-gradient(#888888, #888888) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#888888, #888888) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 100% / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 100% 1px / 1px calc(100% - 1px) no-repeat;
  --clio-strip-pressed-bg: #888888;
  --clio-strip-pressed-shadow: inset 2px 2px 0 #555555, inset -2px -2px 0 #cccccc;
  --clio-strip-cap: var(--clio-art-s7-strip-cap);
  --clio-strip-back: var(--clio-art-p9-strip-back);
  --clio-strip-forward: var(--clio-art-p9-strip-forward);
  --clio-strip-menu: var(--clio-art-p9-strip-menu);
  --clio-strip-handle: var(--clio-art-p9-strip-handle);
  --clio-strip-tab: var(--clio-art-p9-strip-tab);
  --clio-disabled-fill: currentcolor;
  --clio-menu-separator: linear-gradient(#888888, #888888) 0 8px / 100% 1px no-repeat;

  /* Pop-up menu (Numbers control panel): an 18px box, a 1px shadow that starts
     3px in from the corner, an 11x6 black triangle 5px from the right edge,
     the label 15px in. */
  --clio-popup-shadow: 2px 2px 0 -1px #000000;
  --clio-popup-padding: 0 22px 0 14px;
  --clio-popup-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h11v1H0zM1 1h9v1H1zM2 2h7v1H2zM3 3h5v1H3zM4 4h3v1H4zM5 5h1v1H5z'/%3E%3C/svg%3E") right 5px top round(down, 50%, 1px) / 11px 6px no-repeat;   /* QuickDraw centred it at floor(spare / 2) */

  /* Progress (Finder copy): 11px, a 1px black frame, #ccf track, #444 fill. */
  --clio-progress-height: 11px;
  --clio-progress-bg: #ccccff;
  --clio-progress-fill: #444444;

  /* Group box (General Controls, Numbers): a grey 1px line (#777 and #888
     alternate in the original; drawn #777 here). */
  --clio-group-border: 1px solid #777777;

  /* Alert and modal frame: 1px black, a raised #ccf/#669 ring, #bbb, a
     sunken #669/#ccf ring, 1px black; the same 5px as System 6. */
  --clio-modal-border: 1px solid #000000;
  --clio-modal-frame:
    inset 1px 1px 0 #ccccff,
    inset -1px -1px 0 #666699,
    inset 0 0 0 2px #bbbbbb,
    inset 3px 3px 0 #666699,
    inset -3px -3px 0 #ccccff,
    inset 0 0 0 4px #000000;

  /* Art redrawn from the captured pixels (tooling/s7-art.py). */
  --clio-art-s7-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h12v1h-12zM1 2h5v1h-5zM7 2h6v1h-6zM1 3h4v1h-4zM8 3h5v1h-5zM1 4h3v1h-3zM9 4h4v1h-4zM1 5h2v1h-2zM10 5h3v1h-3zM1 6h1v1h-1zM11 6h2v1h-2zM12 7h1v1h-1zM1 8h3v1h-3zM9 8h4v1h-4zM1 9h3v1h-3zM9 9h4v1h-4zM1 10h3v1h-3zM9 10h4v1h-4zM1 11h3v1h-3zM9 11h4v1h-4zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M6 2h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM4 4h1v1h-1zM8 4h1v1h-1zM3 5h1v1h-1zM9 5h1v1h-1zM2 6h1v1h-1zM10 6h1v1h-1zM1 7h4v1h-4zM8 7h4v1h-4zM4 8h1v1h-1zM8 8h1v1h-1zM4 9h1v1h-1zM8 9h1v1h-1zM4 10h1v1h-1zM8 10h1v1h-1zM4 11h5v1h-5z'/%3E%3Cpath fill='%239999cc' d='M6 3h1v1h-1zM5 4h3v1h-3zM4 5h5v1h-5zM3 6h7v1h-7zM5 7h3v1h-3zM5 8h3v1h-3zM5 9h3v1h-3zM5 10h3v1h-3z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s7-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h12v1h-12zM1 2h3v1h-3zM9 2h4v1h-4zM1 3h3v1h-3zM9 3h4v1h-4zM1 4h3v1h-3zM9 4h4v1h-4zM1 5h3v1h-3zM9 5h4v1h-4zM12 6h1v1h-1zM1 7h1v1h-1zM11 7h2v1h-2zM1 8h2v1h-2zM10 8h3v1h-3zM1 9h3v1h-3zM9 9h4v1h-4zM1 10h4v1h-4zM8 10h5v1h-5zM1 11h5v1h-5zM7 11h6v1h-6zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M4 2h5v1h-5zM4 3h1v1h-1zM8 3h1v1h-1zM4 4h1v1h-1zM8 4h1v1h-1zM4 5h1v1h-1zM8 5h1v1h-1zM1 6h4v1h-4zM8 6h4v1h-4zM2 7h1v1h-1zM10 7h1v1h-1zM3 8h1v1h-1zM9 8h1v1h-1zM4 9h1v1h-1zM8 9h1v1h-1zM5 10h1v1h-1zM7 10h1v1h-1zM6 11h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M5 3h3v1h-3zM5 4h3v1h-3zM5 5h3v1h-3zM5 6h3v1h-3zM3 7h7v1h-7zM4 8h5v1h-5zM5 9h3v1h-3zM6 10h1v1h-1z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s7-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h6v1h-6zM8 1h5v1h-5zM1 2h5v1h-5zM8 2h5v1h-5zM1 3h4v1h-4zM8 3h5v1h-5zM1 4h3v1h-3zM12 4h1v1h-1zM1 5h2v1h-2zM12 5h1v1h-1zM1 6h1v1h-1zM12 6h1v1h-1zM1 7h2v1h-2zM12 7h1v1h-1zM1 8h3v1h-3zM12 8h1v1h-1zM1 9h4v1h-4zM8 9h5v1h-5zM1 10h5v1h-5zM8 10h5v1h-5zM1 11h6v1h-6zM8 11h5v1h-5zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M7 1h1v1h-1zM6 2h2v1h-2zM5 3h1v1h-1zM7 3h1v1h-1zM4 4h1v1h-1zM7 4h5v1h-5zM3 5h1v1h-1zM11 5h1v1h-1zM2 6h1v1h-1zM11 6h1v1h-1zM3 7h1v1h-1zM11 7h1v1h-1zM4 8h1v1h-1zM7 8h5v1h-5zM5 9h1v1h-1zM7 9h1v1h-1zM6 10h2v1h-2zM7 11h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M6 3h1v1h-1zM5 4h2v1h-2zM4 5h7v1h-7zM3 6h8v1h-8zM4 7h7v1h-7zM5 8h2v1h-2zM6 9h1v1h-1z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s7-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23dddddd' d='M1 1h5v1h-5zM7 1h6v1h-6zM1 2h5v1h-5zM8 2h5v1h-5zM1 3h5v1h-5zM9 3h4v1h-4zM1 4h1v1h-1zM10 4h3v1h-3zM1 5h1v1h-1zM11 5h2v1h-2zM1 6h1v1h-1zM12 6h1v1h-1zM1 7h1v1h-1zM11 7h2v1h-2zM1 8h1v1h-1zM10 8h3v1h-3zM1 9h5v1h-5zM9 9h4v1h-4zM1 10h5v1h-5zM8 10h5v1h-5zM1 11h5v1h-5zM7 11h6v1h-6zM1 12h12v1h-12z'/%3E%3Cpath fill='%23333366' d='M6 1h1v1h-1zM6 2h2v1h-2zM6 3h1v1h-1zM8 3h1v1h-1zM2 4h5v1h-5zM9 4h1v1h-1zM2 5h1v1h-1zM10 5h1v1h-1zM2 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM10 7h1v1h-1zM2 8h5v1h-5zM9 8h1v1h-1zM6 9h1v1h-1zM8 9h1v1h-1zM6 10h2v1h-2zM6 11h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M7 3h1v1h-1zM7 4h2v1h-2zM3 5h7v1h-7zM3 6h8v1h-8zM3 7h7v1h-7zM7 8h2v1h-2zM7 9h1v1h-1z'/%3E%3Cpath fill='%23777777' d='M13 0h1v1h-1zM13 1h1v1h-1zM13 2h1v1h-1zM13 3h1v1h-1zM13 4h1v1h-1zM13 5h1v1h-1zM13 6h1v1h-1zM13 7h1v1h-1zM13 8h1v1h-1zM13 9h1v1h-1zM13 10h1v1h-1zM13 11h1v1h-1zM13 12h1v1h-1zM0 13h14v1h-14z'/%3E%3Cpath fill='%23ffffff' d='M0 0h13v1h-13zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM0 6h1v1h-1zM0 7h1v1h-1zM0 8h1v1h-1zM0 9h1v1h-1zM0 10h1v1h-1zM0 11h1v1h-1zM0 12h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-s7-grow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23eeeeee' d='M0 0h14v1h-14zM0 1h14v1h-14zM0 2h2v1h-2zM8 2h6v1h-6zM0 3h2v1h-2zM12 3h2v1h-2zM0 4h2v1h-2zM12 4h2v1h-2zM0 5h2v1h-2zM12 5h2v1h-2zM0 6h2v1h-2zM12 6h2v1h-2zM0 7h2v1h-2zM12 7h2v1h-2zM0 8h3v1h-3zM12 8h2v1h-2zM0 9h3v1h-3zM12 9h2v1h-2zM0 10h3v1h-3zM12 10h2v1h-2zM0 11h3v1h-3zM12 11h2v1h-2zM0 12h14v1h-14zM0 13h14v1h-14z'/%3E%3Cpath fill='%23333366' d='M2 2h6v1h-6zM2 3h1v1h-1zM8 3h4v1h-4zM2 4h1v1h-1zM7 4h1v1h-1zM2 5h1v1h-1zM7 5h1v1h-1zM11 5h1v1h-1zM2 6h1v1h-1zM7 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM4 7h4v1h-4zM11 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM3 9h1v1h-1zM11 9h1v1h-1zM3 10h1v1h-1zM11 10h1v1h-1zM3 11h1v1h-1zM5 11h7v1h-7z'/%3E%3Cpath fill='%23aaaaaa' d='M8 5h3v1h-3zM8 6h3v1h-3zM8 7h3v1h-3zM5 8h6v1h-6zM5 9h6v1h-6zM5 10h6v1h-6z'/%3E%3Cpath fill='%23ccccff' d='M3 3h5v1h-5zM3 4h1v1h-1zM8 4h4v1h-4zM3 5h1v1h-1zM3 6h1v1h-1zM3 7h1v1h-1zM4 8h1v1h-1zM4 9h1v1h-1zM4 10h1v1h-1zM4 11h1v1h-1z'/%3E%3Cpath fill='%23bbbbbb' d='M4 4h3v1h-3zM4 5h3v1h-3zM4 6h3v1h-3z'/%3E%3C/svg%3E");
  --clio-art-s7-grip-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' shape-rendering='crispEdges'%3E%3Cpath fill='%23ccccff' d='M0 1h6v1h-6zM0 3h6v1h-6zM0 5h6v1h-6zM0 7h6v1h-6zM0 9h6v1h-6z'/%3E%3Cpath fill='%23666699' d='M0 2h6v1h-6zM0 4h6v1h-6zM0 6h6v1h-6zM0 8h6v1h-6z'/%3E%3Cpath fill='%239999cc' d='M0 0h6v1h-6z'/%3E%3C/svg%3E");
  --clio-art-s7-grip-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23ccccff' d='M1 0h1v1h-1zM3 0h1v1h-1zM5 0h1v1h-1zM7 0h1v1h-1zM9 0h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM9 1h1v1h-1zM1 2h1v1h-1zM3 2h1v1h-1zM5 2h1v1h-1zM7 2h1v1h-1zM9 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM9 3h1v1h-1zM1 4h1v1h-1zM3 4h1v1h-1zM5 4h1v1h-1zM7 4h1v1h-1zM9 4h1v1h-1zM1 5h1v1h-1zM3 5h1v1h-1zM5 5h1v1h-1zM7 5h1v1h-1zM9 5h1v1h-1z'/%3E%3Cpath fill='%23666699' d='M2 0h1v1h-1zM4 0h1v1h-1zM6 0h1v1h-1zM8 0h1v1h-1zM2 1h1v1h-1zM4 1h1v1h-1zM6 1h1v1h-1zM8 1h1v1h-1zM2 2h1v1h-1zM4 2h1v1h-1zM6 2h1v1h-1zM8 2h1v1h-1zM2 3h1v1h-1zM4 3h1v1h-1zM6 3h1v1h-1zM8 3h1v1h-1zM2 4h1v1h-1zM4 4h1v1h-1zM6 4h1v1h-1zM8 4h1v1h-1zM2 5h1v1h-1zM4 5h1v1h-1zM6 5h1v1h-1zM8 5h1v1h-1z'/%3E%3Cpath fill='%239999cc' d='M0 0h1v1h-1zM0 1h1v1h-1zM0 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1z'/%3E%3C/svg%3E");
}

/* The title bar's light and shade edges. */
[data-era="system7"] .title-bar {
  /* The shade is drawn last: it owns the bottom-left and top-right corners. */
  box-shadow: inset -1px -1px 0 #9999cc, inset 1px 1px 0 #ccccff;
}

/* Close and zoom boxes: an 11px square sunk into the bar (#336 above-left,
   #ccf below-right) with a raised #ccf/#336 inner ring around #aaa, and 1px
   of #eee between the box and the stripes. */
[data-era="system7"] .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom) {
  /* The outer ring is painted, not bordered: the whole top row and left column
     are #336 (a CSS border would mitre the corners into a blend). */
  border: 1px solid transparent;
  background:
    linear-gradient(#333366, #333366) 0 0 / 100% 1px no-repeat,
    linear-gradient(#333366, #333366) 0 0 / 1px 100% no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) 0 0 / 100% 100% no-repeat,   /* tiled, WebKit dithers it ±1 */
    #ccccff;
  background-origin: border-box, border-box, padding-box, border-box;
  background-clip: border-box, border-box, padding-box, border-box;
  box-shadow: inset 1px 1px 0 #ccccff, inset -1px -1px 0 #333366, 0 0 0 1px #eeeeee;
}

/* Zoom: a 5px square in the top-left of the grey centre, drawn #336. */
[data-era="system7"] .title-bar > :is(.resize, .resize-box, .zoom)::before {
  top: 1px;
  left: 1px;
  width: 5px;
  height: 5px;
  border-right: 1px solid #333366;
  border-bottom: 1px solid #333366;
}

/* Held: a black square with a #99c face and the starburst. */
[data-era="system7"] .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active) {
  border-color: #000000;
  background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, #9999cc;
  background-clip: border-box;
  box-shadow: 0 0 0 1px #eeeeee;
}

/* Background window: #555 frame, a plain white title bar, #888 title. */
[data-era="system7"] .window.inactive {
  border-color: #555555;
}

[data-era="system7"] .window.inactive > .title-bar,
[data-era="system7"] .inactive-title-bar {
  border-bottom-color: #555555;
  box-shadow: none;
  --clio-title-bg: #ffffff;
}

[data-era="system7"] .window.inactive > .title-bar > :is(.title, h1, h2, h3),
[data-era="system7"] .inactive-title-bar > :is(.title, h1, h2, h3) {
  background: #ffffff;
}

/* The scroll box's leading edge is a #555 line (16 rows in all, as in System 6). */
[data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:vertical,
[data-era="system7"]:is(html.clio-scrollbars)::-webkit-scrollbar-thumb:vertical {
  min-height: 17px;                   /* the lane's black line, then 16 rows of box */
  border-left: 1px solid #000000;     /* the lane's own line, which the box covers */
  /* the #555 line as a shadow, so the black line keeps the corner (two borders
     would split it into a blend) */
  box-shadow: inset 0 1px 0 #555555, inset -1px -1px 0 #333366, inset 1px 2px 0 #ccccff;
}

[data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-thumb {
  min-height: 17px;                   /* the lane's black line, then 16 rows of box */
  border-left: 1px solid #000000;     /* the lane's own line, which the box covers */
  /* the #555 line as a shadow, so the black line keeps the corner (two borders
     would split it into a blend) */
  box-shadow: inset 0 1px 0 #555555, inset -1px -1px 0 #333366, inset 1px 2px 0 #ccccff;
}

[data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
[data-era="system7"]:is(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
  min-width: 17px;
  border-top: 1px solid #000000;
  box-shadow: inset 1px 0 0 #555555, inset -1px -1px 0 #333366, inset 2px 1px 0 #ccccff;
}

[data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-thumb {
  min-width: 17px;
  border-top: 1px solid #000000;
  box-shadow: inset 1px 0 0 #555555, inset -1px -1px 0 #333366, inset 2px 1px 0 #ccccff;
}

/* The arrow art already carries its face, light and shade. */
[data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
[data-era="system7"]:is(html.clio-scrollbars)::-webkit-scrollbar-button {
  background-size: 14px 14px;
}

[data-era="system7"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button {
  background-size: 14px 14px;
}

/* Collapsed: the title bar's bottom line is the frame's foot, so the shaded
   window is 19px tall and its shadow starts 1px in under it (System 7.5.3,
   Infinite HD shaded, measured). */
[data-era="system7"] .window.collapsed {
  border-bottom-width: 0;
}

/* Mac OS 8/9 Platinum. Applies inside any element with data-era="platinum"
   (put it on <html> for a whole page). clio.platinum.css is a build of this
   same file with Platinum as the page default.
   Values: AI System 6's Platinum tables, each tied to a Mac OS 9.0 capture
   (GUIdebook, Infinite Mac). P-numbers in comments are AI System 6's patch
   ids; see EVIDENCE.md. */
:is([data-era="platinum"], [data-era="drawingboard"]) {
  /* A raised edge: white along the top and left, #999 along the bottom and
     right, the two other corners left to the face (windows, pop-up menus). */
  --clio-p9-bevel:
    linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#999999, #999999) 1px 100% / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#999999, #999999) 100% 1px / 1px calc(100% - 1px) no-repeat;
  --clio-ink: #000000;
  --clio-paper: #dddddd;
  --clio-face: #dddddd;
  --clio-disabled: #6f6f6f;
  --clio-disabled-dither: none;
  --clio-popup-disabled-mask: none;
  --clio-caret-ticks: 48;   /* Mac OS 9.0 General Controls' middle setting: about 795 ms (measured) */
  --clio-popup-disabled-fg: var(--clio-disabled);
  /* Push button, disabled button and default ring: the real pixel frames
     (tooling/frame-art.py: Mac OS 9.0 Appearance and GUIdebook's Mac OS 9.0). */
  --clio-button-frame: var(--clio-art-frame-p9-button);
  --clio-button-frame-held: var(--clio-art-frame-p9-button-held);
  --clio-button-frame-disabled: var(--clio-art-frame-p9-button-disabled);
  --clio-ring-frame: var(--clio-art-frame-p9-ring);
  --clio-ring-frame-slice: 6;
  --clio-disabled-fill: currentcolor;
  --clio-selection-bg: #ccccff;
  --clio-selection-fg: #000000;

  /* Charcoal if the visitor has it, else Clio Sans '97 (Charcoal 12 rebuilt
     from Mac OS 9.0), drawn without smoothing like the bitmap it is; Asap
     (OFL) at the widths AI System 6 measured against Charcoal as the last
     fallback; Geneva for text on a Mac. */
  --clio-font-chrome: Charcoal, "Charcoal CY", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-display: Charcoal, "Charcoal CY", "Clio Sans '97 Display", "Clio Asap", "Helvetica Neue", Arial, sans-serif;
  --clio-font-window-title: Charcoal, "Charcoal CY", "Clio Sans '97 Title Exact", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-button: Charcoal, "Charcoal CY", "Clio Sans '97 Exact", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  /* List view (Finder, Mac OS 9.0): 21px bevelled headers, the sorted one sunk
     dark; the sorted column's rows #ddd, the others #eee, 19px rows. Drawn
     with background lines (List view rules), not tokens alone. */
  --clio-list-view-bg: #eeeeee;
  --clio-list-view-row: 19px;
  --clio-list-view-header-height: 21px;
  --clio-list-view-header-padding: 3px 4px 0;
  --clio-list-view-sorted-decoration: none;
  --clio-list-view-sorted-bg: #dddddd;
  --clio-list-view-sort-width: 15px;
  /* Separator (Mouse control panel, Mac OS 9.0): etched, #888 then white one
     row lower and one column further right. */
  --clio-separator-height: 2px;
  --clio-separator-bg: linear-gradient(#888888, #888888) 0 0 / calc(100% - 1px) 1px no-repeat, linear-gradient(#ffffff, #ffffff) 1px 1px / calc(100% - 1px) 1px no-repeat;
  /* Keyboard focus on a field or list: a 2px ring of the highlight colour's
     dark (#6666cc for Purple), its outer corners left out (Date & Time). */
  --clio-focus-ring-colour: #6666cc;
  --clio-focus-ring: 0 -1px 0 1px var(--clio-focus-ring-colour), 0 1px 0 1px var(--clio-focus-ring-colour), -1px 0 0 1px var(--clio-focus-ring-colour), 1px 0 0 1px var(--clio-focus-ring-colour);
  --clio-field-focus-shadow: var(--clio-focus-ring);
  --clio-field-focus-outline: none;
  --clio-list-focus-shadow: var(--clio-focus-ring);
  /* Little arrows (Date & Time, Mac OS 9.0): 13x23; dimmed while their field is
     not being edited. Held states were under the pointer and keep the normal. */
  --clio-little-arrows-width: 13px;
  --clio-little-arrows-height: 23px;
  --clio-art-little-arrows: url("art/platinum/little-arrows.png");
  --clio-art-little-arrows-up: url("art/platinum/little-arrows.png");
  --clio-art-little-arrows-down: url("art/platinum/little-arrows.png");
  --clio-art-little-arrows-disabled: url("art/platinum/little-arrows-disabled.png");
  /* Disclosure triangle: 13px with its shadow (Finder list view, Mac OS 9.0). */
  --clio-disclosure-size: 13px;
  --clio-art-disclosure: url("art/platinum/disclosure.png");
  --clio-art-disclosure-open: url("art/platinum/disclosure-open.png");
  --clio-font-text: Geneva, "Clio Asap", "Helvetica Neue", Arial, sans-serif;
  --clio-font-size: 12px;
  --clio-font-smoothing: none;
  --clio-text-smoothing: auto;
  --clio-text-smoothing-moz: auto;
  --clio-font-small: var(--clio-font-text);
  --clio-font-size-small: 10px;
  --clio-chrome-weight: 700;
  --clio-font-stretch-text: 113%;
  --clio-font-stretch-title: 123%;

  --clio-border: 1px solid #000000;
  --clio-control-height: 20px;
  --clio-field-height: 22px;
  --clio-focus-outline: 2px solid #6666cc;
  --clio-focus-offset: 0px;

  /* [I] Solid base of AI System 6's azul tile; the tile itself is not shipped. */
  --clio-desktop: #4a71ab;

  /* P14 window frame: black line, a raised 4px strip, black content line. */
  --clio-window-bg: #cccccc;
  --clio-pane-bg: #dddddd;
  --clio-window-border: 1px solid #000000;
  /* The frame's white light and #999 shade are drawn as lines in the window's
     background (below), which leave the two odd corners in the frame grey. */
  --clio-window-shadow: 1px 1px 0 #000000;
  /* AI System 6 pads 5px because its pane has no border; here the pane draws
     the black content line itself, so the strip is 4px. */
  --clio-window-padding: 2px 4px 4px;

  /* Title bar: 19px, six white/#777 ridge pairs, covers behind the boxes. */
  --clio-titlebar-height: 19px;
  --clio-titlebar-margin: 0;
  --clio-titlebar-padding: 1px 0;
  --clio-titlebar-border: 1px solid #000000;
  --clio-titlebar-row: 13px;
  --clio-titlebar-slot: 16px;
  --clio-titlebar-shade-slot: 16px;
  --clio-shade-display: block;
  --clio-titlebar-inactive-bg: #dddddd;
  --clio-title-bg: #cccccc;
  --clio-title-fg: #000000;
  --clio-title-inactive-fg: #777777;
  --clio-title-padding: 0 4px;
  --clio-box-size: 11px;
  --clio-box-inset: 0px;
  --clio-box-isolation: 0px;

  /* Menu bar and menus (P21, P24) */
  --clio-menubar-height: 20px;
  --clio-menubar-bg: #dddddd;
  --clio-menubar-border: 1px solid #000000;
  --clio-menubar-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #999999;
  --clio-menubar-padding: 0 8px;
  --clio-menu-title-padding: 0 10px;
  --clio-menu-title-inset: 0px;
  --clio-menu-title-active-bg: #333399;
  --clio-menu-title-active-fg: #ffffff;
  --clio-menu-title-active-shadow: inset 0 1px 0 #6666cc, inset 0 -1px 0 #000088;
  --clio-menu-bg: #dddddd;
  --clio-menu-border: 1px solid #000000;
  --clio-menu-border-top-width: 0;
  --clio-menu-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #999999, 1px 1px 0 #222222;
  --clio-menu-item-height: 16px;
  --clio-menu-item-padding: 0 10px 0 21px;
  --clio-menu-item-weight: 600;
  --clio-menu-item-active-bg: #333399;
  --clio-menu-item-active-fg: #ffffff;
  --clio-menu-item-active-shadow: inset 1px 0 0 #6666cc, inset -1px 0 0 #000088;
  /* Separator: a 6px row, #888 on its third line and white on its fourth,
     across the menu's full width (Mac OS 9.0 Finder File menu). */
  --clio-menu-separator:
    linear-gradient(#888888, #888888) 0 2px / 100% 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 3px / 100% 1px no-repeat;
  --clio-menu-separator-height: 6px;

  /* Push buttons: bevel, 3px corners (P29 pressed) */
  --clio-button-bg: transparent;
  --clio-button-fg: #000000;
  --clio-button-border: 1px solid #000000;
  --clio-button-radius: 3px;
  --clio-button-shadow: none;
  --clio-button-padding: 0 10px;
  --clio-button-min-width: 58px;
  --clio-button-weight: 700;
  /* Held: the frame and its dark face cut from Mac OS 9.0 (frame-art.py). */
  --clio-button-active-bg: transparent;
  --clio-button-active-fg: #ffffff;
  --clio-button-active-shadow: none;
  --clio-button-disabled-fg: #777777;
  --clio-button-disabled-border: 1px solid #888888;

  /* Check boxes and radio buttons: the mark and both radio states are redrawn
     from Mac OS 9.0's General Controls (tooling/p9-art.py). */
  --clio-check-size: 12px;
  /* The well's white light and #888 shade as lines that leave the odd corners
     in the face (an inset shadow would also paint over the check mark). */
  --clio-check-bg:
    linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat padding-box,
    linear-gradient(#ffffff, #ffffff) 0 0 / 1px calc(100% - 1px) no-repeat padding-box,
    linear-gradient(#888888, #888888) 1px 100% / calc(100% - 1px) 1px no-repeat padding-box,
    linear-gradient(#888888, #888888) 100% 1px / 1px calc(100% - 1px) no-repeat padding-box,
    #dddddd;
  --clio-check-border: 1px solid #000000;
  --clio-check-shadow: none;
  --clio-check-mark: var(--clio-art-p9-check) 0 0 / 10px 10px no-repeat;
  --clio-check-mark-origin: padding-box;
  --clio-check-pressed-border-width: 1px;

  /* Text fields (P30) */
  --clio-field-bg: #ffffff;
  --clio-field-border: 1px solid #000000;
  --clio-field-shadow: -1px -1px 0 #888888, 1px 1px 0 #ffffff;
  --clio-field-padding: 2px 3px;

  /* Pop-up menus, measured from Mac OS 9.0 (Appearance tab, "Apple platinum"):
     20px, black frame, #ddd face with a white top line and #aaa foot; a #aaa
     divider 20px from the right, then a raised arrow box (white left and top,
     #aaa then #777 shade) with the 7x10 arrows 7px from the right, 4px down. */
  --clio-popup-bg: #dddddd;
  --clio-popup-border: 1px solid #000000;
  --clio-popup-radius: 0;
  --clio-popup-frame: var(--clio-art-frame-p9-popup);   /* the real corners */
  --clio-popup-shadow: none;
  --clio-popup-height: 20px;
  --clio-popup-padding: 0 28px 0 7px;
  --clio-popup-weight: 700;
  --clio-popup-arrow:
    var(--clio-art-p-dropdown) right 7px top 4px / 7px 10px no-repeat,
    linear-gradient(#777777, #777777) right 0 top 1px / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#777777, #777777) right 0 bottom 0 / 19px 1px no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) right 1px top 1px / 1px calc(100% - 2px) no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) right 1px bottom 1px / 17px 1px no-repeat,
    linear-gradient(#bbbbbb, #bbbbbb) right 19px bottom 0 / 1px 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) right 18px top 1px / 1px calc(100% - 3px) no-repeat,
    linear-gradient(#ffffff, #ffffff) right 2px top 1px / 17px 1px no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) right 20px top 1px / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#ffffff, #ffffff) left 0 top 0 / calc(100% - 21px) 1px no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) left 0 bottom 0 / calc(100% - 21px) 1px no-repeat;

  /* Scroll bars (P16, P17, P27) */
  --clio-scrollbar-size: 15px;
  /* Mac OS 9.0 Finder (frames hig/platinum9/finder-*): a 15-row box between
     black lines, dragged live; the bar is its black line and 14px, the window's
     frame closing it. The arrow boxes' light and shade stop a pixel short of
     the far corners. */
  --clio-scrollbar-thumb-length: 17px;
  --clio-scrollbar-thumb-inset: 0px;
  --clio-scrollbar-thumb-overlap: 1px;
  --clio-scrollbar-thumb-after:
    linear-gradient(#cccccc, #cccccc) 100% 0 / 1px 2px no-repeat,
    linear-gradient(#bbbbbb, #bbbbbb) calc(100% - 1px) 1px / 1px 1px no-repeat,
    linear-gradient(#777777, #777777) 0 0 / 100% 1px no-repeat,
    linear-gradient(#777777, #777777) 0 0 / 1px 2px no-repeat,
    #888888;
  --clio-scrollbar-button-bevel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h13v1H0zM0 1h1v12H0z'/%3E%3Cpath fill='%23bbb' d='M1 13h13v1H1zM13 1h1v12h-1z'/%3E%3C/svg%3E");
  /* held: #555 along the top and left, #999 along the bottom and right, the two
     other corners left the face's #777 (Mac OS 9.0 Finder, frame arrow-held) */
  --clio-scrollbar-button-bevel-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23555' d='M0 0h13v1H0zM0 1h1v12H0z'/%3E%3Cpath fill='%23999' d='M1 13h13v1H1zM13 1h1v12h-1z'/%3E%3C/svg%3E");
  --clio-scrollbar-thumb-tracking: live;
  --clio-scrollbar-repeat-delay: 200ms;   /* Mac OS 9.0 Finder: one step, then a pause of about 0.2 s */
  /* Mac OS 8 and 9 keep a clicked menu open (clio.js) */
  --clio-menu-sticky: 1;
  --clio-drag-outline-width: 2px;   /* Mac OS 9.0: a 2px band */
  --clio-drag-outline-shadow-inset: 2px;   /* the shadow starts 2px in from the corners */
  /* Zoom rects (Mac OS 9.0 opening Games, measured): 6 outlines in the 2px band at
     1.4^(k - 7) of the way, all on screen until the window draws */
  --clio-zoom-count: 6;
  --clio-zoom-steps: 7;
  --clio-zoom-ratio: 1.4;
  --clio-zoom-offset: 0;
  --clio-zoom-keep: 0;
  --clio-scrollbar-track: #aaaaaa;
  /* The lane: #777 and #888 along the top and left, #bbb and #ccc down the
     right, nothing along the bottom (frames finder-scroll-*). */
  --clio-scrollbar-track-shadow: inset -1px 0 #cccccc, inset 1px 1px #777777, inset -2px 0 #bbbbbb, inset 2px 2px #888888;
  /* The box: light and shade a pixel short of the far corners, a #eee corner;
     the grip rounds up and left, as QuickDraw's halving does. */
  --clio-scrollbar-thumb-bg: var(--clio-art-p-grip-v) 50% calc(50% - 0.5px) / 8px 8px no-repeat,
    linear-gradient(#eeeeee, #eeeeee) 0 0 / 1px 1px no-repeat,
    linear-gradient(#ccccff, #ccccff) 1px 0 / calc(100% - 2px) 1px no-repeat,
    linear-gradient(#ccccff, #ccccff) 0 1px / 1px calc(100% - 2px) no-repeat,
    linear-gradient(#6666cc, #6666cc) 100% 1px / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#6666cc, #6666cc) 1px 100% / calc(100% - 1px) 1px no-repeat,
    #9999ff;
  --clio-scrollbar-thumb-bg-horizontal: var(--clio-art-p-grip-h) calc(50% - 0.5px) 50% / 8px 8px no-repeat,
    linear-gradient(#eeeeee, #eeeeee) 0 0 / 1px 1px no-repeat,
    linear-gradient(#ccccff, #ccccff) 1px 0 / calc(100% - 2px) 1px no-repeat,
    linear-gradient(#ccccff, #ccccff) 0 1px / 1px calc(100% - 2px) no-repeat,
    linear-gradient(#6666cc, #6666cc) 100% 1px / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#6666cc, #6666cc) 1px 100% / calc(100% - 1px) 1px no-repeat,
    #9999ff;
  --clio-scrollbar-thumb-border: 1px solid #000000;
  --clio-scrollbar-thumb-shadow: none;
  --clio-scrollbar-button-bg: #dddddd;
  --clio-scrollbar-button-shadow: none;
  --clio-scrollbar-up: var(--clio-art-p-up);
  --clio-scrollbar-up-on: var(--clio-art-p-up);
  --clio-scrollbar-down: var(--clio-art-p-down);
  --clio-scrollbar-down-on: var(--clio-art-p-down);
  --clio-scrollbar-left: var(--clio-art-p-left);
  --clio-scrollbar-left-on: var(--clio-art-p-left);
  --clio-scrollbar-right: var(--clio-art-p-right);
  --clio-scrollbar-right-on: var(--clio-art-p-right);
  --clio-scrollbar-thumb-color: #9999ff;
  --clio-scrollbar-track-color: #aaaaaa;

  /* Dialogs (P06) */
  --clio-dialog-bg: #dddddd;
  --clio-modal-border: 1px solid #000000;
  --clio-modal-frame:
    inset 1px 1px 0 #dddddd,
    inset 2px 2px 0 #ffffff,
    inset 3px 3px 0 #ffffff,
    inset -1px -1px 0 #555555,
    inset -2px -2px 0 #999999,
    inset -3px -3px 0 #aaaaaa,
    1px 1px 0 #000000;
  --clio-modal-padding: 16px 18px;
  --clio-plain-dialog-border: 1px solid #000000;
  --clio-plain-dialog-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #999999, 1px 1px 0 #000000;

  /* Bars, lists, groups, progress, tabs, icons */
  --clio-details-bg: #dddddd;
  --clio-details-border: 1px solid #000000;
  --clio-details-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #aaaaaa;
  --clio-details-font-size: 12px;
  --clio-details-height: 20px;
  --clio-details-padding: 0 8px;
  --clio-scrollbar-corner: #dddddd;
  --clio-list-bg: #ffffff;
  --clio-list-border: 1px solid #000000;
  --clio-list-shadow: -1px -1px 0 #888888, 1px 1px 0 #ffffff;
  --clio-list-row: 16px;
  /* Group box: a 1px line of #777 and #888 dots, the pattern aligned to the
     screen (#777 where x + y is even), no light (Mac OS 9.0 General Controls). */
  --clio-group-border: 1px solid transparent;
  --clio-group-shadow: none;
  --clio-art-p9-group-dots: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACAQMAAABIeJ9nAAAABlBMVEV3d3eIiIjxRXMlAAAADElEQVR4nGNwYHIAAAEIAIMYhovOAAAAAElFTkSuQmCC");
  --clio-progress-height: 12px;
  --clio-progress-bg: #bbbbbb;
  --clio-progress-border: 1px solid #000000;
  --clio-progress-shadow: 1px 1px #ffffff, -1px -1px #aaaaaa, inset 1px 1px #888888, inset -1px -1px #dddddd;
  --clio-progress-fill: linear-gradient(to bottom, #333399 0 1px, #6666cc 1px 2px, #9999ff 2px 3px, #ccccff 3px 4px, #eeeeee 4px 5px, #ccccff 5px 6px, #9999ff 6px 7px, #6666cc 7px 8px, #333399 8px 9px, #000055 9px 10px);
  --clio-tab-height: 23px;
  --clio-tab-panel-bg: #eeeeee;
  --clio-tab-panel-border: 1px solid #000000;
  --clio-label-bg: rgba(255, 255, 255, 0.7);
  --clio-label-fg: #000000;
  --clio-label-selected-bg: #000000;
  --clio-label-selected-fg: #ffffff;
  --clio-icon-selected-filter: brightness(0.5);

  /* Control Strip, measured from Mac OS 9.0 (npm run capture:platinum, frames
     strip-expanded, strip-collapsed, strip-slider); Mac OS 8.5's is the same
     under Drawing Board. 24px: 1px black lines, #c0c0c0 cells with a white
     inner light, #a0a0a0 then #808080 shade; scroll cells sunken while idle. */
  --clio-strip-bg: #c0c0c0;
  --clio-strip-line: 1px solid #000000;
  --clio-strip-cell-shadow: inset -1px -1px 0 #808080, inset -2px -2px 0 #a0a0a0, inset 1px 1px 0 #c0c0c0, inset 2px 2px 0 #ffffff;
  --clio-strip-sunken-shadow: none;
  --clio-strip-sunken-lines:
    linear-gradient(#808080, #808080) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#808080, #808080) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 100% / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 100% 1px / 1px calc(100% - 1px) no-repeat;
  --clio-strip-pressed-bg: #808080;
  --clio-strip-pressed-shadow: inset 2px 2px 0 #404040, inset -2px -2px 0 #c0c0c0;
  --clio-strip-cap: var(--clio-art-p9-strip-cap);
  --clio-strip-back: var(--clio-art-p9-strip-back);
  --clio-strip-forward: var(--clio-art-p9-strip-forward);
  --clio-strip-menu: var(--clio-art-p9-strip-menu);
  --clio-strip-handle: var(--clio-art-p9-strip-handle);
  --clio-strip-tab: var(--clio-art-p9-strip-tab);

  /* Art: pop-up arrow, menu check mark and submenu arrow redrawn from
     Mac OS 9.0 (tooling/p9-art.py, below); scroll arrows, grips and tabs drawn
     here (tabs: tooling/tab-art.py). */
  --clio-art-p-dropdown: var(--clio-art-p9-dropdown);
  --clio-art-p-dropdown-off: var(--clio-art-p9-dropdown-off);
  --clio-art-p-check: var(--clio-art-p9-menucheck);
  --clio-art-p-submenu: var(--clio-art-p9-submenu);
  --clio-art-p-submenu-on: var(--clio-art-p9-submenu-on);
  --clio-art-p-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 5h2v1h-2zM4 6h4v1h-4zM3 7h6v1h-6zM2 8h8v1h-8z'/%3E%3C/svg%3E");
  --clio-art-p-up-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23888' d='M5 5h2v1h-2zM4 6h4v1h-4zM3 7h6v1h-6zM2 8h8v1h-8z'/%3E%3C/svg%3E");
  --clio-art-p-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M2 5h8v1h-8zM3 6h6v1h-6zM4 7h4v1h-4zM5 8h2v1h-2z'/%3E%3C/svg%3E");
  --clio-art-p-down-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23888' d='M2 5h8v1h-8zM3 6h6v1h-6zM4 7h4v1h-4zM5 8h2v1h-2z'/%3E%3C/svg%3E");
  --clio-art-p-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 5h1v2h-1zM6 4h1v4h-1zM7 3h1v6h-1zM8 2h1v8h-1z'/%3E%3C/svg%3E");
  --clio-art-p-left-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23888' d='M5 5h1v2h-1zM6 4h1v4h-1zM7 3h1v6h-1zM8 2h1v8h-1z'/%3E%3C/svg%3E");
  --clio-art-p-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 2h1v8h-1zM6 3h1v6h-1zM7 4h1v4h-1zM8 5h1v2h-1z'/%3E%3C/svg%3E");
  --clio-art-p-right-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23888' d='M5 2h1v8h-1zM6 3h1v6h-1zM7 4h1v4h-1zM8 5h1v2h-1z'/%3E%3C/svg%3E");
  --clio-art-p-grip-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23eee' d='M0 0h1v1H0zM0 2h1v1H0zM0 4h1v1H0zM0 6h1v1H0z'/%3E%3Cpath fill='%23ccf' d='M1 0h6v1H1zM1 2h6v1H1zM1 4h6v1H1zM1 6h6v1H1z'/%3E%3Cpath fill='%23339' d='M1 1h7v1H1zM1 3h7v1H1zM1 5h7v1H1zM1 7h7v1H1z'/%3E%3C/svg%3E");
  --clio-art-p-grip-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23eee' d='M0 0h1v1H0zM2 0h1v1H2zM4 0h1v1H4zM6 0h1v1H6z'/%3E%3Cpath fill='%23ccf' d='M0 1h1v6H0zM2 1h1v6H2zM4 1h1v6H4zM6 1h1v6H6z'/%3E%3Cpath fill='%23339' d='M1 1h1v7H1zM3 1h1v7H3zM5 1h1v7H5zM7 1h1v7H7z'/%3E%3C/svg%3E");
  --clio-art-p-tab-selected: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23222' d='M11 1h1v1h-1zM9 2h1v1h-1zM8 3h1v1h-1zM7 4h1v1h-1zM25 4h1v1h-1zM6 6h1v1h-1zM26 6h1v1h-1zM5 9h1v1h-1zM27 9h1v1h-1zM4 12h1v1h-1zM28 12h1v1h-1zM3 15h1v1h-1zM29 15h1v1h-1zM2 18h1v1h-1zM30 18h1v1h-1zM1 21h1v1h-1z'/%3E%3Cpath fill='%23000' d='M12 1h10v1h-10zM10 2h1v1h-1zM22 2h2v1h-2zM24 3h1v1h-1zM7 5h1v1h-1zM25 5h1v1h-1zM6 7h1v1h-1zM26 7h1v1h-1zM6 8h1v1h-1zM26 8h1v1h-1zM5 10h1v1h-1zM27 10h1v1h-1zM5 11h1v1h-1zM27 11h1v1h-1zM4 13h1v1h-1zM28 13h1v1h-1zM4 14h1v1h-1zM28 14h1v1h-1zM3 16h1v1h-1zM29 16h1v1h-1zM3 17h1v1h-1zM29 17h1v1h-1zM2 19h1v1h-1zM30 19h1v1h-1zM2 20h1v1h-1zM30 20h1v1h-1zM0 21h1v1h-1zM31 21h2v1h-2zM0 22h2v1h-2zM31 22h2v1h-2z'/%3E%3Cpath fill='%23bbb' d='M11 2h1v1h-1zM21 2h1v1h-1zM9 3h1v1h-1zM8 4h1v1h-1zM23 4h1v1h-1zM7 6h1v1h-1zM24 6h1v1h-1zM6 9h1v1h-1zM25 9h1v1h-1zM5 12h1v1h-1zM26 12h1v1h-1zM4 15h1v1h-1zM27 15h1v1h-1zM3 18h1v1h-1zM28 18h1v1h-1zM2 21h1v1h-1zM29 21h1v1h-1zM30 22h1v1h-1z'/%3E%3Cpath fill='%23ccc' d='M12 2h9v1h-9zM10 3h1v1h-1zM8 5h1v1h-1zM7 7h1v1h-1zM7 8h1v1h-1zM6 10h1v1h-1zM6 11h1v1h-1zM5 13h1v1h-1zM5 14h1v1h-1zM4 16h1v1h-1zM4 17h1v1h-1zM3 19h1v1h-1zM3 20h1v1h-1zM2 22h1v1h-1zM0 23h3v1h-3zM30 23h3v1h-3z'/%3E%3Cpath fill='%23fff' d='M11 3h11v1h-11zM9 4h2v1h-2zM9 5h1v1h-1zM8 6h1v1h-1zM8 7h1v1h-1zM8 8h1v1h-1zM7 9h1v1h-1zM7 10h1v1h-1zM7 11h1v1h-1zM6 12h1v1h-1zM6 13h1v1h-1zM6 14h1v1h-1zM5 15h1v1h-1zM5 16h1v1h-1zM5 17h1v1h-1zM4 18h1v1h-1zM4 19h1v1h-1zM4 20h1v1h-1zM3 21h1v1h-1zM3 22h1v1h-1z'/%3E%3Cpath fill='%23ddd' d='M22 3h1v1h-1zM23 5h1v1h-1zM24 7h1v1h-1zM24 8h1v1h-1zM25 10h1v1h-1zM25 11h1v1h-1zM26 13h1v1h-1zM26 14h1v1h-1zM27 16h1v1h-1zM27 17h1v1h-1zM28 19h1v1h-1zM28 20h1v1h-1zM29 22h1v1h-1z'/%3E%3Cpath fill='%23888' d='M23 3h1v1h-1zM24 5h1v1h-1zM25 7h1v1h-1zM25 8h1v1h-1zM26 10h1v1h-1zM26 11h1v1h-1zM27 13h1v1h-1zM27 14h1v1h-1zM28 16h1v1h-1zM28 17h1v1h-1zM29 19h1v1h-1zM29 20h1v1h-1z'/%3E%3Cpath fill='%23eee' d='M11 4h12v1h-12zM10 5h13v1h-13zM9 6h15v1h-15zM9 7h15v1h-15zM9 8h15v1h-15zM8 9h17v1h-17zM8 10h17v1h-17zM8 11h17v1h-17zM7 12h19v1h-19zM7 13h19v1h-19zM7 14h19v1h-19zM6 15h21v1h-21zM6 16h21v1h-21zM6 17h21v1h-21zM5 18h23v1h-23zM5 19h23v1h-23zM5 20h23v1h-23zM4 21h25v1h-25zM4 22h25v1h-25zM3 23h27v1h-27z'/%3E%3Cpath fill='%23444' d='M24 4h1v1h-1zM25 6h1v1h-1zM26 9h1v1h-1zM27 12h1v1h-1zM28 15h1v1h-1zM29 18h1v1h-1zM30 21h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-p-tab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23222' d='M11 3h1v1h-1zM9 4h1v1h-1zM8 5h1v1h-1zM7 6h1v1h-1zM25 6h1v1h-1zM6 8h1v1h-1zM26 8h1v1h-1zM5 11h1v1h-1zM27 11h1v1h-1zM4 14h1v1h-1zM28 14h1v1h-1zM3 17h1v1h-1zM29 17h1v1h-1zM2 20h1v1h-1zM30 20h1v1h-1z'/%3E%3Cpath fill='%23000' d='M12 3h10v1h-10zM10 4h1v1h-1zM22 4h2v1h-2zM24 5h1v1h-1zM7 7h1v1h-1zM25 7h1v1h-1zM6 9h1v1h-1zM26 9h1v1h-1zM6 10h1v1h-1zM26 10h1v1h-1zM5 12h1v1h-1zM27 12h1v1h-1zM5 13h1v1h-1zM27 13h1v1h-1zM4 15h1v1h-1zM28 15h1v1h-1zM4 16h1v1h-1zM28 16h1v1h-1zM3 18h1v1h-1zM29 18h1v1h-1zM3 19h1v1h-1zM29 19h1v1h-1zM2 21h1v1h-1zM30 21h1v1h-1zM2 22h1v1h-1zM30 22h1v1h-1zM0 23h33v1h-33z'/%3E%3Cpath fill='%23bbb' d='M11 4h1v1h-1zM21 4h1v1h-1zM9 5h1v1h-1zM8 6h1v1h-1zM23 6h1v1h-1zM7 8h1v1h-1zM24 8h1v1h-1zM6 11h1v1h-1zM25 11h1v1h-1zM5 14h1v1h-1zM26 14h1v1h-1zM4 17h1v1h-1zM27 17h1v1h-1zM3 20h1v1h-1zM28 20h1v1h-1z'/%3E%3Cpath fill='%23ccc' d='M12 4h9v1h-9zM10 5h1v1h-1zM11 6h12v1h-12zM8 7h1v1h-1zM10 7h13v1h-13zM9 8h15v1h-15zM7 9h1v1h-1zM9 9h15v1h-15zM7 10h1v1h-1zM9 10h15v1h-15zM8 11h17v1h-17zM6 12h1v1h-1zM8 12h17v1h-17zM6 13h1v1h-1zM8 13h17v1h-17zM7 14h19v1h-19zM5 15h1v1h-1zM7 15h19v1h-19zM5 16h1v1h-1zM7 16h19v1h-19zM6 17h21v1h-21zM4 18h1v1h-1zM6 18h21v1h-21zM4 19h1v1h-1zM6 19h21v1h-21zM5 20h23v1h-23zM3 21h1v1h-1zM5 21h23v1h-23zM3 22h1v1h-1zM5 22h23v1h-23z'/%3E%3Cpath fill='%23ddd' d='M11 5h12v1h-12zM9 6h2v1h-2zM9 7h1v1h-1zM23 7h1v1h-1zM8 8h1v1h-1zM8 9h1v1h-1zM24 9h1v1h-1zM8 10h1v1h-1zM24 10h1v1h-1zM7 11h1v1h-1zM7 12h1v1h-1zM25 12h1v1h-1zM7 13h1v1h-1zM25 13h1v1h-1zM6 14h1v1h-1zM6 15h1v1h-1zM26 15h1v1h-1zM6 16h1v1h-1zM26 16h1v1h-1zM5 17h1v1h-1zM5 18h1v1h-1zM27 18h1v1h-1zM5 19h1v1h-1zM27 19h1v1h-1zM4 20h1v1h-1zM4 21h1v1h-1zM28 21h1v1h-1zM4 22h1v1h-1zM28 22h1v1h-1z'/%3E%3Cpath fill='%23888' d='M23 5h1v1h-1zM24 7h1v1h-1zM25 9h1v1h-1zM25 10h1v1h-1zM26 12h1v1h-1zM26 13h1v1h-1zM27 15h1v1h-1zM27 16h1v1h-1zM28 18h1v1h-1zM28 19h1v1h-1zM29 21h1v1h-1zM29 22h1v1h-1z'/%3E%3Cpath fill='%23444' d='M24 6h1v1h-1zM25 8h1v1h-1zM26 11h1v1h-1zM27 14h1v1h-1zM28 17h1v1h-1zM29 20h1v1h-1z'/%3E%3C/svg%3E");
  --clio-art-p-tab-pressed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23222' d='M11 3h1v1h-1zM9 4h1v1h-1zM8 5h1v1h-1zM7 6h1v1h-1zM25 6h1v1h-1zM6 8h1v1h-1zM26 8h1v1h-1zM5 11h1v1h-1zM27 11h1v1h-1zM4 14h1v1h-1zM28 14h1v1h-1zM3 17h1v1h-1zM29 17h1v1h-1zM2 20h1v1h-1zM30 20h1v1h-1z'/%3E%3Cpath fill='%23000' d='M12 3h10v1h-10zM10 4h1v1h-1zM22 4h2v1h-2zM24 5h1v1h-1zM7 7h1v1h-1zM25 7h1v1h-1zM6 9h1v1h-1zM26 9h1v1h-1zM6 10h1v1h-1zM26 10h1v1h-1zM5 12h1v1h-1zM27 12h1v1h-1zM5 13h1v1h-1zM27 13h1v1h-1zM4 15h1v1h-1zM28 15h1v1h-1zM4 16h1v1h-1zM28 16h1v1h-1zM3 18h1v1h-1zM29 18h1v1h-1zM3 19h1v1h-1zM29 19h1v1h-1zM2 21h1v1h-1zM30 21h1v1h-1zM2 22h1v1h-1zM30 22h1v1h-1zM0 23h33v1h-33z'/%3E%3Cpath fill='%23bbb' d='M11 4h1v1h-1zM21 4h1v1h-1zM9 5h1v1h-1zM8 6h1v1h-1zM23 6h1v1h-1zM7 8h1v1h-1zM24 8h1v1h-1zM6 11h1v1h-1zM25 11h1v1h-1zM5 14h1v1h-1zM26 14h1v1h-1zM4 17h1v1h-1zM27 17h1v1h-1zM3 20h1v1h-1zM28 20h1v1h-1z'/%3E%3Cpath fill='%23ccc' d='M12 4h9v1h-9zM10 5h1v1h-1zM8 7h1v1h-1zM7 9h1v1h-1zM7 10h1v1h-1zM6 12h1v1h-1zM6 13h1v1h-1zM5 15h1v1h-1zM5 16h1v1h-1zM4 18h1v1h-1zM4 19h1v1h-1zM3 21h1v1h-1zM3 22h1v1h-1z'/%3E%3Cpath fill='%23888' d='M11 5h11v1h-11zM23 5h1v1h-1zM9 6h2v1h-2zM9 7h1v1h-1zM24 7h1v1h-1zM8 8h1v1h-1zM8 9h1v1h-1zM25 9h1v1h-1zM8 10h1v1h-1zM25 10h1v1h-1zM7 11h1v1h-1zM7 12h1v1h-1zM26 12h1v1h-1zM7 13h1v1h-1zM26 13h1v1h-1zM6 14h1v1h-1zM6 15h1v1h-1zM27 15h1v1h-1zM6 16h1v1h-1zM27 16h1v1h-1zM5 17h1v1h-1zM5 18h1v1h-1zM28 18h1v1h-1zM5 19h1v1h-1zM28 19h1v1h-1zM4 20h1v1h-1zM4 21h1v1h-1zM29 21h1v1h-1zM4 22h1v1h-1zM29 22h1v1h-1z'/%3E%3Cpath fill='%23ddd' d='M22 5h1v1h-1zM23 7h1v1h-1zM24 9h1v1h-1zM24 10h1v1h-1zM25 12h1v1h-1zM25 13h1v1h-1zM26 15h1v1h-1zM26 16h1v1h-1zM27 18h1v1h-1zM27 19h1v1h-1zM28 21h1v1h-1zM28 22h1v1h-1z'/%3E%3Cpath fill='%23666' d='M11 6h12v1h-12zM10 7h13v1h-13zM9 8h15v1h-15zM9 9h15v1h-15zM9 10h15v1h-15zM8 11h17v1h-17zM8 12h17v1h-17zM8 13h17v1h-17zM7 14h19v1h-19zM7 15h19v1h-19zM7 16h19v1h-19zM6 17h21v1h-21zM6 18h21v1h-21zM6 19h21v1h-21zM5 20h23v1h-23zM5 21h23v1h-23zM5 22h23v1h-23z'/%3E%3Cpath fill='%23444' d='M24 6h1v1h-1zM25 8h1v1h-1zM26 11h1v1h-1zM27 14h1v1h-1zM28 17h1v1h-1zM29 20h1v1h-1z'/%3E%3C/svg%3E");

  color: #000000;
  /* Measured from Mac OS 9.0 frames by tooling/p9-art.py. */
  --clio-art-p9-check: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAAGFBMVEUAAAAAAABVVVV3d3eIiIiqqqrd3d3///8DgOpFAAAAAXRSTlMAQObYZgAAAEBJREFUeJwVxLENgDAQBMH9k4lxQAPvSuiKtr4iRAUW+QVGTDBxAautFyyA+nfIRaU2WynOGl0cSkSMTpvPfvMB4jgPBUEhtgkAAAAASUVORK5CYII=");
  --clio-art-p9-check-overhang: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAEAgMAAADZgQaqAAAADFBMVEUAAAAAAAB3d3eqqqoo0Gg2AAAAAXRSTlMAQObYZgAAABBJREFUeJxjcGDYwCTAwAAABXABA8z2jo8AAAAASUVORK5CYII=");
  --clio-art-p9-radio-on: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAIVBMVEUAAAAAAAAiIiJERERVVVV3d3eIiIiZmZm7u7vd3d3///9FvHqFAAAAAXRSTlMAQObYZgAAAFlJREFUeJwVwUERQEAUgOH/vdlxcni7W8CSQBYh5HBy0kEADeigAQqYoQDG9wEpgJCinavTmKTa9fXLbIWWOYyN3oA8ys/UDCTolkE3OKz1dugzme8voI7wAZyaEH+rqNVXAAAAAElFTkSuQmCC");
  --clio-art-p9-radio: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAG1BMVEUAAAAAAABERERVVVWIiIiqqqq7u7vd3d3///9N7yqcAAAAAXRSTlMAQObYZgAAAFpJREFUeJwlzLENQEAYBeDn5RJRuZwJiI2IOZTKW0FnB7OICbDC61x1v8I3wAegDYBDM9n+sBjXMHiyigs9+y2V6KgYZxmRSjOwxiwVvF4zu5lPSXJ2ZFzCn32EjiE9A/VQnAAAAABJRU5ErkJggg==");
  --clio-art-p9-radio-pressed: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAIVBMVEUAAAAAAAAiIiJERERVVVVmZmZ3d3eIiIiZmZm7u7v////rjZGwAAAAAXRSTlMAQObYZgAAAFdJREFUeJwVxKsRgDAURcFz34B/iUaQoQE0ilKogUHREyVQAxKZFnBRfIYVC6QI+n+OymIIyvZK8lZdCkGNXapHfwz3RZiL0kfLwLyZ3CmT3bvDKhhO+ABY6xACXUidtgAAAABJRU5ErkJggg==");
  --clio-art-p9-checkbox-pressed: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAElBMVEUAAAAAAABVVVV3d3eZmZn///8vNloyAAAAAXRSTlMAQObYZgAAADhJREFUeJxFibENACAMwxzUGegH/f8MxFkdEHQgi2VHzp1pAsO42ttrfLQoW4WM+lYhp8kFW44lHI3DBiNDd4iSAAAAAElFTkSuQmCC");
  --clio-art-p9-box-face: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAG1BMVEUAAACIiIiZmZmqqqq7u7vMzMzd3d3u7u7///8xpbC+AAAAAXRSTlMAQObYZgAAAClJREFUeJxjbL3AwPCb5exFQcHTTAwCAgIMTIyMjIwMuNgsfw4wMDAAAAO8B0nHBJxRAAAAAElFTkSuQmCC");
  --clio-art-p9-progress-pole: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKBAMAAABPkMOvAAAAKlBMVEUAAAAAAFUAAIgzM5lVVVVmZsx3d3eZmZmZmf+qqqq7u7vMzP/d3d3///+RIHmxAAAAAXRSTlMAQObYZgAAAFFJREFUeJwlyrEJgwAQQNF3ciNYiziBIKQ2U7lTpnAAAy4QcYOAtQbRFK/5/GhwyefM1pKPDR3x+q0UtfhY7ism+0j2ufBGFYN/yi8uUbYcMycurhMrVyrlPQAAAABJRU5ErkJggg==");
  --clio-art-p9-submenu: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAALAQMAAABmnG7VAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAB9JREFUeJxjaGA4wPCA4QPDD4Y/TH+YfjB9YHrAdAAAZSIJk3jnGdQAAAAASUVORK5CYII=");
  --clio-art-p9-submenu-on: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAALAQMAAABmnG7VAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAAB9JREFUeJxjaGA4wPCA4QPDD4Y/TH+YfjB9YHrAdAAAZSIJk3jnGdQAAAAASUVORK5CYII=");
  --clio-art-p9-dropdown: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAKAQMAAABCAtZOAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAABlJREFUeJxjEGDSYHJh+McAAv8YahgsGAQAHygDQTD2iPAAAAAASUVORK5CYII=");
  --clio-art-p9-dropdown-off: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAKAQMAAABCAtZOAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAABlJREFUeJxjEGDSYHJh+McAAv8YahgsGAQAHygDQTD2iPAAAAAASUVORK5CYII=");
  --clio-art-p9-menucheck: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAATUlEQVR42o3MwQ2AIBAEwIkdaC2UYAsWZw2UIjXQCn4gIcSA+7ydPeYJuGFboAfH6lNB7I8nrg+UxnWqRehQxj7CWMsyQy35D1LLOEMvsWESqM0p+dQAAAAASUVORK5CYII="); /* 10x8 */
  --clio-art-p9-popup-open-arrows: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASBAMAAABLIvhaAAAAGFBMVEUAAAAAAABERERVVVVmZmZ3d3eIiIj////aSdSVAAAAAXRSTlMAQObYZgAAAFdJREFUeJxVjtENgDAIRF8LC7iCE3QCB3YXk07iBiRGaKmS+3i54whlZ8yt26ByLKTOnMCWKJLYwq4gLlCw61OLUZAGb1DBXLHQ6RPNzai5+buwPkvkfAD7IAw5cOa/LwAAAABJRU5ErkJggg=="); /* 19x18 */
}

/* ---- Window ---------------------------------------------------------------- */
/* The strip's inner edge below the title bar: #999 on the left, white on the
   right and bottom (GUIdebook Appearance window, x=4 and x=width-5). */
:is([data-era="platinum"], [data-era="drawingboard"]) .window:not(.inactive) {
  background:
    var(--clio-p9-bevel),
    linear-gradient(#999999, #999999) 3px 19px / 1px calc(100% - 22px) no-repeat,
    linear-gradient(#ffffff, #ffffff) right 3px top 20px / 1px calc(100% - 23px) no-repeat,
    linear-gradient(#ffffff, #ffffff) left 3px bottom 3px / calc(100% - 6px) 1px no-repeat,
    var(--clio-window-bg);
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window-pane {
  border: 1px solid #000000;
  background: var(--clio-pane-bg);
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window > .title-bar + .window-pane,
:is([data-era="platinum"], [data-era="drawingboard"]) .window > .details-bar + .window-pane {
  border-top: 0;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window > .details-bar {
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
}

/* The ridged bar. Its covers read the slot sizes the .title-bar itself
   computes, so this is a rule, not a token. */
:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar {
  /* Six ridges: white lines, and #777 lines one pixel to their right (the
     ridge's shade), between the box slots (Mac OS 9.0, both ends measured). */
  --clio-tb-ridges: calc(100% - var(--clio-tb-close) - var(--clio-tb-zoom) - var(--clio-tb-shade) - 1px);
  /* The ridges are 12px tiles over an opaque bar: a hard stop to transparent in a
     covering layer leaves WebKit's covering rows a hair translucent (±1 per channel). */
  background:
    repeating-linear-gradient(to bottom, #ffffff 0 1px, transparent 1px 2px) var(--clio-tb-close) 1px / var(--clio-tb-ridges) 12px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 1px, #777777 1px 2px) calc(var(--clio-tb-close) + 1px) 1px / var(--clio-tb-ridges) 12px no-repeat,
    linear-gradient(to bottom, #cccccc 0 17px, #999999 17px 18px) 0 0 / 100% 18px no-repeat,
    #cccccc;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar,
:is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar {
  background: var(--clio-titlebar-inactive-bg);
}

/* The title is cut out of the ridges in the frame grey, drawn wide. */
:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.title, h1, h2, h3) {
  /* Mac OS 9.0: the cut-out spans the ridges, 4px before the title and 3px
     after it, and is centred 1px left of the bar's middle; Charcoal sits one
     row low in it. */
  padding: 1px 3px 0 4px;
  transform: translateX(-1px);
  /* The ridge's #777 lines are its white lines one pixel to the right, and so
     is their cut: show them in the cut-out's first column, cover them one
     column past its last. */
  background:
    repeating-linear-gradient(to bottom, transparent 0 1px, #777777 1px 2px) 0 0 / 1px 12px no-repeat,
    #cccccc;
  overflow: clip;              /* still truncates with an ellipsis */
  overflow-clip-margin: 1px;   /* but lets the column past the end show */
}

/* The close, zoom and collapse boxes: an 11px bevelled square sunk into the
   ridges, no paper isolation. */
:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
  margin-top: 1px;
  border-color: #222222;
  background: var(--clio-art-p9-box-face) 0 0 / 9px 9px no-repeat;
  box-shadow:
    -1px -1px 0 #888888,
    -1px 0 0 #888888,
    0 -1px 0 #888888,
    1px 1px 0 #ffffff,
    1px 0 0 #ffffff,
    0 1px 0 #ffffff;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse):is(:active:where(:not([data-clio-off])), .active) {
  background: linear-gradient(to bottom right, #444444, #bbbbbb);
  box-shadow: -1px -1px 0 #888888, 1px 1px 0 #ffffff, inset -1px -1px 0 #999999;
}

/* Zoom: a six-pixel lower-left corner inside the frame. */
:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.resize, .resize-box, .zoom)::before {
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border: 0;
  background:
    linear-gradient(#222222, #222222) right top / 1px 6px no-repeat,
    linear-gradient(#222222, #222222) left bottom / 6px 1px no-repeat;
  opacity: 1;
}

/* WindowShade: two nine-pixel rules. */
:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.shade, .shade-box, .collapse)::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 3px;
  background:
    linear-gradient(#222222, #222222) left top / 9px 1px no-repeat,
    linear-gradient(#222222, #222222) left bottom / 9px 1px no-repeat;
}

/* Background window: flat grey, #555 frame, controls erased, title kept. */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive {
  --clio-button-shadow: 0 0 0 0 transparent;
  --clio-field-shadow: none;
  --clio-check-shadow: none;
  border-color: #555555;
  background: #dddddd;
  box-shadow: 1px 1px 0 #555555;   /* flat: no light or shade inside (Mac OS 9.0 Finder, behind Appearance) */
  color: #555555;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar,
:is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar {
  border-bottom-color: #555555;
  --clio-title-bg: #dddddd;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar > :is(.title, h1, h2, h3),
:is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar > :is(.title, h1, h2, h3) {
  background: #dddddd;
}

/* ---- Default button ring: 1px black, a #aaa bevel band, 1px gap. -------- */
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default) {
  position: relative;
  box-shadow: var(--clio-button-shadow);
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default):not(:disabled, .disabled):is(:active:where(:not([data-clio-off])), .active) {
  box-shadow: var(--clio-button-active-shadow);
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default)::before {
  content: "";
  position: absolute;
  border-width: 1px;                  /* longhands: the shorthand would reset the ring, which is a border-image */
  border-style: solid;
  border-color: transparent;
  inset: -4px;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.default, .btn-default):is(:disabled, .disabled)::before {
  box-shadow: 0 0 0 1px #888888;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(:disabled, .disabled) {
  background: transparent;
  box-shadow: none;
  border-image: var(--clio-button-frame-disabled) var(--clio-button-frame-slice) fill / calc(var(--clio-button-frame-slice) * 1px) stretch;
}

/* ---- Radio buttons: drawn, not cut from a screenshot ------------------------ */
/* Check box mark: inside the frame, plus the two columns that overhang it. */
:is([data-era="platinum"], [data-era="drawingboard"]) input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 0;
  right: -3px;
  width: 2px;
  height: 4px;
  background: var(--clio-art-p9-check-overhang) 0 0 / 2px 4px no-repeat;
}

/* ---- Radio buttons: Mac OS 9's shaded ball (pressed states drawn here). ---- */
:is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"] {
  border: 0;
  border-radius: 0;
  background: var(--clio-art-p9-radio) 0 0 / 12px 12px no-repeat;
  box-shadow: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"]:checked {
  background: var(--clio-art-p9-radio-on) 0 0 / 12px 12px no-repeat;
}

:is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"]:not(:disabled):active:where(:not([data-clio-off])) {
  background: var(--clio-art-p9-radio-pressed) 0 0 / 12px 12px no-repeat;
}

/* Held while on: not captured; the on ball stays (inferred). */
:is([data-era="platinum"], [data-era="drawingboard"]) input[type="radio"]:checked:not(:disabled):active:where(:not([data-clio-off])) {
  background: var(--clio-art-p9-radio-on) 0 0 / 12px 12px no-repeat;
}

/* Held while checked: the mark over the held box (inferred; only the empty
   box was captured held). */
:is([data-era="platinum"], [data-era="drawingboard"]) input[type="checkbox"]:checked:not(:disabled):active:where(:not([data-clio-off])) {
  background:
    var(--clio-art-p9-check) 0 0 / 10px 10px no-repeat padding-box,
    var(--clio-art-p9-checkbox-pressed) -1px -1px / 12px 12px no-repeat;
}

:is([data-era="platinum"], [data-era="drawingboard"]) input[type="checkbox"]:not(:disabled):active:where(:not([data-clio-off])) {
  border-color: transparent;
  background: var(--clio-art-p9-checkbox-pressed) -1px -1px / 12px 12px no-repeat;
  box-shadow: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(input[type="checkbox"], input[type="radio"]):disabled {
  border-color: #888888;
  opacity: 0.6;
}

/* ---- Menus ------------------------------------------------------------------- */
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span) {
  font-weight: 700;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"])::before,
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked)::before {
  left: 8px;   /* the art's first column is the glyph's (it used to start a column early) */
  width: 10px;
  height: 8px;
  margin-top: -4px;
  background: var(--clio-art-p-check) 0 0 / 10px 8px no-repeat;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::before,
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active):where(:not([data-clio-blink]))::before {
  filter: invert(1);
}

/* The same check mark in an open pop-up menu drawn by the browser (base-select). */
@supports (appearance: base-select) {
  :is([data-era="platinum"], [data-era="drawingboard"]) select option::checkmark {
    left: 8px;
    width: 10px;
    background: var(--clio-art-p-check) 0 0 / 10px 8px no-repeat;
  }

  :is([data-era="platinum"], [data-era="drawingboard"]) select option:is(:hover, :focus-visible)::checkmark {
    filter: invert(1);
  }
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after {
  background-image: var(--clio-art-p-submenu);
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::after {
  background-image: var(--clio-art-p-submenu-on);
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li.divider {
  border-bottom: 0;
  box-shadow: inset 0 -2px 0 #dddddd, inset 0 -3px 0 #ffffff, inset 0 -4px 0 #888888;
}

/* ---- Tabs: drawn from the measured Mac OS 9 tab (tooling/tab-art.py) ------ */
:is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) {
  gap: 0;
  padding: 0 4px;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
  min-width: 48px;
  height: 24px;
  min-height: 0;
  margin: 0 -3px -1px 0;
  padding: 3px 0 0;
  border-style: solid;
  border-width: 0 16px;
  border-color: transparent;
  border-radius: 0;
  border-image: var(--clio-art-p-tab) 0 16 fill / 0 16px stretch;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  line-height: 18px;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) > :is([role="tab"], li, button):not(:disabled):active:where(:not([data-clio-off])) {
  border-image-source: var(--clio-art-p-tab-pressed);
  background: transparent;
  color: #ffffff;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
  z-index: 1;
  padding-top: 0;
  border-image-source: var(--clio-art-p-tab-selected);
  background: transparent;
  color: #000000;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is([role="tabpanel"], .tab-panel) {
  border-top: 0;
  box-shadow: inset 1px 0 0 #ffffff, inset -1px -1px 0 #888888;
}

/* ---- Scroll arrow art sits on the bevelled box ---------------------------- */
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal {
  background-position: 0 1px, 0 0;   /* the vertical boxes' art one pixel to the right, the horizontal one pixel down */
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button {
  background-position: 0 1px, 0 0;   /* the vertical boxes' art one pixel to the right, the horizontal one pixel down */
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
:is([data-era="platinum"], [data-era="drawingboard"]):is(html.clio-scrollbars)::-webkit-scrollbar-button {
  background-position: 1px 0, 0 0;
  background-size: 14px 14px, 100% 100%;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button {
  background-position: 1px 0, 0 0;
  background-size: 14px 14px, 100% 100%;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:active,
:is([data-era="platinum"], [data-era="drawingboard"]):is(html.clio-scrollbars)::-webkit-scrollbar-button:active {
  /* Held (Mac OS 9.0 Finder, the down arrow held; frame arrow-held): a #777
     face in --clio-scrollbar-button-bevel-on's #555 and #999 bevel. */
  background-color: #777777;
  box-shadow: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button.clio-held {
  /* Held (Mac OS 9.0 Finder, the down arrow held; frame arrow-held): a #777
     face in --clio-scrollbar-button-bevel-on's #555 and #999 bevel. */
  background-color: #777777;
  box-shadow: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(fieldset) > legend {
  background: var(--clio-pane-bg);
}

/* WebKit starts a fieldset's padding box below the whole legend (clientTop is the
   legend's height), so the dots would fill the band between the drawn top line and
   the legend's foot: the first layer covers that band with the pane in every engine. */
:is([data-era="platinum"], [data-era="drawingboard"]) fieldset {
  background:
    linear-gradient(var(--clio-pane-bg), var(--clio-pane-bg)) 1px 1px / calc(100% - 2px) calc(var(--clio-font-size) * 1.5) no-repeat border-box,
    linear-gradient(var(--clio-pane-bg), var(--clio-pane-bg)) 0 0 / 100% 100% no-repeat padding-box,
    var(--clio-art-p9-group-dots) 0 0 / 2px 2px fixed border-box;
  image-rendering: pixelated;   /* keep the dots from blending into one grey */
}

/* The title's gap opens 13px after the corner (General Controls, "Desktop"). */
:is([data-era="platinum"], [data-era="drawingboard"]) fieldset > legend {
  margin-left: 2px;
}

/* Disabled pop-up menu: #888 frame, flat face, the #aaa divider and a grey
   arrow (Mac OS 9.0 Appearance, "Position Automatically"). Browsers also fade
   a disabled <select>; Mac OS did not. */
:is([data-era="platinum"], [data-era="drawingboard"]) select:disabled {
  border-color: #888888;
  background:
    var(--clio-art-p-dropdown-off) right 7px top 4px / 7px 10px no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) right 20px top 0 / 1px 100% no-repeat,
    #dddddd;
  background-clip: padding-box;
  box-shadow: none;
  color: #888888;
  opacity: 1;
  border-image-source: var(--clio-art-frame-p9-popup-disabled);
}

/* The face stays inside the frame, so the rounded corners show what is behind. */
:is([data-era="platinum"], [data-era="drawingboard"]) select {
  background-clip: padding-box;
}

/* Indeterminate progress (no value): Mac OS 9's stripes, one 16px period
   repeated (Finder copy window). Static: clio.css adds no motion. */
:is([data-era="platinum"], [data-era="drawingboard"]) progress:indeterminate,
:is([data-era="platinum"], [data-era="drawingboard"]) progress:indeterminate::-webkit-progress-bar {
  background: var(--clio-art-p9-progress-pole) 0 0 / 16px 10px repeat-x;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.title, h1, h2, h3)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 12px;
  background: repeating-linear-gradient(to bottom, transparent 0 1px, #cccccc 1px 2px);
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.inactive > .title-bar > :is(.title, h1, h2, h3)::after,
:is([data-era="platinum"], [data-era="drawingboard"]) .inactive-title-bar > :is(.title, h1, h2, h3)::after {
  content: none;
}

/* ---- Antialiasing as Mac OS blends it -------------------------------------
   Window titles and push button labels in their own colours on their own
   backgrounds take the exact palettes (foundation/fonts.css). */
:is([data-era="platinum"], [data-era="drawingboard"]) .title-bar > :is(.title, h1, h2, h3) {
  font-palette: --clio-aa-p9-title;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.window.inactive > .title-bar, .inactive-title-bar) > :is(.title, h1, h2, h3) {
  font-palette: --clio-aa-p9-title-inactive;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button) {
  font-family: var(--clio-font-button);
  font-palette: --clio-aa-p9-button;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):not(:disabled, .disabled):is(:active:where(:not([data-clio-off])), .active) {
  font-palette: --clio-aa-p9-button-held;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(:disabled, .disabled) {
  font-palette: --clio-aa-p9-button-disabled;
}

/* ---- List view headers -----------------------------------------------------
   Measured row by row (Finder list view, Mac OS 9.0). A header: #666 above,
   white light along its top and left, #ccc, #888 shade and a #333 rule below;
   the #666 column on its left is the divider. The sorted header is sunk:
   #111 top and left, #444 right and below (#222 at the two odd corners), a
   #555 then #aaa inner bevel round #888. The sort-direction cell adds an #888
   shade on its right. */
:is([data-era="platinum"], [data-era="drawingboard"]) .list-view th {
  background:
    linear-gradient(#666666, #666666) 0 0 / 100% 1px no-repeat,
    linear-gradient(#666666, #666666) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#555555, #555555) 0 100% / 1px 1px no-repeat,
    linear-gradient(#333333, #333333) 1px 100% / 100% 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 1px / 100% 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 1px / 1px calc(100% - 3px) no-repeat,
    linear-gradient(#888888, #888888) 2px calc(100% - 1px) / 100% 1px no-repeat,
    #cccccc;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .list-view th[aria-sort]:not([aria-sort="none"]) {
  background:
    linear-gradient(#222222, #222222) 100% 0 / 1px 1px no-repeat,
    linear-gradient(#222222, #222222) 0 100% / 1px 1px no-repeat,
    linear-gradient(#111111, #111111) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#111111, #111111) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#444444, #444444) 100% 1px / 1px 100% no-repeat,
    linear-gradient(#444444, #444444) 1px 100% / 100% 1px no-repeat,
    linear-gradient(#777777, #777777) calc(100% - 1px) 1px / 1px 1px no-repeat,
    linear-gradient(#777777, #777777) 1px calc(100% - 1px) / 1px 1px no-repeat,
    linear-gradient(#555555, #555555) 1px 1px / calc(100% - 3px) 1px no-repeat,
    linear-gradient(#555555, #555555) 1px 1px / 1px calc(100% - 3px) no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) calc(100% - 1px) 2px / 1px calc(100% - 3px) no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) 2px calc(100% - 1px) / calc(100% - 3px) 1px no-repeat,
    #888888;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .list-view th.sort-direction {
  background:
    linear-gradient(#888888, #888888) 100% 2px / 1px calc(100% - 3px) no-repeat,
    linear-gradient(#cccccc, #cccccc) 100% 1px / 1px 1px no-repeat,
    linear-gradient(#666666, #666666) 0 0 / 100% 1px no-repeat,
    linear-gradient(#666666, #666666) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#555555, #555555) 0 100% / 1px 1px no-repeat,
    linear-gradient(#333333, #333333) 1px 100% / 100% 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 1px / 100% 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 1px / 1px calc(100% - 3px) no-repeat,
    linear-gradient(#888888, #888888) 2px calc(100% - 1px) / 100% 1px no-repeat,
    url("art/platinum/sort-direction.png") 4px 6px / 8px 7px no-repeat,
    #cccccc;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="tel"], textarea):focus-visible {
  box-shadow: var(--clio-field-focus-shadow);
}

/* Secondary group box (Sound, "Settings for selected device"): one #888 line,
   no light. */
:is([data-era="platinum"], [data-era="drawingboard"]) fieldset.secondary {
  border: 1px solid #888888;
  background: transparent;
  box-shadow: none;
}

/* ---- Utility window (Application Switcher, Mac OS 9.0) --------------------------
   1px black outline and a 1px black drop; white light on the top and left,
   #999 shade on the right; a 13-row title bar of #ccc with a 3px dot pattern
   (white, #777 one down and right) in rows 3-10, 9x9 boxes, and a #999 rule
   under it. */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility {
  --clio-utility-titlebar-height: 14px;
  --clio-utility-box-size: 10px;
  padding: 0;
  border: 1px solid #000000;
  background:
    linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 0 / 1px 100% no-repeat,
    linear-gradient(#999999, #999999) 100% 1px / 1px 100% no-repeat,
    #cccccc;
  box-shadow: none;
  isolation: isolate;
}

/* The drop: 1px of black right and below, from the second row and column. */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility::before {
  content: "";
  position: absolute;
  top: 1px;
  right: -2px;
  bottom: -2px;
  left: 1px;
  z-index: -1;
  background:
    linear-gradient(#000000, #000000) 100% 0 / 1px 100% no-repeat,
    linear-gradient(#000000, #000000) 0 100% / 100% 1px no-repeat;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar {
  height: 13px;
  margin: 1px 1px 0;
  padding: 0 26px 0 12px;
  border-bottom: 0;
  background:
    linear-gradient(#999999, #999999) 0 100% / calc(100% - 1px) 1px no-repeat,
    url("art/platinum/utility-dots.png") 0 2px / 3px 3px repeat-x,
    url("art/platinum/utility-dots.png") 0 5px / 3px 3px repeat-x,
    url("art/platinum/utility-dots.png") 0 8px / 3px 3px repeat-x,
    #cccccc;
  background-clip: padding-box, content-box, content-box, content-box, padding-box;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
  position: absolute;
  grid-area: auto;
  top: 1px;
  left: 0;
  width: 10px;
  height: 10px;
  margin: 0;
  border: 0;
  background: url("art/platinum/utility-close.png") 0 0 / 10px 10px no-repeat;
  box-shadow: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(.resize, .resize-box, .zoom) {
  left: auto;
  right: 11px;
  background-image: url("art/platinum/utility-zoom.png");
  box-shadow: -4px 0 0 #cccccc, 1px 0 0 #cccccc;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(.shade, .shade-box, .collapse) {
  left: auto;
  right: 0;
  background-image: url("art/platinum/utility-collapse.png");
}

/* With no collapse box, the zoom box takes its place. */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar:not(:has(> :is(.shade, .shade-box, .collapse))) > :is(.resize, .resize-box, .zoom) {
  right: 0;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(button, .close, .resize, .zoom, .shade, .collapse)::before,
:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(button, .close, .resize, .zoom, .shade, .collapse)::after {
  content: none;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(.title, h1, h2, h3) {
  height: 11px;
  padding: 0 2px;
  background: #cccccc;
  font-size: 12px;
  line-height: 11px;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility > .title-bar > :is(.title, h1, h2, h3) {
  position: relative;
  z-index: 1;
}

/* ---- Movable modal window (Navigation Services "Open", Mac OS 9.0) --------------
   A title bar with no close box over a dialog body: no frame band, the black
   rule under the title bar runs the whole width, and the body has the modal
   dialog's white light and #999/#555 shade inside the outline. */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.movable-modal {
  padding: 2px 0 0;
  background:
    linear-gradient(#ffffff, #ffffff) 1px 22px / calc(100% - 3px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 1px 22px / 1px calc(100% - 23px) no-repeat,
    linear-gradient(#999999, #999999) right 0 top 1px / 1px calc(100% - 2px) no-repeat,
    linear-gradient(#555555, #555555) 100% 22px / 1px calc(100% - 22px) no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 0 / 100% 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 0 / 1px 19px no-repeat,
    linear-gradient(#cccccc, #cccccc) 0 19px / 1px 1px no-repeat,
    linear-gradient(#000000, #000000) 0 20px / 1px 1px no-repeat,
    linear-gradient(#cccccc, #cccccc) 1px 1px / 100% 1px no-repeat,
    #dddddd;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.movable-modal > .title-bar {
  --clio-tb-close: 3px;
  --clio-tb-shade: 3px;
  margin: 0 1px 0 1px;
  border-bottom: 1px solid #000000;
  box-shadow: none;
}

/* the frame's light down the title bar's first column, above its #999 row */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.movable-modal {
  --clio-mm-light: linear-gradient(#ffffff, #ffffff) 1px 1px / 1px 19px no-repeat;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .window.movable-modal > .window-pane {
  border: 0;
  background: transparent;
}

/* Safari's COLRv0 edge levels in white and dimmed text (foundation/fonts.css). */
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span):is([aria-expanded="true"], .active),
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li.open > :is(button, a, span),
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:not(.disabled, [aria-disabled="true"], .separator, [role="separator"], :has(> :is(:disabled, [aria-disabled="true"]))):is(:hover, :focus-within, .active):where(:not([data-clio-blink])),
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > :is(a, button):not([aria-disabled="true"], :disabled):is(:hover, :focus-visible, .active):where(:not([data-clio-blink])),
:is([data-era="platinum"], [data-era="drawingboard"]) .icon:is(.selected, [aria-selected="true"], [aria-pressed="true"]) > :is(figcaption, span, .icon-label) {
  font-palette: --clio-aa-white;
}

:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li:is(.disabled, [aria-disabled="true"]),
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) > li > :is(a, button):is(:disabled, [aria-disabled="true"]) {
  font-palette: --clio-aa-6f6f6f;
}

/* A submenu sits inside its parent's <li>, which stays chosen while the
   pointer is in the submenu: its own items start from the black levels. */
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.menu, [role="menu"]) :is(.menu, [role="menu"]) {
  font-palette: normal;
}

/* ---- Side-title utility window (kWindowFloatSide*) ----------------------------
   Mac OS 9's frame is in 91-platinum-only.css, Drawing Board's in
   92-drawingboard.css. Both leave the title undrawn, for assistive technology. */
:is([data-era="platinum"], [data-era="drawingboard"]) .window.utility.side > .title-bar > :is(.title, h1, h2, h3) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Placard (Mac OS 9.0, the Appearance SDK's CDEF Tester, frame placard) -----
   1px black, white light on the top and left, #aaa shade on the right and the
   bottom (the corners they would share stay #ddd), #ddd face. Disabled: a #555
   frame on #eee, no light or shade (frame placard-disabled). */
:is([data-era="platinum"], [data-era="drawingboard"]) .placard {
  border-color: #000000;
  background:
    linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) 100% 1px / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#aaaaaa, #aaaaaa) 1px 100% / calc(100% - 1px) 1px no-repeat,
    #dddddd;
  color: #000000;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .placard:is(:disabled, [aria-disabled="true"], .window.inactive *) {
  border-color: #555555;
  background: #eeeeee;
  color: #555555;
}

/* ---- Split bar (BBEdit 5.1, Mac OS 9.0, frames bb3 and split-done) -------------
   7 rows of black across the scroll bar's width; the split line puts its two
   lines on the bar's fourth and sixth rows. */
:is([data-era="platinum"], [data-era="drawingboard"]) :is(.split-view, .split-bar, .split-line) {
  --clio-split-bar-height: 7px;
  --clio-split-bg: #ffffff;
  --clio-split-ink: #000000;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .split-line {
  --clio-split-line-1: 3px;
}

/* ---- Rounded-corner window (the Calculator, Mac OS 9.0 and 8.5) ----------------
   The old window definition draws it as in System 7, its title in the system font
   antialiased: white on black, black on white in the background (levels measured,
   tooling/aa-palettes.py). */
:is([data-era="platinum"], [data-era="drawingboard"]) .rounded-window > .rounded-title {
  font-family: Charcoal, "Charcoal CY", "Clio Sans '97 Title Exact", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, sans-serif;
  padding-left: 16px;   /* Clio Sans '97 Title sets "Calculator" 2px narrower than the Mac's Charcoal: fitted to the capture */
  font-size: 12px;
  font-palette: --clio-aa-rdoc-title;
}

:is([data-era="platinum"], [data-era="drawingboard"]) .rounded-window.inactive > .rounded-title {
  font-palette: --clio-aa-rdoc-title-inactive;
}

/* Mac OS 9 Platinum only (not Drawing Board, whose theme draws its own):
   scroll-bar details read from the Mac OS 9.0 Finder (frames hig/platinum9/
   finder-scroll-*) and the side-title window's frame. The build leaves this file
   out of clio.drawingboard.css. */

/* ---- The scroll box's far side is the window's frame (Mac OS 9.0 Finder) --- */
:is([data-era="platinum"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:vertical {
  border-right-width: 0;
}

:is([data-era="platinum"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-v > .clio-sb-thumb {
  border-right-width: 0;
}

:is([data-era="platinum"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal {
  border-bottom-width: 0;
}

:is([data-era="platinum"]) :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-thumb {
  border-bottom-width: 0;
}

/* Smart Scrolling (clio.js bars): the up and left arrows move to the far end
   and take their black line on the lane's side (frame finder-scroll-smart). */
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-v.clio-sb-smart > .clio-sb-dec {
  border-top: 1px solid #000000;
  border-bottom-width: 0;
}

[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-h.clio-sb-smart > .clio-sb-dec {
  border-left: 1px solid #000000;
  border-right-width: 0;
}

/* Nothing to scroll (clio.js bars): a flat #eee lane and dimmed arrows, the
   bevels gone (Finder, frame finder-scroll-fixed, its horizontal bar). */
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-off > .clio-sb-track {
  background: #eeeeee;
  box-shadow: none;
}

[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-off > .clio-sb-button {
  background-color: #eeeeee;
  box-shadow: none;
}

[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-v.clio-sb-off > .clio-sb-button.clio-sb-dec { background-image: var(--clio-art-p-up-off); }
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-v.clio-sb-off > .clio-sb-button.clio-sb-inc { background-image: var(--clio-art-p-down-off); }
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-h.clio-sb-off > .clio-sb-button.clio-sb-dec { background-image: var(--clio-art-p-left-off); }
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-h.clio-sb-off > .clio-sb-button.clio-sb-inc { background-image: var(--clio-art-p-right-off); }

/* ...and the lines between the arrows and the lane dim to #555, drawn as
   shadows so the black line across keeps the corner. */
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-h.clio-sb-off > .clio-sb-button.clio-sb-dec { border-right-width: 0; box-shadow: inset -1px 0 #555555; }
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-h.clio-sb-off > .clio-sb-button.clio-sb-inc { border-left-width: 0; box-shadow: inset 1px 0 #555555; background-position: 1px 1px; }
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-v.clio-sb-off > .clio-sb-button.clio-sb-dec { border-bottom-width: 0; box-shadow: inset 0 -1px #555555; }
[data-era="platinum"] .clio-sb-host > .clio-sb-anchor > .clio-sb-v.clio-sb-off > .clio-sb-button.clio-sb-inc { border-top-width: 0; box-shadow: inset 0 1px #555555; background-position: 1px 1px; }

/* ---- Collapsed (WindowShade): the frame closes round the title bar --------
   Mac OS 9.0, Games collapsed (frame collapsed): the title bar's last two rows
   become the window's own #999 shade and black frame, which run under the side
   bands too. */
[data-era="platinum"] .window.collapsed {
  padding-bottom: 1px;
}

/* the bevel only: the inner strip round the pane has gone with it */
[data-era="platinum"] .window.collapsed:not(.inactive) {
  background:
    var(--clio-p9-bevel),
    var(--clio-window-bg);
}

[data-era="platinum"] .window.collapsed > .title-bar {
  height: calc(var(--clio-titlebar-height) - 2px);
  border-bottom-width: 0;
}

/* ---- The open pop-up menu (Mac OS 9.0, Appearance > Fonts, Large System Font
   held; frame popup-open) ----------------------------------------------------
   Laid with its top on the button's (the current item there), as wide as the
   button less its arrows (20px), framed all round in black with a white and
   #999 bevel whose other two corners stay #ddd, and its shadow starting 2px in
   (the clip takes the first pixel of each end). The check mark sits 3px in,
   the text 20px. */
[data-era="platinum"] select {
  --clio-popup-menu-trim: 20px;
  --clio-popup-menu-align: top;
}

[data-era="platinum"] .clio-popup-menu {
  border-top-width: 1px;
  background:
    var(--clio-p9-bevel),
    #dddddd;
  box-shadow: 1px 1px 0 #222222;
  clip-path: polygon(0 0, 100% 0, 100% 2px, calc(100% + 1px) 2px, calc(100% + 1px) calc(100% + 1px), 2px calc(100% + 1px), 2px 100%, 0 100%);
}

[data-era="platinum"] .clio-popup-menu > li {
  padding-left: 20px;
}

/* Black on #ddd, every antialiasing level as the screen shows it (the push
   buttons' palette: the same colours). */
[data-era="platinum"] .clio-popup-menu > li:not(.disabled, .active, :hover) {
  font-family: "Clio Sans '97 Exact", var(--clio-font-chrome);
  font-palette: --clio-aa-p9-button;
}

[data-era="platinum"] .clio-popup-menu > li:is(.checked, [aria-checked="true"])::before {
  left: 3px;
}

/* The same menu where the browser draws it (base-select). */
@supports (appearance: base-select) {
  [data-era="platinum"] select::picker(select) {
    min-width: calc(anchor-size(width) - 20px);
    border-top-width: 1px;
    background:
      var(--clio-p9-bevel),
      #dddddd;
    box-shadow: 1px 1px 0 #222222;
    clip-path: polygon(0 0, 100% 0, 100% 2px, calc(100% + 1px) 2px, calc(100% + 1px) calc(100% + 1px), 2px calc(100% + 1px), 2px 100%, 0 100%);
  }

  [data-era="platinum"] select option {
    padding-left: 20px;
  }

  [data-era="platinum"] select option:not(:disabled, :hover, :focus-visible) {
    font-family: "Clio Sans '97 Exact", var(--clio-font-chrome);
    font-palette: --clio-aa-p9-button;
  }

  [data-era="platinum"] select option::checkmark {
    left: 3px;
  }
}

/* While its menu is open the button's arrows are drawn pressed: a #444 top row,
   #555 then a #666 face, the arrows white, #777 and #888 below and to the right
   (frame fonts-popup-open). clio.js marks the select it opens a menu for. */
[data-era="platinum"] select.clio-open {
  background: var(--clio-art-p9-popup-open-arrows) right 0 top 0 / 19px 18px no-repeat, var(--clio-popup-arrow), var(--clio-popup-bg);
  border-image-source: var(--clio-art-frame-p9-popup-open);   /* the arrows' corners pressed too */
}

@supports selector(:open) {
  [data-era="platinum"] select:open {
    background: var(--clio-art-p9-popup-open-arrows) right 0 top 0 / 19px 18px no-repeat, var(--clio-popup-arrow), var(--clio-popup-bg);
    border-image-source: var(--clio-art-frame-p9-popup-open);
  }
}

/* The title's line is 12px, not the 13px row: Charcoal's 11px ascent and 3px
   descent then leave no half pixel above the baseline, which each browser
   rounded its own way (Chromium up, WebKit and Firefox down a row). The box
   keeps its 13px height. */
[data-era="platinum"] .title-bar > :is(.title, h1, h2, h3) {
  line-height: calc(var(--clio-titlebar-row) - 1px);
}

/* The column just past the cut-out covers the ridges' #777 rows (their cut is a
   pixel to the right of the white rows'). It used to be an ::after outside the
   title, shown through overflow-clip-margin, which WebKit lacks; now the title
   is a pixel wider into it (a -1px margin keeps it centred where it was) and
   paints that column itself. */
[data-era="platinum"] .title-bar:not(.inactive-title-bar, .window.inactive > .title-bar) > :is(.title, h1, h2, h3) {
  margin-right: -1px;
  padding-right: 4px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 1px, #777777 1px 2px) 0 0 / 1px 12px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 1px, #cccccc 1px 2px) right 0 top 0 / 1px 12px no-repeat,
    linear-gradient(#cccccc, #cccccc) 0 0 / calc(100% - 1px) 100% no-repeat;
}

[data-era="platinum"] .title-bar > :is(.title, h1, h2, h3)::after {
  content: none;
}

/* ---- The window's drop shadow starts 2px in -------------------------------
   Mac OS 9.0 (Infinite HD, measured): the 1px black shadow runs down the right
   from the frame's third row and along the foot from its third column; a
   box-shadow could only start it 1px in. Two border lines on a pseudo-element
   draw it (the box itself stays clear); its offsets count from the padding box,
   inside the 1px frame. */
[data-era="platinum"] .window {
  box-shadow: none;
}

[data-era="platinum"] .window::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -2px;
  bottom: -2px;
  left: 1px;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  pointer-events: none;
}

/* Behind another window the shadow turns #555555 and keeps the same notch
   (Mac OS 9.0 Finder window, measured). */
[data-era="platinum"] .window.inactive {
  box-shadow: none;
}

[data-era="platinum"] .window.inactive::after {
  border-color: #555555;
}

/* ---- Side-title utility window (kWindowFloatSide*; Mac OS 9.0, the Appearance
   SDK's sample "Side Utility Window", frames side3) ------------------------------
   <div class="window utility side"> with the usual .title-bar (close box at the
   top, collapse box at the foot; no title is drawn). The frame is the utility
   window's: 1px black, white light on the top and left, #999 shade on the right
   and the bottom, the drop from the second row and column. The bar is 10px of #ccc
   down the left with the 3px dot pattern from 12px below its top to 12px above its
   foot; the collapse box is the title-bar one transposed. */
[data-era="platinum"] .window.utility.side {
  flex-direction: row;
  background:
    linear-gradient(#ffffff, #ffffff) 0 0 / calc(100% - 1px) 1px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 0 / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#999999, #999999) 100% 1px / 1px calc(100% - 1px) no-repeat,
    linear-gradient(#999999, #999999) 1px 100% / calc(100% - 1px) 1px no-repeat,
    #cccccc;
}

[data-era="platinum"] .window.utility.side > .title-bar {
  display: block;
  flex: none;
  width: 10px;
  height: auto;
  margin: 1px 0 1px 1px;
  padding: 0;
  background: url("art/platinum/utility-dots.png") 1px 12px / 3px 3px repeat, #cccccc;
  box-shadow: none;
}

/* The dots keep to columns 1 to 9 and rows 12 to 12 above the foot: a #ccc frame
   painted over the pattern's edges. */
[data-era="platinum"] .window.utility.side > .title-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-style: solid;
  border-color: #cccccc;
  border-width: 12px 0 12px 1px;
  pointer-events: none;
}

[data-era="platinum"] .window.utility.side > .title-bar::after {
  content: none;
}

[data-era="platinum"] .window.utility.side > .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
  top: 0;
  right: auto;
  left: 0;
  z-index: 1;
  box-shadow: none;
}

[data-era="platinum"] .window.utility.side > .title-bar > :is(.shade, .shade-box, .collapse, .resize, .resize-box, .zoom) {
  top: auto;
  bottom: 0;
  background-image: url("art/platinum/utility-collapse-side.png");
}

[data-era="platinum"] .window.utility.side > .window-pane {
  margin: 1px 1px 1px 0;
}

/* In the background: a #555 frame and drop on flat #ddd; no boxes, no dots. */
[data-era="platinum"] .window.utility.side.inactive {
  border-color: #555555;
  background: #dddddd;
}

[data-era="platinum"] .window.utility.side.inactive::before {
  background:
    linear-gradient(#555555, #555555) 100% 0 / 1px 100% no-repeat,
    linear-gradient(#555555, #555555) 0 100% / 100% 1px no-repeat;
}

[data-era="platinum"] .window.utility.side.inactive > .title-bar {
  background: #dddddd;
}

[data-era="platinum"] .window.utility.side.inactive > .title-bar::before {
  content: none;
}

/* ---- Utility window: the dot pattern right of the title ---------------------- */
/* The dots right of the title run from the right end (their phase differs
   from the left run's by one column). */
[data-era="platinum"] .window.utility > .title-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 25px;
  bottom: 1px;
  left: 50%;
  border: 0;
  background:
    url("art/platinum/utility-dots.png") right -1px top 2px / 3px 3px repeat-x,
    url("art/platinum/utility-dots.png") right -1px top 5px / 3px 3px repeat-x,
    url("art/platinum/utility-dots.png") right -1px top 8px / 3px 3px repeat-x,
    #cccccc;
  box-shadow: none;
}

/* Mac OS 8.5 "Drawing Board" (the beta theme Apple shipped in 8.5b6 and
   withdrew). Applies inside any element with data-era="drawingboard"; it shares
   the Platinum layer's structure (both are Appearance Manager themes) and
   replaces its colours, geometry and art. clio.drawingboard.css is a build of
   this file with Drawing Board as the page default.
   Values: Infinite Mac, Mac OS 8.5 with the theme installed
   (`npm run capture:drawingboard`), read 1:1. The art is the theme's own:
   its 'pxm#' pictures and 'ppat' patterns (papers and the pattern pens the
   theme draws its pencil lines with), written to art/drawingboard/ by
   tooling/db-art.py and tooling/db-pens.py and placed as Mac OS places them,
   each found 1:1 in the capture. The stylesheet loads them from art/ beside
   itself, as it loads fonts/. See EVIDENCE.md. */
[data-era="drawingboard"] {
  /* the theme's own arrow: 'crsr' 128, 16x16 in greys, hot spot 0,0 (tooling/db-cursor.py
     writes art/cursors/db-arrow{,-2x,-3x}.png; --check compares every pixel with the
     resource). 129-131 are the same arrow with a drag badge (copy, alias, a document). */
  --clio-cursor-arrow: image-set(url("art/cursors/db-arrow.png") 1x, url("art/cursors/db-arrow-2x.png") 2x, url("art/cursors/db-arrow-3x.png") 3x) 0 0, default;
  --clio-scrollbar-size: 16px;
  --clio-scrollbar-button-bevel: none;
  --clio-scrollbar-button-bevel-on: none;
  /* clio.js: the dragged region is the frame and its shadow, 7px across and 8px
     down, with the frame pieces' overrun near the corners (tooling/db-outline.py
     writes those as patches; the outline gets a 12px margin to hold them) */
  --clio-drag-outline-extra: 7px;
  --clio-drag-outline-extra-y: 8px;
  --clio-drag-outline-margin: 12px;
  --clio-db-outline-tl: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAQAAAAkGDomAAAARElEQVR42u3WwQ0AIAgEQUP/PWMHfD3iTAUbIcRzAF7pTqio9OiaUhLesNLHXDs2cUPU6lCA375ZDjQAAAAAAAAAADC6wVkT9TSjiRQAAAAASUVORK5CYII=");
  --clio-db-outline-tr: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAQAAAAkGDomAAAAZElEQVR42u3UwQ5AMBBF0Y74/1+ulSAS6YY8nLOTWFyjndZ4qd7H3pvSP0SgQIECb96Ec9birooJPKfETXD9xVvqaPQjcfsTeHxyi3+2ZuInWAnzu7q98RMEAAAAAAAAAAD4oAW4lBQeuypXEwAAAABJRU5ErkJggg==");
  --clio-db-outline-bl: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAQAAAAkGDomAAAAfElEQVR42u3XSw6AMAgFQNt4/yvj3sT6V9rMbHXxBIo6TQAAAAAAAAAAAGeV1sWI1c3l+4DzVpw/wtwSsa7nN+qZFqcKmCFcM2CWGWxWMEPI9DNY9s7u3y2vB58j31aMuLr5nh2M+sLUlOQB7cFO3iRaPHwFu/hE9Uc0ggXRch4XFPn+mwAAAABJRU5ErkJggg==");
  --clio-db-outline-br: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAQAAAAkGDomAAAATUlEQVR42u3XwQkAIAwDQO3+O+sAiviMcjdBqGDT1gAAAAAAAOBkDDMAACC8su5Ka2U16jViZU2xdzcJ8PNWeOpbuQ1Y6W8hoIACQrgJSZMT/52XbkwAAAAASUVORK5CYII=");
  /* outline patches: 176 pixels in four 80x80 corners (tooling/db-outline.py) */
  --clio-scrollbar-thumb-overlap: 0px;
  --clio-scrollbar-thumb-after: none;
  /* Titles sit on the textured title bar, where no palette can know the
     background: they keep Clio Sans '97 Title in the text colour. */
  --clio-font-window-title: Charcoal, "Charcoal CY", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  /* Where a 128px theme pattern starts. Mac OS sometimes starts one half a
     tile (64px) earlier, depending on where the window sits on screen; a page
     matching a particular screen can set 64px on that window or control. */
  --clio-db-phase: 0px;
  /* Slider (Keyboard, Key Repeat): a 1px pencil track (ppat 7024) 2px below
     the top of the theme's 9x16 thumb (1106). */
  --clio-slider-track-height: 1px;
  --clio-slider-track-top: 2px;
  --clio-slider-track-slice: 0px;
  --clio-slider-thumb-width: 9px;
  --clio-art-slider-thumb: url("art/drawingboard/parts/slider-thumb.png");
  /* Tick marks (Keyboard, Key Repeat): 2px of the theme's ink, 3px tall, under
     the track at the same spacing as Platinum's (the Keyboard capture: five
     marks 22px apart, the first 9px in). */
  --clio-slider-tick-light: transparent;
  --clio-slider-tick-ink: #333333;
  --clio-slider-tick-shade: #333333;
  --clio-slider-tick-offset: 9px;
  --clio-slider-tick-run: 9px;
  /* Little arrows: the theme's 13x21 pictures (350: normal, up held, down held,
     dimmed), through 16 bits (Date & Time). */
  --clio-little-arrows-width: 13px;
  --clio-little-arrows-height: 21px;
  --clio-art-little-arrows: url("art/drawingboard/parts/little-arrows.png");
  --clio-art-little-arrows-up: url("art/drawingboard/parts/little-arrows-up.png");
  --clio-art-little-arrows-down: url("art/drawingboard/parts/little-arrows-down.png");
  --clio-art-little-arrows-disabled: url("art/drawingboard/parts/little-arrows-disabled.png");
  /* Chasing arrows: the theme's six frames (390). */
  --clio-art-chasing-arrows: url("art/drawingboard/parts/chasing-arrows.png");
  --clio-chasing-arrows-frames: 6;
  /* Help button: as the Keyboard control panel draws it. */
  --clio-art-help-button: url("art/drawingboard/help-button.png");
  /* Scrolling menu arrows: the theme's 364 and 389 (Control Panels submenu). */
  --clio-art-menu-scroll-down: url("art/drawingboard/parts/menu-scroll-down.png");
  --clio-art-menu-scroll-up: url("art/drawingboard/parts/menu-scroll-up.png");
  /* Disclosure triangle: the theme's 11px pictures (closed 340, open 343, which
     Mac OS draws through 16 bits), Finder list view. */
  --clio-disclosure-size: 11px;
  --clio-art-disclosure: url("art/drawingboard/parts/disclosure.png");
  --clio-art-disclosure-open: url("art/drawingboard/parts/disclosure-open.png");
  --clio-ink: #313131;
  --clio-paper: #e7ded6;
  --clio-face: #cdc6bd;
  --clio-disabled: #8c8c8c;
  --clio-selection-bg: #ccccff;

  --clio-border: 1px solid #555555;

  /* Window: the theme's own nine frame pictures (see the Window rules), on
     the content paper. The frame is 6px on each side inside the outline; the
     title bar's 22 rows include the outline and the #555 rule. */
  --clio-window-bg: #cdc6bd;
  --clio-pane-bg: #e7ded6;
  --clio-window-border: 0 none;
  --clio-window-shadow: none;
  --clio-window-padding: 0 6px 6px;

  /* Title bar: 22 rows of the frame picture. Boxes 11px, 5px below the top. */
  --clio-titlebar-height: 22px;
  --clio-titlebar-padding: 4px 0 0;
  --clio-titlebar-margin: 0 -1px;
  --clio-titlebar-border: 0 none;
  --clio-titlebar-row: 16px;
  --clio-titlebar-inactive-bg: #cdc6bd;
  --clio-title-bg: transparent;
  --clio-title-fg: #313131;
  --clio-title-inactive-fg: #9f9a94;

  /* Menu bar: 22px of #cec6b5 paper, no rule under it. Menus: #ddd paper,
     #333 outline, 18px items (20px with an icon); the chosen title and item
     are underlined in pencil: left, stretched centre and right pieces, 16px
     in from the menu's left, 15px from its right (Control Panels; the Appearance
     pop-up's sits 16px from both), 1px above the item's foot. */
  --clio-menubar-height: 22px;
  --clio-menubar-bg: url("art/drawingboard/menubar.png") 0 0 / 630px 27px repeat-x, #cec6b5;
  --clio-menubar-border: 0 none;
  --clio-menubar-shadow: none;
  --clio-menu-title-active-bg:
    var(--clio-art-db-title-underline-left) left 0 bottom 3px / 15px 3px no-repeat,
    var(--clio-art-db-title-underline-right) right 0 bottom 3px / 16px 3px no-repeat,
    var(--clio-art-db-title-underline-tiled) left 15px bottom 3px / calc(100% - 31px) 4px no-repeat;
  --clio-menu-title-active-fg: #313131;
  --clio-menu-title-active-shadow: none;
  /* Menus: the theme's paper inside a pencil frame (see the Menus rules). */
  --clio-menu-bg: #dddddd;
  --clio-menu-border: 1px solid transparent;
  --clio-menu-border-top-width: 1px;
  --clio-menu-shadow: none;
  --clio-menu-item-height: 18px;
  --clio-menu-item-active-bg:
    var(--clio-art-db-menu-underline-left) left 16px bottom 1px / 29px 3px no-repeat,
    var(--clio-art-db-menu-underline-right) right 15px bottom 1px / 36px 3px no-repeat,
    var(--clio-art-db-menu-underline-tiled) left 45px bottom 1px / calc(100% - 96px) 3px no-repeat;
  --clio-menu-item-active-fg: #313131;
  --clio-menu-item-active-shadow: none;
  --clio-menu-separator: none;
  --clio-menu-separator-height: 9px;

  /* Push buttons: four pattern pens (ppat 7070-7072, 7079) tiled from the last
     column and row, the corner pixels they leave (tooling/db-pens.py), the
     hatched ButtonFaceCorner in the lower right of the #cec6b5 face, and a
     1px pencil shade right and below (the Buttons rules). Held: other pens
     for the foot and right side, tiled from the second column and row, and no
     hatch ("Save Theme…" held). */
  --clio-button-bg:
    url("art/drawingboard/pens/button-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/button-right.png") right 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/button-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
    url("art/drawingboard/pens/button-bottom.png") right 1px bottom 0 / 64px 1px repeat-x border-box,
    var(--clio-art-db-button-corner) right 0 bottom / 24px 24px no-repeat padding-box,
    #cec6b5;
  --clio-button-fg: #313131;
  /* The label sits 1px lower than Platinum's (themes tab, "Save Theme…"). */
  --clio-button-padding: 2px 10px 0;
  --clio-button-border: 1px solid transparent;
  --clio-button-radius: 0;
  --clio-button-shadow: none;
  --clio-button-active-bg:
    url("art/drawingboard/pens/button-held-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/button-held-right.png") right 0 top 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/button-held-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
    url("art/drawingboard/pens/button-held-bottom.png") left 1px bottom 0 / 32px 1px repeat-x border-box,
    #cec6b5;
  --clio-button-active-fg: #313131;
  --clio-button-active-shadow: none;
  --clio-button-frame: url("art/drawingboard/pens/button-corners.png");
  --clio-button-frame-held: url("art/drawingboard/pens/button-held-corners.png");
  --clio-button-frame-disabled: url("art/drawingboard/pens/button-corners.png");
  --clio-button-frame-slice: 5;
  --clio-ring-frame: none;
  /* Pop-up frame: four pattern pens (ppat 7095-7098) tiled from the last
     column and row, and the corner pixels they leave (tooling/db-pens.py). */
  --clio-popup-frame: url("art/drawingboard/pens/popup-corners.png");
  --clio-popup-frame-slice: 5;
  --clio-popup-bg:
    url("art/drawingboard/pens/popup-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/popup-right.png") right 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/popup-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
    url("art/drawingboard/pens/popup-bottom.png") right 1px bottom 0 / 64px 1px repeat-x border-box,
    #cec6b5;
  --clio-popup-border: 1px solid transparent;
  --clio-popup-radius: 0;
  --clio-popup-shadow: none;
  --clio-popup-padding: 0 30px 0 7px;
  --clio-popup-arrow:
    var(--clio-art-db-popup-arrow) right 5px top 4px / 7px 9px no-repeat,
    var(--clio-art-db-popup-corner) right 19px bottom / 24px 24px no-repeat;

  /* Check boxes and radio buttons are the theme's own pictures. */
  --clio-check-size: 14px;
  --clio-radio-size: 16px;

  /* Edit text: a 1px pencil line drawn with pattern pens, 1px of whatever is
     behind (the paper) inside it, then the white field (Date & Time; the
     Text fields rules). */
  --clio-field-border: 2px solid transparent;
  --clio-field-shadow: none;
  --clio-field-focus-shadow: none;
  --clio-button-disabled-fg: #8c8c8c;
  --clio-button-disabled-border: 1px solid #888888;
  /* The theme's scroll box at its shortest, 7px end and 8px end. */
  --clio-scrollbar-thumb-length: 15px;

  /* Scroll bars: the theme's 16px arrow boxes; a #ece6e4 track with a #aaa
     edge, a two-pixel pencil rail down the middle and a #777 far edge; the
     scroll box drawn from the theme's ends, stretch and grip. */
  --clio-scrollbar-up: var(--clio-art-db-up);
  --clio-scrollbar-up-on: var(--clio-art-db-up-on);
  --clio-scrollbar-down: var(--clio-art-db-down);
  --clio-scrollbar-down-on: var(--clio-art-db-down-on);
  --clio-scrollbar-left: var(--clio-art-db-left);
  --clio-scrollbar-left-on: var(--clio-art-db-left-on);
  --clio-scrollbar-right: var(--clio-art-db-right);
  --clio-scrollbar-right-on: var(--clio-art-db-right-on);
  --clio-scrollbar-button-bg: transparent;
  --clio-scrollbar-button-shadow: none;
  /* Vertical (Desktop tab pattern list): #555 edges, a two-pixel #777 rail. */
  --clio-scrollbar-track: linear-gradient(to right, #555555 0 1px, #ece6e4 1px 7px, #777777 7px 9px, #ece6e4 9px 15px, #555555 15px);
  --clio-scrollbar-track-color: #ece6e4;
  --clio-scrollbar-track-shadow: none;
  /* The grip lies over the ends, (length - 2) / 2 rounded down from the start:
     on the 15px box it covers the start's last pixel (Themes tab list). */
  --clio-scrollbar-thumb-bg:
    var(--clio-art-db-thumb-vgrip) 1px round(down, 50%, 1px) / 14px 2px no-repeat,
    var(--clio-art-db-thumb-top) 1px 0 / 14px 7px no-repeat,
    var(--clio-art-db-thumb-bottom) 1px 100% / 14px 8px no-repeat,
    var(--clio-art-db-thumb-vstretch) 1px 0 / 14px 100% no-repeat;
  --clio-scrollbar-thumb-bg-horizontal:
    var(--clio-art-db-thumb-hgrip) round(down, 50%, 1px) 1px / 2px 14px no-repeat,
    var(--clio-art-db-thumb-left) 0 1px / 7px 14px no-repeat,
    var(--clio-art-db-thumb-right) 100% 1px / 8px 14px no-repeat,
    var(--clio-art-db-thumb-hstretch) 0 1px / 100% 14px no-repeat;
  --clio-scrollbar-thumb-color: #cdc6bd;
  --clio-scrollbar-thumb-border: 0 none;
  --clio-scrollbar-thumb-shadow: none;
  --clio-scrollbar-corner: var(--clio-art-db-grow) 0 0 / 16px 16px no-repeat, #cdc6bd;

  /* Dialogs: the theme's frame pictures (see the Dialogs rules); plain dialogs
     keep a 1px pencil frame with a #777 band 7px wide on the right and 8px
     deep below. */
  --clio-dialog-bg: #e7ded6;
  --clio-modal-border: 1px solid transparent;
  --clio-modal-frame: none;
  --clio-plain-dialog-border: 1px solid #333333;
  --clio-plain-dialog-shadow: 7px 0 0 #777777, 0 8px 0 #777777, 7px 8px 0 #777777;

  --clio-details-bg: #e7ded6;
  --clio-details-border: 1px solid #555555;
  --clio-details-shadow: none;
  /* List boxes (Desktop tab pattern list): a 2px olive #9c9c63 line, 1px of
     whatever is behind (the pane's paper) inside it, then white; the chosen
     row #ccf. */
  --clio-list-border: 2px solid #9c9c63;
  --clio-list-shadow: none;
  --clio-list-bg: #ffffff;
  --clio-group-border: 1px solid #777777;
  --clio-group-bg: transparent;
  --clio-group-shadow: none;
  /* Progress bar (Finder copy window): 12px, a #756f66 pencil line (#333 on
     the left) round #ddd6c5; an indeterminate bar shows the theme's arrows.
     The determinate fill was not captured and stays Platinum's. */
  --clio-progress-height: 12px;
  --clio-progress-bg: #ddd6c5;
  --clio-progress-border: 1px solid #756f66;
  --clio-progress-shadow: none;
  --clio-tab-height: 27px;
  /* Tab pane paper (ppat 7115), from the pane's inner top-left. */
  --clio-tab-panel-bg: url("art/drawingboard/tab-paper.png") 0 0 / 256px 64px, #e7ded6;
  --clio-tab-panel-border: 1px solid #555555;

  /* Art: redrawn from the theme's 'pxm#' pixmaps by tooling/db-art.py. */
  --clio-art-db-close: url("art/drawingboard/parts/close.png"); /* 11x11 */
  --clio-art-db-close-on: url("art/drawingboard/parts/close-on.png"); /* 11x11 */
  --clio-art-db-collapse: url("art/drawingboard/parts/collapse.png"); /* 11x11 */
  --clio-art-db-collapse-on: url("art/drawingboard/parts/collapse-on.png"); /* 11x11 */
  --clio-art-db-zoom: url("art/drawingboard/parts/zoom.png"); /* 11x11 */
  --clio-art-db-zoom-on: url("art/drawingboard/parts/zoom-on.png"); /* 11x11 */
  --clio-art-db-check: url("art/drawingboard/parts/check.png"); /* 14x11 */
  --clio-art-db-check-on: url("art/drawingboard/parts/check-on.png"); /* 14x11 */
  --clio-art-db-check-mixed: url("art/drawingboard/parts/check-mixed.png"); /* 14x11 */
  --clio-art-db-check-pressed: url("art/drawingboard/parts/check-pressed.png"); /* 14x11 */
  --clio-art-db-check-on-pressed: url("art/drawingboard/parts/check-on-pressed.png"); /* 14x11 */
  --clio-art-db-check-disabled: url("art/drawingboard/parts/check-disabled.png"); /* 14x11 */
  --clio-art-db-check-on-disabled: url("art/drawingboard/parts/check-on-disabled.png"); /* 14x11 */
  --clio-art-db-radio: url("art/drawingboard/parts/radio.png"); /* 16x12 */
  --clio-art-db-radio-on: url("art/drawingboard/parts/radio-on.png"); /* 16x12 */
  --clio-art-db-radio-on-pressed: url("art/drawingboard/parts/radio-on-pressed.png"); /* 16x12 */
  --clio-art-db-radio-disabled: url("art/drawingboard/parts/radio-disabled.png"); /* 16x12 */
  --clio-art-db-radio-on-disabled: url("art/drawingboard/parts/radio-on-disabled.png"); /* 16x12 */
  --clio-art-db-up: url("art/drawingboard/parts/up.png"); /* 16x16 */
  --clio-art-db-up-on: url("art/drawingboard/parts/up-on.png"); /* 16x16 */
  --clio-art-db-up-off: url("art/drawingboard/parts/up-off.png"); /* 16x16 */
  --clio-art-db-down: url("art/drawingboard/parts/down.png"); /* 16x16 */
  --clio-art-db-down-on: url("art/drawingboard/parts/down-on.png"); /* 16x16 */
  --clio-art-db-down-off: url("art/drawingboard/parts/down-off.png"); /* 16x16 */
  --clio-art-db-left: url("art/drawingboard/parts/left.png"); /* 16x16 */
  --clio-art-db-left-on: url("art/drawingboard/parts/left-on.png"); /* 16x16 */
  --clio-art-db-left-off: url("art/drawingboard/parts/left-off.png"); /* 16x16 */
  --clio-art-db-right: url("art/drawingboard/parts/right.png"); /* 16x16 */
  --clio-art-db-right-on: url("art/drawingboard/parts/right-on.png"); /* 16x16 */
  --clio-art-db-right-off: url("art/drawingboard/parts/right-off.png"); /* 16x16 */
  --clio-art-db-popup-arrow: url("art/drawingboard/parts/popup-arrow.png"); /* 7x9 */
  --clio-art-db-popup-arrow-off: url("art/drawingboard/parts/popup-arrow-off.png"); /* 7x9 */
  --clio-art-db-submenu: url("art/drawingboard/parts/submenu.png"); /* 6x11 */
  --clio-art-db-menucheck: url("art/drawingboard/parts/menucheck.png"); /* 10x8 */
  /* The menu check mark in the menu ink, as 8.5 draws the menu font's glyph (popup-open). */
  --clio-art-p-check: var(--clio-art-db-menucheck);
  --clio-art-db-grow: url("art/drawingboard/parts/grow.png"); /* 16x16 */
  --clio-art-db-popup-corner: url("art/drawingboard/parts/popup-corner.png"); /* 24x24 */
  --clio-art-db-popup-corner-off: url("art/drawingboard/parts/popup-corner-off.png"); /* 24x24 */
  --clio-art-db-button-corner: url("art/drawingboard/parts/button-corner.png"); /* 24x24 */
  --clio-art-db-btn-tl: url("art/drawingboard/parts/btn-tl.png"); /* 7x3 */
  --clio-art-db-btn-tr: url("art/drawingboard/parts/btn-tr.png"); /* 4x3 */
  --clio-art-db-btn-br: url("art/drawingboard/parts/btn-br.png"); /* 5x6 */
  --clio-art-db-btn-br-held: url("art/drawingboard/parts/btn-br-held.png"); /* 5x6 */
  --clio-art-db-btn-bl: url("art/drawingboard/parts/btn-bl.png"); /* 7x4 */
  --clio-art-db-progress-arrows: url("art/drawingboard/parts/progress-arrows.png"); /* 128x5 */
  --clio-art-db-def-tl: url("art/drawingboard/parts/def-tl.png"); /* 9x5 */
  --clio-art-db-def-tr: url("art/drawingboard/parts/def-tr.png"); /* 4x4 */
  --clio-art-db-def-br: url("art/drawingboard/parts/def-br.png"); /* 5x6 */
  --clio-art-db-def-bl: url("art/drawingboard/parts/def-bl.png"); /* 9x5 */
  --clio-art-db-thumb-left: url("art/drawingboard/parts/thumb-left.png"); /* 7x14 */
  --clio-art-db-thumb-right: url("art/drawingboard/parts/thumb-right.png"); /* 8x14 */
  --clio-art-db-thumb-hgrip: url("art/drawingboard/parts/thumb-hgrip.png"); /* 2x14 */
  --clio-art-db-thumb-hstretch: url("art/drawingboard/parts/thumb-hstretch.png"); /* 1x14 */
  --clio-art-db-thumb-top: url("art/drawingboard/parts/thumb-top.png"); /* 14x7 */
  --clio-art-db-thumb-bottom: url("art/drawingboard/parts/thumb-bottom.png"); /* 14x8 */
  --clio-art-db-thumb-vgrip: url("art/drawingboard/parts/thumb-vgrip.png"); /* 14x2 */
  --clio-art-db-thumb-vstretch: url("art/drawingboard/parts/thumb-vstretch.png"); /* 14x1 */
  --clio-art-db-tab: url("art/drawingboard/parts/tab.png"); /* 24x27 */
  --clio-art-db-tab-selected: url("art/drawingboard/parts/tab-selected.png"); /* 24x27 */
  --clio-art-db-tab-pressed: url("art/drawingboard/parts/tab-pressed.png"); /* 24x27 */
  --clio-art-db-menu-underline-left: url("art/drawingboard/parts/menu-underline-left.png"); /* 29x3 */
  --clio-art-db-menu-underline: url("art/drawingboard/parts/menu-underline.png"); /* 48x3 */
  --clio-art-db-menu-underline-right: url("art/drawingboard/parts/menu-underline-right.png"); /* 36x3 */
  --clio-art-db-title-underline-left: url("art/drawingboard/parts/title-underline-left.png"); /* 15x3 */
  --clio-art-db-title-underline: url("art/drawingboard/parts/title-underline.png"); /* 32x4 */
  --clio-art-db-title-underline-right: url("art/drawingboard/parts/title-underline-right.png"); /* 16x3 */
  --clio-art-db-menu-underline-tiled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='48' height='3' patternUnits='userSpaceOnUse'%3E%3Cimage image-rendering='pixelated' style='image-rendering:pixelated' width='48' height='3' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAADBAMAAAAnwpG3AAAAElBMVEUAAADMZmbMmWbMmZnMZjPMMzOFAtjtAAAAAXRSTlMAQObYZgAAACJJREFUeJxjFGSAAMb/DMYMDAxnwWwBBgbGUKgENmCATRAAmjoCqut/JFgAAAAASUVORK5CYII='/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%' height='100%' fill='url(%23p)'/%3E%3C/svg%3E"); /* 48 px tile */
  --clio-art-db-title-underline-tiled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='32' height='4' patternUnits='userSpaceOnUse'%3E%3Cimage image-rendering='pixelated' style='image-rendering:pixelated' width='32' height='4' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAEBAMAAAAdaSDnAAAAD1BMVEUAAADMZmbMmWbMmZnMZjOW1IuaAAAAAXRSTlMAQObYZgAAACBJREFUeJxjdGGAgP+MDAwM5/4rs0D5DCA+gxGMhw8AALzeA23Id2x2AAAAAElFTkSuQmCC'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%' height='100%' fill='url(%23p)'/%3E%3C/svg%3E"); /* 32 px tile */
}

/* ---- Window ----------------------------------------------------------------
   Drawn as the theme draws it: the nine 'pxm#' frame pieces (6176-6184, active
   and inactive sets), placed where Mac OS 8.5 puts them round a 476x338
   outline (Appearance window, found 1:1 in the capture), with the edge pieces
   tiled from their ends. Under them the window paper (ppat 7120): 128x128,
   origin at the content's top-left, 6px in and 22px down (Date & Time, Finder
   Preferences windows agree). Corners overrun the outline, so they sit on a
   pseudo-element larger than the window; the tiled edges sit on one clipped
   to where each edge runs. Files: art/drawingboard/ (tooling/db-art.py --files). */
[data-era="drawingboard"] .window {
  --db-tl: url("art/drawingboard/window-tl.png");
  --db-top: url("art/drawingboard/window-top.png");
  --db-top-tiled: url("art/drawingboard/window-top-tiled.svg");
  --db-bottom-tiled: url("art/drawingboard/window-bottom-tiled.svg");
  --db-tr: url("art/drawingboard/window-tr.png");
  --db-ur: url("art/drawingboard/window-ur.png");
  --db-right: url("art/drawingboard/window-right.png");
  --db-br: url("art/drawingboard/window-br.png");
  --db-bottom: url("art/drawingboard/window-bottom.png");
  --db-bl: url("art/drawingboard/window-bl.png");
  --db-left: url("art/drawingboard/window-left.png");
  isolation: isolate;
  min-width: 128px;
  min-height: 60px;
}

[data-era="drawingboard"] .window.inactive {
  --db-tl: url("art/drawingboard/window-tl-inactive.png");
  --db-top: url("art/drawingboard/window-top-inactive.png");
  --db-top-tiled: url("art/drawingboard/window-top-inactive-tiled.svg");
  --db-bottom-tiled: url("art/drawingboard/window-bottom-inactive-tiled.svg");
  --db-tr: url("art/drawingboard/window-tr-inactive.png");
  --db-ur: url("art/drawingboard/window-ur-inactive.png");
  --db-right: url("art/drawingboard/window-right-inactive.png");
  --db-br: url("art/drawingboard/window-br-inactive.png");
  --db-bottom: url("art/drawingboard/window-bottom-inactive.png");
  --db-bl: url("art/drawingboard/window-bl-inactive.png");
  --db-left: url("art/drawingboard/window-left-inactive.png");
}

[data-era="drawingboard"] .window,
[data-era="drawingboard"] .window:not(.inactive) {
  background: url("art/drawingboard/paper.png") calc(6px - var(--clio-db-phase, 0px)) 22px / 128px 128px;
}

[data-era="drawingboard"] .window::before,
[data-era="drawingboard"] .window::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* Edges: the box from 1px left of the outline to the shadow's far side. */
[data-era="drawingboard"] .window::before {
  inset: 0 -7px -8px -1px;
  background:
    var(--db-top) 25px 0 / 256px 22px repeat-x,
    var(--db-left) 0 22px / 7px 214px repeat-y,
    var(--db-right) right 0 top 54px / 13px 150px repeat-y,
    var(--db-bottom) left 57px bottom 0 / 183px 14px repeat-x;
  clip-path: polygon(25px 0, calc(100% - 13px) 0, calc(100% - 13px) 54px, 100% 54px,
    100% calc(100% - 54px), calc(100% - 59px) calc(100% - 54px), calc(100% - 59px) 100%,
    57px 100%, 57px calc(100% - 22px), 0 calc(100% - 22px), 0 22px, 25px 22px);
}

/* Corners, overrunning the outline by up to 10px. */
[data-era="drawingboard"] .window::after {
  inset: -10px -11px -18px -8px;
  background:
    var(--db-tl) 4px 5px / 28px 27px no-repeat,
    var(--db-tr) right 1px top 0 / 16px 32px no-repeat,
    var(--db-ur) right 4px top 32px / 13px 32px no-repeat,
    var(--db-br) right 0 bottom 2px / 63px 62px no-repeat,
    var(--db-bl) left 0 bottom 0 / 64px 32px no-repeat;
}

/* Collapsed (Infinite HD's collapse box, Mac OS 8.5 with the theme; frame
   collapsed): the theme draws the frame as for an empty window, the bottom
   corners and the foot's shadow under the title bar, which is drawn last. The
   box is the title bar and the foot's black line. Two layers do it: ::after is
   the title bar's area alone (its paper, the top edge and the top corners);
   ::before is everything outside that area (the corners' overrun, the bottom
   corners and the shadow). The edges tile from SVG patterns, which stop where
   their box does. The bottom right corner lies over the upper right edge here. */
[data-era="drawingboard"] .window.collapsed {
  padding-bottom: 1px;
}

[data-era="drawingboard"] .window.collapsed::after {
  clip-path: inset(10px 11px calc(100% - 32px) 8px);
  background:
    var(--db-tl) 4px 5px / 28px 27px no-repeat,
    var(--db-tr) right 1px top 0 / 16px 32px no-repeat,
    var(--db-top-tiled) 32px 10px / calc(100% - 49px) 22px no-repeat,
    url("art/drawingboard/paper.png") calc(14px - var(--clio-db-phase, 0px)) 32px / 128px 128px;
}

[data-era="drawingboard"] .window.collapsed::before {
  inset: -10px -11px -18px -8px;
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    8px 10px, calc(100% - 11px) 10px, calc(100% - 11px) 32px, 8px 32px, 8px 10px);
  background:
    var(--db-tl) 4px 5px / 28px 27px no-repeat,
    var(--db-tr) right 1px top 0 / 16px 32px no-repeat,
    var(--db-br) right 0 bottom 2px / 63px 62px no-repeat,
    var(--db-ur) right 4px top 32px / 13px 32px no-repeat,
    var(--db-bl) left 0 bottom 0 / 64px 32px no-repeat,
    var(--db-bottom-tiled) left 64px bottom 10px / calc(100% - 126px) 14px no-repeat;
}

/* ---- Utility window (palette) ----------------------------------------------
   The theme's 'layo' 136 (ActiveFloatingWindow), decoded by tooling/theme-layout.py,
   matches the 8.5 Application Switcher's frame 100% (hig/drawingboard/switcher):
   the content 8px in, 19px down, 5px from the right (then a 2px shade) and 8px up.
   Three pictures (tooling/db-art.py): the corner groups; the title bar, the rule
   (6192's bottom row) and the foot between them; the side edges' middles. The boxes
   are 201, 221 and 211, the title centred 3.5px left of the window's middle on the
   capture's baseline. The
   content keeps the utility window's #ccc (the application draws it). */
[data-era="drawingboard"] .window.utility {
  min-width: 128px;
  min-height: 60px;
  padding: 19px 5px 8px 8px;
  border: 0;
  background: #cccccc content-box;
}

[data-era="drawingboard"] .window.utility::before {
  inset: 0 -2px 0 0;
  clip-path: none;
  background:
    url("art/drawingboard/utility-frame.svg"),
    url("art/drawingboard/utility-edges.svg") 0 38px / 100% calc(100% - 79px) no-repeat,
    url("art/drawingboard/utility-runs.svg") 19px 0 / calc(100% - 55px) 100% no-repeat;
}

[data-era="drawingboard"] .window.utility > .title-bar {
  position: absolute;
  inset: 7px 0 auto;
  height: 11px;
  margin: 0;
  padding: 0 11px 0 4px;
  border: 0;
  background: none;
  justify-content: center;
}

[data-era="drawingboard"] .window.utility > .title-bar > :is(.title, h1, h2, h3) {
  background: none;
}

[data-era="drawingboard"] .window.utility > .title-bar > :is(.close, .resize, .zoom, .shade, .collapse) {
  inset: 0 auto auto 7px;
  width: 9px;
  height: 9px;
  background: url("art/drawingboard/utility-boxes.png");
  box-shadow: none;
}

[data-era="drawingboard"] .window.utility > .title-bar > :is(.resize, .zoom) {
  inset: 0 17px auto auto;
  background-position-x: -9px;
}

[data-era="drawingboard"] .window.utility > .title-bar > :is(.shade, .collapse) {
  inset: 0 4px auto auto;
  background-position-x: -18px;
}

[data-era="drawingboard"] .window.utility > .title-bar > :is(:active:where(:not([data-clio-off])), .active) {
  background-position-y: -9px;
}

[data-era="drawingboard"] .window.utility.inactive > .title-bar > * {
  visibility: hidden;
}

[data-era="drawingboard"] .window.utility::after {
  content: none;
}

/* ---- Side-title utility window --------------------------------------------------
   The theme's 'layo' 138 (ActiveSideFloatingWindow), decoded by
   tooling/theme-layout.py, matches the 8.5 capture's frame 100% (rc8/side3, the
   Appearance SDK's sample): the column is the small system font's height plus 5
   (14px of the 18px pieces), the content 18px in and 9px down. Three pictures
   (tooling/db-art.py): the four corner groups; the runs along the top and the foot
   between them; the column's and the right edge's middles. In the background
   ('layo' 139) the same pictures and no boxes. The content keeps the utility
   window's #ccc (the application draws it). */
[data-era="drawingboard"] .window.utility.side {
  padding: 9px 5px 8px 18px;
}

[data-era="drawingboard"] .window.utility.side::before {
  background:
    url("art/drawingboard/side-frame.svg"),
    url("art/drawingboard/side-edges.svg") 0 29px / 100% calc(100% - 70px) no-repeat,
    url("art/drawingboard/side-runs.svg") 30px 0 / calc(100% - 66px) 100% no-repeat;
}

[data-era="drawingboard"] .window.utility.side > .title-bar {
  inset: 0 auto 0 0;
  width: 18px;
  height: auto;
}

/* The boxes (201, and 211 upright), 6px in, 8px down and 7px up; pressed below. */
[data-era="drawingboard"] .window.utility.side > .title-bar > * {
  inset: 8px auto auto 6px;
  background: url("art/drawingboard/side-boxes.png");
}

[data-era="drawingboard"] .window.utility.side > .title-bar > :is(.shade, .collapse) {
  inset: auto auto 7px 6px;
  background-position-x: -9px;
}

[data-era="drawingboard"] .window.utility.side > .title-bar > :is(:active:where(:not([data-clio-off])), .active) {
  background-position-y: -9px;
}

/* ---- Menus -----------------------------------------------------------------
   The shade: 2px of pencil (ppat 130, 131) down the right from 3px below the
   menu's top and along the foot from 4px in. A menu that is not a drop-down
   becomes the shade's containing block. --clio-db-phase shifts the pens
   along the menu (Mac OS drew the Finder's File menu 64px further along). */
[data-era="drawingboard"] :is(.menu, ul[role="menu"]):not(li > *) {
  position: relative;
}

/* Paper (ppat 7125) from the inside top-left, and a frame drawn with pattern
   pens (ppat 129-132), each tiled from the menu's own corner: the left pen
   and the top from the top-left, the right pen from 4px lower, the foot from
   4px in. Rules, not tokens: the pens read this menu's own top line and phase. */
[data-era="drawingboard"] :is(.menu, ul[role="menu"]) {
  background:
    url("art/drawingboard/menu-top.png") 0 calc(var(--clio-menu-border-top-width) - 1px) / 128px 1px repeat-x border-box,
    url("art/drawingboard/menu-left.png") 0 calc(var(--clio-menu-border-top-width) - 1px) / 1px 128px repeat-y border-box,
    url("art/drawingboard/menu-right.png") right 0 top calc(var(--clio-menu-border-top-width) + 3px) / 1px 128px repeat-y border-box,
    url("art/drawingboard/menu-foot.png") calc(4px - var(--clio-db-phase, 0px)) 100% / 128px 1px repeat-x border-box,
    url("art/drawingboard/menu-paper.png") 0 0 / 64px 64px padding-box,
    #dddddd;
}

[data-era="drawingboard"] :is(.menu, [role="menu"]) > :is(li.separator, li[role="separator"], hr) {
  background: url("art/drawingboard/menu-separator.png") calc(0px - var(--clio-db-phase, 0px)) 4px / 128px 1px repeat-x;
}

/* A menu bar's menu hangs from the bar's last row, which is its top line. */
[data-era="drawingboard"] :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(.menu, ul[role="menu"]) {
  --clio-menu-border-top-width: 0px;
}

[data-era="drawingboard"] :is(.menu, ul[role="menu"])::before {
  content: "";
  position: absolute;
  top: 3px;      /* from the padding box: 4px below the top line */
  right: -3px;
  bottom: -3px;
  left: 3px;
  background:
    url("art/drawingboard/menu-shade-right.png") right 0 top 0 / 2px 128px repeat-y,
    url("art/drawingboard/menu-shade-foot.png") calc(0px - var(--clio-db-phase, 0px)) 100% / 128px 2px repeat-x;
  pointer-events: none;
}

/* The fixed pencil pixels where the pens meet (File and Edit menus agree). */
[data-era="drawingboard"] :is(.menu, ul[role="menu"])::after {
  content: "";
  position: absolute;
  top: 1px;      /* from the padding box: 2px below the top line */
  right: -3px;
  bottom: -3px;
  left: -1px;
  background:
    url("art/drawingboard/menu-corner-tr.png") right 0 top 0 / 3px 2px no-repeat,
    url("art/drawingboard/menu-corner-br.png") right 0 bottom 0 / 3px 3px no-repeat,
    url("art/drawingboard/menu-corner-bl.png") left 0 bottom 0 / 4px 3px no-repeat;
  pointer-events: none;
}

[data-era="drawingboard"] .window-pane {
  border: 0;
  background: transparent;
}

[data-era="drawingboard"] .window > .details-bar {
  border-left: 0;
  border-right: 0;
}

[data-era="drawingboard"] .title-bar,
[data-era="drawingboard"] .window.inactive > .title-bar,
[data-era="drawingboard"] .inactive-title-bar {
  background: transparent;
}

[data-era="drawingboard"] .title-bar > :is(.title, h1, h2, h3) {
  padding: var(--clio-title-padding);
  background: transparent;
  transform: none;
}

[data-era="drawingboard"] .title-bar > :is(.title, h1, h2, h3)::after {
  content: none;
}

/* Close, zoom and collapse boxes are the theme's 11px pictures. */
[data-era="drawingboard"] .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
  border: 0;
  background: var(--clio-art-db-close) 0 0 / 11px 11px no-repeat;
  box-shadow: none;
}

[data-era="drawingboard"] .title-bar > :is(.resize, .resize-box, .zoom) {
  background-image: var(--clio-art-db-zoom);
}

[data-era="drawingboard"] .title-bar > :is(.shade, .shade-box, .collapse) {
  background-image: var(--clio-art-db-collapse);
}

[data-era="drawingboard"] .title-bar > :is(button, .close, .close-box):is(:active:where(:not([data-clio-off])), .active) {
  background: var(--clio-art-db-close-on) 0 0 / 11px 11px no-repeat;
  box-shadow: none;
}

[data-era="drawingboard"] .title-bar > :is(.resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active) {
  background: var(--clio-art-db-zoom-on) 0 0 / 11px 11px no-repeat;
}

[data-era="drawingboard"] .title-bar > :is(.shade, .shade-box, .collapse):is(:active:where(:not([data-clio-off])), .active) {
  background: var(--clio-art-db-collapse-on) 0 0 / 11px 11px no-repeat;
}

[data-era="drawingboard"] .title-bar > :is(.resize, .resize-box, .zoom, .shade, .shade-box, .collapse)::before {
  content: none;
}

/* Background window: its own frame set, grey title, boxes erased (base rule). */
[data-era="drawingboard"] .window.inactive {
  color: #555555;
}

[data-era="drawingboard"] .window.inactive > .title-bar > :is(.title, h1, h2, h3),
[data-era="drawingboard"] .inactive-title-bar > :is(.title, h1, h2, h3) {
  background: transparent;
}

/* List boxes: the 1px between the olive line and the white is see-through. */
[data-era="drawingboard"] :is(.listbox, ul[role="listbox"], ol[role="listbox"], div[role="listbox"], select[multiple], select[size]:not([size="1"])) {
  padding: 1px;
  background-clip: content-box;
}

/* ---- Text fields ---------------------------------------------------------------
   Pens (ppat 7003-7006): the rows tiled from the white's left edge, the left
   column from its top, the right column from 1px higher (both of Date & Time's
   fields agree), and the corner pixels they leave (tooling/db-pens.py). A rule,
   not a token: the rows read the field's own --clio-db-phase. */
[data-era="drawingboard"] :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="tel"], textarea) {
  border-image: url("art/drawingboard/pens/field-corners.png") 5 / 5px stretch;
  background:
    url("art/drawingboard/pens/field-left.png") left 0 top 2px / 1px 32px repeat-y border-box,
    url("art/drawingboard/pens/field-right.png") right 0 top 1px / 1px 32px repeat-y border-box,
    url("art/drawingboard/pens/field-top.png") calc(2px - var(--clio-db-phase, 0px)) 0 / 128px 1px repeat-x border-box,
    url("art/drawingboard/pens/field-bottom.png") calc(2px - var(--clio-db-phase, 0px)) 100% / 128px 1px repeat-x border-box,
    #ffffff padding-box;
}

/* ---- Dialogs -----------------------------------------------------------------
   Alerts and modal dialogs are framed like windows: eight pictures round the
   1px outline (Alert 6127-6134, found 1:1 round Energy Saver's start-up
   notice; Modal 6135-6142, the same sizes, placed the same way, inferred),
   edges tiled from their ends, on the window paper from 4px inside the
   outline. Insets are from the padding box, inside the 1px border. */
[data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal) {
  --db-tl: url("art/drawingboard/modal-tl.png");
  --db-top: url("art/drawingboard/modal-top.png");
  --db-tr: url("art/drawingboard/modal-tr.png");
  --db-right: url("art/drawingboard/modal-right.png");
  --db-right-h: 150px;
  --db-br: url("art/drawingboard/modal-br.png");
  --db-bottom: url("art/drawingboard/modal-bottom.png");
  --db-bl: url("art/drawingboard/modal-bl.png");
  --db-left: url("art/drawingboard/modal-left.png");
  --db-left-h: 214px;
  position: relative;
  isolation: isolate;
  background: url("art/drawingboard/paper.png") calc(4px - var(--clio-db-phase, 0px)) 4px / 128px 128px border-box;
}

[data-era="drawingboard"] :is(.alert-box, dialog.alert-box) {
  --db-tl: url("art/drawingboard/alert-tl.png");
  --db-top: url("art/drawingboard/alert-top.png");
  --db-tr: url("art/drawingboard/alert-tr.png");
  --db-right: url("art/drawingboard/alert-right.png");
  --db-right-h: 43px;
  --db-br: url("art/drawingboard/alert-br.png");
  --db-bottom: url("art/drawingboard/alert-bottom.png");
  --db-bl: url("art/drawingboard/alert-bl.png");
  --db-left: url("art/drawingboard/alert-left.png");
  --db-left-h: 106px;
}

[data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::before,
[data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* Edges: from 1px left of the outline to the shade's far side. */
[data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::before {
  inset: -1px -8px -9px -2px;
  background:
    var(--db-top) 20px 0 / 256px 1px repeat-x,
    var(--db-left) 0 22px / 2px var(--db-left-h) repeat-y,
    var(--db-right) right 0 top 54px / 8px var(--db-right-h) repeat-y,
    var(--db-bottom) left 57px bottom 0 / 183px 9px repeat-x;
  clip-path: polygon(20px 0, calc(100% - 8px) 0, calc(100% - 8px) 54px, 100% 54px,
    100% calc(100% - 54px), calc(100% - 59px) calc(100% - 54px), calc(100% - 59px) 100%,
    57px 100%, 57px calc(100% - 22px), 0 calc(100% - 22px), 0 22px, 20px 22px);
}

/* Corners, overrunning the outline by up to 18px. */
[data-era="drawingboard"] :is(.alert-box, .modal-dialog, dialog.modal)::after {
  inset: -11px -12px -19px -9px;
  background:
    var(--db-tl) 5px 5px / 22px 27px no-repeat,
    var(--db-tr) right 1px top 0 / 11px 64px no-repeat,
    var(--db-br) right 0 bottom 2px / 63px 62px no-repeat,
    var(--db-bl) left 0 bottom 0 / 64px 32px no-repeat;
}

/* ---- Default button: a second pencil line round the button and its shade,
   with a light #9f9a94 pencil line between (Energy Saver notice,
   "Close Message": ring 2px out on the left and top, 3px right, 2px below). -- */
[data-era="drawingboard"] :is(.default, .btn-default)::before {
  inset: -3px -4px -3px -3px;
  border: 1px solid;
  border-color: #555555 #111111 #333333 #555555;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #9f9a94;
}

/* Disabled push button: not captured; the plain button's frame and face with
   the theme's grey label (inferred). */
[data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(:disabled, .disabled) {
  background: var(--clio-button-bg);
  color: #9f9a94;
  -webkit-text-fill-color: #9f9a94;
}

/* ---- Check boxes and radio buttons: one picture per state. ---------------- */
[data-era="drawingboard"] input[type="checkbox"] {
  width: 14px;
  height: 11px;
  border: 0;
  background: var(--clio-art-db-check) 0 0 / 14px 11px no-repeat;
  box-shadow: none;
  vertical-align: -1px;
}

[data-era="drawingboard"] input[type="checkbox"]:checked {
  background-image: var(--clio-art-db-check-on);
}

[data-era="drawingboard"] input[type="checkbox"]:checked::after {
  content: none;
}

[data-era="drawingboard"] input[type="checkbox"]:indeterminate {
  background-image: var(--clio-art-db-check-mixed);
}

[data-era="drawingboard"] input[type="checkbox"]:not(:disabled):active:where(:not([data-clio-off])) {
  background: var(--clio-art-db-check-pressed) 0 0 / 14px 11px no-repeat;
  box-shadow: none;
}

[data-era="drawingboard"] input[type="checkbox"]:checked:not(:disabled):active:where(:not([data-clio-off])) {
  background-image: var(--clio-art-db-check-on-pressed);
}

[data-era="drawingboard"] input[type="checkbox"]:disabled {
  background-image: var(--clio-art-db-check-disabled);
}

[data-era="drawingboard"] input[type="checkbox"]:checked:disabled {
  background-image: var(--clio-art-db-check-on-disabled);
}

[data-era="drawingboard"] input[type="radio"],
[data-era="drawingboard"] input[type="radio"]:not(:disabled):active:where(:not([data-clio-off])) {
  width: 16px;
  height: 12px;
  border: 0;
  border-radius: 0;
  background: var(--clio-art-db-radio) 0 0 / 16px 12px no-repeat;
  box-shadow: none;
}

[data-era="drawingboard"] input[type="radio"]:checked {
  background: var(--clio-art-db-radio-on) 0 0 / 16px 12px no-repeat;
}

[data-era="drawingboard"] input[type="radio"]:checked:not(:disabled):active:where(:not([data-clio-off])) {
  background: var(--clio-art-db-radio-on-pressed) 0 0 / 16px 12px no-repeat;
}

[data-era="drawingboard"] input[type="radio"]:disabled {
  background-image: var(--clio-art-db-radio-disabled);
}

[data-era="drawingboard"] input[type="radio"]:checked:disabled {
  background-image: var(--clio-art-db-radio-on-disabled);
}

[data-era="drawingboard"] :is(input[type="checkbox"], input[type="radio"]):disabled {
  opacity: 1;
}

/* ---- Menus ------------------------------------------------------------------ */
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after,
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::after {
  background-image: var(--clio-art-db-submenu);
}

[data-era="drawingboard"] :is(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active):where(:not([data-clio-blink]))::before,
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active):where(:not([data-clio-blink]))::before {
  filter: none;
}

[data-era="drawingboard"] :is(.menu, [role="menu"]) > li.divider {
  box-shadow: inset 0 -4px 0 #dddddd, inset 0 -5px 0 #888888;
}

/* ---- Tabs: left end, one stretched column, right end. ---------------------- */
[data-era="drawingboard"] :is([role="tablist"], .tabs) {
  padding: 0 8px;
}

[data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
  height: 27px;
  margin: 0 -6px -1px 0;
  padding: 6px 0 0;
  border-width: 0 17px 0 6px;
  border-image: var(--clio-art-db-tab) 0 17 0 6 fill / 0 17px 0 6px stretch;
  color: #313131;
  line-height: 20px;
}

[data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):not(:disabled):active:where(:not([data-clio-off])) {
  border-image-source: var(--clio-art-db-tab-pressed);
  color: #313131;
}

[data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
  padding-top: 6px;
  border-image-source: var(--clio-art-db-tab-selected);
  color: #313131;
}

/* The panel's top line runs under the back tabs and breaks under the front
   one (capture: row 121, #555 to #777 under Themes, none under Appearance). */
[data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button) {
  position: relative;
  margin-bottom: 0;
}

[data-era="drawingboard"] :is([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active)::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -12px;
  bottom: -1px;
  height: 1px;
  background: #e7ded6;
}

[data-era="drawingboard"] :is([role="tabpanel"], .tab-panel) {
  border-top: 1px solid #666666;
  box-shadow: none;
}

/* ---- Scroll bars ----------------------------------------------------------- */
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-track {
  border: 0;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-track {
  border: 0;
}

/* The scroll box is the theme's 15px picture at its shortest (7px end + 8px end). */
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-thumb {
  min-width: 15px;
  min-height: 15px;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-thumb {
  min-width: 15px;
  min-height: 15px;
}

/* Tracks: #ece6e4 ruled by pattern pens (ppat 7045-7049) tiled from the
   track's start: the edges and a double centre line. Rules, not tokens: the
   pens read the scroller's own --clio-db-phase. */
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-track {
  background:
    url("art/drawingboard/track-v-left.png") 0 0 / 1px 128px repeat-y,
    url("art/drawingboard/track-v-mid1.png") 7px 0 / 1px 256px repeat-y,
    url("art/drawingboard/track-v-mid2.png") 8px 0 / 1px 256px repeat-y,
    url("art/drawingboard/track-v-right.png") 15px 0 / 1px 128px repeat-y,
    #ece6e4;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-track {
  background:
    url("art/drawingboard/track-v-left.png") 0 0 / 1px 128px repeat-y,
    url("art/drawingboard/track-v-mid1.png") 7px 0 / 1px 256px repeat-y,
    url("art/drawingboard/track-v-mid2.png") 8px 0 / 1px 256px repeat-y,
    url("art/drawingboard/track-v-right.png") 15px 0 / 1px 128px repeat-y,
    #ece6e4;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:horizontal,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-track:horizontal {
  background:
    url("art/drawingboard/track-h-top.png") calc(0px - var(--clio-db-phase, 0px)) 0 / 128px 1px repeat-x,
    url("art/drawingboard/track-h-mid1.png") calc(0px - var(--clio-db-phase, 0px)) 7px / 256px 1px repeat-x,
    url("art/drawingboard/track-h-mid2.png") calc(0px - var(--clio-db-phase, 0px)) 8px / 256px 1px repeat-x,
    url("art/drawingboard/track-h-bottom.png") calc(0px - var(--clio-db-phase, 0px)) 15px / 128px 1px repeat-x,
    #ece6e4;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-track {
  background:
    url("art/drawingboard/track-h-top.png") calc(0px - var(--clio-db-phase, 0px)) 0 / 128px 1px repeat-x,
    url("art/drawingboard/track-h-mid1.png") calc(0px - var(--clio-db-phase, 0px)) 7px / 256px 1px repeat-x,
    url("art/drawingboard/track-h-mid2.png") calc(0px - var(--clio-db-phase, 0px)) 8px / 256px 1px repeat-x,
    url("art/drawingboard/track-h-bottom.png") calc(0px - var(--clio-db-phase, 0px)) 15px / 128px 1px repeat-x,
    #ece6e4;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-button,
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:active,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-button:active,
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal,
[data-era="drawingboard"]:is(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal {
  /* :horizontal outweighs the Platinum rule that moves that art a pixel down. */
  border: 0;
  background-color: transparent;
  background-position: 0 0;
  background-size: 16px 16px;
  box-shadow: none;
}

[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button,
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb > .clio-sb-button.clio-held,
[data-era="drawingboard"] :is(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *) > .clio-sb-anchor > .clio-sb.clio-sb-h > .clio-sb-button {
  /* :horizontal outweighs the Platinum rule that moves that art a pixel down. */
  border: 0;
  background-color: transparent;
  background-position: 0 0;
  background-size: 16px 16px;
  box-shadow: none;
}

/* Disabled pop-up menu: the pens' lighter rows, the theme's dimmed hatch and
   arrow (Appearance, "Variation"). */
/* The arrow and hatch stay inside the frame; the pens draw on it. */
[data-era="drawingboard"] select,
[data-era="drawingboard"] select:disabled {
  background-clip: padding-box, padding-box, border-box, border-box, border-box, border-box, padding-box;
}

[data-era="drawingboard"] select:disabled {
  border-image: url("art/drawingboard/pens/popup-disabled-corners.png") 5 / 5px stretch;
  border-color: transparent;
  background:
    var(--clio-art-db-popup-arrow-off) right 5px top 4px / 7px 9px no-repeat padding-box,
    var(--clio-art-db-popup-corner-off) right 19px bottom / 24px 24px no-repeat padding-box,
    url("art/drawingboard/pens/popup-disabled-left.png") left 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/popup-disabled-right.png") right 0 bottom 1px / 1px 16px repeat-y border-box,
    url("art/drawingboard/pens/popup-disabled-top.png") right 1px top 0 / 64px 1px repeat-x border-box,
    url("art/drawingboard/pens/popup-disabled-bottom.png") right 1px bottom 0 / 64px 1px repeat-x border-box,
    #cec6b5;
  color: #8c8c8c;
}


/* The 1px pencil shade right of and below a push button (ppat 7079, 7070 next
   rows; held: 7127, 7126, tiled from the second column and row). A default
   button instead wears a 3px pencil band (ppat 7085 rows, 7086 columns) whose
   inner line is the box's edge, 2px outside it. Insets are from the padding box. */
[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button)::before {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  bottom: -2px;
  left: 4px;
  border: 0;
  border-image: none;
  box-shadow: none;
  background:
    url("art/drawingboard/pens/button-shade-right.png") right 0 bottom 2px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-shade-bottom.png") right 2px bottom 0 / 64px 1px repeat-x;
  pointer-events: none;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button, :disabled, .disabled):is(:active:where(:not([data-clio-off])), .active)::before {
  left: 0;
  background:
    url("art/drawingboard/pens/button-held-shade-right.png") right 0 top 0 / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-held-shade-bottom.png") left 0 bottom 0 / 32px 1px repeat-x;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(.default, .btn-default)::before {
  inset: -3px;
  background:
    url("art/drawingboard/pens/button-default-left-3.png") left 0 bottom 3px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-default-left-2.png") left 1px bottom 3px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-default-left.png") left 2px bottom 3px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-default-right.png") right 2px bottom 3px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-default-right-2.png") right 1px bottom 3px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-default-right-3.png") right 0 bottom 3px / 1px 16px repeat-y,
    url("art/drawingboard/pens/button-default-top-3.png") right 3px top 0 / 64px 1px repeat-x,
    url("art/drawingboard/pens/button-default-top-2.png") right 3px top 1px / 64px 1px repeat-x,
    url("art/drawingboard/pens/button-default-top.png") right 3px top 2px / 64px 1px repeat-x,
    url("art/drawingboard/pens/button-default-bottom.png") right 3px bottom 2px / 64px 1px repeat-x,
    url("art/drawingboard/pens/button-default-bottom-2.png") right 3px bottom 1px / 64px 1px repeat-x,
    url("art/drawingboard/pens/button-default-bottom-3.png") right 3px bottom 0 / 64px 1px repeat-x;
}

/* The pencil overruns at a push button's corners, outside its box: Button*
   pieces round a plain button, *Default pieces round the default one. */
[data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button) {
  position: relative;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button)::after {
  content: "";
  position: absolute;
  inset: -6px;   /* from the padding box: 5px outside the frame */
  background:
    var(--clio-art-db-btn-tl) left 3px top 3px / 7px 3px no-repeat,
    var(--clio-art-db-btn-tr) right 2px top 3px / 4px 3px no-repeat,
    var(--clio-art-db-btn-br) right 1px bottom 0 / 5px 6px no-repeat,
    var(--clio-art-db-btn-bl) left 3px bottom 2px / 7px 4px no-repeat;
  pointer-events: none;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button, :disabled, .disabled):is(:active:where(:not([data-clio-off])), .active)::after {
  background:
    var(--clio-art-db-btn-tl) left 3px top 3px / 7px 3px no-repeat,
    var(--clio-art-db-btn-tr) right 2px top 3px / 4px 3px no-repeat,
    var(--clio-art-db-btn-br-held) right 1px bottom 0 / 5px 6px no-repeat,
    var(--clio-art-db-btn-bl) left 3px bottom 2px / 7px 4px no-repeat;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(.default, .btn-default) {
  border-image-source: none;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(.default, .btn-default)::after {
  background:
    url("art/drawingboard/pens/button-default-corner-tl.png") left 5px top 5px / 5px 5px no-repeat,
    url("art/drawingboard/pens/button-default-corner-tr.png") right 5px top 5px / 5px 5px no-repeat,
    url("art/drawingboard/pens/button-default-corner-bl.png") left 5px bottom 5px / 5px 5px no-repeat,
    url("art/drawingboard/pens/button-default-corner-br.png") right 5px bottom 5px / 5px 5px no-repeat,
    var(--clio-art-db-def-tl) left 1px top 1px / 9px 5px no-repeat,
    var(--clio-art-db-def-tr) right 1px top 2px / 4px 4px no-repeat,
    var(--clio-art-db-def-br) right 0 bottom 0 / 5px 6px no-repeat,
    var(--clio-art-db-def-bl) left 1px bottom 1px / 9px 5px no-repeat;
}

[data-era="drawingboard"] progress {
  border-left-color: #333333;
}

[data-era="drawingboard"] progress:indeterminate,
[data-era="drawingboard"] progress:indeterminate::-webkit-progress-bar {
  background: var(--clio-art-db-progress-arrows) 0 center / 128px 5px repeat-x, #ddd6c5;
}

[data-era="drawingboard"] fieldset {
  background: transparent;
}

[data-era="drawingboard"] fieldset > legend {
  margin-left: 0;
}

/* ---- Antialiasing as Mac OS blends it: #333 labels on #cec6b5 (their solid
   pixels #313131, from a 16-bit buffer); grey when disabled. */
[data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button),
[data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):not(:disabled, .disabled):is(:active:where(:not([data-clio-off])), .active) {
  font-palette: --clio-aa-db-button;
}

[data-era="drawingboard"] :is(button, .btn, .btn-default, input[type="button"], input[type="submit"], input[type="reset"]):not(.icon, [role="tab"], [role="menuitem"], .title-bar > *, .rounded-title > *, .control-strip *, .disclosure, .little-arrows > *, .help-button):is(:disabled, .disabled) {
  font-palette: --clio-aa-db-button-disabled;
}

/* ---- List view headers (Finder list view, Mac OS 8.5): a #9f9a94 pencil line
   above and below; plain headers #cdc6bd with a #555 line at the foot, the
   sorted one #9f9a94 with the #555 line at the top and #333 on its left; #888
   between columns. Colours are each line's dominant one: the theme draws
   these lines with pattern pens, not reproduced here. */
[data-era="drawingboard"] .list-view th {
  background:
    linear-gradient(#9f9a94, #9f9a94) 0 0 / 100% 1px no-repeat,
    linear-gradient(#9f9a94, #9f9a94) 0 100% / 100% 1px no-repeat,
    linear-gradient(#555555, #555555) 0 calc(100% - 1px) / 100% 1px no-repeat,
    linear-gradient(#888888, #888888) 0 1px / 1px calc(100% - 2px) no-repeat,
    #cdc6bd;
}

[data-era="drawingboard"] .list-view th[aria-sort]:not([aria-sort="none"]) {
  background:
    linear-gradient(#9f9a94, #9f9a94) 0 0 / 100% 1px no-repeat,
    linear-gradient(#555555, #555555) 0 1px / 100% 1px no-repeat,
    linear-gradient(#333333, #333333) 0 1px / 1px calc(100% - 2px) no-repeat,
    #9f9a94;
}

[data-era="drawingboard"] .list-view th.sort-direction {
  background:
    linear-gradient(#555555, #555555) 100% 1px / 1px calc(100% - 2px) no-repeat,
    linear-gradient(#9f9a94, #9f9a94) 0 0 / 100% 1px no-repeat,
    linear-gradient(#9f9a94, #9f9a94) 0 100% / 100% 1px no-repeat,
    linear-gradient(#555555, #555555) 0 calc(100% - 1px) / 100% 1px no-repeat,
    linear-gradient(#888888, #888888) 0 1px / 1px calc(100% - 2px) no-repeat,
    #cdc6bd;
}

[data-era="drawingboard"] .list-view {
  --clio-list-view-bg: #e7ded6;
  --clio-list-view-sorted-bg: #d6c6b5;
}

[data-era="drawingboard"] input[type="range"]::-webkit-slider-runnable-track {
  border: 0;
  border-image: none;
  background: url("art/drawingboard/slider-track.png") calc(0px - var(--clio-db-phase, 0px)) 0 / 64px 1px repeat-x;
}

[data-era="drawingboard"] input[type="range"]::-moz-range-track {
  border: 0;
  border-image: none;
  background: url("art/drawingboard/slider-track.png") calc(0px - var(--clio-db-phase, 0px)) 0 / 64px 1px repeat-x;
}

/* Bevel buttons: drawn as the theme's push button (its pens, corner pixels,
   hatch and shade); the Navigation Services bevel buttons were not matched
   pen for pen (inferred). */
/* The Help button's held state: the theme's pressed bevel with the same art
   shifted one pixel down-right (inferred — the 8.5 capture is of the normal
   state; the theme's press drops the button's content by one pixel). */
[data-era="drawingboard"] .help-button:is(:active:where(:not([data-clio-off])), .active) {
  background: var(--clio-art-help-button) 1px 1px / 21px 20px no-repeat, var(--clio-button-active-bg);
}

[data-era="drawingboard"] .bevel {
  border-width: 1px;
  border-image: url("art/drawingboard/pens/button-corners.png") 5 / 5px stretch;
  background: var(--clio-button-bg);
}

[data-era="drawingboard"] .bevel:is(:active:where(:not([data-clio-off])), .active, [aria-pressed="true"]):not(:disabled) {
  border-image-source: url("art/drawingboard/pens/button-held-corners.png");
  background: var(--clio-button-active-bg);
}

/* Drawing Board's chosen items stay #313131 (underlined, not inverted) and its
   dimmed text is #8c8c8c. Browsers with COLRv1 draw the edge levels in the text
   colour; Safari's COLRv0 file draws them from these palettes. */
[data-era="drawingboard"] :is(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span),
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li,
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li > :is(a, button) {
  font-palette: --clio-aa-313131 !important;   /* outranks the shared chosen-item rule */
}

[data-era="drawingboard"] :is(.menu, [role="menu"]) > li:is(.disabled, [aria-disabled="true"]),
[data-era="drawingboard"] :is(.menu, [role="menu"]) > li > :is(a, button):is(:disabled, [aria-disabled="true"]) {
  font-palette: --clio-aa-8c8c8c !important;
}

/* ---- Smart Scrolling (clio.js bars, data-clio-scrolling="smart") ----------
   Both arrows at the far end are one picture of the theme's (ScrollArrowsDbl,
   pxm# 334 and 324), each button showing its half (Mac OS 8.5 with the theme,
   Appearance > Options > Smart Scrolling, frame smart-scroll). Held, the
   picture's held state for that arrow; nothing to scroll, the dimmed one. */
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-h.clio-sb-smart > .clio-sb-button {
  border: 0;
  background: url("art/drawingboard/parts/hpair.png") 0 0 / 32px 16px no-repeat;
  box-shadow: none;
}
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-h.clio-sb-smart > .clio-sb-button.clio-sb-inc { background-position: -16px 0; }
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-h.clio-sb-smart > .clio-sb-dec.clio-held { background-image: url("art/drawingboard/parts/hpair-dec-on.png"); }
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-h.clio-sb-smart > .clio-sb-inc.clio-held { background-image: url("art/drawingboard/parts/hpair-inc-on.png"); }
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-h.clio-sb-smart.clio-sb-off > .clio-sb-button { background-image: url("art/drawingboard/parts/hpair-off.png"); }

[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-v.clio-sb-smart > .clio-sb-button {
  border: 0;
  background: url("art/drawingboard/parts/vpair.png") 0 0 / 16px 32px no-repeat;
  box-shadow: none;
}
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-v.clio-sb-smart > .clio-sb-button.clio-sb-inc { background-position: 0 -16px; }
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-v.clio-sb-smart > .clio-sb-dec.clio-held { background-image: url("art/drawingboard/parts/vpair-dec-on.png"); }
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-v.clio-sb-smart > .clio-sb-inc.clio-held { background-image: url("art/drawingboard/parts/vpair-inc-on.png"); }
[data-era="drawingboard"] .clio-sb-host > .clio-sb-anchor > .clio-sb.clio-sb-v.clio-sb-smart.clio-sb-off > .clio-sb-button { background-image: url("art/drawingboard/parts/vpair-off.png"); }

/* The open pop-up menu (Appearance > Appearance held; frame popup-open): its top
   on the button's with the current item there, as wide as the button less its
   20px of arrows. */
[data-era="drawingboard"] select {
  --clio-popup-menu-trim: 20px;
  --clio-popup-menu-align: top;
}

/* In the open pop-up the top line is the pen shifted with the button's phase (a
   full line: the menu hangs from no bar), the text a pixel higher and 18px in,
   the check mark 1px in, and the chosen item's underline on its last rows. */
[data-era="drawingboard"] ul.clio-popup-menu.menu {   /* outweighs the menus' :is(.menu, ul[role="menu"]) */
  --clio-menu-item-active-bg:
    var(--clio-art-db-menu-underline-left) left 16px bottom 0 / 29px 3px no-repeat,
    var(--clio-art-db-menu-underline-right) right 16px bottom 0 / 36px 3px no-repeat,   /* 16px: popup-open, the right piece ends 16px in */
    var(--clio-art-db-menu-underline-tiled) left 45px bottom 0 / calc(100% - 97px) 3px no-repeat;
  background:
    url("art/drawingboard/menu-top.png") calc(0px - var(--clio-db-phase, 0px)) 0 / 128px 1px repeat-x border-box,
    url("art/drawingboard/menu-left.png") 0 0 / 1px 128px repeat-y border-box,
    url("art/drawingboard/menu-right.png") right 0 top 4px / 1px 128px repeat-y border-box,
    url("art/drawingboard/menu-foot.png") calc(4px - var(--clio-db-phase, 0px)) 100% / 128px 1px repeat-x border-box,
    url("art/drawingboard/menu-paper.png") 0 0 / 64px 64px padding-box,
    #dddddd;
}

[data-era="drawingboard"] .clio-popup-menu > li {
  min-height: 16px;
  padding-left: 18px;
  padding-bottom: 2px;
  line-height: 16px;
}

[data-era="drawingboard"] .clio-popup-menu > li:is(.checked, [aria-checked="true"])::before {
  left: 1px;
  margin-top: -5px;
}

/* With clio.js there (data-clio-popups), Drawing Board's pop-ups are not the
   browser's picker: clio.js draws the menu with the theme's paper, pens and
   shade, which a picker cannot carry. Without clio.js, base-select still does. */
@supports (appearance: base-select) {
  @media (pointer: fine) {
    :root[data-clio-popups] [data-era="drawingboard"] select:not([multiple], [size]:not([size="1"])),
    :root[data-clio-popups][data-era="drawingboard"] select:not([multiple], [size]:not([size="1"])) {
      appearance: none;
    }
  }
}

/* The dragged outline: the plain band round the frame and shadow (inside the
   margin), with each corner's patch XORed in. */
[data-era="drawingboard"] .clio-outline {
  mask:
    var(--clio-db-outline-tl) left 0 top 0 / 80px 80px no-repeat border-box exclude,
    var(--clio-db-outline-tr) right 0 top 0 / 80px 80px no-repeat border-box exclude,
    var(--clio-db-outline-bl) left 0 bottom 0 / 80px 80px no-repeat border-box exclude,
    var(--clio-db-outline-br) right 0 bottom 0 / 80px 80px no-repeat border-box exclude,
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0) 12px 12px / calc(100% - 24px) calc(100% - 24px) no-repeat border-box;
}

/* ---- Placard (Mac OS 8.5, the Appearance SDK's CDEF Tester, frames placard and
   placard-disabled): a #cebdb5 face in a pencil line whose shade drifts from #333 to
   #888 (drawn flat in its commonest shade, #555); disabled, a #cdc6bd face with a
   faint line along the top only. */
[data-era="drawingboard"] .placard {
  border-color: #555555;
  background: #cebdb5;
}

[data-era="drawingboard"] .placard:is(:disabled, [aria-disabled="true"], .window.inactive *) {
  border-color: #b6ada5 #cdc6bd #cdc6bd;
  background: #cdc6bd;
  color: #9f9a94;
}

/* Adaptations the historical machines never needed. Historical sizes are
   calibration, not a cage: on a touch screen the controls grow to the
   "coarse pointer" sizes from AI System 6's fidelity contract, without any
   transform: scale() of the interface. */
@media (pointer: coarse) {
  :root,
  [data-era] {
    --clio-control-height: 36px;
    --clio-popup-height: 36px;
    --clio-field-height: 40px;
    --clio-menubar-height: 32px;
    --clio-menu-item-height: 32px;
    --clio-list-row: 32px;
    --clio-tab-height: 32px;
  }

  /* The title-bar boxes keep their 11px art; their hit area grows to 44px. */
  .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse)::after {
    content: "";
    position: absolute;
    inset: -17px;
  }
}

/* Windows High Contrast and other forced-colour modes: give the choice
   controls back to the system so their state stays visible. */
@media (forced-colors: active) {
  :where(input[type="checkbox"], input[type="radio"]) {
    appearance: auto;
    -webkit-appearance: auto;
  }

  .title-bar,
  .inactive-title-bar {
    forced-color-adjust: none;
  }
}

@media print {
  :where(.window, .modal-dialog, .alert-box, .standard-dialog) {
    box-shadow: none;
  }
}

/* Retina and other whole-number pixel ratios: every Mac pixel becomes a solid
   2x2 or 3x3 block (nearest neighbour), as a 1x screen magnified would show it.
   At fractional ratios (1.25, 1.5, browser zoom) the browser's smoothing stays:
   nearest neighbour there gives uneven pixel widths. image-rendering inherits,
   so the page's own pictures, video and canvas are handed back to smoothing. */
@media (resolution: 2dppx), (resolution: 3dppx), (resolution: 4dppx) {
  :root {
    image-rendering: pixelated;
  }

  :where(img, picture, video, canvas, iframe, object, embed) {
    image-rendering: auto;
  }
}

/* Optional chrome faces for Platinum and Drawing Board:
     data-clio-font="virtue"  Virtue 3.2.1, Marty P. Pfeiffer's 1997-99 TrueType
                              reworking of Charcoal, (c) Scooter Graphics
                              (https://www.scootergraphics.com/). Ships as
                              fonts/Virtue.woff2, unchanged, with the author's
                              permission (THIRD-PARTY.md).
     data-clio-font="truth"   Truth FB, David Berlow's own 2005 expansion of
                              Charcoal, sold by Font Bureau. Not shipped: install
                              it or add your own @font-face.
   Set the attribute on <html> or any ancestor. It changes Platinum and
   Drawing Board only; System 6 and 7 keep Chicago. Clio Sans '97 stays as the
   fallback. These are outline fonts drawn by the browser, not the measured
   pixels. */
@font-face {
  font-family: Virtue;
  src: local("Virtue"), url("fonts/Virtue.woff2") format("woff2");
  font-display: swap;
}

[data-clio-font="virtue"]:is([data-era="platinum"], [data-era="drawingboard"]),
[data-clio-font="virtue"] :is([data-era="platinum"], [data-era="drawingboard"]),
:is([data-era="platinum"], [data-era="drawingboard"]) [data-clio-font="virtue"] {
  --clio-font-chrome: Virtue, "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-window-title: Virtue, "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-button: Virtue, "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
}

[data-clio-font="truth"]:is([data-era="platinum"], [data-era="drawingboard"]),
[data-clio-font="truth"] :is([data-era="platinum"], [data-era="drawingboard"]),
:is([data-era="platinum"], [data-era="drawingboard"]) [data-clio-font="truth"] {
  --clio-font-chrome: "Truth FB", Truth, "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-window-title: "Truth FB", Truth, "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-button: "Truth FB", Truth, "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
}

/* Chinese, Japanese and Korean (design decisions 9 and 10, 2026-11-14).

   Measured: KanjiTalk 7.5.3 and Mac OS 9.0 with the Chinese Language Kits draw CJK text
   at the Roman geometry: 16px menu and text rows, the same baseline, 12px ideographs whose
   ink runs from 10px above the baseline to 1px below (tooling/emulator/measure-cjk.sh).
   So nothing moves; only the fonts change. A localized system's system font is the
   script's font, Latin included (KanjiTalk draws "Infinite HD" and OK in Osaka), so the
   CJK font leads every stack.

   Each stack names the period bitmap interface font (Taipei, Beijing, Osaka, Seoul), then
   Clio's stand-in, Fusion Pixel 12px proportional (OFL-1.1, THIRD-PARTY.md) cut to the
   character set that bitmap font drew (Big5, GB 2312, JIS X 0208, KS X 1001), then an
   outline family of the period. The outline families come after the stand-in because
   current macOS still installs some of them (AppleGothic) as antialiased outlines.
   A browser fetches a stand-in only for an element in that language that has text in
   its unicode-range: pages without CJK text never load them. */
@font-face {
  font-family: "Clio Pixel TC";
  src: url("fonts/FusionPixel12-TC.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-F7, U+391-451, U+2013-203E, U+2103-2199, U+2460-247D, U+2500-2642, U+3000-3129, U+32A3, U+4E00-7E9C, U+7F36-8B9E, U+8C37-9483, U+9577-9FA4, U+FA0C-FA0D, U+FE30-FE4F, U+FF01-FFE3;
}

@font-face {
  font-family: "Clio Pixel SC";
  src: url("fonts/FusionPixel12-SC.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-1DC, U+391-451, U+2015-203B, U+2103-2193, U+2312, U+2460-2642, U+3000-3129, U+3220-3229, U+4E00-7DAE, U+7E3B-8C98, U+8D1D-8ECE, U+8F66-91DC, U+9274-99A8, U+9A6C-9B54, U+9C7C-9CE2, U+9E1F-9FA0, U+FF01-FF5E, U+FFE0-FFE5;
}

@font-face {
  font-family: "Clio Pixel JA";
  src: url("fonts/FusionPixel12-JA.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-F7, U+391-451, U+2010-203B, U+2103-21D4, U+2312, U+2500-266F, U+3000-30FE, U+4E00-7E9C, U+7F36-8B9A, U+8C37-9481, U+9577-9FA0, U+FF01-FFE5;
}

@font-face {
  font-family: "Clio Pixel KO";
  src: url("fonts/FusionPixel12-KO.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-167, U+391-451, U+2015-21D4, U+2312, U+2460-266D, U+3000-318E, U+327F, U+4E00-7E9C, U+7F36-8B9A, U+8C37-947F, U+9577-9C57, U+9CE5-9F9C, U+AC00-D79D, U+F900-FA0B, U+FF01-FF5E, U+FFE0-FFE6;
}

:lang(zh) { --clio-font-cjk: Beijing, "Clio Pixel SC", Hei; }
:is(:lang(zh-Hant), :lang(zh-TW), :lang(zh-HK), :lang(zh-MO)) { --clio-font-cjk: Taipei, "Clio Pixel TC", "Apple LiGothic"; }
:lang(ja) { --clio-font-cjk: Osaka, "Clio Pixel JA"; }
:lang(ko) { --clio-font-cjk: Seoul, "Clio Pixel KO", AppleGothic; }

/* Declared beside --clio-font-cjk, on every element in the language, so var() resolves there. */
:is(:lang(zh), :lang(ja), :lang(ko)) {
  --clio-font-chrome: var(--clio-font-cjk), "Clio Sans '84", Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-text: var(--clio-font-cjk), "Clio Text '84", Geneva, "Helvetica Neue", Arial, sans-serif;
  /* Small text keeps the 9px Latin face: the stand-in is a 12px font (KanjiTalk's Finder
     drew 8px kanji here, from a 9-point Osaka clio.css does not have). */
  --clio-font-small: "Clio Text '84 9", var(--clio-font-cjk), Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-display: var(--clio-font-cjk), Chicago, "ChicagoFLF", Charcoal, "Helvetica Neue", Arial, sans-serif;
}

/* Pop-up items name "Clio Sans '97 Exact" ahead of the chrome stack for its palette
   (91-platinum-only.css; Mac OS 9 only, as that file): in a CJK language the CJK fonts go first there too. */
[data-era="platinum"] .clio-popup-menu > li:not(.disabled, .active, :hover):is(:lang(zh), :lang(ja), :lang(ko)) {
  font-family: var(--clio-font-cjk), "Clio Sans '97 Exact", var(--clio-font-chrome);
}

@supports (appearance: base-select) {
  [data-era="platinum"] select option:not(:disabled, :hover, :focus-visible):is(:lang(zh), :lang(ja), :lang(ko)) {
    font-family: var(--clio-font-cjk), "Clio Sans '97 Exact", var(--clio-font-chrome);
  }
}

/* CJK on the Appearance Manager eras: the same order as 96-cjk.css over the
   Charcoal stacks. Measured on Mac OS 9.0 with the Chinese Language Kits: the Text
   control panel's Script pop-up draws 繁體中文 and 简体中文 in 16px rows, ink 2px below
   the row's top to 12px, 1-bit (frame p9-script-popup-open). */
:is(:is([data-era="platinum"], [data-era="drawingboard"]) :is(:lang(zh), :lang(ja), :lang(ko)), :is([data-era="platinum"], [data-era="drawingboard"]):is(:lang(zh), :lang(ja), :lang(ko))) {
  --clio-font-chrome: var(--clio-font-cjk), Charcoal, "Charcoal CY", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-display: var(--clio-font-cjk), Charcoal, "Charcoal CY", "Clio Sans '97 Display", "Clio Asap", "Helvetica Neue", Arial, sans-serif;
  --clio-font-window-title: var(--clio-font-cjk), Charcoal, "Charcoal CY", "Clio Sans '97 Title Exact", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-button: var(--clio-font-cjk), Charcoal, "Charcoal CY", "Clio Sans '97 Exact", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
  --clio-font-text: var(--clio-font-cjk), Geneva, "Clio Asap", "Helvetica Neue", Arial, sans-serif;
  --clio-font-small: Geneva, var(--clio-font-cjk), "Clio Asap", "Helvetica Neue", Arial, sans-serif;
}

/* Drawing Board's own title stack (92-drawingboard.css), CJK first. */
:is([data-era="drawingboard"] :is(:lang(zh), :lang(ja), :lang(ko)), [data-era="drawingboard"]:is(:lang(zh), :lang(ja), :lang(ko))) {
  --clio-font-window-title: var(--clio-font-cjk), Charcoal, "Charcoal CY", "Clio Sans '97 Title", "Clio Sans '97", "Clio Asap", Geneva, "Helvetica Neue", Arial, sans-serif;
}
