clio.css 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1462 @@
1
+ /*! clio.css 0.2.0 (System 6 only) | MIT | https://surfine.github.io/clio.css/
2
+ * Classic Mac OS interface CSS: System 6 and Mac OS 9 Platinum.
3
+ * Measured values traced to AI System 6; see EVIDENCE.md.
4
+ * Includes art from system.css (MIT) and classic-stylesheets (MIT); see THIRD-PARTY.md. */
5
+ /* Fonts. Only two faces ship, both with a licence that allows it:
6
+ - ChicagoFLF: a public-domain outline revival of Chicago (Robin Casady).
7
+ - Asap (variable, wdth + wght): SIL OFL 1.1, Omnibus-Type. The legal
8
+ stand-in for Charcoal that AI System 6 measured its Platinum title bar
9
+ against (width axis 113 for text, 123 for titles).
10
+ Apple's own faces (Chicago, Geneva, Charcoal, Monaco) are never shipped;
11
+ the stacks below reach them only when the visitor already has them. */
12
+ @font-face {
13
+ font-family: "ChicagoFLF";
14
+ src: url("fonts/ChicagoFLF.woff2") format("woff2"),
15
+ url("fonts/ChicagoFLF.woff") format("woff");
16
+ font-display: swap;
17
+ }
18
+
19
+ @font-face {
20
+ font-family: "Clio Asap";
21
+ src: url("fonts/Asap-Variable.woff2") format("woff2");
22
+ font-style: normal;
23
+ font-weight: 100 900;
24
+ font-stretch: 75% 125%;
25
+ font-display: swap;
26
+ }
27
+
28
+ /* Tokens: Macintosh System 6 is the default era. Measured values come from
29
+ System 6.0.8 running in Infinite Mac, read from the emulator canvas 1:1
30
+ (tooling/capture-system6.mjs).
31
+ Every value below is traceable in EVIDENCE.md. A value marked [M] there was
32
+ measured from real pixels; [I] is inferred; [A] is a deliberate web
33
+ adaptation (contrast, focus, touch). Platinum re-declares these tokens in
34
+ 90-platinum.css under [data-era="platinum"]. */
35
+ :root,
36
+ [data-era="system6"] {
37
+ /* 1-bit palette. System 6 on a compact Mac had two colours. */
38
+ --clio-ink: #000000;
39
+ --clio-paper: #ffffff;
40
+ --clio-face: #ffffff;
41
+ /* [A] Disabled text: System 6 drew it through a 50% grey pattern; a solid
42
+ grey keeps 5.6:1 on white instead of a dither the browser would blur. */
43
+ --clio-disabled: #696969;
44
+ --clio-selection-bg: #000000;
45
+ --clio-selection-fg: #ffffff;
46
+
47
+ /* Type. Chicago 12 is the system font; Geneva is the application font. */
48
+ --clio-font-chrome: Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif;
49
+ --clio-font-text: Geneva, "Clio Asap", "Helvetica Neue", Arial, sans-serif;
50
+ --clio-font-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
51
+ --clio-font-size: 12px;
52
+ /* Geneva 9: the Finder info line and icon names. */
53
+ --clio-font-size-small: 9px;
54
+ --clio-chrome-weight: 400;
55
+ --clio-font-stretch-text: normal;
56
+ --clio-font-stretch-title: normal;
57
+
58
+ /* Geometry */
59
+ --clio-line: 1px;
60
+ --clio-border: 1px solid var(--clio-ink);
61
+ --clio-radius: 0;
62
+ --clio-control-height: 20px;
63
+ --clio-field-height: 20px;
64
+ --clio-row-height: 16px;
65
+ --clio-gap: 8px;
66
+
67
+ /* Focus: [A] the era had no keyboard focus ring for buttons. A dotted frame
68
+ is how System 6 drew a dragged outline, so it reads as native and cannot
69
+ be confused with the default button's solid ring. */
70
+ --clio-focus-outline: 1px dotted var(--clio-ink);
71
+ --clio-focus-offset: 2px;
72
+
73
+ /* Desktop */
74
+ --clio-desktop: var(--clio-art-s6-desktop) 0 0 / 2px 2px repeat, #808080;
75
+
76
+ /* Window frame and title bar [M: measured at the emulator's exact 2x] */
77
+ --clio-window-bg: var(--clio-paper);
78
+ --clio-pane-bg: var(--clio-paper);
79
+ --clio-window-border: 1px solid var(--clio-ink);
80
+ --clio-window-shadow: 1px 1px 0 var(--clio-ink);
81
+ --clio-window-padding: 0;
82
+ --clio-titlebar-height: 17px;
83
+ --clio-titlebar-margin: 1px 0 0;
84
+ --clio-titlebar-padding: 2px 1px;
85
+ --clio-titlebar-border: 1px solid var(--clio-ink);
86
+ --clio-titlebar-row: 12px;
87
+ --clio-titlebar-stripe: 2px;
88
+ --clio-titlebar-bg:
89
+ linear-gradient(to bottom, var(--clio-ink) 0 1px, transparent 1px 2px)
90
+ 0 0 / 100% var(--clio-titlebar-stripe) repeat-y content-box content-box,
91
+ var(--clio-paper);
92
+ --clio-titlebar-inactive-bg: var(--clio-paper);
93
+ --clio-title-font-size: 12px;
94
+ --clio-title-bg: var(--clio-paper);
95
+ --clio-title-fg: var(--clio-ink);
96
+ --clio-title-inactive-fg: var(--clio-ink);
97
+ --clio-title-padding: 0 0.5em;
98
+ --clio-titlebar-slot: 18px;
99
+ --clio-titlebar-shade-slot: 0px;
100
+ --clio-shade-display: none;
101
+ --clio-box-size: 11px;
102
+ --clio-box-inset: 7px;
103
+ /* 1px of paper between a box and the stripes (HD window, 6.0.8). */
104
+ --clio-box-isolation: 1px;
105
+
106
+ /* Menus */
107
+ --clio-menubar-height: 20px;
108
+ --clio-menubar-bg: var(--clio-paper);
109
+ --clio-menubar-border: 1px solid var(--clio-ink);
110
+ --clio-menubar-shadow: none;
111
+ --clio-menubar-padding: 0 8px;
112
+ /* "File" highlight is 41px wide: about 9px each side of the word. */
113
+ --clio-menu-title-padding: 0 9px;
114
+ /* The open title's highlight leaves the bar's top row white. */
115
+ --clio-menu-title-inset: 1px;
116
+ --clio-menu-title-active-bg: var(--clio-ink);
117
+ --clio-menu-title-active-fg: var(--clio-paper);
118
+ --clio-menu-title-active-shadow: none;
119
+ --clio-menu-bg: var(--clio-paper);
120
+ --clio-menu-border: 1px solid var(--clio-ink);
121
+ /* A menu hangs from the bar's own rule; it draws no top line. */
122
+ --clio-menu-border-top-width: 0;
123
+ --clio-menu-shadow: 1px 1px 0 var(--clio-ink);
124
+ --clio-menu-item-height: 16px;
125
+ --clio-menu-item-padding: 0 12px 0 15px;
126
+ --clio-menu-item-weight: 400;
127
+ --clio-menu-item-active-bg: var(--clio-ink);
128
+ --clio-menu-item-active-fg: var(--clio-paper);
129
+ --clio-menu-item-active-shadow: none;
130
+ /* A full 16px row with a 1-on 1-off dotted rule on its ninth line. */
131
+ --clio-menu-separator:
132
+ repeating-linear-gradient(to right, var(--clio-ink) 0 1px, transparent 1px 2px) 0 8px / 100% 1px no-repeat;
133
+ --clio-menu-separator-height: 16px;
134
+
135
+ /* Push buttons */
136
+ --clio-button-bg: var(--clio-paper);
137
+ --clio-button-fg: var(--clio-ink);
138
+ --clio-button-border: 1px solid var(--clio-ink);
139
+ /* 20px tall; corners turn over about 4px (alert OK button, 6.0.8). */
140
+ --clio-button-radius: 4px;
141
+ --clio-button-shadow: 0 0 0 0 transparent;
142
+ --clio-button-padding: 0 12px;
143
+ --clio-button-min-width: 59px;
144
+ --clio-button-weight: 400;
145
+ --clio-button-active-bg: var(--clio-ink);
146
+ --clio-button-active-fg: var(--clio-paper);
147
+ --clio-button-active-shadow: 0 0 0 0 transparent;
148
+ /* Default button: Inside Macintosh's recipe is PenSize(3,3) around the
149
+ button inset by -4, so a 1px gap then a 3px ring. */
150
+ --clio-button-default-ring: 0 0 0 1px var(--clio-paper), 0 0 0 4px var(--clio-ink);
151
+ --clio-button-default-radius: 8px;
152
+ --clio-button-disabled-fg: var(--clio-disabled);
153
+ --clio-button-disabled-border: 1px solid var(--clio-ink);
154
+
155
+ /* Check boxes and radio buttons */
156
+ --clio-check-size: 12px;
157
+ --clio-check-bg: var(--clio-paper);
158
+ --clio-check-border: 1px solid var(--clio-ink);
159
+ --clio-check-shadow: none;
160
+ --clio-check-mark: var(--clio-art-s6-check) 0 0 / 12px 12px no-repeat;
161
+ --clio-check-mark-origin: border-box;
162
+ --clio-check-pressed-border-width: 2px;
163
+ --clio-radio-size: 12px;
164
+ --clio-radio-off: var(--clio-art-s6-radio) 0 0 / 12px 12px no-repeat;
165
+ --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;
166
+ --clio-radio-pressed: var(--clio-art-s6-radio-focus) 0 0 / 12px 12px no-repeat;
167
+ --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;
168
+
169
+ /* Text fields */
170
+ --clio-field-bg: var(--clio-paper);
171
+ --clio-field-border: 1px solid var(--clio-ink);
172
+ --clio-field-shadow: none;
173
+ /* Edit text: 1px frame, text inset 3px (Control Panel RAM cache field). */
174
+ --clio-field-padding: 3px;
175
+ --clio-field-focus-shadow: none;
176
+
177
+ /* Pop-up menus */
178
+ --clio-popup-bg: var(--clio-paper);
179
+ --clio-popup-border: 1px solid var(--clio-ink);
180
+ --clio-popup-radius: 0;
181
+ --clio-popup-shadow: 1px 1px 0 var(--clio-ink);
182
+ --clio-popup-padding: 0 24px 0 6px;
183
+ --clio-popup-arrow: var(--clio-art-s6-popup) right 6px center / 11px 6px no-repeat;
184
+ --clio-popup-weight: 400;
185
+
186
+ /* Scroll bars */
187
+ /* The lane line plus 14px; the window frame is the 16th line. The lane is
188
+ QuickDraw's ltGray, one dot in four. */
189
+ --clio-scrollbar-size: 15px;
190
+ --clio-scrollbar-track: var(--clio-art-s6-ltgray) 0 0 / 4px 2px repeat, #ffffff;
191
+ --clio-scrollbar-track-shadow: none;
192
+ --clio-scrollbar-thumb-bg: var(--clio-paper);
193
+ --clio-scrollbar-thumb-border: 1px solid var(--clio-ink);
194
+ --clio-scrollbar-thumb-shadow: none;
195
+ --clio-scrollbar-button-bg: var(--clio-paper);
196
+ --clio-scrollbar-button-shadow: none;
197
+ --clio-scrollbar-up: var(--clio-art-s6-up);
198
+ --clio-scrollbar-up-on: var(--clio-art-s6-up-on);
199
+ --clio-scrollbar-down: var(--clio-art-s6-down);
200
+ --clio-scrollbar-down-on: var(--clio-art-s6-down-on);
201
+ --clio-scrollbar-left: var(--clio-art-s6-left);
202
+ --clio-scrollbar-left-on: var(--clio-art-s6-left-on);
203
+ --clio-scrollbar-right: var(--clio-art-s6-right);
204
+ --clio-scrollbar-right-on: var(--clio-art-s6-right-on);
205
+
206
+ /* Dialogs */
207
+ --clio-dialog-bg: var(--clio-paper);
208
+ /* Modal frame (stop alert, 6.0.8): 1px ink, 2px paper, 2px ink; no shadow. */
209
+ --clio-modal-border: 1px solid var(--clio-ink);
210
+ --clio-modal-frame: inset 0 0 0 2px var(--clio-paper), inset 0 0 0 4px var(--clio-ink);
211
+ --clio-modal-padding: 18px 20px;
212
+ --clio-plain-dialog-border: 1px solid var(--clio-ink);
213
+ --clio-plain-dialog-shadow: 2px 2px 0 var(--clio-ink);
214
+
215
+ /* Bars, lists, groups, progress, tabs */
216
+ --clio-details-bg: var(--clio-paper);
217
+ /* Finder's info line: 17 rows of Geneva 9, closed by 1px ink, 1px paper,
218
+ 1px ink. */
219
+ --clio-details-border: 3px double var(--clio-ink);
220
+ --clio-details-font-size: 9px;
221
+ --clio-details-height: 17px;
222
+ --clio-details-padding: 0 15px;
223
+ --clio-scrollbar-corner: var(--clio-art-s6-grow) 0 0 / 14px 14px no-repeat, var(--clio-paper);
224
+ --clio-list-bg: var(--clio-paper);
225
+ --clio-list-border: 1px solid var(--clio-ink);
226
+ --clio-list-shadow: none;
227
+ --clio-list-row: 16px;
228
+ --clio-group-border: 1px solid var(--clio-ink);
229
+ --clio-group-shadow: none;
230
+ --clio-group-bg: transparent;
231
+ --clio-progress-height: 12px;
232
+ --clio-progress-bg: var(--clio-paper);
233
+ --clio-progress-border: 1px solid var(--clio-ink);
234
+ --clio-progress-shadow: none;
235
+ --clio-progress-fill: var(--clio-ink);
236
+ --clio-tab-height: 20px;
237
+ --clio-tab-bg: var(--clio-paper);
238
+ --clio-tab-active-bg: var(--clio-paper);
239
+ --clio-tab-panel-bg: var(--clio-paper);
240
+ --clio-tab-panel-border: 1px solid var(--clio-ink);
241
+ --clio-label-bg: var(--clio-paper);
242
+ --clio-label-fg: var(--clio-ink);
243
+ --clio-label-selected-bg: var(--clio-ink);
244
+ --clio-label-selected-fg: var(--clio-paper);
245
+ }
246
+
247
+ /* Inline art. Pixel-grid SVGs, never Apple bitmaps: the System 6 check, radio
248
+ ring and dot come from system.css (MIT, Sakun Acharige); Platinum's art lives
249
+ in 90-platinum.css; everything here is drawn for clio.css. See
250
+ THIRD-PARTY.md. */
251
+ :root {
252
+ --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");
253
+ --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");
254
+ --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");
255
+ --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");
256
+ --clio-art-s6-popup: 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");
257
+ --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");
258
+ --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");
259
+ --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");
260
+ /* Measured from System 6.0.8 (tooling/s6-art.py). */
261
+ --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");
262
+ --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");
263
+ --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");
264
+ --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");
265
+ --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='M6 2h1v1h-1zM5 3h2v1h-2zM4 4h7v1h-7zM3 5h8v1h-8zM2 6h9v1h-9zM3 7h8v1h-8zM4 8h7v1h-7zM5 9h2v1h-2zM6 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h1v1h-1zM7 2h1v1h-1zM4 3h1v1h-1zM7 3h5v1h-5zM3 4h1v1h-1zM11 4h1v1h-1zM2 5h1v1h-1zM11 5h1v1h-1zM1 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM11 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM4 9h1v1h-1zM7 9h5v1h-5zM5 10h1v1h-1zM7 10h1v1h-1zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
266
+ --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='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h3v1h-3zM4 3h8v1h-8zM3 4h9v1h-9zM2 5h10v1h-10zM2 6h10v1h-10zM2 7h10v1h-10zM3 8h9v1h-9zM4 9h8v1h-8zM5 10h3v1h-3zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
267
+ --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='M6 2h1v1h-1zM5 3h2v1h-2zM4 4h7v1h-7zM3 5h8v1h-8zM2 6h9v1h-9zM3 7h8v1h-8zM4 8h7v1h-7zM5 9h2v1h-2zM6 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM6 1h2v1h-2zM5 2h1v1h-1zM7 2h1v1h-1zM4 3h1v1h-1zM7 3h5v1h-5zM3 4h1v1h-1zM11 4h1v1h-1zM2 5h1v1h-1zM11 5h1v1h-1zM1 6h1v1h-1zM11 6h1v1h-1zM2 7h1v1h-1zM11 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM4 9h1v1h-1zM7 9h5v1h-5zM5 10h1v1h-1zM7 10h1v1h-1zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
268
+ --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-1zM6 1h2v1h-2zM5 2h3v1h-3zM4 3h8v1h-8zM3 4h9v1h-9zM2 5h10v1h-10zM2 6h10v1h-10zM2 7h10v1h-10zM3 8h9v1h-9zM4 9h8v1h-8zM5 10h3v1h-3zM6 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E");
269
+ --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");
270
+ --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");
271
+ --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");
272
+ --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");
273
+ --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");
274
+ }
275
+
276
+ /* Base. clio.css styles elements only inside its own components, plus bare
277
+ form controls through :where(), so every rule here has zero specificity and
278
+ your own CSS always wins. It never restyles <body> unless you ask with
279
+ .desktop. */
280
+ :where(.desktop) {
281
+ margin: 0;
282
+ min-height: 100vh;
283
+ background: var(--clio-desktop);
284
+ color: var(--clio-ink);
285
+ }
286
+
287
+ :where(.window, .menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"],
288
+ .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) {
289
+ box-sizing: border-box;
290
+ color: var(--clio-ink);
291
+ font-family: var(--clio-font-chrome);
292
+ font-size: var(--clio-font-size);
293
+ font-weight: var(--clio-chrome-weight);
294
+ font-stretch: var(--clio-font-stretch-text);
295
+ font-synthesis: none;
296
+ line-height: 16px;
297
+ -webkit-font-smoothing: auto;
298
+ }
299
+
300
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *,
301
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *::before,
302
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *::after {
303
+ box-sizing: border-box;
304
+ }
305
+
306
+ /* Application text (Geneva role) for content areas. */
307
+ :where(.window-pane, .modal-contents, .alert-contents, .text) {
308
+ font-family: var(--clio-font-text);
309
+ font-stretch: var(--clio-font-stretch-text);
310
+ }
311
+
312
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(h1, h2, h3, h4, .heading) {
313
+ margin: 0 0 8px;
314
+ font-family: var(--clio-font-chrome);
315
+ font-size: var(--clio-font-size);
316
+ font-weight: var(--clio-chrome-weight);
317
+ line-height: 16px;
318
+ }
319
+
320
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(p) {
321
+ margin: 0 0 8px;
322
+ }
323
+
324
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(a) {
325
+ color: inherit;
326
+ }
327
+
328
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(code, kbd, pre, samp) {
329
+ font-family: var(--clio-font-mono);
330
+ }
331
+
332
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(hr) {
333
+ height: 0;
334
+ margin: 8px 0;
335
+ border: 0;
336
+ border-top: var(--clio-border);
337
+ }
338
+
339
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) ::selection {
340
+ background: var(--clio-selection-bg);
341
+ color: var(--clio-selection-fg);
342
+ }
343
+
344
+ /* A row of controls with their label (system.css name kept). */
345
+ :where(.field-row, .field-row-stacked) {
346
+ display: flex;
347
+ align-items: center;
348
+ gap: 6px;
349
+ }
350
+
351
+ :where(.field-row-stacked) {
352
+ flex-direction: column;
353
+ align-items: flex-start;
354
+ gap: 4px;
355
+ }
356
+
357
+ :where(.field-row, .field-row-stacked) + :where(.field-row, .field-row-stacked) {
358
+ margin-top: 6px;
359
+ }
360
+
361
+ /* Hidden, still read aloud. */
362
+ :where(.visually-hidden, .title-bar button > span) {
363
+ position: absolute !important;
364
+ width: 1px;
365
+ height: 1px;
366
+ overflow: hidden;
367
+ clip: rect(0 0 0 0);
368
+ white-space: nowrap;
369
+ }
370
+
371
+ /* Windows.
372
+ Markup: .window > .title-bar (> .close, .title, .resize [, .shade]) >
373
+ optional .details-bar > .window-pane. system.css markup (.title-bar
374
+ button.close / button.resize, .inactive-title-bar) and AI System 6 markup
375
+ (.close-box, .resize-box, .shade-box, h1/h2 as the title) also work. */
376
+ :where(.window) {
377
+ position: relative;
378
+ display: flex;
379
+ flex-direction: column;
380
+ min-width: 120px;
381
+ padding: var(--clio-window-padding);
382
+ border: var(--clio-window-border);
383
+ background: var(--clio-window-bg);
384
+ box-shadow: var(--clio-window-shadow);
385
+ }
386
+
387
+ /* ---- Title bar ---------------------------------------------------------
388
+ System 6: a 17px box under a 1px inset: 2px of paper, six 1px ink stripes
389
+ on a 2px period across a 12px row, 2px of paper, then the 1px rule. */
390
+ .title-bar,
391
+ .inactive-title-bar {
392
+ --clio-tb-close: var(--clio-titlebar-slot);
393
+ --clio-tb-zoom: var(--clio-titlebar-slot);
394
+ --clio-tb-shade: var(--clio-titlebar-shade-slot);
395
+ --clio-tb-gutter: max(var(--clio-tb-close), calc(var(--clio-tb-zoom) + var(--clio-tb-shade)));
396
+ position: relative;
397
+ display: grid;
398
+ flex: none;
399
+ grid-template-columns:
400
+ var(--clio-tb-gutter)
401
+ minmax(0, 1fr)
402
+ var(--clio-tb-zoom)
403
+ calc(var(--clio-tb-gutter) - var(--clio-tb-zoom));
404
+ grid-template-rows: var(--clio-titlebar-row);
405
+ align-items: start;
406
+ box-sizing: border-box;
407
+ height: var(--clio-titlebar-height);
408
+ margin: var(--clio-titlebar-margin);
409
+ padding: var(--clio-titlebar-padding);
410
+ border-bottom: var(--clio-titlebar-border);
411
+ background: var(--clio-titlebar-bg);
412
+ font-family: var(--clio-font-chrome);
413
+ user-select: none;
414
+ -webkit-user-select: none;
415
+ }
416
+
417
+ /* A slot is reserved only for a control that is really there, so the title
418
+ stays centred on the whole bar. */
419
+ .title-bar:not(:has(> :is(.resize, .resize-box, .zoom))) { --clio-tb-zoom: 0px; }
420
+ .title-bar:not(:has(> :is(.shade, .shade-box, .collapse))) { --clio-tb-shade: 0px; }
421
+
422
+ .title-bar > :is(.title, h1, h2, h3),
423
+ .inactive-title-bar > :is(.title, h1, h2, h3) {
424
+ grid-column: 2;
425
+ grid-row: 1;
426
+ justify-self: center;
427
+ max-width: 100%;
428
+ height: var(--clio-titlebar-row);
429
+ margin: 0;
430
+ padding: var(--clio-title-padding);
431
+ overflow: hidden;
432
+ background: var(--clio-title-bg);
433
+ color: var(--clio-title-fg);
434
+ font-family: var(--clio-font-chrome);
435
+ font-size: var(--clio-title-font-size);
436
+ font-stretch: var(--clio-font-stretch-title);
437
+ font-weight: var(--clio-chrome-weight);
438
+ line-height: var(--clio-titlebar-row);
439
+ text-align: center;
440
+ text-overflow: ellipsis;
441
+ white-space: nowrap;
442
+ }
443
+
444
+ /* ---- Close, zoom and collapse boxes ------------------------------------ */
445
+ .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) {
446
+ position: relative;
447
+ grid-row: 1;
448
+ width: var(--clio-box-size);
449
+ min-width: 0;
450
+ height: var(--clio-box-size);
451
+ min-height: 0;
452
+ margin: 0;
453
+ padding: 0;
454
+ border: 1px solid var(--clio-ink);
455
+ border-radius: 0;
456
+ background: var(--clio-paper);
457
+ box-shadow: 0 0 0 var(--clio-box-isolation) var(--clio-paper);
458
+ color: transparent;
459
+ font-size: 0;
460
+ appearance: none;
461
+ -webkit-appearance: none;
462
+ cursor: default;
463
+ touch-action: manipulation;
464
+ }
465
+
466
+ .title-bar > :is(.close, .close-box) {
467
+ grid-column: 1;
468
+ justify-self: start;
469
+ margin-left: var(--clio-box-inset);
470
+ }
471
+
472
+ .title-bar > :is(.resize, .resize-box, .zoom) {
473
+ grid-column: 3;
474
+ justify-self: end;
475
+ margin-right: var(--clio-box-inset);
476
+ }
477
+
478
+ /* System 6 had no WindowShade box; only an era that opens the slot shows it. */
479
+ .title-bar > :is(.shade, .shade-box, .collapse) {
480
+ display: var(--clio-shade-display);
481
+ grid-column: 4;
482
+ justify-self: end;
483
+ }
484
+
485
+ /* Held close or zoom box: System 6 draws the same starburst in both
486
+ (measured, 6.0.8); the zoom box's inner square goes while it is held. */
487
+ .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active, .active) {
488
+ background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, var(--clio-paper);
489
+ }
490
+
491
+ /* Zoom box: an inner square sharing the outer frame's top-left corner,
492
+ 7 of the frame's 11 pixels (System 6's 7:11 ratio). */
493
+ .title-bar > :is(.resize, .resize-box, .zoom)::before {
494
+ content: "";
495
+ position: absolute;
496
+ top: -1px;
497
+ left: -1px;
498
+ width: 7px;
499
+ height: 7px;
500
+ border-right: 1px solid var(--clio-ink);
501
+ border-bottom: 1px solid var(--clio-ink);
502
+ box-sizing: border-box;
503
+ }
504
+
505
+ .title-bar > :is(.resize, .resize-box, .zoom):is(:active, .active)::before {
506
+ opacity: 0;
507
+ }
508
+
509
+ .title-bar > button:focus-visible {
510
+ outline: var(--clio-focus-outline);
511
+ outline-offset: calc(var(--clio-box-isolation) - 1px);
512
+ }
513
+
514
+ /* ---- Inactive windows ----------------------------------------------------
515
+ System 6 draws a background window's title bar as a plain strip with its
516
+ name: no stripes, no close box, no zoom box. */
517
+ .window.inactive > .title-bar,
518
+ .inactive-title-bar {
519
+ background: var(--clio-titlebar-inactive-bg);
520
+ }
521
+
522
+ .window.inactive > .title-bar > :is(.title, h1, h2, h3),
523
+ .inactive-title-bar > :is(.title, h1, h2, h3) {
524
+ color: var(--clio-title-inactive-fg);
525
+ }
526
+
527
+ .window.inactive > .title-bar > :not(.title, h1, h2, h3),
528
+ .inactive-title-bar > :not(.title, h1, h2, h3) {
529
+ visibility: hidden;
530
+ }
531
+
532
+ /* ---- Window body ------------------------------------------------------- */
533
+ :where(.window-pane) {
534
+ flex: 1 1 auto;
535
+ min-height: 0;
536
+ padding: 8px;
537
+ overflow: auto;
538
+ background: var(--clio-pane-bg);
539
+ font-size: var(--clio-font-size);
540
+ line-height: 16px;
541
+ }
542
+
543
+ /* Finder's info line ("3 items 1,234K in disk"), ruled twice below. */
544
+ :where(.details-bar) {
545
+ display: flex;
546
+ flex: none;
547
+ justify-content: space-between;
548
+ gap: 16px;
549
+ min-height: var(--clio-details-height);
550
+ padding: var(--clio-details-padding);
551
+ border-bottom: var(--clio-details-border);
552
+ background: var(--clio-details-bg);
553
+ box-shadow: var(--clio-details-shadow, none);
554
+ font-family: var(--clio-font-text);
555
+ font-size: var(--clio-details-font-size);
556
+ line-height: var(--clio-details-height);
557
+ white-space: nowrap;
558
+ }
559
+
560
+ :where(.separator) {
561
+ flex: none;
562
+ border-top: var(--clio-border);
563
+ }
564
+
565
+ /* A status line under the pane. */
566
+ :where(.status-bar) {
567
+ display: flex;
568
+ flex: none;
569
+ gap: 12px;
570
+ padding: 1px 8px;
571
+ border-top: var(--clio-border);
572
+ background: var(--clio-details-bg);
573
+ font-family: var(--clio-font-text);
574
+ font-size: var(--clio-font-size-small);
575
+ line-height: 14px;
576
+ }
577
+
578
+ /* Menu bar and menus.
579
+ Markup: <ul role="menubar" class="menu-bar"> <li role="none"><button
580
+ role="menuitem" aria-haspopup="true" aria-expanded="false">File</button>
581
+ <ul role="menu" class="menu">…</ul></li></ul>. A menu opens while its title
582
+ has aria-expanded="true" or the class .open (your script toggles either), or
583
+ while focus is inside it, so it works with the keyboard and no script.
584
+ system.css's role="menu-bar" / role="menu-item" markup is accepted too. */
585
+ :where(.menu-bar, ul[role="menubar"], ul[role="menu-bar"]) {
586
+ display: flex;
587
+ align-items: stretch;
588
+ box-sizing: border-box;
589
+ height: var(--clio-menubar-height);
590
+ margin: 0;
591
+ padding: var(--clio-menubar-padding);
592
+ list-style: none;
593
+ border-bottom: var(--clio-menubar-border);
594
+ background: var(--clio-menubar-bg);
595
+ box-shadow: var(--clio-menubar-shadow);
596
+ user-select: none;
597
+ -webkit-user-select: none;
598
+ }
599
+
600
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li {
601
+ position: relative;
602
+ display: flex;
603
+ align-items: stretch;
604
+ }
605
+
606
+ /* Menu titles: a <button>, an <a>, or the <li> itself (system.css). */
607
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span),
608
+ :where([role="menu-bar"]) > [role="menu-item"] {
609
+ display: flex;
610
+ align-items: center;
611
+ min-width: 0;
612
+ margin: 0;
613
+ padding: var(--clio-menu-title-padding);
614
+ border: 0;
615
+ border-radius: 0;
616
+ background: transparent;
617
+ box-shadow: none;
618
+ color: inherit;
619
+ font: inherit;
620
+ line-height: 16px;
621
+ text-decoration: none;
622
+ white-space: nowrap;
623
+ appearance: none;
624
+ -webkit-appearance: none;
625
+ cursor: default;
626
+ }
627
+
628
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a, span):is([aria-expanded="true"], .active),
629
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li.open > :is(button, a, span),
630
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a):active,
631
+ :where([role="menu-bar"]) > [role="menu-item"]:is(:focus, :focus-within) {
632
+ background: var(--clio-menu-title-active-bg);
633
+ box-shadow: var(--clio-menu-title-active-shadow);
634
+ color: var(--clio-menu-title-active-fg);
635
+ outline: none;
636
+ }
637
+
638
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li > :is(button, a):focus-visible {
639
+ outline: var(--clio-focus-outline);
640
+ outline-offset: -3px;
641
+ }
642
+
643
+ /* ---- Menu panel ----------------------------------------------------------
644
+ System 6: paper, a 1px ink frame and a 1px ink drop shadow. */
645
+ :where(.menu, ul[role="menu"]) {
646
+ z-index: 10;
647
+ display: block;
648
+ box-sizing: border-box;
649
+ min-width: 140px;
650
+ width: max-content;
651
+ margin: 0;
652
+ padding: 0;
653
+ list-style: none;
654
+ border: var(--clio-menu-border);
655
+ border-top-width: var(--clio-menu-border-top-width);
656
+ background: var(--clio-menu-bg);
657
+ box-shadow: var(--clio-menu-shadow);
658
+ font-family: var(--clio-font-chrome);
659
+ font-size: var(--clio-font-size);
660
+ }
661
+
662
+ /* Inside a menu bar or a parent item, a menu is a drop-down. */
663
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"]) li > :is(.menu, ul[role="menu"]) {
664
+ position: absolute;
665
+ top: calc(100% + 1px);
666
+ left: 0;
667
+ display: none;
668
+ }
669
+
670
+ :where(.menu, [role="menu"]) li > :is(.menu, ul[role="menu"]) {
671
+ top: -1px;
672
+ left: 100%;
673
+ }
674
+
675
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"]) li:is(.open, :focus-within) > :is(.menu, ul[role="menu"]),
676
+ :where(.menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"]) li > [aria-expanded="true"] + :is(.menu, ul[role="menu"]) {
677
+ display: block;
678
+ }
679
+
680
+ /* ---- Menu items ---------------------------------------------------------- */
681
+ :where(.menu, [role="menu"]) > li {
682
+ position: relative;
683
+ display: flex;
684
+ align-items: center;
685
+ min-height: var(--clio-menu-item-height);
686
+ padding: var(--clio-menu-item-padding);
687
+ font-weight: var(--clio-menu-item-weight);
688
+ line-height: var(--clio-menu-item-height);
689
+ white-space: nowrap;
690
+ cursor: default;
691
+ }
692
+
693
+ :where(.menu, [role="menu"]) > li:has(> :is(a, button)) {
694
+ padding: 0;
695
+ }
696
+
697
+ :where(.menu, [role="menu"]) > li > :is(a, button) {
698
+ display: flex;
699
+ flex: 1;
700
+ align-items: center;
701
+ justify-content: flex-start;
702
+ min-width: 0;
703
+ min-height: var(--clio-menu-item-height);
704
+ margin: 0;
705
+ padding: var(--clio-menu-item-padding);
706
+ border: 0;
707
+ border-radius: 0;
708
+ background: transparent;
709
+ box-shadow: none;
710
+ color: inherit;
711
+ font: inherit;
712
+ text-align: left;
713
+ text-decoration: none;
714
+ appearance: none;
715
+ -webkit-appearance: none;
716
+ cursor: default;
717
+ }
718
+
719
+ :where(.menu, [role="menu"]) > li:not(.disabled, [aria-disabled="true"], .separator, [role="separator"]):is(:hover, :focus-within, .active),
720
+ :where(.menu, [role="menu"]) > li > :is(a, button):not([aria-disabled="true"], :disabled):is(:hover, :focus-visible, .active) {
721
+ background: var(--clio-menu-item-active-bg);
722
+ box-shadow: var(--clio-menu-item-active-shadow);
723
+ color: var(--clio-menu-item-active-fg);
724
+ outline: none;
725
+ }
726
+
727
+ :where(.menu, [role="menu"]) > li:is(.disabled, [aria-disabled="true"]),
728
+ :where(.menu, [role="menu"]) > li > :is(a, button):is(:disabled, [aria-disabled="true"]) {
729
+ color: var(--clio-disabled);
730
+ }
731
+
732
+ /* Keyboard shortcut column, right-aligned. */
733
+ :where(.menu, [role="menu"]) :is(kbd, .shortcut) {
734
+ margin-left: auto;
735
+ padding-left: 24px;
736
+ font: inherit;
737
+ }
738
+
739
+ /* Check mark column. */
740
+ :where(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"])::before,
741
+ :where(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked)::before {
742
+ content: "";
743
+ position: absolute;
744
+ top: 50%;
745
+ left: 3px;
746
+ width: 9px;
747
+ height: 8px;
748
+ margin-top: -4px;
749
+ background: var(--clio-art-s6-menucheck) 0 0 / 9px 8px no-repeat;
750
+ }
751
+
752
+ :where(.menu, [role="menu"]) > li:is(.checked, [aria-checked="true"]):is(:hover, :focus-within, .active)::before,
753
+ :where(.menu, [role="menu"]) > li > :is([aria-checked="true"], .checked):is(:hover, :focus-visible, .active)::before {
754
+ background-image: var(--clio-art-s6-menucheck-on);
755
+ }
756
+
757
+ /* Submenu arrow. */
758
+ :where(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"]))::after,
759
+ :where(.menu, [role="menu"]) > li > [aria-haspopup="true"]::after {
760
+ content: "";
761
+ position: absolute;
762
+ top: 50%;
763
+ right: 4px;
764
+ width: 6px;
765
+ height: 11px;
766
+ margin-top: -5.5px;
767
+ background: var(--clio-art-s6-submenu) 0 0 / 6px 11px no-repeat;
768
+ }
769
+
770
+ :where(.menu, [role="menu"]) > li:has(> :is(.menu, ul[role="menu"])):is(:hover, :focus-within, .active)::after {
771
+ background-image: var(--clio-art-s6-submenu-on);
772
+ }
773
+
774
+ /* Separator: System 6 draws a dotted grey rule through a full-height row. */
775
+ :where(.menu, [role="menu"]) > :is(li.separator, li[role="separator"], hr) {
776
+ display: block;
777
+ height: var(--clio-menu-separator-height);
778
+ min-height: 0;
779
+ margin: 0;
780
+ padding: 0;
781
+ border: 0;
782
+ background: var(--clio-menu-separator);
783
+ }
784
+
785
+ /* system.css divider items keep their label row and add the rule below. */
786
+ :where(.menu, [role="menu"]) > li.divider {
787
+ border-bottom: 1px dotted var(--clio-ink);
788
+ }
789
+
790
+ /* Controls. Bare elements are styled through :where(), so the rules carry no
791
+ specificity. State model (from AI System 6's fidelity contract): hover never
792
+ changes a push button; pressed comes only from pointer-down, Space or
793
+ Enter (:active) or from the .active class; disabled keeps full geometry. */
794
+
795
+ /* ---- Push buttons -------------------------------------------------------- */
796
+ :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]) {
797
+ display: inline-flex;
798
+ align-items: center;
799
+ justify-content: center;
800
+ box-sizing: border-box;
801
+ min-width: var(--clio-button-min-width);
802
+ min-height: var(--clio-control-height);
803
+ margin: 0;
804
+ padding: var(--clio-button-padding);
805
+ border: var(--clio-button-border);
806
+ border-radius: var(--clio-button-radius);
807
+ background: var(--clio-button-bg);
808
+ box-shadow: var(--clio-button-shadow);
809
+ color: var(--clio-button-fg);
810
+ font-family: var(--clio-font-chrome);
811
+ font-size: var(--clio-font-size);
812
+ font-stretch: var(--clio-font-stretch-text);
813
+ font-weight: var(--clio-button-weight);
814
+ line-height: 14px;
815
+ text-align: center;
816
+ text-decoration: none;
817
+ white-space: nowrap;
818
+ appearance: none;
819
+ -webkit-appearance: none;
820
+ cursor: default;
821
+ touch-action: manipulation;
822
+ -webkit-tap-highlight-color: transparent;
823
+ }
824
+
825
+ :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled, .disabled):is(:active, .active) {
826
+ background: var(--clio-button-active-bg);
827
+ box-shadow: var(--clio-button-active-shadow);
828
+ color: var(--clio-button-active-fg);
829
+ }
830
+
831
+ /* Default button: the ring that says Return will press it. */
832
+ :where(.default, .btn-default, button[type="submit"].default) {
833
+ border-radius: var(--clio-button-radius);
834
+ box-shadow: var(--clio-button-shadow), var(--clio-button-default-ring);
835
+ }
836
+
837
+ :where(.default, .btn-default):not(:disabled, .disabled):is(:active, .active) {
838
+ box-shadow: var(--clio-button-active-shadow), var(--clio-button-default-ring);
839
+ }
840
+
841
+ :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):is(:disabled, .disabled) {
842
+ border: var(--clio-button-disabled-border);
843
+ color: var(--clio-button-disabled-fg);
844
+ }
845
+
846
+ :where(button, .btn, .btn-default, .standard-button, input[type="button"], input[type="submit"], input[type="reset"]):focus-visible {
847
+ outline: var(--clio-focus-outline);
848
+ outline-offset: var(--clio-focus-offset);
849
+ }
850
+
851
+ :where(.default, .btn-default):focus-visible {
852
+ outline-offset: calc(var(--clio-focus-offset) + 4px);
853
+ }
854
+
855
+ /* ---- Check boxes ---------------------------------------------------------- */
856
+ :where(input[type="checkbox"]) {
857
+ position: relative;
858
+ flex: none;
859
+ box-sizing: border-box;
860
+ width: var(--clio-check-size);
861
+ height: var(--clio-check-size);
862
+ margin: 0;
863
+ border: var(--clio-check-border);
864
+ border-radius: 0;
865
+ background: var(--clio-check-bg);
866
+ box-shadow: var(--clio-check-shadow);
867
+ vertical-align: -2px;
868
+ appearance: none;
869
+ -webkit-appearance: none;
870
+ cursor: default;
871
+ }
872
+
873
+ :where(input[type="checkbox"]):checked {
874
+ background: var(--clio-check-mark), var(--clio-check-bg);
875
+ background-origin: var(--clio-check-mark-origin);
876
+ }
877
+
878
+ :where(input[type="checkbox"]):not(:disabled):active {
879
+ border-width: var(--clio-check-pressed-border-width);
880
+ }
881
+
882
+ :where(input[type="checkbox"]):disabled {
883
+ border-color: var(--clio-disabled);
884
+ opacity: 0.6;
885
+ }
886
+
887
+ /* ---- Radio buttons -------------------------------------------------------- */
888
+ :where(input[type="radio"]) {
889
+ flex: none;
890
+ box-sizing: border-box;
891
+ width: var(--clio-radio-size);
892
+ height: var(--clio-radio-size);
893
+ margin: 0;
894
+ border: 0;
895
+ border-radius: 0;
896
+ background: var(--clio-radio-off);
897
+ vertical-align: -2px;
898
+ appearance: none;
899
+ -webkit-appearance: none;
900
+ cursor: default;
901
+ }
902
+
903
+ :where(input[type="radio"]):checked {
904
+ background: var(--clio-radio-on);
905
+ }
906
+
907
+ :where(input[type="radio"]):not(:disabled):active {
908
+ background: var(--clio-radio-pressed);
909
+ }
910
+
911
+ :where(input[type="radio"]):checked:not(:disabled):active {
912
+ background: var(--clio-radio-pressed-on);
913
+ }
914
+
915
+ :where(input[type="radio"]):disabled {
916
+ opacity: 0.45;
917
+ }
918
+
919
+ :where(input[type="checkbox"], input[type="radio"]):focus-visible {
920
+ outline: var(--clio-focus-outline);
921
+ outline-offset: var(--clio-focus-offset);
922
+ }
923
+
924
+ :where(input[type="checkbox"], input[type="radio"]) + label,
925
+ :where(label):has(> :is(input[type="checkbox"], input[type="radio"])) {
926
+ font-family: var(--clio-font-chrome);
927
+ font-size: var(--clio-font-size);
928
+ }
929
+
930
+ :where(label):has(> :is(input[type="checkbox"], input[type="radio"])) {
931
+ display: inline-flex;
932
+ align-items: center;
933
+ gap: 6px;
934
+ }
935
+
936
+ :where(input[type="checkbox"], input[type="radio"]):disabled + label,
937
+ :where(label):has(> :is(input[type="checkbox"], input[type="radio"]):disabled) {
938
+ color: var(--clio-disabled);
939
+ }
940
+
941
+ /* ---- Text fields ---------------------------------------------------------- */
942
+ :where(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"],
943
+ input[type="number"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"],
944
+ input[type="datetime-local"], input[type="month"], input[type="week"], textarea) {
945
+ box-sizing: border-box;
946
+ min-height: var(--clio-field-height);
947
+ margin: 0;
948
+ padding: var(--clio-field-padding);
949
+ border: var(--clio-field-border);
950
+ border-radius: 0;
951
+ background: var(--clio-field-bg);
952
+ box-shadow: var(--clio-field-shadow);
953
+ color: var(--clio-ink);
954
+ font-family: var(--clio-font-text);
955
+ font-size: var(--clio-font-size);
956
+ font-stretch: var(--clio-font-stretch-text);
957
+ line-height: 14px;
958
+ appearance: none;
959
+ -webkit-appearance: none;
960
+ }
961
+
962
+ :where(textarea) {
963
+ display: block;
964
+ line-height: 16px;
965
+ resize: vertical;
966
+ }
967
+
968
+ :where(input, textarea):focus-visible {
969
+ outline: var(--clio-focus-outline);
970
+ outline-offset: var(--clio-focus-offset);
971
+ box-shadow: var(--clio-field-focus-shadow);
972
+ }
973
+
974
+ :where(input, textarea):disabled {
975
+ color: var(--clio-disabled);
976
+ }
977
+
978
+ :where(input, textarea)::placeholder {
979
+ color: var(--clio-disabled);
980
+ opacity: 1;
981
+ }
982
+
983
+ :where(label) {
984
+ font-family: var(--clio-font-chrome);
985
+ font-size: var(--clio-font-size);
986
+ }
987
+
988
+ /* ---- Pop-up menus (select) ------------------------------------------------ */
989
+ :where(select) {
990
+ box-sizing: border-box;
991
+ min-height: var(--clio-control-height);
992
+ margin: 0;
993
+ padding: var(--clio-popup-padding);
994
+ border: var(--clio-popup-border);
995
+ border-radius: var(--clio-popup-radius);
996
+ background: var(--clio-popup-arrow), var(--clio-popup-bg);
997
+ box-shadow: var(--clio-popup-shadow);
998
+ color: var(--clio-ink);
999
+ font-family: var(--clio-font-chrome);
1000
+ font-size: var(--clio-font-size);
1001
+ font-stretch: var(--clio-font-stretch-text);
1002
+ font-weight: var(--clio-popup-weight);
1003
+ line-height: 16px;
1004
+ appearance: none;
1005
+ -webkit-appearance: none;
1006
+ cursor: default;
1007
+ }
1008
+
1009
+ :where(select):focus-visible {
1010
+ outline: var(--clio-focus-outline);
1011
+ outline-offset: var(--clio-focus-offset);
1012
+ }
1013
+
1014
+ :where(select):disabled {
1015
+ color: var(--clio-disabled);
1016
+ }
1017
+
1018
+ /* A list box: <select multiple> or <select size="n">. */
1019
+ :where(select[multiple], select[size]:not([size="1"])) {
1020
+ min-height: 0;
1021
+ padding: 0;
1022
+ border: var(--clio-list-border);
1023
+ border-radius: 0;
1024
+ background: var(--clio-list-bg);
1025
+ box-shadow: var(--clio-list-shadow);
1026
+ font-family: var(--clio-font-text);
1027
+ }
1028
+
1029
+ :where(select[multiple], select[size]:not([size="1"])) option {
1030
+ min-height: var(--clio-list-row);
1031
+ padding: 0 4px;
1032
+ }
1033
+
1034
+ :where(select[multiple], select[size]:not([size="1"])) option:checked {
1035
+ background: var(--clio-selection-bg) linear-gradient(var(--clio-selection-bg), var(--clio-selection-bg));
1036
+ color: var(--clio-selection-fg);
1037
+ }
1038
+
1039
+ /* ---- List boxes ------------------------------------------------------------ */
1040
+ :where(.listbox, ul[role="listbox"], ol[role="listbox"], div[role="listbox"]) {
1041
+ box-sizing: border-box;
1042
+ margin: 0;
1043
+ padding: 0;
1044
+ overflow: auto;
1045
+ list-style: none;
1046
+ border: var(--clio-list-border);
1047
+ background: var(--clio-list-bg);
1048
+ box-shadow: var(--clio-list-shadow);
1049
+ font-family: var(--clio-font-text);
1050
+ font-size: var(--clio-font-size);
1051
+ }
1052
+
1053
+ :where(.listbox, [role="listbox"]) > :is(li, [role="option"]) {
1054
+ min-height: var(--clio-list-row);
1055
+ padding: 0 4px;
1056
+ line-height: var(--clio-list-row);
1057
+ white-space: nowrap;
1058
+ cursor: default;
1059
+ }
1060
+
1061
+ :where(.listbox, [role="listbox"]) > :is(li, [role="option"]):is([aria-selected="true"], .selected) {
1062
+ background: var(--clio-selection-bg);
1063
+ color: var(--clio-selection-fg);
1064
+ }
1065
+
1066
+ :where(.listbox, [role="listbox"]) > :is(li, [role="option"]):focus-visible {
1067
+ outline: var(--clio-focus-outline);
1068
+ outline-offset: -2px;
1069
+ }
1070
+
1071
+ /* ---- Group boxes (fieldset) ---------------------------------------------- */
1072
+ :where(fieldset) {
1073
+ margin: 0;
1074
+ padding: 8px 10px 10px;
1075
+ border: var(--clio-group-border);
1076
+ background: var(--clio-group-bg);
1077
+ box-shadow: var(--clio-group-shadow);
1078
+ }
1079
+
1080
+ :where(fieldset) > :where(legend) {
1081
+ padding: 0 4px;
1082
+ background: var(--clio-pane-bg);
1083
+ font-family: var(--clio-font-chrome);
1084
+ font-size: var(--clio-font-size);
1085
+ font-weight: var(--clio-chrome-weight);
1086
+ }
1087
+
1088
+ /* ---- Progress -------------------------------------------------------------- */
1089
+ :where(progress) {
1090
+ box-sizing: border-box;
1091
+ width: 100%;
1092
+ height: var(--clio-progress-height);
1093
+ margin: 0;
1094
+ border: var(--clio-progress-border);
1095
+ border-radius: 0;
1096
+ background: var(--clio-progress-bg);
1097
+ box-shadow: var(--clio-progress-shadow);
1098
+ color: var(--clio-ink);
1099
+ appearance: none;
1100
+ -webkit-appearance: none;
1101
+ }
1102
+
1103
+ :where(progress)::-webkit-progress-bar {
1104
+ background: var(--clio-progress-bg);
1105
+ }
1106
+
1107
+ :where(progress)::-webkit-progress-value {
1108
+ background: var(--clio-progress-fill);
1109
+ }
1110
+
1111
+ :where(progress)::-moz-progress-bar {
1112
+ background: var(--clio-progress-fill);
1113
+ }
1114
+
1115
+ /* ---- Tabs -------------------------------------------------------------------
1116
+ System 6 had no tab control; the System 6 tab here is an adaptation (a
1117
+ boxed label that joins its panel). Platinum draws the real Mac OS 9 tab. */
1118
+ :where([role="tablist"], .tabs) {
1119
+ display: flex;
1120
+ align-items: flex-end;
1121
+ gap: 0;
1122
+ margin: 0;
1123
+ padding: 0 8px;
1124
+ list-style: none;
1125
+ }
1126
+
1127
+ :where([role="tablist"], .tabs) > :is([role="tab"], li, button) {
1128
+ position: relative;
1129
+ display: inline-flex;
1130
+ align-items: center;
1131
+ box-sizing: border-box;
1132
+ min-width: 0;
1133
+ min-height: var(--clio-tab-height);
1134
+ margin: 0 -1px -1px 0;
1135
+ padding: 0 12px;
1136
+ border: 1px solid var(--clio-ink);
1137
+ border-radius: 0;
1138
+ background: var(--clio-tab-bg);
1139
+ box-shadow: none;
1140
+ color: var(--clio-ink);
1141
+ font-family: var(--clio-font-chrome);
1142
+ font-size: var(--clio-font-size);
1143
+ font-weight: var(--clio-chrome-weight);
1144
+ cursor: default;
1145
+ }
1146
+
1147
+ :where([role="tablist"], .tabs) > :is([role="tab"], li, button):is([aria-selected="true"], .active) {
1148
+ z-index: 1;
1149
+ border-bottom-color: var(--clio-tab-active-bg);
1150
+ background: var(--clio-tab-active-bg);
1151
+ color: var(--clio-ink);
1152
+ }
1153
+
1154
+ :where([role="tabpanel"], .tab-panel) {
1155
+ padding: 10px;
1156
+ border: var(--clio-tab-panel-border);
1157
+ background: var(--clio-tab-panel-bg);
1158
+ }
1159
+
1160
+ /* ---- Desktop icons ---------------------------------------------------------- */
1161
+ :where(.icon) {
1162
+ display: inline-flex;
1163
+ flex-direction: column;
1164
+ align-items: center;
1165
+ justify-content: flex-start;
1166
+ gap: 2px;
1167
+ width: 80px;
1168
+ min-width: 0;
1169
+ min-height: 0;
1170
+ margin: 0;
1171
+ padding: 0;
1172
+ border: 0;
1173
+ border-radius: 0;
1174
+ background: none;
1175
+ box-shadow: none;
1176
+ color: var(--clio-ink);
1177
+ font-family: var(--clio-font-text);
1178
+ font-size: var(--clio-font-size-small);
1179
+ text-align: center;
1180
+ cursor: default;
1181
+ }
1182
+
1183
+ :where(.icon) > :is(img, svg, .icon-image) {
1184
+ width: 32px;
1185
+ height: 32px;
1186
+ image-rendering: pixelated;
1187
+ }
1188
+
1189
+ :where(.icon) > :is(figcaption, span, .icon-label) {
1190
+ max-width: 100%;
1191
+ padding: 0 2px;
1192
+ background: var(--clio-label-bg);
1193
+ color: var(--clio-label-fg);
1194
+ line-height: 13px;
1195
+ }
1196
+
1197
+ :where(.icon):is(.selected, [aria-selected="true"], [aria-pressed="true"]) > :is(img, svg, .icon-image) {
1198
+ filter: var(--clio-icon-selected-filter, invert(1));
1199
+ }
1200
+
1201
+ :where(.icon):is(.selected, [aria-selected="true"], [aria-pressed="true"]) > :is(figcaption, span, .icon-label) {
1202
+ background: var(--clio-label-selected-bg);
1203
+ color: var(--clio-label-selected-fg);
1204
+ }
1205
+
1206
+ /* Dialogs and alerts.
1207
+ .modal-dialog / .alert-box: the double-framed modal box (dBoxProc).
1208
+ .standard-dialog: the plain box with a drop shadow (altDBoxProc).
1209
+ .modeless-dialog: a movable dialog, which is a .window.
1210
+ Use them on <dialog> or on a <div role="dialog">. system.css's
1211
+ .outer-border / .inner-border wrappers are accepted and draw nothing extra. */
1212
+ :where(.modal-dialog, .alert-box, dialog.modal) {
1213
+ box-sizing: border-box;
1214
+ max-width: 100%;
1215
+ margin: 0;
1216
+ padding: var(--clio-modal-padding);
1217
+ border: var(--clio-modal-border);
1218
+ background: var(--clio-dialog-bg);
1219
+ box-shadow: var(--clio-modal-frame);
1220
+ color: var(--clio-ink);
1221
+ }
1222
+
1223
+ :where(.standard-dialog) {
1224
+ box-sizing: border-box;
1225
+ max-width: 100%;
1226
+ margin: 0;
1227
+ padding: 12px 14px;
1228
+ border: var(--clio-plain-dialog-border);
1229
+ background: var(--clio-dialog-bg);
1230
+ box-shadow: var(--clio-plain-dialog-shadow);
1231
+ color: var(--clio-ink);
1232
+ }
1233
+
1234
+ :where(dialog):is(.modal-dialog, .alert-box, .standard-dialog, .modal)::backdrop {
1235
+ background: transparent;
1236
+ }
1237
+
1238
+ :where(.modal-dialog, .alert-box, .standard-dialog) :where(.outer-border, .inner-border) {
1239
+ padding: 0;
1240
+ border: 0;
1241
+ }
1242
+
1243
+ /* Alert layout: icon on the left, message, buttons bottom-right. */
1244
+ :where(.alert-box) {
1245
+ display: grid;
1246
+ grid-template-columns: auto 1fr;
1247
+ column-gap: 16px;
1248
+ row-gap: 12px;
1249
+ align-items: start;
1250
+ }
1251
+
1252
+ :where(.alert-box) > :where(.alert-icon) {
1253
+ grid-row: 1;
1254
+ width: 32px;
1255
+ height: 32px;
1256
+ }
1257
+
1258
+ :where(.alert-box) > :where(.alert-contents, .modal-contents, p) {
1259
+ grid-column: 2;
1260
+ margin: 0;
1261
+ }
1262
+
1263
+ :where(.alert-box) > :where(.alert-buttons, .dialog-buttons) {
1264
+ grid-column: 1 / -1;
1265
+ }
1266
+
1267
+ :where(.dialog-buttons, .alert-buttons) {
1268
+ display: flex;
1269
+ flex-wrap: wrap;
1270
+ justify-content: flex-end;
1271
+ gap: 12px;
1272
+ margin-top: 12px;
1273
+ }
1274
+
1275
+ /* An alert icon drawn here, not Apple's: a rounded speech box with "!". */
1276
+ :where(.alert-icon.caution, .alert-icon.note, .alert-icon.stop) {
1277
+ display: block;
1278
+ box-sizing: border-box;
1279
+ border: 2px solid var(--clio-ink);
1280
+ border-radius: 6px;
1281
+ background: var(--clio-paper);
1282
+ color: var(--clio-ink);
1283
+ font: 700 22px/28px var(--clio-font-chrome);
1284
+ text-align: center;
1285
+ }
1286
+
1287
+ :where(.alert-icon.caution)::before { content: "!"; }
1288
+ :where(.alert-icon.note)::before { content: "i"; }
1289
+ :where(.alert-icon.stop) { border-radius: 50%; }
1290
+ :where(.alert-icon.stop)::before { content: "\00D7"; }
1291
+
1292
+ /* Scroll bars, for scroll areas clio.css owns (.window-pane, .listbox,
1293
+ textarea, list-box selects) and for anything you mark with .clio-scroll.
1294
+ Add class="clio-scrollbars" to <html> to give every scroll area the era's
1295
+ scroll bar.
1296
+
1297
+ WebKit/Blink draw the full bar: two arrow boxes, the patterned lane and the
1298
+ scroll box. The scroll box is proportional to the content here (a browser
1299
+ limit), where System 6 drew a fixed 16px square. Firefox has no scroll bar
1300
+ parts, so it gets the era's colours through scrollbar-color. */
1301
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar,
1302
+ :where(html.clio-scrollbars)::-webkit-scrollbar {
1303
+ width: var(--clio-scrollbar-size);
1304
+ height: var(--clio-scrollbar-size);
1305
+ background: var(--clio-paper);
1306
+ }
1307
+
1308
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track,
1309
+ :where(html.clio-scrollbars)::-webkit-scrollbar-track {
1310
+ background: var(--clio-scrollbar-track);
1311
+ box-shadow: var(--clio-scrollbar-track-shadow);
1312
+ }
1313
+
1314
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:vertical,
1315
+ :where(html.clio-scrollbars)::-webkit-scrollbar-track:vertical {
1316
+ border-left: 1px solid var(--clio-ink);
1317
+ }
1318
+
1319
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-track:horizontal,
1320
+ :where(html.clio-scrollbars)::-webkit-scrollbar-track:horizontal {
1321
+ border-top: 1px solid var(--clio-ink);
1322
+ }
1323
+
1324
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb,
1325
+ :where(html.clio-scrollbars)::-webkit-scrollbar-thumb {
1326
+ min-width: var(--clio-scrollbar-size);
1327
+ min-height: var(--clio-scrollbar-size);
1328
+ border: var(--clio-scrollbar-thumb-border);
1329
+ background: var(--clio-scrollbar-thumb-bg);
1330
+ box-shadow: var(--clio-scrollbar-thumb-shadow);
1331
+ }
1332
+
1333
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-thumb:horizontal,
1334
+ :where(html.clio-scrollbars)::-webkit-scrollbar-thumb:horizontal {
1335
+ background: var(--clio-scrollbar-thumb-bg-horizontal, var(--clio-scrollbar-thumb-bg));
1336
+ box-shadow: var(--clio-scrollbar-thumb-shadow-horizontal, var(--clio-scrollbar-thumb-shadow));
1337
+ }
1338
+
1339
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:start:decrement,
1340
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:end:increment,
1341
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:start:decrement,
1342
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:end:increment {
1343
+ display: block;
1344
+ width: var(--clio-scrollbar-size);
1345
+ height: var(--clio-scrollbar-size);
1346
+ background-color: var(--clio-scrollbar-button-bg);
1347
+ background-position: center;
1348
+ background-repeat: no-repeat;
1349
+ box-shadow: var(--clio-scrollbar-button-shadow);
1350
+ }
1351
+
1352
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement,
1353
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement {
1354
+ border-left: 1px solid var(--clio-ink);
1355
+ border-bottom: 1px solid var(--clio-ink);
1356
+ background-image: var(--clio-scrollbar-up);
1357
+ }
1358
+
1359
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment,
1360
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment {
1361
+ border-left: 1px solid var(--clio-ink);
1362
+ border-top: 1px solid var(--clio-ink);
1363
+ background-image: var(--clio-scrollbar-down);
1364
+ }
1365
+
1366
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement,
1367
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement {
1368
+ border-top: 1px solid var(--clio-ink);
1369
+ border-right: 1px solid var(--clio-ink);
1370
+ background-image: var(--clio-scrollbar-left);
1371
+ }
1372
+
1373
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment,
1374
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment {
1375
+ border-top: 1px solid var(--clio-ink);
1376
+ border-left: 1px solid var(--clio-ink);
1377
+ background-image: var(--clio-scrollbar-right);
1378
+ }
1379
+
1380
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:decrement:active,
1381
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:decrement:active {
1382
+ background-image: var(--clio-scrollbar-up-on);
1383
+ }
1384
+
1385
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:vertical:increment:active,
1386
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:vertical:increment:active {
1387
+ background-image: var(--clio-scrollbar-down-on);
1388
+ }
1389
+
1390
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:decrement:active,
1391
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:decrement:active {
1392
+ background-image: var(--clio-scrollbar-left-on);
1393
+ }
1394
+
1395
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:horizontal:increment:active,
1396
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:horizontal:increment:active {
1397
+ background-image: var(--clio-scrollbar-right-on);
1398
+ }
1399
+
1400
+ /* Only the single arrow box at each end, as on the Mac. */
1401
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:start:increment,
1402
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-button:end:decrement,
1403
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:start:increment,
1404
+ :where(html.clio-scrollbars)::-webkit-scrollbar-button:end:decrement {
1405
+ display: none;
1406
+ }
1407
+
1408
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, .clio-scrollbars *)::-webkit-scrollbar-corner,
1409
+ :where(html.clio-scrollbars)::-webkit-scrollbar-corner {
1410
+ border-top: 1px solid var(--clio-ink);
1411
+ border-left: 1px solid var(--clio-ink);
1412
+ background: var(--clio-scrollbar-corner);
1413
+ }
1414
+
1415
+ @supports not selector(::-webkit-scrollbar) {
1416
+ :where(.window-pane, .listbox, [role="listbox"], textarea, select[multiple], .clio-scroll, html.clio-scrollbars, .clio-scrollbars *) {
1417
+ scrollbar-color: var(--clio-scrollbar-thumb-color, var(--clio-ink)) var(--clio-scrollbar-track-color, #c0c0c0);
1418
+ }
1419
+ }
1420
+
1421
+ /* Adaptations the historical machines never needed. Historical sizes are
1422
+ calibration, not a cage: on a touch screen the controls grow to the
1423
+ "coarse pointer" sizes from AI System 6's fidelity contract, without any
1424
+ transform: scale() of the interface. */
1425
+ @media (pointer: coarse) {
1426
+ :root,
1427
+ [data-era] {
1428
+ --clio-control-height: 36px;
1429
+ --clio-field-height: 40px;
1430
+ --clio-menubar-height: 32px;
1431
+ --clio-menu-item-height: 32px;
1432
+ --clio-list-row: 32px;
1433
+ --clio-tab-height: 32px;
1434
+ }
1435
+
1436
+ /* The title-bar boxes keep their 11px art; their hit area grows to 44px. */
1437
+ .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse)::after {
1438
+ content: "";
1439
+ position: absolute;
1440
+ inset: -17px;
1441
+ }
1442
+ }
1443
+
1444
+ /* Windows High Contrast and other forced-colour modes: give the choice
1445
+ controls back to the system so their state stays visible. */
1446
+ @media (forced-colors: active) {
1447
+ :where(input[type="checkbox"], input[type="radio"]) {
1448
+ appearance: auto;
1449
+ -webkit-appearance: auto;
1450
+ }
1451
+
1452
+ .title-bar,
1453
+ .inactive-title-bar {
1454
+ forced-color-adjust: none;
1455
+ }
1456
+ }
1457
+
1458
+ @media print {
1459
+ :where(.window, .modal-dialog, .alert-box, .standard-dialog) {
1460
+ box-shadow: none;
1461
+ }
1462
+ }