internal/web/static/style.css

b754784fc664a3d8fe81e4c66c327792fa6c9bf9
gitbay/internal/web/static/style.css history · blame · raw

834 lines · 26397 bytes

  1/* gitbay stylesheet. One file, light and dark via prefers-color-scheme.
  2   Tokens first; components use tokens only. No external requests. */
  3
  4:root {
  5  /* declare native light+dark support: correct form controls and
  6     scrollbars per scheme, and opt out of browser auto-darkening */
  7  color-scheme: light dark;
  8
  9  /* palette */
 10  --bg: #ffffff;
 11  --fg: #1f2328;
 12  --muted: #667079;
 13  --faint: #eceff1;          /* hairlines, row separators */
 14  --line: #d7dde2;           /* control borders, card edges */
 15  --surface: #f6f8fa;        /* cards, code, table hover */
 16  --accent: #0000f0;         /* blue: links, active tab, primary */
 17  --accent-fg: #ffffff;      /* text on accent */
 18  --ok: #1a7f37;
 19  --warn: #9a6700;
 20  --bad: #cf222e;
 21  --done: #8250df;           /* merged */
 22  --neutral: #667079;
 23  --code-bg: #f6f8fa;
 24
 25  /* type */
 26  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
 27          "Helvetica Neue", Arial, sans-serif;
 28  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
 29          "Liberation Mono", monospace;
 30  --fs-0: 0.8rem;    /* 12.8px: chips, fine print */
 31  --fs-1: 0.866rem;  /* ~13px: metadata, mono in tables */
 32  --fs-2: 0.933rem;  /* 14px: dense table text */
 33  --fs-3: 1rem;      /* 15px: body */
 34  --fs-4: 1.135rem;  /* ~17px: h2 */
 35  --fs-5: 1.335rem;  /* ~20px: h1 */
 36
 37  /* spacing */
 38  --sp-1: 0.25rem;
 39  --sp-2: 0.5rem;
 40  --sp-3: 0.75rem;
 41  --sp-4: 1rem;
 42  --sp-5: 1.5rem;
 43  --sp-6: 2.5rem;
 44
 45  /* radii */
 46  --r-sm: 4px;
 47  --r-md: 6px;
 48  --r-lg: 8px;
 49  --r-pill: 999px;
 50}
 51@media (prefers-color-scheme: dark) {
 52  :root {
 53    --bg: #0d1117;
 54    --fg: #e6edf3;
 55    --muted: #8d96a0;
 56    --faint: #1d242c;
 57    --line: #30363d;
 58    --surface: #161b22;
 59    --accent: #8899ff;
 60    --accent-fg: #0a1030;
 61    --ok: #3fb950;
 62    --warn: #d29922;
 63    --bad: #f85149;
 64    --done: #a371f7;
 65    --neutral: #8d96a0;
 66    --code-bg: #161b22;
 67  }
 68}
 69
 70* { box-sizing: border-box; }
 71html { font-size: 15px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
 72body {
 73  margin: 0;
 74  background: var(--bg);
 75  color: var(--fg);
 76  font: var(--fs-3)/1.6 var(--sans);
 77  min-height: 100vh;
 78  display: flex;
 79  flex-direction: column;
 80}
 81main { flex: 1; }
 82
 83a { color: var(--accent); text-decoration: none; }
 84a:hover { text-decoration: underline; }
 85
 86h1 { font-size: var(--fs-5); font-weight: 600; line-height: 1.3;
 87     margin: var(--sp-5) 0 var(--sp-3); letter-spacing: -0.01em; }
 88h2 { font-size: var(--fs-4); font-weight: 600; line-height: 1.35;
 89     margin: var(--sp-5) 0 var(--sp-3); }
 90h3 { font-size: var(--fs-3); font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }
 91
 92code, pre, .code, td.mode, td.size {
 93  font-family: var(--mono);
 94  font-size: var(--fs-1);
 95}
 96
 97/* layout: one shared container aligns header, content, and footer */
 98.container {
 99  max-width: 64rem;
100  margin: 0 auto;
101  padding: 0 var(--sp-5);
102}
103header {
104  border-bottom: 1px solid var(--faint);
105  padding: var(--sp-3) 0;
106}
107a.site {
108  font-weight: 650;
109  color: var(--fg);
110  letter-spacing: -0.01em;
111  display: inline-flex;
112  align-items: center;
113  gap: var(--sp-2);
114}
115a.site:hover { text-decoration: none; color: var(--accent); }
116a.site svg.mark { display: block; }
117nav.topnav {
118  display: flex;
119  align-items: center;
120  gap: var(--sp-4);
121}
122nav.topnav .spacer { flex: 1; }
123nav.topnav > a:not(.site) { color: var(--fg); font-size: var(--fs-2); }
124nav.topnav > a:not(.site):hover { color: var(--accent); text-decoration: none; }
125nav.topnav a.navuser { font-weight: 600; }
126nav.topnav button.linklike { color: var(--muted); }
127nav.topnav button.linklike:hover { color: var(--accent); text-decoration: none; }
128main.container {
129  width: 100%;
130  padding-top: var(--sp-3);
131  padding-bottom: var(--sp-6);
132}
133
134/* tables */
135table { border-collapse: collapse; width: 100%; }
136td {
137  padding: var(--sp-2) var(--sp-4) var(--sp-2) 0;
138  border-bottom: 1px solid var(--faint);
139  vertical-align: top;
140  font-size: var(--fs-2);
141}
142td:last-child { padding-right: 0; }
143td.size, td.mode { color: var(--muted); white-space: nowrap; }
144
145/* repo header */
146.repohead { margin-bottom: var(--sp-4); }
147h1.repotitle { margin: var(--sp-4) 0 var(--sp-1); font-weight: 400; }
148h1.repotitle a { color: var(--fg); }
149h1.repotitle a:last-of-type { font-weight: 650; }
150h1.repotitle a:hover { color: var(--accent); text-decoration: none; }
151h1.repotitle .sep { color: var(--muted); margin: 0 0.15em; }
152form.pinform { display: inline; margin-left: var(--sp-2); vertical-align: middle; }
153button.pinbtn {
154  background: none;
155  border: 1px solid var(--line);
156  border-radius: var(--r-pill);
157  color: var(--muted);
158  font-size: var(--fs-0);
159  padding: 0.05rem 0.55rem;
160  cursor: pointer;
161}
162button.pinbtn:hover { border-color: var(--accent); color: var(--accent); filter: none; }
163button.pinbtn.pinned { color: var(--accent); border-color: var(--accent); }
164a.chip.label:hover, a.chip.topic:hover { text-decoration: none; filter: brightness(1.15); }
165.repohead .desc { margin: 0 0 var(--sp-2); }
166
167/* repo tabs */
168nav.tabs {
169  display: flex;
170  flex-wrap: wrap;
171  gap: var(--sp-1);
172  border-bottom: 1px solid var(--faint);
173  margin-top: var(--sp-3);
174}
175nav.tabs a {
176  color: var(--muted);
177  padding: var(--sp-1) var(--sp-2);
178  border-radius: var(--r-md) var(--r-md) 0 0;
179  border-bottom: 2px solid transparent;
180  margin-bottom: -1px;
181  font-size: var(--fs-2);
182}
183nav.tabs a:hover { color: var(--fg); background: var(--surface); text-decoration: none; }
184nav.tabs a.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 550; }
185
186.clone { color: var(--muted); font-size: var(--fs-2); }
187.clone code {
188  background: var(--surface);
189  border: 1px solid var(--faint);
190  padding: 0.15rem 0.5rem;
191  border-radius: var(--r-sm);
192}
193
194/* path bar on tree and blob pages */
195.pathbar {
196  display: flex;
197  flex-wrap: wrap;
198  align-items: center;
199  gap: var(--sp-2) var(--sp-3);
200  margin: var(--sp-3) 0;
201  font-size: var(--fs-2);
202}
203.pathbar .spacer { flex: 1; }
204.refchip {
205  display: inline-flex;
206  align-items: center;
207  gap: 0.3rem;
208  background: var(--surface);
209  border: 1px solid var(--faint);
210  border-radius: var(--r-md);
211  padding: 0.1rem 0.55rem;
212  font-family: var(--mono);
213  font-size: var(--fs-1);
214  color: var(--fg);
215}
216.pathbar .crumbs strong { color: var(--fg); }
217details.refmenu { position: relative; }
218details.refmenu summary { cursor: pointer; list-style: none; }
219details.refmenu summary::-webkit-details-marker { display: none; }
220details.refmenu summary::after { content: " ▾"; color: var(--muted); }
221details.refmenu .refdrop {
222  position: absolute;
223  z-index: 10;
224  top: calc(100% + 4px);
225  left: 0;
226  min-width: 12rem;
227  max-height: 20rem;
228  overflow-y: auto;
229  background: var(--bg);
230  border: 1px solid var(--line);
231  border-radius: var(--r-md);
232  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
233  padding: var(--sp-1) 0;
234}
235details.refmenu .refdrop a {
236  display: block;
237  padding: var(--sp-1) var(--sp-3);
238  color: var(--fg);
239  font-family: var(--mono);
240  font-size: var(--fs-1);
241}
242details.refmenu .refdrop a:hover { background: var(--surface); text-decoration: none; }
243details.refmenu .refdrop a.allrefs { color: var(--accent); font-family: var(--sans); border-top: 1px solid var(--faint); margin-top: var(--sp-1); }
244
245/* file and refs tables: bordered cards, rows inside */
246table.tree, table.refs {
247  border: 1px solid var(--line);
248  border-radius: var(--r-lg);
249  border-collapse: separate;
250  border-spacing: 0;
251  overflow: hidden;
252  margin-bottom: var(--sp-4);
253}
254table.tree td, table.refs td {
255  padding: var(--sp-2) var(--sp-4);
256  border-bottom: 1px solid var(--faint);
257}
258table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: none; }
259table.tree tr:hover td, table.refs tr:hover td { background: var(--surface); }
260table.tree tr.cols th {
261  text-align: left;
262  font-weight: 500;
263  font-size: var(--fs-1);
264  color: var(--muted);
265  padding: var(--sp-1) var(--sp-4);
266  border-bottom: 1px solid var(--line);
267  background: var(--surface);
268}
269table.tree tr.cols:hover th { background: var(--surface); }
270table.tree th.size { text-align: right; }
271table.tree td.name { width: 100%; }
272table.tree td.name a { color: var(--fg); }
273table.tree td.name a:hover { color: var(--accent); }
274table.tree td.size { text-align: right; }
275table.tree td.empty, table.refs td.empty, li.empty, ul.loglist li.empty { color: var(--muted); }
276
277/* refs page */
278table.refs td.name { width: 100%; }
279table.refs td.sha { color: var(--muted); }
280
281/* card header (README) */
282.cardhead {
283  font-family: var(--mono);
284  font-size: var(--fs-1);
285  color: var(--muted);
286  border-bottom: 1px solid var(--faint);
287  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-5)) var(--sp-4);
288  padding: var(--sp-2) var(--sp-5);
289  background: var(--surface);
290  border-radius: var(--r-lg) var(--r-lg) 0 0;
291}
292
293/* log */
294ul.loglist {
295  list-style: none;
296  margin: var(--sp-3) 0;
297  padding: 0;
298  border: 1px solid var(--line);
299  border-radius: var(--r-lg);
300  overflow: hidden;
301}
302ul.loglist li {
303  display: flex;
304  align-items: baseline;
305  gap: var(--sp-3);
306  padding: var(--sp-2) var(--sp-4);
307  border-bottom: 1px solid var(--faint);
308}
309ul.loglist li:last-child { border-bottom: none; }
310ul.loglist li:hover { background: var(--surface); }
311ul.loglist .commitmain { flex: 1; min-width: 0; }
312ul.loglist p { margin: 0; }
313ul.loglist .subject a { color: var(--fg); font-weight: 550; }
314ul.loglist .subject a:hover { color: var(--accent); }
315ul.loglist .commitside {
316  display: flex;
317  align-items: baseline;
318  gap: var(--sp-2);
319  white-space: nowrap;
320}
321p.pager { margin-top: var(--sp-4); }
322
323/* commit page */
324.commithead p { margin: var(--sp-1) 0; }
325.commithead h2 { margin-bottom: var(--sp-1); }
326code.fullsha { color: var(--muted); overflow-wrap: anywhere; }
327.empty-note { color: var(--muted); }
328.crumbs { color: var(--muted); font-size: var(--fs-2); }
329.desc, td.desc { color: var(--muted); }
330.error { color: var(--bad); }
331.meta { color: var(--muted); font-size: var(--fs-1); }
332svg.icon { vertical-align: -0.125em; }
333.lede { font-size: var(--fs-3); margin: var(--sp-2) 0; }
334
335/* repo listings (explore, owner pages, dashboard): one row per repo */
336ul.repolist {
337  list-style: none;
338  margin: var(--sp-3) 0 var(--sp-5);
339  padding: 0;
340  border: 1px solid var(--line);
341  border-radius: var(--r-lg);
342  overflow: hidden;
343}
344ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
345ul.repolist li:last-child { border-bottom: none; }
346ul.repolist li:hover { background: var(--surface); }
347ul.repolist li.empty { color: var(--muted); }
348ul.repolist p { margin: 0; }
349ul.repolist .reponame { font-size: var(--fs-3); }
350ul.repolist .reponame a { color: var(--fg); }
351ul.repolist .reponame a strong { color: var(--accent); font-weight: 600; }
352ul.repolist .reponame .sep { color: var(--muted); margin: 0 0.1em; }
353ul.repolist .desc { margin-top: 0.1rem; }
354ul.repolist .topics { margin-top: var(--sp-1); }
355ul.repolist .meta { margin-top: var(--sp-1); }
356
357/* owner profile header */
358.profilehead {
359  border-bottom: 1px solid var(--faint);
360  padding-bottom: var(--sp-4);
361  margin-bottom: var(--sp-4);
362}
363.profilehead h1 { margin: var(--sp-4) 0 var(--sp-1); }
364.profilehead .lede { margin: 0 0 var(--sp-1); }
365.profilehead .meta { margin: var(--sp-1) 0 0; }
366h2 .count { color: var(--muted); font-weight: 400; font-size: var(--fs-2); }
367
368/* activity graph: 53 week columns x 7 day rows, accent-tinted levels */
369.actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); }
370.actgraph { display: flex; gap: 3px; width: max-content; }
371.actweek { display: flex; flex-direction: column; gap: 3px; }
372.actday {
373  width: 11px;
374  height: 11px;
375  border-radius: 2px;
376  background: var(--faint);
377}
378.actday.pad { background: transparent; }
379.actday.l1 { background: color-mix(in srgb, var(--accent) 25%, var(--bg)); }
380.actday.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--bg)); }
381.actday.l3 { background: color-mix(in srgb, var(--accent) 75%, var(--bg)); }
382.actday.l4 { background: var(--accent); }
383
384/* heading row with actions on the right */
385.headrow {
386  display: flex;
387  align-items: baseline;
388  gap: var(--sp-4);
389  flex-wrap: wrap;
390}
391.headrow .spacer { flex: 1; }
392
393/* member and org chips on owner pages */
394a.memberchip {
395  display: inline-block;
396  border: 1px solid var(--line);
397  border-radius: var(--r-pill);
398  padding: 0.05rem 0.6rem;
399  color: var(--fg);
400  font-size: var(--fs-1);
401  margin: 0 0.15rem 0.15rem 0;
402}
403a.memberchip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
404a.memberchip .role { color: var(--muted); }
405
406/* landing page */
407.landing { max-width: 44rem; padding: var(--sp-6) 0; }
408.landing h1 { font-size: 1.8rem; margin-bottom: var(--sp-3); }
409.landing .lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.7; margin: 0 0 var(--sp-4); }
410pre.quickstart {
411  background: var(--code-bg);
412  border: 1px solid var(--faint);
413  border-radius: var(--r-md);
414  padding: var(--sp-3) var(--sp-4);
415  overflow-x: auto;
416  margin: 0 0 var(--sp-4);
417}
418.landing .explorelink { font-weight: 550; }
419
420/* index toolbar */
421p.toolbar { color: var(--muted); font-size: var(--fs-2); margin-top: var(--sp-4); }
422form.inline { display: inline; }
423button.linklike {
424  background: none;
425  border: none;
426  color: var(--accent);
427  padding: 0;
428  font: inherit;
429  font-size: var(--fs-2);
430  cursor: pointer;
431}
432button.linklike:hover { text-decoration: underline; filter: none; }
433
434/* cards: README, comments */
435.readme, .code {
436  border: 1px solid var(--faint);
437  border-radius: var(--r-lg);
438  padding: var(--sp-4) var(--sp-5);
439  margin-top: var(--sp-4);
440  overflow-x: auto;
441}
442/* chroma emits inline styles for a light background; pin code blocks to
443   light colors in both schemes so unstyled tokens stay legible. */
444.code { background: #f8f8f8; color: #1a1a1a; padding: var(--sp-3) var(--sp-4); color-scheme: light; }
445.code pre { margin: 0; background: transparent !important; }
446@media (prefers-color-scheme: dark) {
447  .code { border-color: var(--line); }
448}
449
450/* rendered markdown / org / html */
451.rendered { max-width: 100%; overflow-wrap: anywhere; }
452.rendered pre {
453  background: var(--code-bg);
454  border: 1px solid var(--faint);
455  padding: var(--sp-3) var(--sp-4);
456  border-radius: var(--r-md);
457  overflow-x: auto;
458}
459.rendered code { background: var(--code-bg); padding: 0.1rem 0.35rem; border-radius: var(--r-sm); }
460.rendered pre code { background: transparent; padding: 0; }
461.rendered blockquote {
462  border-left: 3px solid var(--line);
463  margin-left: 0;
464  padding-left: var(--sp-4);
465  color: var(--muted);
466}
467.rendered img { max-width: 100%; }
468.rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); }
469
470pre.message {
471  background: var(--code-bg);
472  border: 1px solid var(--faint);
473  padding: var(--sp-3) var(--sp-4);
474  border-radius: var(--r-md);
475  white-space: pre-wrap;
476  overflow-wrap: anywhere;
477}
478
479/* diffs */
480details.difffold summary {
481  cursor: pointer;
482  display: flex;
483  align-items: baseline;
484  gap: var(--sp-3);
485  margin: var(--sp-5) 0 var(--sp-2);
486  list-style: none;
487}
488details.difffold summary::-webkit-details-marker { display: none; }
489/* flex summaries lose the native disclosure marker; draw our own */
490details.difffold summary::before { content: "▸"; color: var(--muted); }
491details.difffold[open] summary::before { content: "▾"; }
492details.difffold summary h3 { display: inline; margin: 0; }
493details.difffold summary .add { color: var(--ok); }
494details.difffold summary .del { color: var(--bad); }
495pre.diff {
496  background: var(--code-bg);
497  border: 1px solid var(--faint);
498  padding: var(--sp-3) var(--sp-4);
499  border-radius: var(--r-md);
500  overflow-x: auto;
501  line-height: 1.5;
502}
503pre.diff .add { color: var(--ok); }
504pre.diff .del { color: var(--bad); }
505pre.diff .hunk { color: var(--accent); }
506pre.diff .meta { color: var(--muted); }
507
508/* badges: signature and check states. Semantic colors stay distinct:
509   green verified/success, amber pending/stale, red bad/failure, muted
510   unsigned. */
511.badge, .chip {
512  --chip: var(--neutral);
513  display: inline-block;
514  padding: 0.05rem 0.55rem;
515  border-radius: var(--r-pill);
516  font-size: var(--fs-0);
517  font-weight: 500;
518  line-height: 1.5;
519  color: var(--chip);
520  border: 1px solid color-mix(in srgb, var(--chip) 35%, transparent);
521  background: color-mix(in srgb, var(--chip) 7%, transparent);
522  white-space: nowrap;
523  vertical-align: middle;
524}
525.chip-open { --chip: var(--ok); }
526.chip-closed { --chip: var(--bad); }
527.chip-merged, .chip-done { --chip: var(--done); }
528.chip-neutral, .chip-source_gone { --chip: var(--neutral); }
529.chip-stale { --chip: var(--warn); }
530.chip.label { font-weight: 500; }
531.chip.topic { --chip: var(--accent); }
532.repohead .topics { margin: 0 0 var(--sp-2); }
533.repohead .mirrorline { margin: 0 0 var(--sp-2); }
534.mirrorerr { color: var(--bad); }
535.badge-verified { --chip: var(--ok); }
536.badge-unsigned { --chip: var(--neutral); }
537.badge-signed_unknown_key { --chip: var(--warn); }
538.badge-signed_email_mismatch { --chip: var(--bad); }
539.badge-signed_key_expired { --chip: var(--warn); }
540.badge-signed_key_revoked { --chip: var(--bad); }
541.badge-bad_signature { --chip: var(--bad); }
542.badge.check-success { --chip: var(--ok); }
543.badge.check-pending { --chip: var(--warn); }
544.badge.check-failure, .badge.check-error { --chip: var(--bad); }
545span.check-success { color: var(--ok); }
546span.check-pending { color: var(--warn); }
547span.check-failure, span.check-error { color: var(--bad); }
548
549/* issue and MR listings */
550.listhead {
551  display: flex;
552  align-items: baseline;
553  gap: var(--sp-4);
554  flex-wrap: wrap;
555}
556.listhead h2 { margin-bottom: var(--sp-2); }
557nav.filters { display: flex; gap: var(--sp-1); }
558nav.filters a {
559  color: var(--muted);
560  font-size: var(--fs-2);
561  padding: 0.05rem var(--sp-2);
562  border-radius: var(--r-pill);
563}
564nav.filters a:hover { color: var(--fg); background: var(--surface); text-decoration: none; }
565nav.filters a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
566
567ul.issuelist {
568  list-style: none;
569  margin: var(--sp-2) 0;
570  padding: 0;
571  border: 1px solid var(--line);
572  border-radius: var(--r-lg);
573  overflow: hidden;
574}
575ul.issuelist li {
576  display: flex;
577  align-items: baseline;
578  gap: var(--sp-3);
579  padding: var(--sp-3) var(--sp-4);
580  border-bottom: 1px solid var(--faint);
581}
582ul.issuelist li:last-child { border-bottom: none; }
583ul.issuelist li:hover { background: var(--surface); }
584ul.issuelist li.empty { display: block; color: var(--muted); }
585ul.issuelist .issuemain { flex: 1; min-width: 0; }
586ul.issuelist p { margin: 0; }
587ul.issuelist .title a { color: var(--fg); font-weight: 550; }
588ul.issuelist .title a:hover { color: var(--accent); }
589
590/* releases */
591article.release {
592  border: 1px solid var(--line);
593  border-radius: var(--r-lg);
594  padding: var(--sp-3) var(--sp-4);
595  margin: var(--sp-4) 0;
596}
597.releasehead h3 { margin: 0 0 var(--sp-1); }
598.releasehead .meta { margin: 0 0 var(--sp-2); }
599table.assets { margin-top: var(--sp-2); }
600table.assets td.size { color: var(--muted); white-space: nowrap; text-align: right; }
601table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); }
602
603/* milestones */
604ul.milestonelist {
605  list-style: none;
606  margin: var(--sp-2) 0;
607  padding: 0;
608  border: 1px solid var(--line);
609  border-radius: var(--r-lg);
610  overflow: hidden;
611}
612ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
613ul.milestonelist li:last-child { border-bottom: none; }
614ul.milestonelist li.empty { color: var(--muted); }
615ul.milestonelist p { margin: 0; }
616ul.milestonelist .title { font-weight: 550; }
617.progress {
618  height: 6px;
619  background: var(--faint);
620  border-radius: var(--r-pill);
621  margin-top: var(--sp-2);
622  overflow: hidden;
623  max-width: 24rem;
624}
625.progress .bar { height: 100%; background: var(--ok); }
626.listhead .spacer { flex: 1; }
627
628/* issue / MR detail */
629h2.issuetitle { margin-bottom: var(--sp-1); font-size: var(--fs-5); }
630.issuenumber { color: var(--muted); font-weight: 400; }
631.issuemeta { color: var(--muted); font-size: var(--fs-2); margin-top: 0; }
632.review { font-size: var(--fs-2); }
633
634/* comment cards; discussion stays at a readable measure */
635article.comment, form.commentform {
636  max-width: 48rem;
637}
638article.comment {
639  border: 1px solid var(--faint);
640  border-radius: var(--r-lg);
641  margin: var(--sp-4) 0;
642}
643article.comment .commenthead {
644  background: var(--surface);
645  border-bottom: 1px solid var(--faint);
646  border-radius: var(--r-lg) var(--r-lg) 0 0;
647  padding: var(--sp-2) var(--sp-4);
648  font-size: var(--fs-2);
649}
650article.comment .commenthead .when { color: var(--muted); }
651article.comment .rendered { padding: 0 var(--sp-4); }
652article.comment .rendered > :first-child { margin-top: var(--sp-3); }
653article.comment .rendered > :last-child { margin-bottom: var(--sp-3); }
654form.commentform { margin: var(--sp-4) 0; }
655details.editbox { margin: var(--sp-2) 0; max-width: 48rem; }
656details.editbox summary { cursor: pointer; color: var(--muted); font-size: var(--fs-2); }
657details.editbox summary:hover { color: var(--accent); }
658details.editbox input[type="text"] { width: 100%; }
659.syscomment {
660  max-width: 48rem;
661  color: var(--muted);
662  font-size: var(--fs-2);
663  margin: var(--sp-3) 0;
664  padding-left: var(--sp-4);
665  border-left: 3px solid var(--faint);
666}
667.syscomment p { display: inline; margin: 0; }
668
669/* review threads under diff lines */
670.thread {
671  border: 1px solid var(--faint);
672  border-left: 3px solid var(--accent);
673  border-radius: var(--r-md);
674  padding: var(--sp-2) var(--sp-4);
675  margin: var(--sp-2) 0 var(--sp-2) var(--sp-6);
676}
677.thread.resolved { border-left-color: var(--ok); opacity: 0.75; }
678.thread.stale { border-left-color: var(--warn); }
679.thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; }
680.thread .when { color: var(--muted); }
681.thread .rendered p { margin: var(--sp-1) 0; }
682.thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; }
683
684/* forms */
685input, textarea, button, select { font: inherit; color: inherit; }
686input[type="text"], input:not([type]), textarea {
687  background: var(--bg);
688  border: 1px solid var(--line);
689  border-radius: var(--r-md);
690  padding: var(--sp-2) var(--sp-3);
691}
692textarea { width: 100%; resize: vertical; }
693textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); }
694input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
695button {
696  background: var(--accent);
697  color: var(--accent-fg);
698  border: none;
699  border-radius: var(--r-md);
700  padding: var(--sp-1) var(--sp-3);
701  font-weight: 500;
702  cursor: pointer;
703}
704button:hover { filter: brightness(1.08); }
705
706/* 404 */
707.notfound { text-align: center; padding: var(--sp-6) 0; }
708.notfound .bigcode {
709  font-family: var(--mono);
710  font-size: 4rem;
711  color: var(--faint);
712  -webkit-text-stroke: 1px var(--line);
713  margin: 0;
714  line-height: 1;
715}
716.notfound h1 { margin-top: var(--sp-3); }
717
718/* footer */
719footer {
720  border-top: 1px solid var(--faint);
721  padding: var(--sp-4) 0;
722  color: var(--muted);
723  font-size: var(--fs-1);
724}
725footer p { margin: 0; }
726footer a { color: var(--muted); text-decoration: underline; }
727footer a:hover { color: var(--accent); }
728
729/* search */
730form.searchform {
731  display: flex;
732  gap: var(--sp-2);
733  margin: var(--sp-3) 0 var(--sp-4);
734}
735form.searchform input[type="search"] { flex: 1; max-width: 32rem; }
736form.searchform.compact { margin: 0; }
737form.searchform.compact input[type="search"] {
738  padding: var(--sp-1) var(--sp-3);
739  font-size: var(--fs-2);
740  min-width: 18rem;
741}
742ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
743ul.matchlist li { margin-bottom: var(--sp-3); }
744ul.matchlist .matchpath { font-family: var(--mono); font-size: var(--fs-1); }
745pre.matchline {
746  background: var(--code-bg);
747  border: 1px solid var(--faint);
748  border-radius: var(--r-md);
749  padding: var(--sp-1) var(--sp-3);
750  margin: var(--sp-1) 0 0;
751  overflow-x: auto;
752}
753pre.matchline mark {
754  background: color-mix(in srgb, var(--warn) 25%, transparent);
755  color: inherit;
756  border-radius: 2px;
757}
758
759/* wiki */
760.wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; }
761.wikipage { flex: 1; min-width: 0; }
762.wikinav { flex: none; width: 13rem; padding-top: var(--sp-4); }
763.wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; }
764.wikinav li a { display: block; padding: 0.15rem 0; color: var(--fg); }
765.wikinav li a:hover { color: var(--accent); text-decoration: none; }
766.wikinav li a.active { color: var(--accent); font-weight: 550; }
767@media (max-width: 40rem) {
768  /* Column direction + the desktop align-items:flex-start lets .wikipage
769     take its content's intrinsic width, overflowing the viewport (and
770     triggering iOS font inflation). Stretch pins it to the container. */
771  .wikilayout { flex-direction: column; align-items: stretch; }
772  .wikinav { width: auto; padding-top: 0; }
773}
774
775/* blame */
776.blame {
777  border: 1px solid var(--line);
778  border-radius: var(--rad-2, 6px);
779  overflow: hidden;
780}
781.blamehunk {
782  display: flex;
783  gap: var(--sp-3);
784  border-top: 1px solid var(--line);
785  align-items: flex-start;
786}
787.blamehunk:first-child { border-top: none; }
788.blameinfo {
789  flex: none;
790  width: 17rem;
791  padding: var(--sp-2) var(--sp-3);
792  min-width: 0;
793}
794.blameinfo .subject {
795  margin: 0;
796  font-size: var(--fs-1);
797  white-space: nowrap;
798  overflow: hidden;
799  text-overflow: ellipsis;
800}
801.blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); }
802.blamecode {
803  flex: 1;
804  margin: 0;
805  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
806  overflow-x: auto;
807  border-left: 1px solid var(--line);
808  align-self: stretch;
809}
810.lineno {
811  display: inline-block;
812  min-width: 3.5em;
813  padding-right: 1em;
814  text-align: right;
815  color: var(--muted);
816  user-select: none;
817}
818
819/* mobile */
820@media (max-width: 40rem) {
821  .container { padding-left: var(--sp-4); padding-right: var(--sp-4); }
822  main.container { padding-top: var(--sp-2); }
823  .repogrid { grid-template-columns: 1fr; }
824  .thread { margin-left: var(--sp-3); }
825  table.tree td.mode, table.tree th.mode { display: none; }
826  .readme, .code { padding: var(--sp-3); }
827  .blamehunk { flex-direction: column; gap: 0; }
828  .blameinfo { width: auto; }
829  .blamecode { border-left: none; padding-left: var(--sp-3); width: 100%; }
830  .cardhead {
831    margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-3)) var(--sp-3);
832    padding: var(--sp-2) var(--sp-3);
833  }
834}