internal/web/static/style.css

1961 lines · 81661 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, surface and inset are three steps, not one */
  38  --canvas: #ffffff;
  39  --surface: #ebedf1;
  40  --inset: #ffffff;
  41  --hover: #e1e4ea;
  42  --line: #8d939c;           /* 3.09:1 on canvas — a border you can see */
  43  --faint: #d8dce2;
  44
  45  /* ink */
  46  --fg: #1c1f24;
  47  --muted: #5a6270;
  48  --neutral: var(--muted);
  49
  50  /* blue: what you can do. --link is text, --fill is a ground; one blue
  51     cannot clear 4.5:1 as text and 3:1 as a ground in both schemes. */
  52  --link: #0033d6;
  53  --fill: #0000f0;
  54  --fill-fg: #ffffff;
  55  --focus: var(--link);
  56
  57  /* orange: where you are, what wants you. Two cuts because the floor
  58     differs by size: --mark for bars, --warn at text size. */
  59  --mark: #e4572e;
  60  --warn: #b8400f;
  61
  62  /* state */
  63  --ok: #0a7536;
  64  --bad: #c62828;
  65  --done: #6b21a8;
  66
  67  /* diff row tints: enough to scan, light enough that the syntax
  68     palette stays legible on them (TestSyntaxPaletteContrast) */
  69  --diff-add: #e4f6ea;
  70  --diff-del: #fdeaea;
  71
  72  /* the rail is black in both schemes: the one brand constant */
  73  --shell-bg: #000000;
  74  --shell-fg: #f2f2f2;
  75  --shell-muted: #8f8f8f;
  76  --shell-line: #1c1c1c;
  77  --shell-hover: #141414;
  78  --shell-mark: #ff6b3d;
  79
  80  /* the languages' own colours; the same in both schemes */
  81  --lang-go: #00add8;
  82  --lang-rust: #dea584;
  83  --lang-c: #555555;
  84  --lang-python: #3572a5;
  85  --lang-javascript: #f1e05a;
  86  --lang-typescript: #3178c6;
  87  --lang-shell: #89e051;
  88  --lang-ruby: #701516;
  89  --lang-java: #b07219;
  90  --lang-swift: #f05138;
  91  --lang-html: #e34c26;
  92  --lang-css: #563d7c;
  93  --lang-org: #77aa99;
  94  --lang-markdown: #083fa1;
  95  --lang-emacs-lisp: #c065db;
  96  --lang-nix: #7e7eff;
  97  --lang-sql: #e38c00;
  98
  99  --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont,
 100          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 101  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono",
 102          SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
 103
 104  /* 12, 13, 14, 16, 20, 24, 32 */
 105  --fs-0: 0.75rem;
 106  --fs-1: 0.8125rem;
 107  --fs-2: 0.875rem;
 108  --fs-3: 1rem;
 109  --fs-4: 1.25rem;
 110  --fs-5: 1.5rem;
 111  --fs-6: 2rem;
 112
 113  /* 4, 8, 12, 16, 24, 32, 48 */
 114  --sp-1: 4px;
 115  --sp-2: 8px;
 116  --sp-3: 12px;
 117  --sp-4: 16px;
 118  --sp-5: 24px;
 119  --sp-6: 32px;
 120  --sp-7: 48px;
 121
 122  /* the rail: a column the width of one hit target, a row one tall */
 123  --rail-hit: 44px;
 124  --rail-strip-h: 48px;
 125  --rail-mark: 24px;
 126  --rail-mark-box: 32px;
 127
 128  /* the one page container: header content, main and footer align on it */
 129  --container: 100rem;
 130
 131  --r-ctl: 4px;   /* controls and chips */
 132  --r-card: 6px;  /* cards, lists, code blocks */
 133  --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
 134
 135  /* the native select arrow cannot be restyled, so draw our own;
 136     --chev carries the stroke colour per scheme */
 137  --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");
 138}
 139@media (prefers-color-scheme: dark) {
 140  :root {
 141    /* the scheme in force, not just the tokens: light-dark() reads it,
 142       and themedCSS repeats this block for a page stamped dark */
 143    color-scheme: dark;
 144
 145    --canvas: #101114;
 146    --surface: #212429;
 147    --inset: #0b0c0e;
 148    --hover: #2b2f36;
 149    --line: #61666f;
 150    --faint: #2f333a;
 151
 152    --fg: #e9eaec;
 153    --muted: #a3a9b3;
 154    --neutral: var(--muted);
 155
 156    --link: #8b9bff;
 157    --fill: #4d61f0;
 158    --fill-fg: #ffffff;
 159    --focus: var(--link);
 160
 161    --mark: #ff6b3d;
 162    --warn: #ff8a63;
 163
 164    --ok: #3fce7a;
 165    --bad: #ff6b6b;
 166    --done: #c084fc;
 167
 168    --diff-add: #0d2a18;
 169    --diff-del: #2c1113;
 170
 171    --shell-bg: #000000;
 172    --shell-fg: #f2f2f2;
 173    --shell-muted: #8f8f8f;
 174    --shell-line: #1c1c1c;
 175    --shell-hover: #141414;
 176    --shell-mark: #ff6b3d;
 177
 178    /* the languages' own colours; the same in both schemes */
 179    --lang-go: #00add8;
 180    --lang-rust: #dea584;
 181    --lang-c: #555555;
 182    --lang-python: #3572a5;
 183    --lang-javascript: #f1e05a;
 184    --lang-typescript: #3178c6;
 185    --lang-shell: #89e051;
 186    --lang-ruby: #701516;
 187    --lang-java: #b07219;
 188    --lang-swift: #f05138;
 189    --lang-html: #e34c26;
 190    --lang-css: #563d7c;
 191    --lang-org: #77aa99;
 192    --lang-markdown: #083fa1;
 193    --lang-emacs-lisp: #c065db;
 194    --lang-nix: #7e7eff;
 195    --lang-sql: #e38c00;
 196
 197    --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
 198    --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");
 199  }
 200}
 201
 202/* a page stamped light keeps the light scheme under a dark OS: the token
 203   block above is guarded for it, and this is the other half of that */
 204:root[data-theme="light"] { color-scheme: light; }
 205
 206/* ---- base ---- */
 207* { box-sizing: border-box; }
 208html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
 209body {
 210  margin: 0;
 211  background: var(--canvas);
 212  color: var(--fg);
 213  font: var(--fs-3)/1.5 var(--sans);
 214  min-height: 100vh;
 215}
 216h1, h2, h3 { line-height: 1.25; font-weight: 600; }
 217h1 { font-size: var(--fs-5); margin: 0 0 var(--sp-3); text-wrap: balance; }
 218h2 { font-size: var(--fs-4); margin: var(--sp-6) 0 var(--sp-3); }
 219h3 { font-size: var(--fs-3); margin: var(--sp-5) 0 var(--sp-2); }
 220p { margin: 0 0 var(--sp-3); }
 221a { color: var(--link); text-decoration: none; }
 222a:hover { text-decoration: underline; }
 223/* a link inside running text is told apart by its underline: link and
 224   muted text are 1.07:1 apart in dark, and colour alone is not a cue
 225   (#232). Navigation, chips and buttons keep position as their cue. */
 226p a, .syscomment a { text-decoration: underline; }
 227/* a title or a path is the whole line: position is the cue */
 228p a.button, p a.btn, p a.chip, .repotitle a, p.title a, .pathbar a, .pager a { text-decoration: none; }
 229/* where a link shares its line with other text the underline is the cue
 230   again, path bar or not: a crumb beside the file name, a heading that
 231   names an owner, an empty-state note (#226) */
 232.crumbs a, h1 a, li.empty a { text-decoration: underline; }
 233a.xref { color: var(--link); text-decoration: none; }
 234
 235code, pre, .mono, .code, td.mode, td.size {
 236  font-family: var(--mono);
 237  font-size: var(--fs-1);
 238}
 239.mono { overflow-wrap: anywhere; }
 240
 241/* ---- focus: one authored ring, so keyboard position is never the
 242   browser's guess ---- */
 243:focus-visible {
 244  outline: 2px solid var(--focus);
 245  outline-offset: 2px;
 246  border-radius: 1px;
 247}
 248/* the rail is black in both schemes and --focus is a dark blue in the
 249   light one — a ring nobody could see there */
 250.rail :focus-visible { outline-color: var(--shell-mark); }
 251
 252/* visually hidden, still read aloud */
 253.vh {
 254  position: absolute;
 255  width: 1px; height: 1px;
 256  margin: -1px; padding: 0; border: 0;
 257  clip-path: inset(50%);
 258  overflow: hidden;
 259  white-space: nowrap;
 260}
 261
 262/* ---- skip link: the rail runs ahead of the content in source order ---- */
 263a.skip {
 264  position: absolute;
 265  left: var(--sp-3); top: -3rem;
 266  z-index: 50;
 267  display: flex;
 268  align-items: center;
 269  min-height: var(--rail-hit);
 270  background: var(--fill);
 271  color: var(--fill-fg);
 272  padding: var(--sp-2) var(--sp-4);
 273  font-weight: 600;
 274}
 275a.skip:focus { top: var(--sp-3); text-decoration: none; }
 276
 277/* ---- rail: one row of glyphs across the top, no labels ----
 278   One strip the height of a hit target, at every width: fixed squares,
 279   no wrapping and no scrolling. Every item is a square link carrying an
 280   inline svg, its name in an aria-label and in a visually hidden span, so
 281   the nav reads the same to a screen reader as the old text list did. */
 282.rail {
 283  height: var(--rail-strip-h);
 284  background: var(--shell-bg);
 285  color: var(--shell-fg);
 286  border-bottom: 1px solid var(--shell-line);
 287  display: flex;
 288  flex-direction: row;
 289  align-items: center;
 290  padding: 0 var(--sp-1);
 291}
 292a.brand {
 293  display: flex;
 294  align-items: center;
 295  justify-content: center;
 296  flex: none;
 297  width: var(--rail-mark-box);
 298  height: var(--rail-strip-h);
 299  color: var(--shell-fg);
 300}
 301a.brand:hover { text-decoration: none; }
 302a.brand svg.mark { display: block; flex: none; width: var(--rail-mark); height: var(--rail-mark); }
 303
 304ul.raillist {
 305  list-style: none;
 306  margin: 0;
 307  padding: 0;
 308  display: flex;
 309  align-items: center;
 310  min-width: 0;
 311}
 312/* the spacer that holds settings, admin and the account cell at the far
 313   end of the row */
 314.railgap { flex: 1; }
 315.railicon {
 316  position: relative;
 317  display: flex;
 318  align-items: center;
 319  justify-content: center;
 320  flex: none;
 321  width: var(--rail-hit);
 322  height: var(--rail-strip-h);
 323  padding: 0;
 324  border: 0;
 325  background: none;
 326  color: var(--shell-fg);
 327  cursor: pointer;
 328}
 329.railicon:hover { background: var(--shell-hover); text-decoration: none; }
 330/* orange marks position along the bottom edge — the rail's only accent */
 331.railicon[aria-current] {
 332  background: var(--shell-hover);
 333  box-shadow: inset 0 -2px 0 var(--shell-mark);
 334}
 335.count {
 336  font-size: var(--fs-0);
 337  font-weight: 600;
 338  letter-spacing: 0;
 339  background: var(--shell-mark);
 340  color: var(--shell-bg);
 341  padding: 0 5px;
 342  border-radius: var(--r-ctl);
 343  margin-left: auto;
 344}
 345/* the unread count is a badge on the bell's corner, not a trailing number */
 346.railicon .count {
 347  position: absolute;
 348  top: 2px;
 349  right: 2px;
 350  margin: 0;
 351  padding: 0 3px;
 352  line-height: 1.35;
 353}
 354.railfoot {
 355  flex: none;
 356  display: flex;
 357  align-items: center;
 358  min-width: 0;
 359}
 360.railfoot a { color: var(--shell-fg); }
 361.railfoot form { margin: 0; }
 362a.railuser {
 363  display: flex;
 364  align-items: center;
 365  justify-content: center;
 366  flex: none;
 367  width: var(--rail-hit);
 368  height: var(--rail-strip-h);
 369}
 370a.railuser:hover { text-decoration: none; }
 371/* the phone rail's overflow: every square .railopt hides, and log out,
 372   as a labelled list under the rail. Shown only below 34rem. */
 373.railmore { display: none; position: relative; }
 374.railmore > summary { list-style: none; cursor: pointer; }
 375.railmore > summary::-webkit-details-marker { display: none; }
 376.railmore[open] > summary { background: var(--shell-hover); }
 377.raildrop {
 378  position: absolute;
 379  top: 100%;
 380  right: 0;
 381  z-index: 20;
 382  min-width: 12rem;
 383  padding: var(--sp-1) 0;
 384  background: var(--shell-bg);
 385  border: 1px solid var(--shell-line);
 386  border-radius: var(--r-card);
 387  box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
 388}
 389.raildrop a, .raildrop button {
 390  display: flex;
 391  align-items: center;
 392  /* a button's own default is centred; the rows read as one list */
 393  justify-content: flex-start;
 394  gap: var(--sp-3);
 395  width: 100%;
 396  min-height: var(--rail-hit);
 397  padding: 0 var(--sp-4);
 398  border: 0;
 399  background: none;
 400  font: inherit;
 401  font-size: var(--fs-2);
 402  text-align: left;
 403  color: var(--shell-fg);
 404  cursor: pointer;
 405}
 406.raildrop a:hover, .raildrop button:hover { background: var(--shell-hover); text-decoration: none; }
 407.raildrop form { margin: 0; }
 408.raildrop svg { flex: none; }
 409a.railuser .avatar { width: var(--rail-mark); height: var(--rail-mark); }
 410.avatar {
 411  display: inline-grid;
 412  place-items: center;
 413  width: 22px; height: 22px;
 414  flex: none;
 415  border-radius: 50%;
 416  background: var(--fill);
 417  color: var(--fill-fg);
 418  font-size: var(--fs-0);
 419  font-weight: 600;
 420}
 421
 422/* ---- shell: the rail above, then the pane, which fills the rest of the
 423   viewport so the footer sits at the bottom of a short page ---- */
 424.shell { display: flex; flex-direction: column; min-height: 100vh; }
 425.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
 426main.content {
 427  flex: 1;
 428  width: 100%;
 429  padding: var(--sp-5) var(--sp-6) var(--sp-7);
 430}
 431/* the container is the default width and what `wide` names; reading and
 432   bounded follow, so equal specificity gives them the cascade */
 433main.content, main.wide, footer { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; }
 434main.reading { max-width: calc(72rem + 2 * var(--sp-6)); margin: 0 auto; }
 435main.bounded { max-width: calc(48rem + 2 * var(--sp-6)); margin: 0 auto; }
 436footer {
 437  width: 100%;
 438  padding: var(--sp-4) var(--sp-6);
 439  border-top: 1px solid var(--faint);
 440  color: var(--muted);
 441  font-size: var(--fs-1);
 442}
 443footer p { margin: 0; }
 444footer a { color: var(--muted); text-decoration: underline; }
 445footer a:hover { color: var(--link); }
 446
 447/* ---- repository header ---- */
 448.repohead {
 449  padding: var(--sp-4) 0 0;
 450  border-bottom: 1px solid var(--line);
 451}
 452.repohead .wrap { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; padding: 0 var(--sp-6); }
 453.identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
 454.grow { flex: 1; }
 455/* h1 on the repo home, p elsewhere so each page keeps its own h1 — but
 456   identical in size, because the tabs sit below and navigation must not
 457   move when you use it */
 458.repotitle {
 459  margin: 0;
 460  font-size: var(--fs-4);
 461  font-weight: 600;
 462  line-height: 1.25;
 463}
 464.repotitle a { color: var(--fg); }
 465.repotitle a.owner { color: var(--muted); font-weight: 400; }
 466.repotitle a:hover { color: var(--link); text-decoration: none; }
 467.repotitle .sep { color: var(--muted); margin: 0 2px; font-weight: 400; }
 468.repodesc {
 469  margin: 0 0 0 var(--sp-2);
 470  color: var(--muted);
 471  font-size: var(--fs-2);
 472  display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
 473  min-width: 0;
 474}
 475.repodesc a.site { color: var(--muted); }
 476.repodesc a.site:hover { color: var(--link); }
 477.repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); }
 478
 479nav.tabs {
 480  display: flex;
 481  gap: var(--sp-1);
 482  margin-top: var(--sp-3);
 483  margin-bottom: var(--sp-4);
 484  overflow-x: auto;
 485  /* with overflow-y left visible the browser computes it to auto, which
 486     is a vertical drag on touch; the strip scrolls sideways only */
 487  overflow-y: hidden;
 488  scrollbar-width: none;
 489}
 490nav.tabs::-webkit-scrollbar { display: none; }
 491nav.tabs a {
 492  display: inline-flex;
 493  align-items: center;
 494  gap: var(--sp-1);
 495  padding: var(--sp-2) var(--sp-3) 10px;
 496  color: var(--muted);
 497  font-size: var(--fs-2);
 498  white-space: nowrap;
 499  border-bottom: 2px solid transparent;
 500  margin-bottom: -1px;
 501}
 502nav.tabs a:hover { color: var(--fg); text-decoration: none; }
 503nav.tabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
 504/* the profile strip draws its unlit tabs, so the underline reads as the
 505   control rather than appearing only on the one you are already on.
 506   --line, not --faint: the track has to be visible to be a track, and
 507   at 2px --faint disappears into the canvas in both schemes. */
 508nav.tabs.profiletabs a { border-bottom-color: var(--line); }
 509nav.tabs.profiletabs a[aria-current] { border-bottom-color: var(--mark); }
 510/* a count in a tab is plain metadata, not a badge */
 511nav.tabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
 512
 513/* ---- page heads ---- */
 514.pagehead, .listhead, .headrow {
 515  display: flex;
 516  align-items: center;
 517  gap: var(--sp-3);
 518  flex-wrap: wrap;
 519  margin-bottom: var(--sp-5);
 520}
 521/* every child sheds its block margins, or a p.meta beside an h1 centres
 522   its text inside a box the margins made taller than the heading's */
 523.pagehead h1, .listhead h1, .headrow h1, .listhead h2, .headrow h2 { margin: 0; }
 524.pagehead > p, .listhead > p, .headrow > p { margin: 0; }
 525.pagehead .grow, .listhead .spacer, .headrow .spacer { flex: 1; }
 526.issuetitle { margin: 0 0 var(--sp-2); font-size: var(--fs-5); text-wrap: balance; }
 527.issuenumber { color: var(--muted); font-weight: 400; }
 528.issuemeta { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-4); }
 529.commithead p { margin: var(--sp-1) 0; }
 530.commithead h2 { margin-top: 0; margin-bottom: var(--sp-1); }
 531
 532nav.filters { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
 533nav.filters a {
 534  display: inline-flex;
 535  align-items: center;
 536  height: 32px;
 537  padding: 0 var(--sp-3);
 538  background: var(--canvas);
 539  border: 1px solid var(--line);
 540  border-radius: var(--r-ctl);
 541  color: var(--fg);
 542  font-size: var(--fs-2);
 543  font-weight: 500;
 544}
 545nav.filters a:hover { background: var(--hover); text-decoration: none; }
 546nav.filters a.active { background: var(--surface); border-color: var(--link); color: var(--link); }
 547
 548form.searchform, form.logfilter, form.compareform {
 549  display: flex;
 550  align-items: center;
 551  gap: var(--sp-2);
 552  flex-wrap: wrap;
 553  margin: 0 0 var(--sp-4);
 554}
 555form.searchform input[type="search"], form.searchform input[type="text"], form.logfilter input { flex: 1; min-width: 12rem; max-width: 32rem; }
 556form.searchform.compact { margin: 0; }
 557form.searchform.compact input[type="search"], form.searchform.compact input[type="text"] { min-width: 18rem; }
 558form.compareform label { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
 559
 560/* ---- buttons: one family, 32px tall, so a row of them lines up ---- */
 561button, .button {
 562  display: inline-flex;
 563  align-items: center;
 564  justify-content: center;
 565  gap: 6px;
 566  height: 32px;
 567  padding: 0 var(--sp-3);
 568  font: inherit;
 569  font-size: var(--fs-2);
 570  font-weight: 500;
 571  border: 1px solid transparent;
 572  border-radius: var(--r-ctl);
 573  cursor: pointer;
 574  text-decoration: none;
 575  white-space: nowrap;
 576  /* a bare <button> is the primary action of its form group */
 577  background: var(--fill);
 578  color: var(--fill-fg);
 579}
 580button:hover, .button.primary:hover { filter: brightness(1.12); text-decoration: none; }
 581button.btn, .button.btn {
 582  background: var(--canvas);
 583  color: var(--fg);
 584  border-color: var(--line);
 585  filter: none;
 586}
 587button.btn:hover, .button.btn:hover { background: var(--hover); filter: none; text-decoration: none; }
 588button.btn[aria-pressed="true"] { background: var(--surface); color: var(--link); border-color: var(--link); }
 589button.linklike {
 590  background: none;
 591  border: 0;
 592  padding: 0;
 593  height: auto;
 594  color: var(--link);
 595  font-weight: 400;
 596  filter: none;
 597}
 598button.linklike:hover { text-decoration: underline; filter: none; }
 599button.danger, .button.danger {
 600  background: var(--canvas);
 601  color: var(--bad);
 602  border-color: var(--bad);
 603  filter: none;
 604}
 605/* --canvas, not --fill-fg: white on the dark scheme's --bad is 2.3:1 */
 606button.danger:hover, .button.danger:hover { background: var(--bad); color: var(--canvas); filter: none; }
 607button:disabled { opacity: 0.55; cursor: default; filter: none; }
 608.btngroup { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
 609/* a destructive button holds the way out at arm's length: 8px puts the
 610   cancel's underline against the button's border */
 611.btngroup:has(> button.danger) { gap: var(--sp-4); }
 612form.inline { display: inline; }
 613.act { text-align: right; }
 614
 615/* ---- forms ---- */
 616/* not button: it sets its own colour above, and this rule comes later at
 617   the same specificity */
 618input, textarea, select { font: inherit; color: inherit; }
 619input[type="text"], input[type="search"], input[type="email"],
 620input[type="password"], input[type="number"], input:not([type]), textarea, select {
 621  background: var(--inset);
 622  color: var(--fg);
 623  border: 1px solid var(--line);
 624  border-radius: var(--r-ctl);
 625  padding: 0 10px;
 626  height: 32px;
 627  font-size: var(--fs-2);
 628  line-height: 1.4;
 629}
 630textarea {
 631  width: 100%;
 632  height: auto;
 633  padding: 8px 10px;
 634  resize: vertical;
 635  line-height: 1.5;
 636}
 637textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); }
 638select {
 639  appearance: none;
 640  padding-right: 1.9rem;
 641  background-image: var(--chev);
 642  background-repeat: no-repeat;
 643  background-position: right 0.6rem center;
 644  background-size: 0.62rem;
 645  cursor: pointer;
 646}
 647input:hover, textarea:hover, select:hover { border-color: var(--muted); }
 648input[type="radio"] { accent-color: var(--fill); }
 649label { display: block; font-weight: 500; font-size: var(--fs-2); margin-bottom: 4px; }
 650label:has(> input[type="radio"]), label:has(> input[type="checkbox"]),
 651label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); }
 652.fieldname { display: block; font-size: var(--fs-2); font-weight: 500; }
 653.hint { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 400; margin: 0 0 6px; }
 654.field { margin-bottom: var(--sp-4); }
 655.field input[type="text"], .field input[type="email"], .field select { width: 100%; }
 656.check { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; }
 657::placeholder { color: var(--muted); opacity: 1; }
 658::selection { background: var(--fill); color: var(--fill-fg); }
 659/* :user-invalid, not :invalid — a required field is invalid the moment
 660   the page loads, and colouring it red before anyone has typed is a
 661   scolding, not a hint */
 662input:user-invalid, textarea:user-invalid { border-color: var(--bad); }
 663input[name="confirm"] { width: auto; margin-right: var(--sp-2); }
 664
 665/* A radio keeps the native control: a circle takes one answer, a square
 666   takes any number, and that shape survives greyscale and colour
 667   blindness. The checkbox is drawn so it matches the rest of the family. */
 668input[type="checkbox"] {
 669  appearance: none;
 670  flex: none;
 671  width: 16px;
 672  height: 16px;
 673  margin: 0;
 674  /* an empty box has nothing but its border to announce it */
 675  border: 1px solid var(--muted);
 676  border-radius: var(--r-ctl);
 677  background: var(--inset);
 678  cursor: pointer;
 679}
 680input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); }
 681input[type="checkbox"]:checked {
 682  background: var(--fill);
 683  border-color: var(--fill);
 684  /* the mark sits on the blue ground, so it is white in both schemes */
 685  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");
 686  background-repeat: no-repeat;
 687  background-position: center;
 688  background-size: 11px;
 689}
 690
 691/* a segmented control for a small, mutually exclusive set: real radios
 692   underneath, so arrow keys and screen readers behave as they always did */
 693fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
 694fieldset.segmented legend { padding: 0; margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-2); }
 695fieldset.segmented .options { display: inline-flex; }
 696fieldset.segmented label { gap: 0; margin: 0; }
 697fieldset.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
 698fieldset.segmented span {
 699  display: flex;
 700  align-items: center;
 701  height: 32px;
 702  padding: 0 var(--sp-4);
 703  border: 1px solid var(--line);
 704  font-size: var(--fs-2);
 705  cursor: pointer;
 706}
 707fieldset.segmented label + label span { border-left: 0; }
 708fieldset.segmented label:first-child span { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
 709fieldset.segmented label:last-child span { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
 710fieldset.segmented span:hover { border-color: var(--muted); }
 711fieldset.segmented input:checked + span {
 712  background: var(--fill);
 713  border-color: var(--fill);
 714  color: var(--fill-fg);
 715  font-weight: 600;
 716}
 717fieldset.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
 718
 719p.branchpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
 720p.branchpick label { color: var(--muted); font-size: var(--fs-2); margin: 0; }
 721p.branchpick select { flex: 1 1 12rem; }
 722
 723form.signupform, form.editform { max-width: 40rem; }
 724form.signupform label, form.editform label { margin-bottom: 4px; }
 725.editform textarea { width: 100%; }
 726.editform input[name="message"] { width: 100%; }
 727
 728/* A previewed draft, above the textarea it came from. The orange edge is
 729   "where you are and what wants you": this is not saved yet. */
 730.preview {
 731  margin: var(--sp-4) 0;
 732  max-width: 48rem;
 733  background: var(--surface);
 734  border: 1px solid var(--line);
 735  border-left: 3px solid var(--mark);
 736  border-radius: var(--r-card);
 737}
 738.preview > .previewmark {
 739  margin: 0;
 740  padding: var(--sp-2) var(--sp-4);
 741  border-bottom: 1px solid var(--line);
 742  color: var(--warn);
 743  font-size: var(--fs-1);
 744}
 745.preview > .rendered { padding: var(--sp-3) var(--sp-4); }
 746.preview > .rendered > :first-child { margin-top: 0; }
 747.preview > .rendered > :last-child { margin-bottom: 0; }
 748.preview > .rendered:empty::before { content: "nothing to preview"; color: var(--muted); }
 749
 750form.commentform { margin: var(--sp-4) 0; max-width: 48rem; }
 751form.commentform p:last-child { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 0; }
 752
 753details.editbox { margin: var(--sp-2) 0; max-width: 48rem; }
 754details.editbox > summary {
 755  display: inline-flex;
 756  align-items: center;
 757  height: 32px;
 758  padding: 0 var(--sp-3);
 759  background: var(--canvas);
 760  border: 1px solid var(--line);
 761  border-radius: var(--r-ctl);
 762  color: var(--fg);
 763  font-size: var(--fs-2);
 764  font-weight: 500;
 765  cursor: pointer;
 766  list-style: none;
 767}
 768details.editbox > summary::-webkit-details-marker { display: none; }
 769details.editbox > summary:hover { background: var(--hover); }
 770details.editbox[open] > summary { margin-bottom: var(--sp-2); }
 771details.editbox input[type="text"] { width: 100%; }
 772
 773/* ---- settings: one row per control, label then input then its own
 774   button. The name stays setform because the templates carry it.
 775   The label column takes the slack, so the control and the button ride
 776   the right edge: a checkbox, a number and a full-width text input all
 777   end on the same rule instead of the narrow ones stranding left. Its
 778   14rem floor is what keeps a hint from wrapping a word to a line once
 779   the control column claims its 28rem. ---- */
 780form.setform {
 781  display: grid;
 782  grid-template-columns: minmax(14rem, 1fr) minmax(0, 28rem) auto;
 783  gap: var(--sp-4);
 784  align-items: start;
 785  padding: var(--sp-3) 0;
 786  border-bottom: 1px solid var(--faint);
 787}
 788form.setform label { margin-top: 6px; }
 789form.setform .hint { margin: 2px 0 0; }
 790form.setform input[type="text"], form.setform input[type="password"], form.setform select { width: 100%; }
 791/* a control narrower than its column is pushed to the column's end,
 792   which is where a full-width input's own right edge lands */
 793form.setform .check { justify-content: flex-end; }
 794form.setform .num { text-align: right; }
 795form.setform .num input[type="number"] { width: auto; }
 796/* the third column takes the leftover width; the button keeps its own */
 797form.setform > button, form.setform > .btngroup { justify-self: start; }
 798form.setform.stack { grid-template-columns: 1fr; }
 799form.setform.stack textarea, form.setform.stack select, form.setform.stack input[type="text"], form.setform.stack input[type="password"] { width: 100%; max-width: 48rem; }
 800ul.protlist { list-style: none; margin: var(--sp-2) 0; padding: 0; }
 801ul.protlist li {
 802  display: flex;
 803  align-items: center;
 804  gap: var(--sp-3);
 805  padding: var(--sp-2) 0;
 806  border-bottom: 1px solid var(--faint);
 807}
 808ul.protlist li:last-child { border-bottom: 0; }
 809ul.protlist form { margin-left: auto; }
 810ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
 811ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
 812/* the email list: address and badges read left, the controls sit right,
 813   so the buttons line up down the list however long an address is */
 814ul.plain li > form:first-of-type { margin-left: auto; }
 815
 816/* ---- messages: .error and .notice are one family. The names stay
 817   because e2e tests match class="error". ---- */
 818.error, .notice {
 819  border-left: 3px solid var(--bad);
 820  background: color-mix(in srgb, var(--bad) 6%, transparent);
 821  color: var(--fg);
 822  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
 823  padding: var(--sp-2) var(--sp-3);
 824  margin: 0 0 var(--sp-4);
 825  font-size: var(--fs-2);
 826}
 827.notice { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); }
 828.empty-note, .none, .empty, li.empty, td.empty { color: var(--muted); }
 829
 830/* ---- containers: one recipe for cards, lists and tables ---- */
 831.card, ul.list, ul.loglist, ul.repolist, ul.issuelist,
 832ul.milestonelist, .readme, .code, article.release, .blame, .teambody {
 833  background: var(--surface);
 834  border: 1px solid var(--line);
 835  border-radius: var(--r-card);
 836  overflow: hidden;
 837}
 838.cardhead {
 839  display: flex;
 840  align-items: center;
 841  gap: var(--sp-3);
 842  padding: var(--sp-2) var(--sp-4);
 843  border-bottom: 1px solid var(--line);
 844  font-size: var(--fs-1);
 845  color: var(--muted);
 846}
 847.cardhead b { color: var(--fg); font-weight: 500; }
 848.cardbody { padding: var(--sp-4) var(--sp-5); }
 849ul.list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
 850ul.list li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
 851ul.list li:last-child { border-bottom: 0; }
 852ul.list li:hover { background: var(--hover); }
 853
 854table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
 855th {
 856  text-align: left;
 857  font-weight: 500;
 858  font-size: var(--fs-1);
 859  color: var(--muted);
 860  padding: 6px var(--sp-4);
 861  border-bottom: 1px solid var(--line);
 862}
 863td { padding: 7px var(--sp-4); border-bottom: 1px solid var(--faint); vertical-align: top; }
 864tr:last-child td { border-bottom: 0; }
 865tbody tr:hover td { background: var(--hover); }
 866/* every header row a template writes, by the class it or its table
 867   carries: TestHeaderRowsAreLeftAligned reads these selectors */
 868tr.cols th, table.tree th, table.refs th, table.keys th, table.assets th { text-align: left; }
 869tr.cols th { background: var(--canvas); }
 870/* right-aligned columns keep their header with their values */
 871tr.cols th.age, tr.cols th.size { text-align: right; }
 872/* wide listings scroll inside their own box; the page never does. The
 873   wrapper is the scroller only — the table inside carries the card. */
 874.tablewrap { overflow-x: auto; max-width: 100%; }
 875
 876table.tree, table.refs {
 877  background: var(--surface);
 878  border: 1px solid var(--line);
 879  border-radius: var(--r-card);
 880  /* collapsed borders defeat a radius on the table itself */
 881  border-collapse: separate;
 882  border-spacing: 0;
 883  overflow: hidden;
 884  margin-bottom: var(--sp-4);
 885}
 886table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: 0; }
 887table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); }
 888td.name a { color: var(--fg); }
 889td.name a:hover { color: var(--link); }
 890table.tree td.name { width: 25%; white-space: nowrap; }
 891table.tree td.name.dir a { color: var(--link); }
 892/* the glyph stays muted in both rows: it is a shape cue, and colour here
 893   goes on carrying what it already carries */
 894table.tree td.name svg { color: var(--muted); vertical-align: -0.125em; margin-right: var(--sp-2); }
 895table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; }
 896table.tree td.lastcommit {
 897  max-width: 0;
 898  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
 899}
 900table.tree td.lastcommit a {
 901  color: var(--muted);
 902  display: block;
 903  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
 904}
 905table.tree td.lastcommit a:hover { color: var(--link); }
 906table.tree th.age, table.tree td.age { width: 20%; }
 907td.age, th.age { text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
 908td.size, td.mode { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
 909table.tree th.size, table.tree td.size { text-align: right; }
 910table.refs td.name { width: 100%; }
 911table.refs td.sha, td.sha { color: var(--muted); }
 912
 913/* these tables sit flush with the page text: no outer border, and the
 914   header row drops the ground and the left padding */
 915table.keys, table.assets { background: none; border: 0; border-radius: 0; }
 916table.keys th, table.assets th, table.keys tr.cols th { background: transparent; padding-left: 0; }
 917table.keys td { padding-left: 0; }
 918table.keys td.act, table.assets td.size { text-align: right; }
 919/* a fingerprint or an account row is read across, not down: the cells
 920   keep one line each and .tablewrap scrolls what does not fit */
 921table.keys.nowrap th, table.keys.nowrap td { white-space: nowrap; }
 922/* The account list types a username to confirm, which is longer than
 923   the key prefixes the confirm field is sized for elsewhere. 14rem, not
 924   11rem, because "type <name> to confirm" was cut mid-word for a name of
 925   ordinary length; a long enough name still truncates and the field's
 926   aria-label carries the instruction in full either way.
 927
 928   The cell is two fixed slots, each right-aligned. A form cannot span
 929   table cells, so one column per control — which would let the table
 930   align them — is out without form="" plumbing, and the forms hold
 931   different numbers of controls: the enable form and the disabled
 932   row's Promote have no confirm field. Sizing the slot instead
 933   of the form is what puts every button in one column and every field
 934   in another; right-aligning the cell alone left the disabled row's
 935   Promote where other rows keep their field. A slot is a field, a gap
 936   and a button wide, so a form that is only a button still ends on the
 937   same rule. No element stands in for the controls a row lacks. */
 938table.accounts { --acct-field: 14rem; --acct-btn: 6rem; }
 939table.accounts td.acts { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); }
 940table.accounts input[name="confirm"] { width: var(--acct-field); }
 941table.accounts form.actions {
 942  flex: none;
 943  display: inline-flex;
 944  /* the generic form.actions wraps and grows its button to fill; both
 945     have to go, or the slot takes the button to a second line and the
 946     field sits above it */
 947  flex-wrap: nowrap;
 948  justify-content: flex-end;
 949  align-items: center;
 950  gap: var(--sp-2);
 951  width: calc(var(--acct-field) + var(--acct-btn) + var(--sp-2));
 952  margin: 0;
 953}
 954/* a set width, not a minimum: it makes the slot's arithmetic exact, and
 955   6rem clears the widest of Promote, Demote, Disable and Enable */
 956table.accounts form.actions button { flex: none; width: var(--acct-btn); justify-content: center; }
 957table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); }
 958table.assets { margin-top: var(--sp-2); }
 959table.assets td.size, table.assets td.sha, table.assets td.act { white-space: nowrap; }
 960table.assets td.act form { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
 961
 962/* the tip commit is the first row of the file table */
 963tr.tipbar td {
 964  background: var(--surface);
 965  padding: var(--sp-3) var(--sp-4);
 966  border-bottom: 1px solid var(--line);
 967  max-width: 0;
 968}
 969.tipbar .tip {
 970  display: flex;
 971  align-items: center;
 972  gap: var(--sp-2);
 973  flex-wrap: wrap;
 974  min-width: 0;
 975  font-size: var(--fs-2);
 976}
 977.tipbar .who { font-weight: 600; }
 978.tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 979.tipbar .subject:hover { color: var(--link); }
 980.tipbar .spacer { flex: 1; }
 981.tipbar .age { color: var(--muted); white-space: nowrap; }
 982
 983.readme { margin-top: var(--sp-5); }
 984.readme .cardbody { max-width: 78ch; }
 985/* the overview README caps as a card, so prose and code share an edge */
 986.overview .readme { max-width: 88ch; }
 987/* until every card wraps its body in .cardbody, the rendered block is
 988   the body */
 989.readme > .rendered { padding: var(--sp-4) var(--sp-5); }
 990.code { background: var(--inset); padding: var(--sp-3) var(--sp-4); overflow-x: auto; }
 991.code pre { margin: 0; background: transparent !important; border: 0; padding: 0; }
 992pre.bigcode, .bigcode {
 993  font-family: var(--mono);
 994  /* the 404 numeral is a picture of a number, not body type */
 995  font-size: 4rem;
 996  color: var(--faint);
 997  -webkit-text-stroke: 1px var(--line);
 998  margin: 0;
 999  line-height: 1;
1000}
1001.notfound { text-align: center; padding: var(--sp-6) 0; }
1002.notfound h1 { margin-top: var(--sp-3); }
1003
1004ul.loglist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1005ul.loglist li {
1006  display: flex;
1007  align-items: baseline;
1008  gap: var(--sp-3);
1009  padding: var(--sp-3) var(--sp-4);
1010  border-bottom: 1px solid var(--faint);
1011}
1012ul.loglist li:last-child { border-bottom: 0; }
1013ul.loglist li:hover { background: var(--hover); }
1014ul.loglist p { margin: 0; }
1015ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; }
1016ul.loglist .subject a { color: var(--fg); font-weight: 500; }
1017ul.loglist .subject a:hover { color: var(--link); }
1018ul.loglist .commitside { flex: none; display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; }
1019
1020ul.loglist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1021ul.loglist.rows .commitmain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1022ul.loglist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1023
1024ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
1025ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1026ul.repolist li:last-child { border-bottom: 0; }
1027ul.repolist li:hover { background: var(--hover); }
1028ul.repolist p { margin: 0; }
1029ul.repolist .reponame { font-size: var(--fs-3); }
1030ul.repolist .reponame a { color: var(--fg); }
1031ul.repolist .reponame a strong { color: var(--link); font-weight: 600; }
1032ul.repolist .reponame .sep { color: var(--muted); margin: 0 2px; }
1033ul.repolist .desc { margin-top: 2px; }
1034ul.repolist .topics, ul.repolist .meta { margin-top: var(--sp-1); }
1035
1036/* one column per field across every row: name, labels, description,
1037   topics, branch, license, updated. Rows are subgrids of the list;
1038   the name and meta paragraphs are display: contents so their parts
1039   are cells. Cells pad instead of a gap, so an empty column is 0 wide. */
1040ul.repolist.rows { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto; }
1041ul.repolist.rows li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: var(--sp-2) var(--sp-4); }
1042ul.repolist.rows li > *, ul.repolist.rows .reponame > *, ul.repolist.rows .meta > * { grid-row: 1; padding-left: var(--sp-3); white-space: nowrap; }
1043ul.repolist.rows .reponame, ul.repolist.rows .meta { display: contents; }
1044ul.repolist.rows .reponame .name { grid-column: 1; padding-left: 0; font-size: var(--fs-2); }
1045ul.repolist.rows .labels { grid-column: 2; }
1046ul.repolist.rows .desc { grid-column: 3; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: var(--fs-2); margin: 0; }
1047ul.repolist.rows .topics { grid-column: 4; margin: 0; }
1048ul.repolist.rows .branch { grid-column: 5; }
1049ul.repolist.rows .license { grid-column: 6; }
1050ul.repolist.rows .updated { grid-column: 7; }
1051ul.repolist.rows li.empty { display: block; }
1052
1053/* pinned repos: a compact wrap of names, no description or meta */
1054ul.pinlist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1055ul.pinlist li {
1056  background: var(--surface);
1057  border: 1px solid var(--line);
1058  border-radius: var(--r-ctl);
1059  padding: var(--sp-1) var(--sp-3);
1060}
1061ul.pinlist li:hover { background: var(--hover); }
1062ul.pinlist li a { color: var(--fg); }
1063ul.pinlist li a:hover { color: var(--link); text-decoration: none; }
1064ul.pinlist .sep { color: var(--muted); margin: 0 2px; }
1065
1066ul.issuelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1067ul.issuelist li {
1068  display: flex;
1069  align-items: baseline;
1070  gap: var(--sp-3);
1071  padding: var(--sp-3) var(--sp-4);
1072  border-bottom: 1px solid var(--faint);
1073}
1074ul.issuelist li:last-child { border-bottom: 0; }
1075ul.issuelist li:hover { background: var(--hover); }
1076ul.issuelist li.empty { display: block; }
1077ul.issuelist p { margin: 0; }
1078ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; }
1079ul.issuelist .issueside { display: flex; gap: var(--sp-2); align-items: center; flex: none; }
1080ul.issuelist .title a { color: var(--fg); font-weight: 500; }
1081ul.issuelist .title a:hover { color: var(--link); }
1082
1083/* one-line rows: title, labels, then the meta pushed right. Above 64rem
1084   a list is a table, not prose (desktop layout spec). */
1085ul.issuelist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1086ul.issuelist.rows .issuemain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1087ul.issuelist.rows .title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1088ul.issuelist.rows .title .chip { margin-left: var(--sp-1); }
1089ul.issuelist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1090ul.issuelist.rows .meta .repo { color: var(--fg); }
1091
1092ul.milestonelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1093ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1094ul.milestonelist li:last-child { border-bottom: 0; }
1095ul.milestonelist li:hover { background: var(--hover); }
1096ul.milestonelist p { margin: 0; }
1097ul.milestonelist .msmain { min-width: 0; }
1098ul.milestonelist .title { font-weight: 500; }
1099.progress {
1100  height: 6px;
1101  max-width: 24rem;
1102  margin-top: var(--sp-2);
1103  background: var(--faint);
1104  border-radius: var(--r-ctl);
1105  overflow: hidden;
1106}
1107.progress .bar { height: 100%; background: var(--ok); }
1108
1109article.release { padding: var(--sp-4); margin: var(--sp-4) 0; }
1110.releasehead { background: none; border: 0; padding: 0; }
1111.releasehead h2 { margin: 0 0 var(--sp-1); font-size: var(--fs-3); }
1112.releasehead .meta { margin: 0 0 var(--sp-2); }
1113
1114ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1115ul.matchlist li { margin-bottom: var(--sp-3); }
1116.matchpath { font-family: var(--mono); font-size: var(--fs-1); }
1117/* a name in highlighted source that links to its definition keeps its
1118   token colour; the dotted underline is what marks it as a link */
1119.chroma a.sym { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
1120.chroma a.sym:hover { text-decoration-style: solid; }
1121details.symlist { margin: 0 0 var(--sp-3); font-size: var(--fs-1); }
1122details.symlist summary { cursor: pointer; color: var(--muted); }
1123details.symlist ul { list-style: none; margin: var(--sp-2) 0 0; padding: 0; columns: 16rem; }
1124details.symlist li { break-inside: avoid; padding: 2px 0; }
1125pre.matchline {
1126  background: var(--inset);
1127  border: 1px solid var(--line);
1128  border-radius: var(--r-card);
1129  padding: var(--sp-1) var(--sp-3);
1130  margin: var(--sp-1) 0 0;
1131  overflow-x: auto;
1132}
1133pre.matchline mark { background: color-mix(in srgb, var(--mark) 25%, transparent); color: inherit; border-radius: 2px; }
1134p.pager { margin-top: var(--sp-4); }
1135.snippetfile { margin-bottom: var(--sp-5); }
1136p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); }
1137pre.buildlog { max-height: 40rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
1138details.buildstep pre.buildlog { margin: 0; border: 0; border-radius: 0; }
1139details.buildstep summary code { overflow-wrap: anywhere; }
1140
1141/* ---- rendered prose ---- */
1142pre {
1143  background: var(--inset);
1144  border: 1px solid var(--line);
1145  border-radius: var(--r-card);
1146  padding: var(--sp-3) var(--sp-4);
1147  margin: 0 0 var(--sp-4);
1148  overflow-x: auto;
1149  font-size: var(--fs-2);
1150  line-height: 1.6;
1151}
1152code {
1153  background: var(--inset);
1154  border: 1px solid var(--faint);
1155  border-radius: var(--r-ctl);
1156  padding: 0 0.3em;
1157}
1158pre code { background: none; border: 0; padding: 0; font-size: inherit; }
1159code.fullsha { color: var(--muted); overflow-wrap: anywhere; }
1160pre.message {
1161  white-space: pre-wrap;
1162  overflow-wrap: anywhere;
1163}
1164.rendered { max-width: 100%; overflow-wrap: anywhere; }
1165.rendered a { text-decoration: underline; }
1166.prose, .rendered > p, .rendered > ul, .rendered > ol, .rendered > blockquote { max-width: 78ch; }
1167.rendered blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: var(--sp-4); color: var(--muted); }
1168.rendered img { max-width: 100%; }
1169.rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); }
1170.rendered table { border-collapse: collapse; margin: var(--sp-3) 0; display: block; max-width: 100%; overflow-x: auto; }
1171.rendered th, .rendered td {
1172  border: 1px solid var(--line);
1173  padding: var(--sp-1) var(--sp-3);
1174  text-align: left;
1175  overflow-wrap: normal; /* scroll the table, don't shatter words */
1176}
1177.rendered th { background: var(--surface); font-weight: 600; }
1178.rendered tr:last-child td { border-bottom: 1px solid var(--line); }
1179/* GFM task lists: the box sits in the line, sized to the prose */
1180.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; }
1181.rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }
1182.blobimage { text-align: center; }
1183.blobimage img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
1184
1185/* ---- dashboard: pinned column, tiles and queues, feed ---- */
1186.dashgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1187.dashgrid h1 { margin-top: 0; }
1188.dashgrid > aside { position: sticky; top: var(--sp-5); }
1189.dashgrid .dashmain h2 { margin-top: var(--sp-5); }
1190.dashgrid .dashmain .tiles + h2 { margin-top: 0; }
1191.colhead {
1192  margin: 0 0 var(--sp-2);
1193  font-size: var(--fs-0);
1194  font-weight: 500;
1195  letter-spacing: 0.08em;
1196  text-transform: uppercase;
1197  color: var(--muted);
1198}
1199.pins { list-style: none; margin: 0; padding: 0; font-size: var(--fs-2); }
1200.pins li { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 0; border-bottom: 1px solid var(--faint); }
1201.pins li:last-child { border-bottom: 0; }
1202.pins a { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1203.pins a:hover { color: var(--link); }
1204.pins .owner { color: var(--muted); }
1205.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; }
1206.pins .n b { font-weight: 600; color: var(--fg); }
1207.pins .n b.wants { color: var(--warn); }
1208.pins .dot { margin: 0; }
1209/* count tiles: the queues' sizes in one strip; a non-zero count is orange,
1210   what wants you */
1211.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
1212.tile {
1213  display: block;
1214  background: var(--surface);
1215  border: 1px solid var(--line);
1216  border-radius: var(--r-card);
1217  padding: var(--sp-3) var(--sp-4);
1218  color: var(--fg);
1219}
1220a.tile:hover { background: var(--hover); text-decoration: none; }
1221.tile b { display: block; font-size: var(--fs-5); font-weight: 600; line-height: 1.2; }
1222.tile.wants b { color: var(--warn); }
1223.tile span { font-size: var(--fs-1); color: var(--muted); }
1224.feedcol .feedline { font-size: var(--fs-2); margin-bottom: var(--sp-2); }
1225.feedcol .feedline .none { font-size: var(--fs-1); }
1226
1227/* ---- two-column: conversation and aside ---- */
1228.withaside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1229.withaside .mainside { min-width: 0; }
1230aside.aside { font-size: var(--fs-2); }
1231.aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
1232.aside .grp:first-child { border-top: 0; padding-top: 0; }
1233.aside h2 {
1234  margin: 0 0 var(--sp-2);
1235  font-size: var(--fs-0);
1236  font-weight: 500;
1237  letter-spacing: 0.08em;
1238  text-transform: uppercase;
1239  color: var(--muted);
1240}
1241.aside .row { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-1); flex-wrap: wrap; }
1242.aside .row:last-child { margin-bottom: 0; }
1243/* a row's second line: when it happened, under what it happened to */
1244.aside .row .sub { flex-basis: 100%; padding-left: 14px; color: var(--muted); font-size: var(--fs-1); }
1245.aside .row:has(.sub) { margin-bottom: var(--sp-2); }
1246.aside .none { color: var(--muted); }
1247.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--neutral); margin-right: 2px; vertical-align: middle; }
1248.dot.ok { background: var(--ok); }
1249.dot.bad { background: var(--bad); }
1250.dot.pend { background: var(--mark); }
1251.ok { color: var(--ok); }
1252.bad { color: var(--bad); }
1253form.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
1254form.actions button { flex: 1 1 auto; }
1255form.actions select, form.actions textarea { width: 100%; }
1256.feedline { margin-bottom: var(--sp-2); }
1257
1258/* ---- comments and threads ---- */
1259article.comment {
1260  max-width: 48rem;
1261  border: 1px solid var(--line);
1262  border-radius: var(--r-card);
1263  margin: var(--sp-4) 0;
1264  overflow: hidden;
1265}
1266article.comment .commenthead {
1267  display: flex;
1268  gap: var(--sp-2);
1269  flex-wrap: wrap;
1270  background: var(--surface);
1271  border-bottom: 1px solid var(--line);
1272  padding: var(--sp-2) var(--sp-4);
1273  margin: 0;
1274  font-size: var(--fs-1);
1275  color: var(--muted);
1276}
1277article.comment .commenthead b { color: var(--fg); font-weight: 500; }
1278article.comment .commenthead .when { color: var(--muted); }
1279article.comment .rendered { padding: var(--sp-3) var(--sp-4); }
1280article.comment .rendered > :first-child { margin-top: 0; }
1281article.comment .rendered > :last-child { margin-bottom: 0; }
1282a.authorlink { color: var(--fg); font-weight: 500; }
1283a.authorlink:hover { color: var(--link); }
1284
1285.syscomment {
1286  max-width: 48rem;
1287  color: var(--muted);
1288  font-size: var(--fs-1);
1289  margin: 0 0 var(--sp-4) var(--sp-3);
1290  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
1291  border-left: 2px solid var(--faint);
1292}
1293.syscomment p { display: inline; margin: 0; }
1294
1295.thread {
1296  border: 1px solid var(--faint);
1297  border-left: 3px solid var(--link);
1298  border-radius: var(--r-ctl);
1299  padding: var(--sp-2) var(--sp-4);
1300  margin: var(--sp-2) 0 var(--sp-2) var(--sp-6);
1301}
1302.thread.resolved { border-left-color: var(--ok); opacity: 0.75; }
1303/* an unsubmitted comment is the viewer's own note, not the conversation */
1304.thread.pending { border-left-color: var(--neutral); border-left-style: dashed; }
1305.thread.stale { border-left-color: var(--warn); }
1306.thread.composing { border-left-color: var(--mark); }
1307.thread:target { outline: 2px solid var(--mark); outline-offset: 2px; }
1308.thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; }
1309.thread .when { color: var(--muted); }
1310.thread .rendered p { margin: var(--sp-1) 0; }
1311.thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; }
1312.thread details.threadreply { margin: var(--sp-2) 0 0; }
1313.thread details.threadreply > summary { color: var(--link); font-size: var(--fs-1); cursor: pointer; }
1314.thread textarea { width: 100%; }
1315.thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; }
1316form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); }
1317.thread .suggestion { margin: var(--sp-2) 0 0; }
1318.thread .suggestion table.difftable { margin: var(--sp-1) 0 0; }
1319.thread .suggestion table.difftable tr.add td,
1320.thread .suggestion table.difftable tr.del td { display: table-cell; }
1321
1322nav.subtabs {
1323  display: flex;
1324  gap: var(--sp-4);
1325  border-bottom: 1px solid var(--line);
1326  margin: 0 0 var(--sp-4);
1327}
1328nav.subtabs a {
1329  display: inline-flex;
1330  align-items: center;
1331  gap: var(--sp-1);
1332  padding: var(--sp-2) 0 10px;
1333  color: var(--muted);
1334  font-size: var(--fs-2);
1335  border-bottom: 2px solid transparent;
1336  margin-bottom: -1px;
1337}
1338nav.subtabs a:hover { color: var(--fg); text-decoration: none; }
1339nav.subtabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
1340nav.subtabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
1341
1342/* ---- diffs and code ---- */
1343p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1344p.diffstat .add { color: var(--ok); }
1345p.diffstat .del { color: var(--bad); }
1346
1347details.difffold {
1348  border: 1px solid var(--line);
1349  border-radius: var(--r-card);
1350  margin: 0 0 var(--sp-3);
1351  background: var(--inset);
1352  overflow: hidden;
1353}
1354details.difffold summary {
1355  display: flex;
1356  align-items: baseline;
1357  gap: var(--sp-3);
1358  padding: var(--sp-2) var(--sp-3);
1359  background: var(--surface);
1360  font-size: var(--fs-2);
1361  cursor: pointer;
1362  list-style: none;
1363}
1364details.difffold[open] summary { border-bottom: 1px solid var(--line); }
1365details.difffold summary::-webkit-details-marker { display: none; }
1366/* flex summaries lose the native disclosure marker; draw our own */
1367details.difffold summary::before { content: "\25b8"; color: var(--muted); }
1368details.difffold[open] summary::before { content: "\25be"; }
1369details.difffold summary:hover { background: var(--hover); }
1370details.difffold summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; }
1371details.difffold summary .fpath .was { color: var(--muted); }
1372details.difffold summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; }
1373details.difffold summary .add { color: var(--ok); }
1374details.difffold summary .del { color: var(--bad); }
1375details.difffold > .none { padding: var(--sp-3); margin: 0; }
1376details.difffold .tablewrap { background: none; border: 0; border-radius: 0; }
1377
1378table.difftable {
1379  border-collapse: collapse;
1380  width: 100%;
1381  font-family: var(--mono);
1382  font-size: var(--fs-1);
1383  line-height: 1.5;
1384}
1385table.difftable td { border: 0; padding: 0; vertical-align: top; font-size: inherit; }
1386table.difftable tbody tr:hover td { background: none; }
1387table.difftable td.ln {
1388  width: 1%;
1389  min-width: 2.5rem;
1390  padding: 0 var(--sp-2);
1391  text-align: right;
1392  color: var(--muted);
1393  user-select: none;
1394  border-right: 1px solid var(--line);
1395  white-space: nowrap;
1396}
1397/* not .code: that class carries its own ground, which painted over the
1398   row tints */
1399table.difftable td.src { padding: 0 var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; }
1400/* the marker is decoration, so it lives in CSS and stays out of a copied
1401   selection */
1402table.difftable tr.add td.src::before { content: "+"; color: var(--ok); }
1403table.difftable tr.del td.src::before { content: "\2212"; color: var(--bad); }
1404table.difftable tr.ctx td.src::before { content: " "; }
1405table.difftable tr.add { background: var(--diff-add); }
1406table.difftable tr.del { background: var(--diff-del); }
1407table.difftable tr.hunk td, table.difftable tr.dmeta td {
1408  color: var(--muted);
1409  padding: var(--sp-1) var(--sp-3);
1410  background: var(--surface);
1411  border-top: 1px solid var(--line);
1412  border-bottom: 1px solid var(--line);
1413}
1414table.difftable tr.hunk td.src { color: var(--link); }
1415table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--canvas); }
1416/* a line number is the handle for commenting on that line; it stays a
1417   plain number until pointed at, so the gutter is not a wall of links */
1418table.difftable td.ln a.cmt { color: inherit; text-decoration: none; }
1419table.difftable td.ln a.cmt:hover,
1420table.difftable td.ln a.cmt:focus { color: var(--link); text-decoration: underline; }
1421/* split layout: old and new side by side in one table. Where two
1422   columns of code do not fit, each row becomes a two-column grid and the
1423   old cells stack over the new, which reads as a unified diff. */
1424table.difftable.split { table-layout: fixed; }
1425table.difftable.split col.cln { width: 3.5rem; }
1426table.difftable.split td.ln.ctx, table.difftable.split td.ln.none { border-right: 1px solid var(--line); }
1427table.difftable.split td.ln + td.src + td.ln { border-left: 1px solid var(--line); }
1428table.difftable.split td.ln { width: auto; }
1429table.difftable.split td.del { background: var(--diff-del); }
1430table.difftable.split td.add { background: var(--diff-add); }
1431table.difftable.split td.none { background: var(--surface); }
1432table.difftable.split td.src.add::before { content: "+"; color: var(--ok); }
1433table.difftable.split td.src.del::before { content: "\2212"; color: var(--bad); }
1434table.difftable.split td.src.ctx::before { content: " "; }
1435table.difftable.split tr.threadrow td { overflow-wrap: anywhere; }
1436table.difftable.split td.ln:target,
1437table.difftable.split td.ln:target + td { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1438table.difftable.split td.ln:target { border-left: 3px solid var(--mark); }
1439table.difftable.split .nonl { display: block; color: var(--muted); font-style: italic; }
1440p.layoutpick { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1441p.layoutpick strong { color: var(--fg); font-weight: 600; }
1442@media (max-width: 64rem) {
1443  p.layoutpick { display: none; }
1444  table.difftable.split, table.difftable.split tbody { display: block; }
1445  table.difftable.split colgroup { display: none; }
1446  table.difftable.split tr.pair { display: grid; grid-template-columns: auto 1fr; }
1447  table.difftable.split tr.pair td.none, table.difftable.split tr.pair td.ctx.old { display: none; }
1448  table.difftable.split td.ln + td.src + td.ln { border-left: 0; }
1449  table.difftable.split tr.pair td.ln { min-width: 3rem; }
1450  table.difftable.split tr.hunk, table.difftable.split tr.dmeta,
1451  table.difftable.split tr.threadrow { display: block; }
1452  table.difftable.split tr.hunk td.ln, table.difftable.split tr.dmeta td.ln { display: none; }
1453  table.difftable.split tr.hunk td, table.difftable.split tr.dmeta td,
1454  table.difftable.split tr.threadrow td { display: block; }
1455}
1456/* A linked line: f2-n17 on a diff, L17 on a file (see issue 118). */
1457.difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1458.difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); }
1459/* chroma writes the highlighted spans; the container only supplies the
1460   ground and the face */
1461.chroma { font-family: var(--mono); background: none; }
1462/* chroma's own LineLink rule is dropped from the served palette: it set
1463   outline: none and hid the focus ring. This is that rule without it, on
1464   a 24px box so a line number is a target and not a glyph (#232) */
1465.chroma .lnlinks { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-decoration: none; color: inherit; }
1466.chroma .line { line-height: 24px; }
1467
1468.blamehunk { display: flex; gap: var(--sp-3); border-top: 1px solid var(--line); align-items: flex-start; }
1469.blamehunk:first-child { border-top: 0; }
1470.blameinfo { flex: none; width: 17rem; min-width: 0; padding: var(--sp-2) var(--sp-3); }
1471.blameinfo .subject { margin: 0; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1472.blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); }
1473.blamecode {
1474  flex: 1;
1475  margin: 0;
1476  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
1477  background: var(--inset);
1478  border: 0;
1479  border-left: 1px solid var(--line);
1480  border-radius: 0;
1481  overflow-x: auto;
1482  align-self: stretch;
1483}
1484.lineno {
1485  display: inline-block;
1486  min-width: 3.5em;
1487  padding-right: 1em;
1488  text-align: right;
1489  color: var(--muted);
1490  user-select: none;
1491}
1492
1493/* ---- chips and badges ---- */
1494.chip, .badge {
1495  --chip: var(--neutral);
1496  display: inline-block;
1497  padding: 1px 8px;
1498  border-radius: var(--r-ctl);
1499  font-size: var(--fs-0);
1500  font-weight: 500;
1501  line-height: 1.5;
1502  color: var(--chip);
1503  border: 1px solid color-mix(in srgb, var(--chip) 40%, transparent);
1504  background: color-mix(in srgb, var(--chip) 10%, var(--canvas));
1505  white-space: nowrap;
1506  vertical-align: middle;
1507}
1508.chip-open { --chip: var(--ok); }
1509.chip-closed { --chip: var(--bad); }
1510.chip-merged, .chip-done { --chip: var(--done); }
1511.chip-neutral, .chip-source_gone { --chip: var(--neutral); }
1512.chip-stale { --chip: var(--warn); }
1513.chip.topic { --chip: var(--link); }
1514.chip.topic:hover { text-decoration: none; background: color-mix(in srgb, var(--chip) 18%, transparent); }
1515/* A label carries its own colour inline, from the label's hex, as one
1516   tone per scheme: chip text is 12px, so it needs 4.5:1 against its own
1517   ground, and no single colour clears that on both canvases (#226). An
1518   old browser without light-dark() drops the declaration and the chip
1519   falls back to the neutral above. */
1520.chip.label {
1521  --chip: light-dark(var(--chip-l, var(--neutral)), var(--chip-d, var(--neutral)));
1522  font-weight: 500;
1523}
1524.badge-verified { --chip: var(--ok); }
1525.badge-unsigned { --chip: var(--neutral); }
1526.badge-signed_unknown_key, .badge-signed_key_expired { --chip: var(--warn); }
1527.badge-signed_email_mismatch, .badge-signed_key_revoked, .badge-bad_signature { --chip: var(--bad); }
1528.badge.check-success, .chip.check-success { --chip: var(--ok); }
1529.badge.check-pending, .chip.check-pending,
1530.badge.check-running, .chip.check-running { --chip: var(--warn); }
1531.badge.check-failure, .chip.check-failure,
1532.badge.check-error, .chip.check-error { --chip: var(--bad); }
1533.badge.check-cancelled, .chip.check-cancelled,
1534.badge.check-skipped, .chip.check-skipped { --chip: var(--neutral); }
1535span.check-success { color: var(--ok); }
1536span.check-pending, span.check-running { color: var(--warn); }
1537span.check-failure, span.check-error { color: var(--bad); }
1538
1539a.memberchip {
1540  display: inline-block;
1541  border: 1px solid var(--line);
1542  border-radius: var(--r-ctl);
1543  padding: 1px 8px;
1544  margin: 0 2px 2px 0;
1545  color: var(--fg);
1546  font-size: var(--fs-1);
1547}
1548a.memberchip:hover { text-decoration: none; border-color: var(--link); color: var(--link); }
1549a.memberchip .role { color: var(--muted); }
1550
1551.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; }
1552.pathbar .spacer { flex: 1; }
1553.pathbar .actions { display: flex; align-items: center; gap: var(--sp-2); }
1554/* history · blame · raw were 21px tall and "raw" 22px wide (#232) */
1555.pathbar .actions a { display: inline-block; padding: 6px 4px; }
1556.pathbar .acts { display: flex; gap: var(--sp-2); }
1557.crumbs { color: var(--muted); }
1558.crumbs a { color: var(--link); }
1559.crumbs strong { color: var(--fg); }
1560
1561/* ---- file navigator: the directory beside a file ---- */
1562.blobgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1563.blobmain { min-width: 0; }
1564.filenav { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1565.filenav ul { list-style: none; margin: 0; padding: 0; }
1566.filenav li a {
1567  display: block;
1568  padding: 3px var(--sp-2);
1569  border-radius: var(--r-ctl);
1570  color: var(--fg);
1571  font-family: var(--mono);
1572  font-size: var(--fs-1);
1573  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1574}
1575.filenav li a:hover { background: var(--hover); text-decoration: none; }
1576.filenav li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 600; }
1577.filenav li a.dir { color: var(--link); }
1578.filenav li a.up { color: var(--muted); }
1579
1580/* ---- side column: facets or sections beside a list or a form ---- */
1581.withcol { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1582.withcol.narrow { grid-template-columns: 15rem minmax(0, 56rem); }
1583.colmain { min-width: 0; }
1584.sidecol { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1585.sidecol .grp { margin-bottom: var(--sp-4); }
1586.sidecol ul { list-style: none; margin: 0; padding: 0; }
1587.sidecol li a {
1588  display: flex; align-items: baseline; gap: var(--sp-2);
1589  padding: 4px var(--sp-2);
1590  border-radius: var(--r-ctl);
1591  color: var(--fg);
1592}
1593.sidecol li a:hover { background: var(--hover); text-decoration: none; }
1594.sidecol li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 500; }
1595.sidecol li a i { margin-left: auto; font-style: normal; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
1596.sidecol form.searchform { margin-top: var(--sp-2); }
1597.sidecol form.searchform input[type="text"] { min-width: 0; width: 100%; }
1598
1599/* The column's groups sit in a disclosure. Below 62rem that is all the
1600   reader sees of the column: one closed line before the list, because a
1601   repository with two dozen labels stacked the whole vocabulary under
1602   the content it filters. Above 62rem the summary is hidden and the
1603   content shown whatever the open state, so the column is what it
1604   always was. The @supports guard is the fail-safe: an engine without
1605   ::details-content keeps a working toggle at every width instead of
1606   losing the column (#237). */
1607.sidedrop > summary {
1608  display: inline-flex;
1609  align-items: center;
1610  gap: var(--sp-2);
1611  height: 32px;
1612  padding: 0 var(--sp-3);
1613  background: var(--canvas);
1614  border: 1px solid var(--line);
1615  border-radius: var(--r-ctl);
1616  color: var(--fg);
1617  font-size: var(--fs-2);
1618  cursor: pointer;
1619  list-style: none;
1620}
1621.sidedrop[open] > summary { margin-bottom: var(--sp-3); }
1622.sidedrop > summary::-webkit-details-marker { display: none; }
1623.sidedrop > summary:hover { background: var(--hover); }
1624.sidedrop > summary::after { content: "\25be"; color: var(--muted); }
1625.sidedrop[open] > summary::after { content: "\25b4"; }
1626.sideword { font-weight: 600; }
1627/* the filters in force: where you are */
1628.sideon { color: var(--warn); }
1629/* every group came out empty, so there is nothing to open */
1630.sidedrop:not(:has(.grp)) { display: none; }
1631
1632@media (min-width: 62.01rem) {
1633  @supports selector(::details-content) {
1634    .sidedrop > summary { display: none; }
1635    .sidedrop::details-content { content-visibility: visible; }
1636  }
1637}
1638
1639/* a sticky column taller than the viewport scrolls inside itself, or its
1640   tail is unreachable once the page scrolls. Above 62rem only: below it
1641   .filenav is hidden and the other two are static. .dashpins stops being
1642   a column at 80rem and resets both properties there. */
1643@media (min-width: 62.01rem) {
1644  .filenav, .sidecol, .dashgrid > aside { max-height: calc(100vh - 2 * var(--sp-4)); overflow-y: auto; }
1645}
1646
1647.refchip {
1648  display: inline-flex;
1649  align-items: center;
1650  gap: 6px;
1651  height: 32px;
1652  padding: 0 10px;
1653  background: var(--canvas);
1654  border: 1px solid var(--line);
1655  border-radius: var(--r-ctl);
1656  font-family: var(--mono);
1657  font-size: var(--fs-2);
1658  font-weight: 500;
1659  color: var(--fg);
1660}
1661details.refmenu { position: relative; }
1662details.refmenu summary { cursor: pointer; list-style: none; }
1663details.refmenu summary::-webkit-details-marker { display: none; }
1664details.refmenu summary::after { content: " \25be"; color: var(--muted); }
1665details.refmenu .refdrop {
1666  position: absolute;
1667  z-index: 10;
1668  top: calc(100% + 4px);
1669  left: 0;
1670  min-width: 12rem;
1671  max-height: 20rem;
1672  overflow-y: auto;
1673  overscroll-behavior: contain;
1674  background: var(--canvas);
1675  border: 1px solid var(--line);
1676  border-radius: var(--r-card);
1677  box-shadow: var(--shadow);
1678  padding: var(--sp-1) 0;
1679}
1680details.refmenu .refdrop a {
1681  display: block;
1682  padding: var(--sp-1) var(--sp-3);
1683  color: var(--fg);
1684  font-family: var(--mono);
1685  font-size: var(--fs-1);
1686}
1687details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; }
1688details.refmenu .refdrop a.allrefs {
1689  color: var(--link);
1690  font-family: var(--sans);
1691  border-top: 1px solid var(--faint);
1692  margin-top: var(--sp-1);
1693}
1694
1695/* ---- repository overview layout ---- */
1696.overview { display: block; }
1697.overviewmain { min-width: 0; }
1698/* the side column exists only above 62rem; below it .facts keeps its
1699   own two-up layout and the 40rem factgrid rule applies untouched */
1700@media (min-width: 62.01rem) {
1701  .overview.withfacts { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1702  .overview.withfacts .facts { display: block; margin-top: 0; max-width: none; }
1703  .overview.withfacts .facts .factgrid { grid-template-columns: repeat(2, auto); }
1704  .overview.withfacts .clone pre { white-space: pre-wrap; word-break: break-all; }
1705}
1706
1707/* ---- repository facts ---- */
1708.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin: var(--sp-5) 0 var(--sp-4); max-width: 72rem; }
1709.facts h2 {
1710  margin: 0 0 var(--sp-2);
1711  font-size: var(--fs-1);
1712  font-weight: 500;
1713  letter-spacing: 0.08em;
1714  text-transform: uppercase;
1715  color: var(--muted);
1716}
1717.clone { margin: 0 0 var(--sp-3); }
1718.facts .about { min-width: 0; margin-bottom: var(--sp-5); }
1719.clone .fieldname { font-size: var(--fs-1); color: var(--muted); font-weight: 500; margin-bottom: 2px; }
1720.clone pre { margin-bottom: var(--sp-3); user-select: all; }
1721.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); }
1722.factgrid b { font-weight: 600; }
1723.factgrid a { color: var(--fg); }
1724.factgrid a:hover { color: var(--link); }
1725.counts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-3); font-size: var(--fs-2); }
1726.counts a { color: var(--fg); }
1727.counts a:hover { color: var(--link); }
1728.counts strong { font-weight: 600; }
1729.fact { color: var(--muted); }
1730.langbar { display: flex; height: 8px; margin: 0 0 var(--sp-2); border-radius: var(--r-ctl); overflow: hidden; gap: 1px; background: var(--faint); }
1731.langbar .lang { display: block; height: 100%; min-width: 2px; }
1732.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); }
1733.langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); }
1734.langs .dot { width: 8px; height: 8px; }
1735/* named where it reads as the language's own colour, neutral otherwise */
1736.lang { background: var(--neutral); }
1737.lang-go { background: var(--lang-go); }
1738.lang-rust { background: var(--lang-rust); }
1739.lang-c, .lang-c- { background: var(--lang-c); }
1740.lang-python { background: var(--lang-python); }
1741.lang-javascript { background: var(--lang-javascript); }
1742.lang-typescript { background: var(--lang-typescript); }
1743.lang-shell { background: var(--lang-shell); }
1744.lang-ruby { background: var(--lang-ruby); }
1745.lang-java { background: var(--lang-java); }
1746.lang-swift { background: var(--lang-swift); }
1747.lang-html { background: var(--lang-html); }
1748.lang-css { background: var(--lang-css); }
1749.lang-org { background: var(--lang-org); }
1750.lang-markdown { background: var(--lang-markdown); }
1751.lang-emacs-lisp { background: var(--lang-emacs-lisp); }
1752.lang-nix { background: var(--lang-nix); }
1753.lang-sql { background: var(--lang-sql); }
1754.contribs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1); }
1755.contribs .label { color: var(--muted); }
1756.teambody { padding: var(--sp-3); }
1757.teambody .memberchip { margin-right: var(--sp-2); }
1758
1759/* ---- landing ---- */
1760/* the width class on main carries this too; the cap here keeps the page
1761   readable on the templates that do not set one yet */
1762.landing { max-width: 48rem; padding: var(--sp-6) 0; }
1763.landing h1 { font-size: var(--fs-6); display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
1764.landing h1 .mark { width: 32px; height: 32px; }
1765.lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; max-width: 40rem; margin: 0 0 var(--sp-5); }
1766pre.quickstart { margin: 0 0 var(--sp-4); }
1767.shot { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: var(--sp-5) 0; }
1768.shot video { display: block; width: 100%; height: auto; }
1769.shot figcaption {
1770  border-top: 1px solid var(--line);
1771  background: var(--surface);
1772  padding: var(--sp-2) var(--sp-3);
1773  color: var(--muted);
1774  font-size: var(--fs-1);
1775}
1776.facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; }
1777.facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1778.facets p { color: var(--muted); font-size: var(--fs-2); margin: 0; }
1779.routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-4) 0 0; }
1780
1781/* ---- profile ---- */
1782.profilehead { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
1783.profilehead h1 { margin: 0 0 var(--sp-1); }
1784.profilehead .lede { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1785.profilehead .meta { margin: var(--sp-1) 0 0; }
1786.activity { margin-bottom: var(--sp-5); }
1787h2 .count { background: none; color: var(--muted); font-weight: 400; font-size: var(--fs-2); margin-left: var(--sp-2); padding: 0; }
1788/* 53 week columns x 7 day rows, tinted with the link blue */
1789.actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); }
1790.actgraph { display: flex; gap: 3px; width: max-content; padding-top: 18px; }
1791.actweek { display: flex; flex-direction: column; gap: 3px; position: relative; }
1792.actmonth { position: absolute; top: -16px; left: 0; font-size: var(--fs-0); color: var(--muted); }
1793.actday { width: 11px; height: 11px; border-radius: 2px; background: var(--faint); }
1794.actday.pad { background: transparent; }
1795.actday.l0 { background: var(--faint); }
1796.actday.l1 { background: color-mix(in srgb, var(--link) 25%, var(--canvas)); }
1797.actday.l2 { background: color-mix(in srgb, var(--link) 50%, var(--canvas)); }
1798.actday.l3 { background: color-mix(in srgb, var(--link) 75%, var(--canvas)); }
1799.actday.l4 { background: var(--link); }
1800.actlegend { display: flex; align-items: center; gap: 3px; margin-top: var(--sp-2); font-size: var(--fs-0); color: var(--muted); }
1801.actlegend span:first-child { margin-right: var(--sp-1); }
1802.actlegend span:last-child { margin-left: var(--sp-1); }
1803/* the activity log under the graph: the newest events, not the year */
1804.logsub { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
1805.ownerlog .feedline { font-size: var(--fs-2); }
1806.ownerlog .feedline .none { font-size: var(--fs-1); }
1807
1808/* ---- wiki ---- */
1809.wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; }
1810.wikipage { flex: 1; min-width: 0; }
1811.wikinav { flex: none; width: 15rem; }
1812.wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; }
1813.wikinav .wikidir { margin-bottom: 0; }
1814.wikinav li a {
1815  display: block;
1816  padding: 5px var(--sp-2);
1817  border-radius: var(--r-ctl);
1818  color: var(--fg);
1819  font-size: var(--fs-2);
1820}
1821.wikinav li a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
1822.wikinav li a.active { background: var(--surface); color: var(--link); font-weight: 500; }
1823
1824/* ---- misc ---- */
1825.meta { color: var(--muted); font-size: var(--fs-1); }
1826.muted { color: var(--muted); }
1827.desc, td.desc { color: var(--muted); }
1828.spacer { flex: 1; }
1829.compact { margin: 0; }
1830.name { min-width: 0; }
1831svg.icon { vertical-align: -0.125em; }
1832.sep { color: var(--muted); }
1833.owner { color: var(--muted); }
1834.title { margin: 0; }
1835.subject { min-width: 0; }
1836.sha { font-family: var(--mono); }
1837.when { color: var(--muted); }
1838.who { font-weight: 500; }
1839.was { color: var(--muted); }
1840.role { color: var(--muted); }
1841.age { color: var(--muted); }
1842.size { color: var(--muted); }
1843.review { font-size: var(--fs-2); }
1844
1845/* ---- breakpoints ---- */
1846@media (max-width: 80rem) {
1847  .dashgrid { grid-template-columns: minmax(0, 1fr) 20rem; }
1848  /* not a column any more, so it neither sticks nor scrolls in itself */
1849  .dashgrid > .dashpins { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
1850  /* a pinned block that is not a column is the chip row (spec rule 7) */
1851  .pins { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1852  /* the shorthand loses to .pins li:last-child, which drops the bottom
1853     border of the last chip -- and so of the second row */
1854  .pins li, .pins li:last-child { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--sp-1) var(--sp-3); }
1855  .pins .n, .dashpins .meta { display: none; }
1856}
1857
1858@media (max-width: 62rem) {
1859  /* one column, the aside after the thread: a phone shows the
1860     description first, checks and reviewers after it (#232) */
1861  .withaside { grid-template-columns: 1fr; }
1862
1863  /* rows go back to two lines where one does not fit */
1864  ul.issuelist.rows .issuemain, ul.repolist.rows, ul.repolist.rows li, ul.loglist.rows .commitmain { display: block; }
1865  ul.issuelist.rows .title, ul.repolist.rows .desc { white-space: normal; }
1866  ul.repolist.rows .reponame, ul.repolist.rows .meta { display: block; }
1867  ul.repolist.rows li > *, ul.repolist.rows .reponame > *, ul.repolist.rows .meta > * { padding-left: 0; white-space: normal; }
1868  ul.repolist.rows .license::before, ul.repolist.rows .updated::before { content: " · "; }
1869  /* a nowrap meta or topic line on one of these rows forces horizontal
1870     page scroll on a phone: a long branch name, a long owner/repo#N */
1871  ul.issuelist.rows .meta, ul.loglist.rows .meta,
1872  ul.repolist.rows .meta, ul.repolist.rows .topics { white-space: normal; }
1873
1874  .dashgrid { grid-template-columns: 1fr; }
1875  .dashgrid > aside { position: static; }
1876  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1877
1878  /* the tree page is the navigator on a phone */
1879  .blobgrid { grid-template-columns: 1fr; }
1880  .filenav { display: none; }
1881
1882  /* the column is a closed disclosure before the content: a filter you
1883     reach without scrolling the list, and nothing to scroll past when
1884     you do not want it. It leads rather than follows because it is what
1885     the list is narrowed by, not a note on one row (#237) */
1886  .withcol, .withcol.narrow { grid-template-columns: 1fr; }
1887  .sidecol { position: static; margin-bottom: var(--sp-3); }
1888  .sidecol .grp { display: inline-block; vertical-align: top; margin-right: var(--sp-5); }
1889}
1890
1891@media (max-width: 52rem) {
1892  main.content { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
1893  footer { padding: var(--sp-4); }
1894  .repohead { padding: var(--sp-3) 0 0; }
1895  .repohead .wrap { padding: 0 var(--sp-4); }
1896  /* seven tabs do not fit a phone in one row; a hidden scrollbar made the
1897     ones past the edge look absent. Two rows show all of them. */
1898  nav.tabs { flex-wrap: wrap; overflow: visible; }
1899  .facts { grid-template-columns: 1fr; }
1900  /* a phone shows the description under the name, not beside it */
1901  .repodesc { flex-basis: 100%; margin-left: 0; }
1902}
1903
1904@media (max-width: 40rem) {
1905  .facets { grid-template-columns: 1fr; gap: var(--sp-4); }
1906  .wikilayout { flex-direction: column; align-items: stretch; }
1907  .wikinav { width: auto; }
1908  form.setform { grid-template-columns: 1fr; gap: var(--sp-2); }
1909  form.setform label { margin-top: 0; }
1910  /* the commit subject is the widest thing in a file table and the one
1911     column a phone can do without: the tipbar above already names the
1912     latest commit */
1913  table.tree td.lastcommit, table.tree th.lastcommit { display: none; }
1914  table.tree td.mode, table.tree th.mode { display: none; }
1915  /* at 320px a nowrap name plus the age column overran the card by the
1916     cell padding and the card clipped the age; a long name wraps (#232) */
1917  table.tree td.name { white-space: normal; overflow-wrap: anywhere; }
1918  .clone pre { white-space: pre-wrap; word-break: break-all; }
1919  .readme .cardbody, .code { padding: var(--sp-3); }
1920  .thread { margin-left: var(--sp-3); }
1921  .blamehunk { flex-direction: column; gap: 0; }
1922  .blameinfo { width: auto; }
1923  .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; }
1924  .factgrid { grid-template-columns: repeat(2, auto); }
1925  ul.loglist li { flex-wrap: wrap; }
1926  ul.loglist .commitside { width: 100%; justify-content: flex-start; }
1927}
1928
1929/* Nine 44px squares and the mark are 440px, so below 34rem the rail
1930   keeps six — dashboard, explore, search, notifications, More, your
1931   avatar — and the More menu holds the rest. Seven squares at 44px are
1932   308px, inside a 320px phone. Explore is one of the six because the
1933   More menu only exists for a signed-in viewer: dropping it left a
1934   signed-out phone with no route to the listing at all. Shrinking the
1935   squares instead is what this replaces: 32px was under the target
1936   every phone guideline asks for, and the count only grows. */
1937@media (max-width: 34rem) {
1938  .railopt { display: none; }
1939  .railmore { display: block; }
1940  .railicon svg { width: 20px; height: 20px; }
1941  /* the mark is a link home too, so it is a target like the rest */
1942  a.brand { width: var(--rail-hit); }
1943}
1944
1945/* ---- reactions ---- */
1946.reactions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: var(--sp-2) var(--sp-4); }
1947p.reactions { color: var(--muted); font-size: var(--fs-1); }
1948article.comment .reactions { border-top: 1px solid var(--faint); }
1949button.react, span.react {
1950  font: inherit;
1951  font-size: var(--fs-1);
1952  padding: 0 var(--sp-2);
1953  min-height: 24px;
1954  border: 1px solid var(--line);
1955  border-radius: var(--r-sm);
1956  background: transparent;
1957  color: var(--muted);
1958}
1959button.react { cursor: pointer; }
1960button.react:hover { background: var(--surface); }
1961button.react.mine { border-color: var(--accent); background: var(--surface); color: var(--fg); }