internal/web/static/style.css
2799 lines · 103931 bytes
1/* gitbay stylesheet. Tokens first, on :root and again in the dark media
2 query; components use tokens only. Two accents with separate jobs:
3 blue is what you can do (links, primary buttons, focus, pressed
4 toggles), orange is where you are and what wants you (current tab,
5 rail counts, pending state, unverified signatures). Orange is never a
6 button ground. internal/web/tokens_test.go measures every token;
7 internal/web/classes_test.go checks every template class has a rule.
8 No external requests: fonts are served from this origin. */
9
10@font-face {
11 font-family: "Atkinson Hyperlegible Next";
12 font-style: normal;
13 font-weight: 400 700;
14 font-display: swap;
15 src: url(/static/fonts/atkinson-next-roman.woff2) format("woff2");
16}
17@font-face {
18 font-family: "Atkinson Hyperlegible Next";
19 font-style: italic;
20 font-weight: 400 700;
21 font-display: swap;
22 src: url(/static/fonts/atkinson-next-italic.woff2) format("woff2");
23}
24@font-face {
25 font-family: "Atkinson Hyperlegible Mono";
26 font-style: normal;
27 font-weight: 400 600;
28 font-display: swap;
29 src: url(/static/fonts/atkinson-mono-roman.woff2) format("woff2");
30}
31
32:root {
33 /* declare native light+dark support: correct form controls and
34 scrollbars per scheme, and opt out of browser auto-darkening */
35 color-scheme: light dark;
36
37 /* grounds: canvas, card, surface and inset give clear elevation in light and dark */
38 --canvas: #f7f8fa;
39 --card: #ffffff;
40 --card-line: #cfd5df;
41 --surface: #e3e6ed;
42 --inset: #ffffff;
43 --hover: #dce0e8;
44 --line: #878e99; /* >= 3:1 on #f7f8fa canvas */
45 --faint: #d8dce2;
46
47 /* ink */
48 --fg: #1c1f24;
49 --muted: #5a6270;
50 --neutral: var(--muted);
51
52 /* blue: what you can do. --link is text, --fill is a ground; one blue
53 cannot clear 4.5:1 as text and 3:1 as a ground in both schemes. */
54 --link: #0033d6;
55 --fill: #0000f0;
56 --fill-fg: #ffffff;
57 --focus: var(--link);
58
59 /* orange: where you are, what wants you. Two cuts because the floor
60 differs by size: --mark for bars, --warn at text size. */
61 --mark: #e4572e;
62 --warn: #a8380b;
63
64 /* state */
65 --ok: #0a7536;
66 --bad: #b91c1c;
67 --done: #6b21a8;
68
69 /* diff row tints: enough to scan, light enough that the syntax
70 palette stays legible on them (TestSyntaxPaletteContrast) */
71 --diff-add: #e4f6ea;
72 --diff-del: #fdeaea;
73
74 /* the rail is dark slate in both schemes: the one brand constant */
75 --shell-bg: #111318;
76 --shell-fg: #f2f2f2;
77 --shell-muted: #98a0ad;
78 --shell-line: #232730;
79 --shell-hover: #1c2029;
80 --shell-mark: #ff6b3d;
81
82 /* the languages' own colours; the same in both schemes */
83 --lang-go: #00add8;
84 --lang-rust: #dea584;
85 --lang-c: #555555;
86 --lang-python: #3572a5;
87 --lang-javascript: #f1e05a;
88 --lang-typescript: #3178c6;
89 --lang-shell: #89e051;
90 --lang-ruby: #701516;
91 --lang-java: #b07219;
92 --lang-swift: #f05138;
93 --lang-html: #e34c26;
94 --lang-css: #563d7c;
95 --lang-org: #77aa99;
96 --lang-markdown: #083fa1;
97 --lang-emacs-lisp: #c065db;
98 --lang-nix: #7e7eff;
99 --lang-sql: #e38c00;
100
101 --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont,
102 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
103 --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono",
104 SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
105
106 /* 12, 13, 14, 16, 20, 24, 32 */
107 --fs-0: 0.75rem;
108 --fs-1: 0.8125rem;
109 --fs-2: 0.875rem;
110 --fs-3: 1rem;
111 --fs-4: 1.25rem;
112 --fs-5: 1.5rem;
113 --fs-6: 2rem;
114
115 /* 4, 8, 12, 16, 24, 32, 48 */
116 --sp-1: 4px;
117 --sp-2: 8px;
118 --sp-3: 12px;
119 --sp-4: 16px;
120 --sp-5: 24px;
121 --sp-6: 32px;
122 --sp-7: 48px;
123
124 /* the rail: a column the width of one hit target, a row one tall */
125 --rail-hit: 44px;
126 --rail-strip-h: 48px;
127 --rail-mark: 24px;
128 --rail-mark-box: 32px;
129
130 /* the one page container: header content, main and footer align on it */
131 --container: 100rem;
132
133 --r-ctl: 4px; /* controls and chips */
134 --r-card: 6px; /* cards, lists, code blocks */
135 --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
136
137 /* the native select arrow cannot be restyled, so draw our own;
138 --chev carries the stroke colour per scheme */
139 --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a6270' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
140}
141@media (prefers-color-scheme: dark) {
142 :root {
143 /* the scheme in force, not just the tokens: light-dark() reads it,
144 and themedCSS repeats this block for a page stamped dark */
145 color-scheme: dark;
146
147 --canvas: #101114;
148 --card: #16181d;
149 --card-line: #2d3139;
150 --surface: #212429;
151 --inset: #0b0c0e;
152 --hover: #2b2f36;
153 --line: #61666f;
154 --faint: #2f333a;
155
156 --fg: #e9eaec;
157 --muted: #a3a9b3;
158 --neutral: var(--muted);
159
160 --link: #8b9bff;
161 --fill: #4d61f0;
162 --fill-fg: #ffffff;
163 --focus: var(--link);
164
165 --mark: #ff6b3d;
166 --warn: #ff8a63;
167
168 --ok: #3fce7a;
169 --bad: #ff6b6b;
170 --done: #c084fc;
171
172 --diff-add: #0d2a18;
173 --diff-del: #2c1113;
174
175 --shell-bg: #111318;
176 --shell-fg: #f2f2f2;
177 --shell-muted: #98a0ad;
178 --shell-line: #232730;
179 --shell-hover: #1c2029;
180 --shell-mark: #ff6b3d;
181
182 /* the languages' own colours; the same in both schemes */
183 --lang-go: #00add8;
184 --lang-rust: #dea584;
185 --lang-c: #555555;
186 --lang-python: #3572a5;
187 --lang-javascript: #f1e05a;
188 --lang-typescript: #3178c6;
189 --lang-shell: #89e051;
190 --lang-ruby: #701516;
191 --lang-java: #b07219;
192 --lang-swift: #f05138;
193 --lang-html: #e34c26;
194 --lang-css: #563d7c;
195 --lang-org: #77aa99;
196 --lang-markdown: #083fa1;
197 --lang-emacs-lisp: #c065db;
198 --lang-nix: #7e7eff;
199 --lang-sql: #e38c00;
200
201 --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
202 --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3a9b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
203 }
204}
205
206/* a page stamped light keeps the light scheme under a dark OS: the token
207 block above is guarded for it, and this is the other half of that */
208:root[data-theme="light"] { color-scheme: light; }
209
210/* ---- base ---- */
211* { box-sizing: border-box; }
212html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
213body {
214 margin: 0;
215 background: var(--canvas);
216 color: var(--fg);
217 font: var(--fs-3)/1.5 var(--sans);
218 min-height: 100vh;
219}
220h1, h2, h3 { line-height: 1.25; font-weight: 600; }
221h1 { font-size: var(--fs-5); margin: 0 0 var(--sp-3); text-wrap: balance; }
222h2 { font-size: var(--fs-4); margin: var(--sp-6) 0 var(--sp-3); }
223h3 { font-size: var(--fs-3); margin: var(--sp-5) 0 var(--sp-2); }
224p { margin: 0 0 var(--sp-3); }
225a { color: var(--link); text-decoration: none; }
226a:hover { text-decoration: underline; }
227/* a link inside running text is told apart by its underline: link and
228 muted text are 1.07:1 apart in dark, and colour alone is not a cue
229 (#232). Navigation, chips and buttons keep position as their cue. */
230p a, .syscomment a { text-decoration: underline; }
231/* a title or a path is the whole line: position is the cue */
232p a.button, p a.btn, p a.chip, .repotitle a, p.title a, .pathbar a, .pager a { text-decoration: none; }
233/* where a link shares its line with other text the underline is the cue
234 again, path bar or not: a crumb beside the file name, a heading that
235 names an owner, an empty-state note (#226) */
236.crumbs a, h1 a, li.empty a { text-decoration: underline; }
237a.xref { color: var(--link); text-decoration: none; }
238
239code, pre, .mono, .code, td.mode, td.size {
240 font-family: var(--mono);
241 font-size: var(--fs-1);
242}
243.mono { overflow-wrap: anywhere; }
244
245/* ---- focus: one authored ring, so keyboard position is never the
246 browser's guess ---- */
247:focus-visible {
248 outline: 2px solid var(--focus);
249 outline-offset: 2px;
250 border-radius: 1px;
251}
252/* the rail is black in both schemes and --focus is a dark blue in the
253 light one — a ring nobody could see there */
254.rail :focus-visible { outline-color: var(--shell-mark); }
255
256/* visually hidden, still read aloud */
257.vh {
258 position: absolute;
259 width: 1px; height: 1px;
260 margin: -1px; padding: 0; border: 0;
261 clip-path: inset(50%);
262 overflow: hidden;
263 white-space: nowrap;
264}
265
266/* ---- skip link: the rail runs ahead of the content in source order ---- */
267a.skip {
268 position: absolute;
269 left: var(--sp-3); top: -3rem;
270 z-index: 50;
271 display: flex;
272 align-items: center;
273 min-height: var(--rail-hit);
274 background: var(--fill);
275 color: var(--fill-fg);
276 padding: var(--sp-2) var(--sp-4);
277 font-weight: 600;
278}
279a.skip:focus { top: var(--sp-3); text-decoration: none; }
280
281/* ---- rail: one row of glyphs across the top, no labels ----
282 One strip the height of a hit target, at every width: fixed squares,
283 no wrapping and no scrolling. Every item is a square link carrying an
284 inline svg, its name in an aria-label and in a visually hidden span, so
285 the nav reads the same to a screen reader as the old text list did. */
286.rail {
287 height: 48px;
288 background: var(--shell-bg);
289 color: var(--shell-fg);
290 border-bottom: 1px solid var(--shell-line);
291 display: flex;
292 flex-direction: row;
293 align-items: center;
294 gap: var(--sp-1);
295 padding: 0 var(--sp-3);
296}
297a.brand {
298 display: inline-flex;
299 align-items: center;
300 justify-content: center;
301 gap: var(--sp-2);
302 flex: none;
303 height: 32px;
304 padding: 0 var(--sp-2);
305 border-radius: var(--r-ctl);
306 color: var(--shell-fg);
307 font-size: var(--fs-2);
308 font-weight: 600;
309 letter-spacing: -0.01em;
310}
311a.brand:hover { background: var(--shell-hover); text-decoration: none; }
312a.brand[aria-current="page"] { background: var(--shell-hover); }
313a.brand svg.mark { display: block; flex: none; width: var(--rail-mark); height: var(--rail-mark); }
314.brandname { display: inline; }
315@media (max-width: 44rem) {
316 .brandname { display: none; }
317}
318
319ul.raillist {
320 list-style: none;
321 margin: 0;
322 padding: 0;
323 display: flex;
324 align-items: center;
325 gap: var(--sp-1);
326 min-width: 0;
327}
328.railgap { flex: 1; }
329.railicon {
330 position: relative;
331 display: inline-flex;
332 align-items: center;
333 justify-content: center;
334 gap: 6px;
335 flex: none;
336 min-width: 32px;
337 height: 32px;
338 padding: 0 var(--sp-2);
339 border: 0;
340 border-radius: var(--r-ctl);
341 background: none;
342 color: var(--shell-fg);
343 font-size: var(--fs-2);
344 font-weight: 500;
345 cursor: pointer;
346}
347.railicon:hover { background: var(--shell-hover); text-decoration: none; }
348/* orange marks position along the bottom edge — the rail's only accent */
349.railicon[aria-current] {
350 background: var(--shell-hover);
351 box-shadow: inset 0 -2px 0 var(--shell-mark);
352}
353.raillabel { display: none; }
354@media (min-width: 64rem) {
355 .raillabel { display: inline; }
356}
357.railcaret {
358 font-size: 10px;
359 color: var(--shell-muted);
360 line-height: 1;
361}
362.raildrop-trigger { list-style: none; }
363.railpins-item { display: list-item; }
364@media (max-width: 44rem) {
365 .railpins-item { display: none; }
366}
367.count {
368 font-size: var(--fs-0);
369 font-weight: 600;
370 letter-spacing: 0;
371 background: var(--shell-mark);
372 color: var(--shell-bg);
373 padding: 0 5px;
374 border-radius: var(--r-ctl);
375 margin-left: auto;
376}
377/* the unread count is a badge on the bell's corner, not a trailing number */
378.railicon .count {
379 position: absolute;
380 top: 0;
381 right: 0;
382 margin: 0;
383 padding: 0 4px;
384 line-height: 1.35;
385}
386.railfoot {
387 flex: none;
388 display: flex;
389 align-items: center;
390 gap: var(--sp-1);
391 min-width: 0;
392}
393.railfoot a { color: var(--shell-fg); }
394.railfoot form { margin: 0; }
395a.railuser {
396 display: flex;
397 align-items: center;
398 justify-content: center;
399 flex: none;
400 width: var(--rail-hit);
401 height: var(--rail-strip-h);
402}
403a.railuser:hover { text-decoration: none; }
404/* the phone rail's overflow: every square .railopt hides, and log out,
405 as a labelled list under the rail. Shown only below 34rem. */
406.railmore { display: none; position: relative; }
407.railmore > summary { list-style: none; cursor: pointer; }
408.railmore > summary::-webkit-details-marker { display: none; }
409.railmore[open] > summary { background: var(--shell-hover); }
410.raildrop {
411 position: absolute;
412 top: 100%;
413 right: 0;
414 z-index: 20;
415 min-width: 12rem;
416 padding: var(--sp-1) 0;
417 background: var(--shell-bg);
418 border: 1px solid var(--shell-line);
419 border-radius: var(--r-card);
420 box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
421}
422.raildrop a, .raildrop button {
423 display: flex;
424 align-items: center;
425 /* a button's own default is centred; the rows read as one list */
426 justify-content: flex-start;
427 gap: var(--sp-3);
428 width: 100%;
429 min-height: var(--rail-hit);
430 padding: 0 var(--sp-4);
431 border: 0;
432 background: none;
433 font: inherit;
434 font-size: var(--fs-2);
435 text-align: left;
436 color: var(--shell-fg);
437 cursor: pointer;
438}
439.raildrop a:hover, .raildrop button:hover { background: var(--shell-hover); text-decoration: none; }
440.raildrop form { margin: 0; }
441.raildrop svg { flex: none; }
442a.railuser .avatar { width: var(--rail-mark); height: var(--rail-mark); }
443.avatar {
444 display: inline-grid;
445 place-items: center;
446 width: 22px; height: 22px;
447 flex: none;
448 border-radius: 50%;
449 background: var(--fill);
450 color: var(--fill-fg);
451 font-size: var(--fs-0);
452 font-weight: 600;
453}
454
455/* ---- shell: the rail above, then the pane, which fills the rest of the
456 viewport so the footer sits at the bottom of a short page ---- */
457.shell { display: flex; flex-direction: column; min-height: 100vh; }
458.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
459main.content {
460 flex: 1;
461 width: 100%;
462 padding: var(--sp-5) var(--sp-6) var(--sp-7);
463}
464/* the container is the default width and what `wide` names; reading and
465 bounded follow, so equal specificity gives them the cascade */
466main.content, main.wide, footer { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; }
467main.reading { max-width: calc(72rem + 2 * var(--sp-6)); margin: 0 auto; }
468main.bounded { max-width: calc(48rem + 2 * var(--sp-6)); margin: 0 auto; }
469footer {
470 width: 100%;
471 padding: var(--sp-4) var(--sp-6);
472 border-top: 1px solid var(--faint);
473 color: var(--muted);
474 font-size: var(--fs-1);
475}
476footer p { margin: 0; }
477footer a { color: var(--muted); text-decoration: underline; }
478footer a:hover { color: var(--link); }
479
480/* ---- repository header ---- */
481.repohead {
482 padding: var(--sp-5) 0 0;
483 border-bottom: 1px solid var(--card-line);
484 background: var(--card);
485}
486.repohead .wrap { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; padding: 0 var(--sp-6); }
487.identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
488.grow { flex: 1; }
489/* h1 on the repo home, p elsewhere so each page keeps its own h1 — but
490 identical in size, because the tabs sit below and navigation must not
491 move when you use it */
492.repotitle {
493 margin: 0;
494 font-size: var(--fs-4);
495 font-weight: 600;
496 line-height: 1.25;
497}
498.repotitle a { color: var(--fg); }
499.repotitle a.owner { color: var(--muted); font-weight: 400; }
500.repotitle a:hover { color: var(--link); text-decoration: none; }
501.repotitle .sep { color: var(--muted); margin: 0 2px; font-weight: 400; }
502.repodesc {
503 margin: 0 0 0 var(--sp-2);
504 color: var(--muted);
505 font-size: var(--fs-2);
506 display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
507 min-width: 0;
508}
509.repodesc a.site { color: var(--muted); }
510.repodesc a.site:hover { color: var(--link); }
511.repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); }
512
513nav.tabs {
514 display: flex;
515 gap: var(--sp-1);
516 margin-top: var(--sp-3);
517 margin-bottom: var(--sp-4);
518 overflow-x: auto;
519 /* with overflow-y left visible the browser computes it to auto, which
520 is a vertical drag on touch; the strip scrolls sideways only */
521 overflow-y: hidden;
522 scrollbar-width: none;
523}
524nav.tabs::-webkit-scrollbar { display: none; }
525nav.tabs a {
526 display: inline-flex;
527 align-items: center;
528 gap: var(--sp-1);
529 padding: var(--sp-2) var(--sp-3) 10px;
530 color: var(--muted);
531 font-size: var(--fs-2);
532 white-space: nowrap;
533 border-bottom: 2px solid transparent;
534 margin-bottom: -1px;
535}
536nav.tabs a:hover { color: var(--fg); text-decoration: none; }
537nav.tabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
538/* the profile strip draws its unlit tabs, so the underline reads as the
539 control rather than appearing only on the one you are already on.
540 --line, not --faint: the track has to be visible to be a track, and
541 at 2px --faint disappears into the canvas in both schemes. */
542nav.tabs.profiletabs a { border-bottom-color: var(--line); }
543nav.tabs.profiletabs a[aria-current] { border-bottom-color: var(--mark); }
544/* a count in a tab is plain metadata, not a badge */
545nav.tabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
546
547/* ---- page heads ---- */
548.pagehead, .listhead, .headrow {
549 display: flex;
550 align-items: center;
551 gap: var(--sp-3);
552 flex-wrap: wrap;
553 margin-bottom: var(--sp-5);
554}
555/* every child sheds its block margins, or a p.meta beside an h1 centres
556 its text inside a box the margins made taller than the heading's */
557.pagehead h1, .listhead h1, .headrow h1, .listhead h2, .headrow h2 { margin: 0; }
558.pagehead > p, .listhead > p, .headrow > p { margin: 0; }
559.pagehead .grow, .listhead .spacer, .headrow .spacer { flex: 1; }
560.issuetitle { margin: 0 0 var(--sp-2); font-size: var(--fs-5); text-wrap: balance; }
561.issuenumber { color: var(--muted); font-weight: 400; }
562.issuemeta { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-4); }
563.commithead p { margin: var(--sp-1) 0; }
564.commithead h2 { margin-top: 0; margin-bottom: var(--sp-1); }
565
566nav.filters, nav.statebar { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
567nav.statebar { margin: 0 0 var(--sp-3); }
568nav.filters a, nav.statebar a {
569 display: inline-flex;
570 align-items: center;
571 height: 32px;
572 padding: 0 var(--sp-3);
573 background: var(--card);
574 border: 1px solid var(--card-line);
575 border-radius: var(--r-ctl);
576 color: var(--muted);
577 font-size: var(--fs-2);
578 font-weight: 500;
579 text-decoration: none;
580}
581nav.filters a:hover, nav.statebar a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
582nav.filters a.active, nav.filters a[aria-current="page"], nav.statebar a[aria-current="page"] {
583 background: var(--surface);
584 border-color: var(--mark);
585 color: var(--fg);
586 font-weight: 600;
587}
588
589form.searchform, form.logfilter, form.compareform {
590 display: flex;
591 align-items: center;
592 gap: var(--sp-2);
593 flex-wrap: wrap;
594 margin: 0 0 var(--sp-4);
595}
596form.searchform input[type="search"], form.searchform input[type="text"], form.logfilter input { flex: 1; min-width: 12rem; max-width: 32rem; }
597form.searchform.compact { margin: 0; }
598form.searchform.compact input[type="search"], form.searchform.compact input[type="text"] { min-width: 18rem; }
599form.compareform label { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
600
601/* ---- buttons: one family, 32px tall, so a row of them lines up ---- */
602button, .button {
603 display: inline-flex;
604 align-items: center;
605 justify-content: center;
606 gap: 6px;
607 height: 32px;
608 padding: 0 var(--sp-3);
609 font: inherit;
610 font-size: var(--fs-2);
611 font-weight: 500;
612 border: 1px solid transparent;
613 border-radius: var(--r-ctl);
614 cursor: pointer;
615 text-decoration: none;
616 white-space: nowrap;
617 /* a bare <button> is the primary action of its form group */
618 background: var(--fill);
619 color: var(--fill-fg);
620}
621button:hover, .button.primary:hover { filter: brightness(1.12); text-decoration: none; }
622button.btn, .button.btn {
623 background: var(--card);
624 color: var(--fg);
625 border-color: var(--line);
626 filter: none;
627}
628button.btn:hover, .button.btn:hover { background: var(--hover); filter: none; text-decoration: none; }
629button.btn[aria-pressed="true"] { background: var(--surface); color: var(--link); border-color: var(--link); }
630button.linklike {
631 background: none;
632 border: 0;
633 padding: 0;
634 height: auto;
635 color: var(--link);
636 font-weight: 400;
637 filter: none;
638}
639button.linklike:hover { text-decoration: underline; filter: none; }
640button.danger, .button.danger {
641 background: var(--canvas);
642 color: var(--bad);
643 border-color: var(--bad);
644 filter: none;
645}
646/* --canvas, not --fill-fg: white on the dark scheme's --bad is 2.3:1 */
647button.danger:hover, .button.danger:hover { background: var(--bad); color: var(--canvas); filter: none; }
648button:disabled { opacity: 0.55; cursor: default; filter: none; }
649.btngroup { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
650/* a destructive button holds the way out at arm's length: 8px puts the
651 cancel's underline against the button's border */
652.btngroup:has(> button.danger) { gap: var(--sp-4); }
653form.inline { display: inline; }
654.act { text-align: right; }
655
656/* ---- forms ---- */
657/* not button: it sets its own colour above, and this rule comes later at
658 the same specificity */
659input, textarea, select { font: inherit; color: inherit; }
660input[type="text"], input[type="search"], input[type="email"],
661input[type="password"], input[type="number"], input:not([type]), textarea, select {
662 background: var(--inset);
663 color: var(--fg);
664 border: 1px solid var(--line);
665 border-radius: var(--r-ctl);
666 padding: 0 10px;
667 height: 32px;
668 font-size: var(--fs-2);
669 line-height: 1.4;
670}
671textarea {
672 width: 100%;
673 height: auto;
674 padding: 8px 10px;
675 resize: vertical;
676 line-height: 1.5;
677}
678textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); }
679select {
680 appearance: none;
681 padding-right: 1.9rem;
682 background-image: var(--chev);
683 background-repeat: no-repeat;
684 background-position: right 0.6rem center;
685 background-size: 0.62rem;
686 cursor: pointer;
687}
688input:hover, textarea:hover, select:hover { border-color: var(--muted); }
689input[type="radio"] { accent-color: var(--fill); }
690label { display: block; font-weight: 500; font-size: var(--fs-2); margin-bottom: 4px; }
691label:has(> input[type="radio"]), label:has(> input[type="checkbox"]),
692label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); }
693.fieldname { display: block; font-size: var(--fs-2); font-weight: 500; }
694.hint { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 400; margin: 0 0 6px; }
695.field { margin-bottom: var(--sp-4); }
696.field input[type="text"], .field input[type="email"], .field select { width: 100%; }
697.check { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; }
698::placeholder { color: var(--muted); opacity: 1; }
699::selection { background: var(--fill); color: var(--fill-fg); }
700/* :user-invalid, not :invalid — a required field is invalid the moment
701 the page loads, and colouring it red before anyone has typed is a
702 scolding, not a hint */
703input:user-invalid, textarea:user-invalid { border-color: var(--bad); }
704input[name="confirm"] { width: auto; margin-right: var(--sp-2); }
705
706/* A radio keeps the native control: a circle takes one answer, a square
707 takes any number, and that shape survives greyscale and colour
708 blindness. The checkbox is drawn so it matches the rest of the family. */
709input[type="checkbox"] {
710 appearance: none;
711 flex: none;
712 width: 16px;
713 height: 16px;
714 margin: 0;
715 /* an empty box has nothing but its border to announce it */
716 border: 1px solid var(--muted);
717 border-radius: var(--r-ctl);
718 background: var(--inset);
719 cursor: pointer;
720}
721input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); }
722input[type="checkbox"]:checked {
723 background: var(--fill);
724 border-color: var(--fill);
725 /* the mark sits on the blue ground, so it is white in both schemes */
726 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.4 3.4L11 1.4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
727 background-repeat: no-repeat;
728 background-position: center;
729 background-size: 11px;
730}
731
732/* a segmented control for a small, mutually exclusive set: real radios
733 underneath, so arrow keys and screen readers behave as they always did */
734fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
735fieldset.segmented legend { padding: 0; margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-2); }
736fieldset.segmented .options { display: inline-flex; }
737fieldset.segmented label { gap: 0; margin: 0; }
738fieldset.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
739fieldset.segmented span {
740 display: flex;
741 align-items: center;
742 height: 32px;
743 padding: 0 var(--sp-4);
744 border: 1px solid var(--line);
745 font-size: var(--fs-2);
746 cursor: pointer;
747}
748fieldset.segmented label + label span { border-left: 0; }
749fieldset.segmented label:first-child span { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
750fieldset.segmented label:last-child span { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
751fieldset.segmented span:hover { border-color: var(--muted); }
752fieldset.segmented input:checked + span {
753 background: var(--fill);
754 border-color: var(--fill);
755 color: var(--fill-fg);
756 font-weight: 600;
757}
758fieldset.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
759
760p.branchpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
761p.branchpick label { color: var(--muted); font-size: var(--fs-2); margin: 0; }
762p.branchpick select { flex: 1 1 12rem; }
763
764form.signupform, form.editform { max-width: 40rem; }
765form.signupform label, form.editform label { margin-bottom: 4px; }
766.editform textarea { width: 100%; }
767.editform input[name="message"] { width: 100%; }
768
769/* A previewed draft, above the textarea it came from. The orange edge is
770 "where you are and what wants you": this is not saved yet. */
771.preview {
772 margin: var(--sp-4) 0;
773 max-width: 48rem;
774 background: var(--surface);
775 border: 1px solid var(--line);
776 border-left: 3px solid var(--mark);
777 border-radius: var(--r-card);
778}
779.preview > .previewmark {
780 margin: 0;
781 padding: var(--sp-2) var(--sp-4);
782 border-bottom: 1px solid var(--line);
783 color: var(--warn);
784 font-size: var(--fs-1);
785}
786.preview > .rendered { padding: var(--sp-3) var(--sp-4); }
787.preview > .rendered > :first-child { margin-top: 0; }
788.preview > .rendered > :last-child { margin-bottom: 0; }
789.preview > .rendered:empty::before { content: "nothing to preview"; color: var(--muted); }
790
791form.commentform { margin: var(--sp-4) 0; max-width: 48rem; }
792form.commentform p:last-child { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 0; }
793
794details.editbox { margin: var(--sp-2) 0; max-width: 48rem; }
795details.editbox > summary {
796 display: inline-flex;
797 align-items: center;
798 height: 32px;
799 padding: 0 var(--sp-3);
800 background: var(--canvas);
801 border: 1px solid var(--line);
802 border-radius: var(--r-ctl);
803 color: var(--fg);
804 font-size: var(--fs-2);
805 font-weight: 500;
806 cursor: pointer;
807 list-style: none;
808}
809details.editbox > summary::-webkit-details-marker { display: none; }
810details.editbox > summary:hover { background: var(--hover); }
811details.editbox[open] > summary { margin-bottom: var(--sp-2); }
812details.editbox input[type="text"] { width: 100%; }
813
814/* ---- settings: one row per control, label then input then its own
815 button. The name stays setform because the templates carry it.
816 The label column takes the slack, so the control and the button ride
817 the right edge: a checkbox, a number and a full-width text input all
818 end on the same rule instead of the narrow ones stranding left. Its
819 14rem floor is what keeps a hint from wrapping a word to a line once
820 the control column claims its 28rem. ---- */
821form.setform {
822 display: grid;
823 grid-template-columns: minmax(14rem, 1fr) minmax(0, 28rem) auto;
824 gap: var(--sp-4);
825 align-items: start;
826 padding: var(--sp-3) 0;
827 border-bottom: 1px solid var(--faint);
828}
829form.setform label { margin-top: 6px; }
830form.setform .hint { margin: 2px 0 0; }
831form.setform input[type="text"], form.setform input[type="password"], form.setform select { width: 100%; }
832/* a control narrower than its column is pushed to the column's end,
833 which is where a full-width input's own right edge lands */
834form.setform .check { justify-content: flex-end; }
835form.setform .num { text-align: right; }
836form.setform .num input[type="number"] { width: auto; }
837/* the third column takes the leftover width; the button keeps its own */
838form.setform > button, form.setform > .btngroup { justify-self: start; }
839form.setform.stack { grid-template-columns: 1fr; }
840form.setform.stack textarea, form.setform.stack select, form.setform.stack input[type="text"], form.setform.stack input[type="password"] { width: 100%; max-width: 48rem; }
841ul.protlist { list-style: none; margin: var(--sp-2) 0; padding: 0; }
842ul.protlist li {
843 display: flex;
844 align-items: center;
845 gap: var(--sp-3);
846 padding: var(--sp-2) 0;
847 border-bottom: 1px solid var(--faint);
848}
849ul.protlist li:last-child { border-bottom: 0; }
850ul.protlist form { margin-left: auto; }
851ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
852ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
853/* the email list: address and badges read left, the controls sit right,
854 so the buttons line up down the list however long an address is */
855ul.plain li > form:first-of-type { margin-left: auto; }
856
857/* ---- messages: .error and .notice are one family. The names stay
858 because e2e tests match class="error". ---- */
859.error, .notice {
860 border-left: 3px solid var(--bad);
861 background: color-mix(in srgb, var(--bad) 6%, transparent);
862 color: var(--fg);
863 border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
864 padding: var(--sp-2) var(--sp-3);
865 margin: 0 0 var(--sp-4);
866 font-size: var(--fs-2);
867}
868.notice { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); }
869.empty-note, .none, .empty, li.empty, td.empty { color: var(--muted); }
870
871/* ---- containers: crisp elevated card surfaces ---- */
872.card, ul.list, ul.loglist, ul.repolist, ul.issuelist,
873ul.milestonelist, .readme, .code, article.release, .blame, .teambody {
874 background: var(--card);
875 border: 1px solid var(--card-line);
876 border-radius: var(--r-card);
877 box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
878 overflow: hidden;
879}
880.cardhead {
881 display: flex;
882 align-items: center;
883 gap: var(--sp-3);
884 padding: var(--sp-2) var(--sp-4);
885 background: var(--surface);
886 border-bottom: 1px solid var(--faint);
887 font-size: var(--fs-1);
888 color: var(--muted);
889}
890.cardhead b { color: var(--fg); font-weight: 500; }
891.cardbody { padding: var(--sp-4) var(--sp-5); }
892ul.list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
893ul.list li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
894ul.list li:last-child { border-bottom: 0; }
895ul.list li:hover { background: var(--hover); }
896
897table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
898th {
899 text-align: left;
900 font-weight: 500;
901 font-size: var(--fs-1);
902 color: var(--muted);
903 padding: 6px var(--sp-4);
904 border-bottom: 1px solid var(--line);
905}
906td { padding: 7px var(--sp-4); border-bottom: 1px solid var(--faint); vertical-align: top; }
907tr:last-child td { border-bottom: 0; }
908tbody tr:hover td { background: var(--hover); }
909/* every header row a template writes, by the class it or its table
910 carries: TestHeaderRowsAreLeftAligned reads these selectors */
911tr.cols th, table.tree th, table.refs th, table.keys th, table.assets th { text-align: left; }
912tr.cols th { background: var(--card); }
913/* right-aligned columns keep their header with their values */
914tr.cols th.age, tr.cols th.size { text-align: right; }
915/* wide listings scroll inside their own box; the page never does. The
916 wrapper is the scroller only — the table inside carries the card. */
917.tablewrap { overflow-x: auto; max-width: 100%; }
918
919table.tree, table.refs {
920 background: var(--card);
921 border: 1px solid var(--card-line);
922 border-radius: var(--r-card);
923 box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
924 /* collapsed borders defeat a radius on the table itself */
925 border-collapse: separate;
926 border-spacing: 0;
927 overflow: hidden;
928 margin-bottom: var(--sp-4);
929}
930table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: 0; }
931table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); }
932td.name a { color: var(--fg); }
933td.name a:hover { color: var(--link); }
934table.tree td.name { width: 25%; white-space: nowrap; }
935table.tree td.name.dir a { color: var(--link); }
936/* the glyph stays muted in both rows: it is a shape cue, and colour here
937 goes on carrying what it already carries */
938table.tree td.name svg { color: var(--muted); vertical-align: -0.125em; margin-right: var(--sp-2); }
939table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; }
940table.tree td.lastcommit {
941 max-width: 0;
942 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
943}
944table.tree td.lastcommit a {
945 color: var(--muted);
946 display: block;
947 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
948}
949table.tree td.lastcommit a:hover { color: var(--link); }
950table.tree th.age, table.tree td.age { width: 20%; }
951td.age, th.age { text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
952td.size, td.mode { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
953table.tree th.size, table.tree td.size { text-align: right; }
954table.refs td.name { width: 100%; }
955table.refs td.sha, td.sha { color: var(--muted); }
956
957/* these tables sit flush with the page text: no outer border, and the
958 header row drops the ground and the left padding */
959table.keys, table.assets { background: none; border: 0; border-radius: 0; }
960table.keys th, table.assets th, table.keys tr.cols th { background: transparent; padding-left: 0; }
961table.keys td { padding-left: 0; }
962table.keys td.act, table.assets td.size { text-align: right; }
963/* a fingerprint or an account row is read across, not down: the cells
964 keep one line each and .tablewrap scrolls what does not fit */
965table.keys.nowrap th, table.keys.nowrap td { white-space: nowrap; }
966/* The account list types a username to confirm, which is longer than
967 the key prefixes the confirm field is sized for elsewhere. 14rem, not
968 11rem, because "type <name> to confirm" was cut mid-word for a name of
969 ordinary length; a long enough name still truncates and the field's
970 aria-label carries the instruction in full either way.
971
972 The cell is two fixed slots, each right-aligned. A form cannot span
973 table cells, so one column per control — which would let the table
974 align them — is out without form="" plumbing, and the forms hold
975 different numbers of controls: the enable form and the disabled
976 row's Promote have no confirm field. Sizing the slot instead
977 of the form is what puts every button in one column and every field
978 in another; right-aligning the cell alone left the disabled row's
979 Promote where other rows keep their field. A slot is a field, a gap
980 and a button wide, so a form that is only a button still ends on the
981 same rule. No element stands in for the controls a row lacks. */
982table.accounts { --acct-field: 14rem; --acct-btn: 6rem; }
983table.accounts td.acts { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); }
984table.accounts input[name="confirm"] { width: var(--acct-field); }
985table.accounts form.actions {
986 flex: none;
987 display: inline-flex;
988 /* the generic form.actions wraps and grows its button to fill; both
989 have to go, or the slot takes the button to a second line and the
990 field sits above it */
991 flex-wrap: nowrap;
992 justify-content: flex-end;
993 align-items: center;
994 gap: var(--sp-2);
995 width: calc(var(--acct-field) + var(--acct-btn) + var(--sp-2));
996 margin: 0;
997}
998/* a set width, not a minimum: it makes the slot's arithmetic exact, and
999 6rem clears the widest of Promote, Demote, Disable and Enable */
1000table.accounts form.actions button { flex: none; width: var(--acct-btn); justify-content: center; }
1001table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); }
1002table.assets { margin-top: var(--sp-2); }
1003table.assets td.size, table.assets td.sha, table.assets td.act { white-space: nowrap; }
1004table.assets td.act form { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
1005
1006/* the tip commit is the first row of the file table */
1007tr.tipbar td {
1008 background: var(--surface);
1009 padding: var(--sp-3) var(--sp-4);
1010 border-bottom: 1px solid var(--line);
1011 max-width: 0;
1012}
1013.tipbar .tip {
1014 display: flex;
1015 align-items: center;
1016 gap: var(--sp-2);
1017 flex-wrap: wrap;
1018 min-width: 0;
1019 font-size: var(--fs-2);
1020}
1021.tipbar .who { font-weight: 600; }
1022.tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1023.tipbar .subject:hover { color: var(--link); }
1024.tipbar .spacer { flex: 1; }
1025.tipbar .age { color: var(--muted); white-space: nowrap; }
1026
1027.readme { margin: var(--sp-5) 0; }
1028.readme .cardbody { max-width: 78ch; }
1029/* the overview README caps as a card, so prose and code share an edge */
1030.overview .readme { max-width: 88ch; }
1031/* until every card wraps its body in .cardbody, the rendered block is
1032 the body */
1033.readme > .rendered { padding: var(--sp-4) var(--sp-5); }
1034.code { background: var(--inset); padding: var(--sp-3) var(--sp-4); overflow-x: auto; }
1035.code pre { margin: 0; background: transparent !important; border: 0; padding: 0; }
1036pre.bigcode, .bigcode {
1037 font-family: var(--mono);
1038 /* the 404 numeral is a picture of a number, not body type */
1039 font-size: 4rem;
1040 color: var(--faint);
1041 -webkit-text-stroke: 1px var(--line);
1042 margin: 0;
1043 line-height: 1;
1044}
1045.notfound { text-align: center; padding: var(--sp-6) 0; }
1046.notfound h1 { margin-top: var(--sp-3); }
1047
1048ul.loglist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1049ul.loglist li {
1050 display: flex;
1051 align-items: baseline;
1052 gap: var(--sp-3);
1053 padding: var(--sp-3) var(--sp-4);
1054 border-bottom: 1px solid var(--faint);
1055}
1056ul.loglist li:last-child { border-bottom: 0; }
1057ul.loglist li:hover { background: var(--hover); }
1058ul.loglist p { margin: 0; }
1059ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; }
1060ul.loglist .subject a { color: var(--fg); font-weight: 500; }
1061ul.loglist .subject a:hover { color: var(--link); }
1062ul.loglist .commitside { flex: none; display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; }
1063
1064ul.loglist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1065ul.loglist.rows .commitmain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1066ul.loglist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1067
1068ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
1069ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1070ul.repolist li:last-child { border-bottom: 0; }
1071ul.repolist li:hover { background: var(--hover); }
1072ul.repolist p { margin: 0; }
1073ul.repolist .reponame { font-size: var(--fs-3); }
1074ul.repolist .reponame a { color: var(--fg); }
1075ul.repolist .reponame a strong { color: var(--link); font-weight: 600; }
1076ul.repolist .reponame .sep { color: var(--muted); margin: 0 2px; }
1077ul.repolist .desc { margin-top: 2px; }
1078ul.repolist .topics, ul.repolist .meta { margin-top: var(--sp-1); }
1079
1080/* two-row repo list layout: name + chips left and branch/license/updated
1081 right on row 1; full readable description and wrapping topic pills on
1082 row 2 so descriptions are never crushed by long tag lists. */
1083ul.repolist.rows li {
1084 display: grid;
1085 grid-template-columns: minmax(0, 1fr) auto;
1086 gap: var(--sp-1) var(--sp-4);
1087 align-items: baseline;
1088 padding: var(--sp-3) var(--sp-4);
1089}
1090ul.repolist.rows .reponame {
1091 grid-column: 1;
1092 grid-row: 1;
1093 display: flex;
1094 align-items: center;
1095 gap: var(--sp-2);
1096 flex-wrap: wrap;
1097 font-size: var(--fs-3);
1098}
1099ul.repolist.rows .reponame .name { font-size: var(--fs-3); }
1100ul.repolist.rows .labels { display: inline-flex; gap: var(--sp-1); }
1101ul.repolist.rows .meta {
1102 grid-column: 2;
1103 grid-row: 1;
1104 display: inline-flex;
1105 align-items: center;
1106 gap: var(--sp-3);
1107 white-space: nowrap;
1108 font-size: var(--fs-1);
1109 color: var(--muted);
1110 margin: 0;
1111}
1112ul.repolist.rows .desc {
1113 grid-column: 1 / -1;
1114 color: var(--muted);
1115 font-size: var(--fs-2);
1116 margin: 2px 0 0;
1117 line-height: 1.45;
1118}
1119ul.repolist.rows .topics {
1120 grid-column: 1 / -1;
1121 display: flex;
1122 flex-wrap: wrap;
1123 gap: var(--sp-1);
1124 margin: var(--sp-1) 0 0;
1125}
1126ul.repolist.rows .branch { display: inline-flex; align-items: center; gap: 4px; }
1127ul.repolist.rows .license { font-family: var(--mono); font-size: var(--fs-0); }
1128ul.repolist.rows .updated { font-variant-numeric: tabular-nums; }
1129@media (max-width: 44rem) {
1130 ul.repolist.rows li { grid-template-columns: 1fr; }
1131 ul.repolist.rows .meta { grid-column: 1; grid-row: auto; flex-wrap: wrap; margin-top: var(--sp-1); }
1132}
1133ul.repolist.rows li.empty { display: block; }
1134
1135/* pinned repos: a compact wrap of names, no description or meta */
1136ul.pinlist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1137ul.pinlist li {
1138 background: var(--surface);
1139 border: 1px solid var(--line);
1140 border-radius: var(--r-ctl);
1141 padding: var(--sp-1) var(--sp-3);
1142}
1143ul.pinlist li:hover { background: var(--hover); }
1144ul.pinlist li a { color: var(--fg); }
1145ul.pinlist li a:hover { color: var(--link); text-decoration: none; }
1146ul.pinlist .sep { color: var(--muted); margin: 0 2px; }
1147
1148ul.issuelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1149ul.issuelist li {
1150 display: flex;
1151 align-items: baseline;
1152 gap: var(--sp-3);
1153 padding: var(--sp-3) var(--sp-4);
1154 border-bottom: 1px solid var(--faint);
1155}
1156ul.issuelist li:last-child { border-bottom: 0; }
1157ul.issuelist li:hover { background: var(--hover); }
1158ul.issuelist li.empty { display: block; }
1159ul.issuelist p { margin: 0; }
1160ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; }
1161ul.issuelist .issueside { display: flex; gap: var(--sp-2); align-items: center; flex: none; }
1162ul.issuelist .title a { color: var(--fg); font-weight: 500; }
1163ul.issuelist .title a:hover { color: var(--link); }
1164
1165/* one-line rows: title, labels, then the meta pushed right. Above 64rem
1166 a list is a table, not prose (desktop layout spec). */
1167ul.issuelist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1168ul.issuelist.rows .issuemain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1169ul.issuelist.rows .title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1170ul.issuelist.rows .title .chip { margin-left: var(--sp-1); }
1171ul.issuelist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1172ul.issuelist.rows .meta .repo { color: var(--fg); }
1173
1174ul.milestonelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1175ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1176ul.milestonelist li:last-child { border-bottom: 0; }
1177ul.milestonelist li:hover { background: var(--hover); }
1178ul.milestonelist p { margin: 0; }
1179ul.milestonelist .msmain { min-width: 0; }
1180ul.milestonelist .title { font-weight: 500; }
1181.progress {
1182 height: 6px;
1183 max-width: 24rem;
1184 margin-top: var(--sp-2);
1185 background: var(--faint);
1186 border-radius: var(--r-ctl);
1187 overflow: hidden;
1188}
1189.progress .bar { height: 100%; background: var(--ok); }
1190
1191article.release { padding: var(--sp-4); margin: var(--sp-4) 0; }
1192.releasehead { background: none; border: 0; padding: 0; }
1193.releasehead h2 { margin: 0 0 var(--sp-1); font-size: var(--fs-3); }
1194.releasehead .meta { margin: 0 0 var(--sp-2); }
1195
1196ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1197ul.matchlist li { margin-bottom: var(--sp-3); }
1198.matchpath { font-family: var(--mono); font-size: var(--fs-1); }
1199/* a name in highlighted source that links to its definition keeps its
1200 token colour; the dotted underline is what marks it as a link */
1201.chroma a.sym { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
1202.chroma a.sym:hover { text-decoration-style: solid; }
1203details.symlist { margin: 0 0 var(--sp-3); font-size: var(--fs-1); }
1204details.symlist summary { cursor: pointer; color: var(--muted); }
1205details.symlist ul { list-style: none; margin: var(--sp-2) 0 0; padding: 0; columns: 16rem; }
1206details.symlist li { break-inside: avoid; padding: 2px 0; }
1207pre.matchline {
1208 background: var(--inset);
1209 border: 1px solid var(--line);
1210 border-radius: var(--r-card);
1211 padding: var(--sp-1) var(--sp-3);
1212 margin: var(--sp-1) 0 0;
1213 overflow-x: auto;
1214}
1215pre.matchline mark { background: color-mix(in srgb, var(--mark) 25%, transparent); color: inherit; border-radius: 2px; }
1216p.pager { margin-top: var(--sp-4); }
1217.snippetfile { margin-bottom: var(--sp-5); }
1218p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); }
1219pre.buildlog { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
1220details.buildstep pre.buildlog { margin: 0; border: 0; border-radius: 0; }
1221details.buildstep summary code { overflow-wrap: anywhere; }
1222
1223/* ---- rendered prose ---- */
1224pre {
1225 background: var(--inset);
1226 border: 1px solid var(--line);
1227 border-radius: var(--r-card);
1228 padding: var(--sp-3) var(--sp-4);
1229 margin: 0 0 var(--sp-4);
1230 overflow-x: auto;
1231 font-size: var(--fs-2);
1232 line-height: 1.6;
1233}
1234code {
1235 background: var(--inset);
1236 border: 1px solid var(--faint);
1237 border-radius: var(--r-ctl);
1238 padding: 0 0.3em;
1239}
1240pre code { background: none; border: 0; padding: 0; font-size: inherit; }
1241code.fullsha { color: var(--muted); overflow-wrap: anywhere; }
1242pre.message {
1243 white-space: pre-wrap;
1244 overflow-wrap: anywhere;
1245}
1246.rendered { max-width: 100%; overflow-wrap: anywhere; }
1247.rendered a { text-decoration: underline; }
1248.prose, .rendered > p, .rendered > ul, .rendered > ol, .rendered > blockquote { max-width: 78ch; }
1249.rendered blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: var(--sp-4); color: var(--muted); }
1250.rendered img { max-width: 100%; }
1251.rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); }
1252.rendered table { border-collapse: collapse; margin: var(--sp-3) 0; display: block; max-width: 100%; overflow-x: auto; }
1253.rendered th, .rendered td {
1254 border: 1px solid var(--line);
1255 padding: var(--sp-1) var(--sp-3);
1256 text-align: left;
1257 overflow-wrap: normal; /* scroll the table, don't shatter words */
1258}
1259.rendered th { background: var(--surface); font-weight: 600; }
1260.rendered tr:last-child td { border-bottom: 1px solid var(--line); }
1261/* GFM task lists: the box sits in the line, sized to the prose */
1262.rendered li input[type="checkbox"] { width: 0.9em; height: 0.9em; margin: 0 0.35em 0 0; vertical-align: -0.05em; background-size: 0.7em; }
1263.rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }
1264.blobimage { text-align: center; }
1265.blobimage img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
1266
1267/* ---- dashboard: pinned column, tiles and queues, feed ---- */
1268.dashgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1269.dashgrid h1 { margin-top: 0; }
1270.dashgrid > aside { position: sticky; top: var(--sp-5); }
1271.dashgrid .dashmain h2 { margin-top: var(--sp-5); }
1272.dashgrid .dashmain .tiles + h2 { margin-top: 0; }
1273.colhead {
1274 margin: 0 0 var(--sp-2);
1275 font-size: var(--fs-0);
1276 font-weight: 500;
1277 letter-spacing: 0.08em;
1278 text-transform: uppercase;
1279 color: var(--muted);
1280}
1281.pins { list-style: none; margin: 0; padding: 0; font-size: var(--fs-2); }
1282.pins li { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 0; border-bottom: 1px solid var(--faint); }
1283.pins li:last-child { border-bottom: 0; }
1284.pins a { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1285.pins a:hover { color: var(--link); }
1286.pins .owner { color: var(--muted); }
1287.pins .n { margin-left: auto; flex: none; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-1); color: var(--muted); font-variant-numeric: tabular-nums; }
1288.pins .n b { font-weight: 600; color: var(--fg); }
1289.pins .n b.wants { color: var(--warn); }
1290.pins .dot { margin: 0; }
1291/* count tiles: the queues' sizes in one strip; a non-zero count is orange,
1292 what wants you */
1293.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
1294.tile {
1295 display: block;
1296 background: var(--surface);
1297 border: 1px solid var(--line);
1298 border-radius: var(--r-card);
1299 padding: var(--sp-3) var(--sp-4);
1300 color: var(--fg);
1301}
1302a.tile:hover { background: var(--hover); text-decoration: none; }
1303.tile b { display: block; font-size: var(--fs-5); font-weight: 600; line-height: 1.2; }
1304.tile.wants b { color: var(--warn); }
1305.tile span { font-size: var(--fs-1); color: var(--muted); }
1306.feedcol .feedline { font-size: var(--fs-2); margin-bottom: var(--sp-2); }
1307.feedcol .feedline .none { font-size: var(--fs-1); }
1308
1309/* ---- two-column: conversation and aside ---- */
1310.withaside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1311.withaside .mainside { min-width: 0; }
1312aside.aside { font-size: var(--fs-2); }
1313.aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
1314.aside .grp:first-child { border-top: 0; padding-top: 0; }
1315.aside h2 {
1316 margin: 0 0 var(--sp-2);
1317 font-size: var(--fs-0);
1318 font-weight: 500;
1319 letter-spacing: 0.08em;
1320 text-transform: uppercase;
1321 color: var(--muted);
1322}
1323.aside .row { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-1); flex-wrap: wrap; }
1324.aside .row:last-child { margin-bottom: 0; }
1325/* a row's second line: when it happened, under what it happened to */
1326.aside .row .sub { flex-basis: 100%; padding-left: 14px; color: var(--muted); font-size: var(--fs-1); }
1327.aside .row:has(.sub) { margin-bottom: var(--sp-2); }
1328.aside .none { color: var(--muted); }
1329.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--neutral); margin-right: 2px; vertical-align: middle; }
1330.dot.ok { background: var(--ok); }
1331.dot.bad { background: var(--bad); }
1332.dot.pend { background: var(--mark); }
1333.ok { color: var(--ok); }
1334.bad { color: var(--bad); }
1335form.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
1336form.actions button { flex: 1 1 auto; }
1337form.actions select, form.actions textarea { width: 100%; }
1338.feedline { margin-bottom: var(--sp-2); }
1339
1340/* ---- comments and threads ---- */
1341article.comment {
1342 max-width: 48rem;
1343 background: var(--card);
1344 border: 1px solid var(--card-line);
1345 border-radius: var(--r-card);
1346 margin: var(--sp-4) 0;
1347 overflow: hidden;
1348}
1349article.comment .commenthead {
1350 display: flex;
1351 gap: var(--sp-2);
1352 flex-wrap: wrap;
1353 background: var(--surface);
1354 border-bottom: 1px solid var(--line);
1355 padding: var(--sp-2) var(--sp-4);
1356 margin: 0;
1357 font-size: var(--fs-1);
1358 color: var(--muted);
1359}
1360article.comment .commenthead b { color: var(--fg); font-weight: 500; }
1361article.comment .commenthead .when { color: var(--muted); }
1362article.comment .rendered { padding: var(--sp-3) var(--sp-4); }
1363article.comment .rendered > :first-child { margin-top: 0; }
1364article.comment .rendered > :last-child { margin-bottom: 0; }
1365a.authorlink { color: var(--fg); font-weight: 500; }
1366a.authorlink:hover { color: var(--link); }
1367
1368.syscomment {
1369 max-width: 48rem;
1370 color: var(--muted);
1371 font-size: var(--fs-1);
1372 margin: 0 0 var(--sp-4) var(--sp-3);
1373 padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
1374 border-left: 2px solid var(--faint);
1375}
1376.syscomment p { display: inline; margin: 0; }
1377
1378.thread {
1379 border: 1px solid var(--faint);
1380 border-left: 3px solid var(--link);
1381 border-radius: var(--r-ctl);
1382 padding: var(--sp-2) var(--sp-4);
1383 margin: var(--sp-2) 0 var(--sp-2) var(--sp-6);
1384}
1385.thread.resolved { border-left-color: var(--ok); opacity: 0.75; }
1386/* an unsubmitted comment is the viewer's own note, not the conversation */
1387.thread.pending { border-left-color: var(--neutral); border-left-style: dashed; }
1388.thread.stale { border-left-color: var(--warn); }
1389.thread.composing { border-left-color: var(--mark); }
1390.thread:target { outline: 2px solid var(--mark); outline-offset: 2px; }
1391.thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; }
1392.thread .when { color: var(--muted); }
1393.thread .rendered p { margin: var(--sp-1) 0; }
1394.thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; }
1395.thread details.threadreply { margin: var(--sp-2) 0 0; }
1396.thread details.threadreply > summary { color: var(--link); font-size: var(--fs-1); cursor: pointer; }
1397.thread textarea { width: 100%; }
1398.thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; }
1399form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); }
1400.thread .suggestion { margin: var(--sp-2) 0 0; }
1401.thread .suggestion table.difftable { margin: var(--sp-1) 0 0; }
1402.thread .suggestion table.difftable tr.add td,
1403.thread .suggestion table.difftable tr.del td { display: table-cell; }
1404
1405nav.subtabs {
1406 display: flex;
1407 gap: var(--sp-4);
1408 border-bottom: 1px solid var(--line);
1409 margin: 0 0 var(--sp-4);
1410}
1411nav.subtabs a {
1412 display: inline-flex;
1413 align-items: center;
1414 gap: var(--sp-1);
1415 padding: var(--sp-2) 0 10px;
1416 color: var(--muted);
1417 font-size: var(--fs-2);
1418 border-bottom: 2px solid transparent;
1419 margin-bottom: -1px;
1420}
1421nav.subtabs a:hover { color: var(--fg); text-decoration: none; }
1422nav.subtabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
1423nav.subtabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
1424
1425/* ---- diffs and code ---- */
1426p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1427p.diffstat .add { color: var(--ok); }
1428p.diffstat .del { color: var(--bad); }
1429
1430details.difffold {
1431 border: 1px solid var(--line);
1432 border-radius: var(--r-card);
1433 margin: 0 0 var(--sp-3);
1434 background: var(--inset);
1435 overflow: hidden;
1436}
1437details.difffold summary {
1438 display: flex;
1439 align-items: baseline;
1440 gap: var(--sp-3);
1441 padding: var(--sp-2) var(--sp-3);
1442 background: var(--surface);
1443 font-size: var(--fs-2);
1444 cursor: pointer;
1445 list-style: none;
1446}
1447details.difffold[open] summary { border-bottom: 1px solid var(--line); }
1448details.difffold summary::-webkit-details-marker { display: none; }
1449/* flex summaries lose the native disclosure marker; draw our own */
1450details.difffold summary::before { content: "\25b8"; color: var(--muted); }
1451details.difffold[open] summary::before { content: "\25be"; }
1452details.difffold summary:hover { background: var(--hover); }
1453details.difffold summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; }
1454details.difffold summary .fpath .was { color: var(--muted); }
1455details.difffold summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; }
1456details.difffold summary .add { color: var(--ok); }
1457details.difffold summary .del { color: var(--bad); }
1458details.difffold > .none { padding: var(--sp-3); margin: 0; }
1459details.difffold .tablewrap { background: none; border: 0; border-radius: 0; }
1460
1461table.difftable {
1462 border-collapse: collapse;
1463 width: 100%;
1464 font-family: var(--mono);
1465 font-size: var(--fs-1);
1466 line-height: 1.5;
1467}
1468table.difftable td { border: 0; padding: 0; vertical-align: top; font-size: inherit; }
1469table.difftable tbody tr:hover td { background: none; }
1470table.difftable td.ln {
1471 width: 1%;
1472 min-width: 2.5rem;
1473 padding: 0 var(--sp-2);
1474 text-align: right;
1475 color: var(--muted);
1476 user-select: none;
1477 border-right: 1px solid var(--line);
1478 white-space: nowrap;
1479}
1480/* not .code: that class carries its own ground, which painted over the
1481 row tints */
1482table.difftable td.src { padding: 0 var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; }
1483/* the marker is decoration, so it lives in CSS and stays out of a copied
1484 selection */
1485table.difftable tr.add td.src::before { content: "+"; color: var(--ok); }
1486table.difftable tr.del td.src::before { content: "\2212"; color: var(--bad); }
1487table.difftable tr.ctx td.src::before { content: " "; }
1488table.difftable tr.add { background: var(--diff-add); }
1489table.difftable tr.del { background: var(--diff-del); }
1490table.difftable tr.hunk td, table.difftable tr.dmeta td {
1491 color: var(--muted);
1492 padding: var(--sp-1) var(--sp-3);
1493 background: var(--surface);
1494 border-top: 1px solid var(--line);
1495 border-bottom: 1px solid var(--line);
1496}
1497table.difftable tr.hunk td.src { color: var(--link); }
1498table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--canvas); }
1499/* a line number is the handle for commenting on that line; it stays a
1500 plain number until pointed at, so the gutter is not a wall of links */
1501table.difftable td.ln a.cmt { color: inherit; text-decoration: none; }
1502table.difftable td.ln a.cmt:hover,
1503table.difftable td.ln a.cmt:focus { color: var(--link); text-decoration: underline; }
1504/* split layout: old and new side by side in one table. Where two
1505 columns of code do not fit, each row becomes a two-column grid and the
1506 old cells stack over the new, which reads as a unified diff. */
1507table.difftable.split { table-layout: fixed; }
1508table.difftable.split col.cln { width: 3.5rem; }
1509table.difftable.split td.ln.ctx, table.difftable.split td.ln.none { border-right: 1px solid var(--line); }
1510table.difftable.split td.ln + td.src + td.ln { border-left: 1px solid var(--line); }
1511table.difftable.split td.ln { width: auto; }
1512table.difftable.split td.del { background: var(--diff-del); }
1513table.difftable.split td.add { background: var(--diff-add); }
1514table.difftable.split td.none { background: var(--surface); }
1515table.difftable.split td.src.add::before { content: "+"; color: var(--ok); }
1516table.difftable.split td.src.del::before { content: "\2212"; color: var(--bad); }
1517table.difftable.split td.src.ctx::before { content: " "; }
1518table.difftable.split tr.threadrow td { overflow-wrap: anywhere; }
1519table.difftable.split td.ln:target,
1520table.difftable.split td.ln:target + td { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1521table.difftable.split td.ln:target { border-left: 3px solid var(--mark); }
1522table.difftable.split .nonl { display: block; color: var(--muted); font-style: italic; }
1523p.layoutpick { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1524p.layoutpick strong { color: var(--fg); font-weight: 600; }
1525@media (max-width: 64rem) {
1526 p.layoutpick { display: none; }
1527 table.difftable.split, table.difftable.split tbody { display: block; }
1528 table.difftable.split colgroup { display: none; }
1529 table.difftable.split tr.pair { display: grid; grid-template-columns: auto 1fr; }
1530 table.difftable.split tr.pair td.none, table.difftable.split tr.pair td.ctx.old { display: none; }
1531 table.difftable.split td.ln + td.src + td.ln { border-left: 0; }
1532 table.difftable.split tr.pair td.ln { min-width: 3rem; }
1533 table.difftable.split tr.hunk, table.difftable.split tr.dmeta,
1534 table.difftable.split tr.threadrow { display: block; }
1535 table.difftable.split tr.hunk td.ln, table.difftable.split tr.dmeta td.ln { display: none; }
1536 table.difftable.split tr.hunk td, table.difftable.split tr.dmeta td,
1537 table.difftable.split tr.threadrow td { display: block; }
1538}
1539/* A linked line: f2-n17 on a diff, L17 on a file (see issue 118). */
1540.difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1541.difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); }
1542/* chroma writes the highlighted spans; the container only supplies the
1543 ground and the face */
1544.chroma { font-family: var(--mono); background: none; }
1545/* chroma's own LineLink rule is dropped from the served palette: it set
1546 outline: none and hid the focus ring. This is that rule without it, on
1547 a 24px box so a line number is a target and not a glyph (#232) */
1548.chroma .lnlinks { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-decoration: none; color: inherit; }
1549.chroma .line { line-height: 24px; }
1550
1551.blamehunk { display: flex; gap: var(--sp-3); border-top: 1px solid var(--line); align-items: flex-start; }
1552.blamehunk:first-child { border-top: 0; }
1553.blameinfo { flex: none; width: 17rem; min-width: 0; padding: var(--sp-2) var(--sp-3); }
1554.blameinfo .subject { margin: 0; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1555.blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); }
1556.blamecode {
1557 flex: 1;
1558 margin: 0;
1559 padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
1560 background: var(--inset);
1561 border: 0;
1562 border-left: 1px solid var(--line);
1563 border-radius: 0;
1564 overflow-x: auto;
1565 align-self: stretch;
1566}
1567.lineno {
1568 display: inline-block;
1569 min-width: 3.5em;
1570 padding-right: 1em;
1571 text-align: right;
1572 color: var(--muted);
1573 user-select: none;
1574}
1575
1576/* ---- chips and badges ---- */
1577.chip, .badge {
1578 --chip: var(--neutral);
1579 display: inline-block;
1580 padding: 1px 8px;
1581 border-radius: var(--r-ctl);
1582 font-size: var(--fs-0);
1583 font-weight: 500;
1584 line-height: 1.5;
1585 color: var(--chip);
1586 border: 1px solid color-mix(in srgb, var(--chip) 40%, transparent);
1587 background: color-mix(in srgb, var(--chip) 10%, var(--canvas));
1588 white-space: nowrap;
1589 vertical-align: middle;
1590}
1591.chip-open { --chip: var(--ok); }
1592.chip-closed { --chip: var(--bad); }
1593.chip-merged, .chip-done { --chip: var(--done); }
1594.chip-neutral, .chip-source_gone { --chip: var(--neutral); }
1595.chip-stale { --chip: var(--warn); }
1596.chip.topic { --chip: var(--link); }
1597.chip.topic:hover { text-decoration: none; background: color-mix(in srgb, var(--chip) 18%, transparent); }
1598/* A label carries its own colour inline, from the label's hex, as one
1599 tone per scheme: chip text is 12px, so it needs 4.5:1 against its own
1600 ground, and no single colour clears that on both canvases (#226). An
1601 old browser without light-dark() drops the declaration and the chip
1602 falls back to the neutral above. */
1603.chip.label {
1604 --chip: light-dark(var(--chip-l, var(--neutral)), var(--chip-d, var(--neutral)));
1605 font-weight: 500;
1606}
1607.badge-verified { --chip: var(--ok); }
1608.badge-unsigned { --chip: var(--neutral); }
1609.badge-signed_unknown_key, .badge-signed_key_expired { --chip: var(--warn); }
1610.badge-signed_email_mismatch, .badge-signed_key_revoked, .badge-bad_signature { --chip: var(--bad); }
1611.badge.check-success, .chip.check-success { --chip: var(--ok); }
1612.badge.check-pending, .chip.check-pending,
1613.badge.check-running, .chip.check-running { --chip: var(--warn); }
1614.badge.check-failure, .chip.check-failure,
1615.badge.check-error, .chip.check-error { --chip: var(--bad); }
1616.badge.check-cancelled, .chip.check-cancelled,
1617.badge.check-skipped, .chip.check-skipped { --chip: var(--neutral); }
1618span.check-success { color: var(--ok); }
1619span.check-pending, span.check-running { color: var(--warn); }
1620span.check-failure, span.check-error { color: var(--bad); }
1621
1622a.memberchip {
1623 display: inline-block;
1624 border: 1px solid var(--line);
1625 border-radius: var(--r-ctl);
1626 padding: 1px 8px;
1627 margin: 0 2px 2px 0;
1628 color: var(--fg);
1629 font-size: var(--fs-1);
1630}
1631a.memberchip:hover { text-decoration: none; border-color: var(--link); color: var(--link); }
1632a.memberchip .role { color: var(--muted); }
1633
1634.pathbar { display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); flex-wrap: wrap; font-size: var(--fs-2); overflow-wrap: anywhere; }
1635.pathbar .spacer { flex: 1; }
1636.pathbar .actions { display: flex; align-items: center; gap: var(--sp-2); }
1637/* history · blame · raw were 21px tall and "raw" 22px wide (#232) */
1638.pathbar .actions a { display: inline-block; padding: 6px 4px; }
1639.pathbar .acts { display: flex; gap: var(--sp-2); }
1640.crumbs { color: var(--muted); }
1641.crumbs a { color: var(--link); }
1642.crumbs strong { color: var(--fg); }
1643
1644/* ---- file navigator: the directory beside a file ---- */
1645.blobgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1646.blobmain { min-width: 0; }
1647.filenav { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1648.filenav ul { list-style: none; margin: 0; padding: 0; }
1649.filenav li a {
1650 display: block;
1651 padding: 3px var(--sp-2);
1652 border-radius: var(--r-ctl);
1653 color: var(--fg);
1654 font-family: var(--mono);
1655 font-size: var(--fs-1);
1656 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1657}
1658.filenav li a:hover { background: var(--hover); text-decoration: none; }
1659.filenav li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 600; }
1660.filenav li a.dir { color: var(--link); }
1661.filenav li a.up { color: var(--muted); }
1662
1663/* ---- side column: facets or sections beside a list or a form ---- */
1664.withcol { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1665.withcol.narrow { grid-template-columns: 15rem minmax(0, 56rem); }
1666.colmain { min-width: 0; }
1667.sidecol { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1668.sidecol .grp { margin-bottom: var(--sp-4); }
1669.sidecol ul { list-style: none; margin: 0; padding: 0; }
1670.sidecol li a {
1671 display: flex; align-items: baseline; gap: var(--sp-2);
1672 padding: 4px var(--sp-2);
1673 border-radius: var(--r-ctl);
1674 color: var(--fg);
1675}
1676.sidecol li a:hover { background: var(--hover); text-decoration: none; }
1677.sidecol li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 500; }
1678.sidecol li a i { margin-left: auto; font-style: normal; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
1679.sidecol form.searchform { margin-top: var(--sp-2); }
1680.sidecol form.searchform input[type="text"] { min-width: 0; width: 100%; }
1681
1682/* The column's groups sit in a disclosure. Below 62rem that is all the
1683 reader sees of the column: one closed line before the list, because a
1684 repository with two dozen labels stacked the whole vocabulary under
1685 the content it filters. Above 62rem the summary is hidden and the
1686 content shown whatever the open state, so the column is what it
1687 always was. The @supports guard is the fail-safe: an engine without
1688 ::details-content keeps a working toggle at every width instead of
1689 losing the column (#237). */
1690.sidedrop > summary {
1691 display: inline-flex;
1692 align-items: center;
1693 gap: var(--sp-2);
1694 height: 32px;
1695 padding: 0 var(--sp-3);
1696 background: var(--canvas);
1697 border: 1px solid var(--line);
1698 border-radius: var(--r-ctl);
1699 color: var(--fg);
1700 font-size: var(--fs-2);
1701 cursor: pointer;
1702 list-style: none;
1703}
1704.sidedrop[open] > summary { margin-bottom: var(--sp-3); }
1705.sidedrop > summary::-webkit-details-marker { display: none; }
1706.sidedrop > summary:hover { background: var(--hover); }
1707.sidedrop > summary::after { content: "\25be"; color: var(--muted); }
1708.sidedrop[open] > summary::after { content: "\25b4"; }
1709.sideword { font-weight: 600; }
1710/* the filters in force: where you are */
1711.sideon { color: var(--warn); }
1712/* every group came out empty, so there is nothing to open */
1713.sidedrop:not(:has(.grp)) { display: none; }
1714
1715@media (min-width: 62.01rem) {
1716 .withcol:has(.statebar) .sidecol .grp-state { display: none; }
1717 @supports selector(::details-content) {
1718 .sidedrop > summary { display: none; }
1719 .sidedrop::details-content { content-visibility: visible; }
1720 }
1721}
1722
1723/* a sticky column taller than the viewport scrolls inside itself, or its
1724 tail is unreachable once the page scrolls. Above 62rem only: below it
1725 .filenav is hidden and the other two are static. .dashpins stops being
1726 a column at 80rem and resets both properties there. */
1727@media (min-width: 62.01rem) {
1728 .filenav, .sidecol, .dashgrid > aside { max-height: calc(100vh - 2 * var(--sp-4)); overflow-y: auto; }
1729}
1730
1731.refchip {
1732 display: inline-flex;
1733 align-items: center;
1734 gap: 6px;
1735 height: 32px;
1736 padding: 0 10px;
1737 background: var(--canvas);
1738 border: 1px solid var(--line);
1739 border-radius: var(--r-ctl);
1740 font-family: var(--mono);
1741 font-size: var(--fs-2);
1742 font-weight: 500;
1743 color: var(--fg);
1744}
1745details.refmenu { position: relative; }
1746details.refmenu summary { cursor: pointer; list-style: none; }
1747details.refmenu summary::-webkit-details-marker { display: none; }
1748details.refmenu summary::after { content: " \25be"; color: var(--muted); }
1749details.refmenu .refdrop {
1750 position: absolute;
1751 z-index: 10;
1752 top: calc(100% + 4px);
1753 left: 0;
1754 min-width: 12rem;
1755 max-height: 20rem;
1756 overflow-y: auto;
1757 overscroll-behavior: contain;
1758 background: var(--canvas);
1759 border: 1px solid var(--line);
1760 border-radius: var(--r-card);
1761 box-shadow: var(--shadow);
1762 padding: var(--sp-1) 0;
1763}
1764details.refmenu .refdrop a {
1765 display: block;
1766 padding: var(--sp-1) var(--sp-3);
1767 color: var(--fg);
1768 font-family: var(--mono);
1769 font-size: var(--fs-1);
1770}
1771details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; }
1772details.refmenu .refdrop a.allrefs {
1773 color: var(--link);
1774 font-family: var(--sans);
1775 border-top: 1px solid var(--faint);
1776 margin-top: var(--sp-1);
1777}
1778
1779/* ---- repository overview layout ---- */
1780.overview { display: block; }
1781.overviewmain { min-width: 0; }
1782/* the side column exists only above 62rem; below it .facts keeps its
1783 own two-up layout and the 40rem factgrid rule applies untouched */
1784@media (min-width: 62.01rem) {
1785 .overview.withfacts { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1786 .overview.withfacts .facts { display: block; margin-top: 0; max-width: none; }
1787 .overview.withfacts .facts .factgrid { grid-template-columns: repeat(2, auto); }
1788 .overview.withfacts .clone pre { white-space: pre-wrap; word-break: break-all; }
1789}
1790
1791/* ---- repository facts ---- */
1792.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin: var(--sp-5) 0 var(--sp-4); max-width: 72rem; }
1793.facts h2 {
1794 margin: 0 0 var(--sp-2);
1795 font-size: var(--fs-1);
1796 font-weight: 500;
1797 letter-spacing: 0.08em;
1798 text-transform: uppercase;
1799 color: var(--muted);
1800}
1801.clone { margin: 0 0 var(--sp-3); }
1802.facts .about { min-width: 0; margin-bottom: var(--sp-5); }
1803.clone .fieldname { font-size: var(--fs-1); color: var(--muted); font-weight: 500; margin-bottom: 2px; }
1804.clone pre { margin-bottom: var(--sp-3); user-select: all; }
1805.factgrid { display: grid; grid-template-columns: repeat(4, auto); gap: var(--sp-2) var(--sp-4); font-size: var(--fs-2); margin-bottom: var(--sp-3); }
1806.factgrid b { font-weight: 600; }
1807.factgrid a { color: var(--fg); }
1808.factgrid a:hover { color: var(--link); }
1809.counts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-3); font-size: var(--fs-2); }
1810.counts a { color: var(--fg); }
1811.counts a:hover { color: var(--link); }
1812.counts strong { font-weight: 600; }
1813.fact { color: var(--muted); }
1814.langbar { display: flex; height: 8px; margin: 0 0 var(--sp-2); border-radius: var(--r-ctl); overflow: hidden; gap: 1px; background: var(--faint); }
1815.langbar .lang { display: block; height: 100%; min-width: 2px; }
1816.langs { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--fs-1); color: var(--muted); }
1817.langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); }
1818.langs .dot { width: 8px; height: 8px; }
1819/* named where it reads as the language's own colour, neutral otherwise */
1820.lang { background: var(--neutral); }
1821.lang-go { background: var(--lang-go); }
1822.lang-rust { background: var(--lang-rust); }
1823.lang-c, .lang-c- { background: var(--lang-c); }
1824.lang-python { background: var(--lang-python); }
1825.lang-javascript { background: var(--lang-javascript); }
1826.lang-typescript { background: var(--lang-typescript); }
1827.lang-shell { background: var(--lang-shell); }
1828.lang-ruby { background: var(--lang-ruby); }
1829.lang-java { background: var(--lang-java); }
1830.lang-swift { background: var(--lang-swift); }
1831.lang-html { background: var(--lang-html); }
1832.lang-css { background: var(--lang-css); }
1833.lang-org { background: var(--lang-org); }
1834.lang-markdown { background: var(--lang-markdown); }
1835.lang-emacs-lisp { background: var(--lang-emacs-lisp); }
1836.lang-nix { background: var(--lang-nix); }
1837.lang-sql { background: var(--lang-sql); }
1838.contribs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1); }
1839.contribs .label { color: var(--muted); }
1840.teambody { padding: var(--sp-3); }
1841.teambody .memberchip { margin-right: var(--sp-2); }
1842
1843/* ---- landing ---- */
1844/* the width class on main carries this too; the cap here keeps the page
1845 readable on the templates that do not set one yet */
1846.landing { max-width: 48rem; padding: var(--sp-6) 0; }
1847.landing h1 { font-size: var(--fs-6); display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
1848.landing h1 .mark { width: 32px; height: 32px; }
1849.lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; max-width: 40rem; margin: 0 0 var(--sp-5); }
1850pre.quickstart { margin: 0 0 var(--sp-4); }
1851.shot { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: var(--sp-5) 0; }
1852.shot video { display: block; width: 100%; height: auto; }
1853.shot figcaption {
1854 border-top: 1px solid var(--line);
1855 background: var(--surface);
1856 padding: var(--sp-2) var(--sp-3);
1857 color: var(--muted);
1858 font-size: var(--fs-1);
1859}
1860.facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; }
1861.facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1862.facets p { color: var(--muted); font-size: var(--fs-2); margin: 0; }
1863.routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-4) 0 0; }
1864
1865/* ---- profile ---- */
1866.profilehead { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
1867.profilehead h1 { margin: 0 0 var(--sp-1); }
1868.profilehead .lede { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1869.profilehead .meta { margin: var(--sp-1) 0 0; }
1870.activity { margin-bottom: var(--sp-5); }
1871h2 .count { background: none; color: var(--muted); font-weight: 400; font-size: var(--fs-2); margin-left: var(--sp-2); padding: 0; }
1872/* 53 week columns x 7 day rows, tinted with the link blue */
1873.actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); }
1874.actgraph { display: flex; gap: 3px; width: max-content; padding-top: 18px; }
1875.actweek { display: flex; flex-direction: column; gap: 3px; position: relative; }
1876.actmonth { position: absolute; top: -16px; left: 0; font-size: var(--fs-0); color: var(--muted); }
1877.actday { width: 11px; height: 11px; border-radius: 2px; background: var(--faint); }
1878.actday.pad { background: transparent; }
1879.actday.l0 { background: var(--faint); }
1880.actday.l1 { background: color-mix(in srgb, var(--link) 25%, var(--canvas)); }
1881.actday.l2 { background: color-mix(in srgb, var(--link) 50%, var(--canvas)); }
1882.actday.l3 { background: color-mix(in srgb, var(--link) 75%, var(--canvas)); }
1883.actday.l4 { background: var(--link); }
1884.actlegend { display: flex; align-items: center; gap: 3px; margin-top: var(--sp-2); font-size: var(--fs-0); color: var(--muted); }
1885.actlegend span:first-child { margin-right: var(--sp-1); }
1886.actlegend span:last-child { margin-left: var(--sp-1); }
1887/* the activity log under the graph: the newest events, not the year */
1888.logsub { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
1889.ownerlog .feedline { font-size: var(--fs-2); }
1890.ownerlog .feedline .none { font-size: var(--fs-1); }
1891
1892/* ---- wiki ---- */
1893.wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; }
1894.wikipage { flex: 1; min-width: 0; }
1895.wikinav { flex: none; width: 15rem; }
1896.wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; }
1897.wikinav .wikidir { margin-bottom: 0; }
1898.wikinav li a {
1899 display: block;
1900 padding: 5px var(--sp-2);
1901 border-radius: var(--r-ctl);
1902 color: var(--fg);
1903 font-size: var(--fs-2);
1904}
1905.wikinav li a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
1906.wikinav li a.active { background: var(--surface); color: var(--link); font-weight: 500; }
1907
1908/* ---- misc ---- */
1909.meta { color: var(--muted); font-size: var(--fs-1); }
1910.muted { color: var(--muted); }
1911.desc, td.desc { color: var(--muted); }
1912.spacer { flex: 1; }
1913.compact { margin: 0; }
1914.name { min-width: 0; }
1915svg.icon { vertical-align: -0.125em; }
1916.sep { color: var(--muted); }
1917.owner { color: var(--muted); }
1918.title { margin: 0; }
1919.subject { min-width: 0; }
1920.sha { font-family: var(--mono); }
1921.when { color: var(--muted); }
1922.who { font-weight: 500; }
1923.was { color: var(--muted); }
1924.role { color: var(--muted); }
1925.age { color: var(--muted); }
1926.size { color: var(--muted); }
1927.review { font-size: var(--fs-2); }
1928
1929/* ---- breakpoints ---- */
1930@media (max-width: 80rem) {
1931 .dashgrid { grid-template-columns: minmax(0, 1fr) 20rem; }
1932 /* not a column any more, so it neither sticks nor scrolls in itself */
1933 .dashgrid > .dashpins { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
1934 /* a pinned block that is not a column is the chip row (spec rule 7) */
1935 .pins { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1936 /* the shorthand loses to .pins li:last-child, which drops the bottom
1937 border of the last chip -- and so of the second row */
1938 .pins li, .pins li:last-child { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--sp-1) var(--sp-3); }
1939 .pins .n, .dashpins .meta { display: none; }
1940}
1941
1942@media (max-width: 62rem) {
1943 /* one column, the aside after the thread: a phone shows the
1944 description first, checks and reviewers after it (#232) */
1945 .withaside { grid-template-columns: 1fr; }
1946
1947 /* rows go back to two lines where one does not fit */
1948 ul.issuelist.rows .issuemain, ul.repolist.rows, ul.repolist.rows li, ul.loglist.rows .commitmain { display: block; }
1949 ul.issuelist.rows .title, ul.repolist.rows .desc { white-space: normal; }
1950 ul.repolist.rows .reponame, ul.repolist.rows .meta { display: block; }
1951 ul.repolist.rows li > *, ul.repolist.rows .reponame > *, ul.repolist.rows .meta > * { padding-left: 0; white-space: normal; }
1952 ul.repolist.rows .license::before, ul.repolist.rows .updated::before { content: " · "; }
1953 /* a nowrap meta or topic line on one of these rows forces horizontal
1954 page scroll on a phone: a long branch name, a long owner/repo#N */
1955 ul.issuelist.rows .meta, ul.loglist.rows .meta,
1956 ul.repolist.rows .meta, ul.repolist.rows .topics { white-space: normal; }
1957
1958 .dashgrid { grid-template-columns: 1fr; }
1959 .dashgrid > aside { position: static; }
1960 .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1961
1962 /* the tree page is the navigator on a phone */
1963 .blobgrid { grid-template-columns: 1fr; }
1964 .filenav { display: none; }
1965
1966 /* the column is a closed disclosure before the content: a filter you
1967 reach without scrolling the list, and nothing to scroll past when
1968 you do not want it. It leads rather than follows because it is what
1969 the list is narrowed by, not a note on one row (#237) */
1970 .withcol, .withcol.narrow { grid-template-columns: 1fr; }
1971 .sidecol { position: static; margin-bottom: var(--sp-3); }
1972 .sidecol .grp { display: inline-block; vertical-align: top; margin-right: var(--sp-5); }
1973}
1974
1975@media (max-width: 52rem) {
1976 main.content { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
1977 footer { padding: var(--sp-4); }
1978 .repohead { padding: var(--sp-3) 0 0; }
1979 .repohead .wrap { padding: 0 var(--sp-4); }
1980 /* seven tabs do not fit a phone in one row; a hidden scrollbar made the
1981 ones past the edge look absent. Two rows show all of them. */
1982 nav.tabs { flex-wrap: wrap; overflow: visible; }
1983 .facts { grid-template-columns: 1fr; }
1984 /* a phone shows the description under the name, not beside it */
1985 .repodesc { flex-basis: 100%; margin-left: 0; }
1986}
1987
1988@media (max-width: 40rem) {
1989 .facets { grid-template-columns: 1fr; gap: var(--sp-4); }
1990 .wikilayout { flex-direction: column; align-items: stretch; }
1991 .wikinav { width: auto; }
1992 form.setform { grid-template-columns: 1fr; gap: var(--sp-2); }
1993 form.setform label { margin-top: 0; }
1994 /* the commit subject is the widest thing in a file table and the one
1995 column a phone can do without: the tipbar above already names the
1996 latest commit */
1997 table.tree td.lastcommit, table.tree th.lastcommit { display: none; }
1998 table.tree td.mode, table.tree th.mode { display: none; }
1999 /* at 320px a nowrap name plus the age column overran the card by the
2000 cell padding and the card clipped the age; a long name wraps (#232) */
2001 table.tree td.name { white-space: normal; overflow-wrap: anywhere; }
2002 .clone pre { white-space: pre-wrap; word-break: break-all; }
2003 .readme .cardbody, .code { padding: var(--sp-3); }
2004 .thread { margin-left: var(--sp-3); }
2005 .blamehunk { flex-direction: column; gap: 0; }
2006 .blameinfo { width: auto; }
2007 .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; }
2008 .factgrid { grid-template-columns: repeat(2, auto); }
2009 ul.loglist li { flex-wrap: wrap; }
2010 ul.loglist .commitside { width: 100%; justify-content: flex-start; }
2011}
2012
2013/* Compact phones expand rail icon sizes slightly while keeping the avatar
2014 and + dropdowns cleanly targetable. */
2015@media (max-width: 34rem) {
2016 .railicon svg { width: 18px; height: 18px; }
2017 a.brand { width: var(--rail-hit); }
2018}
2019.railpins-mob { display: none; }
2020@media (max-width: 44rem) {
2021 .railpins-mob { display: block; }
2022}
2023
2024/* ---- reactions ---- */
2025.reactions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: var(--sp-2) var(--sp-4); }
2026p.reactions { color: var(--muted); font-size: var(--fs-1); }
2027article.comment .reactions { border-top: 1px solid var(--faint); }
2028button.react, span.react {
2029 font: inherit;
2030 font-size: var(--fs-1);
2031 padding: 0 var(--sp-2);
2032 min-height: 24px;
2033 border: 1px solid var(--line);
2034 border-radius: var(--r-ctl);
2035 background: transparent;
2036 color: var(--muted);
2037}
2038button.react { cursor: pointer; }
2039button.react:hover { background: var(--surface); }
2040button.react.mine { border-color: var(--link); background: var(--surface); color: var(--fg); }
2041
2042/* ---- rail pinned switcher ---- */
2043.railusermenu, .railcreate { position: relative; }
2044.railusermenu > summary, .railcreate > summary { list-style: none; cursor: pointer; }
2045.railusermenu > summary::-webkit-details-marker, .railcreate > summary::-webkit-details-marker { display: none; }
2046.railcreate[open] > summary, .railpins[open] > summary { background: var(--shell-hover); }
2047.railavatar {
2048 display: inline-flex;
2049 align-items: center;
2050 justify-content: center;
2051 gap: 5px;
2052 height: 32px;
2053 padding: 0 var(--sp-2);
2054 border-radius: var(--r-ctl);
2055}
2056.railavatar:hover, .railusermenu[open] > .railavatar { background: var(--shell-hover); }
2057.railavatar .avatar { width: var(--rail-mark); height: var(--rail-mark); }
2058.raildrop { top: calc(100% + 6px); }
2059.raildrop a.railuser {
2060 width: 100%;
2061 height: auto;
2062 justify-content: flex-start;
2063}
2064.raildrop a[aria-current="page"] {
2065 box-shadow: inset 2px 0 0 var(--shell-mark);
2066 font-weight: 600;
2067}
2068.railsep {
2069 border: 0;
2070 border-top: 1px solid var(--shell-line);
2071 margin: var(--sp-1) 0;
2072}
2073.railpins { position: relative; }
2074.railpins > summary { list-style: none; }
2075.railpins > summary::-webkit-details-marker { display: none; }
2076.railpins .raildrop {
2077 left: 0;
2078 right: auto;
2079 top: calc(100% + 6px);
2080 bottom: auto;
2081 min-width: 14rem;
2082}
2083.railpins .raildrop .none { display: block; padding: var(--sp-2) var(--sp-3); color: var(--muted); font-size: var(--fs-1); }
2084
2085/* ---- diff file jump-list ---- */
2086.difftoc {
2087 margin: var(--sp-3) 0;
2088 border: 1px solid var(--faint);
2089 border-radius: var(--r-card);
2090 background: var(--surface);
2091}
2092.difftoc > summary {
2093 cursor: pointer;
2094 padding: var(--sp-2) var(--sp-3);
2095 font-size: var(--fs-1);
2096 font-weight: 600;
2097 color: var(--fg);
2098}
2099.difftoc-list {
2100 list-style: none;
2101 margin: 0;
2102 padding: 0 var(--sp-3) var(--sp-2);
2103 display: flex;
2104 flex-direction: column;
2105 gap: var(--sp-1);
2106 font-size: var(--fs-1);
2107 font-family: var(--mono);
2108}
2109.difftoc-list li {
2110 display: flex;
2111 align-items: baseline;
2112 gap: var(--sp-2);
2113}
2114.difftoc-list a { overflow-wrap: anywhere; }
2115.difftoc-list .fstat { margin-left: auto; white-space: nowrap; }
2116
2117/* ---- sidebar pickers & batched review ---- */
2118.review-pending {
2119 color: var(--warn);
2120 font-weight: 600;
2121 font-size: var(--fs-1);
2122}
2123.picker { margin: var(--sp-2) 0; }
2124.picker > summary {
2125 cursor: pointer;
2126 font-size: var(--fs-1);
2127 color: var(--link);
2128}
2129.picker-list {
2130 display: flex;
2131 flex-wrap: wrap;
2132 gap: var(--sp-1);
2133 margin-top: var(--sp-2);
2134}
2135.picker-btn {
2136 font: inherit;
2137 font-size: var(--fs-0);
2138 padding: 2px var(--sp-2);
2139 border: 1px solid var(--line);
2140 border-radius: var(--r-ctl);
2141 background: var(--canvas);
2142 color: var(--fg);
2143 cursor: pointer;
2144}
2145.picker-btn:hover { background: var(--hover); }
2146.picker-btn[aria-pressed="true"] {
2147 border-color: var(--link);
2148 background: var(--surface);
2149 font-weight: 600;
2150}
2151
2152/* ---- split-button watch & header count badges ---- */
2153.splitbtn { display: inline-flex; align-items: center; }
2154.splitbtn > form > button.btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
2155.splitbtn > details.watchpop > summary.splitcaret {
2156 border-top-left-radius: 0;
2157 border-bottom-left-radius: 0;
2158 border-left: 0;
2159 padding: 0 7px;
2160 min-width: 24px;
2161}
2162.watchpop .popmenu { width: 18rem; gap: var(--sp-1); padding: var(--sp-2); }
2163.watchopt {
2164 display: flex;
2165 flex-direction: column;
2166 align-items: flex-start;
2167 gap: 2px;
2168 width: 100%;
2169 height: auto;
2170 padding: var(--sp-2) var(--sp-3);
2171 background: transparent;
2172 color: var(--fg);
2173 border: 1px solid transparent;
2174 border-radius: var(--r-ctl);
2175 text-align: left;
2176 white-space: normal;
2177 filter: none;
2178}
2179.watchopt:hover { background: var(--hover); filter: none; }
2180.watchopt[aria-pressed="true"] { background: var(--surface); border-color: var(--mark); }
2181.watchopt b { font-size: var(--fs-2); font-weight: 600; }
2182.watchopt span { font-size: var(--fs-0); color: var(--muted); font-weight: 400; line-height: 1.35; }
2183.btncount {
2184 font-style: normal;
2185 font-size: var(--fs-0);
2186 font-weight: 600;
2187 padding: 0 6px;
2188 border-radius: var(--r-ctl);
2189 background: var(--surface);
2190 color: var(--muted);
2191 font-variant-numeric: tabular-nums;
2192}
2193.filter-empty { color: var(--muted); }
2194
2195/* ---- sidebar group headers & floating popovers ---- */
2196.grp-head {
2197 display: flex;
2198 align-items: center;
2199 justify-content: space-between;
2200 gap: var(--sp-2);
2201 margin-bottom: var(--sp-2);
2202}
2203.grp-head h2 { margin: 0; }
2204.popover { position: relative; }
2205.popover > summary { list-style: none; }
2206.popover > summary::-webkit-details-marker { display: none; }
2207.popbtn {
2208 display: inline-flex;
2209 align-items: center;
2210 padding: 2px var(--sp-2);
2211 border-radius: var(--r-ctl);
2212 font-size: var(--fs-0);
2213 font-weight: 500;
2214 color: var(--muted);
2215 cursor: pointer;
2216}
2217.popbtn:hover, .popover[open] > .popbtn { background: var(--hover); color: var(--fg); }
2218.popmenu {
2219 position: absolute;
2220 right: 0;
2221 top: calc(100% + var(--sp-1));
2222 z-index: 30;
2223 width: 16rem;
2224 max-width: 85vw;
2225 padding: var(--sp-3);
2226 background: var(--card);
2227 border: 1px solid var(--card-line);
2228 border-radius: var(--r-card);
2229 box-shadow: var(--shadow);
2230 display: flex;
2231 flex-direction: column;
2232 gap: var(--sp-2);
2233}
2234.popform {
2235 display: flex;
2236 gap: var(--sp-2);
2237 align-items: center;
2238 margin: 0;
2239}
2240.popform input[type="text"], .popform select { flex: 1; min-width: 0; }
2241
2242/* ---- nav search bar & Cmd+K command palette ---- */
2243.railsearch-mob { display: none; }
2244.railsearch {
2245 display: flex;
2246 align-items: center;
2247 flex: 1 1 18rem;
2248 max-width: 28rem;
2249 margin: 0 var(--sp-3);
2250 height: 32px;
2251 padding: 0 var(--sp-1) 0 var(--sp-3);
2252 border: 1px solid var(--shell-line);
2253 border-radius: var(--r-ctl);
2254 background: var(--shell-hover);
2255}
2256.railsearch:focus-within { border-color: var(--shell-mark); }
2257.railsearch input[type="search"] {
2258 flex: 1;
2259 min-width: 0;
2260 height: 100%;
2261 padding: 0;
2262 border: 0;
2263 background: transparent;
2264 color: var(--shell-fg);
2265 font-size: var(--fs-1);
2266}
2267.railsearch input[type="search"]::placeholder { color: var(--shell-muted); }
2268.railsearch input[type="search"]:focus { outline: none; }
2269.cmdk-trigger {
2270 display: inline-flex;
2271 align-items: center;
2272 height: 24px;
2273 padding: 0 var(--sp-2);
2274 border: 1px solid var(--shell-line);
2275 border-radius: var(--r-ctl);
2276 background: var(--shell-bg);
2277 color: var(--shell-muted);
2278 font-size: var(--fs-0);
2279 font-weight: 400;
2280 cursor: pointer;
2281}
2282.cmdk-trigger:hover { color: var(--shell-fg); border-color: var(--shell-muted); filter: none; }
2283.cmdk-trigger kbd { font-family: var(--mono); font-size: var(--fs-0); color: inherit; }
2284dialog.cmdk {
2285 padding: 0;
2286 border: 1px solid var(--faint);
2287 border-radius: var(--r-card);
2288 background: var(--canvas);
2289 color: var(--fg);
2290 box-shadow: var(--shadow);
2291 width: min(42rem, 92vw);
2292 margin: 12vh auto auto;
2293}
2294dialog.cmdk::backdrop { background: rgb(0 0 0 / 0.45); }
2295.cmdk-box { display: flex; flex-direction: column; }
2296.cmdk-box input[type="search"] {
2297 width: 100%;
2298 height: 44px;
2299 padding: 0 var(--sp-4);
2300 border: 0;
2301 border-bottom: 1px solid var(--faint);
2302 border-radius: 0;
2303 background: transparent;
2304 font-size: var(--fs-3);
2305}
2306.cmdk-box input[type="search"]:focus { outline: none; }
2307.cmdk-list {
2308 list-style: none;
2309 margin: 0;
2310 padding: var(--sp-2);
2311 max-height: 22rem;
2312 overflow-y: auto;
2313}
2314.cmdk-list a {
2315 display: flex;
2316 align-items: center;
2317 gap: var(--sp-3);
2318 padding: var(--sp-2) var(--sp-3);
2319 border-radius: var(--r-ctl);
2320 color: var(--fg);
2321 text-decoration: none;
2322 font-size: var(--fs-2);
2323}
2324.cmdk-list a:hover, .cmdk-list a[aria-selected="true"] { background: var(--hover); }
2325.cmdk-grp {
2326 font-size: var(--fs-0);
2327 color: var(--muted);
2328 min-width: 5.5rem;
2329}
2330.cmdk-empty { padding: var(--sp-4); color: var(--muted); text-align: center; font-size: var(--fs-2); }
2331
2332/* ---- copy button on code & clone blocks ---- */
2333.copywrap { position: relative; }
2334.copywrap pre { padding-right: 4.5rem; }
2335.copybtn {
2336 position: absolute;
2337 top: 6px;
2338 right: var(--sp-2);
2339 height: 24px;
2340 padding: 0 var(--sp-2);
2341 font-size: var(--fs-0);
2342 background: var(--surface);
2343 color: var(--fg);
2344 border: 1px solid var(--card-line);
2345 border-radius: var(--r-ctl);
2346}
2347.copywrap.oneline .copybtn {
2348 top: 50%;
2349 transform: translateY(-50%);
2350}
2351.copybtn:hover { background: var(--hover); filter: none; }
2352
2353@media (max-width: 44rem) {
2354 .railsearch { display: none; }
2355 .railsearch-mob { display: list-item; }
2356}
2357
2358/* ---- account & admin redesign ---- */
2359.setcard, section.activity {
2360 background: var(--card);
2361 border: 1px solid var(--card-line);
2362 border-radius: var(--r-card);
2363 box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
2364 padding: var(--sp-5);
2365 margin: 0 0 var(--sp-5);
2366}
2367.setcard > h2:first-child, section.activity > h2:first-child { margin-top: 0; }
2368.setcard > h2, section.activity > h2 { display: flex; align-items: center; gap: var(--sp-2); }
2369.setcard-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--faint)); }
2370.setcard .tablewrap { overflow: visible; }
2371@media (max-width: 52rem) {
2372 .setcard .tablewrap { overflow-x: auto; }
2373}
2374.adminhead {
2375 display: flex;
2376 align-items: center;
2377 gap: var(--sp-3);
2378 flex-wrap: wrap;
2379 margin-bottom: var(--sp-3);
2380}
2381.adminhead h1 { margin: 0 0 var(--sp-1); }
2382.adminhead p.meta { margin: 0; }
2383nav.admintabs {
2384 border-bottom: 1px solid var(--faint);
2385 margin-top: 0;
2386 margin-bottom: var(--sp-5);
2387}
2388.sidecol.sticky {
2389 position: sticky;
2390 top: var(--sp-4);
2391 align-self: start;
2392}
2393.popbtn-danger { color: var(--bad); }
2394.popbtn-danger:hover, .popover[open] > .popbtn-danger {
2395 background: color-mix(in srgb, var(--bad) 10%, transparent);
2396 color: var(--bad);
2397}
2398.tablefilter { min-width: 14rem; }
2399pre.copyable { margin: var(--sp-2) 0 0; }
2400html.js form[data-autosave] button[type="submit"] { display: none; }
2401html.js form.setform[data-autosave] { grid-template-columns: minmax(14rem, 1fr) minmax(0, 28rem); }
2402html.js form.setform[data-autosave] > div:has(> button[type="submit"]) { display: none; }
2403.toast {
2404 position: fixed;
2405 right: var(--sp-5);
2406 bottom: var(--sp-5);
2407 z-index: 60;
2408 padding: var(--sp-2) var(--sp-4);
2409 border-radius: var(--r-ctl);
2410 background: var(--shell-bg);
2411 color: var(--shell-fg);
2412 font-size: var(--fs-2);
2413 box-shadow: var(--shadow);
2414 opacity: 0;
2415 transform: translateY(6px);
2416 pointer-events: none;
2417 transition: opacity 0.16s ease, transform 0.16s ease;
2418}
2419.toast-show { opacity: 1; transform: translateY(0); }
2420.toast-err { background: var(--bad); color: var(--canvas); }
2421
2422/* ---- dashboard & profile polish ---- */
2423.dashpins, .feedcol {
2424 background: var(--card);
2425 border: 1px solid var(--card-line);
2426 border-radius: var(--r-card);
2427 box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
2428 padding: var(--sp-4);
2429}
2430.dashcard-head {
2431 display: flex;
2432 align-items: baseline;
2433 justify-content: space-between;
2434 gap: var(--sp-2);
2435 margin-bottom: var(--sp-2);
2436}
2437.dashcard-head h2 { margin: 0; }
2438.dashfilter {
2439 width: 100%;
2440 margin: 0 0 var(--sp-2);
2441}
2442.dashsec { margin-bottom: var(--sp-5); }
2443.dashsec h2 {
2444 display: flex;
2445 align-items: center;
2446 gap: var(--sp-2);
2447 margin: 0 0 var(--sp-2);
2448}
2449.profilecard {
2450 background: var(--card);
2451 border: 1px solid var(--card-line);
2452 border-radius: var(--r-card);
2453 box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
2454 padding: var(--sp-5);
2455 margin-bottom: var(--sp-4);
2456}
2457.profiletop {
2458 display: flex;
2459 align-items: flex-start;
2460 gap: var(--sp-4);
2461 flex-wrap: wrap;
2462}
2463.avatar-lg {
2464 width: 52px;
2465 height: 52px;
2466 font-size: var(--fs-5);
2467}
2468.profileid { flex: 1; min-width: 14rem; }
2469.profileid h1 { margin: 0 0 var(--sp-1); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
2470.profilemeta {
2471 display: flex;
2472 flex-wrap: wrap;
2473 gap: var(--sp-2) var(--sp-4);
2474 font-size: var(--fs-1);
2475 color: var(--muted);
2476 margin-top: var(--sp-2);
2477}
2478.profilemeta a { color: var(--muted); }
2479.profilemeta a:hover { color: var(--link); }
2480
2481/* ---- /new & /notifications polish ---- */
2482nav.newtabs {
2483 border-bottom: 1px solid var(--faint);
2484 margin-top: 0;
2485 margin-bottom: var(--sp-5);
2486}
2487.ownername {
2488 display: flex;
2489 align-items: flex-end;
2490 gap: var(--sp-2);
2491 flex-wrap: wrap;
2492}
2493.ownerpick { flex: 0 0 auto; min-width: 9rem; }
2494.namepick { flex: 1 1 14rem; min-width: 0; }
2495.ownername .slash {
2496 color: var(--muted);
2497 font-size: var(--fs-4);
2498 line-height: 32px;
2499 padding: 0 2px;
2500}
2501ul.issuelist li.unread {
2502 box-shadow: inset 3px 0 0 var(--mark);
2503}
2504
2505/* ---- repo-level tabs polish ---- */
2506.treefilter {
2507 width: 11rem;
2508 min-width: 8rem;
2509 height: 32px;
2510}
2511.reffilter {
2512 display: block;
2513 width: calc(100% - var(--sp-4));
2514 margin: var(--sp-1) var(--sp-2) var(--sp-2);
2515 height: 28px;
2516 font-size: var(--fs-1);
2517}
2518.facts .about, .facts .clone {
2519 background: var(--card);
2520 border: 1px solid var(--card-line);
2521 border-radius: var(--r-card);
2522 box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
2523 padding: var(--sp-4);
2524}
2525.popform-stack {
2526 flex-direction: column;
2527 align-items: stretch;
2528}
2529.popform-stack input, .popform-stack select, .popform-stack button {
2530 width: 100%;
2531}
2532.releasehead-top {
2533 display: flex;
2534 align-items: center;
2535 gap: var(--sp-2);
2536 flex-wrap: wrap;
2537}
2538.releasehead-top h2 {
2539 margin: 0;
2540 display: inline-flex;
2541 align-items: center;
2542 gap: var(--sp-2);
2543 flex-wrap: wrap;
2544}
2545article.release.setcard {
2546 border-top: 1px solid var(--faint);
2547 padding: var(--sp-5);
2548}
2549
2550/* ---- authoring forms polish ---- */
2551.meta-fields {
2552 display: grid;
2553 grid-template-columns: repeat(3, minmax(0, 1fr));
2554 gap: var(--sp-3);
2555 margin: var(--sp-3) 0;
2556}
2557@media (max-width: 44rem) {
2558 .meta-fields { grid-template-columns: 1fr; }
2559}
2560.commitbar {
2561 display: flex;
2562 align-items: center;
2563 gap: var(--sp-2);
2564 flex-wrap: wrap;
2565 margin: var(--sp-3) 0 var(--sp-2);
2566}
2567.commitbar input { flex: 1 1 16rem; min-width: 0; }
2568.rendered .copywrap .copybtn { top: var(--sp-2); transform: none; }
2569.btngroup a.btn[aria-current="page"] {
2570 border-color: var(--mark);
2571 background: var(--surface);
2572 color: var(--fg);
2573 font-weight: 600;
2574}
2575.commithead.setcard pre.message { margin: var(--sp-3) 0 0; }
2576
2577/* ---- Phase 3: Full-width MR diff, word-level diffs, hunk expand, blob/blame & shortcuts ---- */
2578.btnicon { display: inline-flex; align-items: center; }
2579.mrbar {
2580 display: flex;
2581 align-items: center;
2582 justify-content: space-between;
2583 gap: var(--sp-3);
2584 border-bottom: 1px solid var(--line);
2585 margin: 0 0 var(--sp-4);
2586 position: sticky;
2587 top: 0;
2588 z-index: 14;
2589 background: var(--canvas);
2590 padding-top: var(--sp-1);
2591}
2592.mrbar nav.subtabs { border-bottom: 0; margin: 0; }
2593.finish-review { margin-bottom: var(--sp-1); }
2594.review-popmenu { width: 22rem; }
2595.commit-picker code { background: none; border: 0; padding: 0; font-size: var(--fs-1); }
2596.diffbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--sp-3); }
2597.diffbar p.layoutpick { margin: 0; }
2598.diffwrap { display: block; }
2599.difflist { min-width: 0; }
2600@media (min-width: 68.01rem) {
2601 .diffwrap.diffgrid {
2602 display: grid;
2603 grid-template-columns: 16rem minmax(0, 1fr);
2604 gap: var(--sp-5);
2605 align-items: start;
2606 }
2607 .diffwrap.diffgrid > .difftoc {
2608 position: sticky;
2609 top: 3.25rem;
2610 margin: 0;
2611 max-height: calc(100vh - 4.5rem);
2612 overflow-y: auto;
2613 }
2614}
2615details.difffold { overflow: visible; }
2616details.difffold > summary {
2617 position: sticky;
2618 top: 2.75rem;
2619 z-index: 6;
2620 align-items: center;
2621 border-radius: var(--r-card) var(--r-card) 0 0;
2622}
2623details.difffold:not([open]) > summary { border-radius: var(--r-card); }
2624details.difffold .tablewrap { border-radius: 0 0 var(--r-card) var(--r-card); overflow-x: auto; }
2625.diffviewlink { font-family: var(--sans); font-size: var(--fs-1); font-weight: 500; }
2626.viewed-toggle {
2627 display: inline-flex;
2628 align-items: center;
2629 gap: 5px;
2630 font-family: var(--sans);
2631 font-size: var(--fs-1);
2632 color: var(--muted);
2633 font-weight: 400;
2634 margin-left: var(--sp-2);
2635 cursor: pointer;
2636}
2637.difftoc-list li.toc-viewed a { color: var(--muted); text-decoration: line-through; }
2638.idiff-del {
2639 background: color-mix(in srgb, var(--bad) 26%, transparent);
2640 border-radius: 2px;
2641}
2642.idiff-add {
2643 background: color-mix(in srgb, var(--ok) 26%, transparent);
2644 border-radius: 2px;
2645}
2646.hunk-expand {
2647 display: inline-flex;
2648 align-items: center;
2649 margin-right: var(--sp-2);
2650 padding: 0 6px;
2651 height: 20px;
2652 font-family: var(--sans);
2653 font-size: var(--fs-0);
2654 background: var(--card);
2655 color: var(--link);
2656 border: 1px solid var(--card-line);
2657 border-radius: var(--r-ctl);
2658}
2659.hunk-expand:hover { background: var(--hover); filter: none; }
2660.blobtip {
2661 display: flex;
2662 align-items: center;
2663 gap: var(--sp-2);
2664 flex-wrap: wrap;
2665 padding: var(--sp-2) var(--sp-4);
2666 margin: 0 0 var(--sp-3);
2667 background: var(--card);
2668 border: 1px solid var(--card-line);
2669 border-radius: var(--r-card);
2670 font-size: var(--fs-2);
2671}
2672.blobtip .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2673.code .line.range-hl { background: color-mix(in srgb, var(--mark) 18%, transparent); }
2674.code .line.range-hl .ln { border-left: 3px solid var(--mark); }
2675.priorblame { font-weight: 600; padding: 0 3px; border-radius: var(--r-ctl); }
2676.priorblame:hover { background: var(--hover); text-decoration: none; }
2677.branch-target-inp { max-width: 15rem; font-family: var(--mono); font-size: var(--fs-1); }
2678.rangediff .rd-hdr { color: var(--link); font-weight: 600; }
2679.rangediff .rd-add { color: var(--ok); }
2680.rangediff .rd-del { color: var(--bad); }
2681.rangediff .rd-ctx { color: var(--fg); }
2682article.comment:target { outline: 2px solid var(--mark); outline-offset: 2px; }
2683.quote-btn { font-size: var(--fs-1); color: var(--muted); }
2684.quote-btn:hover { color: var(--link); }
2685dialog.kbhelp { width: min(38rem, 92vw); padding: var(--sp-5); }
2686.kbhelp-trigger { cursor: pointer; }
2687.kbhelp-close { flex: none; }
2688.kbhelp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
2689.kbhelp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
2690@media (max-width: 40rem) { .kbhelp-grid { grid-template-columns: 1fr; } }
2691dl.kblist { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-2); }
2692dl.kblist > div { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
2693dl.kblist dt { font-family: var(--mono); font-size: var(--fs-0); }
2694dl.kblist dd { margin: 0; color: var(--muted); text-align: right; }
2695kbd {
2696 display: inline-block;
2697 padding: 1px 5px;
2698 font-family: var(--mono);
2699 font-size: var(--fs-0);
2700 border: 1px solid var(--card-line);
2701 border-radius: var(--r-ctl);
2702 background: var(--surface);
2703}
2704
2705/* ---- Phase 4: Composer tabs, autocomplete, saved queries & ANSI build logs ---- */
2706.format-inline {
2707 display: inline-flex;
2708 align-items: center;
2709 margin-left: auto;
2710}
2711.format-inline select {
2712 height: 32px;
2713 font-size: var(--fs-1);
2714 color: var(--muted);
2715}
2716.querybar {
2717 display: flex;
2718 gap: var(--sp-2);
2719 width: 100%;
2720 margin-bottom: var(--sp-2);
2721}
2722.querybar input[type="search"] {
2723 flex: 1 1 auto;
2724 min-width: 0;
2725}
2726.composer-bar {
2727 display: flex;
2728 align-items: center;
2729 gap: var(--sp-1);
2730 border-bottom: 1px solid var(--line);
2731 margin: var(--sp-2) 0;
2732}
2733.composer-tab {
2734 height: 30px;
2735 padding: 0 var(--sp-3);
2736 border: 1px solid transparent;
2737 border-bottom: 2px solid transparent;
2738 border-radius: var(--r-ctl) var(--r-ctl) 0 0;
2739 background: transparent;
2740 color: var(--muted);
2741 font-size: var(--fs-1);
2742 font-weight: 500;
2743 margin-bottom: -1px;
2744}
2745.composer-tab:hover { color: var(--fg); background: var(--hover); filter: none; }
2746.composer-tab[aria-selected="true"] {
2747 color: var(--fg);
2748 font-weight: 600;
2749 border-bottom-color: var(--mark);
2750 background: transparent;
2751}
2752.composer-hint {
2753 margin-left: auto;
2754 font-size: var(--fs-0);
2755 color: var(--muted);
2756}
2757@media (max-width: 40rem) { .composer-hint { display: none; } }
2758.composer-preview {
2759 min-height: 6rem;
2760 padding: var(--sp-3) var(--sp-4);
2761 margin-bottom: var(--sp-3);
2762 border: 1px solid var(--line);
2763 border-radius: var(--r-card);
2764 background: var(--inset);
2765}
2766html.js button.js-hidden-preview { display: none; }
2767.ac-menu {
2768 position: absolute;
2769 z-index: 70;
2770 list-style: none;
2771 margin: 0;
2772 padding: var(--sp-1);
2773 min-width: 14rem;
2774 max-width: 24rem;
2775 background: var(--card);
2776 border: 1px solid var(--card-line);
2777 border-radius: var(--r-card);
2778 box-shadow: var(--shadow);
2779 font-size: var(--fs-1);
2780}
2781.ac-menu li {
2782 display: flex;
2783 align-items: baseline;
2784 gap: var(--sp-2);
2785 padding: 5px var(--sp-2);
2786 border-radius: var(--r-ctl);
2787 cursor: pointer;
2788}
2789.ac-menu li:hover, .ac-menu li.ac-active { background: var(--hover); }
2790.ac-menu li strong { font-family: var(--mono); color: var(--link); flex: none; }
2791.ac-menu li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2792.ansi-bold { font-weight: 700; }
2793.ansi-dim { opacity: 0.72; }
2794.ansi-red { color: var(--bad); }
2795.ansi-green { color: var(--ok); }
2796.ansi-yellow { color: var(--warn); }
2797.ansi-blue, .ansi-cyan { color: var(--link); }
2798.ansi-magenta { color: var(--done); }
2799.ansi-muted { color: var(--muted); }